Re: configure doesn't detect SSL support in libpq

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: configure doesn't detect SSL support in libpq
Дата
Msg-id CA+OCxozLBJ1Nts0xLm=8fgbOQKCzeGAPVS4oD-LRW1N=u5ZYLw@mail.gmail.com
обсуждение исходный текст
Ответ на configure doesn't detect SSL support in libpq  (Guillaume Lelarge <guillaume@lelarge.info>)
Ответы Re: configure doesn't detect SSL support in libpq  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgadmin-hackers
On Tue, Dec 13, 2011 at 2:48 AM, Guillaume Lelarge
<guillaume@lelarge.info> wrote:
> Hi,
>
> It seems our configure script doesn't detect SSL support in libpq. It
> detects the SSL library though.
>
> The following patch fixes it, but I'm not sure of it as I'm in no way an
> expert in those things;
>
> diff --git a/acinclude.m4 b/acinclude.m4
> index 4030966..0640a68 100644
> --- a/acinclude.m4
> +++ b/acinclude.m4
> @@ -538,7 +538,7 @@ AC_DEFUN([SETUP_POSTGRESQL],
>                                        PG_SSL="no"
>                                fi
>                        else
> -                               AC_CHECK_LIB(pq, SSL_connect,
> [PG_SSL=yes], [PG_SSL=no])
> +                               AC_CHECK_LIB(pq, SSL_connect,
> [PG_SSL=yes], [PG_SSL=no], "-lssl")
>                        fi
>                fi
>                else
>
> Any comments would be appreciated :)

What exactly are you trying to fix? I spent quite a while on this last
cycle and though I'd ironed out all the wrinkles. Note that -lssl
isn't always enough - on some platforms you'll also need -lcrypt (or
-lcrypto, I forget which).


--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: "pgAdmin Trac"
Дата:
Сообщение: Re: [pgAdmin III] #341: New connection option: sslcompression
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: configure doesn't detect SSL support in libpq