aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2011-09-13 10:37:33 +1000
committerSteve Bennett <steveb@workware.net.au>2011-09-14 09:03:30 +1000
commitb78082fffb3df0a64b33def5476b59b914f97de9 (patch)
tree89c5ca3084f4188c80920a2cb1ea867c0190386e /auto.def
parenta758f8cefaa38292fa91e8bf7a097a5341edd3c5 (diff)
downloadjimtcl-b78082fffb3df0a64b33def5476b59b914f97de9.zip
jimtcl-b78082fffb3df0a64b33def5476b59b914f97de9.tar.gz
jimtcl-b78082fffb3df0a64b33def5476b59b914f97de9.tar.bz2
Restructure linenoise in prep. for win32 support
Separate out the termios-specific code Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def11
1 files changed, 6 insertions, 5 deletions
diff --git a/auto.def b/auto.def
index c24a009..f796d81 100644
--- a/auto.def
+++ b/auto.def
@@ -174,11 +174,12 @@ if {[opt-bool ipv6 full]} {
msg-result "Enabling IPv6"
define JIM_IPV6
}
-if {[opt-bool lineedit full] && [cc-check-includes termios.h] && [cc-check-functions isatty]} {
- msg-result "Enabling line editing"
- define USE_LINENOISE
- lappend extra_objs linenoise.o
- cc-check-functions isatty
+if {[opt-bool lineedit full]} {
+ if {[cc-check-includes termios.h] && [cc-check-functions isatty]} {
+ msg-result "Enabling line editing"
+ define USE_LINENOISE
+ lappend extra_objs linenoise.o
+ }
}
if {[opt-bool references]} {
msg-result "Enabling references"