[GTK] remove bashism from configure
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jun 2013 19:32:36 +0000 (19:32 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Jun 2013 19:32:36 +0000 (19:32 +0000)
https://bugs.webkit.org/show_bug.cgi?id=117796

Reviewed by Gustavo Noronha Silva.

* Source/autotools/FindDependencies.m4: Perform string appending by redeclaring the base string to the value
of the base string followed by the string that's being appended. This replaces the use of the '+=' operator
that works under bash but is not supported by other shells.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151791 268f45cc-cd09-0410-ab3c-d52691b4dbfc

ChangeLog
Source/autotools/FindDependencies.m4

index fbf87a2ddfeaecba176c164404bad7f3e5e29996..499765a29ff0b5e44526d8b981a3b51be315d30d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2013-06-20  Zan Dobersek  <zdobersek@igalia.com>
+
+        [GTK] remove bashism from configure
+        https://bugs.webkit.org/show_bug.cgi?id=117796
+
+        Reviewed by Gustavo Noronha Silva.
+
+        * Source/autotools/FindDependencies.m4: Perform string appending by redeclaring the base string to the value
+        of the base string followed by the string that's being appended. This replaces the use of the '+=' operator
+        that works under bash but is not supported by other shells.
+
 2013-06-18  Ryosuke Niwa  <rniwa@webkit.org>
 
         REGRESSION(r147602): Search text field doesn't render selection when it has some :focus rules
 2013-06-18  Ryosuke Niwa  <rniwa@webkit.org>
 
         REGRESSION(r147602): Search text field doesn't render selection when it has some :focus rules
index 27ae709947f49c797428f2abdaca727f544779f1..35b7d894da51ebf16d215c0f95ef4b9445c77ae6 100644 (file)
@@ -379,8 +379,8 @@ fi
 # Since we support earlier HarfBuzz versions we keep this conditional for now.
 if $PKG_CONFIG --atleast-version 0.9.18 harfbuzz; then
     PKG_CHECK_MODULES(HARFBUZZ_ICU, harfbuzz-icu >= $harfbuzz_required_version)
 # Since we support earlier HarfBuzz versions we keep this conditional for now.
 if $PKG_CONFIG --atleast-version 0.9.18 harfbuzz; then
     PKG_CHECK_MODULES(HARFBUZZ_ICU, harfbuzz-icu >= $harfbuzz_required_version)
-    FREETYPE_CFLAGS+=" $HARFBUZZ_ICU_CFLAGS"
-    FREETYPE_LIBS+=" $HARFBUZZ_ICU_LIBS"
+    FREETYPE_CFLAGS="$FREETYPE_CFLAGS $HARFBUZZ_ICU_CFLAGS"
+    FREETYPE_LIBS="$FREETYPE_LIBS $HARFBUZZ_ICU_LIBS"
 fi
 AC_SUBST([FREETYPE_CFLAGS])
 AC_SUBST([FREETYPE_LIBS])
 fi
 AC_SUBST([FREETYPE_CFLAGS])
 AC_SUBST([FREETYPE_LIBS])
@@ -449,18 +449,18 @@ fi
 
 if test "$with_acceleration_backend" = "opengl"; then
     if test "$enable_gles2" = "yes"; then
 
 if test "$with_acceleration_backend" = "opengl"; then
     if test "$enable_gles2" = "yes"; then
-        acceleration_backend_description+="(gles2"
+        acceleration_backend_description="$acceleration_backend_description (gles2"
         OPENGL_LIBS="-lGLESv2"
     else
         OPENGL_LIBS="-lGLESv2"
     else
-        acceleration_backend_description+="(gl"
+        acceleration_backend_description="$acceleration_backend_description (gl"
         OPENGL_LIBS="-lGL"
     fi
     if test "$enable_egl" = "yes"; then
         OPENGL_LIBS="-lGL"
     fi
     if test "$enable_egl" = "yes"; then
-        acceleration_backend_description+=", egl"
-        OPENGL_LIBS+=" -lEGL"
+        acceleration_backend_description="$acceleration_backend_description, egl"
+        OPENGL_LIBS="$OPENGL_LIBS -lEGL"
     fi
     if test "$enable_glx" = "yes"; then
     fi
     if test "$enable_glx" = "yes"; then
-        acceleration_backend_description+=", glx"
+        acceleration_backend_description="$acceleration_backend_description, glx"
     fi
 
     # Check whether dlopen() is in the core libc like on FreeBSD, or in a separate
     fi
 
     # Check whether dlopen() is in the core libc like on FreeBSD, or in a separate
@@ -468,8 +468,8 @@ if test "$with_acceleration_backend" = "opengl"; then
     AC_CHECK_FUNC([dlopen], [], [AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"])])
     AC_SUBST([DLOPEN_LIBS])
 
     AC_CHECK_FUNC([dlopen], [], [AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"])])
     AC_SUBST([DLOPEN_LIBS])
 
-    OPENGL_LIBS+=" $DLOPEN_LIBS"
-    acceleration_backend_description+=")"
+    OPENGL_LIBS="$OPENGL_LIBS $DLOPEN_LIBS"
+    acceleration_backend_description="$acceleration_backend_description)"
 fi
 AC_SUBST([OPENGL_LIBS])
 
 fi
 AC_SUBST([OPENGL_LIBS])
 
@@ -477,10 +477,10 @@ enable_accelerated_canvas=no
 if test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "opengl"; then
     CAIRO_GL_LIBS="cairo-gl"
     if test "$enable_glx" = "yes"; then
 if test "$enable_accelerated_compositing" = "yes" && test "$with_acceleration_backend" = "opengl"; then
     CAIRO_GL_LIBS="cairo-gl"
     if test "$enable_glx" = "yes"; then
-        CAIRO_GL_LIBS+=" cairo-glx"
+        CAIRO_GL_LIBS="$CAIRO_GL_LIBS cairo-glx"
     fi
     if test "$enable_egl" = "yes"; then
     fi
     if test "$enable_egl" = "yes"; then
-        CAIRO_GL_LIBS+=" cairo-egl"
+        CAIRO_GL_LIBS="$CAIRO_GL_LIBS cairo-egl"
     fi
 
     # At the moment CairoGL does not add any extra cflags and libraries, so we can
     fi
 
     # At the moment CairoGL does not add any extra cflags and libraries, so we can