Linux 3.4: replace end_writeback with clear_inode
[openafs.git] / acinclude.m4
index 602e934..b1a6d5d 100644 (file)
@@ -374,7 +374,7 @@ case $system in
                MKAFS_OSTYPE=SOLARIS
                 AC_MSG_RESULT(sun4)
                AC_PATH_PROG(SOLARISCC, [cc], ,
-                   [/opt/SUNWspro/bin:/opt/SunStudioExpress/bin])
+                   [/opt/SUNWspro/bin:/opt/SunStudioExpress/bin:/opt/solarisstudio12.3/bin:/opt/solstudio12.2/bin:/opt/sunstudio12.1/bin])
                if test "x$SOLARISCC" = "x" ; then
                    AC_MSG_FAILURE(Could not find the solaris cc program.  Please define the environment variable SOLARISCC to specify the path.)
                fi
@@ -840,6 +840,9 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
 #include <linux/page-flags.h>],
                                     [struct page *_page;
                                       int bchecked = PageFsMisc(_page);])
+                AC_CHECK_LINUX_FUNC([clear_inode],
+                                    [#include <linux/fs.h>],
+                                    [clear_inode(NULL);])
                 AC_CHECK_LINUX_FUNC([current_kernel_time],
                                     [#include <linux/time.h>],
                                     [struct timespec s;
@@ -1411,7 +1414,6 @@ AC_CHECK_FUNCS([ \
        geteuid \
        getgid \
        getuid \
-       getprogname \
        getrlimit \
        issetugid \
        mkstemp \
@@ -1425,7 +1427,6 @@ AC_CHECK_FUNCS([ \
        regerror \
        regexec \
        setitimer \
-       setprogname \
        setvbuf \
        sigaction \
        strcasestr \
@@ -1485,6 +1486,7 @@ AC_REPLACE_FUNCS([ \
        localtime_r \
        mkstemp \
        setenv \
+       setprogname \
        strcasecmp \
        strlcat \
        strnlen \