mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 03:10:37 +00:00
CONFIGURE: Move check for iconv down
This commit is contained in:
parent
f2715d77ed
commit
4de634ee76
38
configure
vendored
38
configure
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user