diff --git a/configure.ac b/configure.ac index ff14d3e5..eee1f3fe 100644 --- a/configure.ac +++ b/configure.ac @@ -112,6 +112,8 @@ if test "x$ATISTREAMSDKROOT" != x; then OPENCL_LIBS="-L$ATISTREAMSDKROOT/lib/$ATI_STREAM_ARCH_DIR $OPENCL_LIBS" fi +cpumining="no" + AC_ARG_ENABLE([cpumining], [AC_HELP_STRING([--enable-cpumining],[Build with cpu mining support(default disabled)])], [cpumining=$enableval] @@ -121,6 +123,8 @@ if test "x$cpumining" = xyes; then fi AM_CONDITIONAL([HAS_CPUMINE], [test x$cpumining = xyes]) +opencl="yes" + AC_ARG_ENABLE([opencl], [AC_HELP_STRING([--disable-opencl],[Override detection and disable building with opencl])], [opencl=$enableval] @@ -181,6 +185,8 @@ else DLOPEN_FLAGS="" fi +bitforce="no" + AC_ARG_ENABLE([bitforce], [AC_HELP_STRING([--enable-bitforce],[Compile support for BitForce FPGAs(default disabled)])], [bitforce=$enableval] diff --git a/device-cpu.c b/device-cpu.c index 04b85386..d1eb4eb7 100644 --- a/device-cpu.c +++ b/device-cpu.c @@ -23,6 +23,7 @@ #include #include +#include #ifndef WIN32 #include diff --git a/main.c b/main.c index b9534545..ef1872a1 100644 --- a/main.c +++ b/main.c @@ -3896,7 +3896,7 @@ static void *api_thread(void *userdata) return NULL; } -static void thread_reportin(struct thr_info *thr) +void thread_reportin(struct thr_info *thr) { gettimeofday(&thr->last, NULL); thr->cgpu->status = LIFE_WELL; diff --git a/miner.h b/miner.h index 8f4e0357..127af49b 100644 --- a/miner.h +++ b/miner.h @@ -526,6 +526,8 @@ struct work_restart { char padding[128 - sizeof(unsigned long)]; }; +extern void thread_reportin(struct thr_info *thr); + extern void kill_work(void); extern void reinit_device(struct cgpu_info *cgpu);