Skip to content
Snippets Groups Projects
Commit 06b90074 authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Fail the configuration when eccodes is requested but grib_api.h is not found.

parent 4de31737
No related branches found
No related tags found
2 merge requests!34Version 2.2.0,!13Consolidation with CDI-PIO (develop)
......@@ -244,8 +244,8 @@ AC_ARG_WITH([eccodes],
[LDFLAGS="-L$ECCODES_ROOT/lib $LDFLAGS"
CPPFLAGS="-I$ECCODES_ROOT/include $CPPFLAGS"
AC_CHECK_HEADERS([grib_api.h],,
[AC_MSG_ERROR([Could not find grib_api.h])],
[AC_INCLUDES_DEFAULT])
[AC_MSG_ERROR([Could not find grib_api.h])],
[AC_INCLUDES_DEFAULT])
AC_SEARCH_LIBS([grib_get_message],
[eccodes],
[AC_DEFINE([HAVE_LIBGRIB_API],[1],[ECCODES library is present if defined to 1])],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment