[vlc-devel] [PATCH] Switch detection of smbclient from header to pkgconfig

Rémi Denis-Courmont remi at remlab.net
Sat Feb 23 19:54:38 CET 2013


Le samedi 23 février 2013 20:46:02, Nicolas Chauvet a écrit :
> ---
>  configure.ac              | 5 ++---
>  modules/access/Modules.am | 4 ++--
>  2 files changed, 4 insertions(+), 5 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 65377ac..faf9b55 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1874,9 +1874,8 @@ dnl
>  AC_ARG_ENABLE(smb,
>    [AS_HELP_STRING([--disable-smb], [disable SMB/CIFS support (default
> auto)])]) if test "${enable_smb}" != "no"; then
> -  AC_CHECK_HEADERS(libsmbclient.h,
> -    [ VLC_ADD_PLUGIN([access_smb])
> -      VLC_ADD_LIBS([access_smb],[-lsmbclient]) ],
> +  PKG_CHECK_MODULES(SMBCLIENT, smbclient,
> +    [ VLC_ADD_PLUGIN([access_smb]),
>      [ if test -n "${enable_smb}"; then
>          AC_MSG_ERROR([cannot find libsmbclient headers])

This needs updating too.

>       fi ])

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list