fix amdgpu cunit configure test harder

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
main
Alex Deucher 2015-08-06 11:19:55 -04:00
parent 11a390ea66
commit b93594b1bf
1 changed files with 3 additions and 2 deletions

View File

@ -359,13 +359,14 @@ if test "x$RADEON" = xyes; then
AC_DEFINE(HAVE_RADEON, 1, [Have radeon support]) AC_DEFINE(HAVE_RADEON, 1, [Have radeon support])
fi fi
# Detect cunit library
PKG_CHECK_MODULES([CUNIT], [cunit >= 2.1], [have_cunit=yes], [have_cunit=no])
AM_CONDITIONAL(HAVE_CUNIT, [test "x$have_cunit" != "xno"]) AM_CONDITIONAL(HAVE_CUNIT, [test "x$have_cunit" != "xno"])
AM_CONDITIONAL(HAVE_AMDGPU, [test "x$AMDGPU" = xyes]) AM_CONDITIONAL(HAVE_AMDGPU, [test "x$AMDGPU" = xyes])
if test "x$AMDGPU" = xyes; then if test "x$AMDGPU" = xyes; then
AC_DEFINE(HAVE_AMDGPU, 1, [Have amdgpu support]) AC_DEFINE(HAVE_AMDGPU, 1, [Have amdgpu support])
# Detect cunit library
PKG_CHECK_MODULES([CUNIT], [cunit >= 2.1], [have_cunit=yes], [have_cunit=no])
# If pkg-config does not find cunit, check it using AC_CHECK_LIB. We # If pkg-config does not find cunit, check it using AC_CHECK_LIB. We
# do this because Debian (Ubuntu) lacks pkg-config file for cunit. # do this because Debian (Ubuntu) lacks pkg-config file for cunit.