diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-09-20 04:45:41 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-09-20 04:45:41 -0400 |
commit | 6b6383d52bc147134bb6b60b07e924b176c67e3a (patch) | |
tree | 9753a1ec40b1fbe2acfaa881af46e3c0f7da6401 /xmlsec1-config | |
parent | 07bb297329b9e9754d09dcb6d70417272a626619 (diff) | |
download | xmlsec1-6b6383d52bc147134bb6b60b07e924b176c67e3a.tar.gz xmlsec1-6b6383d52bc147134bb6b60b07e924b176c67e3a.tar.bz2 xmlsec1-6b6383d52bc147134bb6b60b07e924b176c67e3a.zip |
Imported Upstream version 1.2.19
Diffstat (limited to 'xmlsec1-config')
-rw-r--r-- | xmlsec1-config | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/xmlsec1-config b/xmlsec1-config index 78c06ca6..aa5861c2 100644 --- a/xmlsec1-config +++ b/xmlsec1-config @@ -21,7 +21,7 @@ Known values for OPTION are: --help display this help and exit --version output version information --crypto=LIB configure with XMLSEC crypto library (one of the - following: none default openssl gnutls nss) + following: none default openssl nss gnutls gcrypt) EOF exit $1 @@ -79,7 +79,7 @@ do ;; --version) - echo 1.2.14 + echo 1.2.19 exit 0 ;; @@ -140,14 +140,14 @@ none) ;; default) - the_crypto_flags=" -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=\\\"openssl\\\"" + the_crypto_flags=" -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=\\\"openssl\\\"" the_crypto_libs="-lssl -lcrypto " the_xmlsec_crypto_lib="-lxmlsec1-openssl" ;; openssl) if test "0" = "0"; then - the_crypto_flags=" -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=\\\"openssl\\\"" + the_crypto_flags=" -DXMLSEC_OPENSSL_100=1 -DXMLSEC_CRYPTO_OPENSSL=1 -DXMLSEC_CRYPTO=\\\"openssl\\\"" the_crypto_libs="-lssl -lcrypto " the_xmlsec_crypto_lib="-lxmlsec1-openssl" else @@ -158,7 +158,7 @@ openssl) gnutls) if test "0" = "0"; then - the_crypto_flags=" -DXMLSEC_CRYPTO_GNUTLS=1 -DXMLSEC_CRYPTO=\\\"gnutls\\\"" + the_crypto_flags="-I/usr/include/p11-kit-1 -DXMLSEC_CRYPTO_GNUTLS=1 -DXMLSEC_CRYPTO=\\\"gnutls\\\"" the_crypto_libs="-lgnutls " the_xmlsec_crypto_lib="-lxmlsec1-gnutls" else @@ -167,10 +167,21 @@ gnutls) fi ;; +gcrypt) + if test "0" = "0"; then + the_crypto_flags=" -DXMLSEC_CRYPTO_GCRYPT=1 -DXMLSEC_CRYPTO=\\\"gcrypt\\\"" + the_crypto_libs=" -L/lib/i386-linux-gnu -lgcrypt" + the_xmlsec_crypto_lib="-lxmlsec1-gcrypt" + else + echo "Error: the \"$crypto\" cryptographic library is not supported" + usage 1 + fi + ;; + nss) if test "0" = "0"; then the_crypto_flags="-I/usr/include/nspr -I/usr/include/nss -DXMLSEC_CRYPTO_NSS=1 -DXMLSEC_CRYPTO=\\\"nss\\\"" - the_crypto_libs="-lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl " + the_crypto_libs="-lnss3 -lnssutil3 -lsmime3 -lssl3 -lplds4 -lplc4 -lnspr4 " the_xmlsec_crypto_lib="-lxmlsec1-nss" else echo "Error: the \"$crypto\" cryptographic library is not supported" @@ -188,7 +199,7 @@ esac # # Assemble all the settings together # -the_flags="$the_flags -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1, -I${prefix}/include/xmlsec1 $the_xml_flags $the_xslt_flags $the_crypto_flags" +the_flags="$the_flags -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1 -I${prefix}/include/xmlsec1 $the_xml_flags $the_xslt_flags $the_crypto_flags" the_libs="$the_libs -L${package_libdir} -lxmlsec1 -lltdl $the_xmlsec_crypto_lib -lxmlsec1 $the_xml_libs $the_xslt_libs $the_crypto_libs" if $cflags; then |