Changeset 23216
- Timestamp:
- 09/04/18 16:37:17 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/m4/issm_options.m4
r23092 r23216 9 9 dnl ISSM's internal options 10 10 dnl Build info{{{ 11 11 12 12 dnl build date 13 13 AC_PATH_PROGS(DATE, date) … … 153 153 AC_MSG_CHECKING(for wrappers compilation) 154 154 AM_CONDITIONAL([WRAPPERS], [test x$WRAPPERS_VALUE = xyes]) 155 AC_MSG_RESULT($WRAPPERS_VALUE) 155 AC_MSG_RESULT($WRAPPERS_VALUE) 156 156 dnl }}} 157 157 dnl Extensions{{{ … … 251 251 fi 252 252 fi 253 AC_SUBST([OSLIBS]) 253 AC_SUBST([OSLIBS]) 254 254 AC_MSG_RESULT(done) 255 255 dnl }}} … … 281 281 282 282 AC_DEFINE([_HAVE_MATLAB_],[1],[with matlab in ISSM src]) 283 283 284 284 dnl 4. get MEXLIB MEXLINK and MEXEXT (experimental) except for windows 285 285 AC_MSG_CHECKING([matlab's mex compilation flags]) 286 286 case "${host_os}" in 287 *cygwin*) 287 *cygwin*) 288 288 if test $VENDOR = intel-win7-32; then 289 MEXLIB="-Wl,libmx.lib -Wl,libmex.lib -Wl,libmat.lib ${OSLIBS} -Wl,libf2cblas.lib -Wl,libf2clapack.lib" 289 MEXLIB="-Wl,libmx.lib -Wl,libmex.lib -Wl,libmat.lib ${OSLIBS} -Wl,libf2cblas.lib -Wl,libf2clapack.lib" 290 290 MEXLINK="-Wl,/LIBPATH:`cygpath -m ${MATLAB_ROOT}/extern/lib/win32/microsoft` -Wl,/link -Wl,/EXPORT:mexFunction -Wl,/DLL" 291 291 MEXEXT=`$MATLAB_ROOT/bin/mexext.bat` 292 292 MEXEXT=".$MEXEXT" 293 293 elif test $VENDOR = intel-win7-64; then 294 MEXLIB="-Wl,libmx.lib -Wl,libmex.lib -Wl,libmat.lib ${OSLIBS} -Wl,libf2cblas.lib -Wl,libf2clapack.lib" 295 MEXLINK="-Wl,/LIBPATH:`cygpath -m ${MATLAB_ROOT}/extern/lib/win64/microsoft` -Wl,/link -Wl,/EXPORT:mexFunction -Wl,/DLL" 294 MEXLIB="-Wl,libmx.lib -Wl,libmex.lib -Wl,libmat.lib ${OSLIBS} -Wl,libf2cblas.lib -Wl,libf2clapack.lib" 295 MEXLINK="-Wl,/LIBPATH:`cygpath -m ${MATLAB_ROOT}/extern/lib/win64/microsoft` -Wl,/link -Wl,/EXPORT:mexFunction -Wl,/DLL" 296 296 MEXEXT=".mexw64" 297 297 elif test $VENDOR = MSVC-Win64 || test $VENDOR = MSVC-Win64-par; then 298 MEXLIB="-Wl,libmx.lib -Wl,libmex.lib -Wl,libmat.lib ${OSLIBS} -Wl,libf2cblas.lib -Wl,libf2clapack.lib" 299 MEXLINK="-Wl,/link -Wl,/LIBPATH:`cygpath -m ${MATLAB_ROOT}/extern/lib/win64/microsoft` -Wl,/link -Wl,/EXPORT:mexFunction -Wl,/DLL" 298 MEXLIB="-Wl,libmx.lib -Wl,libmex.lib -Wl,libmat.lib ${OSLIBS} -Wl,libf2cblas.lib -Wl,libf2clapack.lib" 299 MEXLINK="-Wl,/link -Wl,/LIBPATH:`cygpath -m ${MATLAB_ROOT}/extern/lib/win64/microsoft` -Wl,/link -Wl,/EXPORT:mexFunction -Wl,/DLL" 300 300 MATLABINCL="-I`cygpath -m $MATLAB_ROOT/extern/include/`" 301 301 MEXEXT=".mexw64" … … 311 311 echo "#include <mex.h>" > conftest.cpp 312 312 echo "void mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]){}" >> conftest.cpp 313 $MATLAB_ROOT/bin/mex -v -lmex conftest.cpp > conftest.tmp 2>&1 313 $MATLAB_ROOT/bin/mex -v -lmex conftest.cpp > conftest.tmp 2>&1 314 314 rm -f conftest.cpp 315 315 MEXLINK=$(cat conftest.tmp | grep LDFLAGS | sed -e "s/LDFLAGS ://g") … … 333 333 MATLABWRAPPEREXT=$MEXEXT 334 334 AC_SUBST([MATLABWRAPPEREXT]) 335 AC_SUBST([MEXLIB]) 335 AC_SUBST([MEXLIB]) 336 336 AC_SUBST([MEXLINK]) 337 337 fi … … 345 345 AC_ARG_WITH([javascript], 346 346 AS_HELP_STRING([--with-javascript], [compile javascript wrappers? default is no.]), 347 [JAVASCRIPT=$withval],[JAVASCRIPT="no"]) 347 [JAVASCRIPT=$withval],[JAVASCRIPT="no"]) 348 348 349 349 dnl Check whether javascript wrappers are desired … … 364 364 AC_ARG_WITH([triangle-dir], 365 365 AS_HELP_STRING([--with-triangle-dir=DIR], [triangle root directory.]), 366 [TRIANGLE_ROOT=$withval],[TRIANGLE_ROOT="no"]) 366 [TRIANGLE_ROOT=$withval],[TRIANGLE_ROOT="no"]) 367 367 368 368 dnl Check whether triangle is enabled … … 394 394 if test "x$HAVE_JAVASCRIPT" = "xyes"; then 395 395 dnl go to the bit code, not the library. 396 TRIANGLELIB=$TRIANGLE_ROOT/triangle.o 396 TRIANGLELIB=$TRIANGLE_ROOT/triangle.o 397 397 else 398 398 TRIANGLELIB=$TRIANGLE_ROOT/triangle.a … … 402 402 if test "x$HAVE_JAVASCRIPT" = "xyes"; then 403 403 dnl go to the bit code, not the library. 404 TRIANGLELIB=$TRIANGLE_ROOT/triangle.o 404 TRIANGLELIB=$TRIANGLE_ROOT/triangle.o 405 405 else 406 406 TRIANGLELIB=$TRIANGLE_ROOT/triangle.a … … 416 416 AC_ARG_WITH([boost-dir], 417 417 AS_HELP_STRING([--with-boost-dir=DIR], [boost root directory.]), 418 [BOOST_ROOT=$withval],[BOOST_ROOT="no"]) 418 [BOOST_ROOT=$withval],[BOOST_ROOT="no"]) 419 419 420 420 dnl Check whether boost is enabled … … 443 443 AC_ARG_WITH([dakota-dir], 444 444 AS_HELP_STRING([--with-dakota-dir=DIR], [dakota root directory.]), 445 [DAKOTA_ROOT=$withval],[DAKOTA_ROOT="no"]) 446 445 [DAKOTA_ROOT=$withval],[DAKOTA_ROOT="no"]) 446 447 447 dnl Check whether dakota is enabled 448 448 AC_MSG_CHECKING([for dakota]) … … 573 573 AC_ARG_WITH([python-dir], 574 574 AS_HELP_STRING([--with-python-dir=DIR], [python root directory.]), 575 [PYTHON_ROOT=$withval],[PYTHON_ROOT="no"]) 575 [PYTHON_ROOT=$withval],[PYTHON_ROOT="no"]) 576 576 577 577 dnl Check whether python is enabled … … 597 597 AC_MSG_RESULT($PYTHON_VERSION) 598 598 599 dnl recover major 599 dnl recover major 600 600 PYTHON_MAJOR=${PYTHON_VERSION%.*} 601 601 AC_DEFINE_UNQUOTED([_PYTHON_MAJOR_],$PYTHON_MAJOR,[python version major]) … … 643 643 AC_ARG_WITH([python-numpy-dir], 644 644 AS_HELP_STRING([--with-python-numpy-dir=DIR], [python-numpy root directory.]), 645 [PYTHON_NUMPY_ROOT=$withval],[PYTHON_NUMPY_ROOT="no"]) 646 645 [PYTHON_NUMPY_ROOT=$withval],[PYTHON_NUMPY_ROOT="no"]) 646 647 647 dnl Check whether numpy is enabled 648 648 AC_MSG_CHECKING(for python-numpy) … … 667 667 AC_ARG_WITH([chaco-dir], 668 668 AS_HELP_STRING([--with-chaco-dir=DIR], [chaco root directory.]), 669 [CHACO_ROOT=$withval],[CHACO_ROOT="no"]) 670 669 [CHACO_ROOT=$withval],[CHACO_ROOT="no"]) 670 671 671 dnl Check whether chaco is enabled 672 672 AC_MSG_CHECKING([for chaco]) … … 694 694 AC_ARG_WITH([scotch-dir], 695 695 AS_HELP_STRING([--with-scotch-dir=DIR], [scotch root directory.]), 696 [SCOTCH_ROOT=$withval],[SCOTCH_ROOT="no"]) 696 [SCOTCH_ROOT=$withval],[SCOTCH_ROOT="no"]) 697 697 698 698 dnl Check whether scotch is enabled … … 708 708 AC_MSG_RESULT($HAVE_SCOTCH) 709 709 AM_CONDITIONAL([SCOTCH],[test x$HAVE_SCOTCH = xyes]) 710 710 711 711 dnl scotch libraries 712 712 if test "x$HAVE_SCOTCH" = "xyes"; then … … 721 721 AC_ARG_WITH([esmf-dir], 722 722 AS_HELP_STRING([--with-esmf-dir=DIR], [esmf root directory.]), 723 [ESMF_ROOT=$withval],[ESMF_ROOT="no"]) 723 [ESMF_ROOT=$withval],[ESMF_ROOT="no"]) 724 724 725 725 dnl Check whether esmf is enabled … … 734 734 fi 735 735 AC_MSG_RESULT($HAVE_ESMF) 736 736 737 737 dnl esmf headers and libraries 738 738 if test "x$HAVE_ESMF" == "xyes"; then … … 748 748 AC_ARG_WITH([adolc-dir], 749 749 AS_HELP_STRING([--with-adolc-dir=DIR], [adolc root directory.]), 750 [ADOLC_ROOT=$withval],[ADOLC_ROOT="no"]) 750 [ADOLC_ROOT=$withval],[ADOLC_ROOT="no"]) 751 751 752 752 dnl Check whether adolc is enabled … … 761 761 fi 762 762 AC_MSG_RESULT($HAVE_ADOLC) 763 763 764 764 dnl adolc headers and libraries 765 765 if test "x$HAVE_ADOLC" == "xyes"; then … … 778 778 AC_ARG_WITH([adolc-version], 779 779 AS_HELP_STRING([--with-adolc-version=number], [adolc version.]), 780 [ADOLC_VERSION=$withval],[ADOLC_VERSION=2]) 781 AC_MSG_CHECKING(for adolc-version) 780 [ADOLC_VERSION=$withval],[ADOLC_VERSION=2]) 781 AC_MSG_CHECKING(for adolc-version) 782 782 783 783 AC_DEFINE_UNQUOTED([_ADOLC_VERSION_],$ADOLC_VERSION,[ADOLC version]) … … 787 787 AC_ARG_WITH([adic2-dir], 788 788 AS_HELP_STRING([--with-adic2-dir=DIR], [adic2 root directory.]), 789 [ADIC2_ROOT=$withval],[ADIC2_ROOT="no"]) 789 [ADIC2_ROOT=$withval],[ADIC2_ROOT="no"]) 790 790 791 791 dnl Check whether adic2 is enabled … … 815 815 AS_HELP_STRING([--with-atlas-dir=DIR],[atlas root directory]), 816 816 [ATLAS_ROOT=$withval],[ATLAS_ROOT="no"]) 817 817 818 818 dnl Check whether atlas is enabled 819 819 AC_MSG_CHECKING(for atlas and cblas libraries) … … 836 836 ;; 837 837 *linux*) 838 ATLASLIB=-L"$ATLAS_ROOT/lib -lcblas -latlas -lm " 838 ATLASLIB=-L"$ATLAS_ROOT/lib -lcblas -latlas -lm " 839 839 ;; 840 840 *darwin*) 841 ATLASLIB=-L"$ATLAS_ROOT/lib -lcblas -latlas -lm" 841 ATLASLIB=-L"$ATLAS_ROOT/lib -lcblas -latlas -lm" 842 842 ;; 843 843 esac … … 849 849 AC_ARG_WITH([gsl-dir], 850 850 AS_HELP_STRING([--with-gsl-dir=DIR], [gsl root directory.]), 851 [GSL_ROOT=$withval],[GSL_ROOT="no"]) 851 [GSL_ROOT=$withval],[GSL_ROOT="no"]) 852 852 853 853 dnl Check whether gsl is enabled … … 862 862 fi 863 863 AC_MSG_RESULT($HAVE_GSL) 864 864 865 865 dnl gsl headers and libraries 866 866 if test "x$HAVE_GSL" == "xyes"; then … … 880 880 AC_ARG_WITH([ampi-dir], 881 881 AS_HELP_STRING([--with-ampi-dir=DIR], [adjoinable mpi root directory.]), 882 [AMPI_ROOT=$withval],[AMPI_ROOT="no"]) 882 [AMPI_ROOT=$withval],[AMPI_ROOT="no"]) 883 883 884 884 dnl Check whether ampi is enabled … … 893 893 fi 894 894 AC_MSG_RESULT($HAVE_AMPI) 895 895 896 896 dnl ampi headers and libraries 897 897 if test "x$HAVE_AMPI" == "xyes"; then … … 915 915 AC_ARG_WITH([rose-dir], 916 916 AS_HELP_STRING([--with-rose-dir=DIR], [rose root directory.]), 917 [ROSE_ROOT=$withval],[ROSE_ROOT="no"]) 917 [ROSE_ROOT=$withval],[ROSE_ROOT="no"]) 918 918 919 919 dnl Check whether rose is enabled … … 941 941 dnl mpi{{{ 942 942 AC_MSG_CHECKING(for mpi) 943 943 944 944 AC_ARG_WITH([mpi-include], 945 945 AS_HELP_STRING([--with-mpi-include=DIR],[mpi include directory, necessary for parallel build]), … … 954 954 [MPI_LIBFLAGS=$withval],[MPI_LIBFLAGS=""]) 955 955 956 956 957 957 if test -z "$MPI_INCLUDE" ; then 958 958 HAVE_MPI=no … … 980 980 if test x$IS_WINDOWS = xyes; then 981 981 MPIINCL=/I"$MPI_INCLUDE" 982 else 982 else 983 983 MPIINCL=-I"$MPI_INCLUDE" 984 984 fi … … 996 996 AS_HELP_STRING([--with-petsc-dir=DIR],[PETSc root directory, necessary for parallel build]), 997 997 [PETSC_ROOT=$withval],[PETSC_ROOT="no"]) 998 998 999 999 dnl Check whether petsc is enabled 1000 1000 AC_MSG_CHECKING([for petsc]) … … 1033 1033 AC_MSG_RESULT(no) 1034 1034 fi 1035 1035 1036 1036 AC_ARG_WITH([petsc-arch], 1037 1037 AS_HELP_STRING([--with-petsc-arch=DIR],[PETSc arch, necessary for PETSc < 3.0]), … … 1050 1050 PETSCINCL+=" $PETSC_ROOT/include/$PETSC_ARCH" 1051 1051 fi 1052 1052 1053 1053 case "${host_os}" in 1054 1054 *cygwin*) … … 1069 1069 if test "x$host_os_version" = "x3.0.101-0.31.1_1.0502.8394-cray_gem_s" ; then 1070 1070 PETSCLIB="-L$PETSC_ROOT/lib -lcraypetsc_gnu_real -lmetis" 1071 fi 1071 fi 1072 1072 ;; 1073 1073 *darwin*) … … 1122 1122 1123 1123 if test "$METIS_VERSION" = "4" ; then 1124 METISINCL=-I"$METIS_ROOT/Lib" 1124 METISINCL=-I"$METIS_ROOT/Lib" 1125 1125 case "${host_os}" in 1126 1126 *cygwin*) 1127 METISINCL="/I`cygpath -m $METIS_ROOT/Lib`" 1127 METISINCL="/I`cygpath -m $METIS_ROOT/Lib`" 1128 1128 METISLIB="-Wl,/link -Wl,/LIBPATH:`cygpath -m $METIS_ROOT` -Wl,libmetis.lib" 1129 1129 ;; … … 1150 1150 ;; 1151 1151 esac 1152 METISINCL=-I"$METIS_ROOT/include" 1152 METISINCL=-I"$METIS_ROOT/include" 1153 1153 AC_DEFINE([_METIS_VERSION_],[5],[ Metis version number]) 1154 1154 fi … … 1164 1164 AC_ARG_WITH([tao-dir], 1165 1165 AS_HELP_STRING([--with-tao-dir=DIR], [tao root directory.]), 1166 [TAO_ROOT=$withval],[TAO_ROOT="no"]) 1166 [TAO_ROOT=$withval],[TAO_ROOT="no"]) 1167 1167 1168 1168 dnl Check whether tao is enabled … … 1199 1199 AC_ARG_WITH([m1qn3-dir], 1200 1200 AS_HELP_STRING([--with-m1qn3-dir=DIR], [m1qn3 root directory.]), 1201 [M1QN3_ROOT=$withval],[M1QN3_ROOT="no"]) 1201 [M1QN3_ROOT=$withval],[M1QN3_ROOT="no"]) 1202 1202 1203 1203 dnl Check whether m1qn3 is enabled … … 1212 1212 fi 1213 1213 AC_MSG_RESULT($HAVE_M1QN3) 1214 1214 1215 1215 dnl m1qn3 headers and libraries 1216 1216 if test "x$HAVE_M1QN3" == "xyes"; then 1217 M1QN3LIB="$M1QN3_ROOT/libm1qn3.a $M1QN3_ROOT/ /libddot.a"1217 M1QN3LIB="$M1QN3_ROOT/libm1qn3.a $M1QN3_ROOT/libddot.a" 1218 1218 AC_DEFINE([_HAVE_M1QN3_],[1],[with M1QN3 in ISSM src]) 1219 1219 AC_SUBST([M1QN3LIB]) … … 1223 1223 AC_ARG_WITH([proj4-dir], 1224 1224 AS_HELP_STRING([--with-proj4-dir=DIR], [proj4 root directory.]), 1225 [PROJ4_ROOT=$withval],[PROJ4_ROOT="no"]) 1225 [PROJ4_ROOT=$withval],[PROJ4_ROOT="no"]) 1226 1226 1227 1227 dnl Check whether proj4 is enabled … … 1236 1236 fi 1237 1237 AC_MSG_RESULT($HAVE_PROJ4) 1238 1238 1239 1239 dnl proj4 headers and libraries 1240 1240 if test "x$HAVE_PROJ4" == "xyes"; then … … 1251 1251 AS_HELP_STRING([--with-slepc-dir=DIR],[slepc root directory]), 1252 1252 [SLEPC_ROOT=$withval],[SLEPC_ROOT="no"]) 1253 1253 1254 1254 dnl Check whether slepc is enabled 1255 1255 AC_MSG_CHECKING([for slepc]) … … 1263 1263 fi 1264 1264 AC_MSG_RESULT($HAVE_SLEPC) 1265 1265 1266 1266 dnl slepc headers and libraries 1267 1267 if test "x$HAVE_SLEPC" == "xyes"; then … … 1277 1277 AS_HELP_STRING([--with-shapelib-dir=DIR], [shapelib root directory]), 1278 1278 [SHAPELIB_ROOT=$withval],[SHAPELIB_ROOT="no"]) 1279 1279 1280 1280 dnl Check whether shapelib is enabled 1281 1281 AC_MSG_CHECKING([for shapelib]) … … 1289 1289 fi 1290 1290 AC_MSG_RESULT($HAVE_SHAPELIB) 1291 1291 1292 1292 dnl shapelib headers and libraries 1293 1293 if test "x$HAVE_SHAPELIB" == "xyes"; then … … 1309 1309 AS_HELP_STRING([--with-scalapack-lib=LIBS],[scalapack libraries to include]), 1310 1310 [SCALAPACKLIB=$withval],[SCALAPACKLIB="no"]) 1311 1311 1312 1312 dnl Check whether scalapack is enabled 1313 1313 AC_MSG_CHECKING([for scalapack]) … … 1329 1329 fi 1330 1330 AC_MSG_RESULT($HAVE_SCALAPACK) 1331 1331 1332 1332 dnl scalapack headers and libraries 1333 1333 if test "x$HAVE_SCALAPACK" = "xyes"; then … … 1340 1340 AS_HELP_STRING([--with-blas-lapack-dir=DIR],[blas-lapack root directory]), 1341 1341 [BLASLAPACK_ROOT=$withval],[BLASLAPACK_ROOT="no"]) 1342 1342 1343 1343 dnl Check whether blas-lapack is enabled 1344 1344 AC_MSG_CHECKING([for blas-lapack]) … … 1352 1352 fi 1353 1353 AC_MSG_RESULT($HAVE_BLASLAPACK) 1354 1354 1355 1355 dnl blas-lapack headers and libraries 1356 1356 if test "x$HAVE_BLASLAPACK" == "xyes"; then … … 1362 1362 ;; 1363 1363 *linux*) 1364 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -lflapack -lfblas " 1364 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -lflapack -lfblas " 1365 1365 ;; 1366 1366 *darwin*) 1367 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -lflapack -lfblas " 1367 BLASLAPACKLIB=-L"$BLASLAPACK_ROOT/lib -lflapack -lfblas " 1368 1368 ;; 1369 1369 esac … … 1393 1393 dnl plapack{{{ 1394 1394 AC_MSG_CHECKING(for plapack) 1395 1395 1396 1396 AC_ARG_WITH([plapack-lib], 1397 1397 AS_HELP_STRING([--with-plapack-lib = lib],[plapack library]), 1398 1398 [PLAPACK_LIB=$withval],[PLAPACK_LIB=""]) 1399 1399 1400 1400 AC_ARG_WITH([plapack-include], 1401 1401 AS_HELP_STRING([--with-plapack-include = include], 1402 1402 [plapack include ]), 1403 1403 [PLAPACK_INCLUDE=$withval],[PLAPACK_INCLUDE=""]) 1404 1404 1405 1405 if test -n "$PLAPACK_LIB"; then 1406 1406 if test -n "$PLAPACK_INCLUDE"; then 1407 1407 1408 1408 HAVE_PLAPACK=yes 1409 1409 PLAPACKINCL="$PLAPACK_INCLUDE" … … 1424 1424 AS_HELP_STRING([--with-mumps-dir=DIR],[mumps root directory]), 1425 1425 [MUMPS_ROOT=$withval],[MUMPS_ROOT="no"]) 1426 1426 1427 1427 dnl Check whether mumps is enabled 1428 1428 AC_MSG_CHECKING([for mumps]) … … 1436 1436 fi 1437 1437 AC_MSG_RESULT($HAVE_MUMPS) 1438 1438 1439 1439 dnl mumps headers and libraries 1440 1440 if test "x$HAVE_MUMPS" == "xyes"; then … … 1455 1455 if test "x$HAVE_MUMPS" != "xyes"; then 1456 1456 AC_MSG_CHECKING(for mumps2 (stand alone)) 1457 1457 1458 1458 AC_ARG_WITH([mumps2-include], 1459 1459 AS_HELP_STRING([--with-mumps2-include=DIR],[mumps2 include directory, necessary for parallel build]), … … 1464 1464 [MUMPS_LIBFLAGS=$withval],[MUMPS_LIBFLAGS=""]) 1465 1465 1466 1466 1467 1467 if test -z "$MUMPS_INCLUDE" ; then 1468 1468 HAVE_MUMPS=no … … 1490 1490 AS_HELP_STRING([--with-blacs-dir=DIR],[blacs root directory]), 1491 1491 [BLACS_ROOT=$withval],[BLACS_ROOT="no"]) 1492 1492 1493 1493 dnl Check whether blacs is enabled 1494 1494 AC_MSG_CHECKING([for blacs]) … … 1502 1502 fi 1503 1503 AC_MSG_RESULT($HAVE_BLACS) 1504 1504 1505 1505 dnl blacs headers and libraries 1506 1506 if test "x$HAVE_BLACS" == "xyes"; then … … 1516 1516 AS_HELP_STRING([--with-hypre-dir=DIR],[hypre root directory]), 1517 1517 [HYPRE_ROOT=$withval],[HYPRE_ROOT="no"]) 1518 1518 1519 1519 dnl Check whether hypre is enabled 1520 1520 AC_MSG_CHECKING([for hypre]) … … 1590 1590 fi 1591 1591 dnl }}} 1592 dnl superlu{{{ 1592 dnl superlu{{{ 1593 1593 AC_ARG_WITH([superlu-dir], 1594 1594 AS_HELP_STRING([--with-superlu-dir=DIR],[superlu root directory]), … … 1606 1606 fi 1607 1607 AC_MSG_RESULT($HAVE_SUPERLU) 1608 1608 1609 1609 dnl superlu headers and libraries 1610 1610 if test "x$HAVE_SUPERLU" == "xyes"; then … … 1616 1616 fi 1617 1617 dnl }}} 1618 dnl spooles{{{ 1618 dnl spooles{{{ 1619 1619 AC_ARG_WITH([spooles-dir], 1620 1620 AS_HELP_STRING([--with-spooles-dir=DIR],[spooles root directory]), … … 1632 1632 fi 1633 1633 AC_MSG_RESULT($HAVE_SPOOLES) 1634 1634 1635 1635 dnl spooles headers and libraries 1636 1636 if test "x$HAVE_SPOOLES" == "xyes"; then … … 1642 1642 fi 1643 1643 dnl }}} 1644 dnl pastix{{{ 1644 dnl pastix{{{ 1645 1645 AC_ARG_WITH([pastix-dir], 1646 1646 AS_HELP_STRING([--with-pastix-dir=DIR],[pastix root directory]), … … 1658 1658 fi 1659 1659 AC_MSG_RESULT($HAVE_PASTIX) 1660 1660 1661 1661 dnl pastix headers and libraries 1662 1662 if test "x$HAVE_PASTIX" == "xyes"; then … … 1672 1672 AS_HELP_STRING([--with-ml-dir=DIR],[ml root directory]), 1673 1673 [ML_ROOT=$withval],[ML_ROOT="no"]) 1674 1674 1675 1675 dnl Check whether ml is enabled 1676 1676 AC_MSG_CHECKING([for ml]) … … 1684 1684 fi 1685 1685 AC_MSG_RESULT($HAVE_ML) 1686 1686 1687 1687 dnl ml headers and libraries 1688 1688 if test "x$HAVE_ML" == "xyes"; then … … 1698 1698 AS_HELP_STRING([--with-umfpack-dir=DIR],[UMFPACK root directory]), 1699 1699 [UMFPACK_ROOT=$withval],[UMFPACK_ROOT="no"]) 1700 1700 1701 1701 dnl Check whether umfpack is enabled 1702 1702 AC_MSG_CHECKING([for umfpack]) … … 1710 1710 fi 1711 1711 AC_MSG_RESULT($HAVE_UMFPACK) 1712 1712 1713 1713 dnl umfpack headers and libraries 1714 1714 if test "x$HAVE_UMFPACK" == "xyes"; then … … 1738 1738 AC_ARG_WITH([math77-dir], 1739 1739 AS_HELP_STRING([--with-math77-dir=DIR], [math77 root directory.]), 1740 [MATH77_ROOT=$withval],[MATH77_ROOT="no"]) 1741 1740 [MATH77_ROOT=$withval],[MATH77_ROOT="no"]) 1741 1742 1742 dnl Check whether math77 is enabled 1743 1743 AC_MSG_CHECKING([for math77]) … … 1751 1751 fi 1752 1752 AC_MSG_RESULT($HAVE_MATH77) 1753 1753 1754 1754 dnl math77 headers and libraries 1755 1755 if test "x$HAVE_MATH77" == "xyes"; then … … 1762 1762 AC_ARG_WITH([fortran], 1763 1763 AS_HELP_STRING([--with-fortran = YES], [do we compile fortran code (default is yes)]), 1764 [FORTRAN=$withval],[FORTRAN=yes]) 1764 [FORTRAN=$withval],[FORTRAN=yes]) 1765 1765 AC_MSG_CHECKING(for fortran compilation) 1766 1766 if test "x$FORTRAN" = "xyes"; then … … 1830 1830 AC_ARG_WITH([meteoio-dir], 1831 1831 AS_HELP_STRING([--with-meteoio-dir=DIR], [use meteoio in conjunction with snowpack model.]), 1832 [METEOIO_ROOT=$withval],[METEOIO_ROOT="no"]) 1832 [METEOIO_ROOT=$withval],[METEOIO_ROOT="no"]) 1833 1833 1834 1834 dnl Check whether meteoio is enabled … … 1843 1843 fi 1844 1844 AC_MSG_RESULT($HAVE_METEOIO) 1845 1845 1846 1846 dnl meteoio headers and libraries 1847 1847 if test "x$HAVE_METEOIO" == "xyes"; then … … 1858 1858 AC_ARG_WITH([snowpack-dir], 1859 1859 AS_HELP_STRING([--with-snowpack-dir=DIR], [use snowpack for surface mass balance model.]), 1860 [SNOWPACK_ROOT=$withval],[SNOWPACK_ROOT="no"]) 1860 [SNOWPACK_ROOT=$withval],[SNOWPACK_ROOT="no"]) 1861 1861 1862 1862 dnl Check whether snowpack is enabled … … 1871 1871 fi 1872 1872 AC_MSG_RESULT($HAVE_SNOWPACK) 1873 1873 1874 1874 dnl snowpack headers and libraries 1875 1875 if test "x$HAVE_SNOWPACK" == "xyes"; then … … 1886 1886 AC_ARG_WITH([neopz-dir], 1887 1887 AS_HELP_STRING([--with-neopz-dir=DIR], [neopz root directory.]), 1888 [NEOPZ_ROOT=$withval],[NEOPZ_ROOT="no"]) 1888 [NEOPZ_ROOT=$withval],[NEOPZ_ROOT="no"]) 1889 1889 1890 1890 dnl Check whether neopz is enabled … … 1899 1899 fi 1900 1900 AC_MSG_RESULT($HAVE_NEOPZ) 1901 1901 1902 1902 dnl neopz headers and libraries 1903 1903 if test "x$HAVE_NEOPZ" == "xyes"; then … … 1938 1938 AC_ARG_WITH([bamg], 1939 1939 AS_HELP_STRING([--with-bamg = YES],[compile with bamg capabilities (default is yes)]), 1940 [BAMG=$withval],[BAMG=yes]) 1940 [BAMG=$withval],[BAMG=yes]) 1941 1941 AC_MSG_CHECKING(for bamg capability compilation) 1942 1942 … … 1952 1952 AC_ARG_WITH([ocean], 1953 1953 AS_HELP_STRING([--with-ocean = YES],[compile with ice/ocean coupling (default is no)]), 1954 [OCEAN=$withval],[OCEAN=no]) 1954 [OCEAN=$withval],[OCEAN=no]) 1955 1955 AC_MSG_CHECKING(for ice/ocean capability compilation) 1956 1956 … … 1966 1966 AC_ARG_WITH([kml], 1967 1967 AS_HELP_STRING([--with-kml = YES],[compile with kml capabilities (default is no)]), 1968 [KML=$withval],[KML=no]) 1968 [KML=$withval],[KML=no]) 1969 1969 AC_MSG_CHECKING(for kml capability compilation) 1970 1970 … … 1980 1980 AC_ARG_WITH([kriging], 1981 1981 AS_HELP_STRING([--with-kriging = YES],[compile with kriging capabilities (default is yes)]), 1982 [KRIGING=$withval],[KRIGING=yes]) 1982 [KRIGING=$withval],[KRIGING=yes]) 1983 1983 AC_MSG_CHECKING(for kriging capability compilation) 1984 1984 … … 1997 1997 AC_ARG_WITH([ios], 1998 1998 AS_HELP_STRING([--with-ios = YES], [compile with iOS capabilities (default is no, alternatives are yes)]), 1999 [IOS=$withval],[IOS=no]) 1999 [IOS=$withval],[IOS=no]) 2000 2000 AC_MSG_CHECKING(for iOS compilation) 2001 2001 … … 2016 2016 AC_ARG_WITH([android], 2017 2017 AS_HELP_STRING([--with-android = EXE], [compile with android capabilities (default is no, alternatives are exe and jni)]), 2018 [ANDROID=$withval],[ANDROID=no]) 2018 [ANDROID=$withval],[ANDROID=no]) 2019 2019 AC_MSG_CHECKING(for android capability compilation) 2020 2020 … … 2043 2043 AC_ARG_WITH([android-ndk], 2044 2044 AS_HELP_STRING([--with-android-ndk=DIR], [android-ndk root directory.]), 2045 [ANDROID_NDK_ROOT=$withval],[ANDROID_NDK_ROOT=""]) 2045 [ANDROID_NDK_ROOT=$withval],[ANDROID_NDK_ROOT=""]) 2046 2046 AC_MSG_CHECKING(with android ndk) 2047 2047 2048 2048 if test -d "$ANDROID_NDK_ROOT"; then 2049 2049 dnl defaults … … 2061 2061 dnl other options 2062 2062 dnl optimization{{{ 2063 dnl bypass standard optimization -g -O2 ? 2063 dnl bypass standard optimization -g -O2 ? 2064 2064 AC_ARG_WITH([cxxoptflags], 2065 2065 AS_HELP_STRING([--with-cxxoptflags = CXXOPTFLAGS], [optimization using CXX flags, ex: --with-cxxoptflags=-march=opteron -O3]), 2066 [CXXOPTFLAGS=$withval],[CXXOPTFLAGS="-g -O2 -fPIC"]) 2066 [CXXOPTFLAGS=$withval],[CXXOPTFLAGS="-g -O2 -fPIC"]) 2067 2067 AC_MSG_CHECKING(for c++ optimization flags) 2068 2068 AC_SUBST([CXXOPTFLAGS]) … … 2079 2079 MULTITHREADINLIB="" 2080 2080 if test "$NUMTHREADS_VALUE" != "1"; then 2081 2081 2082 2082 MULTITHREADINGLIB="-lpthread -lrt" 2083 2083 case "${host_os}" in … … 2096 2096 AC_DEFINE_UNQUOTED([_NUMTHREADS_],[$NUMTHREADS_VALUE],[number of threads]) 2097 2097 AC_SUBST([MULTITHREADINGLIB]) 2098 AC_MSG_RESULT($NUMTHREADS_VALUE) 2098 AC_MSG_RESULT($NUMTHREADS_VALUE) 2099 2099 dnl }}} 2100 2100 dnl 64bit {{{ 2101 2101 AC_ARG_WITH([64bit-indices], 2102 2102 AS_HELP_STRING([--with-64bit-indices = bool], [use 64 bit integers, default 0, ex: --with-64bit-indices=1]), 2103 [USE_64BIT_INDICES=$withval],[USE_64BIT_INDICES=0]) 2103 [USE_64BIT_INDICES=$withval],[USE_64BIT_INDICES=0]) 2104 2104 AC_MSG_CHECKING(for 64 bit indices) 2105 2105 … … 2132 2132 AC_MSG_ERROR([need fortran compiler to compile GiaIvins (or use --without-GiaIvins )]); 2133 2133 fi 2134 2134 2135 2135 dnl check that fortran is provided if Love is on 2136 2136 if test "$HAVE_LOVE" = "yes" && test "$HAVE_FORTRAN" = "no" ; then … … 2142 2142 AC_MSG_ERROR([need mpi if using the metis partitioner!]); 2143 2143 fi 2144 2144 2145 2145 dnl check that if we run adolc, we don't compile krigging.exe 2146 2146 if test "$HAVE_ADOLC" = "yes" && test "$HAVE_KRIGING" = "yes" ; then
Note:
See TracChangeset
for help on using the changeset viewer.