]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blobdiff - configure.in
Include inttypes.h if present. New macros INT_TO_VOIDPTR and
[thirdparty/e2fsprogs.git] / configure.in
index c462b7b19db0c926ffe216667acb911b31acef6c..e90707defa6f829a2286ca0c6b0c9475f50cf3b8 100644 (file)
@@ -657,6 +657,11 @@ AC_SUBST(SIZEOF_LONG)
 AC_SUBST(SIZEOF_LONG_LONG)
 AC_C_BIGENDIAN
 dnl
+dnl See if we have inttypes.h and if intptr_t is defined
+dnl
+AC_CHECK_HEADERS([inttypes.h])
+AC_CHECK_TYPE(intptr_t,long)
+dnl
 dnl See if struct stat has a st_flags field, in which case we can get file
 dnl flags somewhat portably.  Also check for the analogous setter, chflags().
 dnl