Skip to content

Commit

Permalink
configure: use pkg-config for libsmbclient
Browse files Browse the repository at this point in the history
Apparently, Samba has .pc files now.
  • Loading branch information
wm4 committed Oct 19, 2013
1 parent c01feaa commit bea36dc
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions configure
Expand Up @@ -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"
Expand Down

0 comments on commit bea36dc

Please sign in to comment.