default 16.1 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
if test -z "$COMP" ; then COMP=gnu ; fi
Uwe Schulzweida's avatar
Uwe Schulzweida committed
28
#
Uwe Schulzweida's avatar
Uwe Schulzweida committed
29
set -x
Uwe Schulzweida's avatar
Uwe Schulzweida committed
30
31
#
case "${HOSTNAME}" in
32
33
# i386-apple-darwin10
    bailung*|d133*|d134*)
34
35
        CDOLIBS="--enable-nearpt3 \
                 --with-fftw3 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
36
                 --with-grib_api=$HOME/local/grib_api-1.14.7aec \
37
38
39
                 --with-netcdf=$HOME/local/netcdf-c-4.3.3.1-threadsafe \
                 --with-hdf5=$HOME/local/hdf5-1.8.15-threadsafe \
                 --with-udunits2=/opt/local \
40
                 --with-curl=/opt/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
41
42
                 --with-libxml2=/usr \
                 --with-magics=$HOME/local/Magics-2.25.3 \
43
                 --with-proj=/opt/local \
44
                 --with-szlib=$HOME/local/libaec-0.3.2"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
45

Uwe Schulzweida's avatar
Uwe Schulzweida committed
46
47
        if  test "$COMP" = intel ; then
	  ${CONFPATH}configure \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
48
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
49
50
	            CXX=icpc CXXFLAGS="-g -Wall -O2 -qopt-report=5 -march=native" \
	            CC=icc   CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
51
        elif  test "$COMP" = clang ; then
52
53
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
54
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
55
56
	            CXX=clang++ CXXFLAGS="-g -Wall -O3" \
	            CC=clang    CFLAGS="-g -Wall -O3"
57
58
59
60
        elif  test "$COMP" = gnu4.9 ; then
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
                    $CDOLIBS \
61
62
	            CXX=g++-mp-4.9 CXXFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native" \
                    CC=gcc-mp-4.9  CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native"
63
64
65
66
        elif  test "$COMP" = gnu5 ; then
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
                    $CDOLIBS \
67
68
	            CXX=g++-mp-5 CXXFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native" \
                    CC=gcc-mp-5  CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
69
        elif  test "$COMP" = gnu ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
70
71
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
72
                    $CDOLIBS \
73
74
	            CXX=g++ CXXFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native" \
                    CC=gcc  CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O3 -march=native"
75
#                    --with-libxml2=/usr 
76
#                    --with-magics=/Users/m214003/local/magics-2.14.9
Uwe Schulzweida's avatar
Uwe Schulzweida committed
77
78
        else
	  ${CONFPATH}configure  $CDOLIBS  CC=$COMP
79
        fi
80
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
81
    hama*)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
82
83
84
85
86
#        CDOLIBS="--with-fftw3 \
#                 --with-netcdf=/opt/local \
#                 --with-hdf5=/opt/local \
#                 --with-szlib=$HOME/local \
#                 --with-proj=/opt/local \
87
#                 --with-cmor=/Users/m214003/work/CMOR \
88
#                 --with-magics=$HOME/local/magics-2.25.3 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
89
#                 --with-curl=/opt/local"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
90
91
        CDOLIBS="--enable-nearpt3 \
                 --with-fftw3 \
92
                 --with-szlib=$HOME/local \
93
                 --with-grib_api=$HOME/local/grib_api-1.21.0 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
94
95
                 --with-netcdf=$HOME/local/netcdf-c-4.4.1.1 \
                 --with-hdf5=$HOME/local/hdf5-1.8.18 \
96
                 --with-libxml2=/opt/local \
97
                 --with-proj=/opt/local"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
98

Uwe Schulzweida's avatar
Uwe Schulzweida committed
99
        if  test "$COMP" = intel ; then
100
	  ${CONFPATH}configure --prefix=$HOME/local --disable-openmp \
101
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
102
103
	            CXX=icpc CXXFLAGS="-g -Wall -O2 -qopt-report=5 -march=native" \
	            CC=icc   CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
104
        elif  test "$COMP" = clang ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
105
	  ${CONFPATH}configure \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
106
                    $CDOLIBS \
107
108
109
110
111
112
113
	            CXX=clang++ CXXFLAGS="-g -Wall -pedantic -O3" \
	            CC=clang    CFLAGS="-g -Wall -pedantic -O3"
        elif  test "$COMP" = clang4 ; then
	  ${CONFPATH}configure \
                    $CDOLIBS \
	            CXX=clang++-mp-4.0 CXXFLAGS="-g -Wall -pedantic -O3" \
	            CC=clang-mp-4.0    CFLAGS="-g -Wall -pedantic -O3"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
