mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
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:
parent
3e67d4b8a4
commit
e5315da1e7
@ -885,7 +885,7 @@ AC_ARG_ENABLE([byterange],
|
|||||||
test "x$enable_byterange" = xyes || enable_byterange=no
|
test "x$enable_byterange" = xyes || enable_byterange=no
|
||||||
AC_MSG_RESULT($enable_byterange)
|
AC_MSG_RESULT($enable_byterange)
|
||||||
# Need curl for byte ranges
|
# 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.])
|
AC_MSG_ERROR([curl required for byte range support. Install curl or build without --enable-byterange.])
|
||||||
enable_byterange=no
|
enable_byterange=no
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user