head	1.2;
access;
symbols
	RELENG_4_11_0_RELEASE:1.1.1.3.2.1
	RELENG_4_11:1.1.1.3.2.1.0.18
	RELENG_4_11_BP:1.1.1.3.2.1
	RELENG_4_10_0_RELEASE:1.1.1.3.2.1
	RELENG_4_10:1.1.1.3.2.1.0.16
	RELENG_4_10_BP:1.1.1.3.2.1
	RELENG_4_9_0_RELEASE:1.1.1.3.2.1
	RELENG_4_9:1.1.1.3.2.1.0.14
	RELENG_4_9_BP:1.1.1.3.2.1
	RELENG_4_8_0_RELEASE:1.1.1.3.2.1
	RELENG_4_8:1.1.1.3.2.1.0.12
	RELENG_4_8_BP:1.1.1.3.2.1
	RELENG_5_0_0_RELEASE:1.1.1.4
	RELENG_5_0:1.1.1.4.0.2
	RELENG_5_0_BP:1.1.1.4
	RELENG_4_7_0_RELEASE:1.1.1.3.2.1
	RELENG_4_7:1.1.1.3.2.1.0.10
	RELENG_4_7_BP:1.1.1.3.2.1
	RELENG_4_6_2_RELEASE:1.1.1.3.2.1
	RELENG_4_6_1_RELEASE:1.1.1.3.2.1
	RELENG_4_6_0_RELEASE:1.1.1.3.2.1
	RELENG_4_6:1.1.1.3.2.1.0.8
	RELENG_4_6_BP:1.1.1.3.2.1
	RELENG_4_5_0_RELEASE:1.1.1.3.2.1
	RELENG_4_5:1.1.1.3.2.1.0.6
	RELENG_4_5_BP:1.1.1.3.2.1
	RELENG_4_4_0_RELEASE:1.1.1.3.2.1
	RELENG_4_4:1.1.1.3.2.1.0.4
	RELENG_4_4_BP:1.1.1.3.2.1
	RELENG_4_3_0_RELEASE:1.1.1.3.2.1
	RELENG_4_3:1.1.1.3.2.1.0.2
	RELENG_4_3_BP:1.1.1.3.2.1
	krb4_1_0_5:1.1.1.4
	RELENG_4_2_0_RELEASE:1.1.1.3
	RELENG_4_1_1_RELEASE:1.1.1.3
	PRE_SMPNG:1.1.1.3
	RELENG_4_1_0_RELEASE:1.1.1.3
	RELENG_3_5_0_RELEASE:1.1.1.1
	RELENG_4_0_0_RELEASE:1.1.1.3
	RELENG_4:1.1.1.3.0.2
	RELENG_4_BP:1.1.1.3
	krb4_1_0:1.1.1.3
	KRB:1.1.1
	RELENG_3_4_0_RELEASE:1.1.1.1
	krb4_0_10_1:1.1.1.2
	RELENG_3_3_0_RELEASE:1.1.1.1
	RELENG_3_2_PAO:1.1.1.1.0.6
	RELENG_3_2_PAO_BP:1.1.1.1
	RELENG_3_2_0_RELEASE:1.1.1.1
	RELENG_3_1_0_RELEASE:1.1.1.1
	RELENG_3:1.1.1.1.0.4
	RELENG_3_BP:1.1.1.1
	RELENG_2_2_8_RELEASE:1.1.1.1
	RELENG_3_0_0_RELEASE:1.1.1.1
	RELENG_2_2_7_RELEASE:1.1.1.1
	RELENG_2_2_6_RELEASE:1.1.1.1
	RELENG_2_2:1.1.1.1.0.2
	ebones_0_9_6:1.1.1.1
	KTH:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2003.03.08.12.55.28;	author markm;	state dead;
branches;
next	1.1;

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

1.1.1.1
date	97.09.04.06.04.07;	author markm;	state Exp;
branches
	1.1.1.1.4.1;
next	1.1.1.2;

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

1.1.1.3
date	2000.01.09.08.26.17;	author markm;	state Exp;
branches
	1.1.1.3.2.1;
next	1.1.1.4;

1.1.1.4
date	2000.12.29.20.58.19;	author assar;	state Exp;
branches;
next	;

1.1.1.3.2.1
date	2001.03.04.12.52.27;	author markm;	state Exp;
branches;
next	;

1.1.1.1.4.1
date	2000.07.04.15.03.55;	author assar;	state Exp;
branches;
next	;


desc
@@


1.2
log
@KerberosIV deorbit sequence: Re-entry. Thank you, faithful friend.
Enjoy your retirement in ports.
@
text
@#! /bin/sh

# From configure.in Revision: 1.285 























































# Guess values for system-dependent variables and create Makefiles.
# Generated automatically using autoconf version 2.12 
# 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:
ac_default_prefix=/usr/athena
ac_help="$ac_help
  --with-socks=dir                use socks in dir"
ac_help="$ac_help
  --with-socks-lib=dir            use socks-lib in dir"
ac_help="$ac_help
  --with-socks-include=dir        use socks-include in dir"
ac_help="$ac_help
  --with-shared           create shared libraries for Kerberos"
ac_help="$ac_help
  --with-cracklib=dir     use the cracklib.a in dir"
ac_help="$ac_help
  --with-dictpath=path    use this dictionary with cracklib
"
ac_help="$ac_help
  --with-mailspool=dir    this is the mail spool directory
"
ac_help="$ac_help
  --enable-random-mkey    use new code for master keys"
ac_help="$ac_help
  --with-mkey=file        where to put the master key"
ac_help="$ac_help
  --without-berkeley-db   if you don't want berkeley db"
ac_help="$ac_help
  --without-afs-support   if you don't want support for afs"
ac_help="$ac_help
  --with-des-quad-checksum=kind
                           default checksum to use (new, old, or guess)"
ac_help="$ac_help
  --with-readline=dir                use readline in dir"
ac_help="$ac_help
  --with-readline-lib=dir            use readline-lib in dir"
ac_help="$ac_help
  --with-readline-include=dir        use readline-include in dir"
ac_help="$ac_help
  --with-x                use the X Window System"

# Initialize some variables set by options.
# The variables have the same names as the options, with
# dashes changed to underlines.
build=NONE
cache_file=./config.cache
exec_prefix=NONE
host=NONE
no_create=
nonopt=NONE
no_recursion=
prefix=NONE
program_prefix=NONE
program_suffix=NONE
program_transform_name=s,x,x,
silent=
site=
srcdir=
target=NONE
verbose=
x_includes=NONE
x_libraries=NONE
bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin'
libexecdir='${exec_prefix}/libexec'
datadir='${prefix}/share'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
infodir='${prefix}/info'
mandir='${prefix}/man'

# Initialize some other variables.
subdirs=
MFLAGS= MAKEFLAGS=
# Maximum number of lines to put in a shell here document.
ac_max_here_lines=12

ac_prev=
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=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) ac_optarg= ;;
  esac

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

  case "$ac_option" in

  -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 ;;
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    build="$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" ;;

  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
    ac_prev=datadir ;;
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  | --da=*)
    datadir="$ac_optarg" ;;

  -disable-* | --disable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
    # Reject names that are not valid shell variable names.
    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" ;;

  -enable-* | --enable-*)
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    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 ;;
    esac
    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)
    # 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 ;;

  -host | --host | --hos | --ho)
    ac_prev=host ;;
  -host=* | --host=* | --hos=* | --ho=*)
    host="$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" ;;

  -localstatedir | --localstatedir | --localstatedi | --localstated \
  | --localstate | --localstat | --localsta | --localst \
  | --locals | --local | --loca | --loc | --lo)
    ac_prev=localstatedir ;;
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
    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)
    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" ;;

  -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 ;;
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
    target="$ac_optarg" ;;

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

  -version | --version | --versio | --versi | --vers)
    echo "configure generated by autoconf version 2.12"
    exit 0 ;;

  -with-* | --with-*)
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
    # Reject names that are not valid shell variable names.
    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 ;;
    esac
    eval "with_${ac_package}='$ac_optarg'" ;;

  -without-* | --without-*)
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
    # Reject names that are not valid shell variable names.
    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" ;;

  --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 "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
    ;;

  *)
    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"
    ;;

  esac
done

if test -n "$ac_prev"; then
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
fi

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
fi
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

# 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
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_configure_args="$ac_configure_args '$ac_arg'" ;;
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  esac
done

# 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

# 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/krb/getrealm.c

# 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 its parent.
  ac_prog=$0
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  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
  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%'`

# 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
fi
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
  echo "loading cache $cache_file"
  . $cache_file
else
  echo "creating cache $cache_file"
  > $cache_file
fi

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 $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

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





PACKAGE=krb4
VERSION=0.9.6
# This may be overridden using --prefix=/usr to configure


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
  fi
done
if test -z "$ac_aux_dir"; then
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
fi
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.


# Make sure we can run config.sub.
if $ac_config_sub sun4 >/dev/null 2>&1; then :
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi

echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:648: checking host system type" >&5

host_alias=$host
case "$host_alias" in
NONE)
  case $nonopt in
  NONE)
    if host_alias=`$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

host=`$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

echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
echo "configure:669: 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
else
  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
else
  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 "$ac_t""yes" 1>&6
  SET_MAKE=
else
  echo "$ac_t""no" 1>&6
  SET_MAKE="MAKE=${MAKE-make}"
fi

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
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 "$program_transform_name" = "" && program_transform_name="s,x,x,"


# We want these before the checks, so the checks can modify their values.
test -z "$LDFLAGS" && LDFLAGS=-g


echo $ac_n "checking for ln -s or something else""... $ac_c" 1>&6
echo "configure:720: 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
fi
fi
LN_S="$ac_cv_prog_LN_S"
echo "$ac_t""$ac_cv_prog_LN_S" 1>&6

# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:745: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_CC="gcc"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
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 $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:774: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  ac_prog_rejected=no
  for ac_dir in $PATH; 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
  done
  IFS="$ac_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 $# -gt 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
    set dummy "$ac_dir/$ac_word" "$@@"
    shift
    ac_cv_prog_CC="$@@"
  fi
fi
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
fi

echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:822: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5

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 $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
cross_compiling=$ac_cv_prog_cc_cross

cat > conftest.$ac_ext <<EOF
#line 832 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
  fi
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  ac_cv_prog_cc_works=no
fi
rm -fr conftest*

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:856: 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:861: 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:870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  ac_cv_prog_gcc=yes
else
  ac_cv_prog_gcc=no
fi
fi

echo "$ac_t""$ac_cv_prog_gcc" 1>&6

if test $ac_cv_prog_gcc = yes; then
  GCC=yes
  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:885: 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
else
  echo 'void f(){}' > conftest.c
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  ac_cv_prog_cc_g=yes
else
  ac_cv_prog_cc_g=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  if test "$ac_test_CFLAGS" = set; then
    CFLAGS="$ac_save_CFLAGS"
  elif test $ac_cv_prog_cc_g = yes; then
    CFLAGS="-g -O2"
  else
    CFLAGS="-O2"
  fi
else
  GCC=
  test "${CFLAGS+set}" = set || CFLAGS="-g"
fi

echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:913: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
  CPP=
fi
if test -z "$CPP"; then
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    # 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"
  # On the NeXT, cc -E runs the code through the compiler's parser,
  # not just through cpp.
  cat > conftest.$ac_ext <<EOF
#line 928 "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:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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} -E -traditional-cpp"
  cat > conftest.$ac_ext <<EOF
#line 945 "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:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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=/lib/cpp
fi
rm -f conftest*
fi
rm -f conftest*
  ac_cv_prog_CPP="$CPP"
fi
  CPP="$ac_cv_prog_CPP"
else
  ac_cv_prog_CPP="$CPP"
fi
echo "$ac_t""$CPP" 1>&6

echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
echo "configure:974: checking for POSIXized ISC" >&5
if test -d /etc/conf/kconfig.d &&
  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
then
  echo "$ac_t""yes" 1>&6
  ISC=yes # If later tests want to check for ISC.
  cat >> confdefs.h <<\EOF
#define _POSIX_SOURCE 1
EOF

  if test "$GCC" = yes; then
    CC="$CC -posix"
  else
    CC="$CC -Xp"
  fi
else
  echo "$ac_t""no" 1>&6
  ISC=
fi

for ac_prog in byacc yacc 'bison -y'
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:999: 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="${IFS}:"
  for ac_dir in $PATH; 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
fi

test -n "$YACC" && break
done

# 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:1030: 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="${IFS}:"
  for ac_dir in $PATH; 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
else
  echo "$ac_t""no" 1>&6
fi

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:1063: 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 1071 "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:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"

fi
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

fi

# 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:1107: 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="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_RANLIB="ranlib"
      break
    fi
  done
  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

# 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
# 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 $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:1144: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    # Account for people who put trailing slashes in PATH elements.
    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.
      for ac_prog in ginstall installbsd 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.
	    # OSF/1 installbsd also uses dspmsg, but is usable.
	    :
	  else
	    ac_cv_path_install="$ac_dir/$ac_prog -c"
	    break 2
	  fi
	fi
      done
      ;;
    esac
  done
  IFS="$ac_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.  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
fi
echo "$ac_t""$INSTALL" 1>&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_DATA" && INSTALL_DATA='${INSTALL} -m 644'

# Extract the first word of "makeinfo", so it can be a program name with args.
set dummy makeinfo; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1196: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$MAKEINFO"; then
  ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
else
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $PATH; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_prog_MAKEINFO="makeinfo"
      break
    fi
  done
  IFS="$ac_save_ifs"
  test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO=":"
fi
fi
MAKEINFO="$ac_cv_prog_MAKEINFO"
if test -n "$MAKEINFO"; then
  echo "$ac_t""$MAKEINFO" 1>&6
else
  echo "$ac_t""no" 1>&6
fi




echo $ac_n "checking for socks""... $ac_c" 1>&6
echo "configure:1226: checking for socks" >&5
# Check whether --with-socks or --without-socks was given.
if test "${with_socks+set}" = set; then
  withval="$with_socks"
  if test "$with_socks" = "no"; then
  with_socks=
fi

fi

# Check whether --with-socks-lib or --without-socks-lib was given.
if test "${with_socks_lib+set}" = set; then
  withval="$with_socks_lib"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-socks-lib" 1>&2; exit 1; }
elif test "X$with_socks" = "X"; then
  with_socks=yes
fi

fi

# Check whether --with-socks-include or --without-socks-include was given.
if test "${with_socks_include+set}" = set; then
  withval="$with_socks_include"
  if test "$withval" = "yes" -o "$withval" = "no"; then
  { echo "configure: error: No argument for --with-socks-include" 1>&2; exit 1; }
elif test "X$with_socks" = "X"; then
  with_socks=yes
fi

fi



: << END
@@@@@@syms="$syms SOCKS"@@@@@@
END

if test -n "$with_socks"; then
  cat >> confdefs.h <<\EOF
#define SOCKS 1
EOF

  if test "$with_socks" != "yes"; then
    socks_dir=$with_socks
  fi
  if test -n "$with_socks_include"; then
    trydir=$with_socks_include
  elif test "$with_socks" != "yes"; then
    trydir="$with_socks $with_socks/include"
  else
    trydir=
  fi
  found=
  for i in $trydir ""; do
    if test -n "$i"; then
      if test -f $i/socks.h; then
        found=yes; res=$i; break
      fi
    else
      cat > conftest.$ac_ext <<EOF
#line 1287 "configure"
#include "confdefs.h"
#include <socks.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  found=yes; res=$i; break
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
    fi
  done
  if test -n "$found"; then
    socks_include=$res
  else
    { echo "configure: error: Cannot find socks.h" 1>&2; exit 1; }
  fi
  if test -n "$with_socks_lib"; then
    trydir=$with_socks_lib
  elif test "$with_socks" != "yes"; then
    trydir="$with_socks $with_socks/lib"
  else
    trydir=
  fi
  found=
  for i in $trydir ""; do
    if test -n "$i"; then
      if test -f $i/libsocks5.a; then
        found=yes; res=$i; break
      fi
    else
      old_LIBS=$LIBS
      LIBS="-lsocks5 $LIBS"
      cat > conftest.$ac_ext <<EOF
#line 1327 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:1334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  found=yes; res=$i; LIBS=$old_LIBS; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
      LIBS=$old_LIBS
    fi
  done
  if test -n "$found"; then
    socks_lib=$res
  else
    { echo "configure: error: Cannot find libsocks5.a" 1>&2; exit 1; }
  fi
  echo "$ac_t""headers $socks_include, libraries $socks_lib" 1>&6
  cat >> confdefs.h <<EOF
#define SOCKS 1
EOF

  if test -n "$socks_include"; then
    SOCKSINCLUDE="-I$socks_include"
  fi
  
  if test -n "$socks_lib"; then
    SOCKSLIB="-L$socks_lib"
  fi
  SOCKSLIB="$SOCKSLIB -lsocks5"
  
else
  echo "$ac_t""no" 1>&6
fi


CFLAGS="$SOCKSINCLUDE $CFLAGS"
LIBS="$SOCKSLIB $LIBS"

# Check whether --with-shared or --without-shared was given.
if test "${with_shared+set}" = set; then
  withval="$with_shared"
  :
fi


# Check whether --with-cracklib or --without-cracklib was given.
if test "${with_cracklib+set}" = set; then
  withval="$with_cracklib"
  :
fi


# Check whether --with-dictpath or --without-dictpath was given.
if test "${with_dictpath+set}" = set; then
  withval="$with_dictpath"
  :
fi


(test -z "$with_cracklib" && test -n "$with_dictpath") ||
(test -n "$with_cracklib" && test -z "$with_dictpath") &&
{ echo "configure: error: --with-cracklib requires --with-dictpath and vice versa" 1>&2; exit 1; }
test -n "$with_cracklib" &&
CRACKLIB="-L$with_cracklib -lcrack" &&
echo "$ac_t""Using cracklib in $with_cracklib" 1>&6
test -n "$with_dictpath" &&
echo "$ac_t""Using dictpath=$with_dictpath" 1>&6 &&
cat >> confdefs.h <<EOF
#define DICTPATH "$with_dictpath"
EOF


# Check whether --with-mailspool or --without-mailspool was given.
if test "${with_mailspool+set}" = set; then
  withval="$with_mailspool"
  :
fi


test -n "$with_mailspool" &&
cat >> confdefs.h <<EOF
#define KRB4_MAILDIR "$with_mailspool"
EOF


# Check whether --enable-random-mkey or --disable-random-mkey was given.
if test "${enable_random_mkey+set}" = set; then
  enableval="$enable_random_mkey"
  
if test "$enableval" = "yes"; then
	cat >> confdefs.h <<\EOF
#define RANDOM_MKEY 1
EOF

fi

fi


# Check whether --with-mkey or --without-mkey was given.
if test "${with_mkey+set}" = set; then
  withval="$with_mkey"
  
if test -n "$withval"; then
	cat >> confdefs.h <<EOF
#define MKEYFILE "$withval"
EOF

fi

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


afs_support=yes
# Check whether --with-afs-support or --without-afs-support was given.
if test "${with_afs_support+set}" = set; then
  withval="$with_afs_support"
  
if test "$withval" = no; then
	cat >> confdefs.h <<\EOF
#define NO_AFS 1
EOF

	afs_support=no
fi

fi


des_quad=guess
# Check whether --with-des-quad-checksum or --without-des-quad-checksum was given.
if test "${with_des_quad_checksum+set}" = set; then
  withval="$with_des_quad_checksum"
  
des_quad="$withval"

fi

if test "$des_quad" = "new"; then
	cat >> confdefs.h <<\EOF
#define DES_QUAD_DEFAULT DES_QUAD_NEW
EOF

elif test "$des_quad" = "old"; then
	cat >> confdefs.h <<\EOF
#define DES_QUAD_DEFAULT DES_QUAD_OLD
EOF

else
	cat >> confdefs.h <<\EOF
#define DES_QUAD_DEFAULT DES_QUAD_GUESS
EOF

fi	


echo $ac_n "checking for readline""... $ac_c" 1>&6
echo "configure:1503: checking for readline" >&5
# Check whether --with-readline or --without-readline was given.
if test "${with_readline+set}" = set; then
  withval="$with_readline"
  if test "$with_readline" = "no"; then
  with_readline=
fi

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 "configure: error: No argument for --with-readline-lib" 1>&2; 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 "configure: error: No argument for --with-readline-include" 1>&2; exit 1; }
elif test "X$with_readline" = "X"; then
  with_readline=yes
fi

fi



: << END
@@@@@@syms="$syms READLINE"@@@@@@
END

if test -n "$with_readline"; then
  cat >> confdefs.h <<\EOF
#define READLINE 1
EOF

  if test "$with_readline" != "yes"; then
    readline_dir=$with_readline
  fi
  if test -n "$with_readline_include"; then
    trydir=$with_readline_include
  elif test "$with_readline" != "yes"; then
    trydir="$with_readline $with_readline/include"
  else
    trydir=
  fi
  found=
  for i in $trydir ""; do
    if test -n "$i"; then
      if test -f $i/readline.h; then
        found=yes; res=$i; break
      fi
    else
      cat > conftest.$ac_ext <<EOF
#line 1564 "configure"
#include "confdefs.h"
#include <readline.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  found=yes; res=$i; break
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
    fi
  done
  if test -n "$found"; then
    readline_include=$res
  else
    { echo "configure: error: Cannot find readline.h" 1>&2; exit 1; }
  fi
  if test -n "$with_readline_lib"; then
    trydir=$with_readline_lib
  elif test "$with_readline" != "yes"; then
    trydir="$with_readline $with_readline/lib"
  else
    trydir=
  fi
  found=
  for i in $trydir ""; do
    if test -n "$i"; then
      if test -f $i/libreadline.a; then
        found=yes; res=$i; break
      fi
    else
      old_LIBS=$LIBS
      LIBS="-lreadline $LIBS"
      cat > conftest.$ac_ext <<EOF
#line 1604 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  found=yes; res=$i; LIBS=$old_LIBS; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
      LIBS=$old_LIBS
    fi
  done
  if test -n "$found"; then
    readline_lib=$res
  else
    { echo "configure: error: Cannot find libreadline.a" 1>&2; exit 1; }
  fi
  echo "$ac_t""headers $readline_include, libraries $readline_lib" 1>&6
  cat >> confdefs.h <<EOF
#define READLINE 1
EOF

  if test -n "$readline_include"; then
    READLINEINCLUDE="-I$readline_include"
  fi
  
  if test -n "$readline_lib"; then
    READLINELIB="-L$readline_lib"
  fi
  READLINELIB="$READLINELIB -lreadline"
  
else
  echo "$ac_t""no" 1>&6
fi





case ${with_shared} in
  yes ) with_shared=yes;;
  no  ) with_shared=no;;
  *   ) with_shared=no;;
esac

# NOTE: Building shared libraries may not work if you do not use gcc!
#
# OS		$SHLIBEXT
# HP-UX		sl
# Linux		so
# NetBSD	so
# FreeBSD	so
# OSF		so
# SunOS5	so
# SunOS4	so.0.5
# Irix		so
#
# LIBEXT is the extension we should build (.a or $SHLIBEXT)
REAL_PICFLAGS="-fpic"
LDSHARED='$(CC) $(PICFLAGS) -shared'
LIBPREFIX=lib
REAL_SHLIBEXT=so
SHLIB_VERSION=`echo $VERSION | sed 's/\([0-9.]*\).*/\1/'`
case "${host}" in
*-*-hpux*)
	REAL_SHLIBEXT=sl
	REAL_LD_FLAGS='-Wl,+b$(libdir)'
	if test -z "$GCC"; then
		LDSHARED="ld -b"
		REAL_PICFLAGS="+z"
	fi
	;;
*-*-linux*)
	REAL_LD_FLAGS='-Wl,-rpath,$(libdir)'
	;;
*-*-*bsd*)
	REAL_SHLIBEXT=so.$SHLIB_VERSION
	LDSHARED='ld -Bshareable'
	REAL_LD_FLAGS='-Wl,-R$(libdir)'
	;;
*-*-osf*)
	REAL_LD_FLAGS='-Wl,-rpath,$(libdir)'
	REAL_PICFLAGS=
	LDSHARED='ld -shared -expect_unresolved \*'
	;;
*-*-solaris2*)
	REAL_LD_FLAGS='-Wl,-R$(libdir)'
	if test -z "$GCC"; then
		LDSHARED='$(CC) -G'
		REAL_PICFLAGS="-Kpic"
	fi
	;;
*-*-sunos*)
	REAL_SHLIBEXT=so.$SHLIB_VERSION
	REAL_LD_FLAGS='-Wl,-L$(libdir)'
	;;
*-*-irix*)
	REAL_LD_FLAGS='-Wl,-rpath,$(libdir)'
	REAL_PICFLAGS=
	;;
*-*-os2_emx*)
	LD_FLAGS='-Zexe'
	LIBPREFIX=
	EXECSUFFIX='.exe'
	RANLIB=EMXOMF
	REAL_SHLIBEXT=nobuild
	;;
*-*-cygwin32*)
	EXECSUFFIX='.exe'
	REAL_SHLIBEXT=nobuild
	;;
*)	REAL_SHLIBEXT=nobuild
	REAL_PICFLAGS= 
	;;
esac

if test "${with_shared}" != "yes" ; then 
 PICFLAGS=""
 SHLIBEXT="nobuild"
 LIBEXT="a"
else
 PICFLAGS="$REAL_PICFLAGS"
 SHLIBEXT="$REAL_SHLIBEXT"
 LIBEXT="$SHLIBEXT"
 LD_FLAGS="$REAL_LD_FLAGS"
fi

   
       


if test "${with_shared}" = "yes"; then
echo $ac_n "checking for pragma weak""... $ac_c" 1>&6
echo "configure:1743: checking for pragma weak" >&5
if eval "test \"`echo '$''{'ac_have_pragma_weak'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
ac_have_pragma_weak=no
cat > conftest_foo.$ac_ext <<'EOF'
#line 1750 "configure"
#include "confdefs.h"
#pragma weak foo = _foo
int _foo = 17;
EOF
cat > conftest_bar.$ac_ext <<'EOF'
#line 1756 "configure"
#include "confdefs.h"
extern int foo;

int t() {
  return foo;
}

int main() {
  return t();
}
EOF
if { (eval echo configure:1768: \"$'CC -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest_foo.$ac_ext conftest_bar.$ac_ext 1>&5'\") 1>&5; (eval $'CC -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest_foo.$ac_ext conftest_bar.$ac_ext 1>&5') 2>&5; }; then
ac_have_pragma_weak=yes
fi
rm -rf conftest*

fi

if test "$ac_have_pragma_weak" = "yes"; then
	cat >> confdefs.h <<\EOF
#define HAVE_PRAGMA_WEAK 1
EOF
fi
echo "$ac_t""$ac_have_pragma_weak" 1>&6
fi


echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
echo "configure:1785: checking whether byte ordering is bigendian" >&5
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_bigendian=unknown
# See if sys/param.h defines the BYTE_ORDER macro.
cat > conftest.$ac_ext <<EOF
#line 1792 "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; }
EOF
if { (eval echo configure:1803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  # It does; now see whether it defined to BIG_ENDIAN or not.
cat > conftest.$ac_ext <<EOF
#line 1807 "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; }
EOF
if { (eval echo configure:1818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_bigendian=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_c_bigendian=no
fi
rm -f conftest*
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
if test $ac_cv_c_bigendian = unknown; then
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 1838 "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:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_bigendian=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_bigendian=yes
fi
rm -fr conftest*
fi

fi
fi

echo "$ac_t""$ac_cv_c_bigendian" 1>&6
if test $ac_cv_c_bigendian = yes; then
  cat >> confdefs.h <<\EOF
#define WORDS_BIGENDIAN 1
EOF

fi


echo $ac_n "checking for working const""... $ac_c" 1>&6
echo "configure:1876: checking for working const" >&5
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1881 "configure"
#include "confdefs.h"

int main() {

/* 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:1930: \"$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
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_c_const" 1>&6
if test $ac_cv_c_const = no; then
  cat >> confdefs.h <<\EOF
#define const 
EOF

fi




echo $ac_n "checking for NEXTSTEP""... $ac_c" 1>&6
echo "configure:1954: checking for NEXTSTEP" >&5
if eval "test \"`echo '$''{'krb_cv_sys_nextstep'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1959 "configure"
#include "confdefs.h"
#ifdef NeXT
	yes
#endif 

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  krb_cv_sys_nextstep=yes
else
  rm -rf conftest*
  krb_cv_sys_nextstep=no
fi
rm -f conftest*
 
fi

if test "$krb_cv_sys_nextstep" = "yes"; then
  CFLAGS="$CFLAGS -posix"
  LIBS="$LIBS -posix"
fi
echo "$ac_t""$krb_cv_sys_nextstep" 1>&6


echo $ac_n "checking for AIX""... $ac_c" 1>&6
echo "configure:1986: checking for AIX" >&5
if eval "test \"`echo '$''{'krb_cv_sys_aix'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 1991 "configure"
#include "confdefs.h"
#ifdef _AIX
	yes
#endif 

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "yes" >/dev/null 2>&1; then
  rm -rf conftest*
  krb_cv_sys_aix=yes
else
  rm -rf conftest*
  krb_cv_sys_aix=no
fi
rm -f conftest*
 
fi

echo "$ac_t""$krb_cv_sys_aix" 1>&6


if test "$krb_cv_sys_aix" = yes ;then
	AFS_EXTRA_OBJS='$(srcdir)/afsl.exp dlfcn.o'
	
	AFS_EXTRA_LIBS=afslib.so
	
fi

#
# AIX needs /lib/pse.exp for getmsg, but alas that file is broken in
# AIX414
#

if test -f /lib/pse.exp ;then
	LIBS="$LIBS -Wl,-bI:/lib/pse.exp"
fi


echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:2031: 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
else
  cat > conftest.$ac_ext <<EOF
#line 2036 "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:2044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
  rm -rf conftest*
  ac_cv_header_stdc=yes
else
  echo "$ac_err" >&5
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_stdc=no
fi
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 2061 "configure"
#include "confdefs.h"
#include <string.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "memchr" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  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 <<EOF
#line 2079 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "free" >/dev/null 2>&1; then
  :
else
  rm -rf conftest*
  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 <<EOF
#line 2100 "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); }

EOF
if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_header_stdc=no
fi
rm -fr conftest*
fi

fi
fi

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

fi


for ac_hdr in arpa/ftp.h arpa/inet.h arpa/nameser.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2139: 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 2144 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in arpa/telnet.h bind/bitypes.h bsd/bsd.h bsdsetjmp.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2179: 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 2184 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in crypt.h dbm.h dirent.h err.h fcntl.h grp.h io.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2219: 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 2224 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in lastlog.h login.h maillock.h ndbm.h net/if.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2259: 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 2264 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in net/if_tun.h net/if_var.h netdb.h netinet/in.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2299: 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 2304 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in netinet/in6_machtypes.h netinet/in_systm.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2339: 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 2344 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in netinet/ip.h netinet/tcp.h paths.h pty.h pwd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2379: 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 2384 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in resolv.h rpcsvc/dbm.h sac.h security/pam_modules.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2419: 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 2424 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in shadow.h siad.h signal.h stropts.h sys/bitypes.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2459: 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 2464 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in sys/category.h sys/cdefs.h sys/file.h sys/filio.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2499: 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 2504 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in sys/ioccom.h sys/ioctl.h sys/locking.h sys/mman.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2539: 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 2544 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in sys/param.h sys/proc.h sys/ptyio.h sys/ptyvar.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2579: 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 2584 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in sys/resource.h sys/select.h sys/socket.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2619: 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 2624 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in sys/sockio.h sys/stat.h sys/str_tty.h sys/stream.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2659: 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 2664 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2669: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in sys/stropts.h sys/strtty.h sys/syscall.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2699: 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 2704 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in sys/sysctl.h sys/termio.h sys/time.h sys/timeb.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2739: 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 2744 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in sys/times.h sys/tty.h sys/types.h sys/uio.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2779: 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 2784 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in sys/un.h sys/utsname.h sys/wait.h syslog.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2819: 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 2824 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in termio.h termios.h tmpdir.h ttyent.h udb.h ulimit.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2859: 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 2864 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in unistd.h userpw.h usersec.h util.h utime.h utmp.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2899: 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 2904 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_hdr in utmpx.h wait.h winsock.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:2939: 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 2944 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:2949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done


echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:2977: 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 2982 "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:2991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_header_time=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_time=no
fi
rm -f conftest*
fi

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

fi

echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
echo "configure:3012: checking for sys_siglist declaration in signal.h or unistd.h" >&5
if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 3017 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <signal.h>
/* NetBSD declares sys_siglist in unistd.h.  */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main() {
char *msg = *(sys_siglist + 1);
; return 0; }
EOF
if { (eval echo configure:3029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_decl_sys_siglist=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_decl_sys_siglist=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
if test $ac_cv_decl_sys_siglist = yes; then
  cat >> confdefs.h <<\EOF
#define SYS_SIGLIST_DECLARED 1
EOF

fi



for i in int8_t int16_t int32_t int64_t; do
	echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:3053: 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 3059 "configure"
#include "confdefs.h"

#include "confdefs.h"
#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() {
$i x;

; return 0; }
EOF
if { (eval echo configure:3081: \"$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

	eval ac_res=\$ac_cv_type_$i
	if test "$ac_res" = yes; then
		type=HAVE_`echo $i | tr 'a-z' 'A-Z'`
		cat >> confdefs.h <<EOF
#define $type 1
EOF

	fi
	echo "$ac_t""$ac_res" 1>&6
done


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:3107: 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 3113 "configure"
#include "confdefs.h"

#include "confdefs.h"
#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() {
$i x;

; return 0; }
EOF
if { (eval echo configure:3135: \"$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

	eval ac_res=\$ac_cv_type_$i
	if test "$ac_res" = yes; then
		type=HAVE_`echo $i | tr 'a-z' 'A-Z'`
		cat >> confdefs.h <<EOF
#define $type 1
EOF

	fi
	echo "$ac_t""$ac_res" 1>&6
done







echo $ac_n "checking for socket""... $ac_c" 1>&6
echo "configure:3165: 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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3178 "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() {
socket(0,0,0)
; return 0; }
EOF
if { (eval echo configure:3190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_socket"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs socket"@@@@@@
@@@@@@libs="$libs socket"@@@@@@
END

eval "ac_tr_func=HAVE_`echo socket | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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 "$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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
fi




echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
echo "configure:3257: 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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3270 "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() {
gethostbyname("foo")
; return 0; }
EOF
if { (eval echo configure:3282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
else
  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"
fi

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs gethostbyname"@@@@@@
@@@@@@libs="$libs nsl"@@@@@@
END

eval "ac_tr_func=HAVE_`echo gethostbyname | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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 "$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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
fi






echo $ac_n "checking for odm_initialize""... $ac_c" 1>&6
echo "configure:3351: checking for odm_initialize" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_odm_initialize'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_odm_initialize\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" odm; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3364 "configure"
#include "confdefs.h"

int main() {
odm_initialize()
; return 0; }
EOF
if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_odm_initialize=$ac_lib; else ac_cv_funclib_odm_initialize=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_odm_initialize=\${ac_cv_funclib_odm_initialize-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_odm_initialize"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs odm_initialize"@@@@@@
@@@@@@libs="$libs odm"@@@@@@
END

eval "ac_tr_func=HAVE_`echo odm_initialize | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_odm_initialize=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_odm_initialize=yes"
	eval "LIB_odm_initialize="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_odm_initialize=no"
	eval "LIB_odm_initialize="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_odm_initialize=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


if test -n "$LIB_odm_initialize"; then
	LIBS="$LIB_odm_initialize $LIBS"
fi




echo $ac_n "checking for getattr""... $ac_c" 1>&6
echo "configure:3438: checking for getattr" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getattr'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_getattr\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" cfg; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3451 "configure"
#include "confdefs.h"

int main() {
getattr()
; return 0; }
EOF
if { (eval echo configure:3458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getattr=$ac_lib; else ac_cv_funclib_getattr=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_getattr=\${ac_cv_funclib_getattr-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getattr"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs getattr"@@@@@@
@@@@@@libs="$libs cfg"@@@@@@
END

eval "ac_tr_func=HAVE_`echo getattr | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_getattr=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_getattr=yes"
	eval "LIB_getattr="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_getattr=no"
	eval "LIB_getattr="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_getattr=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


if test -n "$LIB_getattr"; then
	LIBS="$LIB_getattr $LIBS"
fi




echo $ac_n "checking for setpcred""... $ac_c" 1>&6
echo "configure:3525: checking for setpcred" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_setpcred'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_setpcred\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" s; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3538 "configure"
#include "confdefs.h"

int main() {
setpcred()
; return 0; }
EOF
if { (eval echo configure:3545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setpcred=$ac_lib; else ac_cv_funclib_setpcred=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_setpcred=\${ac_cv_funclib_setpcred-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_setpcred"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs setpcred"@@@@@@
@@@@@@libs="$libs s"@@@@@@
END

eval "ac_tr_func=HAVE_`echo setpcred | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_setpcred=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_setpcred=yes"
	eval "LIB_setpcred="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_setpcred=no"
	eval "LIB_setpcred="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_setpcred=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


if test -n "$LIB_setpcred"; then
	LIBS="$LIB_setpcred $LIBS"
fi




echo $ac_n "checking for logwtmp""... $ac_c" 1>&6
echo "configure:3612: 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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3625 "configure"
#include "confdefs.h"

int main() {
logwtmp()
; return 0; }
EOF
if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
else
  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"
fi

fi


eval "ac_res=\$ac_cv_funclib_logwtmp"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs logwtmp"@@@@@@
@@@@@@libs="$libs util"@@@@@@
END

eval "ac_tr_func=HAVE_`echo logwtmp | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_logwtmp=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_logwtmp=yes"
	eval "LIB_logwtmp="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_logwtmp"; then
	LIBS="$LIB_logwtmp $LIBS"
fi





echo $ac_n "checking for logout""... $ac_c" 1>&6
echo "configure:3700: checking for logout" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_logout'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_logout\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" util; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3713 "configure"
#include "confdefs.h"

int main() {
logout()
; return 0; }
EOF
if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_logout"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs logout"@@@@@@
@@@@@@libs="$libs util"@@@@@@
END

eval "ac_tr_func=HAVE_`echo logout | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_logout=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_logout=yes"
	eval "LIB_logout="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_logout=no"
	eval "LIB_logout="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_logout=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


if test -n "$LIB_logout"; then
	LIBS="$LIB_logout $LIBS"
fi



echo $ac_n "checking for tgetent""... $ac_c" 1>&6
echo "configure:3786: 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; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 3799 "configure"
#include "confdefs.h"

int main() {
tgetent()
; return 0; }
EOF
if { (eval echo configure:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_tgetent"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs tgetent"@@@@@@
@@@@@@libs="$libs termcap"@@@@@@
END

eval "ac_tr_func=HAVE_`echo tgetent | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_tgetent=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
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:3871: checking for X" >&5

# 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 eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&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

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

  # First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
#line 3933 "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:3938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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

if test "$ac_x_libraries" = NO; then
  # Check for the libraries.

  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc

  # 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 4007 "configure"
#include "confdefs.h"

int main() {
${x_direct_test_function}()
; return 0; }
EOF
if { (eval echo configure:4014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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
fi
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no

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

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

  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 . . . .
    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:4120: 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 4123 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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 4146 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

  # 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@@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:4185: 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 4193 "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:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"

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

    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:4226: 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 4234 "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:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"

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

    fi

    # 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:4274: 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 4279 "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();

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
gethostbyname();
#endif

; return 0; }
EOF
if { (eval echo configure:4302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_gethostbyname = no; then
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
echo "configure:4323: 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 4331 "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();

int main() {
gethostbyname()
; return 0; }
EOF
if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"

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

    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@@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:4372: 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 4377 "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();

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_connect) || defined (__stub___connect)
choke me
#else
connect();
#endif

; return 0; }
EOF
if { (eval echo configure:4400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_connect = no; then
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
echo "configure:4421: 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 4429 "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:4440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"

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

    fi

    # gomez@@mi.uni-erlangen.de says -lposix is necessary on A/UX.
    echo $ac_n "checking for remove""... $ac_c" 1>&6
echo "configure:4464: 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 4469 "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();

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_remove) || defined (__stub___remove)
choke me
#else
remove();
#endif

; return 0; }
EOF
if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_remove = no; then
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
echo "configure:4513: 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 4521 "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:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"

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

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
echo "configure:4556: 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 4561 "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();

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_shmat) || defined (__stub___shmat)
choke me
#else
shmat();
#endif

; return 0; }
EOF
if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "ac_cv_func_shmat=yes"
else
  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

if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_shmat = no; then
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
echo "configure:4605: 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 4613 "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:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"

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

    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.
  #  --interran@@uluru.Stanford.EDU, kb@@cs.umb.edu.
  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
echo "configure:4657: 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  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4665 "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:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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"

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

  LDFLAGS="$ac_save_LDFLAGS"

fi

if test "$no_x" = "yes" ; then
	MAKE_X_PROGS_BIN=""
	MAKE_X_PROGS_LIBEXEC=""
else
	MAKE_X_PROGS_BIN='$(X_PROGS_BIN)'
	MAKE_X_PROGS_LIBEXEC='$(X_PROGS_LIBEXEC)'
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 $ac_n "checking for XauReadAuth""... $ac_c" 1>&6
echo "configure:4718: 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 "" Xau X11; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 4731 "configure"
#include "confdefs.h"

int main() {
XauReadAuth()
; return 0; }
EOF
if { (eval echo configure:4738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

fi


eval "ac_res=\$ac_cv_funclib_XauReadAuth"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs XauReadAuth"@@@@@@
@@@@@@libs="$libs Xau X11"@@@@@@
END

eval "ac_tr_func=HAVE_`echo XauReadAuth | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_XauReadAuth=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


ac_xxx="$LIBS"
LIBS="$LIB_XauReadAuth $LIBS"
for ac_func in XauWriteAuth
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:4802: 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 4807 "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:4830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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

if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  XauWriteAuth_c=writeauth.c
  XauWriteAuth_o=writeauth.o
fi
LIBS="$ac_xxx"

CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS


save_LIBS="$LIBS"


echo $ac_n "checking for dbopen""... $ac_c" 1>&6
echo "configure:4869: checking for dbopen" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_dbopen'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 4882 "configure"
#include "confdefs.h"

int main() {
dbopen()
; return 0; }
EOF
if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_dbopen"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs dbopen"@@@@@@
@@@@@@libs="$libs $berkeley_db"@@@@@@
END

eval "ac_tr_func=HAVE_`echo dbopen | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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 "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_dbopen=no"
	eval "LIB_dbopen="
	echo "$ac_t""no" 1>&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 "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


LIBS="$LIB_dbopen $LIBS"


echo $ac_n "checking for dbm_firstkey""... $ac_c" 1>&6
echo "configure:4952: 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
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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 4965 "configure"
#include "confdefs.h"

int main() {
dbm_firstkey()
; return 0; }
EOF
if { (eval echo configure:4972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
rm -f conftest*
	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"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs dbm_firstkey"@@@@@@
@@@@@@libs="$libs $berkeley_db gdbm ndbm"@@@@@@
END

eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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 "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_dbm_firstkey=no"
	eval "LIB_dbm_firstkey="
	echo "$ac_t""no" 1>&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 "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_dbopen"; then
  LIB_DBM="$LIB_dbopen"
else
  LIB_DBM="$LIB_dbm_firstkey"
fi
LIBS="$save_LIBS"




echo $ac_n "checking for syslog""... $ac_c" 1>&6
echo "configure:5042: 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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5055 "configure"
#include "confdefs.h"

int main() {
syslog()
; return 0; }
EOF
if { (eval echo configure:5062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_syslog"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs syslog"@@@@@@
@@@@@@libs="$libs syslog"@@@@@@
END

eval "ac_tr_func=HAVE_`echo syslog | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_syslog=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
fi


echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
echo "configure:5127: 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
else
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 5136 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
EOF
if { (eval echo configure:5148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  :
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_snprintf_working=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_snprintf_working" 1>&6
: << END
@@@@@@funcs="$funcs snprintf"@@@@@@
END
if test "$ac_cv_func_snprintf_working" = yes; then
	foo=HAVE_SNPRINTF
	cat >> confdefs.h <<EOF
#define $foo 1
EOF

fi

for ac_func in asnprintf asprintf vasprintf vasnprintf vsnprintf
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5177: 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 5182 "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:5205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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



for ac_func in _getpty _scrsize _setsid _stricmp fchmod fcntl flock
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5234: 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 5239 "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:5262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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

for ac_func in forkpty frevoke gethostname getlogin getpriority getservbyname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5289: 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 5294 "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:5317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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

for ac_func in getspnam getspuid gettimeofday getuid grantpt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5344: 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 5349 "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:5372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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

for ac_func in innetgr iruserok mktime ptsname rand random
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5399: 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 5404 "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:5427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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

for ac_func in revoke setitimer setlogin setpgid setpriority
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5454: 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 5459 "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:5482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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

for ac_func in setproctitle setregid setresgid setresuid setreuid setsid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5509: 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 5514 "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:5537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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

for ac_func in setutent swab ttyname ttyslot ulimit uname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5564: 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 5569 "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:5592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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

for ac_func in unlockpt vhangup yp_get_default_domain
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5619: 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 5624 "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:5647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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



echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6
echo "configure:5674: 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
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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5687 "configure"
#include "confdefs.h"

int main() {
getpwnam_r()
; return 0; }
EOF
if { (eval echo configure:5694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
rm -f conftest*
	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"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs getpwnam_r"@@@@@@
@@@@@@libs="$libs c_r"@@@@@@
END

eval "ac_tr_func=HAVE_`echo getpwnam_r | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	echo "$ac_t""no" 1>&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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test "$ac_cv_func_getpwnam_r" = yes; then
	echo $ac_n "checking if getpwnam_r is posix""... $ac_c" 1>&6
echo "configure:5755: 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
else
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 5765 "configure"
#include "confdefs.h"

#include <pwd.h>
int main()
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}

EOF
if { (eval echo configure:5776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./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
fi
rm -fr conftest*
fi

LIBS="$ac_libs"
fi

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

fi
fi



echo $ac_n "checking for getsockopt""... $ac_c" 1>&6
echo "configure:5803: checking for getsockopt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getsockopt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5816 "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; }
EOF
if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getsockopt"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs getsockopt"@@@@@@
@@@@@@libs="$libs "@@@@@@
END

eval "ac_tr_func=HAVE_`echo getsockopt | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$ac_t""no" 1>&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

	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 setsockopt""... $ac_c" 1>&6
echo "configure:5890: checking for setsockopt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_setsockopt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 5903 "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; }
EOF
if { (eval echo configure:5915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_setsockopt"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs setsockopt"@@@@@@
@@@@@@libs="$libs "@@@@@@
END

eval "ac_tr_func=HAVE_`echo setsockopt | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
	echo "$ac_t""no" 1>&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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac



for ac_func in getudbnam setlim
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5978: 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 5983 "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:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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





echo $ac_n "checking for res_search""... $ac_c" 1>&6
echo "configure:6035: 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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 6048 "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

int main() {
res_search(0,0,0,0,0)
; return 0; }
EOF
if { (eval echo configure:6069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	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"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs res_search"@@@@@@
@@@@@@libs="$libs resolv"@@@@@@
END

eval "ac_tr_func=HAVE_`echo res_search | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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 <<EOF
#define $ac_tr_func 1
EOF

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
fi





echo $ac_n "checking for dn_expand""... $ac_c" 1>&6
echo "configure:6137: 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
else
  
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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 6150 "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

int main() {
dn_expand(0,0,0,0,0)
; return 0; }
EOF
if { (eval echo configure:6171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	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"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs dn_expand"@@@@@@
@@@@@@libs="$libs resolv"@@@@@@
END

eval "ac_tr_func=HAVE_`echo dn_expand | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
fi



for ac_hdr in unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:6240: 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 6245 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
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
fi
done

for ac_func in getpagesize
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6279: 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 6284 "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:6307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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

echo $ac_n "checking for working mmap""... $ac_c" 1>&6
echo "configure:6332: checking for working mmap" >&5
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
  cat > conftest.$ac_ext <<EOF
#line 6340 "configure"
#include "confdefs.h"

/* 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 filesystem buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propogated 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 <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
# ifdef HAVE_UNISTD_H
#  include <unistd.h>
# endif

/* 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 */

#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
#else
char *malloc();
#endif

int
main()
{
	char *data, *data2, *data3;
	int i, pagesize;
	int fd;

	pagesize = getpagesize();

	/*
	 * First, make a file with some known garbage in it.
	 */
	data = malloc(pagesize);
	if (!data)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		*(data + i) = rand();
	umask(0);
	fd = creat("conftestmmap", 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("conftestmmap", O_RDWR);
	if (fd < 0)
		exit(1);
	data2 = 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 = 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);
	unlink("conftestmmap");
	exit(0);
}

EOF
if { (eval echo configure:6480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_mmap_fixed_mapped=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_mmap_fixed_mapped=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_MMAP 1
EOF

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo "configure:6505: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6510 "configure"
#include "confdefs.h"
#include <alloca.h>
int main() {
char *p = alloca(2 * sizeof(int));
; return 0; }
EOF
if { (eval echo configure:6517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_header_alloca_h=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_header_alloca_h=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
EOF

fi

echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo "configure:6538: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6543 "configure"
#include "confdefs.h"

#ifdef __GNUC__
# define alloca __builtin_alloca
#else
# if HAVE_ALLOCA_H
#  include <alloca.h>
# else
#  ifdef _AIX
 #pragma alloca
#  else
#   ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#   endif
#  endif
# endif
#endif

int main() {
char *p = (char *) alloca(1);
; return 0; }
EOF
if { (eval echo configure:6566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_func_alloca_works=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_func_alloca_works=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
if test $ac_cv_func_alloca_works = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA 1
EOF

fi

if test $ac_cv_func_alloca_works = no; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # contain a buggy version.  If you still want to use their alloca,
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  ALLOCA=alloca.o
  cat >> confdefs.h <<\EOF
#define C_ALLOCA 1
EOF


echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo "configure:6598: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 6603 "configure"
#include "confdefs.h"
#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif

EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "webecray" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_os_cray=yes
else
  rm -rf conftest*
  ac_cv_os_cray=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6628: 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 6633 "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:6656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<EOF
#define CRAY_STACKSEG_END $ac_func
EOF

  break
else
  echo "$ac_t""no" 1>&6
fi

done
fi

echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo "configure:6683: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
else
  cat > conftest.$ac_ext <<EOF
#line 6691 "configure"
#include "confdefs.h"
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}
main ()
{
  exit (find_stack_direction() < 0);
}
EOF
if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_stack_direction=1
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_stack_direction=-1
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
cat >> confdefs.h <<EOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
EOF

fi


#
# Test for POSIX (broken) getlogin
#

if test "$ac_cv_func_getlogin" = yes; then
echo $ac_n "checking if getlogin is posix""... $ac_c" 1>&6
echo "configure:6738: 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

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

fi
fi




echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
echo "configure:6764: checking for hstrerror" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_hstrerror'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 6777 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
int main() {
hstrerror(17)
; return 0; }
EOF
if { (eval echo configure:6786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_hstrerror"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs hstrerror"@@@@@@
@@@@@@libs="$libs resolv"@@@@@@
END

eval "ac_tr_func=HAVE_`echo hstrerror | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_hstrerror=$ac_res"

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 "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
	echo "$ac_t""no" 1>&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 "$ac_t""yes, in $ac_res" 1>&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


for ac_func in chown daemon err errx fchown getcwd getdtablesize getopt
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6857: 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 6862 "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:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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 '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs chown daemon err errx fchown getcwd getdtablesize getopt"@@@@@@
END
done

for ac_func in getusershell inet_aton initgroups lstat memmove mkstemp
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6919: 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 6924 "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:6947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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 '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs getusershell inet_aton initgroups lstat memmove mkstemp"@@@@@@
END
done

for ac_func in putenv rcmd setegid setenv seteuid strcasecmp strdup
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6981: 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 6986 "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:7009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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 '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs putenv rcmd setegid setenv seteuid strcasecmp strdup"@@@@@@
END
done

for ac_func in strerror strftime strlwr strnlen strtok_r strupr unsetenv
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7043: 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 7048 "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:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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 '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs strerror strftime strlwr strnlen strtok_r strupr unsetenv"@@@@@@
END
done

for ac_func in verr verrx vwarn vwarnx warn warnx
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7105: 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 7110 "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:7133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

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 '[a-z]' '[A-Z]'`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs verr verrx vwarn vwarnx warn warnx"@@@@@@
END
done



if test "$ac_cv_func_getcwd" = yes; then
echo $ac_n "checking if getcwd is broken""... $ac_c" 1>&6
echo "configure:7168: checking if getcwd is broken" >&5
if eval "test \"`echo '$''{'ac_cv_func_getcwd_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
ac_cv_func_getcwd_broken=no

if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 7179 "configure"
#include "confdefs.h"

#include <errno.h>
char *getcwd(char*, int);

void *popen(char *cmd, char *mode)
{
	errno = ENOTTY;
	return 0;
}

int main()
{
	char *ret;
	ret = getcwd(0, 1024);
	if(ret == 0 && errno == ENOTTY)
		return 0;
	return 1;
}

EOF
if { (eval echo configure:7201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_getcwd_broken=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  :
fi
rm -fr conftest*
fi


fi

if test "$ac_cv_func_getcwd_broken" = yes; then
	cat >> confdefs.h <<\EOF
#define BROKEN_GETCWD 1
EOF
	LIBOBJS="$LIBOBJS getcwd.o"
		echo "$ac_t""$ac_cv_func_getcwd_broken" 1>&6
else
	echo "$ac_t""seems ok" 1>&6
fi
fi



echo $ac_n "checking which authentication modules should be built""... $ac_c" 1>&6
echo "configure:7230: checking which authentication modules should be built" >&5

LIB_AUTH_SUBDIRS=

if test "$ac_cv_header_siad_h" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
fi

if test "$ac_cv_header_security_pam_modules_h" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
fi

case "${host}" in
*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
esac

echo "$ac_t""$LIB_AUTH_SUBDIRS" 1>&6



echo $ac_n "checking for tunnel devices""... $ac_c" 1>&6
echo "configure:7251: checking for tunnel devices" >&5

APPL_KIP_DIR=

if test "$ac_cv_header_net_if_tun_h" = "yes"; then
	APPL_KIP_DIR=kip
fi

echo "$ac_t""$ac_cv_header_net_if_tun_h" 1>&6




echo $ac_n "checking if crypt needs a prototype""... $ac_c" 1>&6
echo "configure:7265: 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
else
  cat > conftest.$ac_ext <<EOF
#line 7270 "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:7287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_crypt_noproto=yes"
else
  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
: << END
@@@@@@syms="$syms NEED_CRYPT_PROTO"@@@@@@
END




echo $ac_n "checking if strtok_r needs a prototype""... $ac_c" 1>&6
echo "configure:7315: 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
else
  cat > conftest.$ac_ext <<EOF
#line 7320 "configure"
#include "confdefs.h"

#include <string.h>

int main() {
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);

; return 0; }
EOF
if { (eval echo configure:7332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_strtok_r_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_strtok_r_noproto=no"
fi
rm -f conftest*
fi

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

fi
: << END
@@@@@@syms="$syms NEED_STRTOK_R_PROTO"@@@@@@
END




echo $ac_n "checking for h_errno""... $ac_c" 1>&6
echo "configure:7360: 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 7366 "configure"
#include "confdefs.h"
extern int h_errno;
int foo() { return h_errno; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:7374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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*

fi

eval "ac_tr_var=HAVE_H_ERRNO"


: << END
@@@@@@syms="$syms HAVE_H_ERRNO"@@@@@@
END


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 $ac_tr_var 1
EOF

	
echo $ac_n "checking if h_errno is properly declared""... $ac_c" 1>&6
echo "configure:7403: 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 7409 "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:7422: \"$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*

fi


ac_tr_var=HAVE_H_ERRNO_DECLARATION


: << END
@@@@@@syms="$syms HAVE_H_ERRNO_DECLARATION"@@@@@@
END


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 $ac_tr_var 1
EOF

fi

fi



echo $ac_n "checking for h_errlist""... $ac_c" 1>&6
echo "configure:7457: 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 7463 "configure"
#include "confdefs.h"
extern int h_errlist;
int foo() { return h_errlist; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:7471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_var_h_errlist=yes
else
  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

eval "ac_tr_var=HAVE_H_ERRLIST"


: << END
@@@@@@syms="$syms HAVE_H_ERRLIST"@@@@@@
END


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 $ac_tr_var 1
EOF

	
echo $ac_n "checking if h_errlist is properly declared""... $ac_c" 1>&6
echo "configure:7500: 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 7506 "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:7516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_h_errlist_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_h_errlist_declaration=yes"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_H_ERRLIST_DECLARATION


: << END
@@@@@@syms="$syms HAVE_H_ERRLIST_DECLARATION"@@@@@@
END


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 $ac_tr_var 1
EOF

fi

fi



echo $ac_n "checking for h_nerr""... $ac_c" 1>&6
echo "configure:7551: 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 7557 "configure"
#include "confdefs.h"
extern int h_nerr;
int foo() { return h_nerr; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:7565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  ac_cv_var_h_nerr=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_h_nerr=no
fi
rm -f conftest*

fi

eval "ac_tr_var=HAVE_H_NERR"


: << END
@@@@@@syms="$syms HAVE_H_NERR"@@@@@@
END


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 $ac_tr_var 1
EOF

	
echo $ac_n "checking if h_nerr is properly declared""... $ac_c" 1>&6
echo "configure:7594: 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 7600 "configure"
#include "confdefs.h"
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_nerr;
int main() {
h_nerr.foo = 1;
; return 0; }
EOF
if { (eval echo configure:7610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_h_nerr_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_h_nerr_declaration=yes"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_H_NERR_DECLARATION


: << END
@@@@@@syms="$syms HAVE_H_NERR_DECLARATION"@@@@@@
END


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 $ac_tr_var 1
EOF

fi

fi



echo $ac_n "checking for __progname""... $ac_c" 1>&6
echo "configure:7645: 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 7651 "configure"
#include "confdefs.h"
extern int __progname;
int foo() { return __progname; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:7659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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*

fi

eval "ac_tr_var=HAVE___PROGNAME"


: << END
@@@@@@syms="$syms HAVE___PROGNAME"@@@@@@
END


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 $ac_tr_var 1
EOF

	
echo $ac_n "checking if __progname is properly declared""... $ac_c" 1>&6
echo "configure:7688: 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 7694 "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:7704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var___progname_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var___progname_declaration=yes"
fi
rm -f conftest*

fi


ac_tr_var=HAVE___PROGNAME_DECLARATION


: << END
@@@@@@syms="$syms HAVE___PROGNAME_DECLARATION"@@@@@@
END


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 $ac_tr_var 1
EOF

fi

fi



echo $ac_n "checking if optarg is properly declared""... $ac_c" 1>&6
echo "configure:7739: 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 7745 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } optarg;
int main() {
optarg.foo = 1;
; return 0; }
EOF
if { (eval echo configure:7753: \"$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*

fi


ac_tr_var=HAVE_OPTARG_DECLARATION


: << END
@@@@@@syms="$syms HAVE_OPTARG_DECLARATION"@@@@@@
END


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 $ac_tr_var 1
EOF

fi


echo $ac_n "checking if optind is properly declared""... $ac_c" 1>&6
echo "configure:7785: 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 7791 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } optind;
int main() {
optind.foo = 1;
; return 0; }
EOF
if { (eval echo configure:7799: \"$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"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_OPTIND_DECLARATION


: << END
@@@@@@syms="$syms HAVE_OPTIND_DECLARATION"@@@@@@
END


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 $ac_tr_var 1
EOF

fi


echo $ac_n "checking if opterr is properly declared""... $ac_c" 1>&6
echo "configure:7831: 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 7837 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } opterr;
int main() {
opterr.foo = 1;
; return 0; }
EOF
if { (eval echo configure:7845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_opterr_declaration=no"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_var_opterr_declaration=yes"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_OPTERR_DECLARATION


: << END
@@@@@@syms="$syms HAVE_OPTERR_DECLARATION"@@@@@@
END


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 $ac_tr_var 1
EOF

fi


echo $ac_n "checking if optopt is properly declared""... $ac_c" 1>&6
echo "configure:7877: 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 7883 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } optopt;
int main() {
optopt.foo = 1;
; return 0; }
EOF
if { (eval echo configure:7891: \"$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"
fi
rm -f conftest*

fi


ac_tr_var=HAVE_OPTOPT_DECLARATION


: << END
@@@@@@syms="$syms HAVE_OPTOPT_DECLARATION"@@@@@@
END


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 $ac_tr_var 1
EOF

fi


echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:7923: 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
else
  cat > conftest.$ac_ext <<EOF
#line 7928 "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; }
EOF
if { (eval echo configure:7945: \"$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
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_type_signal" 1>&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

cat > conftest.$ac_ext <<EOF
#line 7971 "configure"
#include "confdefs.h"
#include <utmp.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ut_user" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_UT_USER 1
EOF

fi
rm -f conftest*

cat > conftest.$ac_ext <<EOF
#line 7986 "configure"
#include "confdefs.h"
#include <utmp.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ut_host" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_UT_HOST 1
EOF

fi
rm -f conftest*

cat > conftest.$ac_ext <<EOF
#line 8001 "configure"
#include "confdefs.h"
#include <utmp.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ut_addr" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_UT_ADDR 1
EOF

fi
rm -f conftest*

cat > conftest.$ac_ext <<EOF
#line 8016 "configure"
#include "confdefs.h"
#include <utmp.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ut_type" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_UT_TYPE 1
EOF

fi
rm -f conftest*

cat > conftest.$ac_ext <<EOF
#line 8031 "configure"
#include "confdefs.h"
#include <utmp.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ut_pid" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_UT_PID 1
EOF

fi
rm -f conftest*

cat > conftest.$ac_ext <<EOF
#line 8046 "configure"
#include "confdefs.h"
#include <utmp.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ut_id" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_UT_ID 1
EOF

fi
rm -f conftest*

cat > conftest.$ac_ext <<EOF
#line 8061 "configure"
#include "confdefs.h"
#include <utmpx.h>
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "ut_syslen" >/dev/null 2>&1; then
  rm -rf conftest*
  cat >> confdefs.h <<\EOF
#define HAVE_UT_SYSLEN 1
EOF

fi
rm -f conftest*


echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
echo "configure:8077: checking for st_blksize in struct stat" >&5
if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  cat > conftest.$ac_ext <<EOF
#line 8082 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/stat.h>
int main() {
struct stat s; s.st_blksize;
; return 0; }
EOF
if { (eval echo configure:8090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_struct_st_blksize=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_struct_st_blksize=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
if test $ac_cv_struct_st_blksize = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ST_BLKSIZE 1
EOF

fi




echo $ac_n "checking for struct winsize""... $ac_c" 1>&6
echo "configure:8114: 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 8122 "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

fi

if test "$ac_cv_struct_winsize" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_WINSIZE 1
EOF
fi
echo "$ac_t""$ac_cv_struct_winsize" 1>&6
cat > conftest.$ac_ext <<EOF
#line 8143 "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

fi
rm -f conftest*

cat > conftest.$ac_ext <<EOF
#line 8158 "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

fi
rm -f conftest*




echo $ac_n "checking for pid_t""... $ac_c" 1>&6
echo "configure:8176: 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 8181 "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 "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_pid_t=yes
else
  rm -rf conftest*
  ac_cv_type_pid_t=no
fi
rm -f conftest*

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

fi

echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
echo "configure:8209: 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
else
  cat > conftest.$ac_ext <<EOF
#line 8214 "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
else
  rm -rf conftest*
  ac_cv_type_uid_t=no
fi
rm -f conftest*

fi

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

fi

echo $ac_n "checking for off_t""... $ac_c" 1>&6
echo "configure:8243: 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
else
  cat > conftest.$ac_ext <<EOF
#line 8248 "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 "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_off_t=yes
else
  rm -rf conftest*
  ac_cv_type_off_t=no
fi
rm -f conftest*

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

fi

echo $ac_n "checking for size_t""... $ac_c" 1>&6
echo "configure:8276: 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
else
  cat > conftest.$ac_ext <<EOF
#line 8281 "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 "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  rm -rf conftest*
  ac_cv_type_size_t=yes
else
  rm -rf conftest*
  ac_cv_type_size_t=no
fi
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

fi



echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:8311: checking for sa_len in struct sockaddr" >&5
if eval "test \"`echo '$''{'krb_cv_struct_sockaddr_sa_len'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 8317 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/socket.h>
int main() {
struct sockaddr sa;
int foo = sa.sa_len;
; return 0; }
EOF
if { (eval echo configure:8326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  krb_cv_struct_sockaddr_sa_len=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  krb_cv_struct_sockaddr_sa_len=no
fi
rm -f conftest*

fi

echo "$ac_t""$krb_cv_struct_sockaddr_sa_len" 1>&6
if test "$krb_cv_struct_sockaddr_sa_len" = yes; then
	cat >> confdefs.h <<\EOF
#define SOCKADDR_HAS_SA_LEN 1
EOF

fi


if test "$ac_cv_header_siad_h" = yes; then
echo $ac_n "checking for ouid in struct siaentity""... $ac_c" 1>&6
echo "configure:8350: checking for ouid in struct siaentity" >&5
if eval "test \"`echo '$''{'krb_cv_struct_siaentity_ouid'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 8356 "configure"
#include "confdefs.h"
#include <siad.h>

int main() {
SIAENTITY e;
int foo = e.ouid;
; return 0; }
EOF
if { (eval echo configure:8365: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  krb_cv_struct_siaentity_ouid=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  krb_cv_struct_siaentity_ouid=no
fi
rm -f conftest*

fi

echo "$ac_t""$krb_cv_struct_siaentity_ouid" 1>&6
if test "$krb_cv_struct_siaentity_ouid" = yes; then
	cat >> confdefs.h <<\EOF
#define SIAENTITY_HAS_OUID 1
EOF

fi
fi


echo $ac_n "checking for working getmsg""... $ac_c" 1>&6
echo "configure:8389: checking for working getmsg" >&5
if eval "test \"`echo '$''{'ac_cv_func_getmsg'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  ac_cv_func_getmsg=no
else
  cat > conftest.$ac_ext <<EOF
#line 8397 "configure"
#include "confdefs.h"

#include <stdio.h>

int main()
{
  getmsg(open("/dev/null", 0), NULL, NULL, NULL);
  return 0;
}

EOF
if { (eval echo configure:8409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_getmsg=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_func_getmsg=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_getmsg" 1>&6
test "$ac_cv_func_getmsg" = "yes" &&
cat >> confdefs.h <<\EOF
#define HAVE_GETMSG 1
EOF



save_LIBS="$LIBS"
LIBS="$LIB_DBM $LIBS"
echo $ac_n "checking for berkeley db""... $ac_c" 1>&6
echo "configure:8434: checking for berkeley db" >&5
if eval "test \"`echo '$''{'krb_cv_lib_berkeleydb'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test "$cross_compiling" = yes; then
  krb_cv_lib_berkeleydb=no
else
  cat > conftest.$ac_ext <<EOF
#line 8442 "configure"
#include "confdefs.h"

#include <unistd.h>
#include <fcntl.h>
#include <ndbm.h>
int main()
{
  DBM *d;

  d = dbm_open("conftest", O_RDWR | O_CREAT, 0666);
  if(d == NULL)
    return 1;
  dbm_close(d);
  return access("conftest.db", F_OK) != 0;
}
EOF
if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
then
  krb_cv_lib_berkeleydb=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  krb_cv_lib_berkeleydb=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$krb_cv_lib_berkeleydb" 1>&6
test "$krb_cv_lib_berkeleydb" = "yes" &&
cat >> confdefs.h <<\EOF
#define HAVE_NEW_DB 1
EOF

LIBS="$save_LIBS"




echo $ac_n "checking for el_init""... $ac_c" 1>&6
echo "configure:8485: 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"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 8498 "configure"
#include "confdefs.h"

int main() {
el_init()
; return 0; }
EOF
if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; 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

fi


eval "ac_res=\$ac_cv_funclib_el_init"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs el_init"@@@@@@
@@@@@@libs="$libs edit"@@@@@@
END

eval "ac_tr_func=HAVE_`echo el_init | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
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 <<EOF
#define $ac_tr_func 1
EOF

	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

	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 readline""... $ac_c" 1>&6
echo "configure:8567: checking for readline" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_readline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_readline\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" readline; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
			LIBS="$ac_lib $ac_save_LIBS"
		fi
		cat > conftest.$ac_ext <<EOF
#line 8580 "configure"
#include "confdefs.h"

int main() {
readline()
; return 0; }
EOF
if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  rm -rf conftest*
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_readline=$ac_lib; else ac_cv_funclib_readline=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_readline=\${ac_cv_funclib_readline-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_readline"

# autoheader tricks *sigh*
: << END
@@@@@@funcs="$funcs readline"@@@@@@
@@@@@@libs="$libs readline"@@@@@@
END

eval "ac_tr_func=HAVE_`echo readline | tr '[a-z]' '[A-Z]'`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr '[a-z]' '[A-Z]'`"
eval "LIB_readline=$ac_res"

case "$ac_res" in
	yes)
	eval "ac_cv_func_readline=yes"
	eval "LIB_readline="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_readline=no"
	eval "LIB_readline="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_readline=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



if test "$with_readline"; then
	cat >> confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF

	editline_OBJS=
	LIB_readline="$READLINELIB "'$(LIB_tgetent)'
	INCLUDE_readline="$READLINEINCLUDE"
elif test "$ac_cv_func_el_init" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF


	editline_OBJS=edit_compat.o
	LIB_readline='-L$(topdir)/lib/editline -leditline '"$LIB_el_init"' $(LIB_tgetent)'

	INCLUDE_readline='-I$(topdir)/lib/editline -I$(top_srcdir)/lib/editline'
elif test "$ac_cv_func_readline" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF

	editline_OBJS=
	LIB_readline='-lreadline $(LIB_tgetent)'
	INCLUDE_readline=
else
	cat >> confdefs.h <<\EOF
#define HAVE_READLINE 1
EOF

	editline_OBJS="editline.o complete.o sysunix.o"
	LIB_readline='-L$(topdir)/lib/editline -leditline $(LIB_tgetent)'
	INCLUDE_readline='-I$(topdir)/lib/editline -I$(top_srcdir)/lib/editline'
fi





cat >> confdefs.h <<\EOF
#define AUTHENTICATION 1
EOF
cat >> confdefs.h <<\EOF
#define KRB4 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

# 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

echo $ac_n "checking for streamspty""... $ac_c" 1>&6
echo "configure:8712: checking for streamspty" >&5
case "`uname -sr`" in
SunOS\ 4*|OSF1*|IRIX\ 4*|HP-UX\ ?.10.*)
	krb_cv_sys_streamspty=no
	;;
AIX*)
	os_rel=`uname -v`.`uname -r`
	if expr "$os_rel" : "3*" >/dev/null 2>&1; then
		krb_cv_sys_streamspty=no
	else
		krb_cv_sys_streamspty="$ac_cv_func_getmsg"
	fi
	;;
*)
	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

fi
echo "$ac_t""$krb_cv_sys_streamspty" 1>&6

echo $ac_n "checking if /bin/ls takes -A""... $ac_c" 1>&6
echo "configure:8738: checking if /bin/ls takes -A" >&5
if /bin/ls -A > /dev/null 2>&1 ;then
	cat >> confdefs.h <<\EOF
#define HAVE_LS_A 1
EOF

	krb_ls_a=yes
else
	krb_ls_a=no
fi
echo "$ac_t""$krb_ls_a" 1>&6
	
echo $ac_n "checking for suffix of preformatted manual pages""... $ac_c" 1>&6
echo "configure:8751: checking for suffix of preformatted manual pages" >&5
if eval "test \"`echo '$''{'krb_cv_sys_cat_suffix'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if grep _version /etc/man.conf > /dev/null 2>&1; then
	krb_cv_sys_cat_suffix=0
else
	krb_cv_sys_cat_suffix=number
fi
fi

echo "$ac_t""$krb_cv_sys_cat_suffix" 1>&6
if test "$krb_cv_sys_cat_suffix" = number; then
		CATSUFFIX='$$s'
else
		CATSUFFIX=0
fi



KRB_KAFS_LIB='-L$(topdir)/lib/kafs -lkafs'
if test "$krb_cv_sys_aix" = yes; then
	KRB_KAFS_LIB="$KRB_KAFS_LIB -lld"
fi




test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

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

done

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) 2>&1 | grep '^ac_space'` 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

trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15

test "x$prefix" = xNONE && prefix=$ac_default_prefix
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

# 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

trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15

DEFS=-DHAVE_CONFIG_H

# Without the "./", some shells look in PATH for config.status.
: ${CONFIG_STATUS=./config.status}

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.

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.12"
    exit 0 ;;
  -help | --help | --hel | --he | --h)
    echo "\$ac_cs_usage"; exit 0 ;;
  *) echo "\$ac_cs_usage"; exit 1 ;;
  esac
done

ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"

trap 'rm -fr `echo "\
Makefile 					\
include/Makefile				\
include/sys/Makefile				\
						\
util/Makefile					\
util/et/Makefile				\
						\
man/Makefile					\
						\
lib/Makefile					\
lib/des/Makefile				\
lib/krb/Makefile				\
lib/kdb/Makefile				\
lib/kadm/Makefile				\
lib/acl/Makefile				\
lib/kafs/Makefile				\
lib/roken/Makefile				\
lib/otp/Makefile				\
lib/sl/Makefile					\
lib/editline/Makefile				\
lib/auth/Makefile				\
lib/auth/pam/Makefile				\
lib/auth/sia/Makefile				\
lib/auth/afskauthlib/Makefile			\
						\
kuser/Makefile					\
server/Makefile					\
slave/Makefile					\
admin/Makefile					\
kadmin/Makefile					\
						\
appl/Makefile					\
						\
appl/afsutil/Makefile 				\
appl/ftp/Makefile				\
appl/ftp/common/Makefile			\
appl/ftp/ftp/Makefile				\
appl/ftp/ftpd/Makefile				\
appl/telnet/Makefile				\
appl/telnet/libtelnet/Makefile			\
appl/telnet/telnet/Makefile			\
appl/telnet/telnetd/Makefile			\
appl/bsd/Makefile 				\
appl/kauth/Makefile				\
appl/kpopper/Makefile				\
appl/movemail/Makefile				\
appl/sample/Makefile				\
appl/xnlock/Makefile				\
appl/kx/Makefile				\
appl/kip/Makefile				\
appl/otp/Makefile				\
doc/Makefile					\
 include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF

# 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%@@CFLAGS@@%$CFLAGS%g
s%@@CPPFLAGS@@%$CPPFLAGS%g
s%@@CXXFLAGS@@%$CXXFLAGS%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%@@PACKAGE@@%$PACKAGE%g
s%@@VERSION@@%$VERSION%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%@@SET_MAKE@@%$SET_MAKE%g
s%@@LN_S@@%$LN_S%g
s%@@CC@@%$CC%g
s%@@CPP@@%$CPP%g
s%@@YACC@@%$YACC%g
s%@@LEX@@%$LEX%g
s%@@LEXLIB@@%$LEXLIB%g
s%@@RANLIB@@%$RANLIB%g
s%@@INSTALL_PROGRAM@@%$INSTALL_PROGRAM%g
s%@@INSTALL_DATA@@%$INSTALL_DATA%g
s%@@MAKEINFO@@%$MAKEINFO%g
s%@@SOCKSINCLUDE@@%$SOCKSINCLUDE%g
s%@@SOCKSLIB@@%$SOCKSLIB%g
s%@@CRACKLIB@@%$CRACKLIB%g
s%@@READLINEINCLUDE@@%$READLINEINCLUDE%g
s%@@READLINELIB@@%$READLINELIB%g
s%@@REAL_PICFLAGS@@%$REAL_PICFLAGS%g
s%@@REAL_SHLIBEXT@@%$REAL_SHLIBEXT%g
s%@@REAL_LD_FLAGS@@%$REAL_LD_FLAGS%g
s%@@PICFLAGS@@%$PICFLAGS%g
s%@@SHLIBEXT@@%$SHLIBEXT%g
s%@@LDSHARED@@%$LDSHARED%g
s%@@LD_FLAGS@@%$LD_FLAGS%g
s%@@LIBEXT@@%$LIBEXT%g
s%@@LIBPREFIX@@%$LIBPREFIX%g
s%@@EXECSUFFIX@@%$EXECSUFFIX%g
s%@@AFS_EXTRA_OBJS@@%$AFS_EXTRA_OBJS%g
s%@@AFS_EXTRA_LIBS@@%$AFS_EXTRA_LIBS%g
s%@@ac_cv_header_sys_cdefs_h@@%$ac_cv_header_sys_cdefs_h%g
s%@@ac_cv_header_err_h@@%$ac_cv_header_err_h%g
s%@@LIB_socket@@%$LIB_socket%g
s%@@LIB_gethostbyname@@%$LIB_gethostbyname%g
s%@@LIB_odm_initialize@@%$LIB_odm_initialize%g
s%@@LIB_getattr@@%$LIB_getattr%g
s%@@LIB_setpcred@@%$LIB_setpcred%g
s%@@LIB_logwtmp@@%$LIB_logwtmp%g
s%@@LIB_logout@@%$LIB_logout%g
s%@@LIB_tgetent@@%$LIB_tgetent%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@@%$MAKE_X_PROGS_BIN%g
s%@@MAKE_X_PROGS_LIBEXEC@@%$MAKE_X_PROGS_LIBEXEC%g
s%@@LIB_XauReadAuth@@%$LIB_XauReadAuth%g
s%@@XauWriteAuth_c@@%$XauWriteAuth_c%g
s%@@XauWriteAuth_o@@%$XauWriteAuth_o%g
s%@@LIB_dbopen@@%$LIB_dbopen%g
s%@@LIB_dbm_firstkey@@%$LIB_dbm_firstkey%g
s%@@LIB_DBM@@%$LIB_DBM%g
s%@@LIB_syslog@@%$LIB_syslog%g
s%@@LIB_getpwnam_r@@%$LIB_getpwnam_r%g
s%@@LIB_getsockopt@@%$LIB_getsockopt%g
s%@@LIB_setsockopt@@%$LIB_setsockopt%g
s%@@LIB_res_search@@%$LIB_res_search%g
s%@@LIB_dn_expand@@%$LIB_dn_expand%g
s%@@ALLOCA@@%$ALLOCA%g
s%@@LIB_hstrerror@@%$LIB_hstrerror%g
s%@@LIBOBJS@@%$LIBOBJS%g
s%@@LIB_AUTH_SUBDIRS@@%$LIB_AUTH_SUBDIRS%g
s%@@APPL_KIP_DIR@@%$APPL_KIP_DIR%g
s%@@LIB_el_init@@%$LIB_el_init%g
s%@@LIB_readline@@%$LIB_readline%g
s%@@INCLUDE_readline@@%$INCLUDE_readline%g
s%@@editline_OBJS@@%$editline_OBJS%g
s%@@CATSUFFIX@@%$CATSUFFIX%g
s%@@KRB_KAFS_LIB@@%$KRB_KAFS_LIB%g

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_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

cat >> $CONFIG_STATUS <<EOF

CONFIG_FILES=\${CONFIG_FILES-"\
Makefile 					\
include/Makefile				\
include/sys/Makefile				\
						\
util/Makefile					\
util/et/Makefile				\
						\
man/Makefile					\
						\
lib/Makefile					\
lib/des/Makefile				\
lib/krb/Makefile				\
lib/kdb/Makefile				\
lib/kadm/Makefile				\
lib/acl/Makefile				\
lib/kafs/Makefile				\
lib/roken/Makefile				\
lib/otp/Makefile				\
lib/sl/Makefile					\
lib/editline/Makefile				\
lib/auth/Makefile				\
lib/auth/pam/Makefile				\
lib/auth/sia/Makefile				\
lib/auth/afskauthlib/Makefile			\
						\
kuser/Makefile					\
server/Makefile					\
slave/Makefile					\
admin/Makefile					\
kadmin/Makefile					\
						\
appl/Makefile					\
						\
appl/afsutil/Makefile 				\
appl/ftp/Makefile				\
appl/ftp/common/Makefile			\
appl/ftp/ftp/Makefile				\
appl/ftp/ftpd/Makefile				\
appl/telnet/Makefile				\
appl/telnet/libtelnet/Makefile			\
appl/telnet/telnet/Makefile			\
appl/telnet/telnetd/Makefile			\
appl/bsd/Makefile 				\
appl/kauth/Makefile				\
appl/kpopper/Makefile				\
appl/movemail/Makefile				\
appl/sample/Makefile				\
appl/xnlock/Makefile				\
appl/kx/Makefile				\
appl/kip/Makefile				\
appl/otp/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*

# 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.
#
# 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'

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" ;;
  esac

  echo creating $ac_file

  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

EOF

# 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

# Break up conftest.vals because some shells have a limit on
# the size of here documents, and old seds have small limits too.

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"
    fi
    rm -f $ac_file
    mv conftest.h $ac_file
  fi
fi; done

EOF
cat >> $CONFIG_STATUS <<EOF

EOF
cat >> $CONFIG_STATUS <<\EOF

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
 
KRB4VERSION="$PACKAGE-$VERSION"

cat > include/newversion.h.in <<EOF
char *krb4_long_version = "@@(#)\$Version: $KRB4VERSION by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
char *krb4_version = "$KRB4VERSION";
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) 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.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@Initial import of KTH eBones. This has been cleaned up to only include
the "core" Kerberos functionality. The rest of the userland will get their
own changes later.
@
text
@@


1.1.1.1.4.1
log
@merge differences from -current to bring this up to krb4 1.0

Reviewed by:	kris, markm
@
text
@d3 1
a3 63
# From configure.in Revision: 1.432.2.2 

























































# Define a conditional.




d60 1
a60 1
# Generated automatically using autoconf version 2.13 
d74 1
a74 3
  --with-socks-lib=dir            use socks libraries in dir"
ac_help="$ac_help
  --with-socks-include=dir        use socks headers in dir"
d76 1
a76 1
  --enable-legacy-kdestroy    kdestroy doesn't destroy tokens by default"
d78 1
a78 3
  --enable-match-subdomains	match realm in subdomains"
ac_help="$ac_help
  --with-ld-flags=flags   what flags use when linking"
a87 2
  --with-db-dir=dir	   this is the database directory (default /var/kerberos)"
ac_help="$ac_help
a91 8
  --disable-otp           if you don't want OTP support"
ac_help="$ac_help
  --enable-osfc2          enable some OSF C2 support"
ac_help="$ac_help
  --disable-mmap          disable use of mmap"
ac_help="$ac_help
  --disable-dynamic-afs   don't use loaded AFS library with AIX"
ac_help="$ac_help
a98 6
  --with-afsws=dir        use AFS includes and libraries from dir=/usr/afsws"
ac_help="$ac_help
  --enable-rxkad           build rxkad library"
ac_help="$ac_help
  --disable-cat-manpages   don't install any preformatted manpages"
ac_help="$ac_help
d101 1
a101 3
  --with-readline-lib=dir            use readline libraries in dir"
ac_help="$ac_help
  --with-readline-include=dir        use readline headers in dir"
d103 1
a103 9
  --with-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)"
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-shared         create shared libraries for Kerberos"
a143 1
SHELL=${CONFIG_SHELL-/bin/sh}
d427 1
a427 1
    echo "configure generated by autoconf version 2.13"
d597 1
a597 1
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a599 2
ac_exeext=
ac_objext=o
d617 1
a617 8
VERSION=1.0
cat >> confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF
cat >> confdefs.h <<EOF
#define VERSION "$VERSION"
EOF

d642 1
a642 1
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
d647 1
a647 1
echo "configure:750: checking host system type" >&5
d654 1
a654 1
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
d661 1
a661 1
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a666 23
CANONICAL_HOST=$host



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

fi

d668 1
a668 1
echo "configure:794: checking whether ${MAKE-make} sets \${MAKE}" >&5
d719 1
a719 1
echo "configure:845: checking for ln -s or something else" >&5
d744 1
a744 1
echo "configure:870: checking for $ac_word" >&5
d751 2
a752 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
d773 1
a773 1
echo "configure:900: checking for $ac_word" >&5
d780 1
a780 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
d782 1
a782 2
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
a816 34
  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:951: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # 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_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
 ;;
    esac
  fi
d821 1
a821 1
echo "configure:983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d827 1
a827 1
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
d831 1
a831 2

#line 994 "configure"
a832 1

d835 1
a835 1
if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a848 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
d855 1
a855 1
echo "configure:1025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d860 1
a860 1
echo "configure:1030: checking whether we are using GNU C" >&5
d869 1
a869 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
a879 4
else
  GCC=
fi

d884 1
a884 1
echo "configure:1058: checking whether ${CC-cc} accepts -g" >&5
a901 1
  if test "$GCC" = yes; then
d904 1
a904 1
    CFLAGS="-g"
d907 2
a908 5
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
d912 1
a912 1
echo "configure:1090: checking how to run the C preprocessor" >&5
d927 1
a927 1
#line 1105 "configure"
d933 2
a934 2
{ (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d944 1
a944 18
#line 1122 "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:1128: \"$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 1139 "configure"
d950 2
a951 2
{ (eval echo configure:1145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a963 2
fi
rm -f conftest*
d973 1
a973 1
echo "configure:1170: checking for POSIXized ISC" >&5
d998 1
a998 1
echo "configure:1195: checking for $ac_word" >&5
d1005 2
a1006 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
d1029 1
a1029 1
echo "configure:1227: checking for $ac_word" >&5
d1036 2
a1037 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
d1062 1
a1062 1
echo "configure:1261: checking for yywrap in -l$ac_lib" >&5
d1070 1
a1070 1
#line 1269 "configure"
d1081 1
a1081 1
if { (eval echo configure:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1106 1
a1106 1
echo "configure:1305: checking for $ac_word" >&5
d1113 2
a1114 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
a1138 1
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
d1143 1
a1143 1
echo "configure:1344: checking for a BSD compatible install" >&5
d1148 1
a1148 1
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
d1155 1
a1155 3
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
d1160 1
a1189 2
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'

a1191 34
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:1401: 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
  done
  IFS="$ac_save_ifs"
fi
fi
AWK="$ac_cv_prog_AWK"
if test -n "$AWK"; then
  echo "$ac_t""$AWK" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$AWK" && break
done

d1195 1
a1195 1
echo "configure:1433: checking for $ac_word" >&5
d1202 2
a1203 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
a1221 4
WFLAGS=""
WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""

d1224 2
d1229 4
a1232 1
  :
d1243 1
d1254 1
a1257 2
echo $ac_n "checking for socks""... $ac_c" 1>&6
echo "configure:1495: checking for socks" >&5
d1259 11
a1269 6
case "$with_socks" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_socks_include" = ""; then
		with_socks_include="$with_socks/include"
d1271 12
a1282 2
	if test "$with_socks_lib" = ""; then
		with_socks_lib="$with_socks/lib$abilibdirext"
d1284 1
a1284 26
	;;
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_socks_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_socks_include $header_dirs";;
esac
case "$with_socks_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_socks_lib $lib_dirs";;
esac

save_CFLAGS="$CFLAGS"
save_LIBS="$LIBS"
ires= lres=
for i in $header_dirs; do
	CFLAGS="-I$i $save_CFLAGS"
d1286 1
a1286 1
#line 1534 "configure"
a1288 3
int main() {

; return 0; }
d1290 4
a1293 1
if { (eval echo configure:1541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1295 1
a1295 1
  ires=$i;break
d1297 1
d1302 1
d1304 21
a1324 2
for i in $lib_dirs; do
	LIBS="-L$i -lsocks5  $save_LIBS"
d1326 1
a1326 1
#line 1553 "configure"
d1328 1
a1328 1
#include <socks.h>
d1333 1
a1333 1
if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1335 1
a1335 1
  lres=$i;break
d1341 2
d1344 2
a1345 14
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"

if test "$ires" -a "$lres" -a "$with_socks" != "no"; then
	socks_includedir="$ires"
	socks_libdir="$lres"
	INCLUDE_socks="-I$socks_includedir"
	LIB_socks="-L$socks_libdir -lsocks5"
	cat >> confdefs.h <<EOF
#define `echo socks | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
EOF

	with_socks=yes
	echo "$ac_t""headers $ires, libraries $lres" 1>&6
d1347 1
a1347 4
	INCLUDE_socks=
	LIB_socks=
	with_socks=no
	echo "$ac_t""$with_socks" 1>&6
d1349 3
a1351 13



CFLAGS="$INCLUDE_socks $CFLAGS"
LIBS="$LIB_socks $LIBS"

# Check whether --enable-legacy-kdestroy or --disable-legacy-kdestroy was given.
if test "${enable_legacy_kdestroy+set}" = set; then
  enableval="$enable_legacy_kdestroy"
  
if test "$enableval" = "yes"; then
	cat >> confdefs.h <<\EOF
#define LEGACY_KDESTROY 1
d1354 2
d1358 2
d1361 1
d1363 2
a1364 9

# Check whether --enable-match-subdomains or --disable-match-subdomains was given.
if test "${enable_match_subdomains+set}" = set; then
  enableval="$enable_match_subdomains"
  if test "$enableval" = "yes"; then
	cat >> confdefs.h <<\EOF
#define MATCH_SUBDOMAINS 1
EOF

a1366 1
fi
d1368 2
d1371 3
a1373 3
# Check whether --with-ld-flags or --without-ld-flags was given.
if test "${with_ld_flags+set}" = set; then
  withval="$with_ld_flags"
a1417 13
# Check whether --with-db-dir or --without-db-dir was given.
if test "${with_db_dir+set}" = set; then
  withval="$with_db_dir"
  :
fi


test -n "$with_db_dir" &&
cat >> confdefs.h <<EOF
#define DB_DIR "$with_db_dir"
EOF


d1446 4
a1449 4
otp=yes
# Check whether --enable-otp or --disable-otp was given.
if test "${enable_otp+set}" = set; then
  enableval="$enable_otp"
d1451 2
a1452 2
if test "$enableval" = "no"; then
	otp=no
d1458 2
a1459 74
if test "$otp" = "yes"; then
	cat >> confdefs.h <<\EOF
#define OTP 1
EOF

	LIB_otp='-L$(top_builddir)/lib/otp -lotp'
	OTP_dir=otp
	LIB_SUBDIRS="$LIB_SUBDIRS otp"
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



mmap=yes
# Check whether --enable-mmap or --disable-mmap was given.
if test "${enable_mmap+set}" = set; then
  enableval="$enable_mmap"
  
if test "$enableval" = "no"; then
	mmap=no
fi

fi

if test "$mmap" = "no"; then
	cat >> confdefs.h <<\EOF
#define NO_MMAP 1
EOF

fi

aix_dynamic_afs=yes
# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
if test "${enable_dynamic_afs+set}" = set; then
  enableval="$enable_dynamic_afs"
  
if test "$enableval" = "no"; then
	aix_dynamic_afs=no
fi

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


afs_support=yes
# Check whether --with-afs-support or --without-afs-support was given.
d1484 4
a1487 1
	ac_x=DES_QUAD_NEW
d1489 2
a1490 6
	ac_x=DES_QUAD_OLD
else
	ac_x=DES_QUAD_GUESS
fi	
cat >> confdefs.h <<EOF
#define DES_QUAD_DEFAULT $ac_x
a1492 5

# Check whether --with-afsws or --without-afsws was given.
if test "${with_afsws+set}" = set; then
  withval="$with_afsws"
  AFSWS=$withval
d1494 3
a1496 1
  AFSWS=/usr/afsws
a1499 31
test "$AFSWS" = "yes" && AFSWS=/usr/afsws


# Check whether --enable-rxkad or --disable-rxkad was given.
if test "${enable_rxkad+set}" = set; then
  enableval="$enable_rxkad"
  :
else
  
test -f $AFSWS/include/rx/rx.h && enable_rxkad=yes

fi


if test "$afs_support" = yes -a "$enable_rxkad" = yes; then
	LIB_SUBDIRS="$LIB_SUBDIRS rxkad"
fi


# Check whether --enable-cat-manpages or --disable-cat-manpages was given.
if test "${enable_cat_manpages+set}" = set; then
  enableval="$enable_cat_manpages"
  
if test "$enableval" = "no"; then
	disable_cat_manpages=yes
fi

fi



d1501 2
d1506 4
a1509 1
  :
d1520 1
a1530 2
fi

a1531 12
echo $ac_n "checking for readline""... $ac_c" 1>&6
echo "configure:1900: checking for readline" >&5

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"
a1532 20
	;;
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
a1533 8
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 1939 "configure"
#include "confdefs.h"
a1534 2
#include <stdio.h>
#include <readline.h>
d1536 3
a1538 1
int main() {
d1540 3
a1542 1
; return 0; }
a1543 17
if { (eval echo configure:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ires=$i;break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
for i in $lib_dirs; do
	LIBS="-L$i -lreadline  $save_LIBS"
	cat > conftest.$ac_ext <<EOF
#line 1961 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <readline.h>
d1545 2
a1546 10
int main() {

; return 0; }
EOF
if { (eval echo configure:1971: \"$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
d1548 4
a1551 16
rm -f conftest*
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 `echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
EOF

	with_readline=yes
	echo "$ac_t""headers $ires, libraries $lres" 1>&6
d1553 1
a1553 4
	INCLUDE_readline=
	LIB_readline=
	with_readline=no
	echo "$ac_t""$with_readline" 1>&6
d1555 5
a1559 9





# Check whether --with-mips_abi or --without-mips_abi was given.
if test "${with_mips_abi+set}" = set; then
  withval="$with_mips_abi"
  :
a1560 29


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 "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:2036: 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
a1561 3
  
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $abi"
d1563 1
a1563 1
#line 2044 "configure"
d1565 1
a1565 4

int main() {
int x;
; return 0; }
d1567 4
a1570 1
if { (eval echo configure:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1572 1
a1572 1
  eval $ac_foo=yes
d1574 1
a1576 2
  rm -rf conftest*
  eval $ac_foo=no
a1578 2
CFLAGS="$save_CFLAGS"

d1580 3
a1582 20

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 2074 "configure"
#include "confdefs.h"

int main() {
int x;
; return 0; }
EOF
if { (eval echo configure:2081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_res=yes
d1584 1
a1584 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_res=no
d1586 6
a1591 5
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; }
d1593 5
a1597 12
	# 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; }
a1598 4
	;;
esac
fi #if test $ac_res = no; then
fi #if test -n "$abi" ; then
d1600 2
a1601 79
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
;;
esac



# 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 "configure: error: No argument for --with-hesiod-lib" 1>&2; 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 "configure: error: No argument for --with-hesiod-include" 1>&2; exit 1; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi


echo $ac_n "checking for hesiod""... $ac_c" 1>&6
echo "configure:2155: checking for hesiod" >&5

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"
d1603 1
a1603 1
#line 2194 "configure"
d1605 1
a1605 1
#include <hesiod.h>
d1610 1
a1610 1
if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1612 1
a1612 1
  ires=$i;break
d1618 2
d1621 2
a1622 13
for i in $lib_dirs; do
	LIBS="-L$i -lhesiod  $save_LIBS"
	cat > conftest.$ac_ext <<EOF
#line 2213 "configure"
#include "confdefs.h"
#include <hesiod.h>
int main() {

; return 0; }
EOF
if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  lres=$i;break
d1624 1
a1624 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d1626 1
a1626 10
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"
d1628 1
a1628 1
#define `echo hesiod | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
d1631 2
a1632 7
	with_hesiod=yes
	echo "$ac_t""headers $ires, libraries $lres" 1>&6
else
	INCLUDE_hesiod=
	LIB_hesiod=
	with_hesiod=no
	echo "$ac_t""$with_hesiod" 1>&6
d1635 4
d1640 3
a1646 7
# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  :
fi


d1648 4
a1651 4
case ${enable_shared} in
  yes ) enable_shared=yes;;
  no  ) enable_shared=no;;
  *   ) enable_shared=no;;
a1666 3
LINK='$(CC)'

lib_deps=yes
a1669 3
build_symlink_command=@@true
install_symlink_command=@@true
install_symlink_command2=@@true
a1671 1
SHLIB_SONAME=`echo $VERSION | sed 's/\([0-9]*\).*/\1/'`
a1679 1
	lib_deps=no
a1681 1
	LDSHARED='$(CC) -shared -Wl,-soname,$(LIBNAME).so.'"${SHLIB_SONAME}"
a1682 11
	REAL_SHLIBEXT=so.$SHLIB_VERSION
	build_symlink_command='$(LN_S) -f $@@ $(LIBNAME).so'
	install_symlink_command='$(LN_S) -f $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so.'"${SHLIB_SONAME}"';$(LN_S) -f $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so'
	install_symlink_command2='$(LN_S) -f $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so.'"${SHLIB_SONAME}"';$(LN_S) -f $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so'
	;;
*-*-freebsd[34]*)
	REAL_SHLIBEXT=so.$SHLIB_VERSION
	REAL_LD_FLAGS='-Wl,-R$(libdir)'
	build_symlink_command='$(LN_S) -f $@@ $(LIBNAME).so'
	install_symlink_command='$(LN_S) -f $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so'
	install_symlink_command2='$(LN_S) -f $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so'
a1700 7
*-fujitsu-uxpv*)
	REAL_LD_FLAGS='' # really: LD_RUN_PATH=$(libdir) cc -o ...
	REAL_LINK='LD_RUN_PATH=$(libdir) $(CC)'
	LDSHARED='$(CC) -G'
	REAL_PICFLAGS="-Kpic"
	lib_deps=no # fails in mysterious ways
	;;
a1703 1
	lib_deps=no
d1706 1
a1706 4
        libdir="${libdir}${abilibdirext}"
        REAL_LD_FLAGS="${abi} -Wl,-rpath,\$(libdir)"
        LD_FLAGS="${abi} -Wl,-rpath,\$(libdir)"
	LDSHARED="\$(CC) -shared ${abi}"
a1707 1
        CFLAGS="${abi} ${CFLAGS}"
d1709 2
a1710 1
*-*-os2*)
a1713 1
	LD_FLAGS=-Zcrtdll
d1725 1
a1725 1
if test "${enable_shared}" != "yes" ; then 
a1728 3
 build_symlink_command=@@true
 install_symlink_command=@@true
 install_symlink_command2=@@true
a1732 9
 echo $ac_n "checking whether to use -rpath""... $ac_c" 1>&6
echo "configure:2384: checking whether to use -rpath" >&5
 case "$libdir" in
   /lib | /usr/lib | /usr/local/lib)
     echo "$ac_t""no" 1>&6
     REAL_LD_FLAGS=
     LD_FLAGS=
     ;;
   *)
a1733 4
     test "$REAL_LINK" && LINK="$REAL_LINK"
     echo "$ac_t""$LD_FLAGS" 1>&6
     ;;
   esac
d1736 9
a1744 3
if test "$lib_deps" = yes; then
	lib_deps_yes=""
	lib_deps_no="# "
d1746 12
a1757 4
	lib_deps_yes="# "
	lib_deps_no=""
fi
       
d1759 3
d1763 6
a1768 5
# use supplied ld-flags, or none if `no'
if test "$with_ld_flags" = no; then
	LD_FLAGS=
elif test -n "$with_ld_flags"; then
	LD_FLAGS="$with_ld_flags"
d1770 1
a1770 1
  
d1772 1
d1774 7
d1784 1
a1784 1
echo "configure:2421: checking whether byte ordering is bigendian" >&5
d1791 1
a1791 1
#line 2428 "configure"
d1802 1
a1802 1
if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1806 1
a1806 1
#line 2443 "configure"
d1817 1
a1817 1
if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1837 1
a1837 1
#line 2474 "configure"
d1850 1
a1850 1
if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d1875 1
a1875 1
echo "configure:2512: checking for working const" >&5
d1880 1
a1880 1
#line 2517 "configure"
d1929 1
a1929 1
if { (eval echo configure:2566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1950 4
a1953 91
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:2588: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat > conftest.$ac_ext <<EOF
#line 2595 "configure"
#include "confdefs.h"

int main() {
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:2602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_inline=$ac_kw; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done

fi

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



echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
echo "configure:2630: 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 2636 "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:2653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv___attribute__=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv___attribute__=no
fi
rm -f conftest*
fi

if test "$ac_cv___attribute__" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE___ATTRIBUTE__ 1
EOF

fi
echo "$ac_t""$ac_cv___attribute__" 1>&6




echo $ac_n "checking for NEXTSTEP""... $ac_c" 1>&6
echo "configure:2677: checking for NEXTSTEP" >&5
d1958 1
a1958 1
#line 2682 "configure"
d1960 1
a1960 1
#if defined(NeXT) && !defined(__APPLE__)
d1985 1
a1985 1
echo "configure:2709: checking for AIX" >&5
d1990 1
a1990 1
#line 2714 "configure"
d2013 2
a2014 2
	if test "$aix_dynamic_afs" = yes; then
		AFS_EXTRA_OBJS=
a2015 91
		# this works differently in AIX <=3 and 4
		if test `uname -v` = 4 ; then
			AFS_EXTRA_LD="-bnoentry"
		else
			AFS_EXTRA_LD="-e _nostart"
		fi
		AFS_EXTRA_DEFS=
		


echo $ac_n "checking for dlopen""... $ac_c" 1>&6
echo "configure:2751: 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 2766 "configure"
#include "confdefs.h"

int main() {
dlopen()
; return 0; }
EOF
if { (eval echo configure:2773: \"$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

fi


eval "ac_res=\$ac_cv_funclib_dlopen"

: << END
@@@@@@funcs="$funcs dlopen"@@@@@@
@@@@@@libs="$libs "" dl"@@@@@@
END

# 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 "$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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac

a2016 7
		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
			AFS_EXTRA_OBJS="$AFS_EXTRA_OBJS dlfcn.o"
			AIX_EXTRA_KAFS=-lld
a2017 7
	else
		AFS_EXTRA_OBJS='$(srcdir)/afsl.exp afslib.o'
		AFS_EXTRA_LIBS=
		AFS_EXTRA_DEFS='-DSTATIC_AFS_SYSCALLS'
		AIX_EXTRA_KAFS=
	fi
					fi
a2023 2
case "${host}" in
*-*-aix4.1*)
d2025 1
a2025 1
	LIBS="$LIBS -Wl,-bnolibpath -Wl,-bI:/lib/pse.exp"
a2026 2
;;
esac
d2030 1
a2030 1
echo "configure:2863: checking for ANSI C header files" >&5
d2035 1
a2035 1
#line 2868 "configure"
d2043 2
a2044 2
{ (eval echo configure:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2060 1
a2060 1
#line 2893 "configure"
d2078 1
a2078 1
#line 2911 "configure"
d2099 1
a2099 1
#line 2932 "configure"
d2110 1
a2110 1
if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2134 1
a2134 95
for ac_hdr in arpa/ftp.h			\
	arpa/inet.h				\
	arpa/nameser.h				\
	arpa/telnet.h				\
	bsd/bsd.h				\
	bsdsetjmp.h				\
	capability.h				\
	crypt.h					\
	curses.h				\
	db.h					\
	dbm.h					\
	dirent.h				\
	err.h					\
	errno.h					\
	fcntl.h					\
	fnmatch.h				\
	grp.h					\
	inttypes.h				\
	io.h					\
	lastlog.h				\
	libutil.h				\
	limits.h				\
	login.h					\
	maillock.h				\
	ndbm.h					\
	net/if.h				\
	net/if_tun.h				\
	net/if_var.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6_machtypes.h			\
	netinet/in_systm.h			\
	paths.h					\
	pty.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/dbm.h				\
	rpcsvc/ypclnt.h				\
	sac.h					\
	security/pam_modules.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/locking.h				\
	sys/mman.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				\
	tmpdir.h				\
	ttyent.h				\
	udb.h					\
	ulimit.h				\
	unistd.h				\
	userpw.h				\
	usersec.h				\
	util.h					\
	utime.h					\
	utmp.h					\
	utmpx.h					\
	wait.h
d2138 1
a2138 1
echo "configure:3065: checking for $ac_hdr" >&5
d2143 1
a2143 1
#line 3070 "configure"
d2148 2
a2149 2
{ (eval echo configure:3075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2174 6
a2179 4

echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:3103: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
d2183 1
a2183 1
#line 3108 "configure"
d2185 1
a2185 6
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
d2187 4
a2190 1
if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2192 1
a2192 1
  ac_cv_header_time=yes
d2194 1
d2198 1
a2198 1
  ac_cv_header_time=no
d2202 5
a2206 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
d2209 2
d2212 1
d2214 6
a2219 3
echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
echo "configure:3138: checking for sys_siglist declaration in signal.h or unistd.h" >&5
if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
d2223 1
a2223 1
#line 3143 "configure"
d2225 1
a2225 9
#include <sys/types.h>
#include <signal.h>
/* NetBSD declares sys_siglist in unistd.h.  */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main() {
char *msg = *(sys_siglist + 1);
; return 0; }
d2227 4
a2230 1
if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2232 1
a2232 1
  ac_cv_decl_sys_siglist=yes
d2234 1
d2238 1
a2238 1
  ac_cv_decl_sys_siglist=no
d2242 5
a2246 5

echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
if test $ac_cv_decl_sys_siglist = yes; then
  cat >> confdefs.h <<\EOF
#define SYS_SIGLIST_DECLARED 1
d2249 2
d2252 1
d2254 1
a2254 3


for ac_hdr in standards.h
d2258 1
a2258 1
echo "configure:3181: checking for $ac_hdr" >&5
d2263 1
a2263 1
#line 3186 "configure"
d2268 2
a2269 2
{ (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2294 6
a2299 7
for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:3222: checking for $i" >&5
if eval "test \"`echo '$''{'ac_cv_header_$cv'+set}'`\" = set"; then
d2303 1
a2303 1
#line 3227 "configure"
d2305 1
a2305 6
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>

d2308 2
a2309 2
{ (eval echo configure:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2312 1
a2312 1
  eval "ac_cv_header_$cv=yes"
d2318 1
a2318 1
  eval "ac_cv_header_$cv=no"
d2322 3
a2324 4

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___%'`
d2329 2
a2332 3
: << END
@@@@@@headers="$headers netinet/ip.h netinet/tcp.h"@@@@@@
END
d2334 6
a2339 19


EXTRA_LOCL_HEADERS=
EXTRA_HEADERS=
if test "$ac_cv_header_err_h" != yes; then
	EXTRA_HEADERS="$EXTRA_HEADERS err.h"
fi
if test "$ac_cv_header_fnmatch_h" != yes; then
	EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS fnmatch.h"
fi




for i in int8_t int16_t int32_t int64_t; do
	echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:3281: checking for $i" >&5
	
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
d2343 1
a2343 1
#line 3287 "configure"
d2345 1
a2345 21
 
#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() {
$i x;

; return 0; }
d2347 4
a2350 1
if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2352 1
a2352 1
  eval ac_cv_type_$i=yes
d2354 1
d2358 1
a2358 1
  eval ac_cv_type_$i=no
d2362 3
a2364 4

	eval ac_res=\$ac_cv_type_$i
	if test "$ac_res" = yes; then
		type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
d2366 1
a2366 1
#define $type 1
d2369 2
a2371 1
	echo "$ac_t""$ac_res" 1>&6
d2374 6
a2379 6

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:3337: checking for $i" >&5
	
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
d2383 1
a2383 1
#line 3343 "configure"
d2385 1
a2385 21

#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() {
$i x;

; return 0; }
d2387 4
a2390 1
if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2392 1
a2392 1
  eval ac_cv_type_$i=yes
d2394 1
d2398 1
a2398 1
  eval ac_cv_type_$i=no
d2402 3
a2404 4

	eval ac_res=\$ac_cv_type_$i
	if test "$ac_res" = yes; then
		type=HAVE_`echo $i | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
d2406 1
a2406 1
#define $type 1
d2409 2
a2411 1
	echo "$ac_t""$ac_res" 1>&6
d2414 6
a2419 4

echo $ac_n "checking for strange sys/bitypes.h""... $ac_c" 1>&6
echo "configure:3392: checking for strange sys/bitypes.h" >&5
if eval "test \"`echo '$''{'krb_cv_int8_t_ifdef'+set}'`\" = set"; then
a2421 1
  
d2423 1
a2423 1
#line 3398 "configure"
d2425 1
a2425 15

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

int main() {
int8_t x;

; return 0; }
d2427 4
a2430 1
if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2432 1
a2432 1
  krb_cv_int8_t_ifdef=no
d2434 1
d2438 1
a2438 1
  krb_cv_int8_t_ifdef=yes
d2442 6
d2449 2
a2450 5
echo "$ac_t""$krb_cv_int8_t_ifdef" 1>&6
if test "$krb_cv_int8_t_ifdef" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRANGE_INT8_T 1
EOF
d2452 1
d2454 6
a2459 7




echo $ac_n "checking for crypt""... $ac_c" 1>&6
echo "configure:3440: checking for crypt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_crypt'+set}'`\" = set"; then
a2461 10
  
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"
d2463 1
a2463 1
#line 3455 "configure"
d2465 1
a2465 4

int main() {
crypt()
; return 0; }
d2467 4
a2470 1
if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2472 1
a2472 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d2474 1
d2477 2
a2480 3
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
d2482 11
d2494 25
d2520 5
a2524 18


eval "ac_res=\$ac_cv_funclib_crypt"

: << END
@@@@@@funcs="$funcs crypt"@@@@@@
@@@@@@libs="$libs "" crypt"@@@@@@
END

# 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="
d2526 1
a2526 1
#define $ac_tr_func 1
d2529 1
a2529 5
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_crypt=no"
	eval "LIB_crypt="
d2531 2
a2532 7
	;;
	*)
	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
d2534 6
a2539 17
	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 socket""... $ac_c" 1>&6
echo "configure:3527: checking for socket" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_socket'+set}'`\" = set"; then
a2541 10
  
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"
d2543 1
a2543 1
#line 3542 "configure"
d2545 1
a2545 9
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int main() {
socket(0,0,0)
; return 0; }
d2547 4
a2550 1
if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2552 1
a2552 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
d2554 1
d2557 2
a2560 3
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
d2562 6
d2569 2
d2572 1
d2574 33
a2606 19

eval "ac_res=\$ac_cv_funclib_socket"

: << END
@@@@@@funcs="$funcs socket"@@@@@@
@@@@@@libs="$libs "" socket"@@@@@@
END

# 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
d2608 3
a2610 26

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
d2612 1
d2614 6
a2619 7




echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
echo "configure:3622: checking for gethostbyname" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname'+set}'`\" = set"; then
a2621 10
  
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"
d2623 1
a2623 1
#line 3637 "configure"
d2625 1
a2625 9
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int main() {
gethostbyname("foo")
; return 0; }
d2627 4
a2630 1
if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2632 1
a2632 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d2634 1
d2637 2
a2640 3
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d2642 3
a2644 20

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname"

: << END
@@@@@@funcs="$funcs gethostbyname"@@@@@@
@@@@@@libs="$libs "" nsl"@@@@@@
END

# 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="
d2646 1
a2646 1
#define $ac_tr_func 1
d2649 1
a2649 5
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_gethostbyname=no"
	eval "LIB_gethostbyname="
a2650 19
	;;
	*)
	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 "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
d2652 1
d2654 6
a2659 9






echo $ac_n "checking for odm_initialize""... $ac_c" 1>&6
echo "configure:3719: checking for odm_initialize" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_odm_initialize'+set}'`\" = set"; then
a2661 10
  
if eval "test \"\$ac_cv_func_odm_initialize\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" odm; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
d2663 1
a2663 1
#line 3734 "configure"
d2665 1
a2665 4

int main() {
odm_initialize()
; return 0; }
d2667 4
a2670 1
if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2672 1
a2672 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_odm_initialize=$ac_lib; else ac_cv_funclib_odm_initialize=yes; fi";break
d2674 1
d2677 2
a2680 3
	done
	eval "ac_cv_funclib_odm_initialize=\${ac_cv_funclib_odm_initialize-no}"
	LIBS="$ac_save_LIBS"
d2682 3
a2684 20

fi


eval "ac_res=\$ac_cv_funclib_odm_initialize"

: << END
@@@@@@funcs="$funcs odm_initialize"@@@@@@
@@@@@@libs="$libs "" odm"@@@@@@
END

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

case "$ac_res" in
	yes)
	eval "ac_cv_func_odm_initialize=yes"
	eval "LIB_odm_initialize="
d2686 1
a2686 1
#define $ac_tr_func 1
d2689 1
a2689 5
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_odm_initialize=no"
	eval "LIB_odm_initialize="
a2690 19
	;;
	*)
	eval "ac_cv_func_odm_initialize=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


if test -n "$LIB_odm_initialize"; then
	LIBS="$LIB_odm_initialize $LIBS"
d2692 1
d2694 6
a2699 7




echo $ac_n "checking for getattr""... $ac_c" 1>&6
echo "configure:3809: checking for getattr" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getattr'+set}'`\" = set"; then
a2701 10
  
if eval "test \"\$ac_cv_func_getattr\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" cfg; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
d2703 1
a2703 1
#line 3824 "configure"
d2705 1
a2705 4

int main() {
getattr()
; return 0; }
d2707 4
a2710 1
if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2712 1
a2712 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getattr=$ac_lib; else ac_cv_funclib_getattr=yes; fi";break
d2714 1
d2717 2
a2720 3
	done
	eval "ac_cv_funclib_getattr=\${ac_cv_funclib_getattr-no}"
	LIBS="$ac_save_LIBS"
d2722 6
d2729 2
d2732 1
d2734 12
a2745 19

eval "ac_res=\$ac_cv_funclib_getattr"

: << END
@@@@@@funcs="$funcs getattr"@@@@@@
@@@@@@libs="$libs "" cfg"@@@@@@
END

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

case "$ac_res" in
	yes)
	eval "ac_cv_func_getattr=yes"
	eval "LIB_getattr="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
d2747 16
a2762 1

d2764 1
a2764 9
	;;
	no)
	eval "ac_cv_func_getattr=no"
	eval "LIB_getattr="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_getattr=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
d2766 1
a2766 1
#define $ac_tr_func 1
d2769 2
a2770 11
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_getattr"; then
	LIBS="$LIB_getattr $LIBS"
d2772 1
d2774 6
a2779 7




echo $ac_n "checking for setpcred""... $ac_c" 1>&6
echo "configure:3899: checking for setpcred" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_setpcred'+set}'`\" = set"; then
a2781 10
  
if eval "test \"\$ac_cv_func_setpcred\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" s; do
		if test -n "$ac_lib"; then 
			ac_lib="-l$ac_lib"
		else
			ac_lib=""
		fi
		LIBS=" $ac_lib  $ac_save_LIBS"
d2783 1
a2783 1
#line 3914 "configure"
d2785 1
a2785 4

int main() {
setpcred()
; return 0; }
d2787 4
a2790 1
if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2792 1
a2792 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setpcred=$ac_lib; else ac_cv_funclib_setpcred=yes; fi";break
d2794 1
d2797 2
a2800 3
	done
	eval "ac_cv_funclib_setpcred=\${ac_cv_funclib_setpcred-no}"
	LIBS="$ac_save_LIBS"
d2802 3
a2804 20

fi


eval "ac_res=\$ac_cv_funclib_setpcred"

: << END
@@@@@@funcs="$funcs setpcred"@@@@@@
@@@@@@libs="$libs "" s"@@@@@@
END

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

case "$ac_res" in
	yes)
	eval "ac_cv_func_setpcred=yes"
	eval "LIB_setpcred="
d2806 1
a2806 1
#define $ac_tr_func 1
d2809 1
a2809 5
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_setpcred=no"
	eval "LIB_setpcred="
a2810 19
	;;
	*)
	eval "ac_cv_func_setpcred=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


if test -n "$LIB_setpcred"; then
	LIBS="$LIB_setpcred $LIBS"
d2812 1
d2814 6
a2819 7




echo $ac_n "checking for logwtmp""... $ac_c" 1>&6
echo "configure:3989: checking for logwtmp" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_logwtmp'+set}'`\" = set"; then
a2821 10
  
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"
d2823 1
a2823 1
#line 4004 "configure"
d2825 1
a2825 4

int main() {
logwtmp()
; return 0; }
d2827 4
a2830 1
if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2832 1
a2832 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break
d2834 1
d2837 2
a2840 3
	done
	eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}"
	LIBS="$ac_save_LIBS"
d2842 3
a2844 20

fi


eval "ac_res=\$ac_cv_funclib_logwtmp"

: << END
@@@@@@funcs="$funcs logwtmp"@@@@@@
@@@@@@libs="$libs "" util"@@@@@@
END

# 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="
d2846 1
a2846 1
#define $ac_tr_func 1
d2849 1
a2849 5
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_logwtmp=no"
	eval "LIB_logwtmp="
a2850 19
	;;
	*)
	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_logwtmp"; then
	LIBS="$LIB_logwtmp $LIBS"
d2852 1
d2854 6
a2859 8





echo $ac_n "checking for logout""... $ac_c" 1>&6
echo "configure:4080: checking for logout" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_logout'+set}'`\" = set"; then
a2861 10
  
if eval "test \"\$ac_cv_func_logout\" != 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"
d2863 1
a2863 1
#line 4095 "configure"
d2865 1
a2865 4

int main() {
logout()
; return 0; }
d2867 4
a2870 1
if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2872 1
a2872 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
d2874 1
d2877 2
a2880 3
	done
	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
	LIBS="$ac_save_LIBS"
d2882 6
d2889 2
d2892 1
d2894 39
d2934 12
a2945 18
eval "ac_res=\$ac_cv_funclib_logout"

: << END
@@@@@@funcs="$funcs logout"@@@@@@
@@@@@@libs="$libs "" util"@@@@@@
END

# 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 <<EOF
#define $ac_tr_func 1
d2947 16
a2962 1

d2964 1
a2964 9
	;;
	no)
	eval "ac_cv_func_logout=no"
	eval "LIB_logout="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_logout=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
d2966 1
a2966 1
#define $ac_tr_func 1
d2969 4
a2972 3
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF
a2973 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d2975 25
a2999 3

if test -n "$LIB_logout"; then
	LIBS="$LIB_logout $LIBS"
d3002 5
d3008 1
d3010 3
a3012 4

echo $ac_n "checking for tgetent""... $ac_c" 1>&6
echo "configure:4169: checking for tgetent" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_tgetent'+set}'`\" = set"; then
a3014 10
  
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"
d3016 1
a3016 1
#line 4184 "configure"
d3018 6
a3023 1

d3025 1
a3025 1
tgetent()
d3028 1
a3028 1
if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3030 1
a3030 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
d3034 2
a3037 3
	done
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
	LIBS="$ac_save_LIBS"
d3040 6
a3048 1
eval "ac_res=\$ac_cv_funclib_tgetent"
d3050 24
a3073 4
: << END
@@@@@@funcs="$funcs tgetent"@@@@@@
@@@@@@libs="$libs "" termcap ncurses curses"@@@@@@
END
d3075 2
a3076 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"
d3078 1
a3078 20
case "$ac_res" in
	yes)
	eval "ac_cv_func_tgetent=yes"
	eval "LIB_tgetent="
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
	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
d3080 11
d3092 5
a3096 2
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
d3099 3
a3101 3
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac
d3104 3
d3108 6
a3113 6
# 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:4256: checking for X" >&5
d3115 3
a3117 426
# 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 eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&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

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

  # First, try using that file with no special directory specified.
  cat > conftest.$ac_ext <<EOF
#line 4318 "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:4323: \"$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

if test "$ac_x_libraries" = NO; then
  # Check for the libraries.

  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc

  # 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 4392 "configure"
#include "confdefs.h"

int main() {
${x_direct_test_function}()
; return 0; }
EOF
if { (eval echo configure:4399: \"$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

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
fi
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no

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


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
	
  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 . . . .
    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:4506: 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 4509 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:4516: \"$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 4532 "configure"
#include "confdefs.h"

int main() {

; return 0; }
EOF
if { (eval echo configure:4539: \"$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

  # 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@@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:4571: 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 4579 "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:4590: \"$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"

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

    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:4612: 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 4620 "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:4631: \"$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"

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

    fi

    # 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:4660: 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 4665 "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();

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
gethostbyname();
d3119 2
a3120 97

; return 0; }
EOF
if { (eval echo configure:4688: \"$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

if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
	echo "$ac_t""yes" 1>&6
  :
else
	echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_gethostbyname = no; then
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
echo "configure:4709: 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 4717 "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();

int main() {
gethostbyname()
; return 0; }
EOF
if { (eval echo configure:4728: \"$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"

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

    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@@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:4758: 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 4763 "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();

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_connect) || defined (__stub___connect)
choke me
#else
connect();
d3122 2
a3123 91

; return 0; }
EOF
if { (eval echo configure:4786: \"$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

if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
	echo "$ac_t""yes" 1>&6
  :
else
	echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_connect = no; then
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
echo "configure:4807: 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 4815 "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:4826: \"$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"

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

    fi

    # gomez@@mi.uni-erlangen.de says -lposix is necessary on A/UX.
    echo $ac_n "checking for remove""... $ac_c" 1>&6
echo "configure:4850: 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 4855 "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();

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_remove) || defined (__stub___remove)
choke me
#else
remove();
d3125 2
a3126 91

; return 0; }
EOF
if { (eval echo configure:4878: \"$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

if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_remove = no; then
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
echo "configure:4899: 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 4907 "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:4918: \"$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"

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

    fi

    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
echo "configure:4942: 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 4947 "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();

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_shmat) || defined (__stub___shmat)
choke me
#else
shmat();
a3128 38
; return 0; }
EOF
if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_shmat=yes"
else
  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

if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
	echo "$ac_t""yes" 1>&6
  :
else
	echo "$ac_t""no" 1>&6
fi

    if test $ac_cv_func_shmat = no; then
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
echo "configure:4991: 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 4999 "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();

d3130 1
a3130 50
shmat()
; return 0; }
EOF
if { (eval echo configure:5010: \"$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"

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

    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.
  #  --interran@@uluru.Stanford.EDU, kb@@cs.umb.edu.
  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
echo "configure:5043: 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 5051 "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();
a3131 2
int main() {
IceConnectionNumber()
d3134 1
a3134 1
if { (eval echo configure:5062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3136 1
a3136 75
  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"

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

  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 $ac_n "checking for special X linker flags""... $ac_c" 1>&6
echo "configure:5091: 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 5122 "configure"
#include "confdefs.h"

		#include <X11/Xlib.h>
		foo()
		{
		XOpenDisplay(NULL);
		}
		main()
		{
		return 0;
		}

EOF
if { (eval echo configure:5136: \"$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
d3140 2
a3141 2
  rm -fr conftest*
  :
d3143 1
a3143 1
rm -fr conftest*
d3146 6
a3151 5
	done
	LIBS="$ac_save_libs"
	CFLAGS="$ac_save_cflags"
	
fi
d3153 3
a3155 3
echo "$ac_t""$krb_cv_sys_x_libs_rpath" 1>&6
	X_LIBS="$krb_cv_sys_x_libs"
fi
a3156 7
if test "$no_x" = "yes" ; then
	MAKE_X_PROGS_BIN=""
	MAKE_X_PROGS_LIBEXEC=""
else
	MAKE_X_PROGS_BIN='$(X_PROGS_BIN)'
	MAKE_X_PROGS_LIBEXEC='$(X_PROGS_LIBEXEC)'
fi
a3158 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"
d3163 3
a3165 4

echo $ac_n "checking for XauWriteAuth""... $ac_c" 1>&6
echo "configure:5179: checking for XauWriteAuth" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_XauWriteAuth'+set}'`\" = set"; then
d3169 1
a3169 1
if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
d3171 1
a3171 1
	for ac_lib in "" X11 Xau; do
d3174 1
a3174 2
		else
			ac_lib=""
a3175 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3177 1
a3177 1
#line 5194 "configure"
d3179 6
a3184 1

d3186 1
a3186 1
XauWriteAuth()
d3189 1
a3189 1
if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3191 1
a3191 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
d3198 1
a3198 1
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
d3205 1
a3205 1
eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
d3207 1
d3209 2
a3210 2
@@@@@@funcs="$funcs XauWriteAuth"@@@@@@
@@@@@@libs="$libs "" X11 Xau"@@@@@@
d3213 3
a3215 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"
d3219 2
a3220 2
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
d3228 2
a3229 2
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
d3233 1
a3233 1
	eval "ac_cv_func_XauWriteAuth=yes"
d3248 4
a3251 2
ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"
d3255 3
a3257 3
echo $ac_n "checking for XauReadAuth""... $ac_c" 1>&6
echo "configure:5266: checking for XauReadAuth" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_XauReadAuth'+set}'`\" = set"; then
d3261 1
a3261 1
if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
d3263 1
a3263 1
	for ac_lib in "" X11 Xau; do
d3266 1
a3266 2
		else
			ac_lib=""
a3267 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3269 1
a3269 1
#line 5281 "configure"
d3271 6
a3276 1

d3278 1
a3278 1
XauReadAuth()
d3281 1
a3281 1
if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3283 1
a3283 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
d3290 1
a3290 1
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
d3297 1
a3297 1
eval "ac_res=\$ac_cv_funclib_XauReadAuth"
d3299 1
d3301 2
a3302 2
@@@@@@funcs="$funcs XauReadAuth"@@@@@@
@@@@@@libs="$libs "" X11 Xau"@@@@@@
d3305 3
a3307 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"
d3311 2
a3312 2
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
d3320 2
a3321 2
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
d3325 1
a3325 1
	eval "ac_cv_func_XauReadAuth=yes"
d3340 7
a3346 2
LIBS="$LIB_XauReadAauth $LIBS"
	
d3349 3
a3351 3
echo $ac_n "checking for XauFileName""... $ac_c" 1>&6
echo "configure:5352: checking for XauFileName" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_XauFileName'+set}'`\" = set"; then
d3354 2
a3355 2

if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
d3357 1
a3357 1
	for ac_lib in "" X11 Xau; do
d3360 4
a3363 6
else
			ac_lib=""
fi
		LIBS=" $ac_lib  $ac_save_LIBS"
cat > conftest.$ac_ext <<EOF
#line 5367 "configure"
d3367 1
a3367 1
XauFileName()
d3370 1
a3370 1
if { (eval echo configure:5374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3372 1
a3372 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
d3376 1
a3376 1
    fi
d3378 2
a3379 2
done
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
d3383 1
a3383 1
  fi
d3386 1
a3386 1
eval "ac_res=\$ac_cv_funclib_XauFileName"
d3388 1
d3390 2
a3391 2
@@@@@@funcs="$funcs XauFileName"@@@@@@
@@@@@@libs="$libs "" X11 Xau"@@@@@@
d3394 3
a3396 4
# 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"
d3400 2
a3401 2
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
d3409 2
a3410 2
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
d3414 1
a3414 1
	eval "ac_cv_func_XauFileName=yes"
d3429 2
a3430 41
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
a3431 3
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS
d3436 3
a3438 17

lib_dbm=no
lib_db=no

for i in "" $berkeley_db gdbm ndbm; do

	if test "$i"; then
		m="lib$i"
		l="-l$i"
	else
		m="libc"
		l=""
	fi	

	echo $ac_n "checking for dbm_open in $m""... $ac_c" 1>&6
echo "configure:5497: checking for dbm_open in $m" >&5
	if eval "test \"`echo '$''{'ac_cv_krb_dbm_open_$m'+set}'`\" = set"; then
d3442 9
a3450 8

	save_LIBS="$LIBS"
	LIBS="$l $LIBS"
	if test "$cross_compiling" = yes; then
  ac_res=no
else
  cat > conftest.$ac_ext <<EOF
#line 5509 "configure"
d3453 3
a3455 22
#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
#elif defined(HAVE_RPCSVC_DBM_H)
#include <rpcsvc/dbm.h>
#elif defined(HAVE_DB_H)
#define DB_DBM_HSEARCH 1
#include <db.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;
}
d3457 3
a3459 8
if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  
	if test -f conftest.db; then
		ac_res=db
	else
		ac_res=dbm
	fi
a3462 2
  rm -fr conftest*
  ac_res=no
d3464 4
a3467 1
rm -fr conftest*
d3470 1
a3471 1
	LIBS="$save_LIBS"
d3473 1
a3473 2
	eval ac_cv_krb_dbm_open_$m=$ac_res
fi
d3475 5
a3479 2
	eval ac_res=\$ac_cv_krb_dbm_open_$m
	echo "$ac_t""$ac_res" 1>&6
d3481 3
a3483 7
	if test "$lib_dbm" = no -a $ac_res = dbm; then
		lib_dbm="$l"
	elif test "$lib_db" = no -a $ac_res = db; then
		lib_db="$l"
		break
	fi
done
d3485 6
a3490 8
echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
echo "configure:5570: checking for NDBM library" >&5
ac_ndbm=no
if test "$lib_db" != no; then
	LIB_DBM="$lib_db"
	ac_ndbm=yes
	cat >> confdefs.h <<\EOF
#define HAVE_NEW_DB 1
d3493 12
a3504 19
	if test "$LIB_DBM"; then
		ac_res="yes, $LIB_DBM"
	else
		ac_res=yes
	fi
elif test "$lib_dbm" != no; then
	LIB_DBM="$lib_dbm"
	ac_ndbm=yes
	if test "$LIB_DBM"; then
		ac_res="yes, $LIB_DBM"
	else
		ac_res=yes
	fi
else
	LIB_DBM=""
	ac_res=no
fi
test "$ac_ndbm" = yes && cat >> confdefs.h <<\EOF
#define NDBM 1
d3507 3
a3509 1
DBLIB="$LIB_DBM"
d3511 3
a3513 1
echo "$ac_t""$ac_res" 1>&6
d3516 3
d3523 3
a3525 4

echo $ac_n "checking for syslog""... $ac_c" 1>&6
echo "configure:5611: checking for syslog" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_syslog'+set}'`\" = set"; then
d3529 1
a3529 1
if eval "test \"\$ac_cv_func_syslog\" != yes" ; then
d3531 1
a3531 1
	for ac_lib in "" syslog; do
d3534 1
a3534 2
		else
			ac_lib=""
a3535 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3537 1
a3537 1
#line 5626 "configure"
d3541 1
a3541 1
syslog()
d3544 1
a3544 1
if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3546 1
a3546 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d3553 1
a3553 1
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
d3560 1
a3560 1
eval "ac_res=\$ac_cv_funclib_syslog"
d3562 1
d3564 2
a3565 2
@@@@@@funcs="$funcs syslog"@@@@@@
@@@@@@libs="$libs "" syslog"@@@@@@
d3568 3
a3570 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"
d3574 2
a3575 2
	eval "ac_cv_func_syslog=yes"
	eval "LIB_syslog="
d3583 2
a3584 2
	eval "ac_cv_func_syslog=no"
	eval "LIB_syslog="
d3588 1
a3588 1
	eval "ac_cv_func_syslog=yes"
d3603 2
a3604 2
if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
a3608 37
echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
echo "configure:5699: 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
else
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 5708 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
EOF
if { (eval echo configure:5720: \"$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_snprintf_working=no
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_func_snprintf_working" 1>&6
d3610 3
a3612 12
if test "$ac_cv_func_snprintf_working" = yes; then
	cat >> confdefs.h <<EOF
#define HAVE_SNPRINTF 1
EOF

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 $ac_n "checking if snprintf needs a prototype""... $ac_c" 1>&6
echo "configure:5746: checking if snprintf needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_snprintf_noproto'+set}'`\" = set"; then
d3615 10
a3624 45
  cat > conftest.$ac_ext <<EOF
#line 5751 "configure"
#include "confdefs.h"
#include <stdio.h>
int main() {
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);

; return 0; }
EOF
if { (eval echo configure:5761: \"$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"
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_snprintf_noproto" 1>&6

if test "$ac_cv_func_snprintf_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_SNPRINTF_PROTO 1
EOF

fi

fi

fi


echo $ac_n "checking for working glob""... $ac_c" 1>&6
echo "configure:5788: 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
else
  ac_cv_func_glob_working=yes
cat > conftest.$ac_ext <<EOF
#line 5794 "configure"
a3626 2
#include <stdio.h>
#include <glob.h>
d3628 1
a3628 3

glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);

d3631 1
a3631 1
if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3633 1
a3633 1
  :
a3636 42
  rm -rf conftest*
  ac_cv_func_glob_working=no
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_glob_working" 1>&6

if test "$ac_cv_func_glob_working" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_GLOB 1
EOF

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 $ac_n "checking if glob needs a prototype""... $ac_c" 1>&6
echo "configure:5829: 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
else
  cat > conftest.$ac_ext <<EOF
#line 5834 "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; }
EOF
if { (eval echo configure:5845: \"$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"
d3639 3
a3643 7
echo "$ac_t""$ac_cv_func_glob_noproto" 1>&6

if test "$ac_cv_func_glob_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_GLOB_PROTO 1
EOF

a3645 1
fi
d3647 1
a3647 1
fi
d3649 5
d3655 3
a3657 75
if test "$ac_cv_func_glob_working" != yes; then
	EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS glob.h"
	LIBOBJS="$LIBOBJS glob.o"
fi

for ac_func in 				\
	_getpty					\
	_scrsize				\
	_setsid					\
	_stricmp				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	chroot					\
	fattach					\
	fchmod					\
	fcntl					\
	forkpty					\
	frevoke					\
	getpriority				\
	getrlimit				\
	getservbyname				\
	getspnam				\
	gettimeofday				\
	gettosbyname				\
	getuid					\
	grantpt					\
	mktime					\
	on_exit					\
	parsetos				\
	ptsname					\
	rand					\
	random					\
	revoke					\
	setitimer				\
	setpgid					\
	setpriority				\
	setproctitle				\
	setregid				\
	setresgid				\
	setresuid				\
	setreuid				\
	setsid					\
	setutent				\
	sigaction				\
	sysconf					\
	sysctl					\
	ttyname					\
	ttyslot					\
	ulimit					\
	uname					\
	unlockpt				\
	vasnprintf				\
	vasprintf				\
	vhangup					\
	vsnprintf				\
	yp_get_default_domain			\
	
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5932: 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 5937 "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();
d3659 6
a3664 12
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; }
a3665 11
if { (eval echo configure:5960: \"$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
d3667 11
a3677 4
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
a3679 5
 
else
  echo "$ac_t""no" 1>&6
fi
done
d3681 3
d3685 3
d3690 2
a3691 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:5991: 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 5996 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6001: \"$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
a3692 1
done
d3695 6
a3700 5
for ac_func in sgi_getcapabilitybyname cap_set_proc
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6031: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d3703 10
a3712 2
  cat > conftest.$ac_ext <<EOF
#line 6036 "configure"
a3713 7
/* 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();
d3716 1
a3716 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

d3719 1
a3719 1
if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3721 1
a3721 1
  eval "ac_cv_func_$ac_func=yes"
a3724 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d3727 3
d3732 34
a3765 4
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
a3767 5
 
else
  echo "$ac_t""no" 1>&6
fi
done
d3769 3
d3773 3
d3778 3
d3784 3
a3786 3
echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6
echo "configure:6090: checking for getpwnam_r" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getpwnam_r'+set}'`\" = set"; then
d3790 1
a3790 1
if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
d3792 1
a3792 1
	for ac_lib in "" c_r; do
d3795 1
a3795 2
		else
			ac_lib=""
a3796 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3798 1
a3798 1
#line 6105 "configure"
d3802 1
a3802 1
getpwnam_r()
d3805 1
a3805 1
if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3807 1
a3807 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
d3814 1
a3814 1
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
d3821 1
a3821 1
eval "ac_res=\$ac_cv_funclib_getpwnam_r"
d3823 1
d3825 2
a3826 2
@@@@@@funcs="$funcs getpwnam_r"@@@@@@
@@@@@@libs="$libs "" c_r"@@@@@@
d3829 3
a3831 4
# 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"
d3835 2
a3836 2
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
d3844 2
a3845 2
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
d3849 1
a3849 1
	eval "ac_cv_func_getpwnam_r=yes"
d3864 24
a3887 4
if test "$ac_cv_func_getpwnam_r" = yes; then
	echo $ac_n "checking if getpwnam_r is posix""... $ac_c" 1>&6
echo "configure:6173: checking if getpwnam_r is posix" >&5
if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r_posix'+set}'`\" = set"; then
d3890 35
a3924 8
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
      cat > conftest.$ac_ext <<EOF
#line 6183 "configure"
#include "confdefs.h"
d3926 3
a3928 6
#include <pwd.h>
int main()
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}
d3930 5
d3936 55
a3990 22
if { (eval echo configure:6194: \"$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
fi
rm -fr conftest*
fi

LIBS="$ac_libs"
fi

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

fi
d3992 2
d3995 2
d3998 2
d4001 7
a4008 25

echo $ac_n "checking for getsockopt""... $ac_c" 1>&6
echo "configure:6223: checking for getsockopt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getsockopt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
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 <<EOF
#line 6238 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
d4010 1
a4010 1
getsockopt(0,0,0,0,0)
d4013 1
a4013 1
if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4015 3
a4017 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
d4021 48
d4071 10
a4080 3
	done
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
	LIBS="$ac_save_LIBS"
d4082 3
d4086 11
d4099 4
a4102 19

eval "ac_res=\$ac_cv_funclib_getsockopt"

: << END
@@@@@@funcs="$funcs getsockopt"@@@@@@
@@@@@@libs="$libs "" "@@@@@@
END

# 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
d4105 5
a4109 23
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
	echo "$ac_t""no" 1>&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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


d4111 13
d4125 1
a4126 26
echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
echo "configure:6313: checking for setsockopt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_setsockopt'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
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 <<EOF
#line 6328 "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)
d4129 1
a4129 1
if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4131 1
a4131 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
d4135 2
d4139 1
a4139 33
	done
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_setsockopt"

: << END
@@@@@@funcs="$funcs setsockopt"@@@@@@
@@@@@@libs="$libs "" "@@@@@@
END

# 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
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
d4141 1
a4141 24
	;;
	*)
	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac



for ac_func in getudbnam setlim
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6403: 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
d4143 1
d4145 1
a4145 1
#line 6408 "configure"
a4146 7
/* 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();
a4149 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
$ac_func();
#endif

d4152 1
a4152 1
if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4154 1
a4154 1
  eval "ac_cv_func_$ac_func=yes"
d4159 1
a4159 1
  eval "ac_cv_func_$ac_func=no"
d4162 1
a4162 3
fi

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4164 1
a4164 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
d4166 5
a4170 1
  echo "$ac_t""no" 1>&6
a4171 1
done
d4173 3
d4177 10
a4186 7




echo $ac_n "checking for res_search""... $ac_c" 1>&6
echo "configure:6461: checking for res_search" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_res_search'+set}'`\" = set"; then
a4188 2
  
if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
d4190 1
a4190 7
	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"
d4192 1
a4192 1
#line 6476 "configure"
d4194 4
a4197 14

#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
d4200 1
a4200 1
res_search(0,0,0,0,0)
d4203 1
a4203 1
if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4205 1
a4205 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d4209 2
a4212 2
	done
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
a4213 1
fi
d4216 1
a4216 22


eval "ac_res=\$ac_cv_funclib_res_search"

: << END
@@@@@@funcs="$funcs res_search"@@@@@@
@@@@@@libs="$libs "" resolv"@@@@@@
END

# 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 <<EOF
#define $ac_tr_func 1
EOF

d4218 2
a4219 4
	;;
	no)
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
a4220 19
	;;
	*)
	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
d4223 5
a4227 8





echo $ac_n "checking for dn_expand""... $ac_c" 1>&6
echo "configure:6566: checking for dn_expand" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_dn_expand'+set}'`\" = set"; then
a4229 2
  
if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then
d4231 1
a4231 7
	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"
d4233 1
a4233 1
#line 6581 "configure"
d4235 4
a4238 14

#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
d4241 1
a4241 1
dn_expand(0,0,0,0,0)
d4244 1
a4244 1
if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4246 1
a4246 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d4250 2
a4253 2
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
d4255 1
d4257 5
a4261 1

d4264 1
d4266 21
a4286 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
d4288 1
a4288 4
: << END
@@@@@@funcs="$funcs dn_expand"@@@@@@
@@@@@@libs="$libs "" resolv"@@@@@@
END
d4290 8
a4297 26
# 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

  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
d4299 1
a4299 2
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
d4301 11
d4313 5
a4317 7
	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
d4320 5
a4324 8


for ac_hdr in unistd.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:6671: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d4327 2
d4330 1
a4330 1
#line 6676 "configure"
d4332 8
a4339 1
#include <$ac_hdr>
d4341 1
a4341 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6681: \"$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
d4343 1
a4343 1
  eval "ac_cv_header_$ac_safe=yes"
a4344 1
  echo "$ac_err" >&5
d4348 1
a4348 1
  eval "ac_cv_header_$ac_safe=no"
d4351 2
d4354 1
a4354 1
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d4356 1
a4356 5
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF
 
d4359 2
a4361 1
done
d4363 10
a4372 5
for ac_func in getpagesize
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6710: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4376 1
a4376 1
#line 6715 "configure"
d4379 1
a4379 1
    which can conflict with char $ac_func(); below.  */
d4384 1
a4384 1
char $ac_func();
d4391 1
a4391 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4394 1
a4394 1
$ac_func();
d4399 1
a4399 1
if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4401 1
a4401 1
  eval "ac_cv_func_$ac_func=yes"
d4406 1
a4406 1
  eval "ac_cv_func_$ac_func=no"
d4411 1
a4411 1
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4413 1
a4413 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4416 1
done
d4418 5
a4422 3
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
echo "configure:6763: checking for working mmap" >&5
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
d4425 2
a4426 3
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
d4428 1
a4428 1
#line 6771 "configure"
d4430 4
d4435 15
a4449 16
/* 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 filesystem buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propogated back to all the places they're supposed to be.
d4451 7
a4457 7
   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 <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>
d4459 1
a4459 5
/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
# ifdef HAVE_UNISTD_H
#  include <unistd.h>
# endif
d4461 16
a4476 4
/* Assume that all systems that can run configure have sys/param.h.  */
# ifndef HAVE_SYS_PARAM_H
#  define HAVE_SYS_PARAM_H 1
# endif
d4478 1
a4478 79
# 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 */

#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
#else
char *malloc();
#endif

int
main()
{
	char *data, *data2, *data3;
	int i, pagesize;
	int fd;

	pagesize = getpagesize();

	/*
	 * First, make a file with some known garbage in it.
	 */
	data = malloc(pagesize);
	if (!data)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		*(data + i) = rand();
	umask(0);
	fd = creat("conftestmmap", 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("conftestmmap", O_RDWR);
	if (fd < 0)
		exit(1);
	data2 = 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);
d4480 8
a4487 19
	/*
	 * 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 = 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);
	unlink("conftestmmap");
	exit(0);
}
d4489 1
d4491 3
a4493 3
if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_mmap_fixed_mapped=yes
d4497 2
a4498 2
  rm -fr conftest*
  ac_cv_func_mmap_fixed_mapped=no
d4500 1
a4500 1
rm -fr conftest*
d4503 5
d4510 5
a4514 13
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_MMAP 1
EOF

fi

# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo "configure:6936: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
d4517 2
d4520 1
a4520 1
#line 6941 "configure"
d4522 5
a4526 1
#include <alloca.h>
d4528 1
a4528 1
char *p = alloca(2 * sizeof(int));
d4531 1
a4531 1
if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4533 1
a4533 1
  ac_cv_header_alloca_h=yes
d4538 1
a4538 1
  ac_cv_header_alloca_h=no
d4541 8
a4550 6
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
EOF

d4553 4
a4556 3
echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo "configure:6969: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
d4560 1
a4560 1
#line 6974 "configure"
d4562 9
d4572 5
a4576 2
#ifdef __GNUC__
# define alloca __builtin_alloca
d4578 1
a4578 16
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  if HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#    endif
#endif
#  endif
# endif
a4580 2
int main() {
char *p = (char *) alloca(1);
d4583 1
a4583 1
if { (eval echo configure:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4585 1
a4585 1
  ac_cv_func_alloca_works=yes
d4590 1
a4590 1
  ac_cv_func_alloca_works=no
d4595 5
a4599 6
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
if test $ac_cv_func_alloca_works = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA 1
EOF

d4602 5
a4606 14
if test $ac_cv_func_alloca_works = no; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # contain a buggy version.  If you still want to use their alloca,
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  ALLOCA=alloca.${ac_objext}
  cat >> confdefs.h <<\EOF
#define C_ALLOCA 1
EOF


echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo "configure:7034: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
d4609 2
d4612 1
a4612 1
#line 7039 "configure"
d4614 4
a4617 5
#if defined(CRAY) && ! defined(CRAY2)
webecray
#else
wenotbecray
#endif
d4619 3
d4623 1
a4623 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "webecray" >/dev/null 2>&1; then
d4625 1
a4625 1
  ac_cv_os_cray=yes
d4627 2
d4630 1
a4630 1
  ac_cv_os_cray=no
d4633 9
d4644 1
d4646 13
a4658 6
echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7064: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4661 2
d4664 1
a4664 1
#line 7069 "configure"
a4665 3
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d4669 1
a4669 1
char $ac_func();
d4672 1
a4672 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

d4675 1
a4675 1
if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4677 1
a4677 1
  eval "ac_cv_func_$ac_func=yes"
d4682 1
a4682 1
  eval "ac_cv_func_$ac_func=no"
d4685 12
d4699 14
a4712 5
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  cat >> confdefs.h <<EOF
#define CRAY_STACKSEG_END $ac_func
EOF
a4713 4
  break
else
  echo "$ac_t""no" 1>&6
fi
a4714 2
done
fi
d4716 3
a4718 3
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo "configure:7119: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
d4721 8
a4728 3
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
else
d4730 1
a4730 1
#line 7127 "configure"
d4732 4
a4735 16
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}
main ()
{
  exit (find_stack_direction() < 0);
}
d4737 3
a4739 3
if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_stack_direction=1
a4742 2
  rm -fr conftest*
  ac_cv_c_stack_direction=-1
d4744 4
a4747 1
rm -fr conftest*
d4752 31
a4782 1
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
d4784 1
a4784 1
#define STACK_DIRECTION $ac_cv_c_stack_direction
d4787 3
a4789 1
fi
d4791 3
d4796 3
a4798 1
for ac_func in getlogin setlogin
d4801 1
a4801 1
echo "configure:7172: checking for $ac_func" >&5
d4806 1
a4806 1
#line 7177 "configure"
d4829 1
a4829 1
if { (eval echo configure:7200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4853 3
a4855 11
if test "$ac_cv_func_getlogin" = yes; then
echo $ac_n "checking if getlogin is posix""... $ac_c" 1>&6
echo "configure:7226: 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
d4857 1
d4859 3
a4861 7
fi

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
a4862 2
fi
fi
d4864 1
d4867 3
a4869 6



echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
echo "configure:7254: checking for hstrerror" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_hstrerror'+set}'`\" = set"; then
d4873 1
a4873 1
if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
d4875 1
a4875 1
	for ac_lib in "" resolv; do
d4878 1
a4878 2
		else
			ac_lib=""
a4879 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d4881 1
a4881 1
#line 7269 "configure"
d4883 1
a4883 3
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d4885 1
a4885 1
hstrerror(17)
d4888 1
a4888 1
if { (eval echo configure:7278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4890 1
a4890 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
d4897 1
a4897 1
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
d4904 1
a4904 1
eval "ac_res=\$ac_cv_funclib_hstrerror"
d4906 1
d4908 2
a4909 2
@@@@@@funcs="$funcs hstrerror"@@@@@@
@@@@@@libs="$libs "" resolv"@@@@@@
d4912 3
a4914 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"
d4918 2
a4919 2
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
d4927 2
a4928 2
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
d4932 1
a4932 1
	eval "ac_cv_func_hstrerror=yes"
d4947 1
a4947 7
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
a4948 1
if test "$ac_cv_func_hstrerror" = yes; then
d4950 3
a4952 4
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:7349: checking if hstrerror needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_hstrerror_noproto'+set}'`\" = set"; then
d4955 8
d4964 1
a4964 1
#line 7354 "configure"
a4966 3
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
d4968 1
a4968 4
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);

d4971 1
a4971 1
if { (eval echo configure:7367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4973 1
a4973 1
  eval "ac_cv_func_hstrerror_noproto=yes"
a4976 2
  rm -rf conftest*
  eval "ac_cv_func_hstrerror_noproto=no"
d4979 3
a4983 7
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

a4985 1
fi
d4987 1
a4987 1
fi
d4989 5
a4993 17
for ac_func in chown copyhostent daemon err errx fchown flock fnmatch freehostent
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7395: 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 7400 "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();
d4995 3
a4997 1
int main() {
d4999 6
a5004 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

; return 0; }
a5005 11
if { (eval echo configure:7423: \"$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
a5006 1
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d5008 12
a5020 1
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
d5022 1
a5022 1
#define $ac_tr_func 1
d5025 7
d5033 1
a5033 2
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
d5035 3
a5038 4
: << END
@@@@@@funcs="$funcs chown copyhostent daemon err errx fchown flock fnmatch freehostent"@@@@@@
END
done
d5040 3
a5042 5
for ac_func in getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7456: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d5045 8
d5054 1
a5054 1
#line 7461 "configure"
a5055 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.  */
/* 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
d5057 2
d5061 1
a5061 1
if { (eval echo configure:7484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5063 1
a5063 1
  eval "ac_cv_func_$ac_func=yes"
a5066 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d5069 5
a5075 2
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
d5077 16
a5092 1
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
d5097 5
a5101 1
else
d5103 19
a5121 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a5123 4
: << END
@@@@@@funcs="$funcs getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname"@@@@@@
END
done
d5125 3
a5127 5
for ac_func in geteuid getgid getegid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7517: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d5130 4
d5135 1
a5135 1
#line 7522 "configure"
a5136 7
/* 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();
d5138 8
a5145 12
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; }
d5147 3
a5149 3
if { (eval echo configure:7545: \"$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"
d5153 2
a5154 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d5156 1
a5156 1
rm -f conftest*
d5159 1
a5159 2
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  echo "$ac_t""yes" 1>&6
d5161 6
a5166 1
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
d5168 1
a5168 1
#define $ac_tr_func 1
a5170 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
d5173 1
a5173 6
: << END
@@@@@@funcs="$funcs geteuid getgid getegid"@@@@@@
END
done

for ac_func in getopt getusershell
d5176 1
a5176 1
echo "configure:7578: checking for $ac_func" >&5
d5181 1
a5181 1
#line 7583 "configure"
d5204 1
a5204 1
if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5218 1
a5218 2
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
a5224 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
d5226 2
a5228 4
: << END
@@@@@@funcs="$funcs getopt getusershell"@@@@@@
END
done
d5230 1
a5230 1
for ac_func in inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat
d5233 1
a5233 1
echo "configure:7639: checking for $ac_func" >&5
d5238 1
a5238 1
#line 7644 "configure"
d5261 1
a5261 1
if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5275 1
a5275 2
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
a5281 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a5282 4

: << END
@@@@@@funcs="$funcs inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat"@@@@@@
END
d5285 1
a5285 1
for ac_func in memmove
d5288 1
a5288 1
echo "configure:7700: checking for $ac_func" >&5
d5293 1
a5293 1
#line 7705 "configure"
d5316 1
a5316 1
if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5330 1
a5330 2
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
a5336 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a5337 4

: << END
@@@@@@funcs="$funcs memmove"@@@@@@
END
d5340 1
a5340 1
for ac_func in mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid
d5343 1
a5343 1
echo "configure:7761: checking for $ac_func" >&5
d5348 1
a5348 1
#line 7766 "configure"
d5371 1
a5371 1
if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5385 1
a5385 2
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
a5391 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a5392 4

: << END
@@@@@@funcs="$funcs mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid"@@@@@@
END
d5395 1
a5395 1
for ac_func in strcasecmp strncasecmp strdup strerror strftime
d5398 1
a5398 1
echo "configure:7822: checking for $ac_func" >&5
d5403 1
a5403 1
#line 7827 "configure"
d5426 1
a5426 1
if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5440 1
a5440 2
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
a5446 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a5447 4

: << END
@@@@@@funcs="$funcs strcasecmp strncasecmp strdup strerror strftime"@@@@@@
END
d5450 1
a5450 1
for ac_func in strlcat strlcpy strlwr
d5453 1
a5453 1
echo "configure:7883: checking for $ac_func" >&5
d5458 1
a5458 1
#line 7888 "configure"
d5481 1
a5481 1
if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5495 1
a5495 2
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
a5501 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a5502 4

: << END
@@@@@@funcs="$funcs strlcat strlcpy strlwr"@@@@@@
END
d5505 1
a5505 1
for ac_func in strndup strnlen strptime strsep strtok_r strupr
d5508 1
a5508 1
echo "configure:7944: checking for $ac_func" >&5
d5513 1
a5513 1
#line 7949 "configure"
d5536 1
a5536 1
if { (eval echo configure:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5550 1
a5550 2
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
a5556 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a5557 4

: << END
@@@@@@funcs="$funcs strndup strnlen strptime strsep strtok_r strupr"@@@@@@
END
d5560 1
a5560 1
for ac_func in swab unsetenv verr verrx vsyslog
d5563 1
a5563 1
echo "configure:8005: checking for $ac_func" >&5
d5568 1
a5568 1
#line 8010 "configure"
d5591 1
a5591 1
if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5605 1
a5605 2
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
a5611 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a5612 4

: << END
@@@@@@funcs="$funcs swab unsetenv verr verrx vsyslog"@@@@@@
END
d5615 1
a5615 1
for ac_func in vwarn vwarnx warn warnx writev
d5618 1
a5618 1
echo "configure:8066: checking for $ac_func" >&5
d5623 1
a5623 1
#line 8071 "configure"
d5646 1
a5646 1
if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5660 1
a5660 2
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
a5666 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a5667 4

: << END
@@@@@@funcs="$funcs vwarn vwarnx warn warnx writev"@@@@@@
END
a5670 1
if test "$ac_cv_func_gethostname" = "yes"; then
d5672 3
a5674 4
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:8129: checking if gethostname needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostname_noproto'+set}'`\" = set"; then
d5677 8
d5686 1
a5686 91
#line 8134 "configure"
#include "confdefs.h"

#include <unistd.h>
int main() {
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

; return 0; }
EOF
if { (eval echo configure:8145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_gethostname_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_gethostname_noproto=no"
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_gethostname_noproto" 1>&6

if test "$ac_cv_func_gethostname_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_GETHOSTNAME_PROTO 1
EOF

fi

fi

fi

if test "$ac_cv_func_mkstemp" = "yes"; then

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:8174: 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
else
  cat > conftest.$ac_ext <<EOF
#line 8179 "configure"
#include "confdefs.h"

#include <unistd.h>
int main() {
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);

; return 0; }
EOF
if { (eval echo configure:8190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_mkstemp_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_mkstemp_noproto=no"
fi
rm -f conftest*
fi

echo "$ac_t""$ac_cv_func_mkstemp_noproto" 1>&6

if test "$ac_cv_func_mkstemp_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_MKSTEMP_PROTO 1
EOF

fi

fi

fi

if test "$ac_cv_func_inet_aton" = "yes"; then

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:8219: 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 8224 "configure"
a5688 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
d5690 1
a5690 4
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);

d5693 1
a5693 1
if { (eval echo configure:8246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5695 1
a5695 1
  eval "ac_cv_func_inet_aton_noproto=yes"
a5698 2
  rm -rf conftest*
  eval "ac_cv_func_inet_aton_noproto=no"
d5701 3
d5706 22
a5727 1
echo "$ac_t""$ac_cv_func_inet_aton_noproto" 1>&6
d5729 12
a5740 3
if test "$ac_cv_func_inet_aton_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_INET_ATON_PROTO 1
d5743 3
a5745 1
fi
d5747 3
a5749 1
fi
a5750 1
fi
d5752 4
a5755 3
echo $ac_n "checking if realloc is broken""... $ac_c" 1>&6
echo "configure:8272: checking if realloc is broken" >&5
if eval "test \"`echo '$''{'ac_cv_func_realloc_broken'+set}'`\" = set"; then
d5758 2
a5759 2
  
ac_cv_func_realloc_broken=no
d5764 1
a5764 1
#line 8282 "configure"
d5767 1
a5767 3
#include <stddef.h>
#include <stdlib.h>

d5770 2
a5771 1
	return realloc(NULL, 17) == NULL;
d5775 1
a5775 1
if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5777 1
a5777 1
  :
d5782 1
a5782 1
  ac_cv_func_realloc_broken=yes
d5787 1
a5787 1

d5790 2
a5791 2
echo "$ac_t""$ac_cv_func_realloc_broken" 1>&6
if test "$ac_cv_func_realloc_broken" = yes ; then
d5793 1
a5793 1
#define BROKEN_REALLOC 1
d5797 2
d5801 3
a5803 4
if test "$ac_cv_func_getcwd" = yes; then
echo $ac_n "checking if getcwd is broken""... $ac_c" 1>&6
echo "configure:8320: checking if getcwd is broken" >&5
if eval "test \"`echo '$''{'ac_cv_func_getcwd_broken'+set}'`\" = set"; then
d5807 7
a5813 5
ac_cv_func_getcwd_broken=no

if test "$cross_compiling" = yes; then
  :
else
d5815 1
a5815 1
#line 8331 "configure"
d5817 9
a5825 19

#include <errno.h>
char *getcwd(char*, int);

void *popen(char *cmd, char *mode)
{
	errno = ENOTTY;
	return 0;
}

int main()
{
	char *ret;
	ret = getcwd(0, 1024);
	if(ret == 0 && errno == ENOTTY)
		return 0;
	return 1;
}

d5827 3
a5829 3
if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_getcwd_broken=yes
a5832 2
  rm -fr conftest*
  :
d5834 4
a5837 1
rm -fr conftest*
a5839 1

a5841 10
if test "$ac_cv_func_getcwd_broken" = yes; then
	cat >> confdefs.h <<\EOF
#define BROKEN_GETCWD 1
EOF
	LIBOBJS="$LIBOBJS getcwd.o"
		echo "$ac_t""$ac_cv_func_getcwd_broken" 1>&6
else
	echo "$ac_t""seems ok" 1>&6
fi
fi
d5843 1
d5845 5
d5851 3
a5853 2
echo $ac_n "checking which authentication modules should be built""... $ac_c" 1>&6
echo "configure:8382: checking which authentication modules should be built" >&5
d5855 7
a5861 1
LIB_AUTH_SUBDIRS=
d5863 13
a5875 3
if test "$ac_cv_header_siad_h" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
fi
d5877 3
a5879 3
if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
fi
d5881 2
a5882 2
case "${host}" in
*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
a5884 1
echo "$ac_t""$LIB_AUTH_SUBDIRS" 1>&6
d5888 5
a5892 2
echo $ac_n "checking for tunnel devices""... $ac_c" 1>&6
echo "configure:8403: checking for tunnel devices" >&5
d5894 6
a5899 4
APPL_KIP_DIR=

if test "$ac_cv_header_net_if_tun_h" = "yes"; then
	APPL_KIP_DIR=kip
a5900 11

echo "$ac_t""$ac_cv_header_net_if_tun_h" 1>&6




echo $ac_n "checking if gethostbyname is compatible with system prototype""... $ac_c" 1>&6
echo "configure:8417: 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
d5902 1
a5902 1
#line 8422 "configure"
a5903 1

a5909 10
#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

d5911 1
a5911 1
struct hostent *gethostbyname(const char *);
d5914 1
a5914 1
if { (eval echo configure:8445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5916 1
a5916 1
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
a5919 2
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname_proto_compat=no"
d5922 5
a5928 1
echo "$ac_t""$ac_cv_func_gethostbyname_proto_compat" 1>&6
d5930 36
a5965 3
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
d5968 3
a5970 1
fi
d5974 5
a5978 4

echo $ac_n "checking if gethostbyaddr is compatible with system prototype""... $ac_c" 1>&6
echo "configure:8470: checking if gethostbyaddr is compatible with system prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostbyaddr_proto_compat'+set}'`\" = set"; then
d5982 1
a5982 1
#line 8475 "configure"
d5984 7
d5992 9
a6000 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_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
a6002 2
int main() {
struct hostent *gethostbyaddr(const void *, size_t, int);
d6005 1
a6005 1
if { (eval echo configure:8498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6007 1
a6007 1
  eval "ac_cv_func_gethostbyaddr_proto_compat=yes"
d6012 1
a6012 1
  eval "ac_cv_func_gethostbyaddr_proto_compat=no"
d6017 5
a6021 5
echo "$ac_t""$ac_cv_func_gethostbyaddr_proto_compat" 1>&6

if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
d6024 2
d6027 1
d6032 4
a6035 3
echo $ac_n "checking if getservbyname is compatible with system prototype""... $ac_c" 1>&6
echo "configure:8523: checking if getservbyname is compatible with system prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_getservbyname_proto_compat'+set}'`\" = set"; then
d6038 8
d6047 1
a6047 1
#line 8528 "configure"
d6050 1
a6053 3
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
d6057 2
a6058 2
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
d6060 2
a6061 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d6065 1
a6065 1
struct servent *getservbyname(const char *, const char *);
d6068 1
a6068 1
if { (eval echo configure:8551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6070 1
a6070 1
  eval "ac_cv_func_getservbyname_proto_compat=yes"
a6073 2
  rm -rf conftest*
  eval "ac_cv_func_getservbyname_proto_compat=no"
d6076 3
d6081 1
a6081 1
echo "$ac_t""$ac_cv_func_getservbyname_proto_compat" 1>&6
a6082 4
if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
EOF
d6084 1
a6084 1
fi
d6086 5
d6092 3
d6096 7
d6104 13
a6116 8
echo $ac_n "checking if openlog is compatible with system prototype""... $ac_c" 1>&6
echo "configure:8576: 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
else
  cat > conftest.$ac_ext <<EOF
#line 8581 "configure"
#include "confdefs.h"
d6118 2
a6119 7
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
#endif

int main() {
void openlog(const char *, int, int);
; return 0; }
a6120 11
if { (eval echo configure:8592: \"$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"
fi
rm -f conftest*
fi
d6122 3
a6124 1
echo "$ac_t""$ac_cv_func_openlog_proto_compat" 1>&6
a6125 4
if test "$ac_cv_func_openlog_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define OPENLOG_PROTO_COMPATIBLE 1
EOF
d6127 2
d6134 4
a6137 4
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:8618: checking if crypt needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_crypt_noproto'+set}'`\" = set"; then
d6140 8
d6149 1
a6149 1
#line 8623 "configure"
d6152 9
a6160 2
#ifdef HAVE_CRYPT_H
#include <crypt.h>
d6162 2
a6163 2
#ifdef HAVE_UNISTD_H
#include <unistd.h>
d6167 1
a6167 4
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);

d6170 1
a6170 1
if { (eval echo configure:8640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6172 1
a6172 1
  eval "ac_cv_func_crypt_noproto=yes"
a6175 2
  rm -rf conftest*
  eval "ac_cv_func_crypt_noproto=no"
d6178 5
a6184 1
echo "$ac_t""$ac_cv_func_crypt_noproto" 1>&6
d6186 36
a6221 3
if test "$ac_cv_func_crypt_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_CRYPT_PROTO 1
d6224 4
a6227 1
fi
d6229 2
d6235 6
a6240 4
if test "$ac_cv_func_fclose+set" != set -o "$ac_cv_func_fclose" = yes; then
echo $ac_n "checking if fclose needs a prototype""... $ac_c" 1>&6
echo "configure:8667: checking if fclose needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_fclose_noproto'+set}'`\" = set"; then
d6244 1
a6244 1
#line 8672 "configure"
d6246 1
a6246 9

#include <stdio.h>

int main() {
struct foo { int foo; } xx;
extern int fclose (struct foo*);
fclose(&xx);

; return 0; }
d6248 4
a6251 1
if { (eval echo configure:8684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6253 1
a6253 1
  eval "ac_cv_func_fclose_noproto=yes"
d6255 1
d6259 1
a6259 1
  eval "ac_cv_func_fclose_noproto=no"
d6263 5
a6267 6

echo "$ac_t""$ac_cv_func_fclose_noproto" 1>&6

if test "$ac_cv_func_fclose_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_FCLOSE_PROTO 1
d6269 3
a6271 1

d6273 1
d6275 17
a6291 13
fi



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:8711: 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
else
  cat > conftest.$ac_ext <<EOF
#line 8716 "configure"
#include "confdefs.h"
d6293 1
a6293 1
#include <string.h>
d6295 8
a6302 4
int main() {
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);
d6306 1
a6306 1
if { (eval echo configure:8728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6308 1
a6308 1
  eval "ac_cv_func_strtok_r_noproto=yes"
d6313 1
a6313 1
  eval "ac_cv_func_strtok_r_noproto=no"
d6318 5
a6322 5
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
d6325 2
d6328 1
d6330 3
a6332 8
fi



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:8755: checking if strsep needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_strsep_noproto'+set}'`\" = set"; then
d6335 3
d6339 1
a6339 1
#line 8760 "configure"
d6342 24
a6365 1
#include <string.h>
d6367 5
a6371 4
int main() {
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);
d6373 4
a6376 13
; return 0; }
EOF
if { (eval echo configure:8772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_strsep_noproto=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_strsep_noproto=no"
fi
rm -f conftest*
fi
d6378 27
a6404 1
echo "$ac_t""$ac_cv_func_strsep_noproto" 1>&6
d6406 1
a6406 6
if test "$ac_cv_func_strsep_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_STRSEP_PROTO 1
EOF
 
fi
d6408 5
a6412 1
fi
d6414 6
d6421 1
d6423 15
a6437 9
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:8799: 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
else
  cat > conftest.$ac_ext <<EOF
#line 8804 "configure"
#include "confdefs.h"
d6439 18
a6456 1
#include <unistd.h>
d6458 19
a6476 4
int main() {
struct foo { int foo; } xx;
extern int getusershell (struct foo*);
getusershell(&xx);
a6477 1
; return 0; }
d6479 3
a6481 3
if { (eval echo configure:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_getusershell_noproto=yes"
d6485 2
a6486 2
  rm -rf conftest*
  eval "ac_cv_func_getusershell_noproto=no"
d6488 1
a6488 1
rm -f conftest*
d6491 1
a6491 1
echo "$ac_t""$ac_cv_func_getusershell_noproto" 1>&6
d6493 4
a6496 3
if test "$ac_cv_func_getusershell_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_GETUSERSHELL_PROTO 1
d6501 5
a6505 8
fi



if test "$ac_cv_func_utime+set" != set -o "$ac_cv_func_utime" = yes; then
echo $ac_n "checking if utime needs a prototype""... $ac_c" 1>&6
echo "configure:8843: checking if utime needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_utime_noproto'+set}'`\" = set"; then
d6509 1
a6509 1
#line 8848 "configure"
d6511 1
a6511 5

#ifdef HAVE_UTIME_H
#include <utime.h>
#endif

d6513 1
a6513 4
struct foo { int foo; } xx;
extern int utime (struct foo*);
utime(&xx);

d6516 1
a6516 1
if { (eval echo configure:8862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6518 1
a6518 1
  eval "ac_cv_func_utime_noproto=yes"
d6523 1
a6523 1
  eval "ac_cv_func_utime_noproto=no"
d6528 2
a6529 3
echo "$ac_t""$ac_cv_func_utime_noproto" 1>&6

if test "$ac_cv_func_utime_noproto" = yes; then
d6531 1
a6531 1
#define NEED_UTIME_PROTO 1
d6536 3
a6538 7
fi



echo $ac_n "checking for h_errno""... $ac_c" 1>&6
echo "configure:8888: checking for h_errno" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errno'+set}'`\" = set"; then
a6540 1
  
d6542 1
a6542 1
#line 8894 "configure"
d6544 17
a6560 2
extern int h_errno;
int foo() { return h_errno; }
d6562 1
a6562 1
foo()
d6565 1
a6565 1
if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6567 1
a6567 1
  ac_cv_var_h_errno=yes
d6572 1
a6572 1
  ac_cv_var_h_errno=no
a6574 1

d6577 5
d6583 1
d6585 8
a6592 4
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
d6596 3
a6598 3
echo $ac_n "checking if h_errno is properly declared""... $ac_c" 1>&6
echo "configure:8925: checking if h_errno is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errno_declaration'+set}'`\" = set"; then
a6600 1
  
d6602 1
a6602 1
#line 8931 "configure"
d6604 4
a6607 5
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
# endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
d6609 1
a6609 4
extern struct { int foo; } h_errno;
int main() {
h_errno.foo = 1;
; return 0; }
d6611 2
a6612 1
if { (eval echo configure:8944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6614 1
a6614 1
  eval "ac_cv_var_h_errno_declaration=no"
a6615 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d6617 1
a6617 1
  eval "ac_cv_var_h_errno_declaration=yes"
d6623 6
a6628 20



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

fi


fi




echo $ac_n "checking for h_errlist""... $ac_c" 1>&6
echo "configure:8975: checking for h_errlist" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errlist'+set}'`\" = set"; then
a6630 1
  
d6632 1
a6632 1
#line 8981 "configure"
d6634 8
a6641 2
extern int h_errlist;
int foo() { return h_errlist; }
d6643 10
a6652 1
foo()
d6655 1
a6655 1
if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6657 1
a6657 1
  ac_cv_var_h_errlist=yes
d6662 1
a6662 1
  ac_cv_var_h_errlist=no
a6664 1

d6667 2
a6668 4


echo "$ac_t""`eval echo \\$ac_cv_var_h_errlist`" 1>&6
if test `eval echo \\$ac_cv_var_h_errlist` = yes; then
d6670 1
a6670 1
#define HAVE_H_ERRLIST 1
d6673 7
d6681 3
a6683 3
echo $ac_n "checking if h_errlist is properly declared""... $ac_c" 1>&6
echo "configure:9012: checking if h_errlist is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_errlist_declaration'+set}'`\" = set"; then
d6686 3
a6688 1
  
d6690 1
a6690 1
#line 9018 "configure"
d6692 16
a6707 7
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
extern struct { int foo; } h_errlist;
int main() {
h_errlist.foo = 1;
; return 0; }
d6709 3
a6711 3
if { (eval echo configure:9028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_h_errlist_declaration=no"
d6715 4
a6718 2
  rm -rf conftest*
  eval "ac_cv_var_h_errlist_declaration=yes"
a6719 1
rm -f conftest*
d6723 3
a6725 7



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
d6731 3
a6733 1
fi
d6735 4
a6738 6



echo $ac_n "checking for h_nerr""... $ac_c" 1>&6
echo "configure:9059: checking for h_nerr" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_nerr'+set}'`\" = set"; then
d6742 2
a6743 12
cat > conftest.$ac_ext <<EOF
#line 9065 "configure"
#include "confdefs.h"
extern int h_nerr;
int foo() { return h_nerr; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:9073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_var_h_nerr=yes
d6745 1
a6745 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_h_nerr=no
a6746 1
rm -f conftest*
d6750 8
a6759 5
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
EOF
d6762 3
a6764 3
echo $ac_n "checking if h_nerr is properly declared""... $ac_c" 1>&6
echo "configure:9096: checking if h_nerr is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_h_nerr_declaration'+set}'`\" = set"; then
d6768 7
d6776 1
a6776 1
#line 9102 "configure"
a6780 1
extern struct { int foo; } h_nerr;
d6782 1
a6782 1
h_nerr.foo = 1;
d6785 1
a6785 1
if { (eval echo configure:9112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6787 1
a6787 1
  eval "ac_cv_var_h_nerr_declaration=no"
a6790 2
  rm -rf conftest*
  eval "ac_cv_var_h_nerr_declaration=yes"
d6793 4
d6801 37
d6839 3
a6842 5
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
d6844 2
d6848 2
a6849 1

d6853 5
a6857 5


echo $ac_n "checking for __progname""... $ac_c" 1>&6
echo "configure:9143: checking for __progname" >&5
if eval "test \"`echo '$''{'ac_cv_var___progname'+set}'`\" = set"; then
d6860 10
a6870 5
cat > conftest.$ac_ext <<EOF
#line 9149 "configure"
#include "confdefs.h"
extern int __progname;
int foo() { return __progname; }
d6872 10
a6881 1
foo()
d6884 1
a6884 1
if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6886 1
a6886 1
  ac_cv_var___progname=yes
d6891 1
a6891 1
  ac_cv_var___progname=no
a6893 1

d6896 7
d6904 4
d6909 5
a6913 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
d6915 5
a6919 4

echo $ac_n "checking if __progname is properly declared""... $ac_c" 1>&6
echo "configure:9180: checking if __progname is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var___progname_declaration'+set}'`\" = set"; then
a6921 1
  
d6923 1
a6923 1
#line 9186 "configure"
d6925 17
a6941 2
#ifdef HAVE_ERR_H
#include <err.h>
d6943 1
a6943 3
extern struct { int foo; } __progname;
int main() {
__progname.foo = 1;
d6946 1
a6946 1
if { (eval echo configure:9196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6948 1
a6948 1
  eval "ac_cv_var___progname_declaration=no"
d6953 1
a6953 1
  eval "ac_cv_var___progname_declaration=yes"
a6955 1

d6958 2
d6961 3
a6963 6


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
d6966 3
d6971 5
d6977 5
a6981 8
fi




echo $ac_n "checking if optarg is properly declared""... $ac_c" 1>&6
echo "configure:9227: checking if optarg is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_optarg_declaration'+set}'`\" = set"; then
a6983 1
  
d6985 1
a6985 1
#line 9233 "configure"
d6987 17
a7003 3
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
d7005 1
a7005 3
extern struct { int foo; } optarg;
int main() {
optarg.foo = 1;
d7008 1
a7008 1
if { (eval echo configure:9244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7010 1
a7010 1
  eval "ac_cv_var_optarg_declaration=no"
d7015 1
a7015 1
  eval "ac_cv_var_optarg_declaration=yes"
a7017 1

d7020 2
d7023 3
a7025 6


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
d7028 3
d7033 5
d7039 5
a7043 4

echo $ac_n "checking if optind is properly declared""... $ac_c" 1>&6
echo "configure:9271: checking if optind is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_optind_declaration'+set}'`\" = set"; then
a7045 1
  
d7047 1
a7047 1
#line 9277 "configure"
d7049 17
a7065 3
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
d7067 1
a7067 3
extern struct { int foo; } optind;
int main() {
optind.foo = 1;
d7070 1
a7070 1
if { (eval echo configure:9288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7072 1
a7072 1
  eval "ac_cv_var_optind_declaration=no"
d7077 1
a7077 1
  eval "ac_cv_var_optind_declaration=yes"
a7079 1

d7082 2
d7085 3
a7087 6


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
d7090 3
d7095 5
d7101 5
a7105 4

echo $ac_n "checking if opterr is properly declared""... $ac_c" 1>&6
echo "configure:9315: checking if opterr is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_opterr_declaration'+set}'`\" = set"; then
a7107 1
  
d7109 1
a7109 1
#line 9321 "configure"
d7111 17
a7127 3
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
d7129 1
a7129 3
extern struct { int foo; } opterr;
int main() {
opterr.foo = 1;
d7132 1
a7132 1
if { (eval echo configure:9332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7134 1
a7134 1
  eval "ac_cv_var_opterr_declaration=no"
d7139 1
a7139 1
  eval "ac_cv_var_opterr_declaration=yes"
a7141 1

d7144 2
d7147 3
a7149 6


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
d7152 3
d7157 6
d7165 4
a7168 3
echo $ac_n "checking if optopt is properly declared""... $ac_c" 1>&6
echo "configure:9359: checking if optopt is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_optopt_declaration'+set}'`\" = set"; then
d7172 5
d7178 1
a7178 1
#line 9365 "configure"
d7180 19
a7198 8
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
extern struct { int foo; } optopt;
int main() {
optopt.foo = 1;
; return 0; }
d7200 3
a7202 3
if { (eval echo configure:9376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_var_optopt_declaration=no"
d7206 2
a7207 2
  rm -rf conftest*
  eval "ac_cv_var_optopt_declaration=yes"
d7209 1
a7209 2
rm -f conftest*

a7211 1
  
d7213 1
d7215 1
a7215 2
echo "$ac_t""$ac_cv_var_optopt_declaration" 1>&6
if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then
d7217 1
a7217 1
#define HAVE_OPTOPT_DECLARATION 1
d7219 6
a7225 1
fi
d7228 2
d7231 1
d7233 2
a7234 23
echo $ac_n "checking if environ is properly declared""... $ac_c" 1>&6
echo "configure:9404: 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 9410 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } environ;
int main() {
environ.foo = 1;
; return 0; }
EOF
if { (eval echo configure:9418: \"$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"
a7235 1
rm -f conftest*
d7237 2
d7241 6
d7249 2
d7252 1
a7252 5
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
d7254 2
d7258 3
d7263 3
a7265 3
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
echo "configure:9445: checking return type of signal handlers" >&5
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
d7269 1
a7269 1
#line 9450 "configure"
d7271 3
a7273 4
#include <sys/types.h>
#include <signal.h>
#ifdef signal
#undef signal
d7275 2
a7276 4
#ifdef __cplusplus
extern "C" void (*signal (int, void (*)(int)))(int);
#else
void (*signal ()) ();
d7280 4
a7283 1
int i;
d7286 1
a7286 1
if { (eval echo configure:9467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7288 1
a7288 1
  ac_cv_type_signal=void
d7293 1
a7293 1
  ac_cv_type_signal=int
d7298 1
a7298 4
echo "$ac_t""$ac_cv_type_signal" 1>&6
cat >> confdefs.h <<EOF
#define RETSIGTYPE $ac_cv_type_signal
EOF
d7300 1
a7300 2

if test "$ac_cv_type_signal" = "void" ; then
d7302 1
a7302 1
#define VOID_RETSIGTYPE 1
d7306 3
d7313 3
a7315 3
echo $ac_n "checking for ut_addr in struct utmp""... $ac_c" 1>&6
echo "configure:9496: checking for ut_addr in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_addr'+set}'`\" = set"; then
a7317 1
  
d7319 1
a7319 1
#line 9502 "configure"
d7321 3
a7323 2
#include <sys/types.h>
 #include <utmp.h>
d7325 4
a7328 1
struct utmp x; x.ut_addr;
d7331 1
a7331 1
if { (eval echo configure:9510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7333 1
a7333 1
  ac_cv_type_struct_utmp_ut_addr=yes
d7338 1
a7338 1
  ac_cv_type_struct_utmp_ut_addr=no
d7343 1
a7343 2
echo "$ac_t""$ac_cv_type_struct_utmp_ut_addr" 1>&6
if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then
d7345 1
d7347 1
a7347 1
#define HAVE_STRUCT_UTMP_UT_ADDR 1
a7349 1
	
d7351 3
d7358 3
a7360 3
echo $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6
echo "configure:9536: checking for ut_host in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_host'+set}'`\" = set"; then
d7365 1
a7365 1
#line 9542 "configure"
d7367 2
a7368 2
#include <sys/types.h>
 #include <utmp.h>
d7370 1
a7370 1
struct utmp x; x.ut_host;
d7373 1
a7373 1
if { (eval echo configure:9550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7375 1
a7375 1
  ac_cv_type_struct_utmp_ut_host=yes
d7380 1
a7380 1
  ac_cv_type_struct_utmp_ut_host=no
d7383 1
d7386 1
a7386 2
echo "$ac_t""$ac_cv_type_struct_utmp_ut_host" 1>&6
if test "$ac_cv_type_struct_utmp_ut_host" = yes; then
a7387 3
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_HOST 1
EOF
d7389 3
a7392 1
fi
d7394 5
d7401 3
a7403 4

echo $ac_n "checking for ut_id in struct utmp""... $ac_c" 1>&6
echo "configure:9576: checking for ut_id in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_id'+set}'`\" = set"; then
d7408 1
a7408 1
#line 9582 "configure"
d7410 1
d7412 5
a7416 1
 #include <utmp.h>
d7418 1
a7418 1
struct utmp x; x.ut_id;
d7421 1
a7421 1
if { (eval echo configure:9590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7423 1
a7423 1
  ac_cv_type_struct_utmp_ut_id=yes
d7428 1
a7428 1
  ac_cv_type_struct_utmp_ut_id=no
d7431 1
a7433 2
echo "$ac_t""$ac_cv_type_struct_utmp_ut_id" 1>&6
if test "$ac_cv_type_struct_utmp_ut_id" = yes; then
d7435 12
a7446 2
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_ID 1
d7449 1
d7455 3
a7457 4

echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
echo "configure:9616: checking for ut_pid in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_pid'+set}'`\" = set"; then
d7462 1
a7462 1
#line 9622 "configure"
d7464 2
a7465 2
#include <sys/types.h>
 #include <utmp.h>
d7467 1
a7467 1
struct utmp x; x.ut_pid;
d7470 1
a7470 1
if { (eval echo configure:9630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7472 1
a7472 1
  ac_cv_type_struct_utmp_ut_pid=yes
d7477 1
a7477 1
  ac_cv_type_struct_utmp_ut_pid=no
d7480 1
d7483 1
a7483 2
echo "$ac_t""$ac_cv_type_struct_utmp_ut_pid" 1>&6
if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then
a7484 3
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_PID 1
EOF
d7486 3
a7489 1
fi
d7491 5
d7498 3
a7500 4

echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
echo "configure:9656: checking for ut_type in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_type'+set}'`\" = set"; then
d7505 1
a7505 1
#line 9662 "configure"
d7507 4
a7510 2
#include <sys/types.h>
 #include <utmp.h>
d7512 1
a7512 1
struct utmp x; x.ut_type;
d7515 1
a7515 1
if { (eval echo configure:9670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7517 1
a7517 1
  ac_cv_type_struct_utmp_ut_type=yes
d7521 14
a7534 5
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_type=no
fi
rm -f conftest*
fi
a7535 2
echo "$ac_t""$ac_cv_type_struct_utmp_ut_type" 1>&6
if test "$ac_cv_type_struct_utmp_ut_type" = yes; then
d7537 4
a7540 2
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_TYPE 1
d7543 1
d7549 3
a7551 4

echo $ac_n "checking for ut_user in struct utmp""... $ac_c" 1>&6
echo "configure:9696: checking for ut_user in struct utmp" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmp_ut_user'+set}'`\" = set"; then
d7556 1
a7556 1
#line 9702 "configure"
d7558 2
a7559 2
#include <sys/types.h>
 #include <utmp.h>
d7561 1
a7561 1
struct utmp x; x.ut_user;
d7564 1
a7564 1
if { (eval echo configure:9710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7566 1
a7566 1
  ac_cv_type_struct_utmp_ut_user=yes
d7571 1
a7571 1
  ac_cv_type_struct_utmp_ut_user=no
d7574 1
d7577 1
a7577 2
echo "$ac_t""$ac_cv_type_struct_utmp_ut_user" 1>&6
if test "$ac_cv_type_struct_utmp_ut_user" = yes; then
a7578 3
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMP_UT_USER 1
EOF
d7580 3
a7583 1
fi
d7585 5
d7592 3
a7594 4

echo $ac_n "checking for ut_exit in struct utmpx""... $ac_c" 1>&6
echo "configure:9736: checking for ut_exit in struct utmpx" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_exit'+set}'`\" = set"; then
d7599 1
a7599 1
#line 9742 "configure"
d7601 4
a7604 2
#include <sys/types.h>
 #include <utmp.h>
d7606 1
a7606 1
struct utmpx x; x.ut_exit;
d7609 1
a7609 1
if { (eval echo configure:9750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7611 1
a7611 1
  ac_cv_type_struct_utmpx_ut_exit=yes
d7616 1
a7616 1
  ac_cv_type_struct_utmpx_ut_exit=no
d7619 1
a7621 2
echo "$ac_t""$ac_cv_type_struct_utmpx_ut_exit" 1>&6
if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then
d7623 12
a7634 2
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMPX_UT_EXIT 1
d7637 1
d7643 3
a7645 4

echo $ac_n "checking for ut_syslen in struct utmpx""... $ac_c" 1>&6
echo "configure:9776: checking for ut_syslen in struct utmpx" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_utmpx_ut_syslen'+set}'`\" = set"; then
d7650 1
a7650 1
#line 9782 "configure"
d7652 2
a7653 2
#include <sys/types.h>
 #include <utmp.h>
d7655 1
a7655 1
struct utmpx x; x.ut_syslen;
d7658 1
a7658 1
if { (eval echo configure:9790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7660 1
a7660 1
  ac_cv_type_struct_utmpx_ut_syslen=yes
d7665 1
a7665 1
  ac_cv_type_struct_utmpx_ut_syslen=no
d7668 1
d7671 1
a7671 2
echo "$ac_t""$ac_cv_type_struct_utmpx_ut_syslen" 1>&6
if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then
a7672 3
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1
EOF
d7674 3
a7677 1
fi
d7679 5
d7686 3
a7688 6



echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
echo "configure:9818: checking for tm_gmtoff in struct tm" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_gmtoff'+set}'`\" = set"; then
d7693 1
a7693 1
#line 9824 "configure"
d7695 4
a7698 1
#include <time.h>
d7700 1
a7700 1
struct tm x; x.tm_gmtoff;
d7703 1
a7703 1
if { (eval echo configure:9831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7705 1
a7705 1
  ac_cv_type_struct_tm_tm_gmtoff=yes
d7710 1
a7710 1
  ac_cv_type_struct_tm_tm_gmtoff=no
d7713 1
a7715 2
echo "$ac_t""$ac_cv_type_struct_tm_tm_gmtoff" 1>&6
if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then
d7717 12
a7728 2
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_GMTOFF 1
d7731 1
d7737 3
a7739 4

echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
echo "configure:9857: checking for tm_zone in struct tm" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_tm_tm_zone'+set}'`\" = set"; then
d7744 1
a7744 1
#line 9863 "configure"
d7746 2
a7747 1
#include <time.h>
d7749 1
a7749 1
struct tm x; x.tm_zone;
d7752 1
a7752 1
if { (eval echo configure:9870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7754 1
a7754 1
  ac_cv_type_struct_tm_tm_zone=yes
d7759 1
a7759 1
  ac_cv_type_struct_tm_tm_zone=no
d7762 1
a7764 2
echo "$ac_t""$ac_cv_type_struct_tm_tm_zone" 1>&6
if test "$ac_cv_type_struct_tm_tm_zone" = yes; then
d7766 1
a7766 3
	cat >> confdefs.h <<\EOF
#define HAVE_STRUCT_TM_TM_ZONE 1
EOF
d7769 3
a7771 1
fi
d7774 5
d7780 1
d7783 3
a7785 3
echo $ac_n "checking for timezone""... $ac_c" 1>&6
echo "configure:9897: checking for timezone" >&5
if eval "test \"`echo '$''{'ac_cv_var_timezone'+set}'`\" = set"; then
d7790 1
a7790 1
#line 9903 "configure"
d7792 2
a7793 2
extern int timezone;
int foo() { return timezone; }
d7795 1
a7795 1
foo()
d7798 1
a7798 1
if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7800 1
a7800 1
  ac_cv_var_timezone=yes
d7805 1
a7805 1
  ac_cv_var_timezone=no
d7812 7
d7820 2
a7821 2
echo "$ac_t""`eval echo \\$ac_cv_var_timezone`" 1>&6
if test `eval echo \\$ac_cv_var_timezone` = yes; then
d7823 1
a7823 1
#define HAVE_TIMEZONE 1
d7826 2
d7829 3
a7831 3
echo $ac_n "checking if timezone is properly declared""... $ac_c" 1>&6
echo "configure:9934: checking if timezone is properly declared" >&5
if eval "test \"`echo '$''{'ac_cv_var_timezone_declaration'+set}'`\" = set"; then
d7836 1
a7836 1
#line 9940 "configure"
d7838 2
a7839 2
#include <time.h>
extern struct { int foo; } timezone;
d7841 1
a7841 1
timezone.foo = 1;
d7844 1
a7844 1
if { (eval echo configure:9948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7846 1
a7846 1
  eval "ac_cv_var_timezone_declaration=no"
d7851 1
a7851 1
  eval "ac_cv_var_timezone_declaration=yes"
d7858 1
d7861 3
a7863 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
a7864 1
fi
d7866 5
d7875 3
a7877 6


cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6
echo "configure:9980: checking for sa_family_t" >&5
if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
d7880 1
d7882 1
a7882 1
#line 9985 "configure"
a7883 2
#include <sys/types.h>
#if STDC_HEADERS
d7885 1
a7885 3
#include <stddef.h>
#endif
#include <sys/socket.h>
d7887 1
a7887 1
sa_family_t foo;
d7890 1
a7890 1
if { (eval echo configure:9997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7892 1
a7892 1
  eval "ac_cv_type_$cv=yes"
d7897 1
a7897 1
  eval "ac_cv_type_$cv=no"
d7900 1
d7902 4
a7905 3
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____%'`
d7908 1
a7908 1
@@@@@@funcs="$funcs sa_family_t"@@@@@@
d7911 3
d7915 1
a7915 1
#define $ac_tr_hdr 1
d7921 3
a7923 5

cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
echo "configure:10026: checking for struct sockaddr_storage" >&5
if eval "test \"`echo '$''{'ac_cv_type_$cv'+set}'`\" = set"; then
d7927 1
a7927 1
#line 10031 "configure"
d7930 8
a7937 3
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
d7939 1
a7939 1
#include <sys/socket.h>
d7941 1
a7941 1
struct sockaddr_storage foo;
d7944 1
a7944 1
if { (eval echo configure:10043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7946 1
a7946 1
  eval "ac_cv_type_$cv=yes"
d7951 1
a7951 1
  eval "ac_cv_type_$cv=no"
a7954 3
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____%'`
d7956 42
a7997 3
: << END
@@@@@@funcs="$funcs struct_sockaddr_storage"@@@@@@
END
d7999 10
a8008 2
  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
d8012 13
d8026 2
d8029 11
d8041 2
a8042 5
echo $ac_n "checking for struct spwd""... $ac_c" 1>&6
echo "configure:10071: 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
d8045 1
a8045 1
#line 10077 "configure"
d8047 1
a8047 7
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int main() {
struct spwd foo;
; return 0; }
d8049 2
a8050 1
if { (eval echo configure:10087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8052 4
a8055 6
  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
d8059 8
a8066 5
fi

echo "$ac_t""$ac_cv_struct_spwd" 1>&6

if test "$ac_cv_struct_spwd" = "yes"; then
d8068 1
a8068 1
#define HAVE_STRUCT_SPWD 1
d8072 1
d8076 1
a8076 1
echo "configure:10111: checking for st_blksize in struct stat" >&5
d8081 1
a8081 1
#line 10116 "configure"
d8089 1
a8089 1
if { (eval echo configure:10124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8113 1
a8113 1
echo "configure:10148: checking for struct winsize" >&5
d8121 1
a8121 1
#line 10156 "configure"
a8138 1

d8142 1
a8142 1
#line 10178 "configure"
d8157 1
a8157 1
#line 10193 "configure"
d8175 1
a8175 1
echo "configure:10211: checking for pid_t" >&5
d8180 1
a8180 1
#line 10216 "configure"
d8189 1
a8189 1
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
d8208 1
a8208 1
echo "configure:10244: checking for uid_t in sys/types.h" >&5
d8213 1
a8213 1
#line 10249 "configure"
d8242 1
a8242 1
echo "configure:10278: checking for off_t" >&5
d8247 1
a8247 1
#line 10283 "configure"
d8256 1
a8256 1
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
d8275 1
a8275 1
echo "configure:10311: checking for size_t" >&5
d8280 1
a8280 1
#line 10316 "configure"
d8289 1
a8289 1
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a8307 13
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
echo "configure:10345: 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
else
  cat > conftest.$ac_ext <<EOF
#line 10350 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d8309 3
a8311 28
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
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
else
  rm -rf conftest*
  ac_cv_type_ssize_t=no
fi
rm -f conftest*

fi
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

fi



echo $ac_n "checking for broken sys/socket.h""... $ac_c" 1>&6
echo "configure:10384: checking for broken sys/socket.h" >&5
if eval "test \"`echo '$''{'krb_cv_header_sys_socket_h_broken'+set}'`\" = set"; then
d8316 1
a8316 1
#line 10390 "configure"
a8319 33
#include <sys/socket.h>
int main() {

; return 0; }
EOF
if { (eval echo configure:10399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  krb_cv_header_sys_socket_h_broken=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  krb_cv_header_sys_socket_h_broken=yes
fi
rm -f conftest*
fi

echo "$ac_t""$krb_cv_header_sys_socket_h_broken" 1>&6



echo $ac_n "checking for broken netdb.h""... $ac_c" 1>&6
echo "configure:10416: checking for broken netdb.h" >&5
if eval "test \"`echo '$''{'krb_cv_header_netdb_h_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10422 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netdb.h>
#include <netdb.h>
d8321 2
a8322 1

d8325 1
a8325 1
if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8327 1
a8327 1
  krb_cv_header_netdb_h_broken=no
d8332 1
a8332 1
  krb_cv_header_netdb_h_broken=yes
a8334 16
fi

echo "$ac_t""$krb_cv_header_netdb_h_broken" 1>&6

if test "$krb_cv_header_netdb_h_broken" = "yes"; then
  EXTRA_HEADERS="$EXTRA_HEADERS netdb.h"
fi




echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:10453: 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
a8335 19
cat > conftest.$ac_ext <<EOF
#line 10459 "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:10467: \"$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*
d8338 2
a8339 3
echo "$ac_t""$ac_cv_type_struct_sockaddr_sa_len" 1>&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
	
d8341 1
a8341 1
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
a8343 1
	
a8346 2


d8348 3
a8350 5


echo $ac_n "checking for ouid in SIAENTITY""... $ac_c" 1>&6
echo "configure:10496: checking for ouid in SIAENTITY" >&5
if eval "test \"`echo '$''{'ac_cv_type_siaentity_ouid'+set}'`\" = set"; then
d8355 1
a8355 1
#line 10502 "configure"
d8358 1
d8360 2
a8361 1
SIAENTITY x; x.ouid;
d8364 1
a8364 1
if { (eval echo configure:10509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8366 1
a8366 1
  ac_cv_type_siaentity_ouid=yes
d8371 1
a8371 1
  ac_cv_type_siaentity_ouid=no
d8374 1
d8377 2
a8378 3
echo "$ac_t""$ac_cv_type_siaentity_ouid" 1>&6
if test "$ac_cv_type_siaentity_ouid" = yes; then
	
d8380 1
a8380 1
#define HAVE_SIAENTITY_OUID 1
a8382 1
	
a8383 2


d8387 3
a8389 5
for ac_func in getmsg
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10538: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d8392 3
d8396 1
a8396 1
#line 10543 "configure"
a8397 7
/* 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();
d8399 1
a8399 1
int main() {
d8401 5
a8405 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
a8406 1
; return 0; }
d8408 3
a8410 3
if { (eval echo configure:10566: \"$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"
d8414 4
a8417 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d8419 1
a8419 1
rm -f conftest*
d8422 4
a8425 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
#define $ac_tr_func 1
a8427 5
else
  echo "$ac_t""no" 1>&6
fi
done

a8428 1
if test "$ac_cf_func_getmsg" = "yes"; then
d8430 5
a8434 3
echo $ac_n "checking for working getmsg""... $ac_c" 1>&6
echo "configure:10594: checking for working getmsg" >&5
if eval "test \"`echo '$''{'ac_cv_func_getmsg'+set}'`\" = set"; then
d8438 1
a8438 1
  ac_cv_func_getmsg=no
d8441 1
a8441 1
#line 10602 "configure"
d8444 3
a8446 2
#include <stdio.h>

d8449 7
a8455 2
  getmsg(open("/dev/null", 0), NULL, NULL, NULL);
  return 0;
a8456 1

d8458 1
a8458 1
if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8460 1
a8460 1
  ac_cv_func_getmsg=yes
d8465 1
a8465 1
  ac_cv_func_getmsg=no
d8472 2
a8473 2
echo "$ac_t""$ac_cv_func_getmsg" 1>&6
test "$ac_cv_func_getmsg" = "yes" &&
d8475 1
a8475 1
#define HAVE_GETMSG 1
d8478 1
a8478 4

fi


d8484 1
a8484 1
echo "configure:10643: checking for el_init" >&5
d8494 1
a8494 2
		else
			ac_lib=""
a8495 1
		LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
d8497 1
a8497 1
#line 10658 "configure"
d8504 1
a8504 1
if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8522 1
d8525 1
a8525 1
@@@@@@libs="$libs "" edit"@@@@@@
d8528 2
a8529 3
# 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`"
a8562 41
if test "$ac_cv_func_el_init" = yes ; then
	echo $ac_n "checking for four argument el_init""... $ac_c" 1>&6
echo "configure:10726: 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 10732 "configure"
#include "confdefs.h"
#include <stdio.h>
			#include <histedit.h>
int main() {
el_init("", NULL, NULL, NULL);
; return 0; }
EOF
if { (eval echo configure:10740: \"$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

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

	fi
fi


save_LIBS="$LIBS"
LIBS="$LIB_tgetent $LIBS"

d8566 1
a8566 1
echo "configure:10768: checking for readline" >&5
d8573 1
a8573 1
	for ac_lib in "" edit readline; do
d8576 1
a8576 2
		else
			ac_lib=""
a8577 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d8579 1
a8579 1
#line 10783 "configure"
d8586 1
a8586 1
if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8604 1
d8607 1
a8607 1
@@@@@@libs="$libs "" edit readline"@@@@@@
d8610 2
a8611 3
# readline
eval "ac_tr_func=HAVE_`echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d8645 19
a8663 4
LIBS="$save_LIBS"
el_yes="# "
if test "$with_readline" -a "$with_readline" != "no"; then
	:
d8665 6
a8671 4
elif test "$ac_cv_func_el_init" = yes; then
	el_yes=
	LIB_readline="-L\$(top_builddir)/lib/editline -lel_compat $LIB_el_init"
	INCLUDE_readline='-I$(top_srcdir)/lib/editline'
a8672 4
	LIB_readline='-L$(top_builddir)/lib/editline -leditline'
	INCLUDE_readline='-I$(top_srcdir)/lib/editline'
fi
LIB_readline="$LIB_readline \$(LIB_tgetent)"
d8677 5
d8711 1
a8711 1
echo "configure:10897: checking for streamspty" >&5
d8737 1
a8737 1
echo "configure:10923: checking if /bin/ls takes -A" >&5
d8750 1
a8750 1
echo "configure:10936: checking for suffix of preformatted manual pages" >&5
d8770 4
a8773 1
KRB_KAFS_LIB="-L\$(top_builddir)/lib/kafs -lkafs $AIX_EXTRA_KAFS"
d8819 1
a8819 1
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
d8886 1
a8886 1
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
d8902 3
a8907 1
lib/com_err/Makefile				\
a8917 1
lib/rxkad/Makefile				\
d8942 1
a8942 1
appl/popper/Makefile				\
a8943 1
appl/push/Makefile				\
a8949 1
etc/inetd.conf.changes				\
a8958 1
s%@@SHELL@@%$SHELL%g
a8961 1
s%@@FFLAGS@@%$FFLAGS%g
a8986 1
s%@@CANONICAL_HOST@@%$CANONICAL_HOST%g
a8995 1
s%@@INSTALL_SCRIPT@@%$INSTALL_SCRIPT%g
a8996 1
s%@@AWK@@%$AWK%g
d8998 2
a8999 5
s%@@WFLAGS@@%$WFLAGS%g
s%@@WFLAGS_NOUNUSED@@%$WFLAGS_NOUNUSED%g
s%@@WFLAGS_NOIMPLICITINT@@%$WFLAGS_NOIMPLICITINT%g
s%@@INCLUDE_socks@@%$INCLUDE_socks%g
s%@@LIB_socks@@%$LIB_socks%g
d9001 2
a9002 13
s%@@LIB_otp@@%$LIB_otp%g
s%@@OTP_dir@@%$OTP_dir%g
s%@@LIB_security@@%$LIB_security%g
s%@@AFSWS@@%$AFSWS%g
s%@@LIB_SUBDIRS@@%$LIB_SUBDIRS%g
s%@@disable_cat_manpages@@%$disable_cat_manpages%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%@@LINK@@%$LINK%g
s%@@lib_deps_yes@@%$lib_deps_yes%g
s%@@lib_deps_no@@%$lib_deps_no%g
a9012 4
s%@@build_symlink_command@@%$build_symlink_command%g
s%@@install_symlink_command@@%$install_symlink_command%g
s%@@install_symlink_command2@@%$install_symlink_command2%g
s%@@LIB_dlopen@@%$LIB_dlopen%g
d9015 2
a9016 6
s%@@AFS_EXTRA_LD@@%$AFS_EXTRA_LD%g
s%@@AFS_EXTRA_DEFS@@%$AFS_EXTRA_DEFS%g
s%@@AIX_EXTRA_KAFS@@%$AIX_EXTRA_KAFS%g
s%@@EXTRA_HEADERS@@%$EXTRA_HEADERS%g
s%@@EXTRA_LOCL_HEADERS@@%$EXTRA_LOCL_HEADERS%g
s%@@LIB_crypt@@%$LIB_crypt%g
a9030 1
s%@@LIB_XauWriteAuth@@%$LIB_XauWriteAuth%g
d9032 4
a9035 3
s%@@LIB_XauFileName@@%$LIB_XauFileName%g
s%@@NEED_WRITEAUTH_TRUE@@%$NEED_WRITEAUTH_TRUE%g
s%@@NEED_WRITEAUTH_FALSE@@%$NEED_WRITEAUTH_FALSE%g
a9036 1
s%@@DBLIB@@%$DBLIB%g
a9047 2
s%@@krb_cv_header_sys_socket_h_broken@@%$krb_cv_header_sys_socket_h_broken%g
s%@@krb_cv_header_netdb_h_broken@@%$krb_cv_header_netdb_h_broken%g
d9049 3
a9051 1
s%@@el_yes@@%$el_yes%g
d9100 3
a9105 1
lib/com_err/Makefile				\
a9115 1
lib/rxkad/Makefile				\
d9140 1
a9140 1
appl/popper/Makefile				\
a9141 1
appl/push/Makefile				\
a9147 1
etc/inetd.conf.changes				\
d9326 1
d9328 4
a9331 4
cat > include/newversion.h.in <<FOOBAR
char *${PACKAGE}_long_version = "@@(#)\$Version: $PACKAGE-$VERSION by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
char *${PACKAGE}_version = "$PACKAGE-$VERSION";
FOOBAR
a9343 1

@


1.1.1.2
log
@Clean import of KTH krb4-0.10.1.
@
text
@d3 1
a3 1
# From configure.in Revision: 1.415.2.9 
a58 51


# Define a conditional.
















































d60 1
a60 1
# Generated automatically using autoconf version 2.13 
d74 1
a74 5
  --with-socks-lib=dir            use socks libraries in dir"
ac_help="$ac_help
  --with-socks-include=dir        use socks headers in dir"
ac_help="$ac_help
  --enable-legacy-kdestroy    kdestroy doesn't destroy tokens by default"
d76 1
a76 1
  --enable-match-subdomains	match realm in subdomains"
d78 1
a78 1
  --with-ld-flags=flags   what flags use when linking"
a87 2
  --with-db-dir=dir	   this is the database directory (default /var/kerberos)"
ac_help="$ac_help
a91 8
  --disable-otp           if you don't want OTP support"
ac_help="$ac_help
  --enable-osfc2          enable some OSF C2 support"
ac_help="$ac_help
  --disable-mmap          disable use of mmap"
ac_help="$ac_help
  --disable-dynamic-afs   don't use loaded AFS library with AIX"
ac_help="$ac_help
a98 6
  --with-afsws=dir        use AFS includes and libraries from dir=/usr/afsws"
ac_help="$ac_help
  --enable-rxkad           build rxkad library"
ac_help="$ac_help
  --disable-cat-manpages   don't install any preformatted manpages"
ac_help="$ac_help
d101 1
a101 9
  --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-mips-abi=abi     ABI to use for IRIX (32, n32, or 64)"
ac_help="$ac_help
  --with-hesiod=dir                use hesiod in dir"
ac_help="$ac_help
  --with-hesiod-lib=dir            use hesiod libraries in dir"
d103 1
a103 3
  --with-hesiod-include=dir        use hesiod headers in dir"
ac_help="$ac_help
  --enable-shared         create shared libraries for Kerberos"
a143 1
SHELL=${CONFIG_SHELL-/bin/sh}
d427 1
a427 1
    echo "configure generated by autoconf version 2.13"
d597 1
a597 1
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
a599 2
ac_exeext=
ac_objext=o
d617 1
a617 8
VERSION=0.10.1
cat >> confdefs.h <<EOF
#define PACKAGE "$PACKAGE"
EOF
cat >> confdefs.h <<EOF
#define VERSION "$VERSION"
EOF

d642 1
a642 1
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
d647 1
a647 1
echo "configure:739: checking host system type" >&5
d654 1
a654 1
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
d661 1
a661 1
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
a666 23
CANONICAL_HOST=$host



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

fi

d668 1
a668 1
echo "configure:783: checking whether ${MAKE-make} sets \${MAKE}" >&5
d719 1
a719 1
echo "configure:834: checking for ln -s or something else" >&5
d744 1
a744 1
echo "configure:859: checking for $ac_word" >&5
d751 2
a752 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
d773 1
a773 1
echo "configure:889: checking for $ac_word" >&5
d780 1
a780 1
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
d782 1
a782 2
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
a816 34
  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:940: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # 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_CC="cl"
      break
    fi
  done
  IFS="$ac_save_ifs"
fi
fi
CC="$ac_cv_prog_CC"
if test -n "$CC"; then
  echo "$ac_t""$CC" 1>&6
else
  echo "$ac_t""no" 1>&6
fi
 ;;
    esac
  fi
d821 1
a821 1
echo "configure:972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d827 1
a827 1
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
d830 2
a831 3
cat > conftest.$ac_ext << EOF

#line 983 "configure"
a832 1

d835 1
a835 1
if { (eval echo configure:988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a848 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
d855 1
a855 1
echo "configure:1014: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d860 1
a860 1
echo "configure:1019: checking whether we are using GNU C" >&5
d869 1
a869 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d880 5
a884 9
else
  GCC=
fi

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:1047: checking whether ${CC-cc} accepts -g" >&5
d899 3
a901 4
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
d904 1
a904 1
    CFLAGS="-g"
d907 2
a908 5
  if test "$GCC" = yes; then
    CFLAGS="-O2"
  else
    CFLAGS=
  fi
d912 1
a912 1
echo "configure:1079: checking how to run the C preprocessor" >&5
d927 1
a927 1
#line 1094 "configure"
d933 2
a934 2
{ (eval echo configure:1100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d944 1
a944 18
#line 1111 "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:1117: \"$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 1128 "configure"
d950 2
a951 2
{ (eval echo configure:1134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
a963 2
fi
rm -f conftest*
d973 1
a973 1
echo "configure:1159: checking for POSIXized ISC" >&5
d998 1
a998 1
echo "configure:1184: checking for $ac_word" >&5
d1005 2
a1006 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
d1029 1
a1029 1
echo "configure:1216: checking for $ac_word" >&5
d1036 2
a1037 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
d1062 1
a1062 1
echo "configure:1250: checking for yywrap in -l$ac_lib" >&5
d1070 1
a1070 1
#line 1258 "configure"
d1081 1
a1081 1
if { (eval echo configure:1269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1106 1
a1106 1
echo "configure:1294: checking for $ac_word" >&5
d1113 2
a1114 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
a1138 1
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
d1143 1
a1143 1
echo "configure:1333: checking for a BSD compatible install" >&5
d1148 1
a1148 1
    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
d1155 1
a1155 3
      # Don't use installbsd from OSF since it installs stuff as root
      # by default.
      for ac_prog in ginstall scoinst install; do
d1160 1
a1189 2
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'

a1191 34
for ac_prog in 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:1390: 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
  done
  IFS="$ac_save_ifs"
fi
fi
AWK="$ac_cv_prog_AWK"
if test -n "$AWK"; then
  echo "$ac_t""$AWK" 1>&6
else
  echo "$ac_t""no" 1>&6
fi

test -n "$AWK" && break
done

d1195 1
a1195 1
echo "configure:1422: checking for $ac_word" >&5
d1202 2
a1203 3
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  ac_dummy="$PATH"
  for ac_dir in $ac_dummy; do
a1221 4
WFLAGS=""
WFLAGS_NOUNUSED=""
WFLAGS_NOIMPLICITINT=""
   
d1224 2
d1229 4
a1232 1
  :
d1243 1
d1254 1
a1257 2
echo $ac_n "checking for socks""... $ac_c" 1>&6
echo "configure:1484: checking for socks" >&5
d1259 3
a1261 19
case "$with_socks" in
yes)	;;
no)	;;
"")	;;
*)	if test "$with_socks_include" = ""; then
		with_socks_include="$with_socks/include"
	fi
	if test "$with_socks_lib" = ""; then
		with_socks_lib="$with_socks/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
d1263 4
a1266 10
case "$with_socks_include" in
yes) ;;
no)  ;;
*)   header_dirs="$with_socks_include $header_dirs";;
esac
case "$with_socks_lib" in
yes) ;;
no)  ;;
*)   lib_dirs="$with_socks_lib $lib_dirs";;
esac
d1268 19
a1286 7
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 1523 "configure"
a1288 3
int main() {

; return 0; }
d1290 4
a1293 1
if { (eval echo configure:1530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1295 1
a1295 1
  ires=$i;break
d1297 1
d1302 25
a1326 5
done
for i in $lib_dirs; do
	LIBS="-L$i -lsocks5  $save_LIBS"
	cat > conftest.$ac_ext <<EOF
#line 1542 "configure"
d1328 1
a1328 1
#include <socks.h>
d1333 1
a1333 1
if { (eval echo configure:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1335 1
a1335 1
  lres=$i;break
d1341 11
a1351 11
done
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"

if test "$ires" -a "$lres" -a "$with_socks" != "no"; then
	socks_includedir="$ires"
	socks_libdir="$lres"
	INCLUDE_socks="-I$socks_includedir"
	LIB_socks="-L$socks_libdir -lsocks5"
	cat >> confdefs.h <<EOF
#define `echo socks | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
d1354 9
a1362 2
	with_socks=yes
	echo "$ac_t""headers $ires, libraries $lres" 1>&6
d1364 1
a1364 33
	INCLUDE_socks=
	LIB_socks=
	with_socks=no
	echo "$ac_t""$with_socks" 1>&6
fi



CFLAGS="$INCLUDE_socks $CFLAGS"
LIBS="$LIB_socks $LIBS"

# Check whether --enable-legacy-kdestroy or --disable-legacy-kdestroy was given.
if test "${enable_legacy_kdestroy+set}" = set; then
  enableval="$enable_legacy_kdestroy"
  
if test "$enableval" = "yes"; then
	cat >> confdefs.h <<\EOF
#define LEGACY_KDESTROY 1
EOF

fi

fi


# Check whether --enable-match-subdomains or --disable-match-subdomains was given.
if test "${enable_match_subdomains+set}" = set; then
  enableval="$enable_match_subdomains"
  if test "$enableval" = "yes"; then
	cat >> confdefs.h <<\EOF
#define MATCH_SUBDOMAINS 1
EOF

a1366 1
fi
d1368 2
d1371 3
a1373 3
# Check whether --with-ld-flags or --without-ld-flags was given.
if test "${with_ld_flags+set}" = set; then
  withval="$with_ld_flags"
a1417 13
# Check whether --with-db-dir or --without-db-dir was given.
if test "${with_db_dir+set}" = set; then
  withval="$with_db_dir"
  :
fi


test -n "$with_db_dir" &&
cat >> confdefs.h <<EOF
#define DB_DIR "$with_db_dir"
EOF


a1445 72
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='-L$(top_builddir)/lib/otp -lotp'
	OTP_dir=otp
	LIB_SUBDIRS="$LIB_SUBDIRS otp"
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



mmap=yes
# Check whether --enable-mmap or --disable-mmap was given.
if test "${enable_mmap+set}" = set; then
  enableval="$enable_mmap"
  
if test "$enableval" = "no"; then
	mmap=no
fi

fi

if test "$mmap" = "no"; then
	cat >> confdefs.h <<\EOF
#define NO_MMAP 1
EOF

fi

aix_dynamic_afs=yes
# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given.
if test "${enable_dynamic_afs+set}" = set; then
  enableval="$enable_dynamic_afs"
  
if test "$enableval" = "no"; then
	aix_dynamic_afs=no
fi

fi


d1484 4
a1487 1
	ac_x=DES_QUAD_NEW
d1489 2
a1490 6
	ac_x=DES_QUAD_OLD
else
	ac_x=DES_QUAD_GUESS
fi	
cat >> confdefs.h <<EOF
#define DES_QUAD_DEFAULT $ac_x
a1492 5

# Check whether --with-afsws or --without-afsws was given.
if test "${with_afsws+set}" = set; then
  withval="$with_afsws"
  AFSWS=$withval
d1494 3
a1496 33
  AFSWS=/usr/afsws

fi

test "$AFSWS" = "yes" && AFSWS=/usr/afsws


# Check whether --enable-rxkad or --disable-rxkad was given.
if test "${enable_rxkad+set}" = set; then
  enableval="$enable_rxkad"
  :
else
  
test -f $AFSWS/include/rx/rx.h && enable_rxkad=yes

fi


if test "$afs_support" = yes -a "$enable_rxkad" = yes; then
	LIB_SUBDIRS="$LIB_SUBDIRS rxkad"
fi


# Check whether --enable-cat-manpages or --disable-cat-manpages was given.
if test "${enable_cat_manpages+set}" = set; then
  enableval="$enable_cat_manpages"
  
if test "$enableval" = "no"; then
	disable_cat_manpages=yes
fi

fi

d1498 1
d1501 2
d1506 4
a1509 1
  :
d1520 1
d1531 1
a1534 2
echo $ac_n "checking for readline""... $ac_c" 1>&6
echo "configure:1889: checking for readline" >&5
d1536 3
a1538 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
d1540 4
a1543 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
d1545 19
a1563 7
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 1928 "configure"
a1564 2

#include <stdio.h>
a1565 4

int main() {

; return 0; }
d1567 4
a1570 1
if { (eval echo configure:1938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1572 1
a1572 1
  ires=$i;break
d1574 1
d1579 25
a1603 5
done
for i in $lib_dirs; do
	LIBS="-L$i -lreadline  $save_LIBS"
	cat > conftest.$ac_ext <<EOF
#line 1950 "configure"
a1605 3
#include <stdio.h>
#include <readline.h>

d1610 1
a1610 1
if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1612 1
a1612 1
  lres=$i;break
d1618 11
a1628 11
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 `echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` 1
d1631 8
a1638 48
	with_readline=yes
	echo "$ac_t""headers $ires, libraries $lres" 1>&6
else
	INCLUDE_readline=
	LIB_readline=
	with_readline=no
	echo "$ac_t""$with_readline" 1>&6
fi





# Check whether --with-mips_abi or --without-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 "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:2025: 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
a1639 13
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $abi"
cat > conftest.$ac_ext <<EOF
#line 2033 "configure"
#include "confdefs.h"

int main() {
int x;
; return 0; }
EOF
if { (eval echo configure:2040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval $ac_foo=yes
d1641 1
a1641 193
  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"

fi

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 2063 "configure"
#include "confdefs.h"

int main() {
int x;
; return 0; }
EOF
if { (eval echo configure:2070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_res=yes
else
  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
;;
esac



# 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 "configure: error: No argument for --with-hesiod-lib" 1>&2; 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 "configure: error: No argument for --with-hesiod-include" 1>&2; exit 1; }
elif test "X$with_hesiod" = "X"; then
  with_hesiod=yes
fi
fi


echo $ac_n "checking for hesiod""... $ac_c" 1>&6
echo "configure:2144: checking for hesiod" >&5

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 <<EOF
#line 2183 "configure"
#include "confdefs.h"
#include <hesiod.h>
int main() {

; return 0; }
EOF
if { (eval echo configure:2190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ires=$i;break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done
for i in $lib_dirs; do
	LIBS="-L$i -lhesiod  $save_LIBS"
	cat > conftest.$ac_ext <<EOF
#line 2202 "configure"
#include "confdefs.h"
#include <hesiod.h>
int main() {

; return 0; }
EOF
if { (eval echo configure:2209: \"$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"

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

	with_hesiod=yes
	echo "$ac_t""headers $ires, libraries $lres" 1>&6
else
	INCLUDE_hesiod=
	LIB_hesiod=
	with_hesiod=no
	echo "$ac_t""$with_hesiod" 1>&6
d1648 4
a1651 13

# Check whether --enable-shared or --disable-shared was given.
if test "${enable_shared+set}" = set; then
  enableval="$enable_shared"
  :
fi



case ${enable_shared} in
  yes ) enable_shared=yes;;
  no  ) enable_shared=no;;
  *   ) enable_shared=no;;
a1666 3
LINK='$(CC)'

lib_deps=yes
a1669 3
build_symlink_command=@@true
install_symlink_command=@@true
install_symlink_command2=@@true
a1671 1
SHLIB_SONAME=`echo $VERSION | sed 's/\([0-9]*\).*/\1/'`
a1679 1
	lib_deps=no
a1681 1
	LDSHARED='$(CC) -shared -Wl,-soname,$(LIBNAME).so.'"${SHLIB_SONAME}"
a1682 12
	REAL_SHLIBEXT=so.$SHLIB_VERSION
	build_symlink_command='$(LN_S) -f $@@ $(LIBNAME).so'
	install_symlink_command='$(LN_S) -f $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so.'"${SHLIB_SONAME}"';$(LN_S) -f $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so'
	install_symlink_command2='$(LN_S) -f $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so.'"${SHLIB_SONAME}"';$(LN_S) -f $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so'
	;;
*-*-freebsd3*)
	REAL_SHLIBEXT=so.$SHLIB_VERSION
	LDSHARED='ld -Bshareable'
	REAL_LD_FLAGS='-Wl,-R$(libdir)'
	build_symlink_command='$(LN_S) -f $@@ $(LIBNAME).so'
	install_symlink_command='$(LN_S) -f $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so'
	install_symlink_command2='$(LN_S) -f $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so'
a1700 7
*-fujitsu-uxpv*)
	REAL_LD_FLAGS='' # really: LD_RUN_PATH=$(libdir) cc -o ...
	REAL_LINK='LD_RUN_PATH=$(libdir) $(CC)'
	LDSHARED='$(CC) -G'
	REAL_PICFLAGS="-Kpic"
	lib_deps=no # fails in mysterious ways
	;;
a1703 1
	lib_deps=no
d1706 2
a1707 6
        libdir="${libdir}${abilibdirext}"
        REAL_LD_FLAGS="${abi} -Wl,-rpath,\$(libdir)"
        LD_FLAGS="${abi} -Wl,-rpath,\$(libdir)"
	LDSHARED="\$(CC) -shared ${abi}"
        REAL_PICFLAGS=
        CFLAGS="${abi} ${CFLAGS}"
d1709 2
a1710 1
*-*-os2*)
a1713 1
	LD_FLAGS=-Zcrtdll
d1725 1
a1725 1
if test "${enable_shared}" != "yes" ; then 
a1728 3
 build_symlink_command=@@true
 install_symlink_command=@@true
 install_symlink_command2=@@true
d1733 1
a1733 22
 echo $ac_n "checking whether to use -rpath""... $ac_c" 1>&6
echo "configure:2374: checking whether to use -rpath" >&5
 case "$libdir" in
   /lib | /usr/lib | /usr/local/lib)
     echo "$ac_t""no" 1>&6
     REAL_LD_FLAGS=
     LD_FLAGS=
     ;;
   *)
     LD_FLAGS="$REAL_LD_FLAGS"
     test "$REAL_LINK" && LINK="$REAL_LINK"
     echo "$ac_t""$LD_FLAGS" 1>&6
     ;;
   esac
fi

if test "$lib_deps" = yes; then
	lib_deps_yes=""
	lib_deps_no="# "
else
	lib_deps_yes="# "
	lib_deps_no=""
d1736 26
d1763 8
a1771 5
# use supplied ld-flags, or none if `no'
if test "$with_ld_flags" = no; then
	LD_FLAGS=
elif test -n "$with_ld_flags"; then
	LD_FLAGS="$with_ld_flags"
d1774 7
a1780 2
   
       
d1784 1
a1784 1
echo "configure:2411: checking whether byte ordering is bigendian" >&5
d1791 1
a1791 1
#line 2418 "configure"
d1802 1
a1802 1
if { (eval echo configure:2429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1806 1
a1806 1
#line 2433 "configure"
d1817 1
a1817 1
if { (eval echo configure:2444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1837 1
a1837 1
#line 2464 "configure"
d1850 1
a1850 1
if { (eval echo configure:2477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d1875 1
a1875 1
echo "configure:2502: checking for working const" >&5
d1880 1
a1880 1
#line 2507 "configure"
d1929 1
a1929 1
if { (eval echo configure:2556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a1949 87
echo $ac_n "checking for inline""... $ac_c" 1>&6
echo "configure:2578: checking for inline" >&5
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  ac_cv_c_inline=no
for ac_kw in inline __inline__ __inline; do
  cat > conftest.$ac_ext <<EOF
#line 2585 "configure"
#include "confdefs.h"

int main() {
} $ac_kw foo() {
; return 0; }
EOF
if { (eval echo configure:2592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_c_inline=$ac_kw; break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
done

fi

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



echo $ac_n "checking for __attribute__""... $ac_c" 1>&6
echo "configure:2620: 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 2626 "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:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv___attribute__=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv___attribute__=no
fi
rm -f conftest*
fi

if test "$ac_cv___attribute__" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE___ATTRIBUTE__ 1
EOF

fi
echo "$ac_t""$ac_cv___attribute__" 1>&6


d1953 1
a1953 1
echo "configure:2667: checking for NEXTSTEP" >&5
d1958 1
a1958 1
#line 2672 "configure"
d1960 1
a1960 1
#if defined(NeXT) && !defined(__APPLE__)
d1985 1
a1985 1
echo "configure:2699: checking for AIX" >&5
d1990 1
a1990 1
#line 2704 "configure"
d2013 4
a2016 47
	if test "$aix_dynamic_afs" = yes; then
		AFS_EXTRA_OBJS=
		AFS_EXTRA_LIBS=afslib.so
		# this works differently in AIX <=3 and 4
		if test `uname -v` = 4 ; then
			AFS_EXTRA_LD="-bnoentry"
		else
			AFS_EXTRA_LD="-e _nostart"
		fi
		AFS_EXTRA_DEFS=
		


echo $ac_n "checking for dlopen""... $ac_c" 1>&6
echo "configure:2741: 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 2756 "configure"
#include "confdefs.h"

int main() {
dlopen()
; return 0; }
EOF
if { (eval echo configure:2763: \"$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"
a2018 62
fi


eval "ac_res=\$ac_cv_funclib_dlopen"

: << END
@@@@@@funcs="$funcs dlopen"@@@@@@
@@@@@@libs="$libs "" dl"@@@@@@
END

# 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 "$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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


		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
			AFS_EXTRA_OBJS="$AFS_EXTRA_OBJS dlfcn.o"
			AIX_EXTRA_KAFS=-lld
		fi
	else
		AFS_EXTRA_OBJS='$(srcdir)/afsl.exp afslib.o'
		AFS_EXTRA_LIBS=
		AFS_EXTRA_DEFS='-DSTATIC_AFS_SYSCALLS'
		AIX_EXTRA_KAFS=
	fi
					fi

d2025 1
a2025 1
	LIBS="$LIBS -Wl,-bnolibpath -Wl,-bI:/lib/pse.exp"
d2030 1
a2030 1
echo "configure:2849: checking for ANSI C header files" >&5
d2035 1
a2035 1
#line 2854 "configure"
d2043 2
a2044 2
{ (eval echo configure:2862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2060 1
a2060 1
#line 2879 "configure"
d2078 1
a2078 1
#line 2897 "configure"
d2099 1
a2099 1
#line 2918 "configure"
d2110 1
a2110 1
if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2134 1
a2134 96
for ac_hdr in arpa/ftp.h			\
	arpa/inet.h				\
	arpa/nameser.h				\
	arpa/telnet.h				\
	bsd/bsd.h				\
	bsdsetjmp.h				\
	capability.h				\
	crypt.h					\
	curses.h				\
	db.h					\
	dbm.h					\
	dirent.h				\
	err.h					\
	errno.h					\
	fcntl.h					\
	fnmatch.h				\
	grp.h					\
	inttypes.h				\
	io.h					\
	lastlog.h				\
	libutil.h				\
	limits.h				\
	login.h					\
	maillock.h				\
	ndbm.h					\
	net/if.h				\
	net/if_tun.h				\
	net/if_var.h				\
	netdb.h					\
	netinet/in.h				\
	netinet/in6_machtypes.h			\
	netinet/in_systm.h			\
	paths.h					\
	pty.h					\
	pwd.h					\
	resolv.h				\
	rpcsvc/dbm.h				\
	rpcsvc/ypclnt.h				\
	sac.h					\
	security/pam_modules.h			\
	shadow.h				\
	siad.h					\
	signal.h				\
	stropts.h				\
	sys/bitypes.h				\
	sys/capability.h			\
	sys/category.h				\
	sys/file.h				\
	sys/filio.h				\
	sys/ioccom.h				\
	sys/ioctl.h				\
	sys/locking.h				\
	sys/mman.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				\
	tmpdir.h				\
	ttyent.h				\
	udb.h					\
	ulimit.h				\
	unistd.h				\
	userpw.h				\
	usersec.h				\
	util.h					\
	utime.h					\
	utmp.h					\
	utmpx.h					\
	wait.h
d2138 1
a2138 1
echo "configure:3052: checking for $ac_hdr" >&5
d2143 1
a2143 1
#line 3057 "configure"
d2148 2
a2149 2
{ (eval echo configure:3062: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2174 6
a2179 4

echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
echo "configure:3090: checking whether time.h and sys/time.h may both be included" >&5
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
d2183 1
a2183 1
#line 3095 "configure"
d2185 1
a2185 6
#include <sys/types.h>
#include <sys/time.h>
#include <time.h>
int main() {
struct tm *tp;
; return 0; }
d2187 4
a2190 1
if { (eval echo configure:3104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2192 1
a2192 1
  ac_cv_header_time=yes
d2194 1
d2198 1
a2198 1
  ac_cv_header_time=no
d2202 5
a2206 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
d2208 3
a2210 1

d2212 1
d2214 6
a2219 3
echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
echo "configure:3125: checking for sys_siglist declaration in signal.h or unistd.h" >&5
if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
d2223 1
a2223 1
#line 3130 "configure"
d2225 1
a2225 9
#include <sys/types.h>
#include <signal.h>
/* NetBSD declares sys_siglist in unistd.h.  */
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
int main() {
char *msg = *(sys_siglist + 1);
; return 0; }
d2227 4
a2230 1
if { (eval echo configure:3142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2232 1
a2232 1
  ac_cv_decl_sys_siglist=yes
d2234 1
d2238 1
a2238 1
  ac_cv_decl_sys_siglist=no
d2242 5
a2246 5

echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
if test $ac_cv_decl_sys_siglist = yes; then
  cat >> confdefs.h <<\EOF
#define SYS_SIGLIST_DECLARED 1
d2248 3
a2250 1

d2252 1
d2254 1
a2254 3


for ac_hdr in standards.h
d2258 1
a2258 1
echo "configure:3168: checking for $ac_hdr" >&5
d2263 1
a2263 1
#line 3173 "configure"
d2268 2
a2269 2
{ (eval echo configure:3178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2294 6
a2299 7
for i in netinet/ip.h netinet/tcp.h; do

cv=`echo "$i" | sed 'y%./+-%__p_%'`

echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:3209: checking for $i" >&5
if eval "test \"`echo '$''{'ac_cv_header_$cv'+set}'`\" = set"; then
d2303 1
a2303 1
#line 3214 "configure"
d2305 1
a2305 6
\
#ifdef HAVE_STANDARDS_H
#include <standards.h>
#endif
#include <$i>

d2308 2
a2309 2
{ (eval echo configure:3224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2312 1
a2312 1
  eval "ac_cv_header_$cv=yes"
d2318 1
a2318 1
  eval "ac_cv_header_$cv=no"
d2322 3
a2324 4

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___%'`
d2328 3
a2330 1

a2332 3
: << END
@@@@@@headers="$headers netinet/ip.h netinet/tcp.h"@@@@@@
END
d2334 27
a2360 6


EXTRA_LOCL_HEADERS=
EXTRA_HEADERS=
if test "$ac_cv_header_err_h" != yes; then
	EXTRA_HEADERS="$EXTRA_HEADERS err.h"
d2362 9
a2370 2
if test "$ac_cv_header_fnmatch_h" != yes; then
	EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS fnmatch.h"
d2372 1
d2374 6
a2379 8



for i in int8_t int16_t int32_t int64_t; do
	echo $ac_n "checking for $i""... $ac_c" 1>&6
echo "configure:3268: checking for $i" >&5
	
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
d2383 1
a2383 1
#line 3274 "configure"
d2385 1
a2385 18

#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() {
$i x;

; return 0; }
d2387 4
a2390 1
if { (eval echo configure:3295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2392 1
a2392 1
  eval ac_cv_type_$i=yes
d2394 1
d2398 1
a2398 1
  eval ac_cv_type_$i=no
d2402 5
a2406 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
d2408 4
a2411 3

	fi
	echo "$ac_t""$ac_res" 1>&6
d2414 6
a2419 6

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:3321: checking for $i" >&5
	
if eval "test \"`echo '$''{'ac_cv_type_$i'+set}'`\" = set"; then
d2423 1
a2423 1
#line 3327 "configure"
d2425 1
a2425 18

#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() {
$i x;

; return 0; }
d2427 4
a2430 1
if { (eval echo configure:3348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2432 1
a2432 1
  eval ac_cv_type_$i=yes
d2434 1
d2438 1
a2438 1
  eval ac_cv_type_$i=no
d2442 5
a2446 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
d2448 4
a2451 3

	fi
	echo "$ac_t""$ac_res" 1>&6
d2454 6
a2459 4

echo $ac_n "checking for strange sys/bitypes.h""... $ac_c" 1>&6
echo "configure:3373: checking for strange sys/bitypes.h" >&5
if eval "test \"`echo '$''{'krb_cv_int8_t_ifdef'+set}'`\" = set"; then
d2462 2
a2463 3
  
cat > conftest.$ac_ext <<EOF
#line 3379 "configure"
d2465 1
a2465 15

#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_BITYPES_H
#include <sys/bitypes.h>
#endif
#ifdef HAVE_NETINET_IN6_MACHTYPES_H
#include <netinet/in6_machtypes.h>
#endif

int main() {
int8_t x;

; return 0; }
d2467 4
a2470 1
if { (eval echo configure:3397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2472 1
a2472 1
  krb_cv_int8_t_ifdef=no
d2474 1
d2478 1
a2478 1
  krb_cv_int8_t_ifdef=yes
d2482 5
a2486 5

echo "$ac_t""$krb_cv_int8_t_ifdef" 1>&6
if test "$krb_cv_int8_t_ifdef" = "yes"; then
  cat >> confdefs.h <<\EOF
#define HAVE_STRANGE_INT8_T 1
d2488 3
d2492 1
d2494 6
a2499 7




echo $ac_n "checking for crypt""... $ac_c" 1>&6
echo "configure:3421: checking for crypt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_crypt'+set}'`\" = set"; then
d2502 2
a2503 12
  
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 3436 "configure"
d2505 1
a2505 4

int main() {
crypt()
; return 0; }
d2507 4
a2510 1
if { (eval echo configure:3443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2512 1
a2512 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break
d2514 1
d2517 2
a2520 3
	done
	eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}"
	LIBS="$ac_save_LIBS"
d2522 11
d2534 27
d2562 5
a2566 20


eval "ac_res=\$ac_cv_funclib_crypt"

: << END
@@@@@@funcs="$funcs crypt"@@@@@@
@@@@@@libs="$libs "" crypt"@@@@@@
END

# 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
d2568 5
d2574 6
a2579 31
	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

	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 socket""... $ac_c" 1>&6
echo "configure:3508: checking for socket" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_socket'+set}'`\" = set"; then
d2582 2
a2583 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 <<EOF
#line 3523 "configure"
d2585 1
a2585 9
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int main() {
socket(0,0,0)
; return 0; }
d2587 4
a2590 1
if { (eval echo configure:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2592 1
a2592 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break
d2594 1
d2597 2
a2600 3
	done
	eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}"
	LIBS="$ac_save_LIBS"
d2602 5
a2606 22

fi


eval "ac_res=\$ac_cv_funclib_socket"

: << END
@@@@@@funcs="$funcs socket"@@@@@@
@@@@@@libs="$libs "" socket"@@@@@@
END

# 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
d2608 3
a2610 26

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_socket"; then
	LIBS="$LIB_socket $LIBS"
d2612 1
d2614 6
a2619 7




echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
echo "configure:3603: checking for gethostbyname" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_gethostbyname'+set}'`\" = set"; then
d2622 2
a2623 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 <<EOF
#line 3618 "configure"
d2625 1
a2625 9
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
int main() {
gethostbyname("foo")
; return 0; }
d2627 4
a2630 1
if { (eval echo configure:3630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2632 1
a2632 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break
d2634 1
d2637 2
a2640 3
	done
	eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}"
	LIBS="$ac_save_LIBS"
d2642 5
a2646 22

fi


eval "ac_res=\$ac_cv_funclib_gethostbyname"

: << END
@@@@@@funcs="$funcs gethostbyname"@@@@@@
@@@@@@libs="$libs "" nsl"@@@@@@
END

# 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
d2648 3
a2650 26

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_gethostbyname"; then
	LIBS="$LIB_gethostbyname $LIBS"
d2652 1
d2654 6
a2659 9






echo $ac_n "checking for odm_initialize""... $ac_c" 1>&6
echo "configure:3700: checking for odm_initialize" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_odm_initialize'+set}'`\" = set"; then
d2662 2
a2663 12
  
if eval "test \"\$ac_cv_func_odm_initialize\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" odm; 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 3715 "configure"
d2665 1
a2665 4

int main() {
odm_initialize()
; return 0; }
d2667 4
a2670 1
if { (eval echo configure:3722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2672 1
a2672 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_odm_initialize=$ac_lib; else ac_cv_funclib_odm_initialize=yes; fi";break
d2674 1
d2677 2
a2680 3
	done
	eval "ac_cv_funclib_odm_initialize=\${ac_cv_funclib_odm_initialize-no}"
	LIBS="$ac_save_LIBS"
d2682 9
a2690 1

d2692 1
d2694 10
a2703 340

eval "ac_res=\$ac_cv_funclib_odm_initialize"

: << END
@@@@@@funcs="$funcs odm_initialize"@@@@@@
@@@@@@libs="$libs "" odm"@@@@@@
END

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

case "$ac_res" in
	yes)
	eval "ac_cv_func_odm_initialize=yes"
	eval "LIB_odm_initialize="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_odm_initialize=no"
	eval "LIB_odm_initialize="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_odm_initialize=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


if test -n "$LIB_odm_initialize"; then
	LIBS="$LIB_odm_initialize $LIBS"
fi





echo $ac_n "checking for getattr""... $ac_c" 1>&6
echo "configure:3790: checking for getattr" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getattr'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_getattr\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" cfg; 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 3805 "configure"
#include "confdefs.h"

int main() {
getattr()
; return 0; }
EOF
if { (eval echo configure:3812: \"$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_getattr=$ac_lib; else ac_cv_funclib_getattr=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_getattr=\${ac_cv_funclib_getattr-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_getattr"

: << END
@@@@@@funcs="$funcs getattr"@@@@@@
@@@@@@libs="$libs "" cfg"@@@@@@
END

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

case "$ac_res" in
	yes)
	eval "ac_cv_func_getattr=yes"
	eval "LIB_getattr="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_getattr=no"
	eval "LIB_getattr="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_getattr=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


if test -n "$LIB_getattr"; then
	LIBS="$LIB_getattr $LIBS"
fi





echo $ac_n "checking for setpcred""... $ac_c" 1>&6
echo "configure:3880: checking for setpcred" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_setpcred'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_setpcred\" != yes" ; then
	ac_save_LIBS="$LIBS"
	for ac_lib in "" s; 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 3895 "configure"
#include "confdefs.h"

int main() {
setpcred()
; return 0; }
EOF
if { (eval echo configure:3902: \"$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_setpcred=$ac_lib; else ac_cv_funclib_setpcred=yes; fi";break
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
fi
rm -f conftest*
	done
	eval "ac_cv_funclib_setpcred=\${ac_cv_funclib_setpcred-no}"
	LIBS="$ac_save_LIBS"
fi

fi


eval "ac_res=\$ac_cv_funclib_setpcred"

: << END
@@@@@@funcs="$funcs setpcred"@@@@@@
@@@@@@libs="$libs "" s"@@@@@@
END

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

case "$ac_res" in
	yes)
	eval "ac_cv_func_setpcred=yes"
	eval "LIB_setpcred="
	cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_setpcred=no"
	eval "LIB_setpcred="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_setpcred=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


if test -n "$LIB_setpcred"; then
	LIBS="$LIB_setpcred $LIBS"
fi





echo $ac_n "checking for logwtmp""... $ac_c" 1>&6
echo "configure:3970: 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=""
		fi
		LIBS="$ac_lib $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 3985 "configure"
#include "confdefs.h"

int main() {
logwtmp()
; return 0; }
EOF
if { (eval echo configure:3992: \"$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
else
  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"
fi

fi


eval "ac_res=\$ac_cv_funclib_logwtmp"

: << END
@@@@@@funcs="$funcs logwtmp"@@@@@@
@@@@@@libs="$libs "" util"@@@@@@
END

# 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 <<EOF
#define $ac_tr_func 1
EOF

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_logwtmp"; then
	LIBS="$LIB_logwtmp $LIBS"
fi






echo $ac_n "checking for logout""... $ac_c" 1>&6
echo "configure:4061: checking for logout" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_logout'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
if eval "test \"\$ac_cv_func_logout\" != 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 <<EOF
#line 4076 "configure"
d2705 1
a2705 4

int main() {
logout()
; return 0; }
d2707 4
a2710 1
if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2712 1
a2712 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break
d2714 1
d2717 2
a2720 3
	done
	eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}"
	LIBS="$ac_save_LIBS"
d2722 5
a2726 22

fi


eval "ac_res=\$ac_cv_funclib_logout"

: << END
@@@@@@funcs="$funcs logout"@@@@@@
@@@@@@libs="$libs "" util"@@@@@@
END

# 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 <<EOF
#define $ac_tr_func 1
d2728 3
a2730 26

	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_logout=no"
	eval "LIB_logout="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_logout=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


if test -n "$LIB_logout"; then
	LIBS="$LIB_logout $LIBS"
d2732 1
d2734 6
a2739 6



echo $ac_n "checking for tgetent""... $ac_c" 1>&6
echo "configure:4150: checking for tgetent" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_tgetent'+set}'`\" = set"; then
d2742 2
a2743 12
  
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 4165 "configure"
d2745 1
a2745 4

int main() {
tgetent()
; return 0; }
d2747 4
a2750 1
if { (eval echo configure:4172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2752 1
a2752 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break
d2754 1
d2757 2
a2760 3
	done
	eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}"
	LIBS="$ac_save_LIBS"
d2762 5
a2766 22

fi


eval "ac_res=\$ac_cv_funclib_tgetent"

: << END
@@@@@@funcs="$funcs tgetent"@@@@@@
@@@@@@libs="$libs "" termcap ncurses curses"@@@@@@
END

# 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 <<EOF
#define $ac_tr_func 1
d2768 3
a2770 36

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
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:4237: checking for X" >&5

# Check whether --with-x or --without-x was given.
if test "${with_x+set}" = set; then
  withval="$with_x"
  :
d2772 1
d2774 6
a2779 10
# $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 eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
d2782 2
a2783 43
  # 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

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

  # First, try using that file with no special directory specified.
cat > conftest.$ac_ext <<EOF
#line 4299 "configure"
d2785 1
a2785 1
#include <$x_direct_test_include>
d2788 2
a2789 2
{ (eval echo configure:4304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
d2792 1
a2792 2
  # We can compile using X headers with no special include directory.
ac_x_includes=
d2798 1
a2798 43
  # 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
d2801 12
a2812 1
fi # $ac_x_includes = NO
d2814 10
a2823 12
if test "$ac_x_libraries" = NO; then
  # Check for the libraries.

  test -z "$x_direct_test_library" && x_direct_test_library=Xt
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc

  # 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 4373 "configure"
d2825 1
a2825 4

int main() {
${x_direct_test_function}()
; return 0; }
d2827 4
a2830 1
if { (eval echo configure:4380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2832 1
a2832 3
  LIBS="$ac_save_LIBS"
# We can link X programs with no special library path.
ac_x_libraries=
d2834 1
d2838 1
a2838 47
  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
a2840 9
fi # $ac_x_libraries = NO

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"
d2842 7
a2848 8
fi
  fi
  eval "$ac_cv_have_x"
fi # $with_x != no

if test "$have_x" != yes; then
  echo "$ac_t""$have_x" 1>&6
  no_x=yes
d2850 1
a2850 7
  # 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
d2852 1
d2854 7
a2860 8

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

  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
d2862 2
a2863 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 $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
echo "configure:4487: 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 4490 "configure"
d2865 1
a2865 4

int main() {

; return 0; }
d2867 4
a2870 1
if { (eval echo configure:4497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2872 1
a2872 1
  ac_R_nospace=yes
d2874 1
d2878 1
a2878 1
  ac_R_nospace=no
d2881 6
a2886 12
      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 4513 "configure"
#include "confdefs.h"

int main() {

; return 0; }
d2888 1
a2888 3
if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_R_space=yes
d2890 1
a2890 4
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_R_space=no
d2892 1
a2892 11
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
d2894 6
a2899 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@@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:4552: 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
d2902 2
a2903 4
  ac_save_LIBS="$LIBS"
LIBS="-ldnet  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4560 "configure"
d2905 1
a2905 8
/* 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; }
d2907 4
a2910 1
if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2912 1
a2912 1
  eval "ac_cv_lib_$ac_lib_var=yes"
d2914 1
d2918 1
a2918 1
  eval "ac_cv_lib_$ac_lib_var=no"
a2920 2
LIBS="$ac_save_LIBS"

d2922 1
a2922 1
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
d2924 5
a2928 1
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
d2932 1
d2934 6
a2939 5
    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:4593: 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
d2942 2
a2943 4
  ac_save_LIBS="$LIBS"
LIBS="-ldnet_stub  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4601 "configure"
d2945 1
a2945 8
/* 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; }
d2947 4
a2950 1
if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2952 1
a2952 1
  eval "ac_cv_lib_$ac_lib_var=yes"
d2954 1
d2958 1
a2958 1
  eval "ac_cv_lib_$ac_lib_var=no"
a2960 2
LIBS="$ac_save_LIBS"

d2962 1
a2962 1
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
d2964 5
a2968 1
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
d2972 1
a2973 1
    fi
d2975 3
a2977 9
    # 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:4641: checking for gethostbyname" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
d2981 1
a2981 1
#line 4646 "configure"
d2983 24
a3006 7
/* 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();
d3008 1
a3008 1
int main() {
d3010 13
a3022 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_gethostbyname) || defined (__stub___gethostbyname)
choke me
#else
gethostbyname();
d3024 2
a3025 1

d3028 1
a3028 1
if { (eval echo configure:4669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3030 1
a3030 1
  eval "ac_cv_func_gethostbyname=yes"
d3035 1
a3035 1
  eval "ac_cv_func_gethostbyname=no"
d3040 6
a3045 5
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  echo "$ac_t""yes" 1>&6
  :
else
  echo "$ac_t""no" 1>&6
d3048 7
a3054 5
    if test $ac_cv_func_gethostbyname = no; then
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
echo "configure:4690: 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
d3057 4
a3060 4
  ac_save_LIBS="$LIBS"
LIBS="-lnsl  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4698 "configure"
d3062 12
a3073 4
/* 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();
d3076 2
a3077 1
gethostbyname()
d3080 1
a3080 1
if { (eval echo configure:4709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3082 1
a3082 1
  eval "ac_cv_lib_$ac_lib_var=yes"
d3087 1
a3087 1
  eval "ac_cv_lib_$ac_lib_var=no"
d3090 8
a3097 1
LIBS="$ac_save_LIBS"
d3099 3
a3101 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
a3102 1
    fi
d3104 5
a3108 10
    # 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:4739: checking for connect" >&5
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
d3112 1
a3112 1
#line 4744 "configure"
a3113 7
/* 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();
d3115 12
a3126 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_connect) || defined (__stub___connect)
choke me
#else
connect();
d3129 3
d3134 1
a3134 1
if { (eval echo configure:4767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3136 1
a3136 1
  eval "ac_cv_func_connect=yes"
d3141 1
a3141 1
  eval "ac_cv_func_connect=no"
d3146 16
a3161 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
d3163 3
a3165 5
    if test $ac_cv_func_connect = no; then
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
echo "configure:4788: 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
d3168 10
a3177 4
  ac_save_LIBS="$LIBS"
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4796 "configure"
d3179 6
a3184 5
/* 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();

d3186 1
a3186 1
connect()
d3189 1
a3189 1
if { (eval echo configure:4807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3191 1
a3191 1
  eval "ac_cv_lib_$ac_lib_var=yes"
a3194 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d3197 4
a3200 1
LIBS="$ac_save_LIBS"
a3202 6
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
a3203 1
    fi
d3205 11
a3215 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:4831: 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 4836 "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();
d3217 7
a3223 1
int main() {
d3225 13
a3237 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
d3239 2
a3240 1
; return 0; }
d3242 8
a3249 10
if { (eval echo configure:4859: \"$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*
a3251 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
d3253 5
a3257 5
    if test $ac_cv_func_remove = no; then
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
echo "configure:4880: 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
d3260 10
a3269 4
  ac_save_LIBS="$LIBS"
LIBS="-lposix  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4888 "configure"
d3271 6
a3276 5
/* 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();

d3278 1
a3278 1
remove()
d3281 1
a3281 1
if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3283 1
a3283 1
  eval "ac_cv_lib_$ac_lib_var=yes"
a3286 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d3289 4
a3292 1
LIBS="$ac_save_LIBS"
a3294 6
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
a3295 1
    fi
d3297 37
a3333 16
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
echo "configure:4923: 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 4928 "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();
d3335 3
a3337 1
int main() {
a3338 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
d3340 2
a3341 12
; return 0; }
EOF
if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  eval "ac_cv_func_shmat=yes"
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  eval "ac_cv_func_shmat=no"
fi
rm -f conftest*
a3343 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
d3345 7
a3351 5
    if test $ac_cv_func_shmat = no; then
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
echo "configure:4972: 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
d3354 10
a3363 4
  ac_save_LIBS="$LIBS"
LIBS="-lipc  $LIBS"
cat > conftest.$ac_ext <<EOF
#line 4980 "configure"
a3364 4
/* 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();
d3367 1
a3367 1
shmat()
d3370 1
a3370 1
if { (eval echo configure:4991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3372 1
a3372 1
  eval "ac_cv_lib_$ac_lib_var=yes"
a3375 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d3378 4
a3381 1
LIBS="$ac_save_LIBS"
d3384 47
a3430 5
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
a3432 2
    fi
  fi
d3434 5
a3438 13
  # 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:5024: 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
d3441 10
a3450 4
  ac_save_LIBS="$LIBS"
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 5032 "configure"
a3451 4
/* 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();
d3454 1
a3454 1
IceConnectionNumber()
d3457 1
a3457 1
if { (eval echo configure:5043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3459 1
a3459 1
  eval "ac_cv_lib_$ac_lib_var=yes"
a3462 2
  rm -rf conftest*
  eval "ac_cv_lib_$ac_lib_var=no"
d3465 4
a3468 1
LIBS="$ac_save_LIBS"
d3471 47
a3517 5
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
a3519 1
  LDFLAGS="$ac_save_LDFLAGS"
a3520 1
fi
d3523 3
a3525 6
# 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:5072: checking for special X linker flags" >&5
if eval "test \"`echo '$''{'krb_cv_sys_x_libs_rpath'+set}'`\" = set"; then
d3529 6
a3534 20
	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
d3536 2
a3537 6
		LIBS="$ac_save_libs $foo -lX11"
		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 5103 "configure"
d3540 3
a3542 10
		#include <X11/Xlib.h>
		foo()
		{
		XOpenDisplay(NULL);
		}
		main()
		{
		return 0;
		}
		
d3544 3
a3546 3
if { (eval echo configure:5117: \"$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
a3549 2
  rm -fr conftest*
  :
d3551 4
a3554 1
rm -fr conftest*
a3556 4
	done
	LIBS="$ac_save_libs"
	CFLAGS="$ac_save_cflags"
	
a3558 3
echo "$ac_t""$krb_cv_sys_x_libs_rpath" 1>&6
	X_LIBS="$krb_cv_sys_x_libs"
fi
d3560 37
a3596 7
if test "$no_x" = "yes" ; then
	MAKE_X_PROGS_BIN=""
	MAKE_X_PROGS_LIBEXEC=""
else
	MAKE_X_PROGS_BIN='$(X_PROGS_BIN)'
	MAKE_X_PROGS_LIBEXEC='$(X_PROGS_LIBEXEC)'
fi
d3598 3
a3601 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"
d3603 3
d3610 3
a3612 3
echo $ac_n "checking for XauWriteAuth""... $ac_c" 1>&6
echo "configure:5160: checking for XauWriteAuth" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_XauWriteAuth'+set}'`\" = set"; then
d3616 1
a3616 1
if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then
d3618 1
a3618 1
	for ac_lib in "" X11 Xau; do
d3621 1
a3621 2
		else
			ac_lib=""
a3622 1
		LIBS="$ac_lib $ac_save_LIBS"
d3624 1
a3624 1
#line 5175 "configure"
d3628 1
a3628 1
XauWriteAuth()
d3631 1
a3631 1
if { (eval echo configure:5182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3633 1
a3633 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break
d3640 1
a3640 1
	eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}"
d3647 1
a3647 1
eval "ac_res=\$ac_cv_funclib_XauWriteAuth"
d3649 1
d3651 2
a3652 2
@@@@@@funcs="$funcs XauWriteAuth"@@@@@@
@@@@@@libs="$libs "" X11 Xau"@@@@@@
d3655 3
a3657 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"
d3661 2
a3662 2
	eval "ac_cv_func_XauWriteAuth=yes"
	eval "LIB_XauWriteAuth="
d3670 2
a3671 2
	eval "ac_cv_func_XauWriteAuth=no"
	eval "LIB_XauWriteAuth="
d3675 1
a3675 1
	eval "ac_cv_func_XauWriteAuth=yes"
d3690 5
a3694 2
ac_xxx="$LIBS"
LIBS="$LIB_XauWriteAuth $LIBS"
d3698 3
a3700 3
echo $ac_n "checking for XauReadAuth""... $ac_c" 1>&6
echo "configure:5247: checking for XauReadAuth" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_XauReadAuth'+set}'`\" = set"; then
d3704 1
a3704 1
if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then
d3706 1
a3706 1
	for ac_lib in "" X11 Xau; do
d3709 1
a3709 2
		else
			ac_lib=""
a3710 1
		LIBS="$ac_lib $ac_save_LIBS"
d3712 1
a3712 1
#line 5262 "configure"
d3716 1
a3716 1
XauReadAuth()
d3719 1
a3719 1
if { (eval echo configure:5269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3721 1
a3721 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break
d3728 1
a3728 1
	eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}"
d3735 1
a3735 1
eval "ac_res=\$ac_cv_funclib_XauReadAuth"
d3737 1
d3739 2
a3740 2
@@@@@@funcs="$funcs XauReadAuth"@@@@@@
@@@@@@libs="$libs "" X11 Xau"@@@@@@
d3743 3
a3745 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"
d3749 2
a3750 2
	eval "ac_cv_func_XauReadAuth=yes"
	eval "LIB_XauReadAuth="
d3758 2
a3759 2
	eval "ac_cv_func_XauReadAuth=no"
	eval "LIB_XauReadAuth="
d3763 1
a3763 1
	eval "ac_cv_func_XauReadAuth=yes"
d3778 3
a3780 1
LIBS="$LIB_XauReadAauth $LIBS"
d3784 3
a3786 3
echo $ac_n "checking for XauFileName""... $ac_c" 1>&6
echo "configure:5333: checking for XauFileName" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_XauFileName'+set}'`\" = set"; then
d3790 1
a3790 1
if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then
d3792 1
a3792 1
	for ac_lib in "" X11 Xau; do
d3795 1
a3795 2
		else
			ac_lib=""
a3796 1
		LIBS="$ac_lib $ac_save_LIBS"
d3798 1
a3798 1
#line 5348 "configure"
d3802 1
a3802 1
XauFileName()
d3805 1
a3805 1
if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3807 1
a3807 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break
d3814 1
a3814 1
	eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}"
d3821 1
a3821 1
eval "ac_res=\$ac_cv_funclib_XauFileName"
d3823 1
d3825 2
a3826 2
@@@@@@funcs="$funcs XauFileName"@@@@@@
@@@@@@libs="$libs "" X11 Xau"@@@@@@
d3829 3
a3831 4
# 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"
d3835 2
a3836 2
	eval "ac_cv_func_XauFileName=yes"
	eval "LIB_XauFileName="
d3844 2
a3845 2
	eval "ac_cv_func_XauFileName=no"
	eval "LIB_XauFileName="
d3849 1
a3849 1
	eval "ac_cv_func_XauFileName=yes"
d3864 7
a3870 1
LIBS="$ac_xxx"
d3872 5
a3876 18
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
d3878 4
a3881 6
if test "$AUTOMAKE" != ""; then
	

if test "$ac_cv_func_XauWriteAuth" != "yes"; then
  NEED_WRITEAUTH_TRUE=
  NEED_WRITEAUTH_FALSE='#'
d3883 6
a3888 3
  NEED_WRITEAUTH_TRUE='#'
  NEED_WRITEAUTH_FALSE=
fi
d3890 34
a3923 9
	
	
	if test "$ac_cv_func_XauWriteAuth" != "yes"; then
		NEED_WRITEAUTH_TRUE=
		NEED_WRITEAUTH_FALSE='#'
	else
		NEED_WRITEAUTH_TRUE='#'
		NEED_WRITEAUTH_FALSE=
	fi
a3924 3
CFLAGS=$save_CFLAGS
LIBS=$save_LIBS
LDFLAGS=$save_LDFLAGS
d3926 3
d3930 3
a3932 30



lib_dbm=no
lib_db=no

for i in "" $berkeley_db gdbm ndbm; do

	if test "$i"; then
		m="lib$i"
		l="-l$i"
	else
		m="libc"
		l=""
	fi	

	echo $ac_n "checking for dbm_open in $m""... $ac_c" 1>&6
echo "configure:5478: checking for dbm_open in $m" >&5
	if eval "test \"`echo '$''{'ac_cv_krb_dbm_open_$m'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  

	save_LIBS="$LIBS"
	LIBS="$l $LIBS"
	if test "$cross_compiling" = yes; then
  ac_res=no
else
  cat > conftest.$ac_ext <<EOF
#line 5490 "configure"
d3934 1
a3934 23

#include <unistd.h>
#include <fcntl.h>
#if defined(HAVE_NDBM_H)
#include <ndbm.h>
#elif defined(HAVE_DBM_H)
#include <dbm.h>
#elif defined(HAVE_RPCSVC_DBM_H)
#include <rpcsvc/dbm.h>
#elif defined(HAVE_DB_H)
#define DB_DBM_HSEARCH 1
#include <db.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;
}
d3936 7
a3942 8
if { (eval echo configure:5516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  
	if test -f conftest.db; then
		ac_res=db
	else
		ac_res=dbm
	fi
d3944 1
d3947 44
a3990 10
  rm -fr conftest*
  ac_res=no
fi
rm -fr conftest*
fi


	LIBS="$save_LIBS"

	eval ac_cv_krb_dbm_open_$m=$ac_res
d3992 2
d3995 2
a3996 2
	eval ac_res=\$ac_cv_krb_dbm_open_$m
	echo "$ac_t""$ac_res" 1>&6
d3998 2
a3999 7
	if test "$lib_dbm" = no -a $ac_res = dbm; then
		lib_dbm="$l"
	elif test "$lib_db" = no -a $ac_res = db; then
		lib_db="$l"
		break
	fi
done
d4001 6
a4006 58
echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
echo "configure:5551: checking for NDBM library" >&5
ac_ndbm=no
if test "$lib_db" != no; then
	LIB_DBM="$lib_db"
	ac_ndbm=yes
	cat >> confdefs.h <<\EOF
#define HAVE_NEW_DB 1
EOF

	if test "$LIB_DBM"; then
		ac_res="yes, $LIB_DBM"
	else
		ac_res=yes
	fi
elif test "$lib_dbm" != no; then
	LIB_DBM="$lib_dbm"
	ac_ndbm=yes
	if test "$LIB_DBM"; then
		ac_res="yes, $LIB_DBM"
	else
		ac_res=yes
	fi
else
	LIB_DBM=""
	ac_res=no
fi
test "$ac_ndbm" = yes && cat >> confdefs.h <<\EOF
#define NDBM 1
EOF

DBLIB="$LIB_DBM"

echo "$ac_t""$ac_res" 1>&6







echo $ac_n "checking for syslog""... $ac_c" 1>&6
echo "configure:5592: 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=""
		fi
		LIBS="$ac_lib $ac_save_LIBS"
		cat > conftest.$ac_ext <<EOF
#line 5607 "configure"
d4010 1
a4010 1
syslog()
d4013 1
a4013 1
if { (eval echo configure:5614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4015 3
a4017 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break
d4021 48
d4071 1
a4071 4
	done
	eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}"
	LIBS="$ac_save_LIBS"
fi
d4073 7
a4080 47


eval "ac_res=\$ac_cv_funclib_syslog"

: << END
@@@@@@funcs="$funcs syslog"@@@@@@
@@@@@@libs="$libs "" syslog"@@@@@@
END

# 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 <<EOF
#define $ac_tr_func 1
EOF

	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

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_syslog"; then
	LIBS="$LIB_syslog $LIBS"
d4082 3
d4086 3
a4088 6


echo $ac_n "checking for working snprintf""... $ac_c" 1>&6
echo "configure:5680: 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
d4090 7
a4096 27
  ac_cv_func_snprintf_working=yes
if test "$cross_compiling" = yes; then
  :
else
  cat > conftest.$ac_ext <<EOF
#line 5689 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <string.h>
int main()
{
	char foo[3];
	snprintf(foo, 2, "12");
	return strcmp(foo, "1");
}
EOF
if { (eval echo configure:5701: \"$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_snprintf_working=no
fi
rm -fr conftest*
d4099 4
a4102 7
fi

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
d4105 5
a4109 2
fi
if test "$ac_cv_func_snprintf_working" = yes; then
d4111 12
a4122 8
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:5727: 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
else
  cat > conftest.$ac_ext <<EOF
#line 5732 "configure"
d4124 1
a4124 1
#include <stdio.h>
a4125 3
struct foo { int foo; } xx;
extern int snprintf (struct foo*);
snprintf(&xx);
d4129 1
a4129 1
if { (eval echo configure:5742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4131 1
a4131 1
  eval "ac_cv_func_snprintf_noproto=yes"
d4136 1
a4136 1
  eval "ac_cv_func_snprintf_noproto=no"
d4139 7
a4145 24
fi

echo "$ac_t""$ac_cv_func_snprintf_noproto" 1>&6

if test "$ac_cv_func_snprintf_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_SNPRINTF_PROTO 1
EOF

fi

fi

fi


echo $ac_n "checking for working glob""... $ac_c" 1>&6
echo "configure:5769: 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
else
  ac_cv_func_glob_working=yes
cat > conftest.$ac_ext <<EOF
#line 5775 "configure"
a4147 2
#include <stdio.h>
#include <glob.h>
a4149 2
glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE, NULL, NULL);

d4152 1
a4152 1
if { (eval echo configure:5786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4154 1
a4154 1
  :
d4159 1
a4159 1
  ac_cv_func_glob_working=no
d4162 10
a4171 1
fi
d4173 3
a4175 1
echo "$ac_t""$ac_cv_func_glob_working" 1>&6
d4177 10
a4186 12
if test "$ac_cv_func_glob_working" = yes; then
	cat >> confdefs.h <<\EOF
#define HAVE_GLOB 1
EOF

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 $ac_n "checking if glob needs a prototype""... $ac_c" 1>&6
echo "configure:5810: checking if glob needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_glob_noproto'+set}'`\" = set"; then
d4189 4
a4192 2
  cat > conftest.$ac_ext <<EOF
#line 5815 "configure"
d4194 5
a4198 2
#include <stdio.h>
#include <glob.h>
d4200 1
a4200 4
struct foo { int foo; } xx;
extern int glob (struct foo*);
glob(&xx);

d4203 1
a4203 1
if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d4205 1
a4205 1
  eval "ac_cv_func_glob_noproto=yes"
d4210 1
a4210 1
  eval "ac_cv_func_glob_noproto=no"
d4213 1
a4213 8
fi

echo "$ac_t""$ac_cv_func_glob_noproto" 1>&6

if test "$ac_cv_func_glob_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_GLOB_PROTO 1
EOF
d4216 5
a4220 1

d4223 5
a4227 13
fi


if test "$ac_cv_func_glob_working" != yes; then
	EXTRA_LOCL_HEADERS="$EXTRA_LOCL_HEADERS glob.h"
	LIBOBJS="$LIBOBJS glob.o"
fi

for ac_func in asnprintf asprintf vasprintf vasnprintf vsnprintf
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5860: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4230 4
a4233 2
  cat > conftest.$ac_ext <<EOF
#line 5865 "configure"
a4234 3
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d4238 1
a4238 1
char $ac_func();
d4241 1
a4241 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

d4244 1
a4244 1
if { (eval echo configure:5888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4246 1
a4246 1
  eval "ac_cv_func_$ac_func=yes"
d4251 1
a4251 1
  eval "ac_cv_func_$ac_func=no"
d4254 2
d4257 1
a4257 2

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4259 1
a4259 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4262 1
done
d4264 1
d4266 9
a4274 5
for ac_func in atexit _getpty _scrsize _setsid _stricmp chroot fattach fchmod
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5916: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4278 1
a4278 1
#line 5921 "configure"
d4281 1
a4281 1
    which can conflict with char $ac_func(); below.  */
d4286 1
a4286 1
char $ac_func();
d4293 1
a4293 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4296 1
a4296 1
$ac_func();
d4301 1
a4301 1
if { (eval echo configure:5944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4303 1
a4303 1
  eval "ac_cv_func_$ac_func=yes"
d4308 1
a4308 1
  eval "ac_cv_func_$ac_func=no"
d4313 1
a4313 1
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4315 1
a4315 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4318 1
done
d4320 5
a4324 5
for ac_func in fcntl forkpty frevoke getlogin getpriority
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:5971: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4327 4
a4330 2
  cat > conftest.$ac_ext <<EOF
#line 5976 "configure"
a4331 3
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d4335 1
a4335 1
char $ac_func();
d4338 1
a4338 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

d4341 1
a4341 1
if { (eval echo configure:5999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4343 1
a4343 1
  eval "ac_cv_func_$ac_func=yes"
d4348 1
a4348 1
  eval "ac_cv_func_$ac_func=no"
d4351 2
d4354 1
a4354 2

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4356 1
a4356 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4359 1
done
d4361 12
a4372 5
for ac_func in getrlimit getservbyname getspnam getspuid gettimeofday
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6026: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4376 1
a4376 1
#line 6031 "configure"
d4379 1
a4379 1
    which can conflict with char $ac_func(); below.  */
d4384 1
a4384 1
char $ac_func();
d4391 1
a4391 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4394 1
a4394 1
$ac_func();
d4399 1
a4399 1
if { (eval echo configure:6054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4401 1
a4401 1
  eval "ac_cv_func_$ac_func=yes"
d4406 1
a4406 1
  eval "ac_cv_func_$ac_func=no"
d4411 1
a4411 1
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4413 1
a4413 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4416 1
done
d4418 5
a4422 5
for ac_func in gettosbyname getuid grantpt mktime parsetos ptsname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6081: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4425 4
a4428 2
  cat > conftest.$ac_ext <<EOF
#line 6086 "configure"
a4429 3
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d4433 1
a4433 1
char $ac_func();
d4436 1
a4436 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

d4439 1
a4439 1
if { (eval echo configure:6109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4441 1
a4441 1
  eval "ac_cv_func_$ac_func=yes"
d4446 1
a4446 1
  eval "ac_cv_func_$ac_func=no"
d4449 2
d4452 1
a4452 2

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4454 1
a4454 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4457 1
done
d4459 6
a4464 5
for ac_func in rand random revoke setitimer setlogin setpgid setpriority
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6136: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4468 1
a4468 1
#line 6141 "configure"
d4471 1
a4471 1
    which can conflict with char $ac_func(); below.  */
d4476 1
a4476 1
char $ac_func();
d4483 1
a4483 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4486 1
a4486 1
$ac_func();
d4491 1
a4491 1
if { (eval echo configure:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4493 1
a4493 1
  eval "ac_cv_func_$ac_func=yes"
d4498 1
a4498 1
  eval "ac_cv_func_$ac_func=no"
d4503 1
a4503 1
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4505 1
a4505 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4508 1
done
d4510 5
a4514 5
for ac_func in setproctitle setregid setresgid setresuid setreuid setsid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6191: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4517 4
a4520 2
  cat > conftest.$ac_ext <<EOF
#line 6196 "configure"
a4521 3
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d4525 1
a4525 1
char $ac_func();
d4528 1
a4528 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

d4531 1
a4531 1
if { (eval echo configure:6219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4533 1
a4533 1
  eval "ac_cv_func_$ac_func=yes"
d4538 1
a4538 1
  eval "ac_cv_func_$ac_func=no"
d4541 2
d4544 1
a4544 2

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4546 1
a4546 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4549 1
done
d4551 6
a4556 5
for ac_func in setutent sigaction sysconf sysctl ttyname ttyslot
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6246: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4560 1
a4560 1
#line 6251 "configure"
d4563 1
a4563 1
    which can conflict with char $ac_func(); below.  */
d4568 1
a4568 1
char $ac_func();
d4575 1
a4575 1
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d4578 1
a4578 1
$ac_func();
d4583 1
a4583 1
if { (eval echo configure:6274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4585 1
a4585 1
  eval "ac_cv_func_$ac_func=yes"
d4590 1
a4590 1
  eval "ac_cv_func_$ac_func=no"
d4595 1
a4595 1
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4597 1
a4597 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4600 1
done
d4602 5
a4606 5
for ac_func in ulimit uname unlockpt vhangup yp_get_default_domain
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6301: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4609 4
a4612 2
  cat > conftest.$ac_ext <<EOF
#line 6306 "configure"
a4613 3
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d4617 1
a4617 1
char $ac_func();
d4620 1
a4620 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

d4623 1
a4623 1
if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4625 1
a4625 1
  eval "ac_cv_func_$ac_func=yes"
d4630 1
a4630 1
  eval "ac_cv_func_$ac_func=no"
d4633 2
d4636 1
a4636 2

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4638 1
a4638 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4641 1
done
d4643 16
a4658 5
for ac_func in on_exit sgi_getcapabilitybyname cap_set_proc
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6356: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d4661 4
a4664 2
  cat > conftest.$ac_ext <<EOF
#line 6361 "configure"
a4665 3
/* System header to define __stub macros and hopefully few prototypes,
    which can conflict with char $ac_func(); below.  */
#include <assert.h>
d4669 1
a4669 1
char $ac_func();
d4672 1
a4672 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

d4675 1
a4675 1
if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4677 1
a4677 1
  eval "ac_cv_func_$ac_func=yes"
d4682 1
a4682 1
  eval "ac_cv_func_$ac_func=no"
d4685 2
d4688 1
a4688 2

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d4690 1
a4690 5
    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  cat >> confdefs.h <<EOF
#define $ac_tr_func 1
EOF
 
a4693 1
done
d4695 3
d4699 7
d4707 6
d4716 3
a4718 3
echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6
echo "configure:6414: checking for getpwnam_r" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getpwnam_r'+set}'`\" = set"; then
d4722 1
a4722 1
if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then
d4724 1
a4724 1
	for ac_lib in "" c_r; do
d4727 1
a4727 2
		else
			ac_lib=""
a4728 1
		LIBS="$ac_lib $ac_save_LIBS"
d4730 1
a4730 1
#line 6429 "configure"
d4734 1
a4734 1
getpwnam_r()
d4737 1
a4737 1
if { (eval echo configure:6436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4739 1
a4739 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
d4746 1
a4746 1
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
d4753 1
a4753 1
eval "ac_res=\$ac_cv_funclib_getpwnam_r"
d4755 1
d4757 2
a4758 2
@@@@@@funcs="$funcs getpwnam_r"@@@@@@
@@@@@@libs="$libs "" c_r"@@@@@@
d4761 3
a4763 4
# 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"
d4767 2
a4768 2
	eval "ac_cv_func_getpwnam_r=yes"
	eval "LIB_getpwnam_r="
d4776 2
a4777 2
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
d4781 1
a4781 1
	eval "ac_cv_func_getpwnam_r=yes"
d4796 7
a4802 4
if test "$ac_cv_func_getpwnam_r" = yes; then
	echo $ac_n "checking if getpwnam_r is posix""... $ac_c" 1>&6
echo "configure:6497: checking if getpwnam_r is posix" >&5
if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r_posix'+set}'`\" = set"; then
a4804 5
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
d4806 1
a4806 1
#line 6507 "configure"
d4808 9
d4818 8
a4825 6
#include <pwd.h>
int main()
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}
d4827 1
d4829 3
a4831 3
if { (eval echo configure:6518: \"$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
d4835 2
a4836 2
  rm -fr conftest*
  ac_cv_func_getpwnam_r_posix=no
d4838 1
a4838 1
rm -fr conftest*
d4841 9
a4849 1
LIBS="$ac_libs"
d4851 1
d4853 3
a4855 7
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

fi
d4857 1
d4859 3
d4864 1
d4867 3
a4869 3
echo $ac_n "checking for getsockopt""... $ac_c" 1>&6
echo "configure:6547: checking for getsockopt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getsockopt'+set}'`\" = set"; then
d4873 1
a4873 1
if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then
d4875 1
a4875 1
	for ac_lib in "" ; do
d4878 1
a4878 2
		else
			ac_lib=""
a4879 1
		LIBS="$ac_lib $ac_save_LIBS"
d4881 1
a4881 1
#line 6562 "configure"
d4883 1
a4883 6
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
d4885 1
a4885 1
getsockopt(0,0,0,0,0)
d4888 1
a4888 1
if { (eval echo configure:6574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4890 1
a4890 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break
d4897 1
a4897 1
	eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}"
d4904 1
a4904 1
eval "ac_res=\$ac_cv_funclib_getsockopt"
d4906 1
d4908 2
a4909 2
@@@@@@funcs="$funcs getsockopt"@@@@@@
@@@@@@libs="$libs "" "@@@@@@
d4912 3
a4914 4
# 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"
d4918 2
a4919 2
	eval "ac_cv_func_getsockopt=yes"
	eval "LIB_getsockopt="
d4927 2
a4928 2
	eval "ac_cv_func_getsockopt=no"
	eval "LIB_getsockopt="
d4932 1
a4932 1
	eval "ac_cv_func_getsockopt=yes"
d4947 1
d4950 3
a4952 4

echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
echo "configure:6637: checking for setsockopt" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_setsockopt'+set}'`\" = set"; then
d4956 1
a4956 1
if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then
d4958 1
a4958 1
	for ac_lib in "" ; do
d4961 1
a4961 2
		else
			ac_lib=""
a4962 1
		LIBS="$ac_lib $ac_save_LIBS"
d4964 1
a4964 1
#line 6652 "configure"
d4966 1
a4966 6
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
d4968 1
a4968 1
setsockopt(0,0,0,0,0)
d4971 1
a4971 1
if { (eval echo configure:6664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4973 1
a4973 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break
d4980 1
a4980 1
	eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}"
d4987 1
a4987 1
eval "ac_res=\$ac_cv_funclib_setsockopt"
d4989 1
d4991 2
a4992 2
@@@@@@funcs="$funcs setsockopt"@@@@@@
@@@@@@libs="$libs "" "@@@@@@
d4995 3
a4997 4
# 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"
d5001 2
a5002 2
	eval "ac_cv_func_setsockopt=yes"
	eval "LIB_setsockopt="
d5010 2
a5011 2
	eval "ac_cv_func_setsockopt=no"
	eval "LIB_setsockopt="
d5015 1
a5015 1
	eval "ac_cv_func_setsockopt=yes"
d5030 2
a5031 51

for ac_func in getudbnam setlim
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:6727: 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 6732 "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:6755: \"$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

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
 
d5033 1
a5033 1
  echo "$ac_t""no" 1>&6
d5035 1
a5035 1
done
d5040 3
a5042 5


echo $ac_n "checking for res_search""... $ac_c" 1>&6
echo "configure:6785: checking for res_search" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_res_search'+set}'`\" = set"; then
d5046 1
a5046 1
if eval "test \"\$ac_cv_func_res_search\" != yes" ; then
d5048 1
a5048 1
	for ac_lib in "" resolv; do
d5051 1
a5051 2
		else
			ac_lib=""
a5052 1
		LIBS="$ac_lib $ac_save_LIBS"
d5054 1
a5054 1
#line 6800 "configure"
a5056 14
#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

d5058 1
a5058 1
res_search(0,0,0,0,0)
d5061 1
a5061 1
if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5063 1
a5063 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break
d5070 1
a5070 1
	eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}"
d5077 1
a5077 1
eval "ac_res=\$ac_cv_funclib_res_search"
d5079 1
d5081 2
a5082 2
@@@@@@funcs="$funcs res_search"@@@@@@
@@@@@@libs="$libs "" resolv"@@@@@@
d5085 3
a5087 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"
d5091 2
a5092 2
	eval "ac_cv_func_res_search=yes"
	eval "LIB_res_search="
d5100 2
a5101 2
	eval "ac_cv_func_res_search=no"
	eval "LIB_res_search="
d5105 1
a5105 1
	eval "ac_cv_func_res_search=yes"
d5120 39
a5158 2
if test -n "$LIB_res_search"; then
	LIBS="$LIB_res_search $LIBS"
d5161 9
d5171 1
d5173 5
a5177 6



echo $ac_n "checking for dn_expand""... $ac_c" 1>&6
echo "configure:6890: checking for dn_expand" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_dn_expand'+set}'`\" = set"; then
d5180 2
a5181 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 <<EOF
#line 6905 "configure"
d5183 9
d5193 7
a5199 12
#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>
a5201 2
int main() {
dn_expand(0,0,0,0,0)
d5204 1
a5204 1
if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5206 1
a5206 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break
d5210 2
a5213 3
	done
	eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}"
	LIBS="$ac_save_LIBS"
d5216 9
d5226 2
d5230 17
a5246 1
eval "ac_res=\$ac_cv_funclib_dn_expand"
d5248 1
a5248 4
: << END
@@@@@@funcs="$funcs dn_expand"@@@@@@
@@@@@@libs="$libs "" resolv"@@@@@@
END
d5250 8
a5257 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"
d5259 1
a5259 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
d5261 11
d5273 4
a5276 11
	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
d5279 3
a5281 12

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

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test -n "$LIB_dn_expand"; then
	LIBS="$LIB_dn_expand $LIBS"
d5283 1
d5285 1
a5285 3


for ac_hdr in unistd.h
d5287 3
a5289 4
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:6995: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d5293 1
a5293 1
#line 7000 "configure"
d5295 20
a5314 1
#include <$ac_hdr>
d5316 1
a5316 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:7005: \"$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
d5318 1
a5318 1
  eval "ac_cv_header_$ac_safe=yes"
a5319 1
  echo "$ac_err" >&5
d5323 1
a5323 1
  eval "ac_cv_header_$ac_safe=no"
d5327 2
a5328 1
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d5330 1
a5330 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d5332 1
a5332 1
#define $ac_tr_hdr 1
d5340 1
a5340 1
for ac_func in getpagesize
d5343 1
a5343 1
echo "configure:7034: checking for $ac_func" >&5
d5348 1
a5348 1
#line 7039 "configure"
d5371 1
a5371 1
if { (eval echo configure:7062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5395 5
a5399 3
echo $ac_n "checking for working mmap""... $ac_c" 1>&6
echo "configure:7087: checking for working mmap" >&5
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
a5401 3
  if test "$cross_compiling" = yes; then
  ac_cv_func_mmap_fixed_mapped=no
else
d5403 1
a5403 1
#line 7095 "configure"
d5405 7
d5413 1
a5413 65
/* 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 filesystem buffer cache
   like early versions of FreeBSD and possibly contemporary NetBSD.)
   For shared mappings, we should conversely verify that changes get
   propogated 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 <sys/types.h>
#include <fcntl.h>
#include <sys/mman.h>

/* This mess was copied from the GNU getpagesize.h.  */
#ifndef HAVE_GETPAGESIZE
# ifdef HAVE_UNISTD_H
#  include <unistd.h>
# endif

/* 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 */
d5415 5
a5419 2
#ifdef __cplusplus
extern "C" { void *malloc(unsigned); }
d5421 1
a5421 1
char *malloc();
d5424 1
a5424 64
int
main()
{
	char *data, *data2, *data3;
	int i, pagesize;
	int fd;

	pagesize = getpagesize();

	/*
	 * First, make a file with some known garbage in it.
	 */
	data = malloc(pagesize);
	if (!data)
		exit(1);
	for (i = 0; i < pagesize; ++i)
		*(data + i) = rand();
	umask(0);
	fd = creat("conftestmmap", 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("conftestmmap", O_RDWR);
	if (fd < 0)
		exit(1);
	data2 = 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 = 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);
	unlink("conftestmmap");
	exit(0);
}

d5426 3
a5428 3
if { (eval echo configure:7235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_func_mmap_fixed_mapped=yes
d5432 2
a5433 2
  rm -fr conftest*
  ac_cv_func_mmap_fixed_mapped=no
d5435 1
a5435 1
rm -fr conftest*
d5438 5
a5442 6
fi

echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
if test $ac_cv_func_mmap_fixed_mapped = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_MMAP 1
d5444 3
a5446 1

d5448 1
d5450 5
a5454 5
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
# for constant arguments.  Useless!
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
echo "configure:7260: checking for working alloca.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
d5458 1
a5458 1
#line 7265 "configure"
d5460 8
a5467 1
#include <alloca.h>
d5469 10
a5478 1
char *p = alloca(2 * sizeof(int));
d5481 1
a5481 1
if { (eval echo configure:7272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5483 1
a5483 1
  ac_cv_header_alloca_h=yes
d5488 1
a5488 1
  ac_cv_header_alloca_h=no
d5493 5
a5497 4
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
if test $ac_cv_header_alloca_h = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA_H 1
d5499 3
a5501 1

d5503 1
d5505 5
a5509 3
echo $ac_n "checking for alloca""... $ac_c" 1>&6
echo "configure:7293: checking for alloca" >&5
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
d5513 1
a5513 1
#line 7298 "configure"
d5515 9
d5525 5
a5529 2
#ifdef __GNUC__
# define alloca __builtin_alloca
d5531 1
a5531 16
# ifdef _MSC_VER
#  include <malloc.h>
#  define alloca _alloca
# else
#  if HAVE_ALLOCA_H
#   include <alloca.h>
#  else
#   ifdef _AIX
 #pragma alloca
#   else
#    ifndef alloca /* predefined by HP cc +Olibcalls */
char *alloca ();
#    endif
#   endif
#  endif
# endif
a5533 2
int main() {
char *p = (char *) alloca(1);
d5536 1
a5536 1
if { (eval echo configure:7326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5538 1
a5538 1
  ac_cv_func_alloca_works=yes
d5543 1
a5543 1
  ac_cv_func_alloca_works=no
d5548 5
a5552 4
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
if test $ac_cv_func_alloca_works = yes; then
  cat >> confdefs.h <<\EOF
#define HAVE_ALLOCA 1
d5554 3
a5556 1

d5558 1
d5560 5
a5564 14
if test $ac_cv_func_alloca_works = no; then
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  # that cause trouble.  Some versions do not even contain alloca or
  # contain a buggy version.  If you still want to use their alloca,
  # use ar to extract alloca.o from them instead of compiling alloca.c.
  ALLOCA=alloca.${ac_objext}
  cat >> confdefs.h <<\EOF
#define C_ALLOCA 1
EOF


echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
echo "configure:7358: checking whether alloca needs Cray hooks" >&5
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
d5568 1
a5568 1
#line 7363 "configure"
d5570 15
a5584 2
#if defined(CRAY) && ! defined(CRAY2)
webecray
d5586 1
a5586 1
wenotbecray
d5589 1
d5591 1
a5591 2
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  egrep "webecray" >/dev/null 2>&1; then
d5593 1
a5593 1
  ac_cv_os_cray=yes
d5595 2
d5598 1
a5598 1
  ac_cv_os_cray=no
a5600 1

d5603 16
a5618 5
echo "$ac_t""$ac_cv_os_cray" 1>&6
if test $ac_cv_os_cray = yes; then
for ac_func in _getb67 GETB67 getb67; do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7388: checking for $ac_func" >&5
d5623 1
a5623 1
#line 7393 "configure"
d5646 1
a5646 1
if { (eval echo configure:7416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5660 1
d5662 1
a5662 1
#define CRAY_STACKSEG_END $ac_func
d5664 1
a5664 2

  break
d5668 2
a5670 2
done
fi
d5672 3
a5674 3
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
echo "configure:7443: checking stack direction for C alloca" >&5
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
d5677 10
a5686 5
  if test "$cross_compiling" = yes; then
  ac_cv_c_stack_direction=0
else
  cat > conftest.$ac_ext <<EOF
#line 7451 "configure"
d5688 4
a5691 16
find_stack_direction ()
{
  static char *addr = 0;
  auto char dummy;
  if (addr == 0)
    {
      addr = &dummy;
      return find_stack_direction ();
    }
  else
    return (&dummy > addr) ? 1 : -1;
}
main ()
{
  exit (find_stack_direction() < 0);
}
d5693 3
a5695 3
if { (eval echo configure:7470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_stack_direction=1
a5698 2
  rm -fr conftest*
  ac_cv_c_stack_direction=-1
d5700 4
a5703 1
rm -fr conftest*
d5708 33
a5740 3
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
cat >> confdefs.h <<EOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
d5743 3
a5745 1
fi
d5747 3
a5750 3
#
# Test for POSIX (broken) getlogin
#
d5752 4
a5755 4
if test "$ac_cv_func_getlogin" = yes; then
echo $ac_n "checking if getlogin is posix""... $ac_c" 1>&6
echo "configure:7498: checking if getlogin is posix" >&5
if eval "test \"`echo '$''{'ac_cv_func_getlogin_posix'+set}'`\" = set"; then
d5758 20
a5777 3
  
if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then
	ac_cv_func_getlogin_posix=no
d5779 6
a5784 1
	ac_cv_func_getlogin_posix=yes
d5787 1
d5790 2
a5791 2
echo "$ac_t""$ac_cv_func_getlogin_posix" 1>&6
if test "$ac_cv_func_getlogin_posix" = yes; then
d5793 1
a5793 1
#define POSIX_GETLOGIN 1
d5801 3
a5803 5


echo $ac_n "checking for hstrerror""... $ac_c" 1>&6
echo "configure:7525: checking for hstrerror" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_hstrerror'+set}'`\" = set"; then
d5807 1
a5807 1
if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then
d5809 1
a5809 1
	for ac_lib in "" resolv; do
d5812 1
a5812 2
		else
			ac_lib=""
a5813 1
		LIBS="$ac_lib $ac_save_LIBS"
d5815 1
a5815 1
#line 7540 "configure"
d5817 5
a5821 2
#ifdef HAVE_NETDB_H
#include <netdb.h>
d5824 1
a5824 1
hstrerror(17)
d5827 1
a5827 1
if { (eval echo configure:7549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5829 1
a5829 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break
d5836 1
a5836 1
	eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}"
d5843 1
a5843 1
eval "ac_res=\$ac_cv_funclib_hstrerror"
d5845 1
d5847 2
a5848 2
@@@@@@funcs="$funcs hstrerror"@@@@@@
@@@@@@libs="$libs "" resolv"@@@@@@
d5851 3
a5853 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"
d5857 2
a5858 2
	eval "ac_cv_func_hstrerror=yes"
	eval "LIB_hstrerror="
d5866 2
a5867 2
	eval "ac_cv_func_hstrerror=no"
	eval "LIB_hstrerror="
d5871 1
a5871 1
	eval "ac_cv_func_hstrerror=yes"
a5885 7
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
a5886 1
if test "$ac_cv_func_hstrerror" = yes; then
d5888 3
a5890 4
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:7620: checking if hstrerror needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_hstrerror_noproto'+set}'`\" = set"; then
d5893 10
a5902 2
  cat > conftest.$ac_ext <<EOF
#line 7625 "configure"
d5904 2
a5905 3

#ifdef HAVE_NETDB_H
#include <netdb.h>
d5907 2
a5908 59
int main() {
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);

; return 0; }
EOF
if { (eval echo configure:7638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_hstrerror_noproto=yes"
else
  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

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

for ac_func in chown daemon err errx fchown flock fnmatch
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7666: 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 7671 "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();
d5910 2
a5911 1

d5914 1
a5914 1
if { (eval echo configure:7694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5916 1
a5916 1
  eval "ac_cv_func_$ac_func=yes"
a5919 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d5922 5
d5929 32
a5960 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
d5964 8
a5971 4
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
a5972 4
: << END
@@@@@@funcs="$funcs chown daemon err errx fchown flock fnmatch"@@@@@@
END
done
d5974 1
a5974 1
for ac_func in getcwd getdtablesize gethostname geteuid getgid getegid
d5977 1
a5977 1
echo "configure:7727: checking for $ac_func" >&5
d5982 1
a5982 1
#line 7732 "configure"
d6005 1
a6005 1
if { (eval echo configure:7755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6019 2
a6020 3
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
d6023 1
a6023 1

a6025 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
d6027 4
a6031 4
: << END
@@@@@@funcs="$funcs getcwd getdtablesize gethostname geteuid getgid getegid"@@@@@@
END
done
d6033 3
a6035 5
for ac_func in getopt getusershell inet_aton initgroups innetgr iruserok lstat
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7788: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d6038 10
a6047 2
  cat > conftest.$ac_ext <<EOF
#line 7793 "configure"
a6048 7
/* 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();
d6050 12
a6061 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();
d6064 2
d6068 1
a6068 1
if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6070 1
a6070 1
  eval "ac_cv_func_$ac_func=yes"
a6073 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d6076 5
a6082 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
d6084 1
a6084 4
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
d6086 1
d6088 2
a6089 1
@@@@@@funcs="$funcs getopt getusershell inet_aton initgroups innetgr iruserok lstat"@@@@@@
a6090 1
done
d6092 3
a6094 17
for ac_func in memmove mkstemp putenv rcmd readv setegid setenv seteuid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7849: 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 7854 "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();
d6096 7
a6102 1
int main() {
d6104 13
a6116 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
d6118 2
a6119 1
; return 0; }
d6121 8
a6128 10
if { (eval echo configure:7877: \"$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*
a6130 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
a6131 4
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi
a6132 4
: << END
@@@@@@funcs="$funcs memmove mkstemp putenv rcmd readv setegid setenv seteuid"@@@@@@
END
done
d6134 4
a6137 5
for ac_func in strcasecmp strncasecmp strdup strerror strftime strlwr
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7910: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d6140 10
a6149 2
  cat > conftest.$ac_ext <<EOF
#line 7915 "configure"
d6151 14
a6164 7
/* 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();
d6167 1
a6167 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_$ac_func) || defined (__stub___$ac_func)
choke me
#else
$ac_func();
#endif

d6170 1
a6170 1
if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6172 1
a6172 1
  eval "ac_cv_func_$ac_func=yes"
a6175 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d6178 5
d6185 32
a6216 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
d6220 11
a6230 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
a6232 4
: << END
@@@@@@funcs="$funcs strcasecmp strncasecmp strdup strerror strftime strlwr"@@@@@@
END
done
d6234 2
a6235 1
for ac_func in strndup strnlen strsep strtok_r strupr
d6237 4
a6240 3
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7971: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d6244 1
a6244 1
#line 7976 "configure"
d6246 1
a6246 20
/* 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; }
d6248 4
a6251 1
if { (eval echo configure:7999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6253 1
a6253 1
  eval "ac_cv_func_$ac_func=yes"
d6255 1
d6259 1
a6259 1
  eval "ac_cv_func_$ac_func=no"
d6263 1
a6263 2

if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
d6265 3
a6267 4
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
#define $ac_tr_func 1
d6269 1
a6269 1

a6271 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a6272 4

: << END
@@@@@@funcs="$funcs strndup strnlen strsep strtok_r strupr"@@@@@@
END
d6275 1
a6275 1
for ac_func in swab unsetenv verr verrx vsyslog
d6278 1
a6278 1
echo "configure:8032: checking for $ac_func" >&5
d6283 1
a6283 1
#line 8037 "configure"
d6306 1
a6306 1
if { (eval echo configure:8060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6320 2
a6321 3
  
ac_tr_func=HAVE_`echo $ac_func | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
cat >> confdefs.h <<EOF
d6324 1
a6324 1

a6326 1
LIBOBJS="$LIBOBJS ${ac_func}.o"
a6327 4

: << END
@@@@@@funcs="$funcs swab unsetenv verr verrx vsyslog"@@@@@@
END
d6330 3
a6332 5
for ac_func in vwarn vwarnx warn warnx writev
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:8093: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d6335 3
d6339 1
a6339 1
#line 8098 "configure"
a6340 7
/* 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();
d6342 135
a6476 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
a6477 1
; return 0; }
d6479 3
a6481 3
if { (eval echo configure:8121: \"$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"
d6485 4
a6488 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d6490 1
a6490 1
rm -f conftest*
d6493 4
a6496 6
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
a6498 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
d6501 5
a6505 12
: << END
@@@@@@funcs="$funcs vwarn vwarnx warn warnx writev"@@@@@@
END
done


if test "$ac_cv_func_gethostname" = "yes"; then

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:8156: checking if gethostname needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostname_noproto'+set}'`\" = set"; then
d6509 1
a6509 1
#line 8161 "configure"
d6511 1
a6511 2

#include <unistd.h>
d6513 1
a6513 4
struct foo { int foo; } xx;
extern int gethostname (struct foo*);
gethostname(&xx);

d6516 1
a6516 1
if { (eval echo configure:8172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6518 1
a6518 1
  eval "ac_cv_func_gethostname_noproto=yes"
d6523 1
a6523 1
  eval "ac_cv_func_gethostname_noproto=no"
d6528 4
a6531 5
echo "$ac_t""$ac_cv_func_gethostname_noproto" 1>&6

if test "$ac_cv_func_gethostname_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_GETHOSTNAME_PROTO 1
d6536 3
a6538 10
fi

fi

if test "$ac_cv_func_mkstemp" = "yes"; then

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:8201: checking if mkstemp needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_mkstemp_noproto'+set}'`\" = set"; then
d6542 1
a6542 1
#line 8206 "configure"
d6545 16
a6560 1
#include <unistd.h>
d6562 1
a6562 4
struct foo { int foo; } xx;
extern int mkstemp (struct foo*);
mkstemp(&xx);

d6565 1
a6565 1
if { (eval echo configure:8217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6567 1
a6567 1
  eval "ac_cv_func_mkstemp_noproto=yes"
d6572 1
a6572 1
  eval "ac_cv_func_mkstemp_noproto=no"
d6577 4
a6580 5
echo "$ac_t""$ac_cv_func_mkstemp_noproto" 1>&6

if test "$ac_cv_func_mkstemp_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_MKSTEMP_PROTO 1
d6585 9
a6593 1
fi
a6594 1
fi
d6596 3
a6598 6
if test "$ac_cv_func_inet_aton" = "yes"; then

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:8246: checking if inet_aton needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_inet_aton_noproto'+set}'`\" = set"; then
d6602 1
a6602 1
#line 8251 "configure"
d6604 4
a6607 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>
a6608 4
int main() {
struct foo { int foo; } xx;
extern int inet_aton (struct foo*);
inet_aton(&xx);
a6609 1
; return 0; }
d6611 2
a6612 1
if { (eval echo configure:8273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6614 1
a6614 1
  eval "ac_cv_func_inet_aton_noproto=yes"
a6615 2
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
d6617 1
a6617 1
  eval "ac_cv_func_inet_aton_noproto=no"
a6619 8
fi

echo "$ac_t""$ac_cv_func_inet_aton_noproto" 1>&6

if test "$ac_cv_func_inet_aton_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_INET_ATON_PROTO 1
EOF
d6623 6
a6628 7
fi

fi

echo $ac_n "checking if realloc is broken""... $ac_c" 1>&6
echo "configure:8299: checking if realloc is broken" >&5
if eval "test \"`echo '$''{'ac_cv_func_realloc_broken'+set}'`\" = set"; then
a6630 5
  
ac_cv_func_realloc_broken=no
if test "$cross_compiling" = yes; then
  :
else
d6632 1
a6632 1
#line 8309 "configure"
d6634 7
d6642 1
a6642 2
#include <stddef.h>
#include <stdlib.h>
d6644 8
a6651 4
int main()
{
	return realloc(NULL, 17) == NULL;
}
d6653 1
d6655 3
a6657 3
if { (eval echo configure:8321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  :
d6661 2
a6662 2
  rm -fr conftest*
  ac_cv_func_realloc_broken=yes
d6664 1
a6664 1
rm -fr conftest*
d6667 5
d6673 3
d6678 1
a6678 6
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

d6681 3
a6683 5

if test "$ac_cv_func_getcwd" = yes; then
echo $ac_n "checking if getcwd is broken""... $ac_c" 1>&6
echo "configure:8347: checking if getcwd is broken" >&5
if eval "test \"`echo '$''{'ac_cv_func_getcwd_broken'+set}'`\" = set"; then
d6686 2
a6687 5
  
ac_cv_func_getcwd_broken=no

if test "$cross_compiling" = yes; then
  :
d6690 1
a6690 1
#line 8358 "configure"
d6692 1
a6692 5

#include <errno.h>
char *getcwd(char*, int);

void *popen(char *cmd, char *mode)
d6694 9
a6702 2
	errno = ENOTTY;
	return 0;
d6704 1
a6704 2

int main()
d6706 1
a6706 5
	char *ret;
	ret = getcwd(0, 1024);
	if(ret == 0 && errno == ENOTTY)
		return 0;
	return 1;
a6707 1

d6709 1
a6709 1
if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6711 1
a6711 1
  ac_cv_func_getcwd_broken=yes
d6716 1
a6716 1
  :
a6720 1

d6723 3
a6725 3
if test "$ac_cv_func_getcwd_broken" = yes; then
	cat >> confdefs.h <<\EOF
#define BROKEN_GETCWD 1
d6727 1
a6727 5
	LIBOBJS="$LIBOBJS getcwd.o"
		echo "$ac_t""$ac_cv_func_getcwd_broken" 1>&6
else
	echo "$ac_t""seems ok" 1>&6
fi
d6731 3
d6735 11
a6745 7
echo $ac_n "checking which authentication modules should be built""... $ac_c" 1>&6
echo "configure:8409: checking which authentication modules should be built" >&5

LIB_AUTH_SUBDIRS=

if test "$ac_cv_header_siad_h" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia"
a6747 2
if test "$ac_cv_header_security_pam_modules_h" = yes -a "$enable_shared" = yes; then
	LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam"
d6750 5
a6754 3
case "${host}" in
*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;;
esac
d6756 1
a6756 11
echo "$ac_t""$LIB_AUTH_SUBDIRS" 1>&6



echo $ac_n "checking for tunnel devices""... $ac_c" 1>&6
echo "configure:8430: checking for tunnel devices" >&5

APPL_KIP_DIR=

if test "$ac_cv_header_net_if_tun_h" = "yes"; then
	APPL_KIP_DIR=kip
a6758 1
echo "$ac_t""$ac_cv_header_net_if_tun_h" 1>&6
d6762 3
a6764 4

echo $ac_n "checking if gethostbyname is compatible with system prototype""... $ac_c" 1>&6
echo "configure:8444: checking if gethostbyname is compatible with system prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname_proto_compat'+set}'`\" = set"; then
d6767 10
a6776 2
  cat > conftest.$ac_ext <<EOF
#line 8449 "configure"
a6777 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
a6780 1

d6782 1
a6782 1
struct hostent *gethostbyname(const char *);
d6785 1
a6785 1
if { (eval echo configure:8472: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6787 1
a6787 1
  eval "ac_cv_func_gethostbyname_proto_compat=yes"
a6790 2
  rm -rf conftest*
  eval "ac_cv_func_gethostbyname_proto_compat=no"
d6793 3
d6798 1
a6798 1
echo "$ac_t""$ac_cv_func_gethostbyname_proto_compat" 1>&6
a6799 4
if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define GETHOSTBYNAME_PROTO_COMPATIBLE 1
EOF
d6801 1
a6801 1
fi
d6803 5
d6809 3
d6813 7
d6821 13
a6833 8
echo $ac_n "checking if gethostbyaddr is compatible with system prototype""... $ac_c" 1>&6
echo "configure:8497: 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 8502 "configure"
#include "confdefs.h"
d6835 2
a6836 19
#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; }
a6837 11
if { (eval echo configure:8525: \"$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
d6839 3
a6841 1
echo "$ac_t""$ac_cv_func_gethostbyaddr_proto_compat" 1>&6
a6842 4
if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define GETHOSTBYADDR_PROTO_COMPATIBLE 1
EOF
d6844 2
d6848 3
d6853 5
a6857 4

echo $ac_n "checking if getservbyname is compatible with system prototype""... $ac_c" 1>&6
echo "configure:8550: checking if getservbyname is compatible with system prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_getservbyname_proto_compat'+set}'`\" = set"; then
d6861 1
a6861 1
#line 8555 "configure"
d6863 9
d6873 7
a6879 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_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
a6881 2
int main() {
struct servent *getservbyname(const char *, const char *);
d6884 1
a6884 1
if { (eval echo configure:8578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6886 1
a6886 1
  eval "ac_cv_func_getservbyname_proto_compat=yes"
d6891 1
a6891 1
  eval "ac_cv_func_getservbyname_proto_compat=no"
d6896 6
a6901 5
echo "$ac_t""$ac_cv_func_getservbyname_proto_compat" 1>&6

if test "$ac_cv_func_getservbyname_proto_compat" = yes; then
	cat >> confdefs.h <<\EOF
#define GETSERVBYNAME_PROTO_COMPATIBLE 1
d6904 3
d6909 5
d6915 5
a6919 5


echo $ac_n "checking if openlog is compatible with system prototype""... $ac_c" 1>&6
echo "configure:8603: checking if openlog is compatible with system prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_openlog_proto_compat'+set}'`\" = set"; then
d6923 1
a6923 1
#line 8608 "configure"
d6925 7
d6933 9
a6941 2
#ifdef HAVE_SYSLOG_H
#include <syslog.h>
a6943 2
int main() {
void openlog(const char *, int, int);
d6946 1
a6946 1
if { (eval echo configure:8619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d6948 1
a6948 1
  eval "ac_cv_func_openlog_proto_compat=yes"
d6953 1
a6953 1
  eval "ac_cv_func_openlog_proto_compat=no"
d6958 6
a6963 5
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
d6966 3
d6971 5
d6977 5
a6981 6


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:8645: checking if crypt needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_crypt_noproto'+set}'`\" = set"; then
d6985 1
a6985 1
#line 8650 "configure"
d6987 7
a6993 7

#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
d6996 9
a7004 3
struct foo { int foo; } xx;
extern int crypt (struct foo*);
crypt(&xx);
d7008 1
a7008 1
if { (eval echo configure:8667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7010 1
a7010 1
  eval "ac_cv_func_crypt_noproto=yes"
d7015 1
a7015 1
  eval "ac_cv_func_crypt_noproto=no"
d7020 6
a7025 5
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
d7028 3
d7033 5
a7037 1
fi
d7039 5
a7043 6


if test "$ac_cv_func_fclose+set" != set -o "$ac_cv_func_fclose" = yes; then
echo $ac_n "checking if fclose needs a prototype""... $ac_c" 1>&6
echo "configure:8694: checking if fclose needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_fclose_noproto'+set}'`\" = set"; then
d7047 1
a7047 1
#line 8699 "configure"
d7049 7
d7057 1
a7057 1
#include <stdio.h>
d7059 8
a7066 4
int main() {
struct foo { int foo; } xx;
extern int fclose (struct foo*);
fclose(&xx);
d7070 1
a7070 1
if { (eval echo configure:8711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7072 1
a7072 1
  eval "ac_cv_func_fclose_noproto=yes"
d7077 1
a7077 1
  eval "ac_cv_func_fclose_noproto=no"
d7082 6
a7087 5
echo "$ac_t""$ac_cv_func_fclose_noproto" 1>&6

if test "$ac_cv_func_fclose_noproto" = yes; then
	cat >> confdefs.h <<\EOF
#define NEED_FCLOSE_PROTO 1
d7090 3
d7095 5
a7099 1
fi
d7101 5
a7105 6


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:8738: checking if strtok_r needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_strtok_r_noproto'+set}'`\" = set"; then
d7109 1
a7109 1
#line 8743 "configure"
d7111 7
d7119 1
a7119 1
#include <string.h>
d7121 8
a7128 4
int main() {
struct foo { int foo; } xx;
extern int strtok_r (struct foo*);
strtok_r(&xx);
d7132 1
a7132 1
if { (eval echo configure:8755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7134 1
a7134 1
  eval "ac_cv_func_strtok_r_noproto=yes"
d7139 1
a7139 1
  eval "ac_cv_func_strtok_r_noproto=no"
d7144 6
a7149 5
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
d7152 3
d7157 5
a7161 1
fi
d7165 4
a7168 4
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:8782: checking if strsep needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_strsep_noproto'+set}'`\" = set"; then
d7171 6
d7178 1
a7178 1
#line 8787 "configure"
d7181 8
a7188 1
#include <string.h>
d7190 8
a7197 4
int main() {
struct foo { int foo; } xx;
extern int strsep (struct foo*);
strsep(&xx);
a7198 1
; return 0; }
d7200 3
a7202 3
if { (eval echo configure:8799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_strsep_noproto=yes"
d7206 2
a7207 2
  rm -rf conftest*
  eval "ac_cv_func_strsep_noproto=no"
d7209 1
a7209 1
rm -f conftest*
a7211 1
echo "$ac_t""$ac_cv_func_strsep_noproto" 1>&6
d7213 3
a7215 1
if test "$ac_cv_func_strsep_noproto" = yes; then
d7217 1
a7217 1
#define NEED_STRSEP_PROTO 1
d7219 17
d7237 2
d7241 15
d7258 2
d7262 4
a7265 4
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:8826: checking if getusershell needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_getusershell_noproto'+set}'`\" = set"; then
d7269 1
a7269 1
#line 8831 "configure"
d7272 4
d7277 1
d7281 2
a7282 2
extern int getusershell (struct foo*);
getusershell(&xx);
d7286 1
a7286 1
if { (eval echo configure:8843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7288 1
a7288 1
  eval "ac_cv_func_getusershell_noproto=yes"
d7293 1
a7293 1
  eval "ac_cv_func_getusershell_noproto=no"
d7298 1
a7298 1
echo "$ac_t""$ac_cv_func_getusershell_noproto" 1>&6
d7300 1
a7300 1
if test "$ac_cv_func_getusershell_noproto" = yes; then
d7302 1
a7302 1
#define NEED_GETUSERSHELL_PROTO 1
d7306 3
a7309 1
fi
d7313 3
a7315 4
if test "$ac_cv_func_utime+set" != set -o "$ac_cv_func_utime" = yes; then
echo $ac_n "checking if utime needs a prototype""... $ac_c" 1>&6
echo "configure:8870: checking if utime needs a prototype" >&5
if eval "test \"`echo '$''{'ac_cv_func_utime_noproto'+set}'`\" = set"; then
d7319 1
a7319 1
#line 8875 "configure"
d7322 1
a7322 3
#ifdef HAVE_UTIME_H
#include <utime.h>
#endif
d7326 2
a7327 2
extern int utime (struct foo*);
utime(&xx);
d7331 1
a7331 1
if { (eval echo configure:8889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7333 1
a7333 1
  eval "ac_cv_func_utime_noproto=yes"
d7338 1
a7338 1
  eval "ac_cv_func_utime_noproto=no"
d7343 1
a7343 1
echo "$ac_t""$ac_cv_func_utime_noproto" 1>&6
d7345 1
a7345 1
if test "$ac_cv_func_utime_noproto" = yes; then
d7347 1
a7347 1
#define NEED_UTIME_PROTO 1
d7351 3
a7354 1
fi
d7359 1
a7359 1
echo "configure:8915: checking for h_errno" >&5
d7365 1
a7365 1
#line 8921 "configure"
d7373 1
a7373 1
if { (eval echo configure:8929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7386 6
d7397 1
a7397 1
#define HAVE_H_ERRNO 1
d7402 1
a7402 1
echo "configure:8952: checking if h_errno is properly declared" >&5
d7408 1
a7408 1
#line 8958 "configure"
d7421 1
a7421 1
if { (eval echo configure:8971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7435 6
d7445 2
a7446 2
	cat >> confdefs.h <<\EOF
#define HAVE_H_ERRNO_DECLARATION 1
a7450 1

a7454 1

d7456 1
a7456 1
echo "configure:9002: checking for h_errlist" >&5
d7462 1
a7462 1
#line 9008 "configure"
d7470 1
a7470 1
if { (eval echo configure:9016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7483 6
d7494 1
a7494 1
#define HAVE_H_ERRLIST 1
d7499 1
a7499 1
echo "configure:9039: checking if h_errlist is properly declared" >&5
d7505 1
a7505 1
#line 9045 "configure"
d7515 1
a7515 1
if { (eval echo configure:9055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7529 6
d7539 2
a7540 2
	cat >> confdefs.h <<\EOF
#define HAVE_H_ERRLIST_DECLARATION 1
a7544 1

a7548 1

d7550 1
a7550 1
echo "configure:9086: checking for h_nerr" >&5
d7556 1
a7556 1
#line 9092 "configure"
d7564 1
a7564 1
if { (eval echo configure:9100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7577 6
d7588 1
a7588 1
#define HAVE_H_NERR 1
d7593 1
a7593 1
echo "configure:9123: checking if h_nerr is properly declared" >&5
d7599 1
a7599 1
#line 9129 "configure"
d7609 1
a7609 1
if { (eval echo configure:9139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7623 6
d7633 2
a7634 2
	cat >> confdefs.h <<\EOF
#define HAVE_H_NERR_DECLARATION 1
a7638 1

a7642 1

d7644 1
a7644 1
echo "configure:9170: checking for __progname" >&5
d7650 1
a7650 1
#line 9176 "configure"
d7658 1
a7658 1
if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7671 6
d7682 1
a7682 1
#define HAVE___PROGNAME 1
d7687 1
a7687 1
echo "configure:9207: checking if __progname is properly declared" >&5
d7693 1
a7693 1
#line 9213 "configure"
d7703 1
a7703 1
if { (eval echo configure:9223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7717 6
d7727 2
a7728 2
	cat >> confdefs.h <<\EOF
#define HAVE___PROGNAME_DECLARATION 1
a7732 1

a7736 1

d7738 1
a7738 1
echo "configure:9254: checking if optarg is properly declared" >&5
d7744 1
a7744 1
#line 9260 "configure"
d7752 1
a7752 1
if { (eval echo configure:9268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7766 6
d7776 2
a7777 2
	cat >> confdefs.h <<\EOF
#define HAVE_OPTARG_DECLARATION 1
a7782 1

d7784 1
a7784 1
echo "configure:9295: checking if optind is properly declared" >&5
d7790 1
a7790 1
#line 9301 "configure"
d7798 1
a7798 1
if { (eval echo configure:9309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7812 6
d7822 2
a7823 2
	cat >> confdefs.h <<\EOF
#define HAVE_OPTIND_DECLARATION 1
a7828 1

d7830 1
a7830 1
echo "configure:9336: checking if opterr is properly declared" >&5
d7836 1
a7836 1
#line 9342 "configure"
d7844 1
a7844 1
if { (eval echo configure:9350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7858 6
d7868 2
a7869 2
	cat >> confdefs.h <<\EOF
#define HAVE_OPTERR_DECLARATION 1
a7874 1

d7876 1
a7876 1
echo "configure:9377: checking if optopt is properly declared" >&5
d7882 1
a7882 1
#line 9383 "configure"
d7890 1
a7890 1
if { (eval echo configure:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7904 6
d7914 2
a7915 44
	cat >> confdefs.h <<\EOF
#define HAVE_OPTOPT_DECLARATION 1
EOF

fi




echo $ac_n "checking if environ is properly declared""... $ac_c" 1>&6
echo "configure:9419: 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 9425 "configure"
#include "confdefs.h"
#include <stdlib.h>
extern struct { int foo; } environ;
int main() {
environ.foo = 1;
; return 0; }
EOF
if { (eval echo configure:9433: \"$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"
fi
rm -f conftest*

fi




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
a7920 1

d7922 1
a7922 1
echo "configure:9460: checking return type of signal handlers" >&5
d7927 1
a7927 1
#line 9465 "configure"
d7944 1
a7944 1
if { (eval echo configure:9482: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a7968 9



echo $ac_n "checking for ut_addr in struct utmp""... $ac_c" 1>&6
echo "configure:9511: 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
  
d7970 1
a7970 1
#line 9517 "configure"
d7972 1
a7972 5
#include <sys/types.h>
 #include <utmp.h>
int main() {
struct utmp x; x.ut_addr;
; return 0; }
d7974 2
a7975 1
if { (eval echo configure:9525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7977 2
a7978 15
  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
fi
rm -f conftest*
fi

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
a7980 1
	
d7982 1
a7983 9



echo $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6
echo "configure:9551: 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
  
d7985 1
a7985 1
#line 9557 "configure"
d7987 1
a7987 5
#include <sys/types.h>
 #include <utmp.h>
int main() {
struct utmp x; x.ut_host;
; return 0; }
d7989 2
a7990 1
if { (eval echo configure:9565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7992 2
a7993 15
  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*
fi

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
a7995 29
	
fi




echo $ac_n "checking for ut_id in struct utmp""... $ac_c" 1>&6
echo "configure:9591: 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 9597 "configure"
#include "confdefs.h"
#include <sys/types.h>
 #include <utmp.h>
int main() {
struct utmp x; x.ut_id;
; return 0; }
EOF
if { (eval echo configure:9605: \"$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
a7997 11
fi

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

	
fi
a7998 9



echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
echo "configure:9631: 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
  
d8000 1
a8000 1
#line 9637 "configure"
d8002 1
a8002 5
#include <sys/types.h>
 #include <utmp.h>
int main() {
struct utmp x; x.ut_pid;
; return 0; }
d8004 2
a8005 1
if { (eval echo configure:9645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8007 2
a8008 15
  ac_cv_type_struct_utmp_ut_pid=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_pid=no
fi
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
a8010 29
	
fi




echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
echo "configure:9671: 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
else
  
cat > conftest.$ac_ext <<EOF
#line 9677 "configure"
#include "confdefs.h"
#include <sys/types.h>
 #include <utmp.h>
int main() {
struct utmp x; x.ut_type;
; return 0; }
EOF
if { (eval echo configure:9685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_type=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_type_struct_utmp_ut_type=no
a8012 14
fi

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

	
fi



a8013 6
echo $ac_n "checking for ut_user in struct utmp""... $ac_c" 1>&6
echo "configure:9711: 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
  
d8015 1
a8015 1
#line 9717 "configure"
d8017 1
a8017 5
#include <sys/types.h>
 #include <utmp.h>
int main() {
struct utmp x; x.ut_user;
; return 0; }
d8019 2
a8020 1
if { (eval echo configure:9725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8022 2
a8023 15
  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

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
a8025 29
	
fi




echo $ac_n "checking for ut_exit in struct utmpx""... $ac_c" 1>&6
echo "configure:9751: 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 9757 "configure"
#include "confdefs.h"
#include <sys/types.h>
 #include <utmp.h>
int main() {
struct utmpx x; x.ut_exit;
; return 0; }
EOF
if { (eval echo configure:9765: \"$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
a8027 13
fi

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

	
fi


a8028 7

echo $ac_n "checking for ut_syslen in struct utmpx""... $ac_c" 1>&6
echo "configure:9791: 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
  
d8030 1
a8030 1
#line 9797 "configure"
d8032 1
a8032 5
#include <sys/types.h>
 #include <utmp.h>
int main() {
struct utmpx x; x.ut_syslen;
; return 0; }
d8034 2
a8035 1
if { (eval echo configure:9805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8037 4
a8040 6
  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
a8042 1
fi
d8044 10
a8053 5
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
a8055 1
	
d8057 1
a8058 9



echo $ac_n "checking for struct spwd""... $ac_c" 1>&6
echo "configure:9831: checking for struct spwd" >&5
if eval "test \"`echo '$''{'ac_cv_type_struct_spwd'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
d8060 1
a8060 1
#line 9837 "configure"
d8062 1
a8062 7
#include <pwd.h>
#ifdef HAVE_SHADOW_H
#include <shadow.h>
#endif
int main() {
struct spwd foo;
; return 0; }
d8064 2
a8065 6
if { (eval echo configure:9847: \"$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
a8066 9
  ac_cv_struct_spwd=no
fi
rm -f conftest*

fi

echo "$ac_t""$ac_cv_struct_spwd" 1>&6

if test "$ac_cv_struct_spwd" = "yes"; then
d8068 1
a8068 1
#define HAVE_STRUCT_SPWD 1
d8072 1
d8076 1
a8076 1
echo "configure:9871: checking for st_blksize in struct stat" >&5
d8081 1
a8081 1
#line 9876 "configure"
d8089 1
a8089 1
if { (eval echo configure:9884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8113 1
a8113 1
echo "configure:9908: checking for struct winsize" >&5
d8121 1
a8121 1
#line 9916 "configure"
a8138 1

d8142 1
a8142 1
#line 9938 "configure"
d8157 1
a8157 1
#line 9953 "configure"
d8175 1
a8175 1
echo "configure:9971: checking for pid_t" >&5
d8180 1
a8180 1
#line 9976 "configure"
d8189 1
a8189 1
  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
d8208 1
a8208 1
echo "configure:10004: checking for uid_t in sys/types.h" >&5
d8213 1
a8213 1
#line 10009 "configure"
d8242 1
a8242 1
echo "configure:10038: checking for off_t" >&5
d8247 1
a8247 1
#line 10043 "configure"
d8256 1
a8256 1
  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
d8275 1
a8275 1
echo "configure:10071: checking for size_t" >&5
d8280 1
a8280 1
#line 10076 "configure"
d8289 1
a8289 1
  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
a8307 13
echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
echo "configure:10105: 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
else
  cat > conftest.$ac_ext <<EOF
#line 10110 "configure"
#include "confdefs.h"
#include <sys/types.h>
#if STDC_HEADERS
#include <stdlib.h>
#include <stddef.h>
#endif
d8309 3
a8311 28
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
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
else
  rm -rf conftest*
  ac_cv_type_ssize_t=no
fi
rm -f conftest*

fi
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

fi



echo $ac_n "checking for broken sys/socket.h""... $ac_c" 1>&6
echo "configure:10144: checking for broken sys/socket.h" >&5
if eval "test \"`echo '$''{'krb_cv_header_sys_socket_h_broken'+set}'`\" = set"; then
d8316 1
a8316 1
#line 10150 "configure"
a8319 1
#include <sys/socket.h>
d8321 2
a8322 1

d8325 1
a8325 1
if { (eval echo configure:10159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8327 1
a8327 1
  krb_cv_header_sys_socket_h_broken=no
d8332 1
a8332 1
  krb_cv_header_sys_socket_h_broken=yes
a8334 5
fi

echo "$ac_t""$krb_cv_header_sys_socket_h_broken" 1>&6


a8335 27


echo $ac_n "checking for sa_len in struct sockaddr""... $ac_c" 1>&6
echo "configure:10178: 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 10184 "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:10192: \"$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*
d8338 2
a8339 3
echo "$ac_t""$ac_cv_type_struct_sockaddr_sa_len" 1>&6
if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then
	
d8341 1
a8341 1
#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
a8343 1
	
a8346 2


d8348 3
a8350 5


echo $ac_n "checking for ouid in SIAENTITY""... $ac_c" 1>&6
echo "configure:10221: checking for ouid in SIAENTITY" >&5
if eval "test \"`echo '$''{'ac_cv_type_siaentity_ouid'+set}'`\" = set"; then
d8355 1
a8355 1
#line 10227 "configure"
d8358 1
d8360 2
a8361 1
SIAENTITY x; x.ouid;
d8364 1
a8364 1
if { (eval echo configure:10234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8366 1
a8366 1
  ac_cv_type_siaentity_ouid=yes
d8371 1
a8371 1
  ac_cv_type_siaentity_ouid=no
d8374 1
d8377 2
a8378 3
echo "$ac_t""$ac_cv_type_siaentity_ouid" 1>&6
if test "$ac_cv_type_siaentity_ouid" = yes; then
	
d8380 1
a8380 1
#define HAVE_SIAENTITY_OUID 1
a8382 1
	
a8383 2


d8387 3
a8389 5
for ac_func in getmsg
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:10263: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
d8392 3
d8396 1
a8396 1
#line 10268 "configure"
a8397 7
/* 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();
d8399 1
a8399 1
int main() {
d8401 5
a8405 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
a8406 1
; return 0; }
d8408 3
a8410 3
if { (eval echo configure:10291: \"$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"
d8414 4
a8417 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d8419 1
a8419 1
rm -f conftest*
d8422 4
a8425 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
#define $ac_tr_func 1
a8426 5
 
else
  echo "$ac_t""no" 1>&6
fi
done
a8428 1
if test "$ac_cf_func_getmsg" = "yes"; then
d8430 5
a8434 3
echo $ac_n "checking for working getmsg""... $ac_c" 1>&6
echo "configure:10319: checking for working getmsg" >&5
if eval "test \"`echo '$''{'ac_cv_func_getmsg'+set}'`\" = set"; then
d8438 1
a8438 1
  ac_cv_func_getmsg=no
d8441 1
a8441 1
#line 10327 "configure"
d8444 3
a8446 2
#include <stdio.h>

d8449 7
a8455 2
  getmsg(open("/dev/null", 0), NULL, NULL, NULL);
  return 0;
a8456 1

d8458 1
a8458 1
if { (eval echo configure:10339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8460 1
a8460 1
  ac_cv_func_getmsg=yes
d8465 1
a8465 1
  ac_cv_func_getmsg=no
d8472 2
a8473 2
echo "$ac_t""$ac_cv_func_getmsg" 1>&6
test "$ac_cv_func_getmsg" = "yes" &&
d8475 1
a8475 1
#define HAVE_GETMSG 1
d8478 1
a8478 4

fi


d8484 1
a8484 1
echo "configure:10368: checking for el_init" >&5
d8494 1
a8494 2
		else
			ac_lib=""
a8495 1
		LIBS="$ac_lib $ac_save_LIBS"
d8497 1
a8497 1
#line 10383 "configure"
d8504 1
a8504 1
if { (eval echo configure:10390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8522 1
d8525 1
a8525 1
@@@@@@libs="$libs "" edit"@@@@@@
d8528 2
a8529 3
# 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`"
a8562 41
if test "$ac_cv_func_el_init" = yes ; then
	echo $ac_n "checking for four argument el_init""... $ac_c" 1>&6
echo "configure:10451: 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 10457 "configure"
#include "confdefs.h"
#include <stdio.h>
			#include <histedit.h>
int main() {
el_init("", NULL, NULL, NULL);
; return 0; }
EOF
if { (eval echo configure:10465: \"$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

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

	fi
fi


save_LIBS="$LIBS"
LIBS="$LIB_tgetent $LIBS"

d8566 1
a8566 1
echo "configure:10493: checking for readline" >&5
d8573 1
a8573 1
	for ac_lib in "" edit readline; do
d8576 1
a8576 2
		else
			ac_lib=""
a8577 1
		LIBS="$ac_lib $ac_save_LIBS"
d8579 1
a8579 1
#line 10508 "configure"
d8586 1
a8586 1
if { (eval echo configure:10515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8604 1
d8607 1
a8607 1
@@@@@@libs="$libs "" edit readline"@@@@@@
d8610 2
a8611 3
# readline
eval "ac_tr_func=HAVE_`echo readline | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
d8645 19
a8663 4
LIBS="$save_LIBS"
el_yes="# "
if test "$with_readline" -a "$with_readline" != "no"; then
	:
d8665 6
a8671 4
elif test "$ac_cv_func_el_init" = yes; then
	el_yes=
	LIB_readline="-L\$(top_builddir)/lib/editline -lel_compat $LIB_el_init"
	INCLUDE_readline='-I$(top_srcdir)/lib/editline'
d8673 1
a8673 5
	LIB_readline='-L$(top_builddir)/lib/editline -leditline'
	INCLUDE_readline='-I$(top_srcdir)/lib/editline'
fi
LIB_readline="$LIB_readline \$(LIB_tgetent)"
cat >> confdefs.h <<\EOF
d8677 5
d8711 1
a8711 1
echo "configure:10622: checking for streamspty" >&5
d8737 1
a8737 1
echo "configure:10648: checking if /bin/ls takes -A" >&5
d8750 1
a8750 1
echo "configure:10661: checking for suffix of preformatted manual pages" >&5
d8770 4
a8773 1
KRB_KAFS_LIB="-L\$(top_builddir)/lib/kafs -lkafs $AIX_EXTRA_KAFS"
d8783 1
a8783 1
	HAVE_SIAENTITY_OUID=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
d8791 1
a8791 1
#define $HAVE_SIAENTITY_OUID "$x"
d8819 1
a8819 1
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
d8886 1
a8886 1
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
d8902 3
a8907 1
lib/com_err/Makefile				\
a8917 1
lib/rxkad/Makefile				\
d8942 1
a8942 1
appl/popper/Makefile				\
a8943 1
appl/push/Makefile				\
a8958 1
s%@@SHELL@@%$SHELL%g
a8961 1
s%@@FFLAGS@@%$FFLAGS%g
a8986 1
s%@@CANONICAL_HOST@@%$CANONICAL_HOST%g
a8995 1
s%@@INSTALL_SCRIPT@@%$INSTALL_SCRIPT%g
a8996 1
s%@@AWK@@%$AWK%g
d8998 2
a8999 5
s%@@WFLAGS@@%$WFLAGS%g
s%@@WFLAGS_NOUNUSED@@%$WFLAGS_NOUNUSED%g
s%@@WFLAGS_NOIMPLICITINT@@%$WFLAGS_NOIMPLICITINT%g
s%@@INCLUDE_socks@@%$INCLUDE_socks%g
s%@@LIB_socks@@%$LIB_socks%g
d9001 2
a9002 13
s%@@LIB_otp@@%$LIB_otp%g
s%@@OTP_dir@@%$OTP_dir%g
s%@@LIB_security@@%$LIB_security%g
s%@@AFSWS@@%$AFSWS%g
s%@@LIB_SUBDIRS@@%$LIB_SUBDIRS%g
s%@@disable_cat_manpages@@%$disable_cat_manpages%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%@@LINK@@%$LINK%g
s%@@lib_deps_yes@@%$lib_deps_yes%g
s%@@lib_deps_no@@%$lib_deps_no%g
a9012 4
s%@@build_symlink_command@@%$build_symlink_command%g
s%@@install_symlink_command@@%$install_symlink_command%g
s%@@install_symlink_command2@@%$install_symlink_command2%g
s%@@LIB_dlopen@@%$LIB_dlopen%g
d9015 2
a9016 6
s%@@AFS_EXTRA_LD@@%$AFS_EXTRA_LD%g
s%@@AFS_EXTRA_DEFS@@%$AFS_EXTRA_DEFS%g
s%@@AIX_EXTRA_KAFS@@%$AIX_EXTRA_KAFS%g
s%@@EXTRA_HEADERS@@%$EXTRA_HEADERS%g
s%@@EXTRA_LOCL_HEADERS@@%$EXTRA_LOCL_HEADERS%g
s%@@LIB_crypt@@%$LIB_crypt%g
a9030 1
s%@@LIB_XauWriteAuth@@%$LIB_XauWriteAuth%g
d9032 4
a9035 3
s%@@LIB_XauFileName@@%$LIB_XauFileName%g
s%@@NEED_WRITEAUTH_TRUE@@%$NEED_WRITEAUTH_TRUE%g
s%@@NEED_WRITEAUTH_FALSE@@%$NEED_WRITEAUTH_FALSE%g
a9036 1
s%@@DBLIB@@%$DBLIB%g
a9047 1
s%@@krb_cv_header_sys_socket_h_broken@@%$krb_cv_header_sys_socket_h_broken%g
d9049 3
a9051 1
s%@@el_yes@@%$el_yes%g
d9100 3
a9105 1
lib/com_err/Makefile				\
a9115 1
lib/rxkad/Makefile				\
d9140 1
a9140 1
appl/popper/Makefile				\
a9141 1
appl/push/Makefile				\
d9326 1
d9328 4
a9331 4
cat > include/newversion.h.in <<FOOBAR
char *${PACKAGE}_long_version = "@@(#)\$Version: $PACKAGE-$VERSION by @@USER@@ on @@HOST@@ ($host) @@DATE@@ \$";
char *${PACKAGE}_version = "$PACKAGE-$VERSION";
FOOBAR
a9343 1

@


1.1.1.3
log
@Clean import of KTH Kerberos (eBones) v1.0.
@
text
@d3 1
a3 1
# From configure.in Revision: 1.432.2.2 
a109 11











d701 1
a701 1
VERSION=1.0
d738 1
a738 1
echo "configure:750: checking host system type" >&5
d782 1
a782 1
echo "configure:794: checking whether ${MAKE-make} sets \${MAKE}" >&5
d833 1
a833 1
echo "configure:845: checking for ln -s or something else" >&5
d858 1
a858 1
echo "configure:870: checking for $ac_word" >&5
d888 1
a888 1
echo "configure:900: checking for $ac_word" >&5
d939 1
a939 1
echo "configure:951: checking for $ac_word" >&5
d971 1
a971 1
echo "configure:983: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d982 1
a982 1
#line 994 "configure"
d987 1
a987 1
if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1013 1
a1013 1
echo "configure:1025: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1018 1
a1018 1
echo "configure:1030: checking whether we are using GNU C" >&5
d1027 1
a1027 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1046 1
a1046 1
echo "configure:1058: checking whether ${CC-cc} accepts -g" >&5
d1078 1
a1078 1
echo "configure:1090: checking how to run the C preprocessor" >&5
d1093 1
a1093 1
#line 1105 "configure"
d1099 1
a1099 1
{ (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1110 1
a1110 1
#line 1122 "configure"
d1116 1
a1116 1
{ (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1127 1
a1127 1
#line 1139 "configure"
d1133 1
a1133 1
{ (eval echo configure:1145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1158 1
a1158 1
echo "configure:1170: checking for POSIXized ISC" >&5
d1183 1
a1183 1
echo "configure:1195: checking for $ac_word" >&5
d1215 1
a1215 1
echo "configure:1227: checking for $ac_word" >&5
d1249 1
a1249 1
echo "configure:1261: checking for yywrap in -l$ac_lib" >&5
d1257 1
a1257 1
#line 1269 "configure"
d1268 1
a1268 1
if { (eval echo configure:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1293 1
a1293 1
echo "configure:1305: checking for $ac_word" >&5
d1332 1
a1332 1
echo "configure:1344: checking for a BSD compatible install" >&5
d1384 1
a1384 1
for ac_prog in mawk gawk nawk awk
d1389 1
a1389 1
echo "configure:1401: checking for $ac_word" >&5
d1421 1
a1421 1
echo "configure:1433: checking for $ac_word" >&5
d1483 1
a1483 1
echo "configure:1495: checking for socks" >&5
d1522 1
a1522 1
#line 1534 "configure"
d1529 1
a1529 1
if { (eval echo configure:1541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1541 1
a1541 1
#line 1553 "configure"
d1548 1
a1548 1
if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1888 1
a1888 1
echo "configure:1900: checking for readline" >&5
d1927 1
a1927 1
#line 1939 "configure"
d1937 1
a1937 1
if { (eval echo configure:1949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1949 1
a1949 1
#line 1961 "configure"
d1959 1
a1959 1
if { (eval echo configure:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2024 1
a2024 1
echo "configure:2036: checking if $CC supports the $abi option" >&5
d2032 1
a2032 1
#line 2044 "configure"
d2039 1
a2039 1
if { (eval echo configure:2051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2062 1
a2062 1
#line 2074 "configure"
d2069 1
a2069 1
if { (eval echo configure:2081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2143 1
a2143 1
echo "configure:2155: checking for hesiod" >&5
d2182 1
a2182 1
#line 2194 "configure"
d2189 1
a2189 1
if { (eval echo configure:2201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2201 1
a2201 1
#line 2213 "configure"
d2208 1
a2208 1
if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2300 1
a2300 1
*-*-freebsd[34]*)
d2302 1
d2373 1
a2373 1
echo "configure:2384: checking whether to use -rpath" >&5
d2410 1
a2410 1
echo "configure:2421: checking whether byte ordering is bigendian" >&5
d2417 1
a2417 1
#line 2428 "configure"
d2428 1
a2428 1
if { (eval echo configure:2439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2432 1
a2432 1
#line 2443 "configure"
d2443 1
a2443 1
if { (eval echo configure:2454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2463 1
a2463 1
#line 2474 "configure"
d2476 1
a2476 1
if { (eval echo configure:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2501 1
a2501 1
echo "configure:2512: checking for working const" >&5
d2506 1
a2506 1
#line 2517 "configure"
d2555 1
a2555 1
if { (eval echo configure:2566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2577 1
a2577 1
echo "configure:2588: checking for inline" >&5
d2584 1
a2584 1
#line 2595 "configure"
d2591 1
a2591 1
if { (eval echo configure:2602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2619 1
a2619 1
echo "configure:2630: checking for __attribute__" >&5
d2625 1
a2625 1
#line 2636 "configure"
d2642 1
a2642 1
if { (eval echo configure:2653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2666 1
a2666 1
echo "configure:2677: checking for NEXTSTEP" >&5
d2671 1
a2671 1
#line 2682 "configure"
d2698 1
a2698 1
echo "configure:2709: checking for AIX" >&5
d2703 1
a2703 1
#line 2714 "configure"
d2740 1
a2740 1
echo "configure:2751: checking for dlopen" >&5
d2753 1
a2753 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d2755 1
a2755 1
#line 2766 "configure"
d2762 1
a2762 1
if { (eval echo configure:2773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a2841 2
case "${host}" in
*-*-aix4.1*)
a2844 2
;;
esac
d2848 1
a2848 1
echo "configure:2863: checking for ANSI C header files" >&5
d2853 1
a2853 1
#line 2868 "configure"
d2861 1
a2861 1
{ (eval echo configure:2876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2878 1
a2878 1
#line 2893 "configure"
d2896 1
a2896 1
#line 2911 "configure"
d2917 1
a2917 1
#line 2932 "configure"
d2928 1
a2928 1
if { (eval echo configure:2943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2997 1
d3051 1
a3051 1
echo "configure:3065: checking for $ac_hdr" >&5
d3056 1
a3056 1
#line 3070 "configure"
d3061 1
a3061 1
{ (eval echo configure:3075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3089 1
a3089 1
echo "configure:3103: checking whether time.h and sys/time.h may both be included" >&5
d3094 1
a3094 1
#line 3108 "configure"
d3103 1
a3103 1
if { (eval echo configure:3117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3124 1
a3124 1
echo "configure:3138: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d3129 1
a3129 1
#line 3143 "configure"
d3141 1
a3141 1
if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3167 1
a3167 1
echo "configure:3181: checking for $ac_hdr" >&5
d3172 1
a3172 1
#line 3186 "configure"
d3177 1
a3177 1
{ (eval echo configure:3191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3208 1
a3208 1
echo "configure:3222: checking for $i" >&5
d3213 1
a3213 1
#line 3227 "configure"
d3223 1
a3223 1
{ (eval echo configure:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3267 1
a3267 1
echo "configure:3281: checking for $i" >&5
d3273 1
a3273 1
#line 3287 "configure"
a3275 3
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
d3294 1
a3294 1
if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3320 1
a3320 1
echo "configure:3337: checking for $i" >&5
d3326 1
a3326 1
#line 3343 "configure"
a3328 3
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
d3347 1
a3347 1
if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3372 1
a3372 1
echo "configure:3392: checking for strange sys/bitypes.h" >&5
d3378 1
a3378 1
#line 3398 "configure"
d3396 1
a3396 1
if { (eval echo configure:3416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3420 1
a3420 1
echo "configure:3440: checking for crypt" >&5
d3433 1
a3433 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3435 1
a3435 1
#line 3455 "configure"
d3442 1
a3442 1
if { (eval echo configure:3462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3507 1
a3507 1
echo "configure:3527: checking for socket" >&5
d3520 1
a3520 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3522 1
a3522 1
#line 3542 "configure"
d3534 1
a3534 1
if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3602 1
a3602 1
echo "configure:3622: checking for gethostbyname" >&5
d3615 1
a3615 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3617 1
a3617 1
#line 3637 "configure"
d3629 1
a3629 1
if { (eval echo configure:3649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3699 1
a3699 1
echo "configure:3719: checking for odm_initialize" >&5
d3712 1
a3712 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3714 1
a3714 1
#line 3734 "configure"
d3721 1
a3721 1
if { (eval echo configure:3741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3789 1
a3789 1
echo "configure:3809: checking for getattr" >&5
d3802 1
a3802 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3804 1
a3804 1
#line 3824 "configure"
d3811 1
a3811 1
if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3879 1
a3879 1
echo "configure:3899: checking for setpcred" >&5
d3892 1
a3892 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3894 1
a3894 1
#line 3914 "configure"
d3901 1
a3901 1
if { (eval echo configure:3921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3969 1
a3969 1
echo "configure:3989: checking for logwtmp" >&5
d3982 1
a3982 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d3984 1
a3984 1
#line 4004 "configure"
d3991 1
a3991 1
if { (eval echo configure:4011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4060 1
a4060 1
echo "configure:4080: checking for logout" >&5
d4073 1
a4073 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d4075 1
a4075 1
#line 4095 "configure"
d4082 1
a4082 1
if { (eval echo configure:4102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4149 1
a4149 1
echo "configure:4169: checking for tgetent" >&5
d4162 1
a4162 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d4164 1
a4164 1
#line 4184 "configure"
d4171 1
a4171 1
if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4236 1
a4236 1
echo "configure:4256: checking for X" >&5
d4298 1
a4298 1
#line 4318 "configure"
d4303 1
a4303 1
{ (eval echo configure:4323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4372 1
a4372 1
#line 4392 "configure"
d4379 1
a4379 1
if { (eval echo configure:4399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4486 1
a4486 1
echo "configure:4506: checking whether -R must be followed by a space" >&5
d4489 1
a4489 1
#line 4509 "configure"
d4496 1
a4496 1
if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4512 1
a4512 1
#line 4532 "configure"
d4519 1
a4519 1
if { (eval echo configure:4539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4551 1
a4551 1
echo "configure:4571: checking for dnet_ntoa in -ldnet" >&5
d4559 1
a4559 1
#line 4579 "configure"
d4570 1
a4570 1
if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4592 1
a4592 1
echo "configure:4612: checking for dnet_ntoa in -ldnet_stub" >&5
d4600 1
a4600 1
#line 4620 "configure"
d4611 1
a4611 1
if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4640 1
a4640 1
echo "configure:4660: checking for gethostbyname" >&5
d4645 1
a4645 1
#line 4665 "configure"
d4668 1
a4668 1
if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4689 1
a4689 1
echo "configure:4709: checking for gethostbyname in -lnsl" >&5
d4697 1
a4697 1
#line 4717 "configure"
d4708 1
a4708 1
if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4738 1
a4738 1
echo "configure:4758: checking for connect" >&5
d4743 1
a4743 1
#line 4763 "configure"
d4766 1
a4766 1
if { (eval echo configure:4786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4787 1
a4787 1
echo "configure:4807: checking for connect in -lsocket" >&5
d4795 1
a4795 1
#line 4815 "configure"
d4806 1
a4806 1
if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4830 1
a4830 1
echo "configure:4850: checking for remove" >&5
d4835 1
a4835 1
#line 4855 "configure"
d4858 1
a4858 1
if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4879 1
a4879 1
echo "configure:4899: checking for remove in -lposix" >&5
d4887 1
a4887 1
#line 4907 "configure"
d4898 1
a4898 1
if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4922 1
a4922 1
echo "configure:4942: checking for shmat" >&5
d4927 1
a4927 1
#line 4947 "configure"
d4950 1
a4950 1
if { (eval echo configure:4970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4971 1
a4971 1
echo "configure:4991: checking for shmat in -lipc" >&5
d4979 1
a4979 1
#line 4999 "configure"
d4990 1
a4990 1
if { (eval echo configure:5010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5023 1
a5023 1
echo "configure:5043: checking for IceConnectionNumber in -lICE" >&5
d5031 1
a5031 1
#line 5051 "configure"
d5042 1
a5042 1
if { (eval echo configure:5062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5071 1
a5071 1
echo "configure:5091: checking for special X linker flags" >&5
d5097 1
a5097 1
		LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
d5102 1
a5102 1
#line 5122 "configure"
d5116 1
a5116 1
if { (eval echo configure:5136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5159 1
a5159 1
echo "configure:5179: checking for XauWriteAuth" >&5
d5172 1
a5172 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d5174 1
a5174 1
#line 5194 "configure"
d5181 1
a5181 1
if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5246 1
a5246 1
echo "configure:5266: checking for XauReadAuth" >&5
d5259 1
a5259 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d5261 1
a5261 1
#line 5281 "configure"
d5268 1
a5268 1
if { (eval echo configure:5288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5332 1
a5332 1
echo "configure:5352: checking for XauFileName" >&5
d5345 1
a5345 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d5347 1
a5347 1
#line 5367 "configure"
d5354 1
a5354 1
if { (eval echo configure:5374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5477 1
a5477 1
echo "configure:5497: checking for dbm_open in $m" >&5
d5489 1
a5489 1
#line 5509 "configure"
d5515 1
a5515 1
if { (eval echo configure:5535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5550 1
a5550 1
echo "configure:5570: checking for NDBM library" >&5
d5591 1
a5591 1
echo "configure:5611: checking for syslog" >&5
d5604 1
a5604 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d5606 1
a5606 1
#line 5626 "configure"
d5613 1
a5613 1
if { (eval echo configure:5633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5679 1
a5679 1
echo "configure:5699: checking for working snprintf" >&5
d5688 1
a5688 1
#line 5708 "configure"
d5700 1
a5700 1
if { (eval echo configure:5720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5726 1
a5726 1
echo "configure:5746: checking if snprintf needs a prototype" >&5
d5731 1
a5731 1
#line 5751 "configure"
d5741 1
a5741 1
if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5768 1
a5768 1
echo "configure:5788: checking for working glob" >&5
d5774 1
a5774 1
#line 5794 "configure"
d5785 1
a5785 1
if { (eval echo configure:5805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5809 1
a5809 1
echo "configure:5829: checking if glob needs a prototype" >&5
d5814 1
a5814 1
#line 5834 "configure"
d5825 1
a5825 1
if { (eval echo configure:5845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5856 1
a5856 54
for ac_func in 				\
	_getpty					\
	_scrsize				\
	_setsid					\
	_stricmp				\
	asnprintf				\
	asprintf				\
	atexit					\
	cgetent					\
	chroot					\
	fattach					\
	fchmod					\
	fcntl					\
	forkpty					\
	frevoke					\
	getpriority				\
	getrlimit				\
	getservbyname				\
	getspnam				\
	gettimeofday				\
	gettosbyname				\
	getuid					\
	grantpt					\
	mktime					\
	on_exit					\
	parsetos				\
	ptsname					\
	rand					\
	random					\
	revoke					\
	setitimer				\
	setpgid					\
	setpriority				\
	setproctitle				\
	setregid				\
	setresgid				\
	setresuid				\
	setreuid				\
	setsid					\
	setutent				\
	sigaction				\
	sysconf					\
	sysctl					\
	ttyname					\
	ttyslot					\
	ulimit					\
	uname					\
	unlockpt				\
	vasnprintf				\
	vasprintf				\
	vhangup					\
	vsnprintf				\
	yp_get_default_domain			\
	
d5859 1
a5859 1
echo "configure:5932: checking for $ac_func" >&5
d5864 1
a5864 1
#line 5937 "configure"
d5887 1
a5887 1
if { (eval echo configure:5960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5912 1
a5912 3


for ac_hdr in capability.h sys/capability.h
d5914 3
a5916 4
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:5991: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
d5920 1
a5920 1
#line 5996 "configure"
d5922 20
a5941 1
#include <$ac_hdr>
d5943 1
a5943 4
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:6001: \"$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
d5945 1
a5945 1
  eval "ac_cv_header_$ac_safe=yes"
a5946 1
  echo "$ac_err" >&5
d5950 1
a5950 1
  eval "ac_cv_header_$ac_safe=no"
d5954 2
a5955 1
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
d5957 1
a5957 1
    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
d5959 1
a5959 1
#define $ac_tr_hdr 1
d5967 1
a5967 2

for ac_func in sgi_getcapabilitybyname cap_set_proc
d5970 1
a5970 1
echo "configure:6031: checking for $ac_func" >&5
d5975 1
a5975 1
#line 6036 "configure"
d5998 1
a5998 1
if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6022 5
a6026 9






echo $ac_n "checking for getpwnam_r""... $ac_c" 1>&6
echo "configure:6090: checking for getpwnam_r" >&5
if eval "test \"`echo '$''{'ac_cv_funclib_getpwnam_r'+set}'`\" = set"; then
d6029 2
a6030 12
  
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 <<EOF
#line 6105 "configure"
d6032 7
d6041 10
a6050 1
getpwnam_r()
d6053 1
a6053 1
if { (eval echo configure:6112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6055 1
a6055 1
  eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break
d6059 2
a6062 3
	done
	eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}"
	LIBS="$ac_save_LIBS"
d6065 9
d6075 1
d6077 17
d6095 1
a6095 1
eval "ac_res=\$ac_cv_funclib_getpwnam_r"
d6097 8
a6104 4
: << END
@@@@@@funcs="$funcs getpwnam_r"@@@@@@
@@@@@@libs="$libs "" c_r"@@@@@@
END
d6106 1
a6106 11
# 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
d6108 11
d6120 4
a6123 11
	echo "$ac_t""yes" 1>&6
	;;
	no)
	eval "ac_cv_func_getpwnam_r=no"
	eval "LIB_getpwnam_r="
	echo "$ac_t""no" 1>&6
	;;
	*)
	eval "ac_cv_func_getpwnam_r=yes"
	eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes"
	cat >> confdefs.h <<EOF
d6126 5
d6132 5
a6136 13
	cat >> confdefs.h <<EOF
#define $ac_tr_lib 1
EOF

	echo "$ac_t""yes, in $ac_res" 1>&6
	;;
esac


if test "$ac_cv_func_getpwnam_r" = yes; then
	echo $ac_n "checking if getpwnam_r is posix""... $ac_c" 1>&6
echo "configure:6173: checking if getpwnam_r is posix" >&5
if eval "test \"`echo '$''{'ac_cv_func_getpwnam_r_posix'+set}'`\" = set"; then
a6138 5
  ac_libs="$LIBS"
	LIBS="$LIBS $LIB_getpwnam_r"
	if test "$cross_compiling" = yes; then
  :
else
d6140 1
a6140 1
#line 6183 "configure"
d6142 7
d6150 10
a6159 6
#include <pwd.h>
int main()
{
	struct passwd pw, *pwd;
	return getpwnam_r("", &pw, NULL, 0, &pwd) < 0;
}
d6161 1
d6163 3
a6165 3
if { (eval echo configure:6194: \"$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
d6169 2
a6170 2
  rm -fr conftest*
  ac_cv_func_getpwnam_r_posix=no
d6172 1
a6172 1
rm -fr conftest*
d6175 355
a6529 1
LIBS="$ac_libs"
d6546 1
a6546 1
echo "configure:6223: checking for getsockopt" >&5
d6559 1
a6559 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d6561 1
a6561 1
#line 6238 "configure"
d6573 1
a6573 1
if { (eval echo configure:6250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6636 1
a6636 1
echo "configure:6313: checking for setsockopt" >&5
d6649 1
a6649 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d6651 1
a6651 1
#line 6328 "configure"
d6663 1
a6663 1
if { (eval echo configure:6340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6726 1
a6726 1
echo "configure:6403: checking for $ac_func" >&5
d6731 1
a6731 1
#line 6408 "configure"
d6754 1
a6754 1
if { (eval echo configure:6431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6784 1
a6784 1
echo "configure:6461: checking for res_search" >&5
d6797 1
a6797 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d6799 1
a6799 1
#line 6476 "configure"
d6820 1
a6820 1
if { (eval echo configure:6497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6889 1
a6889 1
echo "configure:6566: checking for dn_expand" >&5
d6902 1
a6902 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d6904 1
a6904 1
#line 6581 "configure"
d6925 1
a6925 1
if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6994 1
a6994 1
echo "configure:6671: checking for $ac_hdr" >&5
d6999 1
a6999 1
#line 6676 "configure"
d7004 1
a7004 1
{ (eval echo configure:6681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d7033 1
a7033 1
echo "configure:6710: checking for $ac_func" >&5
d7038 1
a7038 1
#line 6715 "configure"
d7061 1
a7061 1
if { (eval echo configure:6738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7086 1
a7086 1
echo "configure:6763: checking for working mmap" >&5
d7094 1
a7094 1
#line 6771 "configure"
d7234 1
a7234 1
if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d7259 1
a7259 1
echo "configure:6936: checking for working alloca.h" >&5
d7264 1
a7264 1
#line 6941 "configure"
d7271 1
a7271 1
if { (eval echo configure:6948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7292 1
a7292 1
echo "configure:6969: checking for alloca" >&5
d7297 1
a7297 1
#line 6974 "configure"
d7325 1
a7325 1
if { (eval echo configure:7002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7357 1
a7357 1
echo "configure:7034: checking whether alloca needs Cray hooks" >&5
d7362 1
a7362 1
#line 7039 "configure"
d7387 1
a7387 1
echo "configure:7064: checking for $ac_func" >&5
d7392 1
a7392 1
#line 7069 "configure"
d7415 1
a7415 1
if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7442 1
a7442 1
echo "configure:7119: checking stack direction for C alloca" >&5
d7450 1
a7450 1
#line 7127 "configure"
d7469 3
a7471 57
if { (eval echo configure:7146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
  ac_cv_c_stack_direction=1
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -fr conftest*
  ac_cv_c_stack_direction=-1
fi
rm -fr conftest*
fi

fi

echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
cat >> confdefs.h <<EOF
#define STACK_DIRECTION $ac_cv_c_stack_direction
EOF

fi



for ac_func in getlogin setlogin
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7172: 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 7177 "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:7200: \"$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"
d7475 4
a7478 2
  rm -rf conftest*
  eval "ac_cv_func_$ac_func=no"
d7480 1
a7480 1
rm -f conftest*
d7483 3
a7485 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
#define $ac_tr_func 1
d7487 1
a7487 3
 
else
  echo "$ac_t""no" 1>&6
d7489 5
a7493 1
done
d7497 1
a7497 1
echo "configure:7226: checking if getlogin is posix" >&5
a7522 1

d7524 1
a7524 1
echo "configure:7254: checking for hstrerror" >&5
d7537 1
a7537 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d7539 1
a7539 1
#line 7269 "configure"
d7548 1
a7548 1
if { (eval echo configure:7278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7619 1
a7619 1
echo "configure:7349: checking if hstrerror needs a prototype" >&5
d7624 1
a7624 1
#line 7354 "configure"
d7631 3
a7633 242
struct foo { int foo; } xx;
extern int hstrerror (struct foo*);
hstrerror(&xx);

; return 0; }
EOF
if { (eval echo configure:7367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  eval "ac_cv_func_hstrerror_noproto=yes"
else
  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

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

for ac_func in chown copyhostent daemon err errx fchown flock fnmatch freehostent
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7395: 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 7400 "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:7423: \"$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

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
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

: << END
@@@@@@funcs="$funcs chown copyhostent daemon err errx fchown flock fnmatch freehostent"@@@@@@
END
done

for ac_func in getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7456: 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 7461 "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:7484: \"$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

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
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

: << END
@@@@@@funcs="$funcs getcwd getdtablesize gethostname getipnodebyaddr getipnodebyname"@@@@@@
END
done

for ac_func in geteuid getgid getegid
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7517: 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 7522 "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:7545: \"$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

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
LIBOBJS="$LIBOBJS ${ac_func}.o"
fi

: << END
@@@@@@funcs="$funcs geteuid getgid getegid"@@@@@@
END
done

for ac_func in getopt getusershell
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:7578: 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 7583 "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
d7637 1
a7637 1
if { (eval echo configure:7606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7639 1
a7639 1
  eval "ac_cv_func_$ac_func=yes"
d7644 1
a7644 1
  eval "ac_cv_func_$ac_func=no"
d7649 5
a7653 6
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
a7655 3
else
  echo "$ac_t""no" 1>&6
LIBOBJS="$LIBOBJS ${ac_func}.o"
d7658 3
a7660 4
: << END
@@@@@@funcs="$funcs getopt getusershell"@@@@@@
END
done
d7662 1
a7662 1
for ac_func in inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat
d7665 1
a7665 1
echo "configure:7639: checking for $ac_func" >&5
d7670 1
a7670 1
#line 7644 "configure"
d7693 1
a7693 1
if { (eval echo configure:7667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7719 1
a7719 1
@@@@@@funcs="$funcs inet_aton inet_ntop inet_pton initgroups innetgr iruserok lstat"@@@@@@
d7723 1
a7723 1
for ac_func in memmove
d7726 1
a7726 1
echo "configure:7700: checking for $ac_func" >&5
d7731 1
a7731 1
#line 7705 "configure"
d7754 1
a7754 1
if { (eval echo configure:7728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7780 1
a7780 1
@@@@@@funcs="$funcs memmove"@@@@@@
d7784 1
a7784 1
for ac_func in mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid
d7787 1
a7787 1
echo "configure:7761: checking for $ac_func" >&5
d7792 1
a7792 1
#line 7766 "configure"
d7815 1
a7815 1
if { (eval echo configure:7789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7841 1
a7841 1
@@@@@@funcs="$funcs mkstemp putenv rcmd readv recvmsg sendmsg setegid setenv seteuid"@@@@@@
d7845 1
a7845 1
for ac_func in strcasecmp strncasecmp strdup strerror strftime
d7848 1
a7848 1
echo "configure:7822: checking for $ac_func" >&5
d7853 1
a7853 1
#line 7827 "configure"
d7876 1
a7876 1
if { (eval echo configure:7850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7902 1
a7902 1
@@@@@@funcs="$funcs strcasecmp strncasecmp strdup strerror strftime"@@@@@@
d7906 1
a7906 1
for ac_func in strlcat strlcpy strlwr
d7909 1
a7909 1
echo "configure:7883: checking for $ac_func" >&5
d7914 1
a7914 1
#line 7888 "configure"
d7937 1
a7937 1
if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7963 1
a7963 1
@@@@@@funcs="$funcs strlcat strlcpy strlwr"@@@@@@
d7967 1
a7967 1
for ac_func in strndup strnlen strptime strsep strtok_r strupr
d7970 1
a7970 1
echo "configure:7944: checking for $ac_func" >&5
d7975 1
a7975 1
#line 7949 "configure"
d7998 1
a7998 1
if { (eval echo configure:7972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8024 1
a8024 1
@@@@@@funcs="$funcs strndup strnlen strptime strsep strtok_r strupr"@@@@@@
d8031 1
a8031 1
echo "configure:8005: checking for $ac_func" >&5
d8036 1
a8036 1
#line 8010 "configure"
d8059 1
a8059 1
if { (eval echo configure:8033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8092 1
a8092 1
echo "configure:8066: checking for $ac_func" >&5
d8097 1
a8097 1
#line 8071 "configure"
d8120 1
a8120 1
if { (eval echo configure:8094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8155 1
a8155 1
echo "configure:8129: checking if gethostname needs a prototype" >&5
d8160 1
a8160 1
#line 8134 "configure"
d8171 1
a8171 1
if { (eval echo configure:8145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8200 1
a8200 1
echo "configure:8174: checking if mkstemp needs a prototype" >&5
d8205 1
a8205 1
#line 8179 "configure"
d8216 1
a8216 1
if { (eval echo configure:8190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8245 1
a8245 1
echo "configure:8219: checking if inet_aton needs a prototype" >&5
d8250 1
a8250 1
#line 8224 "configure"
d8272 1
a8272 1
if { (eval echo configure:8246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8298 1
a8298 1
echo "configure:8272: checking if realloc is broken" >&5
d8308 1
a8308 1
#line 8282 "configure"
d8320 1
a8320 1
if { (eval echo configure:8294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8346 1
a8346 1
echo "configure:8320: checking if getcwd is broken" >&5
d8357 1
a8357 1
#line 8331 "configure"
d8379 1
a8379 1
if { (eval echo configure:8353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8408 1
a8408 1
echo "configure:8382: checking which authentication modules should be built" >&5
d8429 1
a8429 1
echo "configure:8403: checking for tunnel devices" >&5
d8443 1
a8443 1
echo "configure:8417: checking if gethostbyname is compatible with system prototype" >&5
d8448 1
a8448 1
#line 8422 "configure"
d8471 1
a8471 1
if { (eval echo configure:8445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8496 1
a8496 1
echo "configure:8470: checking if gethostbyaddr is compatible with system prototype" >&5
d8501 1
a8501 1
#line 8475 "configure"
d8524 1
a8524 1
if { (eval echo configure:8498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8549 1
a8549 1
echo "configure:8523: checking if getservbyname is compatible with system prototype" >&5
d8554 1
a8554 1
#line 8528 "configure"
d8577 1
a8577 1
if { (eval echo configure:8551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8602 1
a8602 1
echo "configure:8576: checking if openlog is compatible with system prototype" >&5
d8607 1
a8607 1
#line 8581 "configure"
d8618 1
a8618 1
if { (eval echo configure:8592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8644 1
a8644 1
echo "configure:8618: checking if crypt needs a prototype" >&5
d8649 1
a8649 1
#line 8623 "configure"
d8666 1
a8666 1
if { (eval echo configure:8640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8693 1
a8693 1
echo "configure:8667: checking if fclose needs a prototype" >&5
d8698 1
a8698 1
#line 8672 "configure"
d8710 1
a8710 1
if { (eval echo configure:8684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8737 1
a8737 1
echo "configure:8711: checking if strtok_r needs a prototype" >&5
d8742 1
a8742 1
#line 8716 "configure"
d8754 1
a8754 1
if { (eval echo configure:8728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8781 1
a8781 1
echo "configure:8755: checking if strsep needs a prototype" >&5
d8786 1
a8786 1
#line 8760 "configure"
d8798 1
a8798 1
if { (eval echo configure:8772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8825 1
a8825 1
echo "configure:8799: checking if getusershell needs a prototype" >&5
d8830 1
a8830 1
#line 8804 "configure"
d8842 1
a8842 1
if { (eval echo configure:8816: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8869 1
a8869 1
echo "configure:8843: checking if utime needs a prototype" >&5
d8874 1
a8874 1
#line 8848 "configure"
d8888 1
a8888 1
if { (eval echo configure:8862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8914 1
a8914 1
echo "configure:8888: checking for h_errno" >&5
d8920 1
a8920 1
#line 8894 "configure"
d8928 1
a8928 1
if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8951 1
a8951 1
echo "configure:8925: checking if h_errno is properly declared" >&5
d8957 1
a8957 1
#line 8931 "configure"
d8970 1
a8970 1
if { (eval echo configure:8944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9001 1
a9001 1
echo "configure:8975: checking for h_errlist" >&5
d9007 1
a9007 1
#line 8981 "configure"
d9015 1
a9015 1
if { (eval echo configure:8989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9038 1
a9038 1
echo "configure:9012: checking if h_errlist is properly declared" >&5
d9044 1
a9044 1
#line 9018 "configure"
d9054 1
a9054 1
if { (eval echo configure:9028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9085 1
a9085 1
echo "configure:9059: checking for h_nerr" >&5
d9091 1
a9091 1
#line 9065 "configure"
d9099 1
a9099 1
if { (eval echo configure:9073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9122 1
a9122 1
echo "configure:9096: checking if h_nerr is properly declared" >&5
d9128 1
a9128 1
#line 9102 "configure"
d9138 1
a9138 1
if { (eval echo configure:9112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9169 1
a9169 1
echo "configure:9143: checking for __progname" >&5
d9175 1
a9175 1
#line 9149 "configure"
d9183 1
a9183 1
if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9206 1
a9206 1
echo "configure:9180: checking if __progname is properly declared" >&5
d9212 1
a9212 1
#line 9186 "configure"
d9222 1
a9222 1
if { (eval echo configure:9196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9253 1
a9253 1
echo "configure:9227: checking if optarg is properly declared" >&5
d9259 1
a9259 1
#line 9233 "configure"
a9261 3
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
d9267 1
a9267 1
if { (eval echo configure:9244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9294 1
a9294 1
echo "configure:9271: checking if optind is properly declared" >&5
d9300 1
a9300 1
#line 9277 "configure"
a9302 3
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
d9308 1
a9308 1
if { (eval echo configure:9288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9335 1
a9335 1
echo "configure:9315: checking if opterr is properly declared" >&5
d9341 1
a9341 1
#line 9321 "configure"
a9343 3
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
d9349 1
a9349 1
if { (eval echo configure:9332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9376 1
a9376 1
echo "configure:9359: checking if optopt is properly declared" >&5
d9382 1
a9382 1
#line 9365 "configure"
a9384 3
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
d9390 1
a9390 1
if { (eval echo configure:9376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9418 1
a9418 1
echo "configure:9404: checking if environ is properly declared" >&5
d9424 1
a9424 1
#line 9410 "configure"
d9432 1
a9432 1
if { (eval echo configure:9418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9459 1
a9459 1
echo "configure:9445: checking return type of signal handlers" >&5
d9464 1
a9464 1
#line 9450 "configure"
d9481 1
a9481 1
if { (eval echo configure:9467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9510 1
a9510 1
echo "configure:9496: checking for ut_addr in struct utmp" >&5
d9516 1
a9516 1
#line 9502 "configure"
d9524 1
a9524 1
if { (eval echo configure:9510: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9550 1
a9550 1
echo "configure:9536: checking for ut_host in struct utmp" >&5
d9556 1
a9556 1
#line 9542 "configure"
d9564 1
a9564 1
if { (eval echo configure:9550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9590 1
a9590 1
echo "configure:9576: checking for ut_id in struct utmp" >&5
d9596 1
a9596 1
#line 9582 "configure"
d9604 1
a9604 1
if { (eval echo configure:9590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9630 1
a9630 1
echo "configure:9616: checking for ut_pid in struct utmp" >&5
d9636 1
a9636 1
#line 9622 "configure"
d9644 1
a9644 1
if { (eval echo configure:9630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9670 1
a9670 1
echo "configure:9656: checking for ut_type in struct utmp" >&5
d9676 1
a9676 1
#line 9662 "configure"
d9684 1
a9684 1
if { (eval echo configure:9670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9710 1
a9710 1
echo "configure:9696: checking for ut_user in struct utmp" >&5
d9716 1
a9716 1
#line 9702 "configure"
d9724 1
a9724 1
if { (eval echo configure:9710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9750 1
a9750 1
echo "configure:9736: checking for ut_exit in struct utmpx" >&5
d9756 1
a9756 1
#line 9742 "configure"
d9764 1
a9764 1
if { (eval echo configure:9750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9790 1
a9790 1
echo "configure:9776: checking for ut_syslen in struct utmpx" >&5
d9796 1
a9796 1
#line 9782 "configure"
d9804 1
a9804 1
if { (eval echo configure:9790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a9828 255


echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
echo "configure:9818: 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 9824 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
struct tm x; x.tm_gmtoff;
; return 0; }
EOF
if { (eval echo configure:9831: \"$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

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

	
fi




echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
echo "configure:9857: 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 9863 "configure"
#include "confdefs.h"
#include <time.h>
int main() {
struct tm x; x.tm_zone;
; return 0; }
EOF
if { (eval echo configure:9870: \"$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

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

	
fi





echo $ac_n "checking for timezone""... $ac_c" 1>&6
echo "configure:9897: 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 9903 "configure"
#include "confdefs.h"
extern int timezone;
int foo() { return timezone; }
int main() {
foo()
; return 0; }
EOF
if { (eval echo configure:9911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  rm -rf conftest*
  ac_cv_var_timezone=yes
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  ac_cv_var_timezone=no
fi
rm -f conftest*

fi



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

	
echo $ac_n "checking if timezone is properly declared""... $ac_c" 1>&6
echo "configure:9934: 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 9940 "configure"
#include "confdefs.h"
#include <time.h>
extern struct { int foo; } timezone;
int main() {
timezone.foo = 1;
; return 0; }
EOF
if { (eval echo configure:9948: \"$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*

fi




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

fi


fi




cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6
echo "configure:9980: 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 9985 "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:9997: \"$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____%'`

: << END
@@@@@@funcs="$funcs sa_family_t"@@@@@@
END

  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi



cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for struct sockaddr_storage""... $ac_c" 1>&6
echo "configure:10026: 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 10031 "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:10043: \"$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____%'`

: << END
@@@@@@funcs="$funcs struct_sockaddr_storage"@@@@@@
END

  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi



d9830 2
a9831 2
echo "configure:10071: checking for struct spwd" >&5
if eval "test \"`echo '$''{'ac_cv_struct_spwd'+set}'`\" = set"; then
d9836 1
a9836 1
#line 10077 "configure"
d9846 1
a9846 1
if { (eval echo configure:10087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9870 1
a9870 1
echo "configure:10111: checking for st_blksize in struct stat" >&5
d9875 1
a9875 1
#line 10116 "configure"
d9883 1
a9883 1
if { (eval echo configure:10124: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9907 1
a9907 1
echo "configure:10148: checking for struct winsize" >&5
d9915 1
a9915 1
#line 10156 "configure"
d9937 1
a9937 1
#line 10178 "configure"
d9952 1
a9952 1
#line 10193 "configure"
d9970 1
a9970 1
echo "configure:10211: checking for pid_t" >&5
d9975 1
a9975 1
#line 10216 "configure"
d10003 1
a10003 1
echo "configure:10244: checking for uid_t in sys/types.h" >&5
d10008 1
a10008 1
#line 10249 "configure"
d10037 1
a10037 1
echo "configure:10278: checking for off_t" >&5
d10042 1
a10042 1
#line 10283 "configure"
d10070 1
a10070 1
echo "configure:10311: checking for size_t" >&5
d10075 1
a10075 1
#line 10316 "configure"
d10104 1
a10104 1
echo "configure:10345: checking for ssize_t" >&5
d10109 1
a10109 1
#line 10350 "configure"
d10143 1
a10143 1
echo "configure:10384: checking for broken sys/socket.h" >&5
d10149 1
a10149 1
#line 10390 "configure"
d10158 1
a10158 1
if { (eval echo configure:10399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a10173 35
echo $ac_n "checking for broken netdb.h""... $ac_c" 1>&6
echo "configure:10416: checking for broken netdb.h" >&5
if eval "test \"`echo '$''{'krb_cv_header_netdb_h_broken'+set}'`\" = set"; then
  echo $ac_n "(cached) $ac_c" 1>&6
else
  
cat > conftest.$ac_ext <<EOF
#line 10422 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <netdb.h>
#include <netdb.h>
int main() {

; return 0; }
EOF
if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  rm -rf conftest*
  krb_cv_header_netdb_h_broken=no
else
  echo "configure: failed program was:" >&5
  cat conftest.$ac_ext >&5
  rm -rf conftest*
  krb_cv_header_netdb_h_broken=yes
fi
rm -f conftest*
fi

echo "$ac_t""$krb_cv_header_netdb_h_broken" 1>&6

if test "$krb_cv_header_netdb_h_broken" = "yes"; then
  EXTRA_HEADERS="$EXTRA_HEADERS netdb.h"
fi


d10177 1
a10177 1
echo "configure:10453: checking for sa_len in struct sockaddr" >&5
d10183 1
a10183 1
#line 10459 "configure"
d10191 1
a10191 1
if { (eval echo configure:10467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10220 1
a10220 1
echo "configure:10496: checking for ouid in SIAENTITY" >&5
d10226 1
a10226 1
#line 10502 "configure"
d10233 1
a10233 1
if { (eval echo configure:10509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10262 1
a10262 1
echo "configure:10538: checking for $ac_func" >&5
d10267 1
a10267 1
#line 10543 "configure"
d10290 1
a10290 1
if { (eval echo configure:10566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10318 1
a10318 1
echo "configure:10594: checking for working getmsg" >&5
d10326 1
a10326 1
#line 10602 "configure"
d10338 1
a10338 1
if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d10367 1
a10367 1
echo "configure:10643: checking for el_init" >&5
d10380 1
a10380 1
		LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS"
d10382 1
a10382 1
#line 10658 "configure"
d10389 1
a10389 1
if { (eval echo configure:10665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10450 1
a10450 1
echo "configure:10726: checking for four argument el_init" >&5
d10456 1
a10456 1
#line 10732 "configure"
d10464 1
a10464 1
if { (eval echo configure:10740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10492 1
a10492 1
echo "configure:10768: checking for readline" >&5
d10505 1
a10505 1
		LIBS=" $ac_lib  $ac_save_LIBS"
d10507 1
a10507 1
#line 10783 "configure"
d10514 1
a10514 1
if { (eval echo configure:10790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10621 1
a10621 1
echo "configure:10897: checking for streamspty" >&5
d10647 1
a10647 1
echo "configure:10923: checking if /bin/ls takes -A" >&5
d10660 1
a10660 1
echo "configure:10936: checking for suffix of preformatted manual pages" >&5
d10690 1
a10690 1
	foo=`echo $i | tr 'xindiscernible' 'XINDISCERNIBLE'`
d10698 1
a10698 1
#define $foo "$x"
a10856 1
etc/inetd.conf.changes				\
a10983 1
s%@@krb_cv_header_netdb_h_broken@@%$krb_cv_header_netdb_h_broken%g
a11081 1
etc/inetd.conf.changes				\
@


1.1.1.3.2.1
log
@MFC: Bring KerberosIV up to the latest-and-greatest bugfix level.
@
text
@d3 1
a3 1
# From configure.in Revision: 1.432.2.14 
d712 1
a712 1
VERSION=1.0.5
a780 3
*-*-solaris2.8)
	sunos=58
	;;
d793 1
a793 1
echo "configure:797: checking whether ${MAKE-make} sets \${MAKE}" >&5
d844 1
a844 1
echo "configure:848: checking for ln -s or something else" >&5
d869 1
a869 1
echo "configure:873: checking for $ac_word" >&5
d899 1
a899 1
echo "configure:903: checking for $ac_word" >&5
d950 1
a950 1
echo "configure:954: checking for $ac_word" >&5
d982 1
a982 1
echo "configure:986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d993 1
a993 1
#line 997 "configure"
d998 1
a998 1
if { (eval echo configure:1002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1024 1
a1024 1
echo "configure:1028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1029 1
a1029 1
echo "configure:1033: checking whether we are using GNU C" >&5
d1038 1
a1038 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1057 1
a1057 1
echo "configure:1061: checking whether ${CC-cc} accepts -g" >&5
d1089 1
a1089 1
echo "configure:1093: checking how to run the C preprocessor" >&5
d1104 1
a1104 1
#line 1108 "configure"
d1110 1
a1110 1
{ (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1121 1
a1121 1
#line 1125 "configure"
d1127 1
a1127 1
{ (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1138 1
a1138 1
#line 1142 "configure"
d1144 1
a1144 1
{ (eval echo configure:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1169 1
a1169 1
echo "configure:1173: checking for POSIXized ISC" >&5
d1194 1
a1194 1
echo "configure:1198: checking for $ac_word" >&5
d1226 1
a1226 1
echo "configure:1230: checking for $ac_word" >&5
d1260 1
a1260 1
echo "configure:1264: checking for yywrap in -l$ac_lib" >&5
d1268 1
a1268 1
#line 1272 "configure"
d1279 1
a1279 1
if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1304 1
a1304 1
echo "configure:1308: checking for $ac_word" >&5
d1343 1
a1343 1
echo "configure:1347: checking for a BSD compatible install" >&5
d1400 1
a1400 1
echo "configure:1404: checking for $ac_word" >&5
d1432 1
a1432 1
echo "configure:1436: checking for $ac_word" >&5
d1494 1
a1494 1
echo "configure:1498: checking for socks" >&5
d1533 1
a1533 1
#line 1537 "configure"
d1540 1
a1540 1
if { (eval echo configure:1544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1552 1
a1552 1
#line 1556 "configure"
d1559 1
a1559 1
if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1846 4
d1899 1
a1899 1
echo "configure:1899: checking for readline" >&5
d1938 1
a1938 1
#line 1938 "configure"
d1948 1
a1948 1
if { (eval echo configure:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1960 1
a1960 1
#line 1960 "configure"
d1970 1
a1970 1
if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2035 1
a2035 1
echo "configure:2035: checking if $CC supports the $abi option" >&5
d2043 1
a2043 1
#line 2043 "configure"
d2050 1
a2050 1
if { (eval echo configure:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2073 1
a2073 1
#line 2073 "configure"
d2080 1
a2080 1
if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2154 1
a2154 1
echo "configure:2154: checking for hesiod" >&5
d2193 1
a2193 1
#line 2193 "configure"
d2200 1
a2200 1
if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2212 1
a2212 1
#line 2212 "configure"
d2219 1
a2219 1
if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2311 1
a2311 1
*-*-freebsd[345]* | *-*-freebsdelf[345]*)
a2328 5
	LDSHARED='$(CC) -shared -Wl,-h$(LIBNAME).so.'"${SHLIB_SONAME}"
	REAL_SHLIBEXT=so.$SHLIB_VERSION
	build_symlink_command='$(LN_S) $@@ $(LIBNAME).so'
	install_symlink_command='$(LN_S) $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so.'"${SHLIB_SONAME}"';$(LN_S) $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so'
	install_symlink_command2='$(LN_S) $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so.'"${SHLIB_SONAME}"';$(LN_S) $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so'
d2331 1
a2331 1
		LDSHARED='$(CC) -G -h$(LIBNAME).so.'"${SHLIB_SONAME}"
d2383 1
a2383 1
echo "configure:2388: checking whether to use -rpath" >&5
d2420 1
a2420 1
echo "configure:2425: checking whether byte ordering is bigendian" >&5
d2427 1
a2427 1
#line 2432 "configure"
d2438 1
a2438 1
if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2442 1
a2442 1
#line 2447 "configure"
d2453 1
a2453 1
if { (eval echo configure:2458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2473 1
a2473 1
#line 2478 "configure"
d2486 1
a2486 1
if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2511 1
a2511 1
echo "configure:2516: checking for working const" >&5
d2516 1
a2516 1
#line 2521 "configure"
d2565 1
a2565 1
if { (eval echo configure:2570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2587 1
a2587 1
echo "configure:2592: checking for inline" >&5
d2594 1
a2594 1
#line 2599 "configure"
d2601 1
a2601 1
if { (eval echo configure:2606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2629 1
a2629 1
echo "configure:2634: checking for __attribute__" >&5
d2635 1
a2635 1
#line 2640 "configure"
d2652 1
a2652 1
if { (eval echo configure:2657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2676 1
a2676 1
echo "configure:2681: checking for NEXTSTEP" >&5
d2681 1
a2681 1
#line 2686 "configure"
d2708 1
a2708 1
echo "configure:2713: checking for AIX" >&5
d2713 1
a2713 1
#line 2718 "configure"
d2750 1
a2750 1
echo "configure:2755: checking for dlopen" >&5
d2765 1
a2765 1
#line 2770 "configure"
d2772 1
a2772 1
if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a2857 3
*-*-aix*)
	LIBS="$LIBS -Wl,-bnolibpath"
	;;
d2862 1
a2862 1
echo "configure:2870: checking for ANSI C header files" >&5
d2867 1
a2867 1
#line 2875 "configure"
d2875 1
a2875 1
{ (eval echo configure:2883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2892 1
a2892 1
#line 2900 "configure"
d2910 1
a2910 1
#line 2918 "configure"
d2931 1
a2931 1
#line 2939 "configure"
d2942 1
a2942 1
if { (eval echo configure:2950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a2981 1
	gdbm/ndbm.h				\
d3064 1
a3064 1
echo "configure:3073: checking for $ac_hdr" >&5
d3069 1
a3069 1
#line 3078 "configure"
d3074 1
a3074 1
{ (eval echo configure:3083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3102 1
a3102 1
echo "configure:3111: checking whether time.h and sys/time.h may both be included" >&5
d3107 1
a3107 1
#line 3116 "configure"
d3116 1
a3116 1
if { (eval echo configure:3125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3137 1
a3137 1
echo "configure:3146: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d3142 1
a3142 1
#line 3151 "configure"
d3154 1
a3154 1
if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3180 1
a3180 1
echo "configure:3189: checking for $ac_hdr" >&5
d3185 1
a3185 1
#line 3194 "configure"
d3190 1
a3190 1
{ (eval echo configure:3199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3221 1
a3221 1
echo "configure:3230: checking for $i" >&5
d3226 1
a3226 1
#line 3235 "configure"
d3236 1
a3236 1
{ (eval echo configure:3245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3280 1
a3280 1
echo "configure:3289: checking for $i" >&5
d3286 1
a3286 1
#line 3295 "configure"
d3310 1
a3310 1
if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3336 1
a3336 1
echo "configure:3345: checking for $i" >&5
d3342 1
a3342 1
#line 3351 "configure"
d3366 1
a3366 1
if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3391 1
a3391 1
echo "configure:3400: checking for strange sys/bitypes.h" >&5
d3397 1
a3397 1
#line 3406 "configure"
d3415 1
a3415 1
if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3439 1
a3439 1
echo "configure:3448: checking for crypt" >&5
d3454 1
a3454 1
#line 3463 "configure"
d3461 1
a3461 1
if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3526 1
a3526 1
echo "configure:3535: checking for socket" >&5
d3541 1
a3541 1
#line 3550 "configure"
d3553 1
a3553 1
if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3621 1
a3621 1
echo "configure:3630: checking for gethostbyname" >&5
d3636 1
a3636 1
#line 3645 "configure"
d3648 1
a3648 1
if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3718 1
a3718 1
echo "configure:3727: checking for odm_initialize" >&5
d3733 1
a3733 1
#line 3742 "configure"
d3740 1
a3740 1
if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3808 1
a3808 1
echo "configure:3817: checking for getattr" >&5
d3823 1
a3823 1
#line 3832 "configure"
d3830 1
a3830 1
if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3898 1
a3898 1
echo "configure:3907: checking for setpcred" >&5
d3913 1
a3913 1
#line 3922 "configure"
d3920 1
a3920 1
if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3988 1
a3988 1
echo "configure:3997: checking for logwtmp" >&5
d4003 1
a4003 1
#line 4012 "configure"
d4010 1
a4010 1
if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4079 1
a4079 1
echo "configure:4088: checking for logout" >&5
d4094 1
a4094 1
#line 4103 "configure"
d4101 1
a4101 1
if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4168 1
a4168 1
echo "configure:4177: checking for tgetent" >&5
d4183 1
a4183 1
#line 4192 "configure"
d4190 1
a4190 1
if { (eval echo configure:4199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4255 1
a4255 1
echo "configure:4264: checking for X" >&5
d4317 1
a4317 1
#line 4326 "configure"
d4322 1
a4322 1
{ (eval echo configure:4331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4391 1
a4391 1
#line 4400 "configure"
d4398 1
a4398 1
if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4505 1
a4505 1
echo "configure:4514: checking whether -R must be followed by a space" >&5
d4508 1
a4508 1
#line 4517 "configure"
d4515 1
a4515 1
if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4531 1
a4531 1
#line 4540 "configure"
d4538 1
a4538 1
if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4570 1
a4570 1
echo "configure:4579: checking for dnet_ntoa in -ldnet" >&5
d4578 1
a4578 1
#line 4587 "configure"
d4589 1
a4589 1
if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4611 1
a4611 1
echo "configure:4620: checking for dnet_ntoa in -ldnet_stub" >&5
d4619 1
a4619 1
#line 4628 "configure"
d4630 1
a4630 1
if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4659 1
a4659 1
echo "configure:4668: checking for gethostbyname" >&5
d4664 1
a4664 1
#line 4673 "configure"
d4687 1
a4687 1
if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4708 1
a4708 1
echo "configure:4717: checking for gethostbyname in -lnsl" >&5
d4716 1
a4716 1
#line 4725 "configure"
d4727 1
a4727 1
if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4757 1
a4757 1
echo "configure:4766: checking for connect" >&5
d4762 1
a4762 1
#line 4771 "configure"
d4785 1
a4785 1
if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4806 1
a4806 1
echo "configure:4815: checking for connect in -lsocket" >&5
d4814 1
a4814 1
#line 4823 "configure"
d4825 1
a4825 1
if { (eval echo configure:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4849 1
a4849 1
echo "configure:4858: checking for remove" >&5
d4854 1
a4854 1
#line 4863 "configure"
d4877 1
a4877 1
if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4898 1
a4898 1
echo "configure:4907: checking for remove in -lposix" >&5
d4906 1
a4906 1
#line 4915 "configure"
d4917 1
a4917 1
if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4941 1
a4941 1
echo "configure:4950: checking for shmat" >&5
d4946 1
a4946 1
#line 4955 "configure"
d4969 1
a4969 1
if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4990 1
a4990 1
echo "configure:4999: checking for shmat in -lipc" >&5
d4998 1
a4998 1
#line 5007 "configure"
d5009 1
a5009 1
if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5042 1
a5042 1
echo "configure:5051: checking for IceConnectionNumber in -lICE" >&5
d5050 1
a5050 1
#line 5059 "configure"
d5061 1
a5061 1
if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5090 1
a5090 1
echo "configure:5099: checking for special X linker flags" >&5
d5121 1
a5121 1
#line 5130 "configure"
d5135 1
a5135 1
if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5158 1
	MAKE_X_SCRIPTS_BIN=""
a5161 1
	MAKE_X_SCRIPTS_BIN='$(X_SCRIPTS_BIN)'
d5178 1
a5178 1
echo "configure:5189: checking for XauWriteAuth" >&5
d5193 1
a5193 1
#line 5204 "configure"
d5200 1
a5200 1
if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5265 1
a5265 1
echo "configure:5276: checking for XauReadAuth" >&5
d5280 1
a5280 1
#line 5291 "configure"
d5287 1
a5287 1
if { (eval echo configure:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5351 1
a5351 1
echo "configure:5362: checking for XauFileName" >&5
d5366 1
a5366 1
#line 5377 "configure"
d5373 1
a5373 1
if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5496 1
a5496 1
echo "configure:5507: checking for dbm_open in $m" >&5
d5508 1
a5508 1
#line 5519 "configure"
a5514 2
#elif defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
d5534 1
a5534 1
if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5569 1
a5569 1
echo "configure:5582: checking for NDBM library" >&5
d5610 1
a5610 1
echo "configure:5623: checking for syslog" >&5
d5625 1
a5625 1
#line 5638 "configure"
d5632 1
a5632 1
if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5698 1
a5698 1
echo "configure:5711: checking for working snprintf" >&5
d5707 1
a5707 1
#line 5720 "configure"
d5719 1
a5719 1
if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5745 1
a5745 1
echo "configure:5758: checking if snprintf needs a prototype" >&5
d5750 1
a5750 1
#line 5763 "configure"
d5760 1
a5760 1
if { (eval echo configure:5773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5787 1
a5787 1
echo "configure:5800: checking for working glob" >&5
d5793 1
a5793 1
#line 5806 "configure"
d5804 1
a5804 1
if { (eval echo configure:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5828 1
a5828 1
echo "configure:5841: checking if glob needs a prototype" >&5
d5833 1
a5833 1
#line 5846 "configure"
d5844 1
a5844 1
if { (eval echo configure:5857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5931 1
a5931 1
echo "configure:5944: checking for $ac_func" >&5
d5936 1
a5936 1
#line 5949 "configure"
d5959 1
a5959 1
if { (eval echo configure:5972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5990 1
a5990 1
echo "configure:6003: checking for $ac_hdr" >&5
d5995 1
a5995 1
#line 6008 "configure"
d6000 1
a6000 1
{ (eval echo configure:6013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6030 1
a6030 1
echo "configure:6043: checking for $ac_func" >&5
d6035 1
a6035 1
#line 6048 "configure"
d6058 1
a6058 1
if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6089 1
a6089 1
echo "configure:6102: checking for getpwnam_r" >&5
d6104 1
a6104 1
#line 6117 "configure"
d6111 1
a6111 1
if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6172 1
a6172 1
echo "configure:6185: checking if getpwnam_r is posix" >&5
d6182 1
a6182 1
#line 6195 "configure"
d6193 1
a6193 1
if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6222 1
a6222 1
echo "configure:6235: checking for getsockopt" >&5
d6237 1
a6237 1
#line 6250 "configure"
d6249 1
a6249 1
if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6312 1
a6312 1
echo "configure:6325: checking for setsockopt" >&5
d6327 1
a6327 1
#line 6340 "configure"
d6339 1
a6339 1
if { (eval echo configure:6352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6402 1
a6402 1
echo "configure:6415: checking for $ac_func" >&5
d6407 1
a6407 1
#line 6420 "configure"
d6430 1
a6430 1
if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6460 1
a6460 1
echo "configure:6473: checking for res_search" >&5
d6475 1
a6475 1
#line 6488 "configure"
d6496 1
a6496 1
if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6565 1
a6565 1
echo "configure:6578: checking for dn_expand" >&5
d6580 1
a6580 1
#line 6593 "configure"
d6601 1
a6601 1
if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6670 1
a6670 1
echo "configure:6683: checking for $ac_hdr" >&5
d6675 1
a6675 1
#line 6688 "configure"
d6680 1
a6680 1
{ (eval echo configure:6693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6709 1
a6709 1
echo "configure:6722: checking for $ac_func" >&5
d6714 1
a6714 1
#line 6727 "configure"
d6737 1
a6737 1
if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6762 1
a6762 1
echo "configure:6775: checking for working mmap" >&5
d6770 1
a6770 1
#line 6783 "configure"
d6910 1
a6910 1
if { (eval echo configure:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6935 1
a6935 1
echo "configure:6948: checking for working alloca.h" >&5
d6940 1
a6940 1
#line 6953 "configure"
d6947 1
a6947 1
if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6968 1
a6968 1
echo "configure:6981: checking for alloca" >&5
d6973 1
a6973 1
#line 6986 "configure"
d7001 1
a7001 1
if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7033 1
a7033 1
echo "configure:7046: checking whether alloca needs Cray hooks" >&5
d7038 1
a7038 1
#line 7051 "configure"
d7063 1
a7063 1
echo "configure:7076: checking for $ac_func" >&5
d7068 1
a7068 1
#line 7081 "configure"
d7091 1
a7091 1
if { (eval echo configure:7104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7118 1
a7118 1
echo "configure:7131: checking stack direction for C alloca" >&5
d7126 1
a7126 1
#line 7139 "configure"
d7145 1
a7145 1
if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d7171 1
a7171 1
echo "configure:7184: checking for $ac_func" >&5
d7176 1
a7176 1
#line 7189 "configure"
d7199 1
a7199 1
if { (eval echo configure:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7225 1
a7225 1
echo "configure:7238: checking if getlogin is posix" >&5
d7253 1
a7253 1
echo "configure:7266: checking for hstrerror" >&5
d7268 1
a7268 1
#line 7281 "configure"
d7277 1
a7277 1
if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7348 1
a7348 1
echo "configure:7361: checking if hstrerror needs a prototype" >&5
d7353 1
a7353 1
#line 7366 "configure"
d7366 1
a7366 1
if { (eval echo configure:7379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7394 1
a7394 1
echo "configure:7407: checking for $ac_func" >&5
d7399 1
a7399 1
#line 7412 "configure"
d7422 1
a7422 1
if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7455 1
a7455 1
echo "configure:7468: checking for $ac_func" >&5
d7460 1
a7460 1
#line 7473 "configure"
d7483 1
a7483 1
if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7516 1
a7516 1
echo "configure:7529: checking for $ac_func" >&5
d7521 1
a7521 1
#line 7534 "configure"
d7544 1
a7544 1
if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7577 1
a7577 1
echo "configure:7590: checking for $ac_func" >&5
d7582 1
a7582 1
#line 7595 "configure"
d7605 1
a7605 1
if { (eval echo configure:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7638 1
a7638 1
echo "configure:7651: checking for $ac_func" >&5
d7643 1
a7643 1
#line 7656 "configure"
d7666 1
a7666 1
if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7699 1
a7699 1
echo "configure:7712: checking for $ac_func" >&5
d7704 1
a7704 1
#line 7717 "configure"
d7727 1
a7727 1
if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7760 1
a7760 1
echo "configure:7773: checking for $ac_func" >&5
d7765 1
a7765 1
#line 7778 "configure"
d7788 1
a7788 1
if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7821 1
a7821 1
echo "configure:7834: checking for $ac_func" >&5
d7826 1
a7826 1
#line 7839 "configure"
d7849 1
a7849 1
if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7882 1
a7882 1
echo "configure:7895: checking for $ac_func" >&5
d7887 1
a7887 1
#line 7900 "configure"
d7910 1
a7910 1
if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7943 1
a7943 1
echo "configure:7956: checking for $ac_func" >&5
d7948 1
a7948 1
#line 7961 "configure"
d7971 1
a7971 1
if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8004 1
a8004 1
echo "configure:8017: checking for $ac_func" >&5
d8009 1
a8009 1
#line 8022 "configure"
d8032 1
a8032 1
if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8065 1
a8065 1
echo "configure:8078: checking for $ac_func" >&5
d8070 1
a8070 1
#line 8083 "configure"
d8093 1
a8093 1
if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8128 1
a8128 1
echo "configure:8141: checking if gethostname needs a prototype" >&5
d8133 1
a8133 1
#line 8146 "configure"
d8144 1
a8144 1
if { (eval echo configure:8157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8173 1
a8173 1
echo "configure:8186: checking if mkstemp needs a prototype" >&5
d8178 1
a8178 1
#line 8191 "configure"
d8189 1
a8189 1
if { (eval echo configure:8202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8218 1
a8218 1
echo "configure:8231: checking if inet_aton needs a prototype" >&5
d8223 1
a8223 1
#line 8236 "configure"
d8245 1
a8245 1
if { (eval echo configure:8258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8271 1
a8271 1
echo "configure:8284: checking if realloc is broken" >&5
d8281 1
a8281 1
#line 8294 "configure"
d8293 1
a8293 1
if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8319 1
a8319 1
echo "configure:8332: checking if getcwd is broken" >&5
d8330 1
a8330 1
#line 8343 "configure"
d8352 1
a8352 1
if { (eval echo configure:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8381 1
a8381 1
echo "configure:8394: checking which authentication modules should be built" >&5
d8401 13
d8416 1
a8416 1
echo "configure:8416: checking if gethostbyname is compatible with system prototype" >&5
d8421 1
a8421 1
#line 8421 "configure"
d8444 1
a8444 1
if { (eval echo configure:8444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8469 1
a8469 1
echo "configure:8469: checking if gethostbyaddr is compatible with system prototype" >&5
d8474 1
a8474 1
#line 8474 "configure"
d8497 1
a8497 1
if { (eval echo configure:8497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8522 1
a8522 1
echo "configure:8522: checking if getservbyname is compatible with system prototype" >&5
d8527 1
a8527 1
#line 8527 "configure"
d8550 1
a8550 1
if { (eval echo configure:8550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8575 1
a8575 1
echo "configure:8575: checking if openlog is compatible with system prototype" >&5
d8580 1
a8580 1
#line 8580 "configure"
d8591 1
a8591 1
if { (eval echo configure:8591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8617 1
a8617 1
echo "configure:8617: checking if crypt needs a prototype" >&5
d8622 1
a8622 1
#line 8622 "configure"
d8639 1
a8639 1
if { (eval echo configure:8639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8666 1
a8666 1
echo "configure:8666: checking if fclose needs a prototype" >&5
d8671 1
a8671 1
#line 8671 "configure"
d8683 1
a8683 1
if { (eval echo configure:8683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8710 1
a8710 1
echo "configure:8710: checking if strtok_r needs a prototype" >&5
d8715 1
a8715 1
#line 8715 "configure"
d8727 1
a8727 1
if { (eval echo configure:8727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8754 1
a8754 1
echo "configure:8754: checking if strsep needs a prototype" >&5
d8759 1
a8759 1
#line 8759 "configure"
d8771 1
a8771 1
if { (eval echo configure:8771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8798 1
a8798 1
echo "configure:8798: checking if getusershell needs a prototype" >&5
d8803 1
a8803 1
#line 8803 "configure"
d8815 1
a8815 1
if { (eval echo configure:8815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8842 1
a8842 1
echo "configure:8842: checking if utime needs a prototype" >&5
d8847 1
a8847 1
#line 8847 "configure"
d8861 1
a8861 1
if { (eval echo configure:8861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8887 1
a8887 1
echo "configure:8887: checking for h_errno" >&5
d8893 1
a8893 1
#line 8893 "configure"
d8901 1
a8901 1
if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8924 1
a8924 1
echo "configure:8924: checking if h_errno is properly declared" >&5
d8930 1
a8930 1
#line 8930 "configure"
d8943 1
a8943 1
if { (eval echo configure:8943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8974 1
a8974 1
echo "configure:8974: checking for h_errlist" >&5
d8980 1
a8980 1
#line 8980 "configure"
d8988 1
a8988 1
if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9011 1
a9011 1
echo "configure:9011: checking if h_errlist is properly declared" >&5
d9017 1
a9017 1
#line 9017 "configure"
d9027 1
a9027 1
if { (eval echo configure:9027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9058 1
a9058 1
echo "configure:9058: checking for h_nerr" >&5
d9064 1
a9064 1
#line 9064 "configure"
d9072 1
a9072 1
if { (eval echo configure:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9095 1
a9095 1
echo "configure:9095: checking if h_nerr is properly declared" >&5
d9101 1
a9101 1
#line 9101 "configure"
d9111 1
a9111 1
if { (eval echo configure:9111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9142 1
a9142 1
echo "configure:9142: checking for __progname" >&5
d9148 1
a9148 1
#line 9148 "configure"
d9156 1
a9156 1
if { (eval echo configure:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9179 1
a9179 1
echo "configure:9179: checking if __progname is properly declared" >&5
d9185 1
a9185 1
#line 9185 "configure"
d9195 1
a9195 1
if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9226 1
a9226 1
echo "configure:9226: checking if optarg is properly declared" >&5
d9232 1
a9232 1
#line 9232 "configure"
d9243 1
a9243 1
if { (eval echo configure:9243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9270 1
a9270 1
echo "configure:9270: checking if optind is properly declared" >&5
d9276 1
a9276 1
#line 9276 "configure"
d9287 1
a9287 1
if { (eval echo configure:9287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9314 1
a9314 1
echo "configure:9314: checking if opterr is properly declared" >&5
d9320 1
a9320 1
#line 9320 "configure"
d9331 1
a9331 1
if { (eval echo configure:9331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9358 1
a9358 1
echo "configure:9358: checking if optopt is properly declared" >&5
d9364 1
a9364 1
#line 9364 "configure"
d9375 1
a9375 1
if { (eval echo configure:9375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9403 1
a9403 1
echo "configure:9403: checking if environ is properly declared" >&5
d9409 1
a9409 1
#line 9409 "configure"
d9417 1
a9417 1
if { (eval echo configure:9417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9444 1
a9444 1
echo "configure:9444: checking return type of signal handlers" >&5
d9449 1
a9449 1
#line 9449 "configure"
d9466 1
a9466 1
if { (eval echo configure:9466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9495 1
a9495 1
echo "configure:9495: checking for ut_addr in struct utmp" >&5
d9501 1
a9501 1
#line 9501 "configure"
d9509 1
a9509 1
if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9535 1
a9535 1
echo "configure:9535: checking for ut_host in struct utmp" >&5
d9541 1
a9541 1
#line 9541 "configure"
d9549 1
a9549 1
if { (eval echo configure:9549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9575 1
a9575 1
echo "configure:9575: checking for ut_id in struct utmp" >&5
d9581 1
a9581 1
#line 9581 "configure"
d9589 1
a9589 1
if { (eval echo configure:9589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9615 1
a9615 1
echo "configure:9615: checking for ut_pid in struct utmp" >&5
d9621 1
a9621 1
#line 9621 "configure"
d9629 1
a9629 1
if { (eval echo configure:9629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9655 1
a9655 1
echo "configure:9655: checking for ut_type in struct utmp" >&5
d9661 1
a9661 1
#line 9661 "configure"
d9669 1
a9669 1
if { (eval echo configure:9669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9695 1
a9695 1
echo "configure:9695: checking for ut_user in struct utmp" >&5
d9701 1
a9701 1
#line 9701 "configure"
d9709 1
a9709 1
if { (eval echo configure:9709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9735 1
a9735 1
echo "configure:9735: checking for ut_exit in struct utmpx" >&5
d9741 1
a9741 1
#line 9741 "configure"
d9749 1
a9749 1
if { (eval echo configure:9749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9775 1
a9775 1
echo "configure:9775: checking for ut_syslen in struct utmpx" >&5
d9781 1
a9781 1
#line 9781 "configure"
d9789 1
a9789 1
if { (eval echo configure:9789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9817 1
a9817 1
echo "configure:9817: checking for tm_gmtoff in struct tm" >&5
d9823 1
a9823 1
#line 9823 "configure"
d9830 1
a9830 1
if { (eval echo configure:9830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9856 1
a9856 1
echo "configure:9856: checking for tm_zone in struct tm" >&5
d9862 1
a9862 1
#line 9862 "configure"
d9869 1
a9869 1
if { (eval echo configure:9869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9896 1
a9896 1
echo "configure:9896: checking for timezone" >&5
d9902 1
a9902 1
#line 9902 "configure"
d9910 1
a9910 1
if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9933 1
a9933 1
echo "configure:9933: checking if timezone is properly declared" >&5
d9939 1
a9939 1
#line 9939 "configure"
d9947 1
a9947 1
if { (eval echo configure:9947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9979 1
a9979 1
echo "configure:9979: checking for sa_family_t" >&5
d9984 1
a9984 1
#line 9984 "configure"
d9996 1
a9996 1
if { (eval echo configure:9996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a10022 46
cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
echo "configure:10025: 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 10030 "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:10042: \"$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____%'`

: << END
@@@@@@funcs="$funcs socklen_t"@@@@@@
END

  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

 

d10025 1
a10025 1
echo "configure:10071: checking for struct sockaddr_storage" >&5
d10030 1
a10030 1
#line 10076 "configure"
d10042 1
a10042 1
if { (eval echo configure:10088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10070 1
a10070 1
echo "configure:10116: checking for struct spwd" >&5
d10076 1
a10076 1
#line 10122 "configure"
d10086 1
a10086 1
if { (eval echo configure:10132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10110 1
a10110 1
echo "configure:10156: checking for st_blksize in struct stat" >&5
d10115 1
a10115 1
#line 10161 "configure"
d10123 1
a10123 1
if { (eval echo configure:10169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10147 1
a10147 1
echo "configure:10193: checking for struct winsize" >&5
d10155 1
a10155 1
#line 10201 "configure"
d10177 1
a10177 1
#line 10223 "configure"
d10192 1
a10192 1
#line 10238 "configure"
d10210 1
a10210 1
echo "configure:10256: checking for pid_t" >&5
d10215 1
a10215 1
#line 10261 "configure"
d10243 1
a10243 1
echo "configure:10289: checking for uid_t in sys/types.h" >&5
d10248 1
a10248 1
#line 10294 "configure"
d10277 1
a10277 1
echo "configure:10323: checking for off_t" >&5
d10282 1
a10282 1
#line 10328 "configure"
d10310 1
a10310 1
echo "configure:10356: checking for size_t" >&5
d10315 1
a10315 1
#line 10361 "configure"
d10344 1
a10344 1
echo "configure:10390: checking for ssize_t" >&5
d10349 1
a10349 1
#line 10395 "configure"
a10380 35
echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
echo "configure:10428: 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
else
  cat > conftest.$ac_ext <<EOF
#line 10433 "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
else
  rm -rf conftest*
  ac_cv_type_sig_atomic_t=no
fi
rm -f conftest*

fi
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

fi


d10383 1
a10383 1
echo "configure:10464: checking for broken sys/socket.h" >&5
d10389 1
a10389 1
#line 10470 "configure"
d10398 1
a10398 1
if { (eval echo configure:10479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10415 1
a10415 1
echo "configure:10496: checking for broken netdb.h" >&5
d10421 1
a10421 1
#line 10502 "configure"
d10430 1
a10430 1
if { (eval echo configure:10511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10452 1
a10452 1
echo "configure:10533: checking for sa_len in struct sockaddr" >&5
d10458 1
a10458 1
#line 10539 "configure"
d10466 1
a10466 1
if { (eval echo configure:10547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10495 1
a10495 1
echo "configure:10576: checking for ouid in SIAENTITY" >&5
d10501 1
a10501 1
#line 10582 "configure"
d10508 1
a10508 1
if { (eval echo configure:10589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10534 5
a10538 3
echo $ac_n "checking for getmsg""... $ac_c" 1>&6
echo "configure:10616: checking for getmsg" >&5
if eval "test \"`echo '$''{'ac_cv_func_getmsg'+set}'`\" = set"; then
d10542 1
a10542 1
#line 10621 "configure"
d10545 1
a10545 1
    which can conflict with char getmsg(); below.  */
d10550 1
a10550 1
char getmsg();
d10557 1
a10557 1
#if defined (__stub_getmsg) || defined (__stub___getmsg)
d10560 1
a10560 1
getmsg();
d10565 1
a10565 1
if { (eval echo configure:10644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10567 1
a10567 1
  eval "ac_cv_func_getmsg=yes"
d10572 1
a10572 1
  eval "ac_cv_func_getmsg=no"
d10577 1
a10577 1
if eval "test \"`echo '$ac_cv_func_'getmsg`\" = yes"; then
d10579 5
a10583 1
  :
d10587 1
d10590 1
a10590 1
if test "$ac_cv_func_getmsg" = "yes"; then
d10593 2
a10594 2
echo "configure:10667: checking for working getmsg" >&5
if eval "test \"`echo '$''{'ac_cv_func_getmsg_work'+set}'`\" = set"; then
d10598 1
a10598 1
  ac_cv_func_getmsg_work=no
d10601 1
a10601 1
#line 10675 "configure"
a10604 1
#include <errno.h>
d10608 1
a10608 4
  int ret;
  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
  if(ret < 0 && errno == ENOSYS)
    return 1;
d10613 1
a10613 1
if { (eval echo configure:10691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d10615 1
a10615 1
  ac_cv_func_getmsg_work=yes
d10620 1
a10620 1
  ac_cv_func_getmsg_work=no
d10627 2
a10628 2
echo "$ac_t""$ac_cv_func_getmsg_work" 1>&6
test "$ac_cv_func_getmsg_work" = "yes" &&
d10642 1
a10642 1
echo "configure:10720: checking for el_init" >&5
d10657 1
a10657 1
#line 10735 "configure"
d10664 1
a10664 1
if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10725 1
a10725 1
echo "configure:10803: checking for four argument el_init" >&5
d10731 1
a10731 1
#line 10809 "configure"
d10739 1
a10739 1
if { (eval echo configure:10817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10767 1
a10767 1
echo "configure:10845: checking for readline" >&5
d10782 1
a10782 1
#line 10860 "configure"
d10789 1
a10789 1
if { (eval echo configure:10867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10896 1
a10896 1
echo "configure:10974: checking for streamspty" >&5
d10898 1
a10898 1
SunOS\ 4*|OSF1*|IRIX\ 4*|HP-UX\ ?.1[01].*)
d10906 1
a10906 1
		krb_cv_sys_streamspty="$ac_cv_func_getmsg_work"
d10910 1
a10910 1
	krb_cv_sys_streamspty="$ac_cv_func_getmsg_work"
d10922 1
a10922 1
echo "configure:11000: checking if /bin/ls takes -A" >&5
d10935 1
a10935 1
echo "configure:11013: checking for suffix of preformatted manual pages" >&5
a11239 1
s%@@MAKE_X_SCRIPTS_BIN@@%$MAKE_X_SCRIPTS_BIN%g
d11258 1
@


1.1.1.4
log
@import krb4-1.0.5
@
text
@d3 1
a3 1
# From configure.in Revision: 1.432.2.14 
d712 1
a712 1
VERSION=1.0.5
a780 3
*-*-solaris2.8)
	sunos=58
	;;
d793 1
a793 1
echo "configure:797: checking whether ${MAKE-make} sets \${MAKE}" >&5
d844 1
a844 1
echo "configure:848: checking for ln -s or something else" >&5
d869 1
a869 1
echo "configure:873: checking for $ac_word" >&5
d899 1
a899 1
echo "configure:903: checking for $ac_word" >&5
d950 1
a950 1
echo "configure:954: checking for $ac_word" >&5
d982 1
a982 1
echo "configure:986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
d993 1
a993 1
#line 997 "configure"
d998 1
a998 1
if { (eval echo configure:1002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1024 1
a1024 1
echo "configure:1028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
d1029 1
a1029 1
echo "configure:1033: checking whether we are using GNU C" >&5
d1038 1
a1038 1
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
d1057 1
a1057 1
echo "configure:1061: checking whether ${CC-cc} accepts -g" >&5
d1089 1
a1089 1
echo "configure:1093: checking how to run the C preprocessor" >&5
d1104 1
a1104 1
#line 1108 "configure"
d1110 1
a1110 1
{ (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1121 1
a1121 1
#line 1125 "configure"
d1127 1
a1127 1
{ (eval echo configure:1131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1138 1
a1138 1
#line 1142 "configure"
d1144 1
a1144 1
{ (eval echo configure:1148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d1169 1
a1169 1
echo "configure:1173: checking for POSIXized ISC" >&5
d1194 1
a1194 1
echo "configure:1198: checking for $ac_word" >&5
d1226 1
a1226 1
echo "configure:1230: checking for $ac_word" >&5
d1260 1
a1260 1
echo "configure:1264: checking for yywrap in -l$ac_lib" >&5
d1268 1
a1268 1
#line 1272 "configure"
d1279 1
a1279 1
if { (eval echo configure:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1304 1
a1304 1
echo "configure:1308: checking for $ac_word" >&5
d1343 1
a1343 1
echo "configure:1347: checking for a BSD compatible install" >&5
d1400 1
a1400 1
echo "configure:1404: checking for $ac_word" >&5
d1432 1
a1432 1
echo "configure:1436: checking for $ac_word" >&5
d1494 1
a1494 1
echo "configure:1498: checking for socks" >&5
d1533 1
a1533 1
#line 1537 "configure"
d1540 1
a1540 1
if { (eval echo configure:1544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1552 1
a1552 1
#line 1556 "configure"
d1559 1
a1559 1
if { (eval echo configure:1563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d1846 4
d1899 1
a1899 1
echo "configure:1899: checking for readline" >&5
d1938 1
a1938 1
#line 1938 "configure"
d1948 1
a1948 1
if { (eval echo configure:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d1960 1
a1960 1
#line 1960 "configure"
d1970 1
a1970 1
if { (eval echo configure:1970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2035 1
a2035 1
echo "configure:2035: checking if $CC supports the $abi option" >&5
d2043 1
a2043 1
#line 2043 "configure"
d2050 1
a2050 1
if { (eval echo configure:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2073 1
a2073 1
#line 2073 "configure"
d2080 1
a2080 1
if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2154 1
a2154 1
echo "configure:2154: checking for hesiod" >&5
d2193 1
a2193 1
#line 2193 "configure"
d2200 1
a2200 1
if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2212 1
a2212 1
#line 2212 "configure"
d2219 1
a2219 1
if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d2311 1
a2311 1
*-*-freebsd[345]* | *-*-freebsdelf[345]*)
a2328 5
	LDSHARED='$(CC) -shared -Wl,-h$(LIBNAME).so.'"${SHLIB_SONAME}"
	REAL_SHLIBEXT=so.$SHLIB_VERSION
	build_symlink_command='$(LN_S) $@@ $(LIBNAME).so'
	install_symlink_command='$(LN_S) $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so.'"${SHLIB_SONAME}"';$(LN_S) $(LIB) $(DESTDIR)$(libdir)/$(LIBNAME).so'
	install_symlink_command2='$(LN_S) $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so.'"${SHLIB_SONAME}"';$(LN_S) $(LIB2) $(DESTDIR)$(libdir)/$(LIBNAME2).so'
d2331 1
a2331 1
		LDSHARED='$(CC) -G -h$(LIBNAME).so.'"${SHLIB_SONAME}"
d2383 1
a2383 1
echo "configure:2388: checking whether to use -rpath" >&5
d2420 1
a2420 1
echo "configure:2425: checking whether byte ordering is bigendian" >&5
d2427 1
a2427 1
#line 2432 "configure"
d2438 1
a2438 1
if { (eval echo configure:2443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2442 1
a2442 1
#line 2447 "configure"
d2453 1
a2453 1
if { (eval echo configure:2458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2473 1
a2473 1
#line 2478 "configure"
d2486 1
a2486 1
if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d2511 1
a2511 1
echo "configure:2516: checking for working const" >&5
d2516 1
a2516 1
#line 2521 "configure"
d2565 1
a2565 1
if { (eval echo configure:2570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2587 1
a2587 1
echo "configure:2592: checking for inline" >&5
d2594 1
a2594 1
#line 2599 "configure"
d2601 1
a2601 1
if { (eval echo configure:2606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2629 1
a2629 1
echo "configure:2634: checking for __attribute__" >&5
d2635 1
a2635 1
#line 2640 "configure"
d2652 1
a2652 1
if { (eval echo configure:2657: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d2676 1
a2676 1
echo "configure:2681: checking for NEXTSTEP" >&5
d2681 1
a2681 1
#line 2686 "configure"
d2708 1
a2708 1
echo "configure:2713: checking for AIX" >&5
d2713 1
a2713 1
#line 2718 "configure"
d2750 1
a2750 1
echo "configure:2755: checking for dlopen" >&5
d2765 1
a2765 1
#line 2770 "configure"
d2772 1
a2772 1
if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
a2857 3
*-*-aix*)
	LIBS="$LIBS -Wl,-bnolibpath"
	;;
d2862 1
a2862 1
echo "configure:2870: checking for ANSI C header files" >&5
d2867 1
a2867 1
#line 2875 "configure"
d2875 1
a2875 1
{ (eval echo configure:2883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d2892 1
a2892 1
#line 2900 "configure"
d2910 1
a2910 1
#line 2918 "configure"
d2931 1
a2931 1
#line 2939 "configure"
d2942 1
a2942 1
if { (eval echo configure:2950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a2981 1
	gdbm/ndbm.h				\
d3064 1
a3064 1
echo "configure:3073: checking for $ac_hdr" >&5
d3069 1
a3069 1
#line 3078 "configure"
d3074 1
a3074 1
{ (eval echo configure:3083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3102 1
a3102 1
echo "configure:3111: checking whether time.h and sys/time.h may both be included" >&5
d3107 1
a3107 1
#line 3116 "configure"
d3116 1
a3116 1
if { (eval echo configure:3125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3137 1
a3137 1
echo "configure:3146: checking for sys_siglist declaration in signal.h or unistd.h" >&5
d3142 1
a3142 1
#line 3151 "configure"
d3154 1
a3154 1
if { (eval echo configure:3163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3180 1
a3180 1
echo "configure:3189: checking for $ac_hdr" >&5
d3185 1
a3185 1
#line 3194 "configure"
d3190 1
a3190 1
{ (eval echo configure:3199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3221 1
a3221 1
echo "configure:3230: checking for $i" >&5
d3226 1
a3226 1
#line 3235 "configure"
d3236 1
a3236 1
{ (eval echo configure:3245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d3280 1
a3280 1
echo "configure:3289: checking for $i" >&5
d3286 1
a3286 1
#line 3295 "configure"
d3310 1
a3310 1
if { (eval echo configure:3319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3336 1
a3336 1
echo "configure:3345: checking for $i" >&5
d3342 1
a3342 1
#line 3351 "configure"
d3366 1
a3366 1
if { (eval echo configure:3375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3391 1
a3391 1
echo "configure:3400: checking for strange sys/bitypes.h" >&5
d3397 1
a3397 1
#line 3406 "configure"
d3415 1
a3415 1
if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d3439 1
a3439 1
echo "configure:3448: checking for crypt" >&5
d3454 1
a3454 1
#line 3463 "configure"
d3461 1
a3461 1
if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3526 1
a3526 1
echo "configure:3535: checking for socket" >&5
d3541 1
a3541 1
#line 3550 "configure"
d3553 1
a3553 1
if { (eval echo configure:3562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3621 1
a3621 1
echo "configure:3630: checking for gethostbyname" >&5
d3636 1
a3636 1
#line 3645 "configure"
d3648 1
a3648 1
if { (eval echo configure:3657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3718 1
a3718 1
echo "configure:3727: checking for odm_initialize" >&5
d3733 1
a3733 1
#line 3742 "configure"
d3740 1
a3740 1
if { (eval echo configure:3749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3808 1
a3808 1
echo "configure:3817: checking for getattr" >&5
d3823 1
a3823 1
#line 3832 "configure"
d3830 1
a3830 1
if { (eval echo configure:3839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3898 1
a3898 1
echo "configure:3907: checking for setpcred" >&5
d3913 1
a3913 1
#line 3922 "configure"
d3920 1
a3920 1
if { (eval echo configure:3929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d3988 1
a3988 1
echo "configure:3997: checking for logwtmp" >&5
d4003 1
a4003 1
#line 4012 "configure"
d4010 1
a4010 1
if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4079 1
a4079 1
echo "configure:4088: checking for logout" >&5
d4094 1
a4094 1
#line 4103 "configure"
d4101 1
a4101 1
if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4168 1
a4168 1
echo "configure:4177: checking for tgetent" >&5
d4183 1
a4183 1
#line 4192 "configure"
d4190 1
a4190 1
if { (eval echo configure:4199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4255 1
a4255 1
echo "configure:4264: checking for X" >&5
d4317 1
a4317 1
#line 4326 "configure"
d4322 1
a4322 1
{ (eval echo configure:4331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d4391 1
a4391 1
#line 4400 "configure"
d4398 1
a4398 1
if { (eval echo configure:4407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4505 1
a4505 1
echo "configure:4514: checking whether -R must be followed by a space" >&5
d4508 1
a4508 1
#line 4517 "configure"
d4515 1
a4515 1
if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4531 1
a4531 1
#line 4540 "configure"
d4538 1
a4538 1
if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4570 1
a4570 1
echo "configure:4579: checking for dnet_ntoa in -ldnet" >&5
d4578 1
a4578 1
#line 4587 "configure"
d4589 1
a4589 1
if { (eval echo configure:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4611 1
a4611 1
echo "configure:4620: checking for dnet_ntoa in -ldnet_stub" >&5
d4619 1
a4619 1
#line 4628 "configure"
d4630 1
a4630 1
if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4659 1
a4659 1
echo "configure:4668: checking for gethostbyname" >&5
d4664 1
a4664 1
#line 4673 "configure"
d4687 1
a4687 1
if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4708 1
a4708 1
echo "configure:4717: checking for gethostbyname in -lnsl" >&5
d4716 1
a4716 1
#line 4725 "configure"
d4727 1
a4727 1
if { (eval echo configure:4736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4757 1
a4757 1
echo "configure:4766: checking for connect" >&5
d4762 1
a4762 1
#line 4771 "configure"
d4785 1
a4785 1
if { (eval echo configure:4794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4806 1
a4806 1
echo "configure:4815: checking for connect in -lsocket" >&5
d4814 1
a4814 1
#line 4823 "configure"
d4825 1
a4825 1
if { (eval echo configure:4834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4849 1
a4849 1
echo "configure:4858: checking for remove" >&5
d4854 1
a4854 1
#line 4863 "configure"
d4877 1
a4877 1
if { (eval echo configure:4886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4898 1
a4898 1
echo "configure:4907: checking for remove in -lposix" >&5
d4906 1
a4906 1
#line 4915 "configure"
d4917 1
a4917 1
if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4941 1
a4941 1
echo "configure:4950: checking for shmat" >&5
d4946 1
a4946 1
#line 4955 "configure"
d4969 1
a4969 1
if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d4990 1
a4990 1
echo "configure:4999: checking for shmat in -lipc" >&5
d4998 1
a4998 1
#line 5007 "configure"
d5009 1
a5009 1
if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5042 1
a5042 1
echo "configure:5051: checking for IceConnectionNumber in -lICE" >&5
d5050 1
a5050 1
#line 5059 "configure"
d5061 1
a5061 1
if { (eval echo configure:5070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5090 1
a5090 1
echo "configure:5099: checking for special X linker flags" >&5
d5121 1
a5121 1
#line 5130 "configure"
d5135 1
a5135 1
if { (eval echo configure:5144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
a5158 1
	MAKE_X_SCRIPTS_BIN=""
a5161 1
	MAKE_X_SCRIPTS_BIN='$(X_SCRIPTS_BIN)'
d5178 1
a5178 1
echo "configure:5189: checking for XauWriteAuth" >&5
d5193 1
a5193 1
#line 5204 "configure"
d5200 1
a5200 1
if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5265 1
a5265 1
echo "configure:5276: checking for XauReadAuth" >&5
d5280 1
a5280 1
#line 5291 "configure"
d5287 1
a5287 1
if { (eval echo configure:5298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5351 1
a5351 1
echo "configure:5362: checking for XauFileName" >&5
d5366 1
a5366 1
#line 5377 "configure"
d5373 1
a5373 1
if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5496 1
a5496 1
echo "configure:5507: checking for dbm_open in $m" >&5
d5508 1
a5508 1
#line 5519 "configure"
a5514 2
#elif defined(HAVE_GDBM_NDBM_H)
#include <gdbm/ndbm.h>
d5534 1
a5534 1
if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5569 1
a5569 1
echo "configure:5582: checking for NDBM library" >&5
d5610 1
a5610 1
echo "configure:5623: checking for syslog" >&5
d5625 1
a5625 1
#line 5638 "configure"
d5632 1
a5632 1
if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5698 1
a5698 1
echo "configure:5711: checking for working snprintf" >&5
d5707 1
a5707 1
#line 5720 "configure"
d5719 1
a5719 1
if { (eval echo configure:5732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d5745 1
a5745 1
echo "configure:5758: checking if snprintf needs a prototype" >&5
d5750 1
a5750 1
#line 5763 "configure"
d5760 1
a5760 1
if { (eval echo configure:5773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5787 1
a5787 1
echo "configure:5800: checking for working glob" >&5
d5793 1
a5793 1
#line 5806 "configure"
d5804 1
a5804 1
if { (eval echo configure:5817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5828 1
a5828 1
echo "configure:5841: checking if glob needs a prototype" >&5
d5833 1
a5833 1
#line 5846 "configure"
d5844 1
a5844 1
if { (eval echo configure:5857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d5931 1
a5931 1
echo "configure:5944: checking for $ac_func" >&5
d5936 1
a5936 1
#line 5949 "configure"
d5959 1
a5959 1
if { (eval echo configure:5972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d5990 1
a5990 1
echo "configure:6003: checking for $ac_hdr" >&5
d5995 1
a5995 1
#line 6008 "configure"
d6000 1
a6000 1
{ (eval echo configure:6013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6030 1
a6030 1
echo "configure:6043: checking for $ac_func" >&5
d6035 1
a6035 1
#line 6048 "configure"
d6058 1
a6058 1
if { (eval echo configure:6071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6089 1
a6089 1
echo "configure:6102: checking for getpwnam_r" >&5
d6104 1
a6104 1
#line 6117 "configure"
d6111 1
a6111 1
if { (eval echo configure:6124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6172 1
a6172 1
echo "configure:6185: checking if getpwnam_r is posix" >&5
d6182 1
a6182 1
#line 6195 "configure"
d6193 1
a6193 1
if { (eval echo configure:6206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6222 1
a6222 1
echo "configure:6235: checking for getsockopt" >&5
d6237 1
a6237 1
#line 6250 "configure"
d6249 1
a6249 1
if { (eval echo configure:6262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6312 1
a6312 1
echo "configure:6325: checking for setsockopt" >&5
d6327 1
a6327 1
#line 6340 "configure"
d6339 1
a6339 1
if { (eval echo configure:6352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6402 1
a6402 1
echo "configure:6415: checking for $ac_func" >&5
d6407 1
a6407 1
#line 6420 "configure"
d6430 1
a6430 1
if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6460 1
a6460 1
echo "configure:6473: checking for res_search" >&5
d6475 1
a6475 1
#line 6488 "configure"
d6496 1
a6496 1
if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6565 1
a6565 1
echo "configure:6578: checking for dn_expand" >&5
d6580 1
a6580 1
#line 6593 "configure"
d6601 1
a6601 1
if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6670 1
a6670 1
echo "configure:6683: checking for $ac_hdr" >&5
d6675 1
a6675 1
#line 6688 "configure"
d6680 1
a6680 1
{ (eval echo configure:6693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
d6709 1
a6709 1
echo "configure:6722: checking for $ac_func" >&5
d6714 1
a6714 1
#line 6727 "configure"
d6737 1
a6737 1
if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6762 1
a6762 1
echo "configure:6775: checking for working mmap" >&5
d6770 1
a6770 1
#line 6783 "configure"
d6910 1
a6910 1
if { (eval echo configure:6923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d6935 1
a6935 1
echo "configure:6948: checking for working alloca.h" >&5
d6940 1
a6940 1
#line 6953 "configure"
d6947 1
a6947 1
if { (eval echo configure:6960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d6968 1
a6968 1
echo "configure:6981: checking for alloca" >&5
d6973 1
a6973 1
#line 6986 "configure"
d7001 1
a7001 1
if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7033 1
a7033 1
echo "configure:7046: checking whether alloca needs Cray hooks" >&5
d7038 1
a7038 1
#line 7051 "configure"
d7063 1
a7063 1
echo "configure:7076: checking for $ac_func" >&5
d7068 1
a7068 1
#line 7081 "configure"
d7091 1
a7091 1
if { (eval echo configure:7104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7118 1
a7118 1
echo "configure:7131: checking stack direction for C alloca" >&5
d7126 1
a7126 1
#line 7139 "configure"
d7145 1
a7145 1
if { (eval echo configure:7158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d7171 1
a7171 1
echo "configure:7184: checking for $ac_func" >&5
d7176 1
a7176 1
#line 7189 "configure"
d7199 1
a7199 1
if { (eval echo configure:7212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7225 1
a7225 1
echo "configure:7238: checking if getlogin is posix" >&5
d7253 1
a7253 1
echo "configure:7266: checking for hstrerror" >&5
d7268 1
a7268 1
#line 7281 "configure"
d7277 1
a7277 1
if { (eval echo configure:7290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7348 1
a7348 1
echo "configure:7361: checking if hstrerror needs a prototype" >&5
d7353 1
a7353 1
#line 7366 "configure"
d7366 1
a7366 1
if { (eval echo configure:7379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d7394 1
a7394 1
echo "configure:7407: checking for $ac_func" >&5
d7399 1
a7399 1
#line 7412 "configure"
d7422 1
a7422 1
if { (eval echo configure:7435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7455 1
a7455 1
echo "configure:7468: checking for $ac_func" >&5
d7460 1
a7460 1
#line 7473 "configure"
d7483 1
a7483 1
if { (eval echo configure:7496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7516 1
a7516 1
echo "configure:7529: checking for $ac_func" >&5
d7521 1
a7521 1
#line 7534 "configure"
d7544 1
a7544 1
if { (eval echo configure:7557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7577 1
a7577 1
echo "configure:7590: checking for $ac_func" >&5
d7582 1
a7582 1
#line 7595 "configure"
d7605 1
a7605 1
if { (eval echo configure:7618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7638 1
a7638 1
echo "configure:7651: checking for $ac_func" >&5
d7643 1
a7643 1
#line 7656 "configure"
d7666 1
a7666 1
if { (eval echo configure:7679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7699 1
a7699 1
echo "configure:7712: checking for $ac_func" >&5
d7704 1
a7704 1
#line 7717 "configure"
d7727 1
a7727 1
if { (eval echo configure:7740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7760 1
a7760 1
echo "configure:7773: checking for $ac_func" >&5
d7765 1
a7765 1
#line 7778 "configure"
d7788 1
a7788 1
if { (eval echo configure:7801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7821 1
a7821 1
echo "configure:7834: checking for $ac_func" >&5
d7826 1
a7826 1
#line 7839 "configure"
d7849 1
a7849 1
if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7882 1
a7882 1
echo "configure:7895: checking for $ac_func" >&5
d7887 1
a7887 1
#line 7900 "configure"
d7910 1
a7910 1
if { (eval echo configure:7923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d7943 1
a7943 1
echo "configure:7956: checking for $ac_func" >&5
d7948 1
a7948 1
#line 7961 "configure"
d7971 1
a7971 1
if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8004 1
a8004 1
echo "configure:8017: checking for $ac_func" >&5
d8009 1
a8009 1
#line 8022 "configure"
d8032 1
a8032 1
if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8065 1
a8065 1
echo "configure:8078: checking for $ac_func" >&5
d8070 1
a8070 1
#line 8083 "configure"
d8093 1
a8093 1
if { (eval echo configure:8106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8128 1
a8128 1
echo "configure:8141: checking if gethostname needs a prototype" >&5
d8133 1
a8133 1
#line 8146 "configure"
d8144 1
a8144 1
if { (eval echo configure:8157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8173 1
a8173 1
echo "configure:8186: checking if mkstemp needs a prototype" >&5
d8178 1
a8178 1
#line 8191 "configure"
d8189 1
a8189 1
if { (eval echo configure:8202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8218 1
a8218 1
echo "configure:8231: checking if inet_aton needs a prototype" >&5
d8223 1
a8223 1
#line 8236 "configure"
d8245 1
a8245 1
if { (eval echo configure:8258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8271 1
a8271 1
echo "configure:8284: checking if realloc is broken" >&5
d8281 1
a8281 1
#line 8294 "configure"
d8293 1
a8293 1
if { (eval echo configure:8306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8319 1
a8319 1
echo "configure:8332: checking if getcwd is broken" >&5
d8330 1
a8330 1
#line 8343 "configure"
d8352 1
a8352 1
if { (eval echo configure:8365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d8381 1
a8381 1
echo "configure:8394: checking which authentication modules should be built" >&5
d8401 13
d8416 1
a8416 1
echo "configure:8416: checking if gethostbyname is compatible with system prototype" >&5
d8421 1
a8421 1
#line 8421 "configure"
d8444 1
a8444 1
if { (eval echo configure:8444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8469 1
a8469 1
echo "configure:8469: checking if gethostbyaddr is compatible with system prototype" >&5
d8474 1
a8474 1
#line 8474 "configure"
d8497 1
a8497 1
if { (eval echo configure:8497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8522 1
a8522 1
echo "configure:8522: checking if getservbyname is compatible with system prototype" >&5
d8527 1
a8527 1
#line 8527 "configure"
d8550 1
a8550 1
if { (eval echo configure:8550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8575 1
a8575 1
echo "configure:8575: checking if openlog is compatible with system prototype" >&5
d8580 1
a8580 1
#line 8580 "configure"
d8591 1
a8591 1
if { (eval echo configure:8591: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8617 1
a8617 1
echo "configure:8617: checking if crypt needs a prototype" >&5
d8622 1
a8622 1
#line 8622 "configure"
d8639 1
a8639 1
if { (eval echo configure:8639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8666 1
a8666 1
echo "configure:8666: checking if fclose needs a prototype" >&5
d8671 1
a8671 1
#line 8671 "configure"
d8683 1
a8683 1
if { (eval echo configure:8683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8710 1
a8710 1
echo "configure:8710: checking if strtok_r needs a prototype" >&5
d8715 1
a8715 1
#line 8715 "configure"
d8727 1
a8727 1
if { (eval echo configure:8727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8754 1
a8754 1
echo "configure:8754: checking if strsep needs a prototype" >&5
d8759 1
a8759 1
#line 8759 "configure"
d8771 1
a8771 1
if { (eval echo configure:8771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8798 1
a8798 1
echo "configure:8798: checking if getusershell needs a prototype" >&5
d8803 1
a8803 1
#line 8803 "configure"
d8815 1
a8815 1
if { (eval echo configure:8815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8842 1
a8842 1
echo "configure:8842: checking if utime needs a prototype" >&5
d8847 1
a8847 1
#line 8847 "configure"
d8861 1
a8861 1
if { (eval echo configure:8861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8887 1
a8887 1
echo "configure:8887: checking for h_errno" >&5
d8893 1
a8893 1
#line 8893 "configure"
d8901 1
a8901 1
if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d8924 1
a8924 1
echo "configure:8924: checking if h_errno is properly declared" >&5
d8930 1
a8930 1
#line 8930 "configure"
d8943 1
a8943 1
if { (eval echo configure:8943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d8974 1
a8974 1
echo "configure:8974: checking for h_errlist" >&5
d8980 1
a8980 1
#line 8980 "configure"
d8988 1
a8988 1
if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9011 1
a9011 1
echo "configure:9011: checking if h_errlist is properly declared" >&5
d9017 1
a9017 1
#line 9017 "configure"
d9027 1
a9027 1
if { (eval echo configure:9027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9058 1
a9058 1
echo "configure:9058: checking for h_nerr" >&5
d9064 1
a9064 1
#line 9064 "configure"
d9072 1
a9072 1
if { (eval echo configure:9072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9095 1
a9095 1
echo "configure:9095: checking if h_nerr is properly declared" >&5
d9101 1
a9101 1
#line 9101 "configure"
d9111 1
a9111 1
if { (eval echo configure:9111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9142 1
a9142 1
echo "configure:9142: checking for __progname" >&5
d9148 1
a9148 1
#line 9148 "configure"
d9156 1
a9156 1
if { (eval echo configure:9156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9179 1
a9179 1
echo "configure:9179: checking if __progname is properly declared" >&5
d9185 1
a9185 1
#line 9185 "configure"
d9195 1
a9195 1
if { (eval echo configure:9195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9226 1
a9226 1
echo "configure:9226: checking if optarg is properly declared" >&5
d9232 1
a9232 1
#line 9232 "configure"
d9243 1
a9243 1
if { (eval echo configure:9243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9270 1
a9270 1
echo "configure:9270: checking if optind is properly declared" >&5
d9276 1
a9276 1
#line 9276 "configure"
d9287 1
a9287 1
if { (eval echo configure:9287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9314 1
a9314 1
echo "configure:9314: checking if opterr is properly declared" >&5
d9320 1
a9320 1
#line 9320 "configure"
d9331 1
a9331 1
if { (eval echo configure:9331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9358 1
a9358 1
echo "configure:9358: checking if optopt is properly declared" >&5
d9364 1
a9364 1
#line 9364 "configure"
d9375 1
a9375 1
if { (eval echo configure:9375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9403 1
a9403 1
echo "configure:9403: checking if environ is properly declared" >&5
d9409 1
a9409 1
#line 9409 "configure"
d9417 1
a9417 1
if { (eval echo configure:9417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9444 1
a9444 1
echo "configure:9444: checking return type of signal handlers" >&5
d9449 1
a9449 1
#line 9449 "configure"
d9466 1
a9466 1
if { (eval echo configure:9466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9495 1
a9495 1
echo "configure:9495: checking for ut_addr in struct utmp" >&5
d9501 1
a9501 1
#line 9501 "configure"
d9509 1
a9509 1
if { (eval echo configure:9509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9535 1
a9535 1
echo "configure:9535: checking for ut_host in struct utmp" >&5
d9541 1
a9541 1
#line 9541 "configure"
d9549 1
a9549 1
if { (eval echo configure:9549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9575 1
a9575 1
echo "configure:9575: checking for ut_id in struct utmp" >&5
d9581 1
a9581 1
#line 9581 "configure"
d9589 1
a9589 1
if { (eval echo configure:9589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9615 1
a9615 1
echo "configure:9615: checking for ut_pid in struct utmp" >&5
d9621 1
a9621 1
#line 9621 "configure"
d9629 1
a9629 1
if { (eval echo configure:9629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9655 1
a9655 1
echo "configure:9655: checking for ut_type in struct utmp" >&5
d9661 1
a9661 1
#line 9661 "configure"
d9669 1
a9669 1
if { (eval echo configure:9669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9695 1
a9695 1
echo "configure:9695: checking for ut_user in struct utmp" >&5
d9701 1
a9701 1
#line 9701 "configure"
d9709 1
a9709 1
if { (eval echo configure:9709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9735 1
a9735 1
echo "configure:9735: checking for ut_exit in struct utmpx" >&5
d9741 1
a9741 1
#line 9741 "configure"
d9749 1
a9749 1
if { (eval echo configure:9749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9775 1
a9775 1
echo "configure:9775: checking for ut_syslen in struct utmpx" >&5
d9781 1
a9781 1
#line 9781 "configure"
d9789 1
a9789 1
if { (eval echo configure:9789: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9817 1
a9817 1
echo "configure:9817: checking for tm_gmtoff in struct tm" >&5
d9823 1
a9823 1
#line 9823 "configure"
d9830 1
a9830 1
if { (eval echo configure:9830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9856 1
a9856 1
echo "configure:9856: checking for tm_zone in struct tm" >&5
d9862 1
a9862 1
#line 9862 "configure"
d9869 1
a9869 1
if { (eval echo configure:9869: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9896 1
a9896 1
echo "configure:9896: checking for timezone" >&5
d9902 1
a9902 1
#line 9902 "configure"
d9910 1
a9910 1
if { (eval echo configure:9910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d9933 1
a9933 1
echo "configure:9933: checking if timezone is properly declared" >&5
d9939 1
a9939 1
#line 9939 "configure"
d9947 1
a9947 1
if { (eval echo configure:9947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d9979 1
a9979 1
echo "configure:9979: checking for sa_family_t" >&5
d9984 1
a9984 1
#line 9984 "configure"
d9996 1
a9996 1
if { (eval echo configure:9996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
a10022 46
cv=`echo "socklen_t" | sed 'y%./+- %__p__%'`
echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
echo "configure:10025: 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 10030 "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:10042: \"$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____%'`

: << END
@@@@@@funcs="$funcs socklen_t"@@@@@@
END

  cat >> confdefs.h <<EOF
#define $ac_tr_hdr 1
EOF

fi

 

d10025 1
a10025 1
echo "configure:10071: checking for struct sockaddr_storage" >&5
d10030 1
a10030 1
#line 10076 "configure"
d10042 1
a10042 1
if { (eval echo configure:10088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10070 1
a10070 1
echo "configure:10116: checking for struct spwd" >&5
d10076 1
a10076 1
#line 10122 "configure"
d10086 1
a10086 1
if { (eval echo configure:10132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10110 1
a10110 1
echo "configure:10156: checking for st_blksize in struct stat" >&5
d10115 1
a10115 1
#line 10161 "configure"
d10123 1
a10123 1
if { (eval echo configure:10169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10147 1
a10147 1
echo "configure:10193: checking for struct winsize" >&5
d10155 1
a10155 1
#line 10201 "configure"
d10177 1
a10177 1
#line 10223 "configure"
d10192 1
a10192 1
#line 10238 "configure"
d10210 1
a10210 1
echo "configure:10256: checking for pid_t" >&5
d10215 1
a10215 1
#line 10261 "configure"
d10243 1
a10243 1
echo "configure:10289: checking for uid_t in sys/types.h" >&5
d10248 1
a10248 1
#line 10294 "configure"
d10277 1
a10277 1
echo "configure:10323: checking for off_t" >&5
d10282 1
a10282 1
#line 10328 "configure"
d10310 1
a10310 1
echo "configure:10356: checking for size_t" >&5
d10315 1
a10315 1
#line 10361 "configure"
d10344 1
a10344 1
echo "configure:10390: checking for ssize_t" >&5
d10349 1
a10349 1
#line 10395 "configure"
a10380 35
echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
echo "configure:10428: 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
else
  cat > conftest.$ac_ext <<EOF
#line 10433 "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
else
  rm -rf conftest*
  ac_cv_type_sig_atomic_t=no
fi
rm -f conftest*

fi
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

fi


d10383 1
a10383 1
echo "configure:10464: checking for broken sys/socket.h" >&5
d10389 1
a10389 1
#line 10470 "configure"
d10398 1
a10398 1
if { (eval echo configure:10479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10415 1
a10415 1
echo "configure:10496: checking for broken netdb.h" >&5
d10421 1
a10421 1
#line 10502 "configure"
d10430 1
a10430 1
if { (eval echo configure:10511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10452 1
a10452 1
echo "configure:10533: checking for sa_len in struct sockaddr" >&5
d10458 1
a10458 1
#line 10539 "configure"
d10466 1
a10466 1
if { (eval echo configure:10547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10495 1
a10495 1
echo "configure:10576: checking for ouid in SIAENTITY" >&5
d10501 1
a10501 1
#line 10582 "configure"
d10508 1
a10508 1
if { (eval echo configure:10589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10534 5
a10538 3
echo $ac_n "checking for getmsg""... $ac_c" 1>&6
echo "configure:10616: checking for getmsg" >&5
if eval "test \"`echo '$''{'ac_cv_func_getmsg'+set}'`\" = set"; then
d10542 1
a10542 1
#line 10621 "configure"
d10545 1
a10545 1
    which can conflict with char getmsg(); below.  */
d10550 1
a10550 1
char getmsg();
d10557 1
a10557 1
#if defined (__stub_getmsg) || defined (__stub___getmsg)
d10560 1
a10560 1
getmsg();
d10565 1
a10565 1
if { (eval echo configure:10644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10567 1
a10567 1
  eval "ac_cv_func_getmsg=yes"
d10572 1
a10572 1
  eval "ac_cv_func_getmsg=no"
d10577 1
a10577 1
if eval "test \"`echo '$ac_cv_func_'getmsg`\" = yes"; then
d10579 5
a10583 1
  :
d10587 1
d10590 1
a10590 1
if test "$ac_cv_func_getmsg" = "yes"; then
d10593 2
a10594 2
echo "configure:10667: checking for working getmsg" >&5
if eval "test \"`echo '$''{'ac_cv_func_getmsg_work'+set}'`\" = set"; then
d10598 1
a10598 1
  ac_cv_func_getmsg_work=no
d10601 1
a10601 1
#line 10675 "configure"
a10604 1
#include <errno.h>
d10608 1
a10608 4
  int ret;
  ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL);
  if(ret < 0 && errno == ENOSYS)
    return 1;
d10613 1
a10613 1
if { (eval echo configure:10691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
d10615 1
a10615 1
  ac_cv_func_getmsg_work=yes
d10620 1
a10620 1
  ac_cv_func_getmsg_work=no
d10627 2
a10628 2
echo "$ac_t""$ac_cv_func_getmsg_work" 1>&6
test "$ac_cv_func_getmsg_work" = "yes" &&
d10642 1
a10642 1
echo "configure:10720: checking for el_init" >&5
d10657 1
a10657 1
#line 10735 "configure"
d10664 1
a10664 1
if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10725 1
a10725 1
echo "configure:10803: checking for four argument el_init" >&5
d10731 1
a10731 1
#line 10809 "configure"
d10739 1
a10739 1
if { (eval echo configure:10817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
d10767 1
a10767 1
echo "configure:10845: checking for readline" >&5
d10782 1
a10782 1
#line 10860 "configure"
d10789 1
a10789 1
if { (eval echo configure:10867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
d10896 1
a10896 1
echo "configure:10974: checking for streamspty" >&5
d10898 1
a10898 1
SunOS\ 4*|OSF1*|IRIX\ 4*|HP-UX\ ?.1[01].*)
d10906 1
a10906 1
		krb_cv_sys_streamspty="$ac_cv_func_getmsg_work"
d10910 1
a10910 1
	krb_cv_sys_streamspty="$ac_cv_func_getmsg_work"
d10922 1
a10922 1
echo "configure:11000: checking if /bin/ls takes -A" >&5
d10935 1
a10935 1
echo "configure:11013: checking for suffix of preformatted manual pages" >&5
a11239 1
s%@@MAKE_X_SCRIPTS_BIN@@%$MAKE_X_SCRIPTS_BIN%g
d11258 1
@


