default 16.8 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
4
#! /bin/sh
#
# default configuration options and compiler flags for different hosts
#
Uwe Schulzweida's avatar
Uwe Schulzweida committed
5
6
7
#
CONFPATH=`echo $0 | cut -c 1-6`
if [ "$CONFPATH" != "../../" ] ; then
8
  CONFPATH='./'
Uwe Schulzweida's avatar
Uwe Schulzweida committed
9
10
fi
#
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
COMP=""
HOSTNAME=`hostname`
#
while test $# != 0
do
  case $1 in
      CC=?*)
          COMP=`expr "X$1" : 'X[^=]*=\(.*\)'`
          ;;
      *)
          HOSTNAME=$1
          ;;
  esac
  shift
done
Uwe Schulzweida's avatar
Uwe Schulzweida committed
26
#
Uwe Schulzweida's avatar
Uwe Schulzweida committed
27
set -x
Uwe Schulzweida's avatar
Uwe Schulzweida committed
28
29
#
case "${HOSTNAME}" in
30
31
# i386-apple-darwin10
    bailung*|d133*|d134*)
32
33
        CDOLIBS="--enable-nearpt3 \
                 --with-fftw3 \
34
                 --with-grib_api=$HOME/local/grib_api-1.14.7 \
35
36
37
                 --with-netcdf=$HOME/local/netcdf-c-4.3.3.1-threadsafe \
                 --with-hdf5=$HOME/local/hdf5-1.8.15-threadsafe \
                 --with-udunits2=/opt/local \
38
                 --with-curl=/opt/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
39
40
                 --with-libxml2=/usr \
                 --with-magics=$HOME/local/Magics-2.25.3 \
41
42
                 --with-proj=/opt/local \
                 --with-szlib=$HOME/local"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
43

44
        if  test "$COMP" = icpc ; then
45
	  ${CONFPATH}configure --enable-cxx \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
46
                    $CDOLIBS \
47
48
	            CC=icc CXX=icpc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
        elif  test "$COMP" = icc ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
49
50
	  ${CONFPATH}configure  \
                    $CDOLIBS \
51
	            CC=icc CFLAGS="-g -Wall -Wwrite-strings -O2 -qopt-report=5 -march=native"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
52
        elif  test "$COMP" = clang++ ; then
53
	  ${CONFPATH}configure --enable-cxx \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
54
                    $CDOLIBS \
55
	            CC=clang CXX=clang++ CFLAGS="-g -Wall -O3"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
56
        elif  test "$COMP" = clang ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
57
	  ${CONFPATH}configure  \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
58
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
59
	            CC=clang CFLAGS="-g -Wall -Wwrite-strings -O3"
60
        elif  test "$COMP" = g++ ; then
61
	  ${CONFPATH}configure --enable-cxx \
62
                    $CDOLIBS \
63
	            CC=gcc CXX=g++ CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native"
64
65
        else
	  ${CONFPATH}configure --prefix=$HOME/local \
66
                    --enable-maintainer-mode \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
67
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
68
	            CC=gcc CFLAGS="-g -pipe -Wall -W -Wfloat-equal -Wwrite-strings -pedantic -O3 -march=native -fstack-protector"
69
#                    --with-libxml2=/usr 
70
71
#                    --with-magics=/Users/m214003/local/magics-2.14.9
        fi
72
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
73
    hama*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
74
75
76
77
78
#        CDOLIBS="--with-fftw3 \
#                 --with-netcdf=/opt/local \
#                 --with-hdf5=/opt/local \
#                 --with-szlib=$HOME/local \
#                 --with-proj=/opt/local \
79
#                 --with-cmor=/Users/m214003/work/CMOR \
80
#                 --with-magics=$HOME/local/magics-2.25.3 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
81
#                 --with-curl=/opt/local"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
82
83
        CDOLIBS="--enable-nearpt3 \
                 --with-fftw3 \
84
                 --with-grib_api=$HOME/local/gribapi-1.13.0 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
85
                 --with-netcdf=$HOME/local \
86
                 --with-hdf5=$HOME/local \
87
                 --with-libxml2=/opt/local \
88
                 --with-proj=/opt/local"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
89

90
        if  test "$COMP" = icpc ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
91
	  ${CONFPATH}configure --enable-cxx --prefix=$HOME/local \
