|
Packit Service |
963350 |
# inttypes-pri.m4 serial 4 (gettext-0.16)
|
|
Packit Service |
963350 |
dnl Copyright (C) 1997-2002, 2006 Free Software Foundation, Inc.
|
|
Packit Service |
963350 |
dnl This file is free software; the Free Software Foundation
|
|
Packit Service |
963350 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
Packit Service |
963350 |
dnl with or without modifications, as long as this notice is preserved.
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
dnl From Bruno Haible.
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
AC_PREREQ(2.52)
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
|
|
Packit Service |
963350 |
# macros to non-string values. This is the case on AIX 4.3.3.
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
AC_DEFUN([gt_INTTYPES_PRI],
|
|
Packit Service |
963350 |
[
|
|
Packit Service |
963350 |
AC_CHECK_HEADERS([inttypes.h])
|
|
Packit Service |
963350 |
if test $ac_cv_header_inttypes_h = yes; then
|
|
Packit Service |
963350 |
AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
|
|
Packit Service |
963350 |
gt_cv_inttypes_pri_broken,
|
|
Packit Service |
963350 |
[
|
|
Packit Service |
963350 |
AC_TRY_COMPILE([#include <inttypes.h>
|
|
Packit Service |
963350 |
#ifdef PRId32
|
|
Packit Service |
963350 |
char *p = PRId32;
|
|
Packit Service |
963350 |
#endif
|
|
Packit Service |
963350 |
], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
|
|
Packit Service |
963350 |
])
|
|
Packit Service |
963350 |
fi
|
|
Packit Service |
963350 |
if test "$gt_cv_inttypes_pri_broken" = yes; then
|
|
Packit Service |
963350 |
AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
|
|
Packit Service |
963350 |
[Define if <inttypes.h> exists and defines unusable PRI* macros.])
|
|
Packit Service |
963350 |
PRI_MACROS_BROKEN=1
|
|
Packit Service |
963350 |
else
|
|
Packit Service |
963350 |
PRI_MACROS_BROKEN=0
|
|
Packit Service |
963350 |
fi
|
|
Packit Service |
963350 |
AC_SUBST([PRI_MACROS_BROKEN])
|
|
Packit Service |
963350 |
])
|