1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-29 16:04:33 +00:00

Merge pull request #151 from luke-jr/libudev_detect_fixes

Bugfix: Check for libudev header (not just library) in configure, and document optional dependency
This commit is contained in:
Con Kolivas 2012-03-28 04:21:18 -07:00
commit ad824207ff
2 changed files with 3 additions and 1 deletions

2
README
View File

@ -44,6 +44,8 @@ Dependencies:
(This sdk is mandatory for GPU mining)
AMD ADL SDK http://developer.amd.com/sdks/ADLSDK
(This sdk is mandatory for ATI GPU monitoring & clocking)
libudev headers
(This is only required for FPGA auto-detection)
CGMiner specific configuration options:
--enable-cpumining Build with cpu mining support(default disabled)

View File

@ -266,7 +266,7 @@ if test "x$bitforce" != xno; then
[libudev=auto]
)
if test "x$libudev" != "xno"; then
AC_CHECK_LIB([udev], [udev_device_get_devnode], [
AC_CHECK_HEADER([libudev.h],[
libudev=yes
UDEV_LIBS=-ludev
AC_DEFINE([HAVE_LIBUDEV], [1], [Defined to 1 if libudev is wanted])