#!/bin/csh -evf unsetenv TCBUILD_FLAGS setenv OSTYPE `uname -s` if ($OSTYPE == "solaris" || $OSTYPE == "SunOS") then setenv CC "/project/cs/titanium/srs/sparc-sun-solaris2.8/bin/gcc-3.2.2 -static" setenv CXX "/project/cs/titanium/srs/sparc-sun-solaris2.8/bin/g++-3.2.2 -static" setenv PERL "/usr/sww/bin/perl" setenv GMAKE "/usr/sww/bin/gmake" setenv AR "/usr/sww/bin/gar" setenv CONFIGURE_ARGS "--with-papi=/project/cs/titanium/srs/sparc-sun-solaris2.8/papi" else if ($OSTYPE == "Linux") then setenv CC "/project/cs/titanium/srs/i686-pc-linux-gnu/bin/gcc-3.2.2 -static" setenv CXX "/project/cs/titanium/srs/i686-pc-linux-gnu/bin/g++-3.2.2 -static" setenv PERL "/usr/sww/bin/perl" setenv GMAKE "/usr/sww/bin/gmake" if (! -d /usr/mill/bin) then echo ERROR: you should build the Linux SRS release on Millennium exit 1 endif setenv GM_INCLUDE "/usr/mill/pkg/gm/include" setenv GM_LIB "/usr/mill/pkg/gm/lib" setenv GMRUN_CMD "%E/gasnetrun.gexec.pl -np %N %C" setenv MPI_CC "/usr/mill/pkg/mpich-gm/bin/mpicc" setenv MPIRUN_CMD "/usr/mill/pkg/mpich-gm/bin/mpirun -np %N %C" setenv TI_CSPAWN_CMD "gexec -n %N %C" setenv CONFIGURE_ARGS "--enable-gm" else echo Unknown OS type: $OSTYPE exit 1 endif echo n | ./Bootstrap ./configure --enable-srs $CONFIGURE_ARGS make all distcheck make -C runtime/backend tlib make -C ex/comparable make -C ex/TestSuite test make install