From b792aeb401b00124b3c27c9f1d850d3312e7b849 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 7 May 2008 20:53:19 -0600 Subject: [PATCH] Support cross-compilation of . * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in AC_CACHE_CHECK. Signed-off-by: Eric Blake --- ChangeLog | 6 ++++++ m4/wctype.m4 | 13 ++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index df3cc32a6..db8e106eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-05-07 Eric Blake + + Support cross-compilation of . + * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in + AC_CACHE_CHECK. + 2008-05-06 Soren Hansen (tiny change) * build-aux/vc-list-files: Add support for bzr. diff --git a/m4/wctype.m4 b/m4/wctype.m4 index 7c6718c3e..1ace2f6d7 100644 --- a/m4/wctype.m4 +++ b/m4/wctype.m4 @@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved. dnl Written by Paul Eggert. +#serial 2 AC_DEFUN([gl_WCTYPE_H], [ AC_REQUIRE([AC_PROG_CC]) @@ -41,15 +42,13 @@ AC_DEFUN([gl_WCTYPE_H], #include #include int main () { return iswprint ('x') == 0; }], - [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no]) - ], - [ - AC_TRY_COMPILE([#include + [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no], + [AC_TRY_COMPILE([#include #if __GNU_LIBRARY__ == 1 Linux libc5 i18n is broken. - #endif], - [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no]) - ]) + #endif], [], + [gl_cv_func_iswcntrl_works=yes], [gl_cv_func_iswcntrl_works=no]) + ])]) if test $gl_cv_func_iswcntrl_works = yes; then WCTYPE_H= fi -- 2.11.0