oksh-noxz

[fork] Portable OpenBSD ksh, based on the Public Domain Korn Shell (pdksh).
git clone https://noxz.tech/git/oksh-noxz.git
oksh-noxz

commit: f067067da3ddbb5f3a0e9d3f0bec5e3032b5ffa4
parent: 0f3cd2ec17fdb8895a18890614ea92e1d84c525e
author: Brian Callahan <bcallah@openbsd.org>
date:   Thu, 10 Aug 2023 21:58:06 -0400
kefir does not understand -g or -w
Mconfigure8++++++++
1 file changed, 8 insertions(+)
diff --git a/configure b/configure
@@ -755,6 +755,9 @@ EOF
 }
 
 wflagcheck() {
+  if [ "x$cc" = "xkefir" ] ; then
+    return 0
+  fi
   cat << EOF > conftest.c
 int main(void){return 0;}
 EOF
@@ -996,6 +999,11 @@ if [ "x$cc" = "xvc" ] ; then
   cflags="-g -O=990 -DEMACS -DVI"
 fi
 
+if [ "x$cc" = "xkefir" ] ; then
+  echo "using kefir, setting CFLAGS to -O2"
+  cflags="-O2 -DEMACS -DVI"
+fi
+
 if [ "x$cflags" = "x-DEMACS -DVI" ] ; then
   printf "checking if the compiler accepts -g -O2... "
   defaultcflagscheck