Bug 1747852 - Move MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI to python configure. r=firefox-build-system-reviewers,mhentges

Differential Revision: https://phabricator.services.mozilla.com/D134766
This commit is contained in:
Mike Hommey 2021-12-30 00:54:00 +00:00
Родитель 6eab403e68
Коммит c0b85dcb38
2 изменённых файлов: 13 добавлений и 6 удалений

Просмотреть файл

@ -1125,12 +1125,6 @@ fi
AC_DEFINE_UNQUOTED(MOZ_DISTRIBUTION_ID,"$MOZ_DISTRIBUTION_ID")
AC_SUBST(MOZ_DISTRIBUTION_ID)
AC_TRY_COMPILE([#include <linux/ethtool.h>],
[ struct ethtool_cmd cmd; cmd.speed_hi = 0; ],
MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI=1)
AC_SUBST(MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI)
dnl ========================================================
dnl Gamepad support
dnl ========================================================

Просмотреть файл

@ -2995,3 +2995,16 @@ with only_when(target_is_linux & compile_environment):
add_old_configure_assignment("MOZ_LINKER", True, when="MOZ_LINKER")
moz_linker = depends(when="MOZ_LINKER")(lambda: True)
# 32-bits ethtool_cmd.speed
# ==============================================================
with only_when(target_is_linux & compile_environment):
set_config(
"MOZ_WEBRTC_HAVE_ETHTOOL_SPEED_HI",
c_compiler.try_compile(
includes=["linux/ethtool.h"],
body="struct ethtool_cmd cmd; cmd.speed_hi = 0;",
check_msg="for 32-bits ethtool_cmd.speed",
),
)