Blame m4/inttypes.m4

Packit fc043f
# inttypes.m4 serial 1 (gettext-0.11.4)
Packit fc043f
dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
Packit fc043f
dnl This file is free software; the Free Software Foundation
Packit fc043f
dnl gives unlimited permission to copy and/or distribute it,
Packit fc043f
dnl with or without modifications, as long as this notice is preserved.
Packit fc043f
Packit fc043f
dnl From Paul Eggert.
Packit fc043f
Packit fc043f
# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
Packit fc043f
# <sys/types.h>.
Packit fc043f
Packit fc043f
AC_DEFUN([gt_HEADER_INTTYPES_H],
Packit fc043f
[
Packit fc043f
  AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
Packit fc043f
  [
Packit fc043f
    AC_TRY_COMPILE(
Packit fc043f
      [#include <sys/types.h>
Packit fc043f
#include <inttypes.h>],
Packit fc043f
      [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
Packit fc043f
  ])
Packit fc043f
  if test $gt_cv_header_inttypes_h = yes; then
Packit fc043f
    AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
Packit fc043f
      [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
Packit fc043f
  fi
Packit fc043f
])