Be explicit about why were not building rlm_rest
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 17 Feb 2013 20:55:11 +0000 (15:55 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 17 Feb 2013 20:55:11 +0000 (15:55 -0500)
src/modules/rlm_rest/configure
src/modules/rlm_rest/configure.in

index 03d4e1b..2bbeda2 100755 (executable)
@@ -3258,7 +3258,9 @@ _ACEOF
   unset _libcurl_with
 
 
-       if test "x$libcurl_cv_lib_curl_usable" != "xyes"; then
+       if test "x$libcurl_cv_lib_version_ok" != "xyes"; then
+               fail="$fail libcurl too old"
+       elif test "x$libcurl_cv_lib_curl_usable" != "xyes"; then
                fail="$fail libcurl"
        else
                if test x$libcurl_protocol_HTTP != xyes; then
index bac5018..c140df3 100644 (file)
@@ -20,7 +20,9 @@ if test x$with_[]modname != xno; then
 
        LIBCURL_CHECK_CONFIG([], [7.19.1])
 
-       if test "x$libcurl_cv_lib_curl_usable" != "xyes"; then
+       if test "x$libcurl_cv_lib_version_ok" != "xyes"; then 
+               fail="$fail libcurl too old"
+       elif test "x$libcurl_cv_lib_curl_usable" != "xyes"; then
                fail="$fail libcurl"
        else    
                if test x$libcurl_protocol_HTTP != xyes; then