- (djm) [configure.ac] Check whether libdes is needed when building

with Heimdal krb5 support. On OpenBSD this library no longer exists,
   so linking it unconditionally causes a build failure; ok dtucker
This commit is contained in:
Damien Miller 2011-01-02 21:53:07 +11:00
parent 4a06f9271f
commit 41bccf75af
3 changed files with 10 additions and 5 deletions

View File

@ -1,5 +1,8 @@
20110102
- (djm) [loginrec.c] Fix some fd leaks on error paths. ok dtucker
- (djm) [configure.ac] Check whether libdes is needed when building
with Heimdal krb5 support. On OpenBSD this library no longer exists,
so linking it unconditionally causes a build failure; ok dtucker
20101226
- (dtucker) OpenBSD CVS Sync

View File

@ -1,4 +1,4 @@
# $Id: Makefile.in,v 1.311 2010/08/31 12:47:15 djm Exp $
# $Id: Makefile.in,v 1.312 2011/01/02 10:53:08 djm Exp $
# uncomment if you run a non bourne compatable shell. Ie. csh
#SHELL = @SH@
@ -230,7 +230,7 @@ catman-do:
@for f in $(MANPAGES_IN) ; do \
base=`echo $$f | sed 's/\..*$$//'` ; \
echo "$$f -> $$base.0" ; \
nroff -mandoc $$f | cat -v | sed -e 's/.\^H//g' \
mandoc $$f | cat -v | sed -e 's/.\^H//g' \
>$$base.0 ; \
done

View File

@ -1,4 +1,4 @@
# $Id: configure.ac,v 1.459 2010/12/04 12:20:50 dtucker Exp $
# $Id: configure.ac,v 1.460 2011/01/02 10:53:09 djm Exp $
#
# Copyright (c) 1999-2004 Damien Miller
#
@ -15,7 +15,7 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
AC_INIT(OpenSSH, Portable, openssh-unix-dev@mindrot.org)
AC_REVISION($Revision: 1.459 $)
AC_REVISION($Revision: 1.460 $)
AC_CONFIG_SRCDIR([ssh.c])
AC_CONFIG_HEADER(config.h)
@ -3516,10 +3516,12 @@ AC_ARG_WITH(kerberos5,
[ char *tmp = heimdal_version; ],
[ AC_MSG_RESULT(yes)
AC_DEFINE(HEIMDAL)
K5LIBS="-lkrb5 -ldes"
K5LIBS="-lkrb5"
K5LIBS="$K5LIBS -lcom_err -lasn1"
AC_CHECK_LIB(roken, net_write,
[K5LIBS="$K5LIBS -lroken"])
AC_CHECK_LIB(des, des_cbc_encrypt,
[K5LIBS="$K5LIBS -ldes"])
],
[ AC_MSG_RESULT(no)
K5LIBS="-lkrb5 -lk5crypto -lcom_err"