You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@tcl.apache.org by mx...@apache.org on 2015/06/21 22:01:39 UTC

svn commit: r1686752 - in /tcl/rivet/trunk: ChangeLog configure.ac src/mod_rivet/mod_rivet_common.c

Author: mxmanghi
Date: Sun Jun 21 20:01:39 2015
New Revision: 1686752

URL: http://svn.apache.org/r1686752
Log:
    * configure.ac: add creation of config variable RIVET_CONFIGURE_CMD
    * src/mod_rivet/mod_rivet_common.c: add RIVET_CONFIGURE_CMD handling
    in 'server' array


Modified:
    tcl/rivet/trunk/ChangeLog
    tcl/rivet/trunk/configure.ac
    tcl/rivet/trunk/src/mod_rivet/mod_rivet_common.c

Modified: tcl/rivet/trunk/ChangeLog
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/ChangeLog?rev=1686752&r1=1686751&r2=1686752&view=diff
==============================================================================
--- tcl/rivet/trunk/ChangeLog (original)
+++ tcl/rivet/trunk/ChangeLog Sun Jun 21 20:01:39 2015
@@ -1,3 +1,8 @@
+2015-06-21 Massimo Manghi <mx...@apache.org>
+    * configure.ac: add creation of config variable RIVET_CONFIGURE_CMD
+    * src/mod_rivet/mod_rivet_common.c: add RIVET_CONFIGURE_CMD handling
+    in 'server' array
+
 2015-06-06 Massimo Manghi <mx...@apache.org>
     * src/mod_rivet/rivet_worker_mpm.c: found a solution for determining
     the current thread pool. Mutex and cond variable are allocated from it

Modified: tcl/rivet/trunk/configure.ac
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/configure.ac?rev=1686752&r1=1686751&r2=1686752&view=diff
==============================================================================
--- tcl/rivet/trunk/configure.ac (original)
+++ tcl/rivet/trunk/configure.ac Sun Jun 21 20:01:39 2015
@@ -25,6 +25,11 @@ dnl
 AC_INIT([Rivet],[2.3.0])
 TEA_INIT([3.9])
 
+# we are storing here the configure command line, as recursive
+# invocations change the value of the shell variables $0 $*
+
+CONFIGURE_CMD="$0 $*"
+
 AC_CONFIG_AUX_DIR(tclconfig)
 AM_INIT_AUTOMAKE
 AC_CONFIG_HEADERS([config.h])
@@ -884,6 +889,7 @@ AC_DEFINE_UNQUOTED(NAMEOFEXECUTABLE,"${T
 AC_DEFINE_UNQUOTED(UPLOAD_DIR,"${RIVET_UPLOAD_DIR}",[Path to the disk directory where uploads are saved])
 AC_DEFINE_UNQUOTED(MAX_POST,[$MAX_POST],[Max size of data in POST operations])
 AC_DEFINE_UNQUOTED(SEPARATE_CHANNELS,0,[Separate Channels for virtual hosts])
+AC_DEFINE_UNQUOTED(CONFIGURE_CMD,"${CONFIGURE_CMD}",[configure command string])
 
 # We need to use the package path for the installation procedure.  On
 #Debian linux TCL_PACKAGE_PATH may have more than one path in the

Modified: tcl/rivet/trunk/src/mod_rivet/mod_rivet_common.c
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/src/mod_rivet/mod_rivet_common.c?rev=1686752&r1=1686751&r2=1686752&view=diff
==============================================================================
--- tcl/rivet/trunk/src/mod_rivet/mod_rivet_common.c (original)
+++ tcl/rivet/trunk/src/mod_rivet/mod_rivet_common.c Sun Jun 21 20:01:39 2015
@@ -399,6 +399,15 @@ void Rivet_InitServerVariables( Tcl_Inte
             TCL_GLOBAL_ONLY);
     Tcl_DecrRefCount(obj);
     
+    obj = Tcl_NewStringObj(RIVET_CONFIGURE_CMD,-1);
+    Tcl_IncrRefCount(obj);
+    Tcl_SetVar2Ex(interp,
+            "server",
+            "RIVET_CONFIGURE_CMD",
+            obj,
+            TCL_GLOBAL_ONLY);
+    Tcl_DecrRefCount(obj);
+
 }
 
 /*



---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: site-cvs-help@tcl.apache.org