summaryrefslogtreecommitdiff
path: root/src/config.sml.in
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-01-09 08:38:53 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2012-01-09 08:38:53 -0500
commit2c3aac20704cae4cb8ba864b685f2763bf8b62ca (patch)
treee496185cae6811f7e909ba2291e970198c671626 /src/config.sml.in
parentf68c7505131065f210a53bd9ba5a6dd2c8e60c08 (diff)
Revert ax_check_openssl.m4 and instead compensate for Ubuntu weirdness in config.sml
Diffstat (limited to 'src/config.sml.in')
-rw-r--r--src/config.sml.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.sml.in b/src/config.sml.in
index 1d7e450f..03f3cc71 100644
--- a/src/config.sml.in
+++ b/src/config.sml.in
@@ -14,8 +14,14 @@ val libJs = OS.Path.joinDirFile {dir = lib,
val ccompiler = "@CC@"
val ccArgs = "@CCARGS@"
+
val openssl = "@OPENSSL_LDFLAGS@ @OPENSSL_LIBS@"
+(* Something is rotten in the state of Ubuntu 11.10, so here's a manual fix that I hope doesn't break other platforms. *)
+val openssl = case String.tokens Char.isSpace openssl of
+ ["-lssl", "-lcrypto"] => "-lcrypto -lssl"
+ | _ => openssl
+
val pgheader = "@PGHEADER@"
val msheader = "@MSHEADER@"
val sqheader = "@SQHEADER@"