package/freeswitch: add optional dependency to libedit

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-04-17 17:24:25 +02:00 committed by Thomas Petazzoni
parent ffd066017a
commit bcf1123b24

View File

@ -69,7 +69,6 @@ FREESWITCH_CONF_ENV += \
ac_cv_gcc_supports_w_no_unused_result=no ac_cv_gcc_supports_w_no_unused_result=no
FREESWITCH_CONF_OPTS = \ FREESWITCH_CONF_OPTS = \
--disable-core-libedit-support \
--disable-core-odbc-support \ --disable-core-odbc-support \
--disable-libvpx \ --disable-libvpx \
--disable-libyuv \ --disable-libyuv \
@ -160,4 +159,11 @@ define FREESWITCH_ENABLE_MODULES
endef endef
FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES FREESWITCH_PRE_CONFIGURE_HOOKS += FREESWITCH_ENABLE_MODULES
ifeq ($(BR2_PACKAGE_LIBEDIT),y)
FREESWITCH_DEPENDENCIES += libedit
FREESWITCH_CONF_OPTS += --enable-core-libedit-support
else
FREESWITCH_CONF_OPTS += --disable-core-libedit-support
endif
$(eval $(autotools-package)) $(eval $(autotools-package))