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

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Sep 11 00:45:58 PDT 2008


 build/configure.ac.enable |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit ac6e4b83e7eac8cf99849b3c4b60da7fdace8625
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Sep 11 03:44:17 2008 -0400

    [configure.ac.enable] Use AS_CASE

diff --git a/build/configure.ac.enable b/build/configure.ac.enable
index 0803819..afb797f 100644
--- a/build/configure.ac.enable
+++ b/build/configure.ac.enable
@@ -75,11 +75,12 @@ AC_DEFUN([_CAIRO_ENABLE],
 					     [Enable cairo's ]cr_feature_name[ feature @<:@default=]cr_feature_default[@:>@]),
 			      enable_$1=$enableval, enable_$1=cr_feature_default)
 	])dnl
-	case $enable_$1 in
-	no)
+	dnl
+	AS_CASE([$enable_$1],
+	[no],[dnl
 		use_$1="no (disabled, use --enable-cr_feature_arg to enable)"
-	;;
-	yes|auto)
+	],dnl
+	[yes|auto],[dnl
 		dnl Cache invalidating:
 		dnl
 		dnl To be extremely user-friendly, we discard cache results if
@@ -143,11 +144,10 @@ AC_DEFUN([_CAIRO_ENABLE],
 					,		[requested]
 				) cr_feature_name[ feature could not be enabled])
 		])dnl
-	;;
-	*)
+	],dnl
+	[dnl	
 		AC_MSG_ERROR([invalid argument passed to --enable-]cr_feature_arg[: `$use_$1', should be one of @<:@no/auto/yes@:>@])
-	;;
-	esac
+	])dnl
 
 	AS_IF([test "x$use_$1" = "xyes"],
 	[dnl


More information about the cairo-commit mailing list