Mercurial > urweb
view src/config.sml.in @ 1671:a54d223c3a7f
Properly handle case where an RPC changes signed cookie state
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Tue, 10 Jan 2012 15:34:18 -0500 |
parents | df8f18d50746 |
children | dae2c6fbf16c |
line wrap: on
line source
structure Config :> CONFIG = struct val bin = "@BIN@" val lib = "@LIB@" val includ = "@INCLUDE@" val sitelisp = "@SITELISP@" val libUr = OS.Path.joinDirFile {dir = lib, file = "ur"} val libC = OS.Path.joinDirFile {dir = lib, file = "c"} val libJs = OS.Path.joinDirFile {dir = lib, file = "js"} 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@" val versionNumber = "@VERSION@" val versionString = "The Ur/Web compiler, version " ^ versionNumber val pthreadCflags = "@PTHREAD_CFLAGS@" val pthreadLibs = "@PTHREAD_LIBS@" end