source: trunk/third/gettext/m4/inttypes_h.m4 @ 16931

Revision 16931, 623 bytes checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r16930, which included commits to RCS files with non-trunk default branches.
Line 
1#serial 3
2
3dnl From Paul Eggert.
4
5# Define HAVE_INTTYPES_H if <inttypes.h> exists,
6# doesn't clash with <sys/types.h>, and declares uintmax_t.
7
8AC_DEFUN([jm_AC_HEADER_INTTYPES_H],
9[
10  AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h,
11  [AC_TRY_COMPILE(
12    [#include <sys/types.h>
13#include <inttypes.h>],
14    [uintmax_t i = (uintmax_t) -1;],
15    jm_ac_cv_header_inttypes_h=yes,
16    jm_ac_cv_header_inttypes_h=no)])
17  if test $jm_ac_cv_header_inttypes_h = yes; then
18    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
19[Define if <inttypes.h> exists, doesn't clash with <sys/types.h>,
20   and declares uintmax_t. ])
21  fi
22])
Note: See TracBrowser for help on using the repository browser.