From 7e50fe1a55b8b799faf7730327ab628a65cf7f27 Mon Sep 17 00:00:00 2001
From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Date: Sat, 7 Jun 2008 15:19:18 +0000
Subject: - if UNIX98PTY_ONLY is not set then we're in legacy land anyway which
 needs   UCLIBC_HAS_GETPT unconditionally for __libc_ptyname{1,2}[] and
 related bloat.

---
 extra/Configs/Config.in | 37 ++++++++++++++++++++++++-------------
 1 file changed, 24 insertions(+), 13 deletions(-)

diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in
index db2483e5f..892768500 100644
--- a/extra/Configs/Config.in
+++ b/extra/Configs/Config.in
@@ -558,15 +558,31 @@ config UCLIBC_HAS_PTY
 
 	  If unsure, just answer Y.
 
+config ASSUME_DEVPTS
+	bool "Assume that /dev/pts is a devpts or devfs file system"
+	default y
+	depends on UCLIBC_HAS_PTY
+	help
+	  Enable this if /dev/pts is on a devpts or devfs filesystem.  Both
+	  these filesystems automatically manage permissions on the /dev/pts
+	  devices.  You may need to mount your devpts or devfs filesystem on
+	  /dev/pts for this to work.
+
+	  Most people should answer Y.
+
 config UNIX98PTY_ONLY
 	bool "Support only Unix 98 PTYs"
 	default y
 	depends on UCLIBC_HAS_PTY
 	help
 	  If you want to support only Unix 98 PTYs enable this.  Some older
-	  applications may need this disabled.  For most current programs,
-	  you can generally answer Y.
+	  applications may need this disabled and will thus use legacy BSD
+	  style PTY handling which is more complex and also bigger than
+	  Unix 98 PTY handling.
+
+	  For most current programs, you can generally answer Y.
 
+if UNIX98PTY_ONLY
 config UCLIBC_HAS_GETPT
 	bool "Support getpt() (glibc-compat)"
 	default n
@@ -578,18 +594,13 @@ config UCLIBC_HAS_GETPT
 	  Either use posix_openpt() or just open /dev/ptmx yourself.
 
 	  If unsure, just say N.
+endif
 
-config ASSUME_DEVPTS
-	bool "Assume that /dev/pts is a devpts or devfs file system"
-	default y
-	depends on UCLIBC_HAS_PTY
-	help
-	  Enable this if /dev/pts is on a devpts or devfs filesystem.  Both
-	  these filesystems automatically manage permissions on the /dev/pts
-	  devices.  You may need to mount your devpts or devfs filesystem on
-	  /dev/pts for this to work.
-
-	  Most people should answer Y.
+if !UNIX98PTY_ONLY
+# Have to use __libc_ptyname{1,2}[] and related bloat
+config UCLIBC_HAS_GETPT
+	def_bool y
+endif
 
 config UCLIBC_HAS_TM_EXTENSIONS
 	bool "Support 'struct tm' timezone extension fields"
-- 
cgit v1.2.3