Option --disable-byterange fails if libcurl is not found

re: https://github.com/Unidata/netcdf-c/issues/1390

Change configure.ac to properly test for
combination of no-curl and disable-byterange.
This commit is contained in:
Dennis Heimbigner 2019-05-04 12:29:42 -06:00
parent 3e67d4b8a4
commit e5315da1e7

View File

@ -885,7 +885,7 @@ AC_ARG_ENABLE([byterange],
test "x$enable_byterange" = xyes || enable_byterange=no
AC_MSG_RESULT($enable_byterange)
# Need curl for byte ranges
if test "x$found_curl" = xno ; then
if test "x$found_curl" = xno && test "x$enable_byterange" = xyes ; then
AC_MSG_ERROR([curl required for byte range support. Install curl or build without --enable-byterange.])
enable_byterange=no
fi