summaryrefslogtreecommitdiff
path: root/m4/mbchar.m4
blob: 7657b6974011196bd2613409b69dae4b16c609bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# mbchar.m4 serial 2
dnl Copyright (C) 2005 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.

dnl autoconf tests required for use of mbchar.m4
dnl From Bruno Haible.

AC_DEFUN([gl_MBCHAR],
[
  AC_CHECK_HEADERS_ONCE(wchar.h wctype.h)

  case $ac_cv_header_wchar_h,$ac_cv_header_wctype_h in
  yes,yes)
    AC_LIBOBJ([mbchar]);;
  esac

  AC_REQUIRE([AC_GNU_SOURCE])
  :
])