configure doesn't detect SSL support in libpq - Mailing list pgadmin-hackers

From Guillaume Lelarge
Subject configure doesn't detect SSL support in libpq
Date
Msg-id 1323724720.4359.46.camel@localhost.localdomain
Whole thread Raw
Responses Re: configure doesn't detect SSL support in libpq
List pgadmin-hackers
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 :)


--
Guillaume
  http://blog.guillaume.lelarge.info
  http://www.dalibo.com


pgadmin-hackers by date:

Previous
From: "pgAdmin Trac"
Date:
Subject: Re: [pgAdmin III] #341: New connection option: sslcompression
Next
From: Guillaume Lelarge
Date:
Subject: pgAdmin III commit: Add support for the new sslcompression connection o