From 0c08a4ef92d1b0c58d593221f26289451978aaf5 Mon Sep 17 00:00:00 2001 From: Eric J Korpela Date: Wed, 7 Sep 2016 16:14:23 -0700 Subject: [PATCH] Work around for bug in RHEL6 curl 7.19.7 port (curl-config --libs reports incorrectly.) --- configure.ac | 16 ++++++++-------- m4/libcurl.m4 | 5 ++++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 6fc5c51154..759793970c 100644 --- a/configure.ac +++ b/configure.ac @@ -438,6 +438,11 @@ if test "x${enable_fcgi}" = xyes ; then dnl m4/boinc_check_fcgi.m4 BOINC_CHECK_FCGI fi +dnl ---------- SSL (m4/check_ssl.m4) +if [[ "x${enable_client}" = "xyes" -o "x${enable_server}" = "xyes" ]] +then + CHECK_SSL +fi dnl ---------- libcurl (m4/libcurl.m4) ------------------------------ dnl curl is needed for libraries and those are needed by everything else @@ -469,16 +474,11 @@ else echo "CURL_LIB_PATHS = ${CURL_LIB_PATHS}" echo "LDFLAGS = ${LDFLAGS}" fi - BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${LIBCURL}" + BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${LIBCURL}" fi -dnl ---------- SSL (m4/check_ssl.m4) -if [[ "x${enable_client}" = "xyes" -o "x${enable_server}" = "xyes" ]] -then - CHECK_SSL - if test "x${found_ssl}" = "xyes"; then - BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${SSL_LIBS}" - fi +if test "x${found_ssl}" = "xyes"; then + BOINC_EXTRA_LIBS="${BOINC_EXTRA_LIBS} ${SSL_LIBS}" fi dnl save the libs, since SAH_CHECK_LIB() will change them diff --git a/m4/libcurl.m4 b/m4/libcurl.m4 index 60657a9a3f..555f3c8de4 100644 --- a/m4/libcurl.m4 +++ b/m4/libcurl.m4 @@ -70,7 +70,6 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG], fi AC_PATH_PROG([_libcurl_config],[curl-config]) - if test x$_libcurl_config != "x" ; then AC_CACHE_CHECK([for the version of libcurl], [libcurl_cv_lib_curl_version], @@ -107,6 +106,10 @@ AC_DEFUN([LIBCURL_CHECK_CONFIG], if test x"$LIBCURL" = "x" ; then LIBCURL="`$_libcurl_config --libs`" + if test "x`echo \""$LIBCURL"\" | grep ssl`" = x ; then + LIBCURL="${LIBCURL} ${SSL_LIBS}" + fi + # This is so silly, but Apple actually has a bug in their # curl-config script. Fixed in Tiger, but there are still # lots of Panther installs around.