]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-linux24-kernel-configure-test-20071208
authorDerrick Brashear <shadow@dementia.org>
Sat, 8 Dec 2007 17:47:50 +0000 (17:47 +0000)
committerDerrick Brashear <shadow@dementia.org>
Sat, 8 Dec 2007 17:47:50 +0000 (17:47 +0000)
LICENSE IPL10

on linux 2.4 the try kbuild macro needs to try harder to notice what
symbols we don't have

(cherry picked from commit 55e581824fceea149b9a48ee928aa76e97c009a8)

src/cf/linux-test1.m4
src/cf/linux-test4.m4

index a330abafb7e192d908f0e8d9a37e87d328d8dabe..2751a14cfbafa25674881c19dd4341f40cfc7fa0 100644 (file)
@@ -46,8 +46,10 @@ _ACEOF
 #
 AC_DEFUN([AC_TRY_KBUILD24], [
   ac_save_CPPFLAGS="$CPPFLAGS"
-  CPPFLAGS="-I$LINUX_KERNEL_PATH/include -D__KERNEL__ $CPPFLAGS"
-  AC_TRY_COMPILE([$1], [$2], [$3], [$4])
+  CPPFLAGS="-I$LINUX_KERNEL_PATH/include -D__KERNEL__ -Werror-implicit-function-declaration $CPPFLAGS"
+  AC_TRY_COMPILE([
+#include <linux/kernel.h>
+$1], [$2], [$3], [$4])
   CPPFLAGS="$ac_save_CPPFLAGS"])
 
 
index 1eba02f34de2d4e23b55c2e5b42f3d90776a4b3e..cbc127d2167d219d058523abf9160facc5e00def 100644 (file)
@@ -944,8 +944,7 @@ AC_DEFUN([LINUX_SYSCTL_TABLE_CHECKING], [
   AC_CACHE_VAL([ac_cv_linux_sysctl_table_checking], [
     AC_TRY_KBUILD(
 [#include <linux/sysctl.h>],
-[extern int sysctl_check_table(struct ctl_table *t);
-sysctl_check_table(NULL);],
+[ 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)])