92
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
93
94
95
	            CC=icc CXX=icpc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native" CXX=icpc
        elif  test "$COMP" = icpc ; then
	  ${CONFPATH}configure \
96
97
                    $CDOLIBS \
	            CC=icc CFLAGS="-g -Wall -Wwrite-strings -O2 -qopt-report=5 -march=native"
98
        elif  test "$COMP" = clang++ ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
99
	  ${CONFPATH}configure --enable-cxx \
100
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
101
	            CC=clang CXX=clang++ CFLAGS="-g -Wall -O3"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
102
103
104
        elif  test "$COMP" = clang ; then
	  ${CONFPATH}configure  \
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
105
	            CC=clang CFLAGS="-g -Wall -Wwrite-strings -Ofast -march=native"
106
        elif  test "$COMP" = g++ ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
107
	  ${CONFPATH}configure --enable-cxx \
108
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
109
	            CC=gcc CXX=g++ CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3"
110
111
        else
	  ${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
112
                    --enable-maintainer-mode \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
113
                    $CDOLIBS \
114
	            CC=gcc CFLAGS="-g -std=c11 -pipe -Wall -Wpointer-arith -Wwrite-strings -W -Wfloat-equal -pedantic -O3 -march=native -Wa,-q -fstack-protector -funsigned-char"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
115
116
#                    --with-libxml2=/usr \
#                    --with-magics=/Users/m214003/local/Magics-2.18.14nio \
117
        fi
Uwe Schulzweida's avatar
Uwe Schulzweida committed
118
	;;
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
    cdo4windows-cyg)
        CDOLIBS="--with-netcdf=/usr \
                 --with-udunits2=/usr \
                 --with-curl=/usr \
                 --with-proj=/usr"

        if  test "$COMP" = clang ; then
	  ${CONFPATH}configure  \
                    $CDOLIBS \
	            CC=clang CFLAGS="-g -Wall -O2"
        else
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
                    $CDOLIBS \
	            CC=gcc CFLAGS="-g -Wall -O2"
        fi
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
136
137
    daint*)
        if  test "$COMP" = icc ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
138
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/INTEL/14.0"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
139
140
141
142
	  ${CONFPATH}configure --prefix=$HOME/local \
                    $CDOLIBS \
	            CC=icc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native -openmp"
        elif  test "$COMP" = pgcc ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
143
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/PGI/15.3"
144
	  ${CONFPATH}configure --disable-openmp \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
145
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
146
	            CC=pgcc CFLAGS="-g -O2"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
147
        elif  test "$COMP" = cray ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
148
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/CRAY/8.3"
149
	  ${CONFPATH}configure --disable-openmp \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
150
                    $CDOLIBS \
151
	            CC=cc CFLAGS="-g -O2 -h noomp"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
152
        else
Uwe Schulzweida's avatar
Uwe Schulzweida committed
153
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/GNU/4.9"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
154
155
156
157
158
	  ${CONFPATH}configure --prefix=$HOME/local \
                    $CDOLIBS \
	            CC=gcc CFLAGS="-g -pipe -Wall -W -Wfloat-equal -pedantic -O3 -march=native -fstack-protector -Wa,-q"
        fi
	;;
159
160
# x86_64-squeeze-x64-linux
    thunder*)
161
162
163
164
165
        CDOLIBS="--with-grib_api=/sw/squeeze-x64/grib_api-1.13.0-static-gccsys \
                 --with-netcdf=/sw/squeeze-x64/netcdf-4.2-static \
                 --with-hdf5=/sw/squeeze-x64/hdf5-1.8.8-static \
                 --with-szlib=/sw/squeeze-x64/szip-2.1 \
                 --with-udunits2=/sw/squeeze-x64/udunits-2.1.19 \
166
                 --with-proj=/sw/squeeze-x64/proj-4.7.0 LIBS=-lz"
167

Uwe Schulzweida's avatar
Uwe Schulzweida committed
168
169
170
171
172
173
        if  test "$COMP" = icpc ; then
          ${CONFPATH}configure --enable-cxx --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=icc CXX=icpc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
        elif  test "$COMP" = icc ; then
174
          ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
175
                    --with-fftw3 \
176
                    $CDOLIBS \
177
	            CC=icc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
178
179
180
181
        elif  test "$COMP" = pgcc ; then
          ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    $CDOLIBS \
	            CC=pgcc CFLAGS="-g -fast"
