aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorCeRiAl2011-06-13 04:39:38 +0200
committerCeRiAl2011-06-14 22:42:16 +0200
commit2ff4380c55d67668e743edd0a17737a0dc17402e (patch)
tree61d1973a0cafdf427cd69038336a76a699f18ae3 /configure
parente826aaab39f02360c5fa8f249ec6b788a903b948 (diff)
downloadscummvm-rg350-2ff4380c55d67668e743edd0a17737a0dc17402e.tar.gz
scummvm-rg350-2ff4380c55d67668e743edd0a17737a0dc17402e.tar.bz2
scummvm-rg350-2ff4380c55d67668e743edd0a17737a0dc17402e.zip
WINCE: Add support for language auto-detection in WinCE
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure b/configure
index b436a3822d..b012ccc7bd 100755
--- a/configure
+++ b/configure
@@ -2192,6 +2192,7 @@ if test -n "$_host"; then
LDFLAGS="$LDFLAGS -Wl,--stack,65536"
_tremolo=yes
_backend="wince"
+ _detectlang=yes
_mt32emu=no
_port_mk="backends/platform/wince/wince.mk"
;;
@@ -3083,12 +3084,14 @@ if test "$_translation" = no ; then
else
echo_n "yes ("
- cat > $TMPC << EOF
+ if test "$_detectlang" != yes ; then
+ cat > $TMPC << EOF
#include <locale.h>
int main(void) { setlocale(LC_ALL, ""); return 0; }
EOF
- _detectlang=no
- cc_check $LDFLAGS $CXXFLAGS && _detectlang=yes
+ _detectlang=no
+ cc_check $LDFLAGS $CXXFLAGS && _detectlang=yes
+ fi
define_in_config_h_if_yes $_detectlang 'USE_DETECTLANG'
if test "$_detectlang" = yes ; then