configure.in
changeset 435 c4daca3b09b9
parent 434 19a16ec64f82
child 441 12831102c972
--- a/configure.in	Mon Jul 29 21:13:12 2002 +0000
+++ b/configure.in	Tue Jul 30 01:42:29 2002 +0000
@@ -232,11 +232,12 @@
 dnl determine language.
 physfslang=english
 AC_ARG_ENABLE(language,
-[  --enable-language=lang     english, russian-koi8-r. [default=english]],
+[  --enable-language=lang     Select natural language. [default=english]],
               physfslang=`echo $enable_language |tr A-Z a-z`)
 
 AC_MSG_CHECKING([if language choice is supported])
 physfs_valid_lang=no
+
 if test x$physfslang = xenglish; then
   physfs_valid_lang=yes
   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language])
@@ -247,8 +248,15 @@
   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_RUSSIAN_KOI8_R, [define desired natural language])
 fi
 
+if test x$physfslang = xspanish; then
+  physfs_valid_lang=yes
+  AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_SPANISH, [define desired natural language])
+fi
+
+
 dnl Add other language checks here...
 
+
 AC_MSG_RESULT([$physfs_valid_lang])
 if test x$physfs_valid_lang = xno; then
   AC_MSG_WARN([***])
@@ -259,6 +267,11 @@
   AC_MSG_WARN([*** Please see the LANG section of physfs_internal.h])
   AC_MSG_WARN([***  for info on writing a translation.])
   AC_MSG_WARN([***])
+  AC_MSG_WARN([*** Currently known languages:])
+  AC_MSG_WARN([***   --enable-language=english])
+  AC_MSG_WARN([***   --enable-language=spanish])
+  AC_MSG_WARN([***   --enable-language=russian-koi8-r])
+  AC_MSG_WARN([***])
   AC_MSG_ERROR([*** unsupported language. stop.])
 fi