a2ps-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: a2ps/m4 mbrtowc.m4,NONE,1.1 mbstate_t.m4,NONE,1.1 prereq.m4,NONE,1.


From: Akim Demaille <address@hidden>
Subject: CVS: a2ps/m4 mbrtowc.m4,NONE,1.1 mbstate_t.m4,NONE,1.1 prereq.m4,NONE,1.1 Makefile.am,1.5,1.6
Date: Tue, 03 Sep 2002 10:05:28 -0400

Update of /cvsroot/a2ps/a2ps/m4
In directory subversions:/tmp/cvs-serv26918/m4

Modified Files:
        Makefile.am 
Added Files:
        mbrtowc.m4 mbstate_t.m4 prereq.m4 
Log Message:
* mbrtowc.m4, mbstate_t.m4, prereq.m4: New.
* configure.in: Forbid `^jm_[A-Z]'.


--- NEW FILE ---
# mbrtowc.m4 serial 4 (fileutils-4.1.3)
dnl Copyright (C) 2001-2002 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License.  As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
dnl that contains a configuration script generated by Autoconf, under
dnl the same distribution terms as the rest of that program.

dnl From Paul Eggert

AC_DEFUN([jm_FUNC_MBRTOWC],
[
  AC_CACHE_CHECK([whether mbrtowc and mbstate_t are properly declared],
    jm_cv_func_mbrtowc,
    [AC_TRY_LINK(
       [#include <wchar.h>],
       [mbstate_t state; return ! (sizeof state && mbrtowc);],
       jm_cv_func_mbrtowc=yes,
       jm_cv_func_mbrtowc=no)])
  if test $jm_cv_func_mbrtowc = yes; then
    AC_DEFINE(HAVE_MBRTOWC, 1,
      [Define to 1 if mbrtowc and mbstate_t are properly declared.])
  fi
])

--- NEW FILE ---
# mbstate_t.m4 serial 9
dnl Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
dnl This file is free software, distributed under the terms of the GNU
dnl General Public License.  As a special exception to the GNU General
dnl Public License, this file may be distributed as part of a program
dnl that contains a configuration script generated by Autoconf, under
dnl the same distribution terms as the rest of that program.

# From Paul Eggert.

# BeOS 5 has <wchar.h> but does not define mbstate_t,
# so you can't declare an object of that type.
# Check for this incompatibility with Standard C.

# AC_TYPE_MBSTATE_T
# -----------------
AC_DEFUN([AC_TYPE_MBSTATE_T],
  [AC_CACHE_CHECK([for mbstate_t], ac_cv_type_mbstate_t,
     [AC_COMPILE_IFELSE(
        [AC_LANG_PROGRAM(
           [AC_INCLUDES_DEFAULT
#           include <wchar.h>],
           [mbstate_t x; return sizeof x;])],
        [ac_cv_type_mbstate_t=yes],
        [ac_cv_type_mbstate_t=no])])
   if test $ac_cv_type_mbstate_t = yes; then
     AC_DEFINE([HAVE_MBSTATE_T], 1,
               [Define to 1 if <wchar.h> declares mbstate_t.])
   else
     AC_DEFINE([mbstate_t], int,
               [Define to a type if <wchar.h> does not define.])
   fi])

--- NEW FILE ---
#serial 2

dnl These are the prerequisite macros for files in the lib/
dnl directories of Bison.

AC_DEFUN([jm_PREREQ_QUOTEARG],
[
  AC_CHECK_FUNCS(isascii iswprint mbsinit)
  jm_FUNC_MBRTOWC
  AC_CHECK_HEADERS(limits.h stddef.h stdlib.h string.h wchar.h wctype.h)
  AC_HEADER_STDC
  AC_C_BACKSLASH_A
  AC_TYPE_MBSTATE_T
  AM_C_PROTOTYPES
])

Index: Makefile.am
===================================================================
RCS file: /cvsroot/a2ps/a2ps/m4/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Makefile.am 2 Sep 2002 12:39:33 -0000       1.5
--- Makefile.am 3 Sep 2002 14:05:26 -0000       1.6
***************
*** 13,18 ****
--- 13,21 ----
  lpr.m4 \
  malloc.m4 \
+ mbrtowc.m4 \
+ mbstate_t.m4 \
  m4.m4 \
  perl.m4 \
+ prereq.m4 \
  protos.m4 \
  realloc.m4 \





reply via email to

[Prev in Thread] Current Thread [Next in Thread]