/xbmc/screensavers/rsxs-0.9/m4/wcwidth.m4

http://github.com/xbmc/xbmc · m4 · 26 lines · 15 code · 4 blank · 7 comment · 0 complexity · 23d50b54f6c19891b19f3de60bcc4613 MD5 · raw file

  1. # wcwidth.m4 serial 3
  2. dnl Copyright (C) 2006 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. AC_DEFUN([gl_FUNC_WCWIDTH],
  7. [
  8. dnl Persuade glibc <wchar.h> to declare wcwidth().
  9. AC_REQUIRE([AC_GNU_SOURCE])
  10. AC_REQUIRE([AC_C_INLINE])
  11. AC_REQUIRE([gt_TYPE_WCHAR_T])
  12. AC_CHECK_HEADERS_ONCE([wchar.h wctype.h])
  13. AC_CHECK_FUNCS_ONCE([iswprint wcwidth])
  14. AC_CHECK_DECLS([wcwidth], [], [], [
  15. /* AIX 3.2.5 declares wcwidth in <string.h>. */
  16. #if HAVE_STRING_H
  17. # include <string.h>
  18. #endif
  19. #if HAVE_WCHAR_H
  20. # include <wchar.h>
  21. #endif
  22. ])])