configure.in
changeset 434 19a16ec64f82
parent 431 a1cb2bf24ce5
child 435 c4daca3b09b9
equal deleted inserted replaced
433:b50db51e19b9 434:19a16ec64f82
   230 fi
   230 fi
   231 
   231 
   232 dnl determine language.
   232 dnl determine language.
   233 physfslang=english
   233 physfslang=english
   234 AC_ARG_ENABLE(language,
   234 AC_ARG_ENABLE(language,
   235 [  --enable-language=lang     english, russian. [default=english]],
   235 [  --enable-language=lang     english, russian-koi8-r. [default=english]],
   236               physfslang=`echo $enable_language |tr A-Z a-z`)
   236               physfslang=`echo $enable_language |tr A-Z a-z`)
   237 
   237 
   238 AC_MSG_CHECKING([if language choice is supported])
   238 AC_MSG_CHECKING([if language choice is supported])
   239 physfs_valid_lang=no
   239 physfs_valid_lang=no
   240 if test x$physfslang = xenglish; then
   240 if test x$physfslang = xenglish; then
   241   physfs_valid_lang=yes
   241   physfs_valid_lang=yes
   242   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language])
   242   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language])
   243 fi
   243 fi
   244 
   244 
   245 if test x$physfslang = xrussian; then
   245 if test x$physfslang = xrussian-koi8-r; then
   246   physfs_valid_lang=yes
   246   physfs_valid_lang=yes
   247   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN, [define desired natural language])
   247   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_KOI8_R, [define desired natural language])
   248 fi
   248 fi
   249 
   249 
   250 dnl Add other language checks here...
   250 dnl Add other language checks here...
   251 
   251 
   252 AC_MSG_RESULT([$physfs_valid_lang])
   252 AC_MSG_RESULT([$physfs_valid_lang])