From c8494d88d9137ec6c885cae202f0ae6de930098c Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Tue, 20 Jan 2015 14:55:57 +0100 Subject: [PATCH] build-sys: fix UL_SCANF_TYPE_MODIFIER for icc icc needs -Werror to let %m fail and to avoid this: ../libmount/src/tab_parse.c(61): warning #269: invalid format string conversion Signed-off-by: Ruediger Meier --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index de299d3412..a0d57631a3 100644 --- a/configure.ac +++ b/configure.ac @@ -492,6 +492,8 @@ int main() return 1; }]) +ul_save_CPPFLAGS="$CPPFLAGS" +CPPFLAGS="-Werror ${CPPFLAGS}" AC_CACHE_VAL([scanf_cv_alloc_modifier], AC_RUN_IFELSE([AC_LANG_SOURCE([UL_SCANF_TYPE_MODIFIER(["%ms"])])], [scanf_cv_alloc_modifier=ms], @@ -525,6 +527,7 @@ AC_CACHE_VAL([scanf_cv_alloc_modifier], [scanf_cv_alloc_modifier=no])] ) ) +CPPFLAGS="$ul_save_CPPFLAGS" AC_MSG_CHECKING([scanf string alloc modifiers]) AS_CASE([$scanf_cv_alloc_modifier], -- 2.39.5