diff options
author | Lucas Heitzmann Gabrielli | 2020-05-21 09:12:04 -0300 |
---|---|---|
committer | Lucas Heitzmann Gabrielli | 2020-05-21 09:12:04 -0300 |
commit | 4df4a1efe749f56b84f6e08107c7ac8dd43c827c (patch) | |
tree | 2c8dbf12c782775c70a9da1a472e7783a47a33af /test_optdepends.sh | |
parent | acf8ee6afcc1b738e1337c2901eeb948346c64d6 (diff) | |
download | aur-4df4a1efe749f56b84f6e08107c7ac8dd43c827c.tar.gz |
Fix dependencies, download external
Diffstat (limited to 'test_optdepends.sh')
-rw-r--r-- | test_optdepends.sh | 139 |
1 files changed, 0 insertions, 139 deletions
diff --git a/test_optdepends.sh b/test_optdepends.sh deleted file mode 100644 index ba074436e88a..000000000000 --- a/test_optdepends.sh +++ /dev/null @@ -1,139 +0,0 @@ -#!/bin/bash - -# Test if external packages for PETSC are installed - -# CONFOPTS="" - -# # External downloads -# for external_pkg in hypre fblaslapack metis parmetis superlu_dist mumps scalapack; do -# CONFOPTS="${CONFOPTS} --download-${external_pkg}=1" -# done - -# Add hypre support -if [ -f "/usr/lib/libHYPRE.so" ]; then - CONFOPTS="${CONFOPTS} --with-hypre=1" -fi - -# Add mumps support -if [ -f "/usr/lib/libmumps_common.so" ]; then - CONFOPTS="${CONFOPTS} --with-mumps=1" -fi - -# Add fftw support -if [ -f "/usr/lib/libfftw3_mpi.so" ]; then - CONFOPTS="${CONFOPTS} --with-fftw=1" -fi - -# Add hdf5 support -if [[ "$(h5stat -V)" ]]; then - CONFOPTS="${CONFOPTS} --with-hdf5=1" -fi - -# Add scalapack support -if [ -f "/usr/lib/pkgconfig/scalapack.pc" ]; then - CONFOPTS="${CONFOPTS} --with-scalapack=1" -fi - -# Add suitesparse support -if [ -f "/usr/include/SuiteSparse_config.h" ]; then - CONFOPTS="${CONFOPTS} --with-suitesparse=1" -fi - -# Add metis support -if [ -f "/usr/include/metis.h" ]; then - CONFOPTS="${CONFOPTS} --with-metis=1" - # Add parmetis support - if [ -f "/usr/include/parmetis.h" ]; then - CONFOPTS="${CONFOPTS} --with-parmetis=1" - fi -fi - -# Add scotch support -SCOTCH_DIR="/usr/include/scotch" -if [ -d "${SCOTCH_DIR}" ]; then - SCOTCH_LIBS="libesmumps.so,libptscotch.so,libptscotcherr.so,libscotch.so,libscotcherr.so" - # Include bzip2 if scotch was build with bzip2 support - if [ -f /usr/include/bzlib.h ];then - SCOTCH_LIBS="${SCOTCH_LIBS},libbz2.so" - fi - SCOTCH_LIBS="[${SCOTCH_LIBS}]" - CONFOPTS="${CONFOPTS} --with-ptscotch=1 --with-ptscotch-lib=${SCOTCH_LIBS} --with-ptscotch-include=${SCOTCH_DIR}" -fi - -# Add superlu support -SUPERLU_DIR="/usr/include/superlu" -if [ -d "${SUPERLU_DIR}" ]; then - CONFOPTS="${CONFOPTS} --with-superlu=1 --with-superlu-lib=-lsuperlu --with-superlu-include=${SUPERLU_DIR}" -fi - -# Incompatible with complex -# # Add sundials support -# SUNDIALS_DIR="/usr/include/sundials/" -# if [ -d "${SUNDIALS_DIR}" ]; then -# CONFOPTS="${CONFOPTS} --with-sundials=1 --with-sundials-include=${SUNDIALS_DIR}" -# fi - -# Add openblas support -if [ -f "/usr/lib/libblas.so" ]; then - CONFOPTS="${CONFOPTS} --with-openblas=1" -fi - -# Add OpenCL support -OPENCL_DIR="/usr/include/CL/" -if [ -f "${OPENCL_DIR}/cl.h" ]; then - CONFOPTS="${CONFOPTS} --with-opencl=1" -else - CONFOPTS="${CONFOPTS} --with-opencl=0" -fi - -# Add eigen support -EIGEN_DIR="/usr/include/eigen3" -if [ -d "${EIGEN_DIR}" ]; then - CONFOPTS="${CONFOPTS} --with-eigen=1 --with-eigen-include=${EIGEN_DIR}" -fi - -# Add OpenMP support -if [ -f "/usr/lib/libomp.so" ]; then - CONFOPTS="${CONFOPTS} --with-openmp=1" -fi - -# Add hwloc support -if [ -f "/usr/lib/libhwloc.so" ]; then - CONFOPTS="${CONFOPTS} --with-hwloc=1 --with-hwloc-pkg-config=/usr/lib/pkgconfig/" -fi - -# Add CGNS support -if [ -f "/usr/lib/libcgns.so" ]; then - CONFOPTS="${CONFOPTS} --with-cgns=1" -fi - -# Add PNG support -if [ -f "/usr/lib/libpng.so" ]; then - CONFOPTS="${CONFOPTS} --with-png=1 --with-png-pkg-config=/usr/lib/pkgconfig/" -fi - -# Add MED support -if [ -f "/usr/lib/libmed.so" ]; then - CONFOPTS="${CONFOPTS} --with-med=1" -fi - -# # Add pastix support -# PASTIX_CONF=$(which pastix-conf) -# if [ -f "${PASTIX_CONF}" ]; then -# PASTIX_DIR="$($PASTIX_CONF --incs | sed 's/-I//')" -# if [ ! -d ${PASTIX_DIR} ]; then -# PASTIX_DIR="[]" -# fi -# #PASTIX_LIBS="$($PASTIX_CONF --libs)" -# PASTIX_LIBS="[libpastix.a,librt.so,libhwloc.so,libpthread.a]" -# CONFOPTS="${CONFOPTS} --with-pastix=1 --with-pastix-lib=${PASTIX_LIBS} --with-pastix-include=${PASTIX_DIR}" -# fi - -# Add trilinos support -if [ "${TRILINOS_DIR}" ]; then - CONFOPTS="${CONFOPTS} --with-ml-dir=${TRILINOS_DIR}" - # Add boost support (may be useful for trilinos) - CONFOPTS="${CONFOPTS} --with-boost=1" -fi - -echo "${CONFOPTS}" |