#!/bin/sh cd ${0%/*} || exit 1 # run from this directory unset COMP_FLAGS LINK_FLAGS # # use readline if available # unless otherwise specified (with NO_READLINE) # # eg, ./Allwmake NO_READLINE # if [ -f /usr/include/readline/readline.h -a "${1%NO_READLINE}" = "$1" ] then echo "Found -- enabling readline support." export COMP_FLAGS="-DHAS_READLINE" export LINK_FLAGS="-lreadline" fi wmake # ----------------------------------------------------------------- end-of-file