summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-10-19 13:32:30 +0200
committerwm4 <wm4@nowhere>2013-10-19 13:32:30 +0200
commitbea36dc33f48ed1a56ac590fbeb16561173e33f9 (patch)
tree8a7b60294f1489dce93143af0273482b96401b94
parentc01feaaa79c764297d025e718725c63e4a70e614 (diff)
downloadmpv-bea36dc33f48ed1a56ac590fbeb16561173e33f9.tar.bz2
mpv-bea36dc33f48ed1a56ac590fbeb16561173e33f9.tar.xz
configure: use pkg-config for libsmbclient
Apparently, Samba has .pc files now.
-rwxr-xr-xconfigure15
1 files changed, 5 insertions, 10 deletions
diff --git a/configure b/configure
index a0c6a84532..40d15d82d5 100755
--- a/configure
+++ b/configure
@@ -1598,17 +1598,12 @@ echores "$_libguess"
echocheck "Samba support (libsmbclient)"
-if test "$_smb" = yes; then
- libs_mplayer="$libs_mplayer -lsmbclient"
-fi
-if test "$_smb" = auto; then
- _smb=no
- for _ld_tmp in "-lsmbclient" "-lsmbclient $_ld_dl" "-lsmbclient $_ld_dl -lnsl" "-lsmbclient $_ld_dl -lssl -lnsl" ; do
- statement_check libsmbclient.h 'smbc_opendir("smb://")' $_ld_tmp &&
- libs_mplayer="$libs_mplayer $_ld_tmp" && _smb=yes && break
- done
+if test "$_smb" = auto ; then
+ _smb=no
+ if pkg_config_add 'smbclient >= 0.2.0' ; then
+ _smb=yes
+ fi
fi
-
if test "$_smb" = yes; then
def_smb="#define CONFIG_LIBSMBCLIENT 1"
inputmodules="smb $inputmodules"