1# mbchar.m4 serial 1 2dnl Copyright (C) 2005 Free Software Foundation, Inc. 3dnl This file is free software; the Free Software Foundation 4dnl gives unlimited permission to copy and/or distribute it, 5dnl with or without modifications, as long as this notice is preserved. 6 7dnl autoconf tests required for use of mbchar.m4 8dnl From Bruno Haible. 9 10AC_DEFUN([gl_MBCHAR], 11[ 12 AC_LIBSOURCES([mbchar.c, mbchar.h]) 13 AC_CHECK_HEADERS_ONCE(wchar.h wctype.h) 14 15 if test x$ac_cv_header_wchar_h = xyes && test x$ac_cv_header_wctype_h = xyes; then 16 AC_LIBOBJ(mbchar) 17 fi 18 19 AC_REQUIRE([AC_GNU_SOURCE]) 20 : 21]) 22