aboutsummaryrefslogtreecommitdiff
path: root/m4/off_t.m4
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-07-10 13:40:42 -0700
committerElliott Hughes <enh@google.com>2015-07-10 13:43:13 -0700
commit45df23d6dc8b51ea5cd903d023c10fd7d72415b9 (patch)
treee519be160770e6b20bfe88eb923ea6aa8edb3e58 /m4/off_t.m4
parent06d7c2456b4b968f2282fd916456d036ddab4f15 (diff)
downloadsed-45df23d6dc8b51ea5cd903d023c10fd7d72415b9.tar.gz
Downloaded from http://ftp.gnu.org/gnu/sed/ and extracted verbatim. Needed to build Mac GCCs for mips/mips64 --- the BSD sed doesn't supported extended regex alternate syntax \(a\|b\). It will understand sed -E "(a|b)" with the escapes removed, but that's not what's in the configure file. Bug: http://b/22099482 Change-Id: Iec036ab35497a957fe462de1d4fdc326e7df5844
Diffstat (limited to 'm4/off_t.m4')
-rw-r--r--m4/off_t.m418
1 files changed, 18 insertions, 0 deletions
diff --git a/m4/off_t.m4 b/m4/off_t.m4
new file mode 100644
index 0000000..dfca2df
--- /dev/null
+++ b/m4/off_t.m4
@@ -0,0 +1,18 @@
+# off_t.m4 serial 1
+dnl Copyright (C) 2012 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+dnl Check whether to override the 'off_t' type.
+dnl Set WINDOWS_64_BIT_OFF_T.
+
+AC_DEFUN([gl_TYPE_OFF_T],
+[
+ m4_ifdef([gl_LARGEFILE], [
+ AC_REQUIRE([gl_LARGEFILE])
+ ], [
+ WINDOWS_64_BIT_OFF_T=0
+ ])
+ AC_SUBST([WINDOWS_64_BIT_OFF_T])
+])