Changeset 11960 for trunk/configure.ac


Ignore:
Timestamp:
Feb 18, 2011, 12:45:44 AM (11 years ago)
Author:
jordan
Message:

add configure script switch to enable/disable utp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r11920 r11960  
    220220dnl  utp
    221221
    222 LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
    223 LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
     222AC_ARG_ENABLE([utp],
     223              AS_HELP_STRING([--enable-utp],[build µTP support]),
     224              [build_utp=${enableval}],
     225              [build_utp=no])
     226if test "x$build_utp" = "xyes" ; then
     227    LIBUTP_CFLAGS="-I\$(top_srcdir)/third-party/"
     228    LIBUTP_LIBS="\$(top_builddir)/third-party/libutp/libutp.a"
     229    AC_DEFINE([WITH_UTP],[1])
     230fi
    224231AC_SUBST(LIBUTP_CFLAGS)
    225232AC_SUBST(LIBUTP_LIBS)
     233AM_CONDITIONAL([BUILD_UTP],[test "x$build_utp" = "xyes"])
    226234
    227235
     
    508516
    509517      * optimized for low-resource systems:           ${enable_lightweight}
     518      * µTP enabled:                                  ${build_utp}
    510519
    511520   Build Command-Line client:                         ${build_cli}
Note: See TracChangeset for help on using the changeset viewer.