Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 7BCCC1EB83EA for ; Thu, 23 Feb 2012 15:46:26 -0400 (AST) Received: from pancernik.batory.org.pl ([62.89.72.210]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S0ecS-0003MK-Qr for pgsql-bugs@postgresql.org; Thu, 23 Feb 2012 19:46:26 +0000 Received: from pancernik.batory.org.pl (localhost [127.0.0.1]) by pancernik.batory.org.pl (8.14.5/8.14.5) with ESMTP id q1NJkBk7023031 for ; Thu, 23 Feb 2012 20:46:11 +0100 Message-ID: <4F469783.50800@batory.org.pl> Date: Thu, 23 Feb 2012 20:46:11 +0100 From: Tomasz Ostrowski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #6486: configure - unable to cross-compile postgresql with openssl using Fedora MinGW References: <4F468C80.6040406@batory.org.pl> <4242.1330025299@sss.pgh.pa.us> In-Reply-To: <4242.1330025299@sss.pgh.pa.us> Content-Type: multipart/mixed; boundary="------------090904000200020405040708" X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/184 X-Sequence-Number: 32527 This is a multi-part message in MIME format. --------------090904000200020405040708 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit On 2012-02-23 20:28, Tom Lane wrote: > Hmmm ... I'd be happier with this patch if it reversed the order of the > library probes (ie, try the nonstandard names first), as then it would > obviously not break any configurations that worked before. Would that > be OK from your point of view, or not? It will be OK I guess. > Also, the syntax looks wrong --- shouldn't the new calls be > AC_SEARCH_LIBS? Of course - my bad. I had to recreate a patch because I needed to return back this autoconf version check and haven't retested it. I'm attaching corrected and this time tested version. Sorry. Regards Tometzky -- ...although Eating Honey was a very good thing to do, there was a moment just before you began to eat it which was better than when you were... Winnie the Pooh --------------090904000200020405040708 Content-Type: text/x-patch; name="postgresql-configure-openssl-windows.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="postgresql-configure-openssl-windows.patch" diff -urNP postgresql-9.1.2.orig/configure.in postgresql-9.1.2/configure.in --- postgresql-9.1.2.orig/configure.in 2011-12-01 22:47:20.000000000 +0100 +++ postgresql-9.1.2/configure.in 2012-02-23 20:34:00.765244884 +0100 @@ -945,8 +945,8 @@ AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])]) AC_CHECK_LIB(ssl, SSL_library_init, [], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])]) else - AC_CHECK_LIB(eay32, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'eay32' is required for OpenSSL])]) - AC_CHECK_LIB(ssleay32, SSL_library_init, [], [AC_MSG_ERROR([library 'ssleay32' is required for OpenSSL])]) + AC_SEARCH_LIBS(CRYPTO_new_ex_data, eay32 crypto, [], [AC_MSG_ERROR([library 'eay32' or 'crypto' is required for OpenSSL])]) + AC_SEARCH_LIBS(SSL_library_init, ssleay32 ssl, [], [AC_MSG_ERROR([library 'ssleay32' or 'ssl' is required for OpenSSL])]) fi fi --------------090904000200020405040708--