package/freeswitch: add optional dependency to libedit
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 17 Apr 2016 15:24:25 +0000 (17:24 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 17 Apr 2016 20:17:11 +0000 (22:17 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/freeswitch/freeswitch.mk

index 77037634af0562449cfd7e10daa3c579132a7649..643a48afb400f1611c7d02ee21b132dc31eae7d1 100644 (file)
@@ -69,7 +69,6 @@ FREESWITCH_CONF_ENV += \
        ac_cv_gcc_supports_w_no_unused_result=no
 
 FREESWITCH_CONF_OPTS = \
-       --disable-core-libedit-support \
        --disable-core-odbc-support \
        --disable-libvpx \
        --disable-libyuv \
@@ -160,4 +159,11 @@ define FREESWITCH_ENABLE_MODULES
 endef
 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))