configure.in
changeset 435 c4daca3b09b9
parent 434 19a16ec64f82
child 441 12831102c972
equal deleted inserted replaced
434:19a16ec64f82 435:c4daca3b09b9
   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-koi8-r. [default=english]],
   235 [  --enable-language=lang     Select natural language. [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 
   240 if test x$physfslang = xenglish; then
   241 if test x$physfslang = xenglish; then
   241   physfs_valid_lang=yes
   242   physfs_valid_lang=yes
   242   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language])
   243   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language])
   243 fi
   244 fi
   244 
   245 
   245 if test x$physfslang = xrussian-koi8-r; then
   246 if test x$physfslang = xrussian-koi8-r; then
   246   physfs_valid_lang=yes
   247   physfs_valid_lang=yes
   247   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_KOI8_R, [define desired natural language])
   248   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_KOI8_R, [define desired natural language])
   248 fi
   249 fi
   249 
   250 
       
   251 if test x$physfslang = xspanish; then
       
   252   physfs_valid_lang=yes
       
   253   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_SPANISH, [define desired natural language])
       
   254 fi
       
   255 
       
   256 
   250 dnl Add other language checks here...
   257 dnl Add other language checks here...
       
   258 
   251 
   259 
   252 AC_MSG_RESULT([$physfs_valid_lang])
   260 AC_MSG_RESULT([$physfs_valid_lang])
   253 if test x$physfs_valid_lang = xno; then
   261 if test x$physfs_valid_lang = xno; then
   254   AC_MSG_WARN([***])
   262   AC_MSG_WARN([***])
   255   AC_MSG_WARN([*** You've asked for "$physfslang" language support...])
   263   AC_MSG_WARN([*** You've asked for "$physfslang" language support...])
   257   AC_MSG_WARN([*** You could choose another language,])
   265   AC_MSG_WARN([*** You could choose another language,])
   258   AC_MSG_WARN([***   but is this what you REALLY wanted?])
   266   AC_MSG_WARN([***   but is this what you REALLY wanted?])
   259   AC_MSG_WARN([*** Please see the LANG section of physfs_internal.h])
   267   AC_MSG_WARN([*** Please see the LANG section of physfs_internal.h])
   260   AC_MSG_WARN([***  for info on writing a translation.])
   268   AC_MSG_WARN([***  for info on writing a translation.])
   261   AC_MSG_WARN([***])
   269   AC_MSG_WARN([***])
       
   270   AC_MSG_WARN([*** Currently known languages:])
       
   271   AC_MSG_WARN([***   --enable-language=english])
       
   272   AC_MSG_WARN([***   --enable-language=spanish])
       
   273   AC_MSG_WARN([***   --enable-language=russian-koi8-r])
       
   274   AC_MSG_WARN([***])
   262   AC_MSG_ERROR([*** unsupported language. stop.])
   275   AC_MSG_ERROR([*** unsupported language. stop.])
   263 fi
   276 fi
   264 
   277 
   265 have_non_posix_threads=no
   278 have_non_posix_threads=no
   266 
   279