From 2ed6c1153e32ad58ce6700cc99750837bc48fe29 Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Mon, 28 Jan 2008 19:17:16 +0000 Subject: [PATCH] STABLE14-sysctl-table-checking-modpost-fun-fun-20080127 LICENSE IPL10 FIXES 83890 try again to do something sensible so we don't default wrong (cherry picked from commit 5a93678e3943fa2c71d51f25f84b4efd5f3700e6) --- src/cf/linux-test4.m4 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index f3b5bacaa1..c65bcece4d 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -951,8 +951,9 @@ AC_DEFUN([LINUX_SYSCTL_TABLE_CHECKING], [ AC_CACHE_VAL([ac_cv_linux_sysctl_table_checking], [ AC_TRY_KBUILD( [#include ], -[ sysctl_check_table(NULL);], - ac_cv_linux_sysctl_table_checking=yes, - ac_cv_linux_sysctl_table_checking=no)]) - AC_MSG_RESULT($ac_cv_linux_sysctl_table_checking)]) +[ extern int sysctl_check_table(int) __attribute__((weak)); +sysctl_check_table(NULL);], + ac_cv_linux_sysctl_table_checking=no, + ac_cv_linux_sysctl_table_checking=yes)]) +AC_MSG_RESULT($ac_cv_linux_sysctl_table_checking)])