Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 798FD18652 for ; Mon, 18 Jan 2016 19:21:18 +0000 (UTC) Received: (qmail 41461 invoked by uid 500); 18 Jan 2016 19:21:18 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 41393 invoked by uid 500); 18 Jan 2016 19:21:18 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 41384 invoked by uid 99); 18 Jan 2016 19:21:18 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2016 19:21:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E7E1DC2BAF for ; Mon, 18 Jan 2016 19:21:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.999 X-Spam-Level: X-Spam-Status: No, score=0.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id NnEzxB2o53Xn for ; Mon, 18 Jan 2016 19:21:17 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTP id 2335342A21 for ; Mon, 18 Jan 2016 19:21:17 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9CEDBE05E7 for ; Mon, 18 Jan 2016 19:21:16 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 9A31F3A0046 for ; Mon, 18 Jan 2016 19:21:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1725325 - /httpd/httpd/trunk/acinclude.m4 Date: Mon, 18 Jan 2016 19:21:16 -0000 To: cvs@httpd.apache.org From: rpluem@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160118192116.9A31F3A0046@svn01-us-west.apache.org> Author: rpluem Date: Mon Jan 18 19:21:16 2016 New Revision: 1725325 URL: http://svn.apache.org/viewvc?rev=1725325&view=rev Log: * Since r1724820 two modules, mod_http2 and mod_ssl, call APACHE_CHECK_OPENSSL, with mod_http2 doing it first. Because the result of APACHE_CHECK_OPENSSL is cached this causes MOD_LDFLAGS and MOD_CFLAGS to remain unset for mod_ssl which in turn causes it not to be linked against Openssl which means that mod_ssl cannot be loaded if the Openssl libs haven't been loaded by other means already. Fix this by caching the values for MOD_LDFLAGS and MOD_CFLAGS created during the first run and set them in the cached case. Modified: httpd/httpd/trunk/acinclude.m4 Modified: httpd/httpd/trunk/acinclude.m4 URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/acinclude.m4?rev=1725325&r1=1725324&r2=1725325&view=diff ============================================================================== --- httpd/httpd/trunk/acinclude.m4 (original) +++ httpd/httpd/trunk/acinclude.m4 Mon Jan 18 19:21:16 2016 @@ -507,6 +507,8 @@ AC_DEFUN([APACHE_CHECK_OPENSSL],[ ap_openssl_found="" ap_openssl_base="" ap_openssl_libs="" + ap_openssl_mod_cflags="" + ap_openssl_mod_ldflags="" dnl Determine the OpenSSL base directory, if any AC_MSG_CHECKING([for user-provided OpenSSL base directory]) @@ -609,9 +611,15 @@ AC_DEFUN([APACHE_CHECK_OPENSSL],[ CPPFLAGS="$saved_CPPFLAGS" LIBS="$saved_LIBS" LDFLAGS="$saved_LDFLAGS" + + dnl cache MOD_LDFLAGS, MOD_CFLAGS + ap_openssl_mod_cflags=$MOD_CFLAGS + ap_openssl_mod_ldflags=$MOD_LDFLAGS ]) if test "x$ac_cv_openssl" = "xyes"; then AC_DEFINE(HAVE_OPENSSL, 1, [Define if OpenSSL is available]) + APR_ADDTO(MOD_LDFLAGS, [$ap_openssl_mod_ldflags]) + APR_ADDTO(MOD_CFLAGS, [$ap_openssl_mod_cflags]) fi ])