Changeset 14422 for trunk/configure.ac


Ignore:
Timestamp:
Jan 1, 2015, 9:16:36 PM (7 years ago)
Author:
mikedld
Message:

Use libb64 instead of OpenSSL to encode/decode BASE64

Some crypto libraries (like CyaSSL, MatrixSSL and CommonCrypto?) either
don't have or expose this functionality at all, expose only part of it,
or (like OpenSSL) have heavyweight API for it. Also, for the task as
easy as BASE64 encoding and decoding it's much better to use small and
simple specialized library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r14410 r14422  
    215215AC_SUBST(DHT_LIBS)
    216216AC_SUBST(DHT_LIBS_QT)
     217
     218
     219dnl ----------------------------------------------------------------------------
     220dnl
     221dnl  libb64
     222
     223LIBB64_CFLAGS="-I\$(top_srcdir)/third-party/libb64"
     224LIBB64_LIBS="\$(top_builddir)/third-party/libb64/libb64.a"
     225LIBB64_LIBS_QT="\$\${TRANSMISSION_TOP}/third-party/libb64/libb64.a"
     226build_bundled_b64="yes"
     227AC_ARG_ENABLE([external-b64],
     228              AS_HELP_STRING([--enable-external-b64],[Use system libb64]),
     229              [want_external_b64=${enableval}],
     230              [want_external_b64=no])
     231if test "x$want_external_b64" != "xno" ; then
     232    LIBB64_CFLAGS=""
     233    LIBB64_LIBS="-lb64"
     234    LIBB64_LIBS_QT="-lb64"
     235    build_bundled_b64="no"
     236fi
     237
     238AM_CONDITIONAL([BUILD_B64],[test "x$build_bundled_b64" = "xyes"])
     239AC_SUBST(LIBB64_CFLAGS)
     240AC_SUBST(LIBB64_LIBS)
     241AC_SUBST(LIBB64_LIBS_QT)
    217242
    218243
     
    563588                 third-party/Makefile
    564589                 third-party/dht/Makefile
     590                 third-party/libb64/Makefile
    565591                 third-party/libutp/Makefile
    566592                 third-party/libnatpmp/Makefile
Note: See TracChangeset for help on using the changeset viewer.