configure.in
changeset 427 c38ace41039f
parent 390 6649d6caecf2
child 431 a1cb2bf24ce5
--- a/configure.in	Sun Jul 28 21:02:48 2002 +0000
+++ b/configure.in	Sun Jul 28 21:03:27 2002 +0000
@@ -229,9 +229,36 @@
   fi
 fi
 
+dnl determine language.
+physfslang=english
+AC_ARG_ENABLE(language,
+[  --enable-language=lang     English, currently. [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])
+fi
+
+dnl Add other language checks here...
+
+AC_MSG_RESULT([$physfs_valid_lang])
+if test x$physfs_valid_lang = xno; then
+  AC_MSG_WARN([***])
+  AC_MSG_WARN([*** You've asked for "$physfslang" language support...])
+  AC_MSG_WARN([***  ...but we don't support that.])
+  AC_MSG_WARN([*** You could choose another language,])
+  AC_MSG_WARN([***   but is this what you REALLY wanted?])
+  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_ERROR([*** unsupported language. stop.])
+fi
+
 have_non_posix_threads=no
 
-dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
 AC_MSG_CHECKING([if this is BeOS])
 if test x$build_os = xbeos; then
   this_is_beos=yes