]> granicus.if.org Git - zfs/blob - config/user-no-format-truncation.m4
Add back iostat -y or -w descriptions
[zfs] / config / user-no-format-truncation.m4
1 dnl #
2 dnl # Check if gcc supports -Wno-format-truncation option.
3 dnl #
4 AC_DEFUN([ZFS_AC_CONFIG_USER_NO_FORMAT_TRUNCATION], [
5         AC_MSG_CHECKING([for -Wno-format-truncation support])
6
7         saved_flags="$CFLAGS"
8         CFLAGS="$CFLAGS -Wno-format-truncation"
9
10         AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])],
11         [
12                 NO_FORMAT_TRUNCATION=-Wno-format-truncation
13                 AC_MSG_RESULT([yes])
14         ],
15         [
16                 NO_FORMAT_TRUNCATION=
17                 AC_MSG_RESULT([no])
18         ])
19
20         CFLAGS="$saved_flags"
21         AC_SUBST([NO_FORMAT_TRUNCATION])
22 ])