gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-dev] configure portability for test


From: Jeremy C. Reed
Subject: [Gnash-dev] configure portability for test
Date: Thu, 15 Nov 2007 12:53:36 -0600 (CST)

(I sent this twice, once when not subscribed. Moderator: don't approve my 
first posting.)

Patches against gnash-0.8.1.

Please don't use == with test or [. Coreutils test(1) doesn't know it. 
It is not portable.

Two patches below. I don't know what generated the broken parts of 
configure below. Probably something on the developer's system (who 
generated it).

Also see very bottom of this email for a comment from me.

--- configure.ac.orig   2007-11-15 08:30:48.000000000 -0600
+++ configure.ac        2007-11-15 08:31:27.000000000 -0600
@@ -1865,7 +1865,7 @@
     echo "               Install it from 
http://www.libsdl.org/download-1.2.php";
     echo "               or .deb users: apt-get install libsdl1.2-dev"
     echo "               or .rpm users: yum install SDL-devel"
-    [ x$build_sdl == xyes ] &&
+    [ x$build_sdl = xyes ] &&
        echo "               or select a different GUI with --enable-gui= "
     [ x"$media_handler" = x"ffmpeg" -o x"$media_handler" = x"mad" ] &&
        echo "               or use --enable-media=gst"

--- configure.orig      2007-11-15 08:31:34.000000000 -0600
+++ configure   2007-11-15 08:34:32.000000000 -0600
@@ -9060,13 +9060,13 @@
   LIBPRE="lib"
 
   if test "x$LIBPRE" != "x" ; then
-    if test x"$EXEEXT" == "exe"; then
+    if test x"$EXEEXT" = "exe"; then
       LIBPRE="lib"
     fi
   fi
 
   if test "x$LIBEXT" != "x" ; then
-    if test x"$EXEEXT" == "exe"; then
+    if test x"$EXEEXT" = "exe"; then
       LIBEXT="dll"
     fi
   fi
@@ -40821,7 +40821,7 @@
     fi
   done
 
-  if test "x$gnash_qt_version" == x; then
+  if test "x$gnash_qt_version" = x; then
     for i in $incllist; do
       for j in `ls -dr $i/qt[0-9] 2>/dev/null`; do
         if test -f $j/qobject.h; then
@@ -53575,7 +53575,7 @@
     echo "               Install it from 
http://www.libsdl.org/download-1.2.php";
     echo "               or .deb users: apt-get install libsdl1.2-dev"
     echo "               or .rpm users: yum install SDL-devel"
-     x$build_sdl == xyes  &&
+     x$build_sdl = xyes  &&
        echo "               or select a different GUI with --enable-gui= "
      x"$media_handler" = x"ffmpeg" -o x"$media_handler" = x"mad"  &&
        echo "               or use --enable-media=gst"



The last lines above seem like they need [ ... ] brackets for test. Even 
the configure.ac file has the [ ] brackets. Why missing?

Jeremy C. Reed




reply via email to

[Prev in Thread] Current Thread [Next in Thread]