[vlc-commits] Configure: autodetect libssh2 for sftp access

Jean-Baptiste Kempf git at videolan.org
Mon Sep 17 12:20:48 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 17 12:07:53 2012 +0200| [0ac33c78af118926270c7b8c77727808318afb4e] | committer: Jean-Baptiste Kempf

Configure: autodetect libssh2 for sftp access

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ac33c78af118926270c7b8c77727808318afb4e
---

 configure.ac |   10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5558176..e8fd444 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1716,15 +1716,7 @@ fi
 dnl
 dnl sftp access support
 dnl
-AC_ARG_ENABLE(sftp,
-  [AS_HELP_STRING([--enable-sftp],
-    [support SFTP file transfer via libssh2 (default disabled)])])
-if test "${enable_sftp}" = "yes"; then
-  AC_CHECK_HEADERS(libssh2.h, [
-    VLC_ADD_PLUGIN([access_sftp])
-    VLC_ADD_LIBS([access_sftp], [-lssh2])
-  ])
-fi
+PKG_ENABLE_MODULES_VLC([SFTP], [access_sftp], [libssh2], (support SFTP file transfer via libssh2), [auto])
 
 dnl
 dnl  Video4Linux 2



More information about the vlc-commits mailing list