Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
LIBPJSIP_CONF_OPTS = \
--disable-sound \
- --disable-gsm-codec \
--disable-resample \
--disable-video \
--disable-opencore-amr \
# so we want to use it.
LIBPJSIP_CONF_OPTS += --enable-epoll
+ifeq ($(BR2_PACKAGE_LIBGSM),y)
+LIBPJSIP_CONF_OPTS += \
+ --enable-gsm-codec \
+ --with-external-gsm
+LIBPJSIP_DEPENDENCIES += libgsm
+else
+LIBPJSIP_CONF_OPTS += \
+ --disable-gsm-codec
+endif
+
ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
LIBPJSIP_DEPENDENCIES += libopenssl
LIBPJSIP_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr