configure.in
changeset 427 c38ace41039f
parent 390 6649d6caecf2
child 431 a1cb2bf24ce5
equal deleted inserted replaced
426:1fc4e719c30c 427:c38ace41039f
   227     AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
   227     AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
   228     enable_cdrom=yes
   228     enable_cdrom=yes
   229   fi
   229   fi
   230 fi
   230 fi
   231 
   231 
       
   232 dnl determine language.
       
   233 physfslang=english
       
   234 AC_ARG_ENABLE(language,
       
   235 [  --enable-language=lang     English, currently. [default=english]],
       
   236               physfslang=`echo $enable_language |tr A-Z a-z`)
       
   237 
       
   238 AC_MSG_CHECKING([if language choice is supported])
       
   239 physfs_valid_lang=no
       
   240 if test x$physfslang = xenglish; then
       
   241   physfs_valid_lang=yes
       
   242   AC_DEFINE([PHYSFS_LANG], PHYSFS_LANG_ENGLISH, [define desired natural language])
       
   243 fi
       
   244 
       
   245 dnl Add other language checks here...
       
   246 
       
   247 AC_MSG_RESULT([$physfs_valid_lang])
       
   248 if test x$physfs_valid_lang = xno; then
       
   249   AC_MSG_WARN([***])
       
   250   AC_MSG_WARN([*** You've asked for "$physfslang" language support...])
       
   251   AC_MSG_WARN([***  ...but we don't support that.])
       
   252   AC_MSG_WARN([*** You could choose another language,])
       
   253   AC_MSG_WARN([***   but is this what you REALLY wanted?])
       
   254   AC_MSG_WARN([*** Please see the LANG section of physfs_internal.h])
       
   255   AC_MSG_WARN([***  for info on writing a translation.])
       
   256   AC_MSG_WARN([***])
       
   257   AC_MSG_ERROR([*** unsupported language. stop.])
       
   258 fi
       
   259 
   232 have_non_posix_threads=no
   260 have_non_posix_threads=no
   233 
   261 
   234 dnl AC_CHECK_HEADER(be/kernel/OS.h, this_is_beos=yes)
       
   235 AC_MSG_CHECKING([if this is BeOS])
   262 AC_MSG_CHECKING([if this is BeOS])
   236 if test x$build_os = xbeos; then
   263 if test x$build_os = xbeos; then
   237   this_is_beos=yes
   264   this_is_beos=yes
   238   enable_pthreads=no
   265   enable_pthreads=no
   239   have_non_posix_threads=yes
   266   have_non_posix_threads=yes