summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-08-26 19:28:53 +0000
committerRuss Allbery <rra@stanford.edu>2007-08-26 19:28:53 +0000
commitce2693b6ba82c4e4ee930a31b0ddbca2e8e6d800 (patch)
treea0a972f236300bafb09cdbc9b83948a92867ed8a /m4
parent4e9e9c11f356b2dd73d0250ff82897eff60da7eb (diff)
Check for the MIT Kerberos GSS-API library first in reduced dependency
mode for improved reproducibility of the Debian build.
Diffstat (limited to 'm4')
-rw-r--r--m4/krb5.m411
1 files changed, 6 insertions, 5 deletions
diff --git a/m4/krb5.m4 b/m4/krb5.m4
index f91280d..a82cc52 100644
--- a/m4/krb5.m4
+++ b/m4/krb5.m4
@@ -19,12 +19,13 @@ dnl Copyright 2005, 2006 Board of Trustees, Leland Stanford Jr. University
dnl See README for licensing terms.
dnl Does the appropriate library checks for reduced-dependency GSS-API
-dnl linkage.
+dnl linkage. Check for MIT Kerberos first since it has the least generic name
+dnl for the GSS-API library.
AC_DEFUN([_RRA_LIB_KRB5_GSSAPI_REDUCED],
-[AC_CHECK_LIB([gssapi], [gss_import_name],
- [KRBLIBS="-lgssapi"],
- [AC_CHECK_LIB([gssapi_krb5], [gss_import_name],
- [KRBLIBS="-lgssapi_krb5"],
+[AC_CHECK_LIB([gssapi_krb5], [gss_import_name],
+ [KRBLIBS="-lgssapi_krb5"],
+ [AC_CHECK_LIB([gssapi], [gss_import_name],
+ [KRBLIBS="-lgssapi"],
[AC_MSG_ERROR([cannot find usable GSS-API library])])])])
dnl Does the appropriate library checks for reduced-dependency krb5 linkage.