krb5 commit: Use fixed rcache directory when cross-compiling
Greg Hudson
ghudson at mit.edu
Mon Oct 19 15:15:09 EDT 2015
https://github.com/krb5/krb5/commit/db2acb6b06e469c6c12476bec68acc7964626523
commit db2acb6b06e469c6c12476bec68acc7964626523
Author: Paul Fertser <fercerpav at gmail.com>
Date: Mon Oct 19 14:46:14 2015 -0400
Use fixed rcache directory when cross-compiling
When cross-compiling, looking at what directories are present on the
build machine makes no sense. Default to /var/tmp instead.
[ghudson at mit.edu: use /var/tmp instead of /tmp; adjust commit message]
ticket: 8254
target_version: 1.14
tags: pullup
src/configure.in | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/configure.in b/src/configure.in
index fd06dcb..b2a8675 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -757,11 +757,15 @@ AC_CHECK_TYPE(time_t, long)
AC_MSG_CHECKING([for replay cache directory])
AC_CACHE_VAL(krb5_cv_sys_rcdir,
[
-for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do
- test -d $t_dir || continue
- krb5_cv_sys_rcdir=$t_dir
- break
-done])
+if test $cross_compiling = yes; then
+ krb5_cv_sys_rcdir=/var/tmp
+else
+ for t_dir in /var/tmp /usr/tmp /var/usr/tmp /tmp ; do
+ test -d $t_dir || continue
+ krb5_cv_sys_rcdir=$t_dir
+ break
+ done
+fi])
AC_MSG_RESULT($krb5_cv_sys_rcdir)
KRB5_RCTMPDIR=$krb5_cv_sys_rcdir
AC_SUBST(KRB5_RCTMPDIR)
More information about the cvs-krb5
mailing list