-AC_INIT([xfsprogs], [4.15.0-rc1], [linux-xfs@vger.kernel.org])
+AC_INIT([xfsprogs], [4.15.1], [linux-xfs@vger.kernel.org])
AC_PREREQ(2.50)
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_MACRO_DIR([m4])
enable_threadsan=no)
AC_SUBST(enable_threadsan)
+AC_ARG_ENABLE(lto,
+[ --enable-lto=[yes/no] Enable link time optimization (LTO) [default=probe]],,
+ enable_lto=probe)
+AC_SUBST(enable_lto)
+
#
# If the user specified a libdir ending in lib64 do not append another
# 64 to the library names.
AC_MSG_WARN([ADDRSAN and THREADSAN are not known to work together.])
fi
+if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
+ AC_PACKAGE_CHECK_LTO
+fi
+if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
+ AC_MSG_ERROR([LTO not supported by compiler.])
+fi
+
+AC_PACKAGE_CHECK_RETPOLINE
AC_CHECK_SIZEOF([long])
AC_CHECK_SIZEOF([char *])
AC_TYPE_UMODE_T