From: Ben Hutchings <ben@decadent.org.uk>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: Justin Pryzby <justinpryzby@users.sourceforge.net>,
472341@bugs.debian.org, linux-nfs@vger.kernel.org
Subject: configure: Fix error message for Kerberos versions with suffixes
Date: Thu, 26 Aug 2010 05:12:20 +0100 [thread overview]
Message-ID: <1282795940.22839.268.camel@localhost> (raw)
Justin Pryzby reported (some time ago) that the following error message
appeared while configuring nfs-utils:
checking for Kerberos v5... ./configure: line 23606: test: 163-beta1-debian: integer expression expected
/usr
The current KRBDIR is /usr
This is because the Kerberos version check assumes that all version
components are separated by dots. Change it to accept hyphens as
separators as well.
Reported-by: Justin Pryzby <justinpryzby@users.sourceforge.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
--- a/aclocal/kerberos5.m4
+++ b/aclocal/kerberos5.m4
@@ -32,7 +32,7 @@
if test "$K5CONFIG" != ""; then
KRBCFLAGS=`$K5CONFIG --cflags`
KRBLIBS=`$K5CONFIG --libs gssapi`
- K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
+ K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,/@<:@.-@:>@/); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
AC_DEFINE_UNQUOTED(KRB5_VERSION, $K5VERS, [Define this as the Kerberos version number])
if test -f $dir/include/gssapi/gssapi_krb5.h -a \
\( -f $dir/lib/libgssapi_krb5.a -o \
---
--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
reply other threads:[~2010-08-26 4:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1282795940.22839.268.camel@localhost \
--to=ben@decadent.org.uk \
--cc=472341@bugs.debian.org \
--cc=chuck.lever@oracle.com \
--cc=justinpryzby@users.sourceforge.net \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.