Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
cdo
Commits
45d9f5ad
Commit
45d9f5ad
authored
7 years ago
by
Uwe Schulzweida
Browse files
Options
Downloads
Patches
Plain Diff
m4/acx_options.m4: merged from cmor3 branch.
parent
9bea243b
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
m4/acx_options.m4
+9
-2
9 additions, 2 deletions
m4/acx_options.m4
with
9 additions
and
2 deletions
m4/acx_options.m4
+
9
−
2
View file @
45d9f5ad
...
@@ -233,6 +233,11 @@ AC_ARG_WITH([udunits2],
...
@@ -233,6 +233,11 @@ AC_ARG_WITH([udunits2],
[AC_MSG_ERROR([$UDUNITS_ROOT is not a directory! UDUNITS2 suppressed])])])],
[AC_MSG_ERROR([$UDUNITS_ROOT is not a directory! UDUNITS2 suppressed])])])],
[AC_MSG_CHECKING([for the UDUNITS2 library])
[AC_MSG_CHECKING([for the UDUNITS2 library])
AC_MSG_RESULT([suppressed])])
AC_MSG_RESULT([suppressed])])
# -----------------------------------------------------------------------
# test for UUID libraries needed by CMOR
# (util-linux libuuid in 3.1.1 and before, OSSP UUID in 3.1.2 and after)
ACX_UUID
# ----------------------------------------------------------------------
# ----------------------------------------------------------------------
# Link application with CMOR library
# Link application with CMOR library
CMOR_LIBS=''
CMOR_LIBS=''
...
@@ -242,18 +247,20 @@ AC_ARG_WITH([cmor],
...
@@ -242,18 +247,20 @@ AC_ARG_WITH([cmor],
[no],[AC_MSG_CHECKING([for cmor library])
[no],[AC_MSG_CHECKING([for cmor library])
AC_MSG_RESULT([suppressed])],
AC_MSG_RESULT([suppressed])],
[yes],[AC_CHECK_HEADERS([cmor.h])
[yes],[AC_CHECK_HEADERS([cmor.h])
LIBS="${LIBS+${LIBS} }$UUID_C_LIB"
AC_SEARCH_LIBS([cmor_load_table],[cmor],[AC_DEFINE([HAVE_LIBCMOR],[1],[Define to 1 for CMOR support])],
AC_SEARCH_LIBS([cmor_load_table],[cmor],[AC_DEFINE([HAVE_LIBCMOR],[1],[Define to 1 for CMOR support])],
[AC_MSG_ERROR([Could not link to cmor library!])])
[AC_MSG_ERROR([Could not link to cmor library!])])
AC_SUBST([CMOR_LIBS],[" -lcmor"])],
AC_SUBST([CMOR_LIBS],[" -lcmor"])],
[*],[CMOR_ROOT=$with_cmor
[*],[CMOR_ROOT=$with_cmor
AS_IF([test -d "$CMOR_ROOT"],
AS_IF([test -d "$CMOR_ROOT"],
[LDFLAGS="$LDFLAGS -L$CMOR_ROOT/lib"
[LDFLAGS="$LDFLAGS -L$CMOR_ROOT/lib"
CPPFLAGS="$CPPFLAGS -I$CMOR_ROOT/include -I$CMOR_ROOT/include/cdTime"
LIBS="${LIBS+${LIBS} }$UUID_C_LIB"
CPPFLAGS="$CPPFLAGS -I$CMOR_ROOT/include -I$CMOR_ROOT/include/cdTime -I$CMOR_ROOT/include/json-c"
AC_SEARCH_LIBS([cmor_load_table],
AC_SEARCH_LIBS([cmor_load_table],
[cmor],
[cmor],
[AC_DEFINE([HAVE_LIBCMOR],[1],[Define to 1 for CMOR support])],
[AC_DEFINE([HAVE_LIBCMOR],[1],[Define to 1 for CMOR support])],
[AC_MSG_ERROR([Could not link to cmor library!])])
[AC_MSG_ERROR([Could not link to cmor library!])])
CMOR_LIBS=" -L$CMOR_ROOT/lib -lcmor"],
CMOR_LIBS=" -L$CMOR_ROOT/lib -lcmor
$UUID_C_LIB
"],
[AC_MSG_ERROR([$CMOR_ROOT is not a directory! CMOR suppressed])])])],
[AC_MSG_ERROR([$CMOR_ROOT is not a directory! CMOR suppressed])])])],
[AC_MSG_CHECKING([for the CMOR library])
[AC_MSG_CHECKING([for the CMOR library])
AC_MSG_RESULT([suppressed])])
AC_MSG_RESULT([suppressed])])
...
...
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