summaryrefslogtreecommitdiffstats
path: root/config/user-frame-larger-than.m4
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 11:22:58 -0700
committerBrian Behlendorf <[email protected]>2010-08-31 13:41:27 -0700
commitc9c0d073da561bcbefbdf09c87fc75b227415619 (patch)
tree7daee55ae61526107f421de48171573fa5a15d28 /config/user-frame-larger-than.m4
parent40b84e7aec6392187722e61e5a4a853b530bf60f (diff)
Add build system
Add autoconf style build infrastructure to the ZFS tree. This includes autogen.sh, configure.ac, m4 macros, some scripts/*, and makefiles for all the core ZFS components.
Diffstat (limited to 'config/user-frame-larger-than.m4')
-rw-r--r--config/user-frame-larger-than.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/config/user-frame-larger-than.m4 b/config/user-frame-larger-than.m4
new file mode 100644
index 000000000..3384f50e4
--- /dev/null
+++ b/config/user-frame-larger-than.m4
@@ -0,0 +1,22 @@
+dnl #
+dnl # Check if gcc supports -Wframe-larger-than=<size> option.
+dnl #
+AC_DEFUN([ZFS_AC_CONFIG_USER_FRAME_LARGER_THAN], [
+ AC_MSG_CHECKING([for -Wframe-larger-than=<size> support])
+
+ saved_flags="$CFLAGS"
+ CFLAGS="$CFLAGS -Wframe-larger-than=1024"
+
+ AC_RUN_IFELSE(AC_LANG_PROGRAM( [], []),
+ [
+ FRAME_LARGER_THAN=-Wframe-larger-than=1024
+ AC_MSG_RESULT([yes])
+ ],
+ [
+ FRAME_LARGER_THAN=
+ AC_MSG_RESULT([no])
+ ])
+
+ CFLAGS="$saved_flags"
+ AC_SUBST([FRAME_LARGER_THAN])
+])