changeset 2113:a63c1d7ce4a7

*** empty log message ***
author Jim Meyering <jim@meyering.net>
date Wed, 12 Jan 2000 06:56:54 +0000
parents 9b5fc18f4655
children e0a5e0a4f362
files m4/ChangeLog m4/c-bs-a.m4
diffstat 2 files changed, 36 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/m4/ChangeLog
+++ b/m4/ChangeLog
@@ -1,3 +1,14 @@
+2000-01-11  Paul Eggert  <eggert@twinsun.com>
+
+	Quote multibyte characters correctly.
+	* m4/c-bs-a.m4: New file.
+	* m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
+	(jm_PREREQ): Use it.
+
+2000-01-11  Paul Eggert  <eggert@twinsun.com>
+
+	* m4/uintmax_t.m4: Port to autoconf 2.13.
+
 2000-01-08  Jim Meyering  <meyering@ascend.com>
 
 	* strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
new file mode 100644
--- /dev/null
+++ b/m4/c-bs-a.m4
@@ -0,0 +1,25 @@
+#serial 1
+
+dnl From Paul Eggert.
+
+AC_DEFUN(AC_C_BACKSLASH_A,
+[
+  AC_CACHE_CHECK([whether backslash-a works in strings], ac_cv_c_backslash_a,
+   [AC_TRY_COMPILE([],
+     [
+      changequote(, ) dnl
+#if '\a' == 'a'
+      syntax error;
+#endif
+      char buf['\a' == 'a' ? -1 : 1];
+      buf[0] = '\a';
+      return buf[0] != "\a"[0];
+      changequote([, ])dnl
+     ],
+     ac_cv_c_backslash_a=yes,
+     ac_cv_c_backslash_a=no)])
+  if test $ac_cv_c_backslash_a = yes; then
+    AC_DEFINE(HAVE_C_BACKSLASH_A, 1,
+      [Define if backslash-a works in C strings.])
+  fi
+])