pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Ostrowski <tometzky@batory.org.pl>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #6486: configure - unable to cross-compile postgresql with openssl using Fedora MinGW
Date: Thu, 23 Feb 2012 20:46:11 +0100
Message-ID: <4F469783.50800@batory.org.pl> (raw)
In-Reply-To: <4242.1330025299@sss.pgh.pa.us>
References: <E1S0dlT-0001ls-JY@wrigleys.postgresql.org>
	<4F468C80.6040406@batory.org.pl>
	<4242.1330025299@sss.pgh.pa.us>

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

Attachments:

postgresql-configure-openssl-windows.patch (text/x-patch, 960B) download 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

view thread (5+ messages)  latest in thread

Message-ID: <4F469783.50800@batory.org.pl>
Permalink:  ../4F469783.50800@batory.org.pl/
Also on:    postgresql.org/message-id/4F469783.50800@batory.org.pl

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tometzky@batory.org.pl
  Subject: Re: BUG #6486: configure - unable to cross-compile postgresql with openssl using Fedora MinGW
  In-Reply-To: <4F469783.50800@batory.org.pl>
  References: <E1S0dlT-0001ls-JY@wrigleys.postgresql.org> <4F468C80.6040406@batory.org.pl> <4242.1330025299@sss.pgh.pa.us> <4F469783.50800@batory.org.pl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox