monotone

monotone Mtn Source Tree

Root/m4/localeworks.m4

1AC_DEFUN([AC_FUNC_LOCALE_WORKS],
2[AC_CACHE_CHECK([if setlocale() and nl_langinfo() works],
3ac_cv_locale_works, [
4AC_TRY_RUN([
5#include <locale.h>
6#include <langinfo.h>
7int main ()
8{
9 char* cs;
10 setlocale(LC_CTYPE, "");
11 cs = nl_langinfo(CODESET);
12 return !cs;
13}
14],
15ac_cv_locale_works=yes,
16ac_cv_locale_works=no,
17ac_cv_locale_works=no)
18])
19if test "$ac_cv_locale_works" = "yes"; then
20 AC_DEFINE(LOCALE_WORKS, 1, [Define if setlocale() and nl_langinfo() work.])
21fi])

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status