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
ff5b6ce8
Commit
ff5b6ce8
authored
8 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
Added configure option --enable-hirlam-extensions.
parent
efd7ec7b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure
+38
-0
38 additions, 0 deletions
configure
m4/acx_options.m4
+13
-0
13 additions, 0 deletions
m4/acx_options.m4
src/config.h.in
+3
-0
3 additions, 0 deletions
src/config.h.in
with
54 additions
and
0 deletions
configure
+
38
−
0
View file @
ff5b6ce8
...
...
@@ -674,6 +674,8 @@ MPI_C_INCLUDE
MPIROOT
ENABLE_NETCDF_FALSE
ENABLE_NETCDF_TRUE
ENABLE_HIRLAM_EXTENSIONS_FALSE
ENABLE_HIRLAM_EXTENSIONS_TRUE
ENABLE_ALL_STATIC_FALSE
ENABLE_ALL_STATIC_TRUE
ENABLE_CDI_LIB
...
...
@@ -865,6 +867,7 @@ enable_service
enable_extra
enable_ieg
enable_all_static
enable_hirlam_extensions
enable_mpi
with_mpi_root
with_mpi_include
...
...
@@ -1560,6 +1563,8 @@ Optional Features:
--enable-ieg Use the ieg library [default=yes]
--enable-all-static build a completely statically linked CDO binary
[default=no]
--enable-hirlam-extensions
HIRLAM extensions [default=no]
--enable-mpi Compile with MPI compiler [default=no]
--enable-iso-c-interface
Create Fortran Interface via iso_c_bindings facility
...
...
@@ -27925,6 +27930,35 @@ else
ENABLE_ALL_STATIC_FALSE=
fi
# ----------------------------------------------------------------------
# Build CDO with HIRLAM extensions
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HIRLAM extensions" >&5
$as_echo_n "checking for HIRLAM extensions... " >&6; }
# Check whether --enable-hirlam-extensions was given.
if test "${enable_hirlam_extensions+set}" = set; then :
enableval=$enable_hirlam_extensions; if test "x$enable_hirlam_extensions" != "xno"; then :
$as_echo "#define HIRLAM_EXTENSIONS 1" >>confdefs.h
enable_hirlam_extensions=yes
else
enable_hirlam_extensions=no
fi
else
enable_hirlam_extensions=no
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hirlam_extensions" >&5
$as_echo "$enable_hirlam_extensions" >&6; }
if test x$enable_hirlam_extensions = 'xyes'; then
ENABLE_HIRLAM_EXTENSIONS_TRUE=
ENABLE_HIRLAM_EXTENSIONS_FALSE='#'
else
ENABLE_HIRLAM_EXTENSIONS_TRUE='#'
ENABLE_HIRLAM_EXTENSIONS_FALSE=
fi
#
if test x$ENABLE_NETCDF = xyes; then
ENABLE_NETCDF_TRUE=
...
...
@@ -30121,6 +30155,10 @@ if test -z "${ENABLE_ALL_STATIC_TRUE}" && test -z "${ENABLE_ALL_STATIC_FALSE}";
as_fn_error $? "conditional \"ENABLE_ALL_STATIC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_HIRLAM_EXTENSIONS_TRUE}" && test -z "${ENABLE_HIRLAM_EXTENSIONS_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_HIRLAM_EXTENSIONS\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_NETCDF_TRUE}" && test -z "${ENABLE_NETCDF_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_NETCDF\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
This diff is collapsed.
Click to expand it.
m4/acx_options.m4
+
13
−
0
View file @
ff5b6ce8
...
...
@@ -266,6 +266,19 @@ AC_ARG_ENABLE([all-static],
[enable_all_static=no])
AC_MSG_RESULT([$enable_all_static])
AM_CONDITIONAL([ENABLE_ALL_STATIC],[test x$enable_all_static = 'xyes'])
# ----------------------------------------------------------------------
# Build CDO with HIRLAM extensions
AC_MSG_CHECKING([for HIRLAM extensions])
AC_ARG_ENABLE([hirlam-extensions],
[AS_HELP_STRING([--enable-hirlam-extensions],[HIRLAM extensions [default=no]])],
[AS_IF([test "x$enable_hirlam_extensions" != "xno"],
[AC_DEFINE(HIRLAM_EXTENSIONS,[1],[Define to 1 for HIRLAM extensions])
enable_hirlam_extensions=yes],
[enable_hirlam_extensions=no])],
[enable_hirlam_extensions=no])
AC_MSG_RESULT([$enable_hirlam_extensions])
AM_CONDITIONAL([ENABLE_HIRLAM_EXTENSIONS],[test x$enable_hirlam_extensions = 'xyes'])
#
])
dnl
dnl Local Variables:
...
...
This diff is collapsed.
Click to expand it.
src/config.h.in
+
3
−
0
View file @
ff5b6ce8
...
...
@@ -205,6 +205,9 @@
/* yaxt library is available */
#undef HAVE_YAXT
/* Define to 1 for HIRLAM extensions */
#undef HIRLAM_EXTENSIONS
/* Host name */
#undef HOST_NAME
...
...
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