default 2.7 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
19
                    CPPFLAGS="-DHAVE_LIBSZ -I$HOME/local/include"  LIBS=$HOME/local/lib/libsz.a \
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias CFINT=-Df2cFortran -DMIN_BUF_SIZE=4194304"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
20
21
22
23
24
	;;
# i686-suse-linux
    linux)
	./configure --prefix=$HOME/local \
                    --enable-dap --with-netcdf=$HOME/local \
25
                    CPPFLAGS="-DHAVE_LIBSZ -I$HOME/local/include"  LIBS=$HOME/local/lib/libsz.a \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
26
                    CC=g++ CFLAGS="-g -O2 -Wall -W -Wfloat-equal" CFINT=-Df2cFortran
Uwe Schulzweida's avatar
Uwe Schulzweida committed
27
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
28
    gata)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
29
	./configure --prefix=$HOME/local/LINUX \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
30
                    --with-netcdf=/client \
31
                    CPPFLAGS="-DHAVE_LIBSZ -I$HOME/local/LINUX/include"  LIBS=$HOME/local/LINUX/lib/libsz.a \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
32
	            CC=gcc CFLAGS="-g -O2 -Wall -W -Wfloat-equal" CFINT=-Df2cFortran
Uwe Schulzweida's avatar
Uwe Schulzweida committed
33
34
35
36
37
	;;
# sparc-sun-solaris2.8
    xxf)
	./configure --prefix=$HOME/local/SUN \
                    --with-netcdf=/client \
38
                    CPPFLAGS="-DHAVE_LIBSZ -I$HOME/local/SUN/include"  LIBS=$HOME/local/SUN/lib/libsz.a \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
39
40
                    CC=cc CFLAGS="-fast"
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
41
42
43
44
45
46
# sparc-sun-solaris2.9
    executor | yang | yin)
	./configure --prefix=$HOME/local/SUN64 \
                    --with-netcdf=/scratch/small/m214/m214089/local/SunOS64 \
                    CC=cc CFLAGS="-g -mt -fast -xtarget=native -xarch=v9a"
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
47
48
49
50
51
52
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
78
79
80
81
# 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"
	;;
# alphaev56-dec-osf5.1
    hpca)
	./configure --prefix=$HOME/local \
                    --with-netcdf=/usr/local/lib/netcdf-3.5.0/LP64 \
	            CFLAGS="-q64 -q MAXMEM=-1" CFINT=-Dextname
	;;
    *)
	echo "configuration for hostname $HOSTNAME not found!"
	;;
esac