~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to m4/stdint.m4

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# stdint.m4 serial 41
2
 
dnl Copyright (C) 2001-2011 Free Software Foundation, Inc.
 
1
# stdint.m4 serial 43
 
2
dnl Copyright (C) 2001-2012 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.
69
69
      [gl_cv_header_working_stdint_h=no
70
70
       AC_COMPILE_IFELSE([
71
71
         AC_LANG_PROGRAM([[
72
 
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
73
 
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
74
72
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
75
73
#include <stdint.h>
76
74
/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
219
217
          dnl This detects a bug on HP-UX 11.23/ia64.
220
218
          AC_RUN_IFELSE([
221
219
            AC_LANG_PROGRAM([[
222
 
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
223
 
#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
224
220
#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
225
221
#include <stdint.h>
226
222
]
466
462
  fi
467
463
  gl_INTEGER_TYPE_SUFFIX([sig_atomic_t wchar_t wint_t],
468
464
    [gl_STDINT_INCLUDES])
 
465
 
 
466
  dnl If wint_t is smaller than 'int', it cannot satisfy the ISO C 99
 
467
  dnl requirement that wint_t is "unchanged by default argument promotions".
 
468
  dnl In this case gnulib's <wchar.h> and <wctype.h> override wint_t.
 
469
  dnl Set the variable BITSIZEOF_WINT_T accordingly.
 
470
  if test $BITSIZEOF_WINT_T -lt 32; then
 
471
    BITSIZEOF_WINT_T=32
 
472
  fi
469
473
])
470
474
 
471
475
dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in.