No tabs please.
[pspp] / m4 / vasnprintf.m4
index a225c1c4786d9b566eb1a3a6fc9cdaae9b0a1eb8..8cc4f32e33d7a9b87e68f30a90eefd6af8cf7235 100644 (file)
@@ -1,4 +1,4 @@
-# vasnprintf.m4 serial 10
+# vasnprintf.m4 serial 11
 dnl Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -66,12 +66,16 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF],
 AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_A],
 [
   AC_REQUIRE([gl_PRINTF_DIRECTIVE_A])
-  if ! expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null; then
-    AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1,
-      [Define if the vasnprintf implementation needs special code for
-       the 'a' and 'A' directives.])
-    AC_CHECK_FUNCS([nl_langinfo])
-  fi
+  case "$gl_cv_func_printf_directive_a" in
+    *yes)
+      ;;
+    *)
+      AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1,
+        [Define if the vasnprintf implementation needs special code for
+         the 'a' and 'A' directives.])
+      AC_CHECK_FUNCS([nl_langinfo])
+      ;;
+  esac
 ])
 
 # Prerequisites of lib/asnprintf.c.