Blame m4/stdint_h.m4

Packit Service 9f2c4a
# stdint_h.m4 serial 3 (gettext-0.12)
Packit Service 9f2c4a
dnl Copyright (C) 1997-2003 Free Software Foundation, Inc.
Packit Service 9f2c4a
dnl This file is free software, distributed under the terms of the GNU
Packit Service 9f2c4a
dnl General Public License.  As a special exception to the GNU General
Packit Service 9f2c4a
dnl Public License, this file may be distributed as part of a program
Packit Service 9f2c4a
dnl that contains a configuration script generated by Autoconf, under
Packit Service 9f2c4a
dnl the same distribution terms as the rest of that program.
Packit Service 9f2c4a
Packit Service 9f2c4a
dnl From Paul Eggert.
Packit Service 9f2c4a
Packit Service 9f2c4a
# Define HAVE_STDINT_H_WITH_UINTMAX if <stdint.h> exists,
Packit Service 9f2c4a
# doesn't clash with <sys/types.h>, and declares uintmax_t.
Packit Service 9f2c4a
Packit Service 9f2c4a
AC_DEFUN([jm_AC_HEADER_STDINT_H],
Packit Service 9f2c4a
[
Packit Service 9f2c4a
  AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h,
Packit Service 9f2c4a
  [AC_TRY_COMPILE(
Packit Service 9f2c4a
    [#include <sys/types.h>
Packit Service 9f2c4a
#include <stdint.h>],
Packit Service 9f2c4a
    [uintmax_t i = (uintmax_t) -1;],
Packit Service 9f2c4a
    jm_ac_cv_header_stdint_h=yes,
Packit Service 9f2c4a
    jm_ac_cv_header_stdint_h=no)])
Packit Service 9f2c4a
  if test $jm_ac_cv_header_stdint_h = yes; then
Packit Service 9f2c4a
    AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1,
Packit Service 9f2c4a
      [Define if <stdint.h> exists, doesn't clash with <sys/types.h>,
Packit Service 9f2c4a
       and declares uintmax_t. ])
Packit Service 9f2c4a
  fi
Packit Service 9f2c4a
])