From e282c7cfcac28d1791f5e60f1b42469e0f021fad Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 17 Oct 2005 18:06:51 +0000 Subject: [PATCH] Tweak the code to make it more reusable. --- m4/ChangeLog | 5 +++++ m4/stdbool.m4 | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/m4/ChangeLog b/m4/ChangeLog index 4e6008237..4f947dcea 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2005-10-17 Bruno Haible + + * stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so that + it can also be used in a test. + 2005-10-11 Simon Josefsson * md5.m4: Remove call to uint32_t.m4. diff --git a/m4/stdbool.m4 b/m4/stdbool.m4 index 922a00258..dcb579353 100644 --- a/m4/stdbool.m4 +++ b/m4/stdbool.m4 @@ -76,7 +76,8 @@ AC_DEFUN([AC_HEADER_STDBOOL], char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; ], [ - return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k + !l + /* Refer to every declared value, to avoid compiler optimizations. */ + return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p); ], [ac_cv_header_stdbool_h=yes], -- 2.11.0