# configure -- produce a config.h from a known configuration
*) echo "Usage: $0 system_type" >&2
echo "Known systems: `cd config; echo ;ls -C`" >&2
if [ -f config
/$1 ]; then
sh .
/mungeconf config
/$1 config.
in >config.h
# echo #echo lines to stdout
sed -n '/^#echo /s///p' config
/$1
bsd44
) ln -s Makefile.bsd44 Makefile
; exit 0 ;;
sed -n '/^MAKE_.*/s//s,^##&## ,,/p' config
/$1 >sedscr
sed -f sedscr Makefile.
in >Makefile
echo "\`$1' is not a known configuration."
echo "Either construct one based on the examples in the config directory,"
echo "or copy config.in to config.h and edit it."