Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
2a016c6b
Commit
2a016c6b
authored
22 years ago
by
Ger van Diepen
Browse files
Options
Downloads
Patches
Plain Diff
%[BugId: 76]%
Improved for new location of blitz
parent
a0bd5809
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
autoconf_share/lofar_blitz.m4
+30
-27
30 additions, 27 deletions
autoconf_share/lofar_blitz.m4
with
30 additions
and
27 deletions
autoconf_share/lofar_blitz.m4
+
30
−
27
View file @
2a016c6b
...
@@ -35,15 +35,14 @@ AC_DEFUN(lofar_BLITZ,dnl
...
@@ -35,15 +35,14 @@ AC_DEFUN(lofar_BLITZ,dnl
[dnl
[dnl
AC_PREREQ(2.13)dnl
AC_PREREQ(2.13)dnl
ifelse($1, [], [lfr_option=0], [lfr_option=$1])
ifelse($1, [], [lfr_option=0], [lfr_option=$1])
ifelse($2, [], define(DEFAULT_BLITZ_PREFIX,[/usr/local]), define(DEFAULT_BLITZ_PREFIX,$2))
AC_ARG_WITH(blitz,
AC_ARG_WITH(blitz,
[ --with-blitz[=PFX] prefix where Blitz is installed (default=]DEFAULT_BLITZ_PREFIX[)],
[ --with-blitz[=PFX] prefix where Blitz is installed (default=]DEFAULT_BLITZ_PREFIX[)],
[with_blitz=$withval],
[with_blitz=$withval],
[with_blitz=""])
[with_blitz=""])
AC_ARG_WITH(blitz-libdir,
AC_ARG_WITH(blitz-libdir,
[ --with-blitz-libdir=PFX prefix where Blitz library is installed],
[ --with-blitz-libdir=PFX prefix where Blitz library is installed],
[with_blitzdir=$withval],
[with_blitz
_lib
dir=$withval],
[with_blitzdir=""])
[with_blitz
_lib
dir=""])
[
[
enable_blitz=no
enable_blitz=no
if test "$lfr_option" = "1"; then
if test "$lfr_option" = "1"; then
...
@@ -51,46 +50,50 @@ if test "$lfr_option" = "1"; then
...
@@ -51,46 +50,50 @@ if test "$lfr_option" = "1"; then
fi
fi
if test "$with_blitz" != "no"; then
if test "$with_blitz" != "no"; then
if test "$with_blitz" = ""; then
if test "$with_blitz" = ""; then
blitz_prefix=
]DEFAULT_BLITZ_PREFIX[
blitz_prefix=
if test "$with_blitzdir" != ""; then
if test "$with_blitz
_lib
dir" != ""; then
enable_blitz=yes
enable_blitz=yes
fi
fi
else
else
if test "$with_blitz" = "yes"; then
if test "$with_blitz" = "yes"; then
blitz_prefix=
]DEFAULT_BLITZ_PREFIX[
blitz_prefix=
else
else
blitz_prefix=$with
val
blitz_prefix=$with
_blitz
fi
fi
enable_blitz=yes
enable_blitz=yes
fi
fi
]
]
##
##
## Look for header file in suggested location or in its include subdir
## Look for header file in suggested location
s
or in its include subdir
##
##
AC_CHECK_FILE([$blitz_prefix/blitz/array.h],
blitz_inclist=$blitz_prefix;
[lfr_header_blitz=$blitz_prefix/blitz],
if test "$blitz_prefix" = ""; then
blitz_inclist="/usr/local/blitz/$lofar_compiler";
case "lofar_compiler" in
gnu?*)
blitz_inclist="$blitz_inclist /usr/local/blitz/gnu";
;;
esac
blitz_inclist="$blitz_inclist /usr/local";
fi
for bdir in $blitz_inclist
do
AC_CHECK_FILE([$bdir/include/blitz/array.h],
[lfr_header_blitz=$bdir/include],
[lfr_header_blitz=no])dnl
[lfr_header_blitz=no])dnl
[
[
if test "$lfr_header_blitz" != "no" ; then
if test "$lfr_header_blitz" != "no" ; then
if test "$with_blitzdir" = ""; then
if test "$with_blitz_libdir" = ""; then
with_blitzdir=$blitz_prefix/blitz/lib
with_blitz_libdir=$bdir/lib;
fi
break;
else
]
AC_CHECK_FILE([$blitz_prefix/include/blitz/array.h],
[lfr_header_blitz=$blitz_prefix/include],
[lfr_lib_blitz=no])dnl
[
if test "$lfr_header_blitz" != "no"; then
if test "$with_blitzdir" = ""; then
with_blitzdir=$blitz_prefix/lib
fi
fi
fi
fi
fi
done
if test "$with_blitzdir" != ""; then
if test "$with_blitz_libdir" != ""; then
]
]
AC_CHECK_FILE([$with_blitzdir/libblitz.a],
AC_CHECK_FILE([$with_blitz
_lib
dir/libblitz.a],
[lfr_lib_blitz=$with_blitzdir],
[lfr_lib_blitz=$with_blitz
_lib
dir],
[lfr_lib_blitz=no])dnl
[lfr_lib_blitz=no])dnl
[
[
fi
fi
...
...
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