[cairo-commit] build/configure.ac.enable

Behdad Esfahbod behdad at kemper.freedesktop.org
Sat Sep 6 15:03:00 PDT 2008


 build/configure.ac.enable |    9 +++++++++
 1 file changed, 9 insertions(+)

New commits:
commit c3b05a796ed015350887cf8220b087058e493571
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Sat Sep 6 18:02:21 2008 -0400

    [configure.ac.enable] Sanitize feature default value

diff --git a/build/configure.ac.enable b/build/configure.ac.enable
index 0bc5e93..6e681b2 100644
--- a/build/configure.ac.enable
+++ b/build/configure.ac.enable
@@ -48,6 +48,15 @@ AC_DEFUN([_CAIRO_ENABLE],
 	m4_define([cr_feature_commands], [$5])
 	m4_define([cr_feature_commands_len], m4_len([$5]))
 
+	dnl Sanity check default
+	m4_case(
+		cr_feature_default,
+		[no],,
+		[yes],,
+		[auto],,
+		[m4_fatal([Invalid default value `]cr_feature_default[' for feature `]cr_feature['])]
+	)
+
 	m4_define([cr_feature_arg], m4_translit([$1],[_],[-]))
 
 	AC_ARG_ENABLE(cr_feature_arg,


More information about the cairo-commit mailing list