# Public domain REGISTER("--enable-warnings", "Enable compiler warnings [default: no]") REGISTER("--enable-static", "Produce a static binary [default: no]") HDEFINE(VERSION, "06102007") HDEFINE(RELEASE, "Wall of Water") C_INCDIR($SRC) C_DEFINE(_USE_AGAR_STD) C_DEFINE(_USE_AGAR_QUEUE) CHECK(cc) CHECK(agar, 1.3) CHECK(agar-net, 1.3) if [ "${enable_warnings}" = "yes" ]; then MDEFINE(CFLAGS, "$CFLAGS -Wall -Werror -Wmissing-prototypes") MDEFINE(CFLAGS, "$CFLAGS -Wno-unused") fi if [ "${enable_static}" = "yes" ]; then MDEFINE(LDFLAGS, "-static") fi if [ "${HAVE_AGAR}" != "yes" ]; then echo "This program requires the Agar library (http://libagar.org/)" exit 1 fi # XXX check for server mode if [ "${HAVE_AGAR_NET}" != "yes" ]; then echo "This program requires the Agar-NET library (http://libagar.org/)" exit 1 fi