diff options
| author | Tom Yu <tlyu@mit.edu> | 2004-11-19 20:36:45 +0000 |
|---|---|---|
| committer | Tom Yu <tlyu@mit.edu> | 2004-11-19 20:36:45 +0000 |
| commit | 9e85238548219ec6607922a11bc4b1c1abc4d370 (patch) | |
| tree | dbcce2e00c8210f7cd52fe7d4aece4097de960b6 /src/aclocal.m4 | |
| parent | 109cafceda80db729a619ce97d5b263b3047c148 (diff) | |
| download | krb5-9e85238548219ec6607922a11bc4b1c1abc4d370.tar.gz krb5-9e85238548219ec6607922a11bc4b1c1abc4d370.tar.xz krb5-9e85238548219ec6607922a11bc4b1c1abc4d370.zip | |
* aclocal.m4 (KRB5_AC_PRIOCNTL_HACK): Check for Solaris patch
117171-11 (sparc) or 117172-11 (x86), which fixes the Solaris 9
bug which can cause final pty output to be on close.
ticket: 2776
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16891 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
| -rw-r--r-- | src/aclocal.m4 | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4 index a060ac94f..595e41dd4 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -1636,14 +1636,37 @@ dnl KRB5_AC_PRIOCNTL_HACK dnl dnl AC_DEFUN([KRB5_AC_PRIOCNTL_HACK], +[AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_LANG_COMPILER_REQUIRE])dnl +AC_CACHE_CHECK([whether to use priocntl hack], [krb5_cv_priocntl_hack], [case $krb5_cv_host in *-*-solaris2.9*) - PRIOCNTL_HACK=1 + if test "$cross_compiling" = yes; then + krb5_cv_priocntl_hack=yes + else + # Solaris patch 117171-11 (sparc) or 117172-11 (x86) + # fixes the Solaris 9 bug where final pty output + # gets lost on close. + if showrev -p | $AWK 'BEGIN { e = 1 } +/Patch: 11717[[12]]/ { x = index[]([$]2, "-"); +if (substr[]([$]2, x + 1, length([$]2) - x) >= 11) +{ e = 0 } else { e = 1 } } +END { exit e; }'; then + krb5_cv_priocntl_hack=no + else + krb5_cv_priocntl_hack=yes + fi + fi ;; *) - PRIOCNTL_HACK=0 + krb5_cv_priocntl_hack=no ;; -esac +esac]) +if test "$krb5_cv_priocntl_hack" = yes; then + PRIOCNTL_HACK=1 +else + PRIOCNTL_HACK=0 +fi AC_SUBST(PRIOCNTL_HACK)]) dnl dnl |
