: # WARNING Will need to manually move contrib, examples, html to doc # WARNING Will need to manually symlink arch/rrdtool/lib BEFORE installing pwd=`pwd` what=`echo "$pwd"|sed -e 's@^.*/@@'` case "$what" in rrdtool-*) where=. ;; *) pwd=`(cd .. && pwd)` what=`echo "$pwd"|sed -e 's@^.*/@@'` case "$what" in gnupg-*) where=.. ;; *) echo "Weird starting directory $pwd" >&2 exit 1 ;; esac ;; esac what=rrdtool # ignore versioning prefix=/.software/share/$what eprefix=/.software/arch/$what lprefix=/.software/local/$what export CFLAGS="-O2" case "`uname -m`" in i?86) CFLAGS="$CFLAGS -m486" gcc -v 2>&1|grep egcs>/dev/null || CFLAGS="$CFLAGS -no-strength-reduce" ;; arm*) #OPTS="--disable-asm" CFLAGS="-D__USE_GNU -Wall";; esac $where/configure --prefix=$prefix \ --exec-prefix=$eprefix \ --datadir=$eprefix/servers \ --sbindir=$eprefix/maintenance \ --sysconfdir=$prefix/config \ --disable-nls \ $OPTS