diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-09-06 15:34:29 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-09-06 17:44:18 -0400 |
commit | ee97873e0dad3ac60f6c39fb46bb5a7bb7480ae7 (patch) | |
tree | 8d1b8144e2432a39797df80ddfe12a0609df02c6 | |
parent | 3ed9787f4358048965bbc35acf958a75a95261dd (diff) |
[configure.ac.bulid] Break feature config into smaller hooks
-rw-r--r-- | build/configure.ac.enable | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/build/configure.ac.enable b/build/configure.ac.enable index da658214..dd3d8c7e 100644 --- a/build/configure.ac.enable +++ b/build/configure.ac.enable @@ -348,24 +348,9 @@ enabled_cairo_private += $(cairo_$1_private) enabled_cairo_sources += $(cairo_$1_sources) endif ' - dnl Collect warning message for enabled unsupported backends - AS_IF([test "x$use_$1" = xyes -a "x]cr_feature_default[" = xno], - [ - CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE -m4_text_wrap([The ]cr_feature_name[ feature 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 ]cr_feature_name[ specific API.], [--- ],, 72) -" - ]) - - dnl Collect warning message for disabled recommended backends - AS_IF([test "x$use_$1" != xyes -a "x]cr_feature_default[" = xyes], - [ - CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE -m4_text_wrap([It is strictly recommended that you do NOT disable the ]cr_feature_name[ backend.], [+++ ],, 72) -" - ]) - ]) + dnl =========================================================================== dnl dnl Report @@ -374,6 +359,27 @@ dnl dnl Accumulator for warning messages CAIRO_FEATURE_VARS_REGISTER([WARNING_MESSAGE]) +dnl Collect warning message for enabled unsupported backends +CAIRO_FEATURE_HOOK_REGISTER(no,*, +[ + CAIRO_FEATURE_IF_ENABLED($1, + [ + CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE]m4_newline[m4_text_wrap([The ]cr_feature_name[ feature 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 ]cr_feature_name[ specific API.], [--- ],, 78) +" + ]) +]) + +dnl Collect warning message for disabled recommended backends +CAIRO_FEATURE_HOOK_REGISTER(yes,*, +[ + CAIRO_FEATURE_IF_ENABLED($1, + [],[ + CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE]m4_newline[m4_text_wrap([It is strictly recommended that you do NOT disable the ]cr_feature_name[ backend.], [+++ ],, 78) +" + ]) +]) + + AC_DEFUN([CAIRO_REPORT], [ V="$CAIRO_VERSION_MAJOR.$CAIRO_VERSION_MINOR.$CAIRO_VERSION_MICRO" |