gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash configure.ac ChangeLog


From: Rob Savoye
Subject: [Gnash-commit] gnash configure.ac ChangeLog
Date: Wed, 26 Dec 2007 01:11:08 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Rob Savoye <rsavoye>    07/12/26 01:11:08

Modified files:
        .              : configure.ac ChangeLog 

Log message:
                * configure.ac: Add new security settings.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/configure.ac?cvsroot=gnash&r1=1.462&r2=1.463
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5256&r2=1.5257

Patches:
Index: configure.ac
===================================================================
RCS file: /sources/gnash/gnash/configure.ac,v
retrieving revision 1.462
retrieving revision 1.463
diff -u -b -r1.462 -r1.463
--- configure.ac        24 Dec 2007 18:21:03 -0000      1.462
+++ configure.ac        26 Dec 2007 01:11:07 -0000      1.463
@@ -15,7 +15,7 @@
 dnl  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 dnl  
 
-dnl $Id: configure.ac,v 1.462 2007/12/24 18:21:03 rsavoye Exp $
+dnl $Id: configure.ac,v 1.463 2007/12/26 01:11:07 rsavoye Exp $
 
 AC_PREREQ(2.50)
 AC_INIT(gnash, cvs)
@@ -174,8 +174,39 @@
 
 dnl This is primarily used when compiling for a similar architecture,
 dnl like pentium->geode, which can use the same compiler, but have
