diff options
Diffstat (limited to 'meta/packages/console-tools/console-tools-0.3.2/config/codeset.m4')
| -rw-r--r-- | meta/packages/console-tools/console-tools-0.3.2/config/codeset.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/packages/console-tools/console-tools-0.3.2/config/codeset.m4 b/meta/packages/console-tools/console-tools-0.3.2/config/codeset.m4 new file mode 100644 index 0000000000..863c9cfa7e --- /dev/null +++ b/meta/packages/console-tools/console-tools-0.3.2/config/codeset.m4 | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #serial AM1 | ||
| 2 | |||
| 3 | dnl From Bruno Haible. | ||
| 4 | |||
| 5 | AC_DEFUN([AM_LANGINFO_CODESET], | ||
| 6 | [ | ||
| 7 | AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, | ||
| 8 | [AC_TRY_LINK([#include <langinfo.h>], | ||
| 9 | [char* cs = nl_langinfo(CODESET);], | ||
| 10 | am_cv_langinfo_codeset=yes, | ||
| 11 | am_cv_langinfo_codeset=no) | ||
| 12 | ]) | ||
| 13 | if test $am_cv_langinfo_codeset = yes; then | ||
| 14 | AC_DEFINE(HAVE_LANGINFO_CODESET, 1, | ||
| 15 | [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) | ||
| 16 | fi | ||
| 17 | ]) | ||
