aboutsummaryrefslogtreecommitdiffstats
path: root/extension/configure
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-08-02 21:41:40 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-08-02 21:41:40 +0300
commitedc2856a2ae2dc46037f85652440bd329b1a2c8a (patch)
treec7dc2821a1cea7d65cf8b6ed48d3494e98b98d09 /extension/configure
parent4b00462246822209b642a4dd63491e59a4fab759 (diff)
downloadegawk-edc2856a2ae2dc46037f85652440bd329b1a2c8a.tar.gz
egawk-edc2856a2ae2dc46037f85652440bd329b1a2c8a.tar.bz2
egawk-edc2856a2ae2dc46037f85652440bd329b1a2c8a.zip
Rework zOS patches; keep separate from autotools.
Diffstat (limited to 'extension/configure')
-rwxr-xr-xextension/configure30
1 files changed, 30 insertions, 0 deletions
diff --git a/extension/configure b/extension/configure
index 6e280de9..ea3136c0 100755
--- a/extension/configure
+++ b/extension/configure
@@ -3660,6 +3660,36 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS USS compilation" >&5
+$as_echo_n "checking for z/OS USS compilation... " >&6; }
+if ${ac_cv_zos_uss+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+
+if test "OS/390" = "`uname`"
+then
+ CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=600"
+ if test "x$GCC" != "xyes"
+ then
+ if echo " $CC " | $EGREP ' (/bin/)?(cc|c89) ' >/dev/null
+ then
+ as_fn_error $? "invalid-cc
+GNU Awk does not support the \"cc\" nor \"c89\" compiler frontends on z/OS.
+Please set CC to \"c99\" or one of the \"xlc\" frontends." "$LINENO" 5
+ fi
+ : CFLAGS="$CFLAGS -qlanglvl=stdc99:libext"
+ : CPPFLAGS="$CPPFLAGS -qhaltonmsg=CCN3296"
+ fi
+ ac_cv_zos_uss=yes
+else
+ ac_cv_zos_uss=no
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_zos_uss}" >&5
+$as_echo "${ac_cv_zos_uss}" >&6; }
+
+
INSTALL="$ac_aux_dir/install-sh -c"
export INSTALL