Skip to content
Snippets Groups Projects
Commit e5d53359 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Also account for eccodes when testing grib_api.

parent 30f5ab4e
No related branches found
No related tags found
No related merge requests found
......@@ -28645,7 +28645,8 @@ _ACEOF
fi
done
 
if test "x$with_grib_api" != 'x' -a "x$with_grib_api" != 'xno' ; then :
if test x"$with_grib_api" != x -a "x$with_grib_api" != xno \
-o x"$with_eccodes" != x -a x"$with_eccodes" != xno; then :
ENABLE_LIBGRIB_API=yes
else
ENABLE_LIBGRIB_API=no
......@@ -153,7 +153,8 @@ AC_CHECK_LIB(m, floor)
ACX_OPTIONS
AM_CONDITIONAL([ENABLE_NETCDF],[test x$ENABLE_NETCDF = xyes])
AC_CHECK_FUNCS([grib_get_length])
AS_IF([test "x$with_grib_api" != 'x' -a "x$with_grib_api" != 'xno' ],
AS_IF([test x"$with_grib_api" != x -a "x$with_grib_api" != xno \
-o x"$with_eccodes" != x -a x"$with_eccodes" != xno],
[ENABLE_LIBGRIB_API=yes],[ENABLE_LIBGRIB_API=no])
AC_SUBST([ENABLE_LIBGRIB_API])
AM_SUBST_NOTMAKE([ENABLE_LIBGRIB_API])
......
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