test-rename.h: fix compilation failure
[pspp] / m4 / fnmatch.m4
index 93ec2b3bc9292f4f9e6ad852193833efc22c063e..84bcabd9ff122254a55cad66724ec8183e27bff8 100644 (file)
@@ -1,6 +1,6 @@
 # Check for fnmatch - serial 4.
 
-# Copyright (C) 2000-2007, 2009 Free Software Foundation, Inc.
+# Copyright (C) 2000-2007, 2009-2010 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
@@ -20,7 +20,9 @@ AC_DEFUN([gl_FUNC_FNMATCH_POSIX],
   AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   FNMATCH_H=
-  gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
+  gl_fnmatch_required_lowercase=`
+    echo $gl_fnmatch_required | tr '[[A-Z]]' '[[a-z]]'
+  `
   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
   AC_CACHE_CHECK([for working $gl_fnmatch_required fnmatch],
     [$gl_fnmatch_cache_var],
@@ -101,7 +103,7 @@ AC_DEFUN([gl_FUNC_FNMATCH_POSIX],
     dnl We must choose a different name for our function, since on ELF systems
     dnl a broken fnmatch() in libc.so would override our fnmatch() if it is
     dnl compiled into a shared library.
-    AC_DEFINE([fnmatch], [${gl_fnmatch_required_lowercase}_fnmatch],
+    AC_DEFINE_UNQUOTED([fnmatch], [${gl_fnmatch_required_lowercase}_fnmatch],
       [Define to a replacement function name for fnmatch().])
     dnl Prerequisites of lib/fnmatch.c.
     AC_REQUIRE([AC_TYPE_MBSTATE_T])