configure: Also extract the cross target from Clang compilers.

Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Chip Davis 2021-08-04 14:19:08 -05:00 committed by Alexandre Julliard
parent 25d79204e3
commit 73bc52c273

View File

@ -15,7 +15,7 @@ AS_VAR_IF([vkd3d_cross_cc], [$3],
AC_MSG_CHECKING([whether $CC works])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AC_MSG_RESULT([yes])
$2=`expr "$CC" : '\(.*\)-gcc'`],
$2=`expr "$CC" : '\(.*\)-gcc' \| "$CC" : '\(.*\)-clang'`],
[AC_MSG_RESULT([no])])
CC="$vkd3d_cc_saved"])
AS_VAR_POPDEF([vkd3d_cross_cc])dnl
@ -34,7 +34,7 @@ AS_VAR_IF([vkd3d_cross_cc], [$3],
AC_MSG_CHECKING([whether $CC works])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
[AC_MSG_RESULT([yes])
$2=`expr "$CC" : '\(.*\)-gcc'`],
$2=`expr "$CC" : '\(.*\)-gcc' \| "$CC" : '\(.*\)-clang'`],
[AC_MSG_RESULT([no])])
CC="$vkd3d_cc_saved"])
AS_VAR_POPDEF([vkd3d_cross_cc])dnl