Skip to content

Commit

Permalink
configure: fix netcdf_mem.h detection in netcdf 4.6.2 (refs #1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Feb 28, 2019
1 parent cc5d840 commit e0406ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gdal/configure
Original file line number Diff line number Diff line change
Expand Up @@ -27373,7 +27373,8 @@ if test "$NETCDF_SETTING" != "no" ; then
for ac_header in $NETCDF_INCLUDEDIR/netcdf_mem.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <$NETCDF_INCLUDEDIR/netcdf.h>
"
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Expand Down
2 changes: 1 addition & 1 deletion gdal/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2673,7 +2673,7 @@ AC_SUBST([NETCDF_SETTING], [$NETCDF_SETTING])

if test "$NETCDF_SETTING" != "no" ; then

AC_CHECK_HEADERS([$NETCDF_INCLUDEDIR/netcdf_mem.h], [NETCDF_MEM=yes], [NETCDF_MEM=no],)
AC_CHECK_HEADERS([$NETCDF_INCLUDEDIR/netcdf_mem.h], [NETCDF_MEM=yes], [NETCDF_MEM=no], [#include <$NETCDF_INCLUDEDIR/netcdf.h>])

AC_SUBST([NETCDF_MEM], [$NETCDF_MEM])
AC_SUBST([NETCDF_ROOT], [$NETCDF_ROOT])
Expand Down

0 comments on commit e0406ee

Please sign in to comment.