Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
0bed621d
Unverified
Commit
0bed621d
authored
4 years ago
by
iarspider
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add missing file (#17426)
Co-authored-by:
Ivan Razumov
<
ivan.razumov@cern.ch
>
parent
1d2754c3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
var/spack/repos/builtin/packages/rivet/gsl.m4
+60
-0
60 additions, 0 deletions
var/spack/repos/builtin/packages/rivet/gsl.m4
with
60 additions
and
0 deletions
var/spack/repos/builtin/packages/rivet/gsl.m4
0 → 100644
+
60
−
0
View file @
0bed621d
# AC_SEARCH_GSL(actionIfFound, actionIfNotFound)
AC_DEFUN([AC_SEARCH_GSL],[
AC_ARG_WITH([gsl], AC_HELP_STRING(--with-gsl, [path to GSL library and header files]))
## Use a specified --with-gsl arg to set basic paths, if provided
GSLCONFIG_PATH=$PATH
if test -e "$with_gsl"; then
GSLCONFIG_PATH="$with_gsl/bin:$GSLCONFIG_PATH"
GSLPATH="$with_gsl"
GSLINCPATH="$GSLPATH/include"
GSLLIBPATH="$GSLPATH/lib"
GSL_CPPFLAGS="-I$GSLINCPATH"
GSL_CXXFLAGS=""
GSL_LDFLAGS="-L$GSLPATH/lib -lgsl -lgslcblas -lm"
fi
## Try to do better, using the gsl-config script
AC_PATH_PROG(GSLCONFIG, gsl-config, [], [$GSLCONFIG_PATH])
if test -x "$GSLCONFIG"; then
AC_MSG_NOTICE(Using $GSLCONFIG to find GSL flags)
GSLPATH=`$GSLCONFIG --prefix`
GSLINCPATH="$GSLPATH/include"
GSLLIBPATH="$GSLPATH/lib"
GSL_CPPFLAGS=`$GSLCONFIG --cflags`
GSL_CXXFLAGS=`$GSLCONFIG --cflags`
GSL_LDFLAGS=`$GSLCONFIG --libs`
fi
## If it's worked, propagate the conditionals and execute success arg
if test -e "$GSLPATH"; then
AM_CONDITIONAL([WITH_GSL], true)
AM_CONDITIONAL([WITH_GSLLIB], true)
AM_CONDITIONAL([WITH_GSLINC], true)
AM_CONDITIONAL([WITHOUT_GSL], false)
AM_CONDITIONAL([WITHOUT_GSLLIB], false)
AM_CONDITIONAL([WITHOUT_GSLINC], false)
$1
else
## Otherwise execute the fail arg
AM_CONDITIONAL([WITH_GSL], false)
AM_CONDITIONAL([WITH_GSLLIB], false)
AM_CONDITIONAL([WITH_GSLINC], false)
AM_CONDITIONAL([WITHOUT_GSL], true)
AM_CONDITIONAL([WITHOUT_GSLLIB], true)
AM_CONDITIONAL([WITHOUT_GSLINC], true)
$2
fi
## Propagate path and flag variables
AC_SUBST([GSLPATH])
AC_SUBST([GSLINCPATH])
AC_SUBST([GSLLIBPATH])
AC_SUBST([GSL_CPPFLAGS])
AC_SUBST([GSL_CXXFLAGS])
AC_SUBST([GSL_LDFLAGS])
AC_MSG_NOTICE([GSL include path is $GSLINCPATH])
AC_MSG_NOTICE([GSL CPPFLAGS is $GSL_CPPFLAGS])
AC_MSG_NOTICE([GSL CXXFLAGS is $GSL_CXXFLAGS])
AC_MSG_NOTICE([GSL LDFLAGS is $GSL_LDFLAGS])
])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment