From 4de634ee7646410eb8f330f6974f9ee8eb594b1f Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Mon, 19 Aug 2019 18:15:23 +0200 Subject: CONFIGURE: Move check for iconv down --- configure | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 419c93db0b..b458004f12 100755 --- a/configure +++ b/configure @@ -4217,25 +4217,6 @@ fi define_in_config_if_yes "$_vorbis" 'USE_VORBIS' echo "$_vorbis" -# -# Check for iconv -# -echocheck "Iconv" -if test "$_iconv" = auto ; then - _iconv=no - cat > $TMPC << EOF -#include -int main(void) { iconv_t conv = iconv_open("UTF-8//IGNORE", "CP850"); return 0; } -EOF - cc_check $ICONV_CFLAGS $ICONV_LIBS -liconv && _iconv=yes -fi -if test "$_iconv" = yes ; then - append_var LIBS "$ICONV_LIBS -liconv" - append_var INCLUDES "$ICONV_CFLAGS" -fi -define_in_config_if_yes "$_iconv" 'USE_ICONV' -echo "$_iconv" - # # Check for Tremor # @@ -5244,6 +5225,25 @@ if test "$_pandocext" = "default"; then _pandocext=".$_pandocformat" fi fi +# +# Check for iconv +# +echocheck "Iconv" +if test "$_iconv" = auto ; then + _iconv=no + cat > $TMPC << EOF +#include +int main(void) { iconv_t conv = iconv_open("UTF-8//IGNORE", "CP850"); return 0; } +EOF + cc_check $ICONV_CFLAGS $ICONV_LIBS -liconv && _iconv=yes +fi +if test "$_iconv" = yes ; then + append_var LIBS "$ICONV_LIBS -liconv" + append_var INCLUDES "$ICONV_CFLAGS" +fi +define_in_config_if_yes "$_iconv" 'USE_ICONV' +echo "$_iconv" + # # Enable vkeybd / keymapper / event recorder -- cgit v1.2.3