diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-12-20 21:40:36 -0200 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-12-20 21:56:55 -0200 |
commit | e1524fd2acb29611f8e9055e227b86c4809b546f (patch) | |
tree | 848573f17f817f8c93efe509f04fd3940142f0c8 /configure.ac | |
parent | 109ae37c08613b9d1b240ab325f993d466a9be55 (diff) |
Add configure option to disable file transfer support.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index fe3067380..1f2be1f20 100644 --- a/configure.ac +++ b/configure.ac @@ -360,10 +360,23 @@ AC_SUBST(SOUP_CFLAGS) AC_SUBST(SOUP_LIBS) AM_CONDITIONAL([ENABLE_GOOGLE_RELAY], [test "x$enable_google_relay" = xyes]) -dnl Check for libnice -PKG_CHECK_MODULES(NICE, nice >= 0.0.11) +AC_ARG_ENABLE(file-transfer, + AC_HELP_STRING([--disable-file-transfer], + [disable file transfer support]), + [enable_ft=$enableval], [enable_ft=yes]) + +if test x$enable_ft = xyes; then + AC_DEFINE(ENABLE_FILE_TRANSFER, [], [Enable file transfer]) + + dnl Check for libnice + PKG_CHECK_MODULES(NICE, nice >= 0.0.11) +else + NICE_CFLAGS= + NICE_LIBS= +fi AC_SUBST(NICE_CFLAGS) AC_SUBST(NICE_LIBS) +AM_CONDITIONAL([ENABLE_FILE_TRANSFER], [test "x$enable_ft" = xyes]) AC_CHECK_FUNCS(getifaddrs memset select strndup setresuid setreuid strerror) @@ -411,4 +424,6 @@ Configure summary: Plugin headers installed....: ${enable_plugin_api} Channel.Type.Call support...: ${enable_channel_type_call} Google relay support........: ${enable_google_relay} + File transfer support.......: ${enable_ft} + " |