This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
The problem is that automake will not let you conditionalize the AC_CHECK_LIB macro. That is you cannot use code like this. > if test "x$require_curl" = "xyes"; then : > # Do a lib test for curl > AC_CHECK_LIB([curl], [curl_easy_setopt]) > ... > fi When you do this, and then execute ./configure, you will get a complaint about AMDEP. Even switching to AC_SEARCH_LIBS (which I will do) does not help if libcurl is in any of the std directories (/usr/lib etc) or in any of the lib directories you specify with LDFLAGS. It may help if you do not have libcurl installed anywhere. =Dennis Heimbigner Unidata Ticket Details =================== Ticket ID: LHN-448360 Department: Support netCDF Priority: Normal Status: Closed