[1114] in arla-drinkers
Re: 0.27 autoconf
daemon@ATHENA.MIT.EDU (Love)
Sun Aug 29 09:57:48 1999
From owner-arla-drinkers@stacken.kth.se Sun Aug 29 13:57:48 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 4279 invoked from network); 29 Aug 1999 13:57:47 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
by bloom-picayune.mit.edu with SMTP; 29 Aug 1999 13:57:47 -0000
Received: (from majordom@localhost)
by sundance.stacken.kth.se (8.8.8/8.8.8) id PAA23206
for arla-drinkers-list; Sun, 29 Aug 1999 15:50:53 +0200 (MET DST)
Received: from elixir.e.kth.se (elixir.e.kth.se [130.237.48.5])
by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id PAA23202
for <arla-drinkers@stacken.kth.se>; Sun, 29 Aug 1999 15:50:49 +0200 (MET DST)
Received: from hummel.e.kth.se (hummel.e.kth.se [130.237.43.135])
by elixir.e.kth.se (8.9.3/8.9.3) with ESMTP id PAA09589;
Sun, 29 Aug 1999 15:50:46 +0200 (MET DST)
Received: (from lha@localhost)
by hummel.e.kth.se (8.9.3/8.9.3) id PAA15378;
Sun, 29 Aug 1999 15:50:44 +0200 (MET DST)
To: Gerald Britton <gbritton@mit.edu>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: 0.27 autoconf
References: <19990829092058.A5553@light-brigade.mit.edu>
From: Love <lha@stacken.kth.se>
Date: 29 Aug 1999 15:50:43 +0200
In-Reply-To: Gerald Britton's message of "Sun, 29 Aug 1999 09:20:58 -0400"
Message-ID: <am3dx21yrw.fsf@hummel.e.kth.se>
Lines: 48
User-Agent: Gnus/5.0700000000000003 (Pterodactyl Gnus v0.91) Emacs/20.2
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk
Gerald Britton <gbritton@mit.edu> writes:
> the 0.27 autoconf scripts check for "libkrbafs.a" directly instead of
> doing a link check. This doesn't allow for shared libs to be used, and
> isn't as good of a check as doing the autoconf link check. Here is the
> quick hack I used to build with shared libs, it ought to be fixed in a
> better way though:
Yes. Could you try the following patch and see if it works for you ?
Love
Index: configure.in
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/configure.in,v
retrieving revision 1.306
diff -u -w -u -w -r1.306 configure.in
--- configure.in 1999/08/27 06:12:16 1.306
+++ configure.in 1999/08/29 13:43:45
@@ -536,15 +536,19 @@
export RXKAD_LIBS
MILKO_RXKAD_LIBS=`echo $RXKAD_LIBS | sed s,\.\./,\.\./\.\./,`
if test "$with_krbafs" != "no"; then
- if test -f "${with_krbafs}/lib/libkrbafs.a"; then
- KAFS_LIBS="-L${with_krbafs}/lib -lkrbafs"
- elif test -f "${with_krbafs}/libkrbafs.a"; then
- KAFS_LIBS="-L${with_krbafs} -lkrbafs"
+ KAFS_LIBS_PATH="${with_krbafs}/lib"
else
- AC_MSG_ERROR(didn't find any libkrbafs.a in ${with_krbafs})
+ KAFS_LIBS_PATH="${KRB_LIB_DIR}"
fi
- else
- KAFS_LIBS="-L${KRB_LIB_DIR} -lkafs"
+ arla_LIBS="$LIBS"
+ LIBS="-L${KAFS_LIBS_PATH} $LIBS"
+ AC_FIND_FUNC_NO_LIBS(k_hasafs,[kafs krbafs],[])
+ LIBS="$arla_LIBS"
+ if test "X$ac_cv_funclib_k_hasafs" = "Xno"; then
+ AC_MSG_ERROR(didn't find any libkafs/libkrbafs)
+ fi
+ if test "X$ac_cv_funclib_k_hasafs" != "Xyes"; then
+ KAFS_LIBS="-L$KAFS_LIBS_PATH ${ac_cv_funclib_k_hasafs}"
fi
RXKAD_MAKEFILE="rxkad/Makefile"
AC_DEFINE(KERBEROS, 1, [define if you have kerberos])