From 91e310a8605a993c9a32aeead21b4de548d82f00 Mon Sep 17 00:00:00 2001 From: frostycoolslug Date: Fri, 7 Feb 2003 22:05:57 +0000 Subject: Fixed the CHMOD (nice one Brain` :p) Added a config.cache to store Previous values. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@164 e03df62e-2008-0410-955e-edbf42e46eb7 --- configure | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 19701c3e1..827e41bfa 100755 --- a/configure +++ b/configure @@ -72,8 +72,16 @@ if [ "$PERL" = "" ] ; then exit fi +if [ "$1" = "-clean" -o "$2" = "-clean" ] ; then + CLEAN="1" +fi + +if [ -e "config.cache" -a -z "$CLEAN" ] ; then + . config.cache +fi + +OSNAME=`(uname -s) 2>/dev/null` || OSNAME="unknown" -OSNAME=`(uname -s) 2>/dev/null` || OSNAME="unknown" c="" n="" @@ -254,8 +262,21 @@ echo -e "\033[0;37mMax nickname length:\033[1;32m\t\t$NICK_LENGT" echo -e "\033[0;37mMax channel length:\033[1;32m\t\t$CHAN_LENGT" echo -e "\033[0;37mMax mode length:\033[1;32m\t\t$MAXI_MODES" echo -e "\033[0;37m" -echo "Writing include/inspircd_config.h ..." +echo "Writing cache file for future ./configures ..." +if [ -e "config.cache" ] ; then + rm config.cache +fi +echo "CONFIG_DIR=\"$CONFIG_DIR\"" >> config.cache +echo "MODULE_DIR=\"$MODULE_DIR\"" >> config.cache +echo "MAX_CLIENT=\"$MAX_CLIENT\"" >> config.cache +echo "MAX_CHANNE=\"$MAX_CHANNE\"" >> config.cache +echo "NICK_LENGT=\"$NICK_LENGT\"" >> config.cache +echo "MAXI_MODES=\"$MAXI_MODES\"" >> config.cache + + + +echo "Writing include/inspircd_config.h ..." echo "/* Auto generated by configure, do not modify! */" >include/inspircd_config.h echo "" >>include/inspircd_config.h -- cgit v1.2.3