114
        elif  test "$COMP" = pgi ; then
115
	  ${CONFPATH}configure --disable-openmp \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
116
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
117
118
	            CXX=pgc++ CXXFLAGS="-g -fast" \
	            CC=pgcc   CFLAGS="-g -fast"
119
120
        else
	  ${CONFPATH}configure --prefix=$HOME/local \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
121
                    --enable-maintainer-mode \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
122
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
123
124
	            CXX=g++ CXXFLAGS="-g -pipe -Wall -W -Wfloat-equal -pedantic -O3 -march=native -Wa,-q -fstack-protector" \
	            CC=gcc  CFLAGS="-g -pipe -Wall -W -Wfloat-equal -pedantic -O3 -march=native -Wa,-q -fstack-protector"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
125
126
#                    --with-libxml2=/usr \
#                    --with-magics=/Users/m214003/local/Magics-2.18.14nio \
127
        fi
Uwe Schulzweida's avatar
Uwe Schulzweida committed
128
	;;
129
# win7 based cygwin virtual machine
130
    cdo4windows-cyg)
Ralf Mueller's avatar
Ralf Mueller committed
131
132
        CDOLIBS="--with-netcdf=/usr/local \
                 --with-hdf5=/usr/local \
133
                 --with-grib_api=/usr/local
134
135
136
                 --with-udunits2=/usr \
                 --with-proj=/usr"

Ralf Mueller's avatar
Ralf Mueller committed
137
138
139
140
141
        if  test "$COMP" = g++ ; then
	  ${CONFPATH}configure --prefix=/usr/local \
                    --program-suffix=-g++ \
                    --enable-cxx \
                    --enable-maintainer-mode \
142
                    $CDOLIBS \
143
	            CC=gcc CXX=g++ CFLAGS="-g -Wall -O2 -DPIC -pie -mwindows" \
Ralf Mueller's avatar
Ralf Mueller committed
144
145
                    LDFLAGS='-L/usr/local/lib' \
                    LIBS='-lpthread -lm -lcurl -lhdf5_hl -lhdf5 -lz  -lsz -laec -ldl'
146
147
148
        else
	  ${CONFPATH}configure --prefix=$HOME/local \
                    --enable-maintainer-mode \
149
                    --enable-all-static \
150
                    $CDOLIBS \
Ralf Mueller's avatar
Ralf Mueller committed
151
152
153
	            CC=gcc CFLAGS="-g -Wall -O2 -DPIC -pie -mwindows" \
                    LDFLAGS='-L/usr/local/lib' \
                    LIBS='-lpthread -lm -lcurl -lhdf5_hl -lhdf5 -lz  -lsz -laec -ldl'
154
155
        fi
	;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
156
157
    daint*)
        if  test "$COMP" = icc ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
158
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/INTEL/14.0"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
159
160
161
162
	  ${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
163
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/PGI/15.3"
164
	  ${CONFPATH}configure --disable-openmp \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
165
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
166
	            CC=pgcc CFLAGS="-g -O2"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
167
        elif  test "$COMP" = cray ; then
Uwe Schulzweida's avatar
Uwe Schulzweida committed
168
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/CRAY/8.3"
169
	  ${CONFPATH}configure --disable-openmp \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
170
                    $CDOLIBS \
171
	            CC=cc CFLAGS="-g -O2 -h noomp"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
172
        else
Uwe Schulzweida's avatar
Uwe Schulzweida committed
173
          CDOLIBS="--with-netcdf=/opt/cray/netcdf/4.3.3.1/GNU/4.9"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
174
175
176
177
178
	  ${CONFPATH}configure --prefix=$HOME/local \
                    $CDOLIBS \
	            CC=gcc CFLAGS="-g -pipe -Wall -W -Wfloat-equal -pedantic -O3 -march=native -fstack-protector -Wa,-q"
        fi
	;;
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# jessie workstation x64
    breeze*)
        CDOLIBS="--with-grib_api=/sw/jessie-x64/grib_api-1.14.3-static-gccsys \
                 --with-netcdf=/sw/jessie-x64/netcdf-4.3.3.1-gccsys \
                 --with-udunits2=/sw/jessie-x64/udunits-2.2.20-gccsys \
                 --with-proj=/sw/jessie-x64/proj4-4.9.3-gccsys LIBS=-lz"
        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
          ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    --with-fftw3 \
                    $CDOLIBS \
	            CC=icc CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
        elif  test "$COMP" = pgcc ; then
          ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
                    $CDOLIBS \
	            CC=pgcc CFLAGS="-g"
        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"
