# HG changeset patch # User lumag # Date 1062413471 0 # Node ID a2029c40a65c9a96c0475a83ab74240e38736caf # Parent 3a6ed2ad244de40686fc1518bdec27936bd59ca4 Fixed smbclient (added probbing if we need -lnsl-ldl ) & lirc detection (/dev/lirc may be a directory, so right device is /dev/lirc/0) diff -r 3a6ed2ad244d -r a2029c40a65c configure --- 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 < int main(void) { return 0; }