site wide configure cache

One can set global configurations for configure in $prefix/share/config.site thats usually /usr/local/share/config.site If you add

while test $(du -b /var/cache/config.cache | cut -f 1) -gt $(head -1 /var/cache/config.cache/.max_size); do
        rm /var/cache/config.cache/"$(ls -tr /var/cache/config.cache | head -1)"
done

cache_file=/var/cache/config.cache/$(for i in ${!ac_cv_env_*}; do eval echo \$${i} ; done | md5sum | cut -d' ' -f 1;)

if test "$AUTOCACHE" = CLEAN; then
        rm $cache_file
fi
config.site

there and then

mkdir /var/cache/config.cache
chgrp developers /var/cache/config.cache # or any other group of trusted people
                                         # which developing software
chmod g+rwsx /var/cache/config.cache
echo 100000 >/var/cache/config.cache/.max_size

then this cache will be used for any subsequent configure, this can give really huge performance benefits (10x faster for configure).

AutoHints (last edited 2007-02-27 01:14:28 by 207)