mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
build: Add --disable-adl-checks
Requested in https://github.com/veox/sgminer/issues/26 configure.ac needs an overhaul (see SDMINER_SDK).
This commit is contained in:
parent
cb174d433a
commit
0c38db6393
23
configure.ac
23
configure.ac
@ -186,17 +186,32 @@ if test "x$has_winpthread" != xtrue; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_ENABLE([adl],
|
AC_ARG_ENABLE([adl],
|
||||||
[AC_HELP_STRING([--disable-adl],[Override detection and disable building with adl])],
|
[AC_HELP_STRING([--disable-adl],[Override detection and disable building with ADL])],
|
||||||
[adl=$enableval]
|
[adl=$enableval]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([adl_checks],
|
||||||
|
[AC_HELP_STRING([--disable-adl-checks],[Override detection and assume ADL is available])],
|
||||||
|
[adl_checks=$enableval]
|
||||||
|
)
|
||||||
|
|
||||||
if test "$found_opencl" = 1; then
|
if test "$found_opencl" = 1; then
|
||||||
if test "x$adl" != xno; then
|
if test "x$adl" != xno; then
|
||||||
|
dnl Check if include files are in $srcdir/ADL_SDK
|
||||||
ADL_CPPFLAGS=
|
ADL_CPPFLAGS=
|
||||||
AC_CHECK_FILE([$srcdir/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$srcdir], have_adl=false,)
|
AC_CHECK_FILE([$srcdir/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$srcdir], have_adl=false,)
|
||||||
|
|
||||||
|
dnl FIXME: force ADL usage if disable-checks specified
|
||||||
|
if test "x$adl_checks" = xno; then
|
||||||
|
have_adl=true
|
||||||
|
ADL_CPPFLAGS=-I$srcdir
|
||||||
|
fi
|
||||||
|
|
||||||
|
dnl FIXME: Check if SGMINER_SDK present
|
||||||
if test x$have_adl+$have_sgminer_sdk = xfalse+true; then
|
if test x$have_adl+$have_sgminer_sdk = xfalse+true; then
|
||||||
AC_CHECK_FILE([$SGMINER_SDK/include/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$SGMINER_SDK/include], have_adl=false,)
|
AC_CHECK_FILE([$SGMINER_SDK/include/ADL_SDK/adl_sdk.h], [have_adl=true; ADL_CPPFLAGS=-I$SGMINER_SDK/include], have_adl=false,)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test x$have_adl = xtrue
|
if test x$have_adl = xtrue
|
||||||
then
|
then
|
||||||
AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
|
AC_DEFINE([HAVE_ADL], [1], [Defined if ADL headers were found])
|
||||||
@ -377,7 +392,11 @@ fi
|
|||||||
|
|
||||||
if test "x$adl" != xno; then
|
if test "x$adl" != xno; then
|
||||||
if test x$have_adl = xtrue; then
|
if test x$have_adl = xtrue; then
|
||||||
echo " ADL..................: SDK found, GPU monitoring support enabled"
|
if test "x$adl_checks" = xno; then
|
||||||
|
echo " ADL..................: SDK use FORCED"
|
||||||
|
else
|
||||||
|
echo " ADL..................: SDK found, GPU monitoring support enabled"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo " ADL..................: SDK NOT found, GPU monitoring support DISABLED"
|
echo " ADL..................: SDK NOT found, GPU monitoring support DISABLED"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user