182
183
184
185
186
187
188
189
190
191
        elif  test "$COMP" = clang ; then
          ${CONFPATH}configure              --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=clang CXX=clang++ CFLAGS="-g -O2"
        elif  test "$COMP" = clang++ ; then
          ${CONFPATH}configure --enable-cxx --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=clang CXX=clang++ CFLAGS="-g -O2"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
192
193
194
        elif  test "$COMP" = g++ ; then
	  ${CONFPATH}configure --enable-cxx \
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
195
	            CC=gcc CXX=g++ CFLAGS="-g -Wall -O3"
196
197
	else
          ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
198
                    --with-fftw3 \
199
                    $CDOLIBS \
200
                    CC=gcc CFLAGS='-g -Wall -O3'
201
	fi
202
	;;
203
204
205
# mistral
    mlogin*)
        CDOLIBS="--with-grib_api=/sw/rhel6-x64/grib_api/grib_api-1.13.0-gcc48 \
206
207
                 --with-netcdf=/sw/rhel6-x64/netcdf/netcdf_c-4.3.2-gcc48 \
                 --with-hdf5=/sw/rhel6-x64/hdf5/hdf5-1.8.14-threadsafe-gcc48 \
208
                 --with-szlib=/sw/rhel6-x64/sys/szip-2.1-gcc48 \
209
210
                 --with-udunits2=/sw/rhel6-x64/util/udunits-2.2.17-gcc48 \
                 --with-proj=/sw/rhel6-x64/graphics/proj4-4.9.1-gcc48"
211
#                 --with-magics=/sw/rhel6-x64/graphics/magicsxx-2.18.15-gfxonly-gcc48 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
212
#                 --with-cmor=/sw/rhel6-x64/cmor-2.9.2-shared-gcc48 \
213

214
215
216
217
218
219
220
        if  test "$COMP" = icpc ; then
          ${CONFPATH}configure  --enable-cxx \
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=icc CXX=icpc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
        elif  test "$COMP" = icc ; then
          ${CONFPATH}configure \
221
222
223
224
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=icc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
        elif  test "$COMP" = pgcc ; then
225
          ${CONFPATH}configure --disable-openmp \
226
227
                    $CDOLIBS \
	            CC=pgcc CFLAGS="-g -fast"
228
229
230
231
        elif  test "$COMP" = g++ ; then
	  ${CONFPATH}configure --enable-cxx \
                    $CDOLIBS \
	            CC=gcc CXX=g++ CFLAGS="-g -Wall -O3 -march=native"
232
	else
233
          ${CONFPATH}configure --prefix=$HOME/local \
234
235
                    --with-fftw3 \
                    $CDOLIBS \
236
                    CC=gcc CFLAGS='-g -Wall -O3 -march=native -mavx2'
237
238
	fi
	;;
239
# x86_64-unknown-linux-gnu
240
    btc*)
241
242
        if  test "$COMP" = icc ; then
          ${CONFPATH}configure --prefix=$HOME/local \
243
244
245
                    --with-grib_api=/lustre/sw/rhel6-x64/grib_api/grib_api-1.13.0-intel15 \
	            --with-netcdf=/lustre/sw/rhel6-x64/netcdf/netcdf_c-4.3.2-intel15 \
                    --with-hdf5=/lustre/sw/rhel6-x64/hdf5/hdf5-1.8.14-threadsafe-intel15 \
246
                    --with-fftw3 \
247
	            CC=icc CFLAGS="-g -Wall -O2 -qopt-report=5 -xCORE-AVX2"
248
249
	else
          ${CONFPATH}configure --prefix=$HOME/local \
250
251
252
                    --with-grib_api=/lustre/sw/rhel6-x64/grib_api/grib_api-1.13.0-gcc48 \
	            --with-netcdf=/lustre/sw/rhel6-x64/netcdf/netcdf_c-4.3.2-gcc48 \
                    --with-hdf5=/lustre/sw/rhel6-x64/hdf5/hdf5-1.8.14-threadsafe-gcc48 \
253
254
255
                    --with-fftw3 \
                    CC=gcc CFLAGS='-g -Wall -O3 -march=native'
	fi
256
	;;
