From 1b50145b6f74f0d398bc01ae25d21fd18457a7c5 Mon Sep 17 00:00:00 2001 From: Tristan Riehs Date: Fri, 31 May 2024 21:56:22 +0900 Subject: Switch to linenoise instead of readline The API is the exact same, and this implementation is much lighter and memory-leak-free. --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 189162f..e3298be 100644 --- a/configure.ac +++ b/configure.ac @@ -7,4 +7,13 @@ AC_CONFIG_FILES([ Makefile src/Makefile ]) +AC_CHECK_PROG([DLPROG], [curl], [curl -LO], [false]) +if [ ! -d "./linenoise-master/" ] +then + if [ ! -f "./master.zip" ] + then + $DLPROG 'https://github.com/antirez/linenoise/archive/refs/heads/master.zip' + fi + unzip 'master.zip' +fi AC_OUTPUT -- cgit v1.2.3