#! /bin/ksh -x
: ${GWXCC:='gcc -L/usr/gnu/lib'}
: ${GWXCXX:='g++ -L/usr/gnu/lib'}
: ${GWXCFLAGS:="-O6 -fomit-frame-pointer -mcpu=i586 -march=i586"}
: ${GWXCXXFLAGS:="-O6 -fomit-frame-pointer -mcpu=i586 -march=i586"}
: ${GWXSHELL:=/usr/bin/bash}
GWXCFLAGS="${GWXCFLAGS} -DSCO -DMAXPATHLEN=1024 -DFD_SETSIZE=11000"
SHELL="${GWXSHELL}" CONFIG_SHELL="${GWXSHELL}" CC="${GWXCC}" CXX="${GWXCXX}" CFLAGS="${GWXCFLAGS}" CXXFLAGS="${GWXCXXFLAGS}" ${GWXSHELL} auto/configure \
  --srcdir=. \
  --prefix=/usr \
  --host=i586-pc-sco3.2v5.0 \
  --x-includes=${GWXXENVDIR}/usr/X11R6/include \
  --x-libraries=${GWXXENVDIR}/usr/X11R6/lib \
  --with-view-name=vview \
  --with-ex-name=vex \
  --with-features=huge \
  --enable-cscope \
  --with-x \
  --enable-gui=gtk2 \
  --with-tlib=curses \
  --enable-nls \
  --with-compiledby='skunkware@sco.com' \
  --enable-multibyte \
  --enable-xim