257
258
259
260
261
262
263
264
265
266
267
268
# ia64-xxx-linux
    ds*)
	${CONFPATH}configure --prefix=$HOME/local \
                    --with-netcdf=/pool/ia64/netcdf/netcdf-3.6.0-p1 \
                    --with-szlib=$HOME/local \
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias -DMIN_BUF_SIZE=4194304"
	;;
    wasser*)
	${CONFPATH}configure --prefix=$HOME/local \
                    --with-netcdf=/home/dkrz/m214089/local/ia64 \
                    CC=icc CFLAGS="-g -O2 -Wall -fno-alias"
	;;
269
# x86_64-archlinux
Ralf Mueller's avatar
Ralf Mueller committed
270
    luthien*)
271
272
      case "$COMP" in
      gcc|clang)
273
274
 	${CONFPATH}configure --prefix=$HOME/local \
                    --program-suffix=-dev \
275
                    --enable-maintainer-mode \
276
                    --enable-data \
Ralf Mueller's avatar
Ralf Mueller committed
277
278
279
280
	            --with-netcdf \
	              --with-hdf5 \
                     --with-szlib \
                  --with-grib_api \
Ralf Mueller's avatar
Ralf Mueller committed
281
                  --with-udunits2 \
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
                  --with-grib_api \
                  --with-fftw3    \
                  --with-proj     \
                      --with-pic  \
                      CC=$COMP CFLAGS="-g -Wall -O3" LIBS="-lopenjpeg" LDFLAGS='-lelf -v'
        ;;
      g++|clang++)
 	${CONFPATH}configure --prefix=$HOME/local \
                    --program-suffix=-dev \
                    --enable-maintainer-mode \
                    --enable-data \
                    --enable-cxx  \
	            --with-netcdf \
	              --with-hdf5 \
                     --with-szlib \
                  --with-grib_api \
                  --with-udunits2 \
                  --with-grib_api \
                  --with-fftw3    \
                  --with-proj     \
                      --with-pic  \
                      CC=$COMP CFLAGS="-g -Wall -O2" LIBS=-lopenjpeg
304
	;;
305
306
      esac
    ;;
307
308
309
310
311
# standard workstations at MPI-M x86_64-lenny
    mpipc* )
	${CONFPATH}configure \
               --prefix=`pwd`/build \
               --enable-maintainer-mode \
Ralf Mueller's avatar
Ralf Mueller committed
312
313
314
315
               --with-netcdf='/sw/squeeze-x64/netcdf-latest-gccsys' \
               --with-hdf5='/sw/squeeze-x64/hdf5-latest' \
               --with-szlib='/sw/squeeze-x64/szip-latest' \
               --with-proj='/sw/squeeze-x64/proj-latest' \
316
               --enable-ruby --enable-swig --enable-python \
317
	           CC=gcc CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O2"
318
        ;;
319
# dap enabled
320
    egmont | columbine)
321
322
323
 	  ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/etch-ia32 \
	            --with-netcdf=/sw/etch-ia32/netcdf-4.1.1-gcc \
	            --with-hdf5=/sw/etch-ia32/hdf5-1.8.4-threadsafe \
324
                    --with-szlib=/sw/etch-ia32/szip-2.1 \
325
                    --withroj=/sw/etch-ia32/proj-4.6.0 \
326
	            --enable-all-static CC=icc CFLAGS="-g -fast -openmp" AR=xiar LD=xild
327
#	            CC=gcc CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O2"
328
    ;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
329
# i386-pc-solaris2.10
Uwe Schulzweida's avatar
Uwe Schulzweida committed
330
    grim | mil* )
Uwe Schulzweida's avatar
Uwe Schulzweida committed
331
	${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/solaris10-x86 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
332
                    --with-netcdf=/client \
333
                    --with-szlib=$HOME/local/solaris10-x86 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
334
335
336
337
                    CC=cc CFLAGS="-g -mt -fast"
	;;
# sx6-nec-superux12.2
    cs*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
338
	${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
339
         	    --with-netcdf=/pool/netcdf/netcdf-3.6.0-p1 \
340
		    CC=cc \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
341
342
343
                    CFLAGS="-O -Onooverlap,restrict=all -pvctl,fullmsg,noassume,loopcnt=1000000"
	;;
    sx6)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
344
	${CONFPATH}configure --host=sx6 --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
345
                    --with-netcdf=/pool/SX-6/netcdf/netcdf-3.6.0-p1 \
346
		    CC=sxcc AR=sxar \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
347
348
349
                    CFLAGS="-O -Onooverlap,restrict=all -pvctl,fullmsg,noassume,loopcnt=1000000"
	;;
    es)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
