summaryrefslogtreecommitdiff
path: root/Build/source/m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-26 06:24:56 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-26 06:24:56 +0000
commit1a55946e547696aaae9dc3883f18e8b1bd4d72ba (patch)
treec4886a4dd4d364ddc257544af752342d3bba8ef1 /Build/source/m4
parent4e1df4e68b351cfe5bdb7c0d6c227c06948af686 (diff)
build system: Check for 64-bit integer types and bail out if unsupported
git-svn-id: svn://tug.org/texlive/trunk@27164 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/m4')
-rw-r--r--Build/source/m4/ChangeLog6
-rw-r--r--Build/source/m4/kpse-common.m47
2 files changed, 11 insertions, 2 deletions
diff --git a/Build/source/m4/ChangeLog b/Build/source/m4/ChangeLog
index c740a1db051..b147dcf0a83 100644
--- a/Build/source/m4/ChangeLog
+++ b/Build/source/m4/ChangeLog
@@ -1,3 +1,9 @@
+2012-07-25 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * kpse-common.m4 (KPSE_COMMON): Check for 64-bit integer types
+ and bail out if unsupported.
+ Some headers are already checked by AC_HEADER_STDC.
+
2012-07-23 Peter Breitenlohner <peb@mppmu.mpg.de>
* kpse-pkgs.m4 (KPSE_UTILS_PKGS): Moved chktex from here ...
diff --git a/Build/source/m4/kpse-common.m4 b/Build/source/m4/kpse-common.m4
index 4d472482950..b5455deb334 100644
--- a/Build/source/m4/kpse-common.m4
+++ b/Build/source/m4/kpse-common.m4
@@ -224,8 +224,7 @@ dnl
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_FUNC_CLOSEDIR_VOID
-AC_CHECK_HEADERS([assert.h float.h limits.h memory.h pwd.h stdlib.h \
- string.h strings.h sys/param.h unistd.h])
+AC_CHECK_HEADERS([assert.h float.h limits.h pwd.h stdlib.h sys/param.h])
dnl
dnl Replacement functions that may be required on ancient broken system.
AC_CHECK_FUNCS([putenv strcasecmp strtol strstr])
@@ -236,6 +235,10 @@ dnl
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
+AC_TYPE_INT64_T
+AC_TYPE_UINT64_T
+AS_CASE([:$ac_cv_c_int64_t:$ac_cv_c_int64_t:],
+ [*':no:'*], [AC_MSG_ERROR([Sorry, your compiler does not support 64-bit integer types.])])
dnl
dnl Check whether struct stat provides high-res time.
AC_CHECK_MEMBERS([struct stat.st_mtim])