Mercurial > hg > octave-nkf
changeset 16080:c53f8f706c55
Reverse logic of libcurl feature test result
* configure.ac (CURLOPT_DIRLISTONLY): Reverse logic of feature test to
clarify reported result.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Thu, 21 Feb 2013 00:08:26 -0500 |
parents | 3a90c3f4046d |
children | 3759d29a6562 |
files | configure.ac |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -861,16 +861,16 @@ if test -z "$warn_curl"; then ## Additional check on cURL library that was found AC_CACHE_CHECK([for CURLOPT_DIRLISTONLY in curl/curl.h], - [octave_cv_header_define_curlopt_dirlistonly], + [octave_cv_curl_has_curlopt_dirlistonly], [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include <curl/curl.h> ]], [[ curl_easy_setopt ((CURL*)NULL, CURLOPT_DIRLISTONLY, 0); ]])], - [octave_cv_header_define_curlopt_dirlistonly=no], - [octave_cv_header_define_curlopt_dirlistonly=yes]) + [octave_cv_curl_has_curlopt_dirlistonly=yes], + [octave_cv_curl_has_curlopt_dirlistonly=no]) ]) - if test $octave_cv_header_define_curlopt_dirlistonly = yes; then + if test $octave_cv_curl_has_curlopt_dirlistonly = no; then AC_DEFINE(CURLOPT_DIRLISTONLY, CURLOPT_FTPLISTONLY, [Define to the legacy option name if using an older version of cURL.]) fi