]> git.proxmox.com Git - mirror_spl.git/blobdiff - configure
Fix HAVE_FS_STRUCT_SPINLOCK check for gcc-4.1.2
[mirror_spl.git] / configure
index 72bef74a38e3d1e248b8350fb4036b3539339cf6..1369ca05d96fc64dc243f3efd2cea07a455dfce7 100755 (executable)
--- a/configure
+++ b/configure
@@ -15069,6 +15069,8 @@ fi
 
        { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
+       tmp_flags="$EXTRA_KCFLAGS"
+       EXTRA_KCFLAGS="-Werror"
 
 
 cat confdefs.h - <<_ACEOF >conftest.c
@@ -15132,6 +15134,7 @@ fi
        rm -Rf build
 
 
+       EXTRA_KCFLAGS="$tmp_flags"
 
 
        { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5
@@ -19267,6 +19270,8 @@ fi
 
        { $as_echo "$as_me:$LINENO: checking whether struct fs_struct uses spinlock_t" >&5
 $as_echo_n "checking whether struct fs_struct uses spinlock_t... " >&6; }
+       tmp_flags="$EXTRA_KCFLAGS"
+       EXTRA_KCFLAGS="-Werror"
 
 
 cat confdefs.h - <<_ACEOF >conftest.c
@@ -19330,6 +19335,7 @@ fi
        rm -Rf build
 
 
+       EXTRA_KCFLAGS="$tmp_flags"
 
 
        { $as_echo "$as_me:$LINENO: checking whether struct cred exists" >&5