summaryrefslogtreecommitdiffstats
path: root/m4/lcmessage.m4
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-11-17 13:05:11 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-11-17 13:05:11 +0000
commit49462b02120f0c79d23df07fee16903ffe4be82b (patch)
tree20f8fabe5b3e38f074200cd0ef5936dd4cdb0d37 /m4/lcmessage.m4
parent00f5b95a1c92114ff11b2826315d5fe910019e5c (diff)
Configuration fixes from Lars Hecking, with some more fixes and
modifications from myself. With some luck, you don't need a gettext installation any more.
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..e8eebea8
--- /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(MUTT_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])