CONFIGURE: Move check for iconv down

This commit is contained in:
Jaromir Wysoglad 2019-08-19 18:15:23 +02:00 committed by Filippos Karapetis
parent f2715d77ed
commit 4de634ee76

38
configure vendored
View File

@ -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 <iconv.h>
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 <iconv.h>
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