From 4c904953b5c9250d814092591a8396165bc9b5c5 Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 21 Sep 2010 22:26:44 +0000 Subject: configure: Move network requirement check for FTP into the FTP test This makes the FTP test self-sufficient and reduces complexity. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32340 b3059339-0415-0410-9bf9-f77b7e298cf2 Add proper autodetection for FTP support; should fix Bugzilla #1804. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32377 b3059339-0415-0410-9bf9-f77b7e298cf2 --- configure | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index e053de8f2a..f959ada9d1 100755 --- a/configure +++ b/configure @@ -735,7 +735,7 @@ _fribidi=auto _enca=auto _inet6=auto _gethostbyname2=auto -_ftp=yes +_ftp=auto _musepack=auto _vstream=auto _pthreads=auto @@ -3101,7 +3101,6 @@ else noinputmodules="networking $noinputmodules" def_network='#undef CONFIG_NETWORK' def_networking='#undef CONFIG_NETWORKING' - _ftp=no fi echores "$networking" @@ -7092,7 +7091,10 @@ echores "$_pvr" echocheck "ftp" -if ! beos && test "$_ftp" = yes ; then +if test "$_ftp" = "auto" ; then +test "$networking" = "yes" && ! beos && _ftp=yes +fi +if test "$_ftp" = yes ; then def_ftp='#define CONFIG_FTP 1' inputmodules="ftp $inputmodules" else -- cgit v1.2.3