summaryrefslogtreecommitdiff
path: root/m4/lcmessage.m4
diff options
context:
space:
mode:
authorAlain Magloire <alainm@rcsm.ee.mcgill.ca>1998-11-19 02:53:18 +0000
committerAlain Magloire <alainm@rcsm.ee.mcgill.ca>1998-11-19 02:53:18 +0000
commitb9442e9eab99b55898d363bbbbe1f8edaa094c3e (patch)
tree3da2f6c0f7f094f9f9c6a42d22f828ab37f03b00 /m4/lcmessage.m4
parent7a3b730e4989d348270f797c41aeb65a361662a2 (diff)
downloadgrep-b9442e9eab99b55898d363bbbbe1f8edaa094c3e.tar.gz
Rename again aclocal to m4 to be compilant with existing GNU utils.
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 00000000..e31bb533
--- /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])