default 3.05 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
#
# default configuration options and compiler flags for different hosts
#
if test -z "$1" ; then
  HOSTNAME=`hostname`
else
  HOSTNAME=$1
fi
#
set -x
#
case "${HOSTNAME}" in
# ia64-nec-linux
    ds*)
	./configure --prefix=$HOME/local \
                    --with-netcdf=/pool/ia64/netcdf/netcdf-3.6.0-p1 \
18
                    --with-szlib=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
19
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias -DMIN_BUF_SIZE=4194304" CFINT=-Df2cFortran
Uwe Schulzweida's avatar
Uwe Schulzweida committed
20
21
	;;
# i686-suse-linux
Uwe Schulzweida's avatar
Uwe Schulzweida committed
22
23
    linux | laptop)
	./configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
24
                    --with-jasper=/usr \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
25
                    --with-grib_api=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
26
27
                    --with-netcdf=$HOME/local \
                    --with-szlib=$HOME/local \
28
                    CC=gcc CFLAGS="-g -O2 -Wall -W -Wfloat-equal -pedantic" CFINT=-Df2cFortran
Uwe Schulzweida's avatar
Uwe Schulzweida committed
29
30
	;;
    gata)
31
	./configure --prefix=$HOME/local/etch-ia32 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
32
                    --with-jasper=$HOME/local/etch-ia32 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
33
                    --with-grib_api=/scratch/local2/m214003/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
34
35
                    --with-netcdf=/scratch/local2/m214003/local \
                    --with-hdf5=/sw/etch-ia32/hdf5-1.8.2 \
36
                    --with-szlib=$HOME/local/etch-ia32 \
37
	            CC=gcc CFLAGS="-g -O2 -Wall -W -Wfloat-equal -pedantic" CFINT=-Df2cFortran
Uwe Schulzweida's avatar
Uwe Schulzweida committed
38
39
40
41
42
	;;
# sparc-sun-solaris2.8
    xxf)
	./configure --prefix=$HOME/local/SUN \
                    --with-netcdf=/client \
43
                    --with-szlib=$HOME/local/solaris10 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
44
45
                    CC=cc CFLAGS="-fast"
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
46
47
48
49
# sparc-sun-solaris2.9
    executor | yang | yin)
	./configure --prefix=$HOME/local/SUN64 \
                    --with-netcdf=/scratch/small/m214/m214089/local/SunOS64 \
50
                    --with-szlib=$HOME/local/solaris10 \
51
                    CC=cc CFLAGS="-g -mt -xO3 -xtarget=native -m64"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
52
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# sx6-nec-superux12.2
    cs*)
	./configure --prefix=$HOME/local \
         	    --with-netcdf=/pool/netcdf/netcdf-3.6.0-p1 \
		    CC=c++ \
                    CFLAGS="-O -Onooverlap,restrict=all -pvctl,fullmsg,noassume,loopcnt=1000000"
	;;
    sx6)
	./configure --host=sx6 --prefix=$HOME/local \
                    --with-netcdf=/pool/SX-6/netcdf/netcdf-3.6.0-p1 \
		    CC=sxc++ AR=sxar RANLIB=ls \
                    CFLAGS="-O -Onooverlap,restrict=all -pvctl,fullmsg,noassume,loopcnt=1000000"
	;;
# mips-sgi-irix6.5
    ecgate1)
	./configure --prefix=$HOME/local \
 	            --with-netcdf=/home/ms/spdekplb/hmk/include,/home/ms/spdekplb/hmk/lib64 \
	            CC=cc CFLAGS="-O -n32"
	;;
# 5000-fujitsu-uxpv4.1_ES
    vpp5)
	./configure --prefix=$HOME \
	            --with-netcdf=$HOME/PROJ \
	            CC=vcc CFLAGS="-O -Wv,-m3 -K4"
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
78
79
80
81
82
83
84
# powerpc-ibm-aix5.3.0.0
    blizzard*)
	./configure --prefix=$HOME/local \
                    --with-netcdf=/sw/aix53/netcdf-4.0.1-ibm \
                    --with-hdf5=/sw/aix53/hdf5-1.8.2 \
                    --with-szlib=/sw/aix53/szip-2.1 \
                    AR="ar -X 64" CFINT=-Dextname \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
85
 	            CC=xlc_r CFLAGS="-g -O3 -q64 -qhot -qarch=auto -qtune=auto -DHAVE_MMAP"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
86
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
87
88
89
90
    *)
	echo "configuration for hostname $HOSTNAME not found!"
	;;
esac