@@ -36,7 +36,6 @@ ASTERISK_CONF_OPTS += \
--without-gmime \
--without-h323 \
--without-hoard \
- --without-iconv \
--without-iksemel \
--without-imap \
--without-inotify \
@@ -131,6 +130,13 @@ else
ASTERISK_CONF_OPTS += --without-ilbc
endif
+ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV),y)
+ASTERISK_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
+ASTERISK_CONF_OPTS += --with-iconv
+else
+ASTERISK_CONF_OPTS += --without-iconv
+endif
+
ifeq ($(BR2_PACKAGE_OPENLDAP),y)
ASTERISK_DEPENDENCIES += openldap
ASTERISK_CONF_OPTS += --without-ldap
iconv support is available if iether the toolchain has iconv built-in (glibc, musl, or uclibc-with-iconv) or if the libiconv package is enabled. Both are exclusive one to the other, so we need only test one. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> --- package/asterisk/asterisk.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)