/[cvs]/ccvs/m4/mbchar.m4
ViewVC logotype

Diff of /ccvs/m4/mbchar.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dprice, Mon Sep 5 19:35:17 2005 UTC revision 1.3 by dprice, Tue Oct 4 02:33:12 2005 UTC
# Line 1  Line 1 
1  # mbchar.m4 serial 1  # mbchar.m4 serial 2
2  dnl Copyright (C) 2005 Free Software Foundation, Inc.  dnl Copyright (C) 2005 Free Software Foundation, Inc.
3  dnl This file is free software; the Free Software Foundation  dnl This file is free software; the Free Software Foundation
4  dnl gives unlimited permission to copy and/or distribute it,  dnl gives unlimited permission to copy and/or distribute it,
# Line 9  dnl From Bruno Haible. Line 9  dnl From Bruno Haible.
9    
10  AC_DEFUN([gl_MBCHAR],  AC_DEFUN([gl_MBCHAR],
11  [  [
12    AC_LIBSOURCES([mbchar.c, mbchar.h])    AC_REQUIRE([AC_GNU_SOURCE])
13      dnl The following line is that so the user can test
14      dnl HAVE_WCHAR_H && HAVE_WCTYPE_H before #include "mbchar.h".
15    AC_CHECK_HEADERS_ONCE(wchar.h wctype.h)    AC_CHECK_HEADERS_ONCE(wchar.h wctype.h)
16      dnl Compile mbchar.c only if HAVE_WCHAR_H && HAVE_WCTYPE_H.
17    if test x$ac_cv_header_wchar_h = xyes && test x$ac_cv_header_wctype_h = xyes; then    if test $ac_cv_header_wchar_h = yes && test $ac_cv_header_wctype_h = yes; then
18          AC_LIBOBJ(mbchar)      AC_LIBOBJ([mbchar])
19    fi    fi
   
   AC_REQUIRE([AC_GNU_SOURCE])  
   :  
20  ])  ])

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26