diff -ruN mosflm706.orig/fink_gfortran.zsh mosflm706/fink_gfortran.zsh --- mosflm706.orig/fink_gfortran.zsh 1969-12-31 16:00:00.000000000 -0800 +++ mosflm706/fink_gfortran.zsh 2009-09-06 14:52:45.000000000 -0700 @@ -0,0 +1,76 @@ +#!/bin/zsh -f +# +# setup shell script for the release copies of Mosflm for different +# platforms. +# +# Common stuff first +# + + +export CCP4_LIB_FILES='-lccp4f -lccp4c -lxdl_view' +mosroot=${PWD:h} +export MOSROOT=$mosroot +echo MOSROOT has been set to $MOSROOT +moshome=${PWD} +export MOSHOME=$moshome +echo MOSHOME has been set to $MOSHOME +export DEBUG="" +# intel compiler specifics - change this to your local installation - +# note that you will need to use gcc 4.* from Apple for the C compilation +# unless you have bought the Intel C compiler! + +GFORTRANPREFIX=$(dirname $( dirname $(/usr/bin/which gfortran) )) +export F77="gfortran" +export FC="${F77}" +export CC="gcc ${DEBUG}" +export FLINK="gfortran" +export AR_FLAGS="vru" +export DPS=${MOSHOME} +export IND=${MOSHOME}/index +export UTIL=${MOSHOME}/src/dps/util +export JPG=${MOSHOME}/jpg +# +# now for platform dependent items +# + +################################################################### +#intel-pc: +export FFLAGS="-O3 " +export FFLAGS="-O3 " +export CFLAGS="-O0 -DPROTOTYPE -DIFC -c -w" +# if no "fudge.o" vide infra setenv LFLAGS "-Vaxlib -i_dynamic" +# export LFLAGS="-Vaxlib" + + +# +# (2) Mosflm directory +# +#setenv MOSFLAGS "-O3 -ip -ipo -parallel" + +export MOSFLAGS="-O3 " +export MCFLAGS="-O0 -w" +export MOSLIBS="-L${GFORTRANPREFIX}/lib -L${CCP4_LIB} ${CCP4_LIB_FILES} -L/usr/X11R6/lib -lXt -lSM -lICE -lX11 -lcurses" +# +# (3) CBF directories +# +export CBFCFLAGS="-O2 -DPROTOTYPE -DIFC" + +export VERBOSE="v" +export UTILFLAGS="-O -DPROTOTYPE -DIFC -c -w" +export EXTRAFLAGS="-I${UTIL} " +export STDCFLAGS="" +# +# special for MacOSX - it needs files to exist for rm under some +# circumstances +# +touch ${MOSHOME}/index/junk.a +touch ${MOSHOME}/src/junk.a +touch ${MOSHOME}/lib/junk.a +touch ${MOSHOME}/util/junk.a +touch ${MOSHOME}/cbf/junk.a +#exit + +echo CCP4 resides in $CCP4 + +echo "Now issue the command \"make\" " +