mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-12 22:17:34 +00:00
commit
0aa67067bb
12
configure.ac
12
configure.ac
@ -506,9 +506,17 @@ if test x"$GCC" = xyes && cc_supports_flag -Wsuggest-attribute=format; then
|
||||
AC_DEFINE([HAVE_GCC_SUGGEST_ATTRIBUTE_FORMAT], [],
|
||||
[gcc supports -Wsuggest-attribute=format])
|
||||
fi
|
||||
dnl pretend GCC (<4.6) is not capable of format complaints when it does not
|
||||
dnl support diagnostic push/pop pragmas (cannot track state reliably, then)
|
||||
if test x"$gcc_format_complaints" = xyes; then
|
||||
AC_DEFINE([HAVE_GCC_FORMAT_COMPLAINTS], [],
|
||||
[gcc can complain about missing format attribute])
|
||||
backup_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Werror"
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic pop
|
||||
]])], AC_DEFINE([HAVE_GCC_FORMAT_COMPLAINTS], [],
|
||||
[gcc can complain about missing format attribute]))
|
||||
CFLAGS="$backup_CFLAGS"
|
||||
fi
|
||||
|
||||
# --- coverage ---
|
||||
|
||||
@ -31,11 +31,11 @@ dependent_headers = $(subst $(inc_dir),,$(shell \
|
||||
|| echo $(inc_dir)/qb*.h))
|
||||
dependent_headers_omit = qbconfig.h
|
||||
|
||||
dist_man_MANS += $(patsubst %,man3/%.3,$(filter-out \
|
||||
dist_man3_MANS = $(patsubst %,man3/%.3,$(filter-out \
|
||||
$(dependent_headers_omit),$(dependent_headers) \
|
||||
))
|
||||
|
||||
$(dist_man_MANS): man.dox $(dependent_headers:%=$(inc_dir)/%)
|
||||
$(dist_man3_MANS): man.dox $(dependent_headers:%=$(inc_dir)/%)
|
||||
mkdir -p man3
|
||||
doxygen man.dox
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user