Changeset dfed1c for configure.ac
- Timestamp:
- Nov 22, 2011, 9:22:10 PM (14 years ago)
- Children:
- facba0
- Parents:
- 66f24d
- File:
-
- 1 edited
-
configure.ac (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r66f24d rdfed1c 1 1 2 # -*- Autoconf -*- 2 3 # Process this file with autoconf to produce a configure script. … … 8 9 AC_MSG_NOTICE([* Configuring solver VMG *]) 9 10 AC_MSG_NOTICE([****************************************************************]) 10 11 11 12 12 AC_CONFIG_SRCDIR([src/mg.cpp]) … … 24 24 CXXFLAGS=${CXXFLAGS-"-g -O0 -Wall"} 25 25 AC_DEFINE([DEBUG], [1], [Debugging output]) 26 AC_DEFINE([DEBUGCMAT], [1], [Check matrices for nan])27 26 ]) 27 28 AC_ARG_ENABLE([debug-check-matrices], AS_HELP_STRING([--enable-debug-check-matrices], [Enable matrix validity checks])) 29 30 AS_IF([test "$enable_debug_check_matrices" = "yes"], [ 31 AC_DEFINE([DEBUG_MATRIX_CHECKS], [1], [Matrix validity checks]) 32 ]) 33 34 AC_ARG_ENABLE([debug-output], AS_HELP_STRING([--enable-debug-output], [Enable debugging output])) 35 36 AS_IF([test "$enable_debug_output" = "yes"], [ 37 AC_DEFINE([DEBUG_OUTPUT], [1], [Debugging output]) 38 ]) 39 40 AC_ARG_ENABLE([mpe], AS_HELP_STRING([--enable-mpe], [Enable MPE parallel profiling])) 41 42 AC_ARG_ENABLE([debug-measure-time], AS_HELP_STRING([--enable-debug-measure-time], [Enable runtime measurement])) 43 44 AS_IF([test "$enable_debug_measure_time" = "yes"], [ 45 AC_DEFINE([DEBUG_MEASURE_TIME], [1], [Runtime measurement]) 46 ]) 47 48 AC_ARG_ENABLE([debug-barrier], AS_HELP_STRING([--enable-debug-barrier], [Enable MPI_Barrier debugging])) 49 50 AS_IF([test "$enable_debug_barrier" = "yes"], [ 51 AC_DEFINE([DEBUG_BARRIER], [1], [MPI_Barrier debugging]) 52 ]) 53 54 AC_ARG_ENABLE([release], AS_HELP_STRING([--enable-release], [Compile with release settings])) 55 56 AS_IF([test "$enable_release" = "yes"], [ 57 AC_DEFINE([RELEASE], [1], [Release]), 58 AC_DEFINE([NDEBUG], [1], [Skip asserts]) 59 ]) 60 61 AC_ARG_VAR(BSPLINE_DEG, [Degree of interpolating B-Splines. Must be [3-6].]) 62 63 if test -z "$BSPLINE_DEG" 64 then 65 BSPLINE_DEG=3 66 fi 67 68 AC_DEFINE_UNQUOTED([BSPLINE_DEGREE], ${BSPLINE_DEG}, [Interpolating B-Spline degree]) 28 69 29 70 # Checks for programs. … … 34 75 35 76 # Do not even look for a non-MPI C++ compiler if MPICXX is set. 36 AX_PROG_CXX_MPI(,[AC_DEFINE([HAVE_MPI], [1], 37 [Define if building the MPI parallel version]) 38 AC_DEFINE([MPICH_SKIP_CXX], [1], [Skip C++ bindings]) 39 AC_DEFINE([OMPI_SKIP_MPICXX], [1], [Skip C++ bindings])], 40 [AC_DEFINE([sequent], [1], 41 [Define if building the serial version])]) 77 if test -n "$MPICXX" && test -z "$CXX"; then 78 CXX=$MPICXX 79 fi 80 ACX_MPI([AC_DEFINE([HAVE_MPI], [1], 81 [Define if building the MPI parallel version]) 82 CXX=$MPICXX 83 LIBS="$MPILIBS $LIBS" 84 AC_DEFINE([MPICH_SKIP_CXX], [1], [Skip C++ bindings]) 85 AC_DEFINE([OMPI_SKIP_MPICXX], [1], [Skip C++ bindings])] 86 if test "$enable_mpe" = "yes"; then 87 AC_DEFINE([HAVE_MPE], [1], [Use MPE parallel profiler]) 88 fi, 89 [AC_DEFINE([sequent], [1], 90 [Define if building the serial version])]) 42 91 43 92 # Get the Fortran MPI compiler, for Lapack. … … 54 103 55 104 AM_OPTIONS_VTK 56 AM_PATH_VTK([5.4.2], 105 AM_PATH_VTK([5.4.2], 57 106 [AC_DEFINE([HAVE_VTK], [1], [VTK present on system])]) 58 107 … … 60 109 AC_SUBST([VTK_LDFLAGS]) 61 110 62 AX_BOOST_BASE 111 AX_BOOST_BASE([1.34]) 63 112 AX_BOOST_SYSTEM 64 113 AX_BOOST_FILESYSTEM … … 74 123 # Checks for libraries. 75 124 AC_CHECK_LIB([m], [sqrt]) 76 77 125 AX_LAPACK 78 126 AM_CONDITIONAL([HAVE_LAPACK], [test "x$ax_lapack_ok" = xyes]) 79 80 AC_CHECK_LIB([gsl], [gsl_qrng_init])81 127 82 128 AC_CACHE_CHECK([for cppunit], [vmg_cv_cppunit], … … 99 145 # Checks for types. 100 146 101 # Set up FCS library arguments if inside the FCS tree. 102 m4_ifdef([AX_FCS_CONFIG_SOLVER_ARGS], 103 [AX_FCS_CONFIG_SOLVER_ARGS]) 104 105 # Set up FCS library if inside the FCS tree. 106 m4_ifdef([AX_FCS_CONFIG_SOLVER], 107 [AX_FCS_CONFIG_SOLVER 147 # Set up FCS types if inside the FCS tree. 148 m4_ifdef([AX_FCS_TYPES], 149 [AX_FCS_TYPES 108 150 AC_DEFINE([vmg_float], [fcs_float], 109 151 [Define to the primary interface and computation floating type.]) … … 139 181 test/Makefile 140 182 test/interfaces/Makefile 141 test/unit_test/Makefile]) 183 test/unit_test/Makefile 184 vmg_particles/Makefile]) 142 185 AC_OUTPUT
Note:
See TracChangeset
for help on using the changeset viewer.
