Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
d3cefd75
Commit
d3cefd75
authored
May 07, 2019
by
Sergey Kosukhin
Browse files
Fail the configuration when NetCDF is required but netcdf.h is not found.
parent
84d85d0c
Changes
1
Show whitespace changes
Inline
Side-by-side
m4/acx_options.m4
View file @
d3cefd75
...
...
@@ -71,7 +71,8 @@ AC_ARG_WITH([netcdf],
[AS_CASE(["$with_netcdf"],
[no],[AC_MSG_CHECKING([for NetCDF library])
AC_MSG_RESULT([suppressed])],
[yes],[AC_CHECK_HEADERS([netcdf.h])
[yes],[AC_CHECK_HEADERS([netcdf.h],,
[AC_MSG_ERROR([Could not find netcdf.h])])
AC_SEARCH_LIBS([nc_open],
[netcdf],
[AC_DEFINE([HAVE_LIBNETCDF],[1],[Define to 1 for NetCDF support])
...
...
@@ -83,7 +84,8 @@ AC_ARG_WITH([netcdf],
[NETCDF_ROOT=$with_netcdf
LDFLAGS="-L$NETCDF_ROOT/lib $LDFLAGS"
CPPFLAGS="-I$NETCDF_ROOT/include $CPPFLAGS"
AC_CHECK_HEADERS([netcdf.h])
AC_CHECK_HEADERS([netcdf.h],,
[AC_MSG_ERROR([Could not find netcdf.h])])
AC_SEARCH_LIBS([nc_open],
[netcdf],
[AC_DEFINE([HAVE_LIBNETCDF],[1],[Define to 1 for NetCDF support])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment