summaryrefslogtreecommitdiff
path: root/libexslt
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-07-16 10:17:29 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-07-16 10:17:29 +0000
commit091028da9d9aea8993626e15ce41e9e657a0ba8f (patch)
tree094bc6e04dcc9175dfd0f88326a53575448debc6 /libexslt
parentcd6168c4467e61146d141d3bd315267f86de2ada (diff)
downloadlibxslt-091028da9d9aea8993626e15ce41e9e657a0ba8f.tar.gz
libxslt-091028da9d9aea8993626e15ce41e9e657a0ba8f.tar.bz2
libxslt-091028da9d9aea8993626e15ce41e9e657a0ba8f.zip
apply patch from Rob Richards to add a normal --with-crypto configure
* configure.in libexslt/crypto.c libexslt/exslt.[ch] libexslt/exsltconfig.h.in win32/configure.js: apply patch from Rob Richards to add a normal --with-crypto configure option. Daniel
Diffstat (limited to 'libexslt')
-rw-r--r--libexslt/crypto.c4
-rw-r--r--libexslt/exslt.c2
-rw-r--r--libexslt/exslt.h2
-rw-r--r--libexslt/exsltconfig.h.in9
4 files changed, 17 insertions, 0 deletions
diff --git a/libexslt/crypto.c b/libexslt/crypto.c
index 7a6fd825..2d5f357c 100644
--- a/libexslt/crypto.c
+++ b/libexslt/crypto.c
@@ -21,6 +21,8 @@
#include "exslt.h"
+#ifdef EXSLT_CRYPTO_ENABLED
+
#define HASH_DIGEST_LENGTH 32
#define MD5_DIGEST_LENGTH 16
#define SHA1_DIGEST_LENGTH 20
@@ -731,3 +733,5 @@ exsltCryptoRegister (void) {
}
#endif /* defined(HAVE_CRYPTO) */
+
+#endif /* EXSLT_CRYPTO_ENABLED */
diff --git a/libexslt/exslt.c b/libexslt/exslt.c
index 9b6a6ac1..4db8f454 100644
--- a/libexslt/exslt.c
+++ b/libexslt/exslt.c
@@ -32,7 +32,9 @@ const int exsltLibxmlVersion = LIBXML_VERSION;
void
exsltRegisterAll (void) {
exsltCommonRegister();
+#ifdef EXSLT_CRYPTO_ENABLED
exsltCryptoRegister();
+#endif
exsltMathRegister();
exsltSetsRegister();
exsltFuncRegister();
diff --git a/libexslt/exslt.h b/libexslt/exslt.h
index 9cdaaa02..a50e95c3 100644
--- a/libexslt/exslt.h
+++ b/libexslt/exslt.h
@@ -72,7 +72,9 @@ EXSLTPUBVAR const int exsltLibxmlVersion;
#define SAXON_NAMESPACE ((const xmlChar *) "http://icl.com/saxon")
EXSLTPUBFUN void EXSLTCALL exsltCommonRegister (void);
+#ifdef EXSLT_CRYPTO_ENABLED
EXSLTPUBFUN void EXSLTCALL exsltCryptoRegister (void);
+#endif
EXSLTPUBFUN void EXSLTCALL exsltMathRegister (void);
EXSLTPUBFUN void EXSLTCALL exsltSetsRegister (void);
EXSLTPUBFUN void EXSLTCALL exsltFuncRegister (void);
diff --git a/libexslt/exsltconfig.h.in b/libexslt/exsltconfig.h.in
index 962425c9..b4a835bd 100644
--- a/libexslt/exsltconfig.h.in
+++ b/libexslt/exsltconfig.h.in
@@ -35,6 +35,15 @@ extern "C" {
#define LIBEXSLT_VERSION_STRING "@LIBEXSLT_VERSION_NUMBER@"
/**
+ * WITH_CRYPTO:
+ *
+ * Whether crypto support is configured into exslt
+ */
+#if @WITH_CRYPTO@
+#define EXSLT_CRYPTO_ENABLED
+#endif
+
+/**
* ATTRIBUTE_UNUSED:
*
* This macro is used to flag unused function parameters to GCC