*** rxvt-2.6.3/configure.org	Tue Jul 17 11:37:16 2001
--- rxvt-2.6.3/configure	Tue Jul 17 11:40:00 2001
***************
*** 4653,4667 ****
  	checkerror = 0;
      else
  	checkerror = ((statbuf.st_mode & S_IXOTH) == S_IXOTH) ? 1 : 0;
! #if defined(__sgi) || defined(sgi) || defined(__sgi__)
      if (stat("/dev/ptc", &statbuf) >= 0)
  # ifdef HAVE__GETPTY
! 	fprintf(f, "SGI4");
  # else
! 	fprintf(f, "SGI3");
  # endif
      else
! 	fprintf(f, "SGI4");
      exit(0);
  #endif
  #ifdef _SCO_DS
--- 4653,4668 ----
  	checkerror = 0;
      else
  	checkerror = ((statbuf.st_mode & S_IXOTH) == S_IXOTH) ? 1 : 0;
! #if (defined(__sgi) || defined(sgi) || defined(__sgi__)) || \
!     (defined (_AIX) || defined (AIX) || defined (__AIX__))
      if (stat("/dev/ptc", &statbuf) >= 0)
  # ifdef HAVE__GETPTY
! 	fprintf(f, "GETPTY");
  # else
! 	fprintf(f, "PTC");
  # endif
      else
! 	fprintf(f, "GETPTY");
      exit(0);
  #endif
  #ifdef _SCO_DS
***************
*** 4737,4750 ****
  
    
  fi
! if test x${rxvt_cv_ptys} = xSGI3; then
    cat >> confdefs.h <<\EOF
  #define PTYS_ARE_PTC 1
  EOF
  
    
  fi
! if test x${rxvt_cv_ptys} = xSGI4; then
    cat >> confdefs.h <<\EOF
  #define PTYS_ARE__GETPTY 1
  EOF
--- 4738,4751 ----
  
    
  fi
! if test x${rxvt_cv_ptys} = xPTC; then
    cat >> confdefs.h <<\EOF
  #define PTYS_ARE_PTC 1
  EOF
  
    
  fi
! if test x${rxvt_cv_ptys} = xGETPTY; then
    cat >> confdefs.h <<\EOF
  #define PTYS_ARE__GETPTY 1
  EOF
