From 5d0f90dff7c5aa570f761a76baec010f145d8101 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 12 Jan 2000 06:56:54 +0000 Subject: [PATCH] *** empty log message *** --- m4/c-bs-a.m4 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 m4/c-bs-a.m4 diff --git a/m4/c-bs-a.m4 b/m4/c-bs-a.m4 new file mode 100644 index 0000000000..ceb26ae596 --- /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 +]) -- 2.47.3