Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
mpim-sw
libcdi
Commits
f8cc1aee
Commit
f8cc1aee
authored
3 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Add configure option --with-fdb5
parent
8fdafb93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cdi.settings.in
+4
-0
4 additions, 0 deletions
cdi.settings.in
config/default
+2
-1
2 additions, 1 deletion
config/default
m4/acx_options.m4
+35
-0
35 additions, 0 deletions
m4/acx_options.m4
src/cdi_int.c
+7
-0
7 additions, 0 deletions
src/cdi_int.c
with
48 additions
and
1 deletion
cdi.settings.in
+
4
−
0
View file @
f8cc1aee
...
...
@@ -31,6 +31,10 @@
"fclibs" : "@MPI_FC_LIB@",
"fcflags" : "@MPI_FC_INCLUDE@"
},
"fdb5" : {
"lib" : "@FDB5_LIBS@",
"include" : "@FDB5_INCLUDE@"
},
"szlib" : {
"lib" : "@SZLIB_LIBS@",
"include" : "@SZLIB_INCLUDE@"
...
...
This diff is collapsed.
Click to expand it.
config/default
+
2
−
1
View file @
f8cc1aee
...
...
@@ -69,7 +69,8 @@ case "${HOSTNAME}" in
--with-szlib
=
$HOME
/local
\
--with-eccodes
=
$HOME
/local/eccodes-2.22.0
\
--with-netcdf
=
$HOME
/local/netcdf-c-4.8.0
\
LDFLAGS
=
"-Wl,-rpath,
$HOME
/local/eccodes-2.22.0/lib"
\
--with-fdb5
=
$HOME
/src/fdb
\
LDFLAGS
=
"-Wl,-rpath,
$HOME
/local/eccodes-2.22.0/lib -Wl,-rpath,
$HOME
/src/fdb/lib"
\
CC
=
clang
CFLAGS
=
"-g -pipe -D_REENTRANT -Wall -Wwrite-strings -W -Wfloat-equal -pedantic -O3"
;;
# x86_64-squeeze-x64-linux
...
...
This diff is collapsed.
Click to expand it.
m4/acx_options.m4
+
35
−
0
View file @
f8cc1aee
...
...
@@ -27,6 +27,41 @@ AS_CASE([$with_threads],
AC_SUBST([THREADS_INCLUDE])
AC_SUBST([THREADS_LIBS])
# ----------------------------------------------------------------------
# Compile application with FDB5 library
FDB5_INCLUDE=''
FDB5_LIBS=''
AC_ARG_WITH([fdb5],
[AS_HELP_STRING([--with-fdb5=<yes|no|directory> (default=no)],[location of fdb5 library (optional)])],
[AS_CASE(["$with_fdb5"],
[no],[AC_MSG_CHECKING([for fdb5 library])
AC_MSG_RESULT([suppressed])],
[yes],[AC_CHECK_HEADERS([fdb5/api/fdb_c.h],,
[AC_MSG_ERROR([Could not find fdb5/api/fdb_c.h])],
[AC_INCLUDES_DEFAULT])
AC_SEARCH_LIBS([fdb_initialise],
[fdb5],
[AC_DEFINE([HAVE_LIBFDB5],[1],[Define to 1 for FDB5 support])],
[AC_MSG_ERROR([Could not link to fdb5])])
FDB5_LIBS=" -lfdb5"],
[*],[FDB5_ROOT=$with_fdb5
AS_IF([test -d "$FDB5_ROOT"],
[LDFLAGS="-L$FDB5_ROOT/lib $LDFLAGS"
CPPFLAGS="-I$FDB5_ROOT/include $CPPFLAGS"
AC_CHECK_HEADERS([fdb5/api/fdb_c.h],,
[AC_MSG_ERROR([Could not find fdb5/api/fdb_c.h])],
[AC_INCLUDES_DEFAULT])
AC_SEARCH_LIBS([fdb_initialise],
[fdb5],
[AC_DEFINE([HAVE_LIBFDB5],[1],[Define to 1 for FDB5 support])],
[AC_MSG_ERROR([Could not link to fdb5])])
FDB5_LIBS=" -L$FDB5_ROOT/lib -lfdb5"
FDB5_INCLUDE=" -I$FDB5_ROOT/include"],
[AC_MSG_NOTICE([$FDB5_ROOT is not a directory! FDB5 suppressed])])])],
[AC_MSG_CHECKING([for fdb5 library])
AC_MSG_RESULT([suppressed])])
AC_SUBST([FDB5_INCLUDE])
AC_SUBST([FDB5_LIBS])
# ----------------------------------------------------------------------
# Compile application with SZLIB library, needed for GRIB1
SZLIB_INCLUDE=''
SZLIB_LIBS=''
...
...
This diff is collapsed.
Click to expand it.
src/cdi_int.c
+
7
−
0
View file @
f8cc1aee
...
...
@@ -122,6 +122,10 @@ void cdiPrintDefaults(void)
CDI_Default_ModelID
,
CDI_Default_TableID
,
CDI_Default_Missval
);
}
#ifdef HAVE_LIBFDB5
#include
<fdb5/fdb5_config.h>
#endif
void
cdiPrintVersion
(
void
)
{
fprintf
(
stderr
,
" CDI library version : %s
\n
"
,
cdiLibraryVersion
());
...
...
@@ -141,6 +145,9 @@ void cdiPrintVersion(void)
fprintf
(
stderr
,
" exse library version : %s
\n
"
,
srvLibraryVersion
());
#endif
fprintf
(
stderr
,
" FILE library version : %s
\n
"
,
fileLibraryVersion
());
#ifdef HAVE_LIBFDB5
fprintf
(
stderr
,
" FDB5 library version : %s
\n
"
,
fdb5_version
());
#endif
}
static
...
...
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