diff options
| author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2013-11-23 18:50:51 +0800 |
|---|---|---|
| committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2013-12-01 11:23:25 +0800 |
| commit | ea219ed51b6728b2e8fd5927a2496bc36defee0f (patch) | |
| tree | 4a27c9e785d9a48abaa63e680b5e6f268e5179d6 /m4 | |
| parent | 912785cb60d322c3e29825111261cbb3b0ffc62f (diff) | |
| download | gsoc2013-evolution-ea219ed51b6728b2e8fd5927a2496bc36defee0f.tar gsoc2013-evolution-ea219ed51b6728b2e8fd5927a2496bc36defee0f.tar.gz gsoc2013-evolution-ea219ed51b6728b2e8fd5927a2496bc36defee0f.tar.bz2 gsoc2013-evolution-ea219ed51b6728b2e8fd5927a2496bc36defee0f.tar.lz gsoc2013-evolution-ea219ed51b6728b2e8fd5927a2496bc36defee0f.tar.xz gsoc2013-evolution-ea219ed51b6728b2e8fd5927a2496bc36defee0f.tar.zst gsoc2013-evolution-ea219ed51b6728b2e8fd5927a2496bc36defee0f.zip | |
Bug #715057 - Weather calendar is using Fahrenheit units as default
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/evo_check_langinfo.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/m4/evo_check_langinfo.m4 b/m4/evo_check_langinfo.m4 new file mode 100644 index 0000000000..a59ab29d4f --- /dev/null +++ b/m4/evo_check_langinfo.m4 @@ -0,0 +1,25 @@ +dnl EVO_CHECK_LANGINFO(detail) +dnl Checks if the given langinfo detail is supported +AC_DEFUN([EVO_CHECK_LANGINFO],[ + AS_VAR_PUSHDEF([ac_cv_langinfo_detail], + [ac_cv_langinfo_]m4_tolower($1)) + + AC_MSG_CHECKING([for nl_langinfo ($1)]) + + AC_LANG_PUSH(C) + + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include <langinfo.h>]], + [[char *detail = nl_langinfo ($1);]])], + [ac_cv_langinfo_detail=yes], + [ac_cv_langinfo_detail=no]) + + AC_LANG_POP(C) + + AS_VAR_IF([ac_cv_langinfo_detail], [yes], + [AC_DEFINE([HAVE_]m4_toupper($1), 1, [Have nl_langinfo ($1)])]) + + AC_MSG_RESULT([$ac_cv_langinfo_detail]) + AS_VAR_POPDEF([ac_cv_langinfo_detail]) +]) |
