summaryrefslogtreecommitdiff
path: root/m4/lcmessage.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-07-04 00:35:27 +0000
committerJim Meyering <jim@meyering.net>1998-07-04 00:35:27 +0000
commit0cb0cc4e2fb17129c275f66ed5be033ce3991abf (patch)
tree77e3d6d796c1fbe6f43d260caf0d6a4f31b0e544 /m4/lcmessage.m4
parentaee16a666458dfbc87bffea0b309fc1d87a7be41 (diff)
downloadcoreutils-0cb0cc4e2fb17129c275f66ed5be033ce3991abf.tar.xz
.
Diffstat (limited to 'm4/lcmessage.m4')
-rw-r--r--m4/lcmessage.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/m4/lcmessage.m4 b/m4/lcmessage.m4
new file mode 100644
index 000000000..e31bb5334
--- /dev/null
+++ b/m4/lcmessage.m4
@@ -0,0 +1,19 @@
+# Check whether LC_MESSAGES is available in <locale.h>.
+# Ulrich Drepper <drepper@cygnus.com>, 1995.
+#
+# This file can be copied and used freely without restrictions. It can
+# be used in projects which are not available under the GNU Public License
+# but which still want to provide support for the GNU gettext functionality.
+# Please note that the actual code is *not* freely available.
+
+# serial 1
+
+AC_DEFUN(AM_LC_MESSAGES,
+ [if test $ac_cv_header_locale_h = yes; then
+ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
+ [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
+ am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
+ if test $am_cv_val_LC_MESSAGES = yes; then
+ AC_DEFINE(HAVE_LC_MESSAGES)
+ fi
+ fi])