Mesa (master): Bracket arguments to tr so they work with Solaris tr

Alan Coopersmith alanc at kemper.freedesktop.org
Wed Feb 18 02:30:00 UTC 2015


Module: Mesa
Branch: master
Commit: 60ad5103b9c85cbb0921082fba9401f117424f25
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=60ad5103b9c85cbb0921082fba9401f117424f25

Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Thu Jan  1 12:55:27 2015 -0800

Bracket arguments to tr so they work with Solaris tr

https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Limitations-of-Usual-Tools.html#index-g_t_0040command_007btr_007d-1842

Without this fix, egl fails to build on Solaris, with the error:

<command-line>:0:22: error: '_EGL_PLATFORM_x11' undeclared (first use in this function)
egldisplay.c:207:31: note: in expansion of macro '_EGL_NATIVE_PLATFORM'
             native_platform = _EGL_NATIVE_PLATFORM;
                               ^

Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
Cc: "10.5" <mesa-stable at lists.freedesktop.org>

---

 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 351027b..21e396e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1778,7 +1778,7 @@ done
 # libEGL wants to default to the first platform specified in
 # ./configure.  parse that here.
 if test "x$egl_platforms" != "x"; then
-    FIRST_PLATFORM_CAPS=`echo $egl_platforms | sed 's| .*||' | tr 'a-z' 'A-Z'`
+    FIRST_PLATFORM_CAPS=`echo $egl_platforms | sed 's| .*||' | tr '[[a-z]]' '[[A-Z]]'`
     EGL_NATIVE_PLATFORM="_EGL_PLATFORM_$FIRST_PLATFORM_CAPS"
 else
     EGL_NATIVE_PLATFORM="_EGL_INVALID_PLATFORM"




More information about the mesa-commit mailing list