23 lines
516 B
Bash
Executable File
23 lines
516 B
Bash
Executable File
#!/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 <readline/readline.h> -- enabling readline support."
|
|
export COMP_FLAGS="-DHAS_READLINE"
|
|
export LINK_FLAGS="-lreadline"
|
|
fi
|
|
|
|
wmake
|
|
|
|
# ----------------------------------------------------------------- end-of-file
|