package/sqlite: add optional support for libedit

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Bernd Kuhls
2016-02-08 20:56:41 +01:00
committed by Thomas Petazzoni
parent 6c49ae49d9
commit 007c2ce917
3 changed files with 17 additions and 10 deletions

View File

@@ -45,11 +45,14 @@ else
SQLITE_CONF_OPTS += --disable-threadsafe
endif
ifeq ($(BR2_PACKAGE_SQLITE_READLINE),y)
ifeq ($(BR2_PACKAGE_NCURSES)$(BR2_PACKAGE_READLINE),yy)
SQLITE_DEPENDENCIES += ncurses readline
SQLITE_CONF_OPTS += --enable-readline
SQLITE_CONF_OPTS += --disable-editline --enable-readline
else ifeq ($(BR2_PACKAGE_LIBEDIT),y)
SQLITE_DEPENDENCIES += libedit
SQLITE_CONF_OPTS += --enable-editline --disable-readline
else
SQLITE_CONF_OPTS += --disable-readline
SQLITE_CONF_OPTS += --disable-editline --disable-readline
endif
$(eval $(autotools-package))