Skip to content

Commit

Permalink
Use fixed rcache directory when cross-compiling
Browse files Browse the repository at this point in the history
When cross-compiling, looking at what directories are present on the
build machine makes no sense.  Default to /var/tmp instead.

[ghudson@mit.edu: use /var/tmp instead of /tmp; adjust commit message]

(cherry picked from commit db2acb6)

ticket: 8254
version_fixed: 1.14
status: resolved
  • Loading branch information
paulfertser authored and tlyu committed Oct 26, 2015
1 parent 67bdf81 commit b32e038
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/configure.in
Expand Up @@ -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)
Expand Down

0 comments on commit b32e038

Please sign in to comment.