~ubuntu-branches/ubuntu/maverick/mpop/maverick

« back to all changes in this revision

Viewing changes to gnulib/m4/size_max.m4

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Bouthenot
  • Date: 2009-08-14 18:08:48 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090814180848-f31eii74n1dnzimr
Tags: 1.0.17-1
* New upstream release (Closes: #513223)
* Adopting the package: setting me as maintainer.
* Add a Homepage field.
* Bump Standards-Version to 3.8.2.
* Update debian/copyright:
  - point to the GPLv3 licence from /usr/share/common-licences
    instead of including the whole licence.
  - Add new copyright holders.
  - Cleaning and refactoring.
* Add Vcs-Git and Vcs-Browser fields.
* Switch packaging from CDBS to "plain debhelper".
* Update debian/compat to version 7.
* New binary package mpop-gnome (mpop with GNOME keyring support)
  which depends on "standard" mpop package and diverts /usr/bin/mpop.
* Update patch which fixes lintian warnings about hyphens in mpop
  manpage.
* Add DM-Upload-Allowed field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# size_max.m4 serial 6
2
 
dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc.
 
1
# size_max.m4 serial 7
 
2
dnl Copyright (C) 2003, 2005-2006, 2008 Free Software Foundation, Inc.
3
3
dnl This file is free software; the Free Software Foundation
4
4
dnl gives unlimited permission to copy and/or distribute it,
5
5
dnl with or without modifications, as long as this notice is preserved.
8
8
 
9
9
AC_DEFUN([gl_SIZE_MAX],
10
10
[
11
 
  AC_CHECK_HEADERS(stdint.h)
 
11
  AC_CHECK_HEADERS([stdint.h])
12
12
  dnl First test whether the system already has SIZE_MAX.
13
13
  AC_MSG_CHECKING([for SIZE_MAX])
14
14
  AC_CACHE_VAL([gl_cv_size_max], [
21
21
#ifdef SIZE_MAX
22
22
Found it
23
23
#endif
24
 
], gl_cv_size_max=yes)
 
24
], [gl_cv_size_max=yes])
25
25
    if test -z "$gl_cv_size_max"; then
26
26
      dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
27
27
      dnl than the type 'unsigned long'. Try hard to find a definition that can
28
28
      dnl be used in a preprocessor #if, i.e. doesn't contain a cast.
29
29
      AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1],
30
30
        [#include <stddef.h>
31
 
#include <limits.h>], size_t_bits_minus_1=)
 
31
#include <limits.h>], [size_t_bits_minus_1=])
32
32
      AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)],
33
 
        [#include <stddef.h>], fits_in_uint=)
 
33
        [#include <stddef.h>], [fits_in_uint=])
34
34
      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
35
35
        if test $fits_in_uint = 1; then
36
36
          dnl Even though SIZE_MAX fits in an unsigned int, it must be of type
38
38
          AC_TRY_COMPILE([#include <stddef.h>
39
39
            extern size_t foo;
40
40
            extern unsigned long foo;
41
 
            ], [], fits_in_uint=0)
 
41
            ], [], [fits_in_uint=0])
42
42
        fi
43
43
        dnl We cannot use 'expr' to simplify this expression, because 'expr'
44
44
        dnl works only with 'long' integers in the host environment, while we