blob: ef7710e7de8722bdfda4195668c2c0bc3437dee6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#! /bin/bash
################################################################################
# Prepare
################################################################################
# Set up shell
if [ "$(echo ${VERBOSE} | tr '[:upper:]' '[:lower:]')" = 'yes' ]; then
set -x # Output commands
fi
set -e # Abort on errors
################################################################################
# Configure Cactus
################################################################################
pkg-config --exists blas || exit 1
BLAS_INC_DIRS=$(pkg-config --cflags-only-I blas | sed 's/-I//g')
BLAS_LIB_DIRS=$(pkg-config --libs-only-L blas | sed 's/-L//g')
BLAS_LIBS=$(pkg-config --libs-only-l blas | sed 's/-l//g')
# Pass options to Cactus
echo "BEGIN MAKE_DEFINITION"
echo "HAVE_BLAS = 1"
echo "BLAS_DIR = ${BLAS_DIR}"
echo "BLAS_INC_DIRS = ${BLAS_INC_DIRS}"
echo "BLAS_LIB_DIRS = ${BLAS_LIB_DIRS}"
echo "BLAS_LIBS = ${BLAS_LIBS}"
echo "END MAKE_DEFINITION"
echo 'INCLUDE_DIRECTORY $(BLAS_INC_DIRS)'
echo 'LIBRARY_DIRECTORY $(BLAS_LIB_DIRS)'
echo 'LIBRARY $(BLAS_LIBS)'
|