default 3.92 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /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
Uwe Schulzweida's avatar
Uwe Schulzweida committed
14
15
16
17
18
# i386-apple-darwin10
    hama*)
	./configure --prefix=$HOME/local \
                    --with-netcdf=/opt/local \
                    --with-hdf5=/opt/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
19
                    --with-szlib=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
20
	            CC=gcc CFLAGS="-g -pipe -D_REENTRANT -Wall -W -Wfloat-equal -pedantic -O2 -Df2cFortran"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
21
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
22
23
24
25
# ia64-nec-linux
    ds*)
	./configure --prefix=$HOME/local \
                    --with-netcdf=/pool/ia64/netcdf/netcdf-3.6.0-p1 \
26
                    --with-szlib=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
27
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias -DMIN_BUF_SIZE=4194304 -Df2cFortran"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
28
29
	;;
# i686-suse-linux
Uwe Schulzweida's avatar
Uwe Schulzweida committed
30
31
    linux | laptop)
	./configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
32
                    --with-jasper=/usr \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
33
                    --with-grib_api=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
34
                    --with-netcdf=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
35
                    --with-hdf5=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
36
                    --with-szlib=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
37
                    CC=colorgcc CFLAGS="-g -O2 -Wall -W -Wfloat-equal -pedantic -Df2cFortran"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
38
39
	;;
    gata)
40
	./configure --prefix=$HOME/local/etch-ia32 \
41
                    --with-jasper=/sw/etch-ia32/jasper-1.900.1 \
42
                    --with-grib_api=$HOME/local/etch-ia32/grib_api-1.9.5 \
43
44
45
	            --with-netcdf=/sw/etch-ia32/netcdf-4.0.1 \
	            --with-hdf5=/sw/etch-ia32/hdf5-1.8.2 \
                    --with-zlib=/sw/etch-ia32/zlib-1.2.3 \
46
                    --with-szlib=$HOME/local/etch-ia32 \
47
                    LIBS=-ljpeg \
48
	            CC=gcc CFLAGS="-g -O2 -Wall -W -Wfloat-equal -pedantic"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
49
	;;
Ralf Mueller's avatar
Ralf Mueller committed
50
51
52
53
54
55
56
57
    thingol)
	./configure --prefix=$HOME/local/ \
	            --with-netcdf=$HOME/src/cdo/branches/libs4cdo/build-split/netcdf-4.1.1 \
	              --with-hdf5=$HOME/src/cdo/branches/libs4cdo/build-split/hdf5-1.8.4 \
                     --with-szlib=$HOME/src/cdo/branches/libs4cdo/build-split/szip-2.1 \
                      --with-proj=$HOME/src/cdo/branches/libs4cdo/build-split/proj-4.6.1 \
	            CC=gcc CFLAGS="-g -O2 -Wall"
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
58
59
60
61
# sparc-sun-solaris2.8
    xxf)
	./configure --prefix=$HOME/local/SUN \
                    --with-netcdf=/client \
62
                    --with-szlib=$HOME/local/solaris10 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
63
64
                    CC=cc CFLAGS="-fast"
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
65
66
67
68
# sparc-sun-solaris2.9
    executor | yang | yin)
	./configure --prefix=$HOME/local/SUN64 \
                    --with-netcdf=/scratch/small/m214/m214089/local/SunOS64 \
69
                    --with-szlib=$HOME/local/solaris10 \
70
                    CC=cc CFLAGS="-g -mt -xO3 -xtarget=native -m64"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
71
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# 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"
	;;
97
# powerpc-ibm-aix6.1.0.0
Uwe Schulzweida's avatar
Uwe Schulzweida committed
98
    blizzard*)
99
100
101
102
        ./configure --prefix=$HOME/local \
        --with-netcdf=/sw/aix61/netcdf-4.1.1-rc2 \
        --with-hdf5=/sw/aix61/hdf5-1.8.4-patch1-threadsafe \
        --with-zlib=/sw/aix53/zlib-1.2.3 --with-szlib=/sw/aix53/szip-2.1 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
103
104
        AR="ar -X 64" LDFLAGS="-brtl" FC=xlf_r\
        CC=xlc_r CFLAGS="-g -O3 -q64 -qhot -qarch=auto -qtune=auto -DHAVE_MMAP -Dextname"
105
        ;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
106
107
108
109
    *)
	echo "configuration for hostname $HOSTNAME not found!"
	;;
esac