~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Niclas Jansson
  • Date: 2011-10-08 17:41:41 UTC
  • mfrom: (3080.1.2 trunk)
  • Revision ID: njansson@csc.kth.se-20111008174141-3ea62ez1yn9si43r
Merge branch 'master' into mpiio

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
 
15
15
# Feature options.
16
 
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],[Compile with debug symbols]),
 
16
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
 
17
                     [Compile with debug symbols]),
17
18
                     [enable_debug=${enableval}],[enable_debug=no])
18
19
 
19
20
AC_ARG_ENABLE(function-cache, AC_HELP_STRING([--enable-function-cache],
20
21
                              [Compile with local data cache in functions]),
21
 
                              [enable_function_cache=${enableval}],[enable_function_cache=no])
 
22
                              [enable_function_cache=${enableval}],
 
23
                              [enable_function_cache=no])
22
24
 
23
25
AC_ARG_ENABLE(optimize-p1, AC_HELP_STRING([--enable-optimize-p1],
24
26
                           [Compile with optimization for P1 elements]),
25
 
                           [enable_optimize_p1=${enableval}],[enable_optimize_p1=no])
 
27
                           [enable_optimize_p1=${enableval}],
 
28
                           [enable_optimize_p1=no])
26
29
 
27
 
AC_ARG_ENABLE(progress-bar, AC_HELP_STRING([--disable-progress-bar],[Compile without progress bar]),
28
 
                            [enable_progressbar=no],[enable_progressbar=yes])
 
30
AC_ARG_ENABLE(progress-bar, AC_HELP_STRING([--disable-progress-bar],
 
31
                                           [Compile without progress bar]),
 
32
                                           [enable_progressbar=no],
 
33
                                           [enable_progressbar=yes])
29
34
AC_ARG_ENABLE(mpi,
30
35
              AC_HELP_STRING([--enable-mpi],
31
 
              [Compile with support for MPI]),[enable_mpi=${enableval}], [enable_mpi=no])
 
36
              [Compile with support for MPI]),
 
37
              [enable_mpi=${enableval}], [enable_mpi=no])
32
38
 
33
39
AC_ARG_ENABLE(mpi-io, AC_HELP_STRING([--enable-mpi-io],
34
40
                     [Compile with support for MPI I/O]),
36
42
 
37
43
AC_ARG_ENABLE(openmp,
38
44
              AC_HELP_STRING([--enable-openmp],
39
 
              [Compile with support for OpenMP]),[enable_openmp=${enableval}], [enable_openmp=no])
 
45
              [Compile with support for OpenMP]),
 
46
              [enable_openmp=${enableval}], [enable_openmp=no])
40
47
 
41
48
AC_ARG_ENABLE(boost-tr1, AC_HELP_STRING([--enable-boost-tr1],
42
49
                         [Compile with support for Boost TR1 headers]),
50
57
AC_ARG_WITH(gts, AC_HELP_STRING([--with-gts], [Compile with support for GTS]),
51
58
                 [with_gts=${withval}],[with_gts=no])
52
59
 
53
 
AC_ARG_WITH(janpack, AC_HELP_STRING([--with-janpack], [Compile with support for JANPACK]),
 
60
AC_ARG_WITH(janpack, AC_HELP_STRING([--with-janpack], 
 
61
                     [Compile with support for JANPACK]),
54
62
                     [with_janpack=${withval}],[with_janpack=no])
55
63
 
56
 
AC_ARG_WITH(petsc, AC_HELP_STRING([--with-petsc], [Compile with support for PETSc linear algebra]),
57
 
                     [with_petsc=${withval}],[with_petsc=no])
 
64
AC_ARG_WITH(petsc, AC_HELP_STRING([--with-petsc], 
 
65
                   [Compile with support for PETSc linear algebra]),
 
66
                   [with_petsc=${withval}],[with_petsc=no])
58
67
 
59
68
 
60
69
if test "x${enable_function_cache}" = xyes; then
61
 
   AC_DEFINE(ENABLE_FUNCTION_CACHE, [1], [Compile with local data cache in functions])
 
70
   AC_DEFINE(ENABLE_FUNCTION_CACHE, [1], 
 
71
   [Compile with local data cache in functions])
62
72
fi
63
73
 
64
74
if test "x${enable_optimize_p1}" = xyes; then
65
 
   AC_DEFINE(ENABLE_P1_OPTIMIZATIONS, [1], [Compile with optimization for P1 elements])
 
75
   AC_DEFINE(ENABLE_P1_OPTIMIZATIONS, [1], 
 
76
   [Compile with optimization for P1 elements])
66
77
fi
67
78
 
68
79
if test "x${enable_progressbar}" != xyes; then
69
 
   AC_DEFINE(NO_PROGRESS_BAR, [1], [Compile without progress bar])
 
80
   AC_DEFINE(NO_PROGRESS_BAR, [1], 
 
81
   [Compile without progress bar])
70
82
fi
71
83
 
72
84
if test "x${enable_boosttr1}" = xyes; then
163
175
   AC_DEFINE(HAVE_GTS,[1],[Have GTS library])
164
176
fi
165
177
 
 
178
found_la_backend="no"
 
179
 
166
180
if test "x${with_petsc}" != xno; then
167
181
   # This assumes a modern CRAY, for example XT or XE series systems
168
182
   if test "x${ax_cv_cxx_compiler_vendor}" = xcray; then
169
183
      AC_DEFINE(HAVE_PETSC,1,[Define if you have the Petsc library.])
 
184
      found_la_backend="yes"
170
185
   else
171
186
      AX_PETSC
 
187
      if test "x${HAVE_PETSC}" != 0; then
 
188
         found_la_backend="yes"
 
189
      fi
172
190
   fi
173
191
fi
174
192
 
175
193
if test "x${with_janpack}" != xno; then
176
194
   AX_JANPACK
 
195
   if test "x${HAVE_JANPACK}" != 0; then
 
196
     found_la_backend="yes"  
 
197
   fi
 
198
fi
 
199
 
 
200
 
 
201
if test "x${found_la_backend}" != xyes; then
 
202
   AC_MSG_ERROR([Linear Algebra backend not found])
177
203
fi
178
204
 
179
205
if test "x${enable_debug}" != xno; then