#!/bin/sh # Script to configure the tcp part of the shawing package CFLAGS= MAKE="echo \"Configuration complete.\"; \ echo \"Type 'make' to build.\"" echo "Making configuration..." while [ $# -gt 0 ] do case $1 in -d) CFLAGS=-DDEBUG echo "Configuring for debug mode." shift;; -m) MAKE=make shift;; *) echo "Usage: Configure [-d] [-m]" exit;; esac done cc $CFLAGS -o config config.c if ./config then eval $MAKE fi rm -f config