350
	${CONFPATH}configure --host=sx6 --prefix=$HOME/local/ES \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
351
                    --with-netcdf=/S/n010/home010/c0148/local/SX \
352
		    CC=escc AR=esar \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
353
354
                    CFLAGS="-O -Onooverlap,restrict=all -pvctl,fullmsg,noassume,loopcnt=1000000"
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
355
# x86_64-unknown-linux-gnu (rhel55)
356
    wizard*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
357
        LDFLAGS="-lpng"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
358
        export LDFLAGS
359
	${CONFPATH}configure --prefix=$HOME/local/centos58-x64 \
360
361
362
                    --with-proj=/sw/centos58-x64/proj-4.7.0 \
                    --with-hdf5=/sw/centos58-x64/hdf5-1.8.10-patch1 \
                    --with-udunits2=/sw/centos58-x64/udunits-2.1.19 \
363
                    --with-grib_api=/sw/centos58-x64/grib_api-1.12.3 \
364
365
                    --with-netcdf=/sw/centos58-x64/netcdf-4.2.1.1 \
                    --with-szlib=/sw/centos58-x64/szip-2.1 \
366
	            CC=gcc CFLAGS="-g -Wall -O3"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
367
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
368
# powerpc-ibm-aix5.3.0.0
Uwe Schulzweida's avatar
Uwe Schulzweida committed
369
370
    blizzard*)
	${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
371
372
373
                    --with-netcdf=/sw/aix61/netcdf-4.2-threadsafe \
                    --with-hdf5=/sw/aix61/hdf5-1.8.8-threadsafe \
                    --with-szlib=/sw/aix61/szip-2.1-threadsafe \
374
                    --with-udunits2=/sw/aix61/udunits-2.1.14 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
375
                    --with-proj=/sw/aix53/proj-4.6.1 \
376
                    --with-curl=/sw/aix61/curl-7.21.3 \
377
                    AR="ar -X 64"  LDFLAGS="-brtl -R/sw/aix61/openssl-1.0.0d/lib:/sw/aix61/zlib-1.2.6/lib" \
378
 	            CC=xlc_r CFLAGS="-g -O3 -q64 -qhot -qstrict -qarch=auto -qtune=auto -qsmp=omp -DHAVE_MMAP -qthreaded"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
379
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
380
# powerpc-ibm-aix6.0.0.0
381
    c1a*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
382
	${CONFPATH}configure --prefix=$HOME/local \
383
384
385
                    --with-netcdf=/usr/local/apps/netcdf/3.6.3/LP64 \
                    --with-hdf5=/usr/local/apps/hdf5/1.8.1/LP64 \
                    --with-szlib=/usr/local/apps/szip/2.1/LP64 \
386
                    AR="ar -X 64"  LDFLAGS="-brtl" \
387
	            CC=xlc_r CFLAGS="-g -O3 -q64 -qhot -qstrict -qarch=auto -qtune=auto -qsmp=omp -DHAVE_MMAP -qthreaded"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
388
	;;
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
# win7 based cygwin virtual machine
    cdo4windows-cyg)
        if  test "$COMP" = gcc ; then
          ${CONFPATH}configure \
                      --with-netcdf \
                      --with-hdf5 \
                      --with-proj \
                      --with-fftw3 \
                      --with-udunits \
                      CC=gcc CFLAGS='-g -Wall -O3'
        elif  test "$COMP" = g++ ; then
          ${CONFPATH}configure \
                      --with-netcdf \
                      --with-hdf5 \
                      --with-proj \
                      --with-fftw3 \
                      --with-udunits \
                      --enable-cxx \
                      CC=gcc CXX=g++ CFLAGS='-g -Wall -O3' CXXFLAGS='-g -Wall -O3'
        fi
        ;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
410
411
412
    *)
	echo "configuration for hostname $HOSTNAME not found!"
	;;
413
414
415
416
417
418
419
420
# x86_64-unknown-linux-gnu (cray)
    brisi*)
        ${CONFPATH}configure  \
                    --with-netcdf=/opt/cray/netcdf/4.3.2/INTEL/140 \
                    --with-hdf5=/opt/cray/hdf5/1.8.13/INTEL/140 \
                    --with-fftw3 \
                    CC=gcc CFLAGS='-g -Wall -O3'
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
421
esac