Fossil SCM

Make readline/editline support actually work (HAVE_READLINE/HAVE_EDITLINE defines were missing)

jan.nijtmans 2014-09-16 13:16 trunk
Commit 23c54c0106761ab02ba80845320d1d9cc301ca9c
1 file changed +2
+2
--- auto.def
+++ auto.def
@@ -257,13 +257,15 @@
257257
258258
if {[opt-bool lineedit]} {
259259
# Need readline-compatible line editing
260260
cc-with {-includes stdio.h} {
261261
if {[cc-check-includes readline/readline.h] && [cc-check-function-in-lib readline readline]} {
262
+ define-append EXTRA_CFLAGS -DHAVE_READLINE
262263
msg-result "Using readline for line editing"
263264
} elseif {[cc-check-includes editline/readline.h] && [cc-check-function-in-lib readline edit]} {
264265
define-feature editline
266
+ define-append EXTRA_CFLAGS -DHAVE_EDITLINE
265267
msg-result "Using editline for line editing"
266268
}
267269
}
268270
}
269271
270272
--- auto.def
+++ auto.def
@@ -257,13 +257,15 @@
257
258 if {[opt-bool lineedit]} {
259 # Need readline-compatible line editing
260 cc-with {-includes stdio.h} {
261 if {[cc-check-includes readline/readline.h] && [cc-check-function-in-lib readline readline]} {
 
262 msg-result "Using readline for line editing"
263 } elseif {[cc-check-includes editline/readline.h] && [cc-check-function-in-lib readline edit]} {
264 define-feature editline
 
265 msg-result "Using editline for line editing"
266 }
267 }
268 }
269
270
--- auto.def
+++ auto.def
@@ -257,13 +257,15 @@
257
258 if {[opt-bool lineedit]} {
259 # Need readline-compatible line editing
260 cc-with {-includes stdio.h} {
261 if {[cc-check-includes readline/readline.h] && [cc-check-function-in-lib readline readline]} {
262 define-append EXTRA_CFLAGS -DHAVE_READLINE
263 msg-result "Using readline for line editing"
264 } elseif {[cc-check-includes editline/readline.h] && [cc-check-function-in-lib readline edit]} {
265 define-feature editline
266 define-append EXTRA_CFLAGS -DHAVE_EDITLINE
267 msg-result "Using editline for line editing"
268 }
269 }
270 }
271
272

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button