mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-08 22:08:02 +00:00
build: move error check to after summary in configure.ac.
Otherwise, if OpenCL is not found, the rest of the summary is not printed.
This commit is contained in:
parent
bafc71345c
commit
952c033ef2
@ -363,14 +363,11 @@ AC_CONFIG_FILES([
|
|||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo
|
|
||||||
echo
|
echo
|
||||||
echo "------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------"
|
||||||
echo "$PACKAGE $VERSION"
|
echo "$PACKAGE $VERSION"
|
||||||
echo "------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------"
|
||||||
echo
|
echo
|
||||||
echo
|
|
||||||
echo "Configuration Options Summary:"
|
echo "Configuration Options Summary:"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
@ -388,7 +385,6 @@ if test $found_opencl = 1; then
|
|||||||
echo " OpenCL...............: FOUND. GPU mining support enabled"
|
echo " OpenCL...............: FOUND. GPU mining support enabled"
|
||||||
else
|
else
|
||||||
echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED"
|
echo " OpenCL...............: NOT FOUND. GPU mining support DISABLED"
|
||||||
AC_MSG_ERROR([OpenCL not found])
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$adl" != xno; then
|
if test "x$adl" != xno; then
|
||||||
@ -415,3 +411,8 @@ echo
|
|||||||
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
|
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
|
||||||
echo " prefix...............: $prefix"
|
echo " prefix...............: $prefix"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
# Error out here, so the entire summary can be printed first
|
||||||
|
if test $found_opencl != 1; then
|
||||||
|
AC_MSG_ERROR([OpenCL not found])
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user