mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 08:48:00 +02:00
[configure.in] Make unsupported-backend warning generation automatic
This commit is contained in:
parent
7510aa8033
commit
7af228ab83
1 changed files with 10 additions and 30 deletions
40
configure.in
40
configure.in
|
|
@ -353,8 +353,17 @@ AC_DEFUN([CAIRO_BACKEND_ENABLE],
|
|||
fi
|
||||
fi
|
||||
AM_CONDITIONAL(CAIRO_HAS_$4, test "x$use_$1" = xyes)
|
||||
AS_IF([test "x$use_[]$1" = xyes && test "x$5" = xno],[
|
||||
CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE
|
||||
*** The $2 backend is still under active development and
|
||||
*** is included in this release only as a preview. It does not
|
||||
*** fully work yet and incompatible changes may yet be made
|
||||
*** to $2-backend specific API.
|
||||
"
|
||||
],)
|
||||
])
|
||||
|
||||
CAIRO_WARNING_MESSAGE=""
|
||||
CAIRO_FEATURES=""
|
||||
CAIRO_NO_FEATURES=""
|
||||
CAIRO_REQUIRES=""
|
||||
|
|
@ -1153,33 +1162,4 @@ if test x"$use_ft" != "xyes" && \
|
|||
])
|
||||
fi
|
||||
|
||||
WARNING_MESSAGE='
|
||||
*** The @BACKEND@ backend is still under active development and
|
||||
*** is included in this release only as a preview. It does not
|
||||
*** fully work yet and incompatible changes may yet be made
|
||||
*** to @BACKEND@-backend specific API.
|
||||
'
|
||||
|
||||
if test x"$use_glitz" = "xyes" ; then
|
||||
echo "$WARNING_MESSAGE" | sed 's/@BACKEND@/Glitz/'
|
||||
fi
|
||||
|
||||
if test x"$use_xcb" = "xyes" ; then
|
||||
echo "$WARNING_MESSAGE" | sed 's/@BACKEND@/XCB/'
|
||||
fi
|
||||
|
||||
if test x"$use_quartz_image" = "xyes" ; then
|
||||
echo "$WARNING_MESSAGE" | sed 's/@BACKEND@/Quartz Image/'
|
||||
fi
|
||||
|
||||
if test x"$use_os2" = "xyes" ; then
|
||||
echo "$WARNING_MESSAGE" | sed 's,@BACKEND@,OS/2,'
|
||||
fi
|
||||
|
||||
if test x"$use_beos" = "xyes" ; then
|
||||
echo "$WARNING_MESSAGE" | sed 's/@BACKEND@/BeOS/'
|
||||
fi
|
||||
|
||||
if test x"$use_directfb" = "xyes" ; then
|
||||
echo "$WARNING_MESSAGE" | sed 's/@BACKEND@/DirectFB/'
|
||||
fi
|
||||
echo "$CAIRO_WARNING_MESSAGE"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue