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

« back to all changes in this revision

Viewing changes to m4/inttypes.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
 
# inttypes.m4 serial 24
2
 
dnl Copyright (C) 2006-2011 Free Software Foundation, Inc.
 
1
# inttypes.m4 serial 26
 
2
dnl Copyright (C) 2006-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.
24
24
 
25
25
  AC_REQUIRE([gl_MULTIARCH])
26
26
 
27
 
  dnl Ensure that <stdint.h> defines the limit macros, since gnulib's
28
 
  dnl <inttypes.h> relies on them.  This macro is only needed when a
29
 
  dnl C++ compiler is in use; it has no effect for a C compiler.
30
 
  dnl Also be careful to define __STDC_LIMIT_MACROS only when gnulib's
31
 
  dnl <inttypes.h> is going to be created, and to avoid redefinition warnings
32
 
  dnl if the __STDC_LIMIT_MACROS is already defined through the CPPFLAGS.
33
 
  AC_DEFINE([GL_TRIGGER_STDC_LIMIT_MACROS], [1],
34
 
    [Define to make the limit macros in <stdint.h> visible.])
35
 
  AH_VERBATIM([__STDC_LIMIT_MACROS_ZZZ],
36
 
[/* Ensure that <stdint.h> defines the limit macros, since gnulib's
37
 
   <inttypes.h> relies on them.  */
38
 
#if defined __cplusplus && !defined __STDC_LIMIT_MACROS && GL_TRIGGER_STDC_LIMIT_MACROS
39
 
# define __STDC_LIMIT_MACROS 1
40
 
#endif
41
 
])
42
 
 
43
27
  dnl Check for declarations of anything we want to poison if the
44
28
  dnl corresponding gnulib module is not in use.
45
29
  gl_WARN_ON_USE_PREPARE([[#include <inttypes.h>
163
147
  HAVE_DECL_IMAXDIV=1;   AC_SUBST([HAVE_DECL_IMAXDIV])
164
148
  HAVE_DECL_STRTOIMAX=1; AC_SUBST([HAVE_DECL_STRTOIMAX])
165
149
  HAVE_DECL_STRTOUMAX=1; AC_SUBST([HAVE_DECL_STRTOUMAX])
 
150
  REPLACE_STRTOIMAX=0;   AC_SUBST([REPLACE_STRTOIMAX])
166
151
  INT32_MAX_LT_INTMAX_MAX=1;  AC_SUBST([INT32_MAX_LT_INTMAX_MAX])
167
152
  INT64_MAX_EQ_LONG_MAX='defined _LP64';  AC_SUBST([INT64_MAX_EQ_LONG_MAX])
168
153
  PRI_MACROS_BROKEN=0;   AC_SUBST([PRI_MACROS_BROKEN])