-dnl different development
-AC_ARG_WITH(top_level, AC_HELP_STRING([--with-top-level], [top level directory 
for cross compiling files]), with_top_level=${withval} ; cross_compiling=yes)
+dnl different developmentAC_ARG_WITH(top_level, 
AC_HELP_STRING([--with-top-level], [top level directory for cross compiling 
files]), with_top_level=${withval} ; cross_compiling=yes)
+
+
+AC_ARG_WITH(top_level,
+  AC_HELP_STRING([--with-top-level],
+  [top level directory for cross compiling files]),
+  with_top_level=${withval} ;
+  cross_compiling=yes)
+
+soldir=/tmp
+AC_ARG_WITH(soldir,
+ AC_HELP_STRING([--with-soldir],
+ [directory for .sol files]),
+ with_soldir=${withval})
+if test x${with_soldir} != x; then
+  soldir=${with_soldir}
+fi
+SOLDIR=${soldir}
+AC_SUBST(SOLDIR)
+
+dnl lckey=0xdd3adabd
+AC_ARG_WITH(lckey,
+ AC_HELP_STRING([--with-lckey],
+ [shared memory key for your system]),
+ with_lckey=${withval})
+
+if test x${with_lckey} != x; then
+  lckey=${with_lckey}
+else
+  lckey=0xcbc384f8
+fi
+LC_KEY=${lckey}
+AC_SUBST(LC_KEY)
 
 AC_ARG_ENABLE(debugger,
   AC_HELP_STRING([--enable-debugger],[Enable the Flash debugger]),
@@ -190,8 +221,6 @@
 fi
 AM_CONDITIONAL(DEBUGGER, test x$debugger = xyes)
 
-AC_ARG_WITH(top_level, AC_HELP_STRING([--with-top-level], [top level directory 
for cross compiling files]), with_top_level=${withval})
-
 AC_ARG_ENABLE(fps-debug,
   AC_HELP_STRING([--enable-fps-debug],[Enable FPS debugging code]),
 [case "${enableval}" in
@@ -702,6 +731,91 @@
 dnl AC_CHECK_LIB(ltdl, lt_dlmutex_register, AC_DEFINE(LT_DLMUTEX, 1, [Has 
lt_dlmutex_register]),
 dnl                                         AC_DEFINE(LT_DLMUTEX, 0, [doesn't 
have lt_dlmutex_register]) )
 
+#
+# These settings are compile time options for the security
+# setting for anything that lets gnash exchange data with
+# other applications. Currently this only supports Shared
+# Objects and Local Connections. Shared Objects are like
+# your web browsers cookies, and Local Connections use
+# shared memory to execute methods remotely, and to
+# exchange data.
+#
+# The default is to enable everything, and these can
+# also be controlled dynamically by the $HOME/.gnashrc
+# file.
+#
+solreadonly=no
+localconnection=yes
+lctrace=yes
+
+AC_ARG_WITH(security,
+  AC_HELP_STRING([--with-security=], [Specify which security features to 
enable]),
+  if test -n ${withval}; then
+    if test "x${withval}" != "xno"; then
+      extlist="${withval}"
+      withval=`echo ${withval} | tr '\054' ' ' `
+    else
+      extlist=""
+      withval=""
+    fi
+  fi
+  security_list=""
+  nsecurity=0
+  while test -n "${withval}" ; do
+    val=`echo ${withval} | cut -d ' ' -f 1`
+dnl    security_list="${security_list} ${val}"
+    [case "${val}" in
+      solreadonly)
+        solreadonly=yes
+        nsecurity=$((nsecurity+1))
+        ;;
+      lc)
+        localconnection=yes
+        nsecurity=$((nsecurity+1))
+        ;;
+      lctrace)
+        lctrace=yes
+        nsecurity=$((nsecurity+1))
+        ;;
+      all|ALL)
+        solreadonly=yes
+        lc=yes
+        lctrace=yes
+        nsecurity=3
+        ;;
+      *) AC_MSG_ERROR([invalid security feature specified: ${withval} given 
(accept: solreadonly|lc|lctrace)])
+        ;;
+      esac]
+    withval=`echo ${withval} | cut -d ' ' -f 2-6`
+    if test "x$val" = "x$withval"; then
+      break;
+    fi
+  done
+)
+if test xlctrace = xyes; then
+  security_list="${security_list} lctrace"
+  AC_DEFINE(USE_LC_TRACE, [1],
+           [Support LocalConnection])
+  AC_MSG_NOTICE([This build supports LocalConnection tracing])
+  AC_MSG_WARN([This option will effect your performance])
+fi
+
+if test x$localconnection = xyes; then
+  security_list="${security_list} localconnection"
+  AC_DEFINE(USE_LC, [1],
+                 [Support LocalConnection])
+  AC_MSG_NOTICE([This build supports LocalConnection])
+fi
+if test x$solreadonly = xyes; then
+  security_list="${security_list} solreadonly"
+  AC_DEFINE(USE_SOL_READONLY, [1],
+                 [Shared Objects are read-only])
+  AC_MSG_NOTICE([Shared Objects are read-only])
+fi
+SECURITY_LIST="$security_list"
+AC_SUBST(SECURITY_LIST)
+
+
 if test x$build_agg = xyes; then
   AC_DEFINE([RENDERER_AGG], [], [Use AntiGrain renderer])
 fi
@@ -1772,6 +1886,10 @@
   echo "        Building extensions: ${extensions_list}"
 fi
 
+if test x"$security_list" != x; then
+  echo "        Enabling security features: ${security_list}"
+fi
+
 if test x"${SUPPORTED_GUIS}" = x; then
   AC_MSG_ERROR(no supported GUIs found);
 fi

Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5256
retrieving revision 1.5257
diff -u -b -r1.5256 -r1.5257
--- ChangeLog   26 Dec 2007 00:46:49 -0000      1.5256
+++ ChangeLog   26 Dec 2007 01:11:07 -0000      1.5257
@@ -1,5 +1,7 @@
 2007-12-25  Rob Savoye  <address@hidden>
 
+       * configure.ac: Add new security settings.
+       
        * libbase/rc.{cpp,h}: Add new security options for Shared Objects
        and Local Connections. Make extractNumber() return a uint32_t
        intead of just an int as we keep overflowing strtol().




reply via email to

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