#! /bin/csh -ef

if ( $?PSRHOME ) then
  setenv prefix $PSRHOME/packages/$LOGIN_ARCH
else
  setenv prefix /usr/local
endif

alias MAKE "./configure --prefix=$prefix; make; make install; rehash; cd .."

echo installing in $prefix

setenv PATH ${prefix}:${PATH}

echo unpacking m4 ...
gunzip -c m4-1.4.6.tar.gz | tar xf -
cd m4-1.4.6
MAKE

echo unpacking autoconf ...
gunzip -c autoconf-2.60.tar.gz | tar xf -
cd autoconf-2.60
MAKE

gunzip -c automake-1.9.6.tar.gz | tar xf -
cd automake-1.9.6
MAKE

gunzip -c libtool-1.5.8.tar.gz | tar xf -
cd libtool-1.5.8
MAKE

