aboutsummaryrefslogtreecommitdiffstats
path: root/m4/arch.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/arch.m4')
-rw-r--r--m4/arch.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/arch.m4 b/m4/arch.m4
index 4698f082..97b43e64 100644
--- a/m4/arch.m4
+++ b/m4/arch.m4
@@ -57,3 +57,18 @@ fi
])dnl
AC_MSG_RESULT([${gawk_cv_linux_alpha_hack}])
])dnl
+
+dnl Check for z/OS Unix Systems Services
+AC_DEFUN([AC_ZOS_USS], [
+AC_MSG_CHECKING([for z/OS USS compilation])
+if test "OS/390" = "`uname`"
+then
+ CFLAGS="$CFLAGS -D_ALL_SOURCE -DZOS_USS -DUSE_EBCDIC"
+ # Must rebuild awkgram.c from Bison for EBCDIC
+ rm -f awkgram.c
+ ac_cv_zos_uss=yes
+else
+ ac_cv_zos_uss=no
+fi
+AC_MSG_RESULT([${ac_cv_zos_uss}])
+])dnl