204
205
206
207
208
        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
209
210
211
        elif  test "$COMP" = g++ ; then
	  ${CONFPATH}configure --enable-cxx \
                    $CDOLIBS \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
212
	            CC=gcc CXX=g++ CFLAGS="-g -Wall -O3"
213
214
	else
          ${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/thunder \
215
                    --with-fftw3 \
216
                    $CDOLIBS \
217
                    CC=gcc CFLAGS='-g -Wall -O3'
218
	fi
219
	;;
220
221
222
# mistral
    mlogin*)
        CDOLIBS="--with-grib_api=/sw/rhel6-x64/grib_api/grib_api-1.13.0-gcc48 \
223
224
                 --with-netcdf=/sw/rhel6-x64/netcdf/netcdf_c-4.3.2-gcc48 \
                 --with-hdf5=/sw/rhel6-x64/hdf5/hdf5-1.8.14-threadsafe-gcc48 \
225
                 --with-szlib=/sw/rhel6-x64/sys/libaec-0.3.2-gcc48 \
226
227
                 --with-udunits2=/sw/rhel6-x64/util/udunits-2.2.17-gcc48 \
                 --with-proj=/sw/rhel6-x64/graphics/proj4-4.9.1-gcc48"
228
#                 --with-magics=/sw/rhel6-x64/graphics/magicsxx-2.18.15-gfxonly-gcc48 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
229
#                 --with-cmor=/sw/rhel6-x64/cmor-2.9.2-shared-gcc48 \
230

231
        if  test "$COMP" = intel ; then
Ralf Mueller's avatar
Ralf Mueller committed
232
          ${CONFPATH}configure --prefix=$HOME/local \
233
234
                    --with-fftw3 \
                    $CDOLIBS \
235
236
237
	            CXX=icpc CXXFLAGS="-g -Wall -O2 -qopt-report=5 -march=native" \
	            CC=icc   CFLAGS="-g -Wall -O2 -qopt-report=5 -march=native"
        elif  test "$COMP" = pgi ; then
238
          ${CONFPATH}configure --disable-openmp \
239
                    $CDOLIBS \
240
241
	            CXX=pgc++ CXXFLAGS="-g -fast" \
	            CC=pgcc   CFLAGS="-g -fast"
242
	else
243
          ${CONFPATH}configure --prefix=$HOME/local \
244
245
                    --with-fftw3 \
                    $CDOLIBS \
246
247
                    CXX=g++ CXXFLAGS='-g -Wall -O3 -march=native -mavx2' \
                    CC=gcc  CFLAGS='-g -Wall -O3 -march=native -mavx2'
248
249
	fi
	;;
250
# x86_64-unknown-linux-gnu
251
    btc*)
252
253
        if  test "$COMP" = icc ; then
          ${CONFPATH}configure --prefix=$HOME/local \
254
255
256
                    --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 \
257
                    --with-fftw3 \
258
	            CC=icc CFLAGS="-g -Wall -O2 -qopt-report=5 -xCORE-AVX2"
259
260
	else
          ${CONFPATH}configure --prefix=$HOME/local \
261
262
263
                    --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 \
264
265
266
                    --with-fftw3 \
                    CC=gcc CFLAGS='-g -Wall -O3 -march=native'
	fi
267
	;;
268
269
270
271
272
273
274
275
276
277
278
279
# 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"
	;;
280
# x86_64-archlinux
Ralf Mueller's avatar
Ralf Mueller committed
281
    luthien*)
282
283
      case "$COMP" in
      gcc|clang)
284
285
 	${CONFPATH}configure --prefix=$HOME/local \
                    --program-suffix=-dev \
286
                    --enable-maintainer-mode \
287
                    --enable-data \
288
	            --with-magics \
Ralf Mueller's avatar
Ralf Mueller committed
289
290
291
292
	            --with-netcdf \
	              --with-hdf5 \
                     --with-szlib \
                  --with-grib_api \
Ralf Mueller's avatar
Ralf Mueller committed
293
                  --with-udunits2 \
294
295
296
297
                  --with-grib_api \
                  --with-fftw3    \
                  --with-proj     \
                      --with-pic  \
298
                      CC=$COMP CPPFLAGS=-I/usr/include/magics CFLAGS="-g -Wall -O3" LIBS="-lopenjpeg" LDFLAGS='-lelf -v'
299
300
        ;;
      g++|clang++)
Ralf Mueller's avatar
Ralf Mueller committed
301
302
303
304
305
306
307
308
        case "$COMP" in
          g++)
            CC=gcc
            ;;
          clang++)
            CC=clang
            ;;
        esac
309
310
311
312
313
314
315
316
317
318
319
320
321
322
 	${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  \
Ralf Mueller's avatar
Ralf Mueller committed
323
                      CC=$CC CXX=$COMP CFLAGS="-g -Wall -O2" CXXFLAGS="-g -Wall -O2" LIBS=-lopenjpeg
324
	;;
325
326
      esac
    ;;
Ralf Mueller's avatar
Ralf Mueller committed
327
328
# standard workstations at MPI-M debian jessie
    mpipc149)
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
      CDOLIBS="--prefix=`pwd`/build \
              --enable-maintainer-mode \
              --with-netcdf=/sw/jessie-x64/netcdf-4.3.3.1-gccsys \
              --with-hdf5=/sw/jessie-x64/hdf5-1.8.16-gccsys/ \
              --with-szlib=/sw/jessie-x64/szip-2.1-gccsys \
              --with-udunits2=/sw/jessie-x64/udunits-2.2.20-gccsys \
              --enable-ruby --enable-swig --enable-python "
      case "$COMP" in
        gcc)
          ${CONFPATH}configure \
            $CDOLIBS \
            CC=gcc CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O2" LIBS='-lm  -lpthread '
          ;;
        g++) # jessie used gcc 6.1.1
          ${CONFPATH}configure \
            $CDOLIBS \
            --enable-cxx \
346
            CC=gcc CXX=g++ CFLAGS="-std=c++11 -g -Wall -W -Wfloat-equal -pedantic -O2" LIBS='-lm  -lpthread '
347
348
349
350
351
352
          ;;
        clang)
          ${CONFPATH}configure \
            $CDOLIBS \
            --disable-openmp \
            CC=/sw/jessie-x64/util/clang+llvm-3.8.0/bin/clang CXX=/sw/jessie-x64/util/clang+llvm-3.8.0/bin/clang++
Ralf Mueller's avatar
Ralf Mueller committed
353
        ;;
354
355
356
357
358
359
360
361
362
        clang++) # recent clang-3.8
          ${CONFPATH}configure \
            $CDOLIBS \
            --disable-openmp \
            --enable-cxx \
            CC=/sw/jessie-x64/util/clang+llvm-3.8.0/bin/clang CXX=/sw/jessie-x64/util/clang+llvm-3.8.0/bin/clang++
        ;;
      esac
      ;;
363
364
365
366
367
# standard workstations at MPI-M x86_64-lenny
    mpipc* )
	${CONFPATH}configure \
               --prefix=`pwd`/build \
               --enable-maintainer-mode \
Ralf Mueller's avatar
Ralf Mueller committed
368
369
370
371
               --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' \
372
               --enable-ruby --enable-swig --enable-python \
373
	           CC=gcc CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O2"
374
        ;;
375
# dap enabled
376
    egmont | columbine)
377
378
379
 	  ${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 \
380
                    --with-szlib=/sw/etch-ia32/szip-2.1 \
381
                    --withroj=/sw/etch-ia32/proj-4.6.0 \
382
	            --enable-all-static CC=icc CFLAGS="-g -fast -openmp" AR=xiar LD=xild
383
#	            CC=gcc CFLAGS="-g -Wall -W -Wfloat-equal -pedantic -O2"
384
    ;;
Uwe Schulzweida's avatar
Uwe Schulzweida committed
385
# i386-pc-solaris2.10
Uwe Schulzweida's avatar
Uwe Schulzweida committed
386
    grim | mil* )
Uwe Schulzweida's avatar
Uwe Schulzweida committed
387
	${CONFPATH}configure --prefix=$HOME/local --exec_prefix=$HOME/local/solaris10-x86 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
388
                    --with-netcdf=/client \
389
                    --with-szlib=$HOME/local/solaris10-x86 \
Uwe Schulzweida's avatar
Uwe Schulzweida committed
390
391
                    CC=cc CFLAGS="-g -mt -fast"
	;;
392
393
394
395
396
397
398
399
# 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
400
esac