diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-09-11 03:44:17 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-09-11 03:45:51 -0400 |
commit | ac6e4b83e7eac8cf99849b3c4b60da7fdace8625 (patch) | |
tree | c81f9fc188567f27bb81be41fea90f5ae6a92d50 | |
parent | 7c4fdafc8cb9f80e338df7581af1a8f40771dc67 (diff) |
[configure.ac.enable] Use AS_CASE
-rw-r--r-- | build/configure.ac.enable | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/build/configure.ac.enable b/build/configure.ac.enable index 08038199..afb797f5 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 |