1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#!/bin/sh
#--
# $Id: autogen.sh 1936 2006-10-05 19:33:43Z thamer $
#--
# Handle arguments
if test "$1" = "clean"; then
echo "Removing auto-generated files..."
rm -rf configure config.log config.status \
Makefile config.h
exit
fi
# Check for missing tools
EXIT=no
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo "Error: You must have \`autoconf' installed."
EXIT="yes"
}
if test "$EXIT" = "yes"; then
exit
fi
echo "Running autoconf..."
autoconf configure.in > configure && chmod +x configure
rm -rf autom4te.cache
echo "You can now run \"./configure\" and then \"make\"."
|