From Meyering
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#serial 2
|
#serial 3
|
||||||
|
|
||||||
dnl From Paul Eggert.
|
dnl From Paul Eggert.
|
||||||
|
|
||||||
@@ -6,16 +6,14 @@ AC_DEFUN(AC_C_BACKSLASH_A,
|
|||||||
[
|
[
|
||||||
AC_CACHE_CHECK([whether backslash-a works in strings], ac_cv_c_backslash_a,
|
AC_CACHE_CHECK([whether backslash-a works in strings], ac_cv_c_backslash_a,
|
||||||
[AC_TRY_COMPILE([],
|
[AC_TRY_COMPILE([],
|
||||||
changequote(<<, >>)dnl
|
[
|
||||||
<<
|
|
||||||
#if '\a' == 'a'
|
#if '\a' == 'a'
|
||||||
syntax error;
|
syntax error;
|
||||||
#endif
|
#endif
|
||||||
char buf['\a' == 'a' ? -1 : 1];
|
char buf['\a' == 'a' ? -1 : 1];
|
||||||
buf[0] = '\a';
|
buf[0] = '\a';
|
||||||
return buf[0] != "\a"[0];
|
return buf[0] != "\a"[0];
|
||||||
>>,
|
],
|
||||||
changequote([, ])dnl
|
|
||||||
ac_cv_c_backslash_a=yes,
|
ac_cv_c_backslash_a=yes,
|
||||||
ac_cv_c_backslash_a=no)])
|
ac_cv_c_backslash_a=no)])
|
||||||
if test $ac_cv_c_backslash_a = yes; then
|
if test $ac_cv_c_backslash_a = yes; then
|
||||||
|
|||||||
Reference in New Issue
Block a user