Commit b1c88ab7 authored by Ralf Mueller's avatar Ralf Mueller
Browse files

Remove -lopenjpeg from GRIB_API testing during configure

parent b3a9dfca
......@@ -23290,7 +23290,7 @@ for ac_lib in '' grib_api; do
ac_res="none required"
else
ac_res=-l$ac_lib
LIBS="-l$ac_lib -lopenjpeg $ac_func_search_save_LIBS"
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_grib_get_message=$ac_res
......
......@@ -270,8 +270,7 @@ AC_ARG_WITH([grib_api],
AC_SEARCH_LIBS([grib_get_message],
[grib_api],
[AC_DEFINE([HAVE_LIBGRIB_API],[1],[GRIB_API library is present if defined to 1])],
[AC_MSG_ERROR([Could not link to grib_api library])],
[-lopenjpeg])
[AC_MSG_ERROR([Could not link to grib_api library])])
AC_SUBST([GRIB_API_LDFLAGS],[" -L$GRIB_API_ROOT/lib -lgrib_api"])
AC_SUBST([GRIB_API_INCLUDE],[" -I$GRIB_API_ROOT/include"])],
[AC_MSG_ERROR([$GRIB_API_ROOT is not a directory! GRIB_API suppressed])])])],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment