Mercurial > mplayer.hg
changeset 10775:a2029c40a65c
Fixed smbclient (added probbing if we need -lnsl-ldl ) & lirc detection (/dev/lirc may be a directory, so right device is /dev/lirc/0)
author | lumag |
---|---|
date | Mon, 01 Sep 2003 10:51:11 +0000 |
parents | 3a6ed2ad244d |
children | 80402283a017 |
files | configure |
diffstat | 1 files changed, 12 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Mon Sep 01 08:29:54 2003 +0000 +++ b/configure Mon Sep 01 10:51:11 2003 +0000 @@ -2539,9 +2539,18 @@ int main(void) { smbc_opendir("smb://"); return 0; } EOF if cc_check -lsmbclient ; then -# this is not working for me becouse it needs -ldl and some NIS (YP) libs -# $_ld_dl and -lyp ? should be added _smbsupport=yes + _ld_smb="-lsmbclient" + else + if cc_check -lsmbclient $_ld_dl ; then + _smbsupport=yes + _ld_smb="-lsmbclient $_ld_dl" + else + if cc_check -lsmbclient $_ld_dl -lnsl ; then + _smbsupport=yes + _ld_smb="-lsmbclient $_ld_dl -lnsl" + fi + fi fi fi @@ -5378,7 +5387,7 @@ echocheck "lirc" if test "$_lirc" = auto ; then _lirc=no - if test -c /dev/lirc ; then + if test -c /dev/lirc -o -c /dev/lirc/0 ; then cat > $TMPC <<EOF #include <lirc/lirc_client.h> int main(void) { return 0; }