about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-09-21 14:39:21 +0100
committerPeter Stephenson <pws@zsh.org>2015-09-21 14:42:22 +0100
commit8b84419f45298ee564bd6fa2b531c8991b2a1983 (patch)
tree7751501c719854d29d3dcc1f9bf0682eb0895f95 /configure.ac
parent5476e011f16664e601092c1e94e3332efe80720f (diff)
downloadzsh-8b84419f45298ee564bd6fa2b531c8991b2a1983.tar.gz
zsh-8b84419f45298ee564bd6fa2b531c8991b2a1983.tar.xz
zsh-8b84419f45298ee564bd6fa2b531c8991b2a1983.zip
36577: supplement 36559 to using LONG_MAX for 64-bit long
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d7db8ba8d..c3bd713c1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1079,9 +1079,15 @@ main() { return sizeof(ino_t) < 8; }
 fi
 AH_TEMPLATE([ZLONG_IS_LONG_LONG],
 [Define to 1 if the zlong type uses long long int.])
+AH_TEMPLATE([ZLONG_IS_LONG_64],
+[Define to 1 if the zlong type uses 64-bit long int.])
 if test "$zsh_cv_64_bit_type" = "long long"; then
   dnl Remember this so we can get (s)printf output right.
   AC_DEFINE(ZLONG_IS_LONG_LONG)
+else
+  if test "$zsh_cv_64_bit_type" = "long"; then
+      AC_DEFINE(ZLONG_IS_LONG_64)
+  fi
 fi
 
 dnl We'll blithely assume (f)printf supports the same types as sprintf.