mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
28 lines
1.0 KiB
Diff
28 lines
1.0 KiB
Diff
--- a/.tools/configure.ac
|
|
+++ b/.tools/configure.ac
|
|
@@ -415,19 +415,19 @@ then
|
|
AC_MSG_NOTICE([Enabling writing debug to file])
|
|
fi
|
|
|
|
-
|
|
-AC_CHECK_PROG(USE_GETCONF, getconf, yes, no)
|
|
+AC_CHECK_PROG(USE_LDD, ldd, yes, no)
|
|
+AC_CHECK_PROG(USE_HEAD, head, yes, no)
|
|
AC_PROG_AWK
|
|
-if test $AWK == "gawk" -a $USE_GETCONF == "yes"
|
|
+if test $AWK == "gawk" -a $USE_LDD == "yes" -a $USE_HEAD
|
|
then
|
|
AC_MSG_NOTICE([Getting glibc version ...])
|
|
- if test `getconf GNU_LIBC_VERSION | gawk '{print $2>=2.23?"1":"0"}' 2>/dev/null` == 1
|
|
+ if test `ldd --version | head -1 | gawk '{print $4>=2.23?"1":"0"}' 2>/dev/null` == 1
|
|
then
|
|
AC_MSG_NOTICE([glibc version is greater or equal to 2.23 so AVX-512 optimisations are supported.])
|
|
else
|
|
AC_MSG_NOTICE([glibc version is less than 2.23 - no AVX-512 optimisation supported.])
|
|
fi
|
|
- if test `getconf GNU_LIBC_VERSION | gawk '{print $2<2.17?"1":"0"}' 2>/dev/null` == 1
|
|
+ if test `ldd --version | head -1 | gawk '{print $4<2.17?"1":"0"}' 2>/dev/null` == 1
|
|
then
|
|
AC_ARG_WITH(LIBS, AS_HELP_STRING(), , LIBS+="-lrt")
|
|
AC_SUBST(LIBS)
|