From xemacs-m  Sat Mar 22 20:43:00 1997
Received: from mecca.spd.louisville.edu (mecca.spd.louisville.edu [136.165.40.148])
	by xemacs.org (8.8.5/8.8.5) with SMTP id UAA02161
	for <xemacs-beta@xemacs.org>; Sat, 22 Mar 1997 20:42:57 -0600 (CST)
Received: (from tjchol01@localhost) by mecca.spd.louisville.edu (950413.SGI.8.6.12/8.6.12) id CAA18589; Sun, 23 Mar 1997 02:43:05 GMT
Date: Sun, 23 Mar 1997 02:43:05 GMT
Message-Id: <199703230243.CAA18589@mecca.spd.louisville.edu>
From: "Tomasz J. Cholewo" <tjchol01@mecca.spd.louisville.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: XEmacs-Beta Mailing List <xemacs-beta@xemacs.org>
Subject: [patch] 20.1b9 configure.in: echo only current configuration
X-Mailer: VM 6.21 under 20.1 XEmacs Lucid (beta9)

I noticed that on consecutive runs of 'configure' whole history of
previous configuration results is being shown.  The following patch
causes that only current configuration is echoed and cleans the code a
bit by using single output redirection for a group of instructions.  I
hope that the '-a' option to 'tee' is available on all systems?  I think 
that we can give it a try and if it doesn't work for someone revert to
using a temporary file.

Tom
===============
--- xemacs-20.1-b9-orig/ChangeLog	Sat Mar 22 01:01:31 1997
+++ xemacs-20.1-b9/ChangeLog	Sat Mar 22 21:31:11 1997
@@ -1,3 +1,7 @@
+Sat Mar 22 21:27:41 1997  Tomasz J. Cholewo  <t.cholewo@ieee.org>
+
+        * configure.in: Echo only current configuration using 'tee -a'.
+
 Fri Mar 21 21:26:01 1997  Steven L Baur  <steve@altair.xemacs.org>
 
 	* XEmacs-19.15-b103 is released.
--- xemacs-20.1-b9-orig/configure.in	Sat Mar 22 01:01:33 1997
+++ xemacs-20.1-b9/configure.in	Sat Mar 22 21:25:22 1997
@@ -3178,6 +3178,9 @@
 dnl #                     Report on what we decided to do                      #
 dnl ############################################################################
 
+echo "$0 $configure_args" >> Installation
+# Start stdout redirection to '| tee -a Installation'
+(
 echo "
 
 Configured for \`${canonical}'.
@@ -3191,92 +3194,91 @@
   Should XEmacs use the relocating allocator for buffers? ${rel_alloc}
   What window system should XEmacs use?                   ${window_system}${x_includes+
   Where do we find X Windows header files?                }${x_includes}${x_libraries+
-  Where do we find X Windows libraries?                   }${x_libraries}" >> Installation
+  Where do we find X Windows libraries?                   }${x_libraries}"
 
 if test -n "$site_includes"; then
-  echo "  Additional header files:                                ${site_includes}" >> Installation
+  echo "  Additional header files:                                ${site_includes}"
 fi
 
 if test -n "$site_libraries" -a -n "$site_runtime_libraries"; then
-  echo "  Additional libraries:                                   ${site_libraries} ${site_runtime_libraries}" >> Installation
+  echo "  Additional libraries:                                   ${site_libraries} ${site_runtime_libraries}"
 elif test -n "$site_libraries"; then
-  echo "  Additional libraries:                                   ${site_libraries}" >> Installation
+  echo "  Additional libraries:                                   ${site_libraries}"
 elif test -n "$site_runtime_libraries"; then
-  echo "  Additional libraries:                                   ${site_runtime_libraries}" >> Installation
+  echo "  Additional libraries:                                   ${site_runtime_libraries}"
 fi
 if test "$with_wnn"; then
-  echo "  Finding WNN includes with:                              ${wnn_includes}" >> Installation
-  echo "  Loading WNN libs with:                                  ${wnn_libraries}" >> Installation
+  echo "  Finding WNN includes with:                              ${wnn_includes}"
+  echo "  Loading WNN libs with:                                  ${wnn_libraries}"
 fi
-test "$with_socks" = yes && echo "  Compiling in support for SOCKS." >> Installation
-test "$with_term"  = yes && echo "  Compiling in support for TERM." >> Installation
-test "$with_xauth" = yes && echo "  Compiling in support for XAUTH." >> Installation
-test "$with_xpm"   = yes && echo "  Compiling in support for XPM." >> Installation
+test "$with_socks" = yes && echo "  Compiling in support for SOCKS."
+test "$with_term"  = yes && echo "  Compiling in support for TERM."
+test "$with_xauth" = yes && echo "  Compiling in support for XAUTH."
+test "$with_xpm"   = yes && echo "  Compiling in support for XPM."
 if test "$with_xmu" != yes -a "$window_system" != none; then
-  echo "  No Xmu; substituting equivalent routines." >> Installation
+  echo "  No Xmu; substituting equivalent routines."
 fi
-test "$with_xface" = yes && echo "  Compiling in support for X-Face headers." >> Installation
-test "$with_gif"   = yes && echo "  Compiling in support for GIF image conversion." >> Installation
-test "$with_jpeg"  = yes && echo "  Compiling in support for JPEG image conversion." >> Installation
+test "$with_xface" = yes && echo "  Compiling in support for X-Face headers."
+test "$with_gif"   = yes && echo "  Compiling in support for GIF image conversion."
+test "$with_jpeg"  = yes && echo "  Compiling in support for JPEG image conversion."
 if test "$with_png"   = yes -o "$with_png" = gnuz; then
-  echo "  Compiling in support for PNG image conversion." >> Installation
+  echo "  Compiling in support for PNG image conversion."
 fi
 if test "$with_png" = gnuz; then
-  echo "  (Using -lgz instead of -lz.)" >> Installation
+  echo "  (Using -lgz instead of -lz.)"
 fi
-test "$with_tiff"  = yes && echo "  Compiling in support for TIFF image conversion (not implemented)." >> Installation
-test "$with_epoch" = yes && echo "  Compiling in extra Epoch compatibility." >> Installation
+test "$with_tiff"  = yes && echo "  Compiling in support for TIFF image conversion (not implemented)."
+test "$with_epoch" = yes && echo "  Compiling in extra Epoch compatibility."
 
-test "$with_sound" = nas    && echo "  Compiling in network sound support." >> Installation
-test "$with_sound" = native && echo "  Compiling in native sound support." >> Installation
-test "$with_sound" = both   && echo "  Compiling in both network and native sound support." >> Installation
-test "$old_nas"    = true   && echo "        nas library lacks error trapping, will play synchronously" >> Installation
+test "$with_sound" = nas    && echo "  Compiling in network sound support."
+test "$with_sound" = native && echo "  Compiling in native sound support."
+test "$with_sound" = both   && echo "  Compiling in both network and native sound support."
+test "$old_nas"    = true   && echo "        nas library lacks error trapping, will play synchronously"
 
-test "$with_database_berkdb" = yes && echo "  Compiling in support for Berkeley DB." >> Installation
-test "$with_database_dbm"    = yes && echo "  Compiling in support for DBM." >> Installation
-test "$with_database_gnudbm" = yes && echo "  Compiling in support for GNU DBM." >> Installation
+test "$with_database_berkdb" = yes && echo "  Compiling in support for Berkeley DB."
+test "$with_database_dbm"    = yes && echo "  Compiling in support for DBM."
+test "$with_database_gnudbm" = yes && echo "  Compiling in support for GNU DBM."
 
-test "$with_ncurses"  = yes && echo "  Compiling in support for ncurses." >> Installation
-test "$with_socks"    = yes && echo "  Compiling in support for SOCKS." >> Installation
+test "$with_ncurses"  = yes && echo "  Compiling in support for ncurses."
+test "$with_socks"    = yes && echo "  Compiling in support for SOCKS."
 
-test "$with_mule"     = yes && echo "  Compiling in Mule (multi-lingual) support." >> Installation
-test "$with_xim"      != no && echo "  Compiling in XIM (X11R5+ I18N input method) support." >> Installation
-test "$with_xim" = motif    && echo "    Using Motif to provide XIM support." >> Installation
-test "$with_xim" = xlib     && echo "    Using raw Xlib to provide XIM support." >> Installation
-test "$with_canna"    = yes && echo "  Compiling in support for Canna on Mule." >> Installation
-test "$with_wnn"      = yes && echo "  Compiling in support for WNN on Mule." >> Installation
-test "$with_wnn6"     = yes && echo "  WNN support for version 6." >> Installation
-test "$with_i18n3"    = yes && echo "  Compiling in I18N support, level 3 (doesn't currently work)." >> Installation
+test "$with_mule"     = yes && echo "  Compiling in Mule (multi-lingual) support."
+test "$with_xim"      != no && echo "  Compiling in XIM (X11R5+ I18N input method) support."
+test "$with_xim" = motif    && echo "    Using Motif to provide XIM support."
+test "$with_xim" = xlib     && echo "    Using raw Xlib to provide XIM support."
+test "$with_canna"    = yes && echo "  Compiling in support for Canna on Mule."
+test "$with_wnn"      = yes && echo "  Compiling in support for WNN on Mule."
+test "$with_wnn6"     = yes && echo "  WNN support for version 6."
+test "$with_i18n3"    = yes && echo "  Compiling in I18N support, level 3 (doesn't currently work)."
 
-test "$with_cde"      = yes && echo "  Compiling in support for CDE." >> Installation
-test "$with_tooltalk" = yes && echo "  Compiling in support for ToolTalk." >> Installation
-test "$with_offix"    = yes && echo "  Compiling in support for OffiX." >> Installation
-test "$with_mocklisp" = yes && echo "  Compiling in support for Mocklisp." >> Installation
-test "$with_sparcworks" = yes && echo "  Compiling in support for SparcWorks." >> Installation
-test "$with_energize" = yes && echo "  Compiling in support for Lucid Energize (doesn't currently work)." >> Installation
-test "$with_menubars" = "lucid" && echo "  Using the Lucid menubar." >> Installation
+test "$with_cde"      = yes && echo "  Compiling in support for CDE."
+test "$with_tooltalk" = yes && echo "  Compiling in support for ToolTalk."
+test "$with_offix"    = yes && echo "  Compiling in support for OffiX."
+test "$with_mocklisp" = yes && echo "  Compiling in support for Mocklisp."
+test "$with_sparcworks" = yes && echo "  Compiling in support for SparcWorks."
+test "$with_energize" = yes && echo "  Compiling in support for Lucid Energize (doesn't currently work)."
+test "$with_menubars" = "lucid" && echo "  Using the Lucid menubar."
 if test "$with_menubars" = "motif"; then
-  echo "  Using the Motif menubar." >> Installation
-  echo " *WARNING*  The Motif menubar is currently buggy.  We recommend" >> Installation
-  echo "            that you use the Lucid menubar instead.  Re-run" >> Installation
-  echo "            configure with --with-menubars='lucid'." >> Installation
+  echo "  Using the Motif menubar."
+  echo " *WARNING*  The Motif menubar is currently buggy.  We recommend"
+  echo "            that you use the Lucid menubar instead.  Re-run"
+  echo "            configure with --with-menubars='lucid'."
 fi
-test "$with_scrollbars" = lucid  && echo "  Using the Lucid scrollbar." >> Installation
-test "$with_scrollbars" = motif  && echo "  Using the Motif scrollbar." >> Installation
-test "$with_scrollbars" = athena && echo "  Using the Athena scrollbar." >> Installation
-test "$with_scrollbars" = athena3d && echo "  Using the Athena-3d scrollbar." >> Installation
-test "$with_dialogs"    = motif  && echo "  Using the Motif dialog boxes." >> Installation
-test "$with_dialogs"    = athena && echo "  Using the Athena dialog boxes." >> Installation
-test "$with_dialogs"    = athena3d && echo "  Using the Athena-3d dialog boxes." >> Installation
+test "$with_scrollbars" = lucid  && echo "  Using the Lucid scrollbar."
+test "$with_scrollbars" = motif  && echo "  Using the Motif scrollbar."
+test "$with_scrollbars" = athena && echo "  Using the Athena scrollbar."
+test "$with_scrollbars" = athena3d && echo "  Using the Athena-3d scrollbar."
+test "$with_dialogs"    = motif  && echo "  Using the Motif dialog boxes."
+test "$with_dialogs"    = athena && echo "  Using the Athena dialog boxes."
+test "$with_dialogs"    = athena3d && echo "  Using the Athena-3d dialog boxes."
 
-test "${use_union_type}"     = yes && echo "  Using the union type for Lisp_Objects." >> Installation
-test "${debug}"              = yes && echo "  Compiling in extra code for debugging." >> Installation
-test "${memory_usage_stats}" = yes && echo "  Compiling in code for checking XEmacs memory usage." >> Installation
-test "$usage_tracking"       = yes && echo "  Compiling with usage tracking active (Sun internal)." >> Installation
-echo " >> Installation
+test "${use_union_type}"     = yes && echo "  Using the union type for Lisp_Objects."
+test "${debug}"              = yes && echo "  Compiling in extra code for debugging."
+test "${memory_usage_stats}" = yes && echo "  Compiling in code for checking XEmacs memory usage."
+test "$usage_tracking"       = yes && echo "  Compiling with usage tracking active (Sun internal)."
+) | tee -a Installation
+echo " | tee -a Installation
 "
-
-test -r Installation && cat Installation
 dnl ############################################################################
 dnl #                                Now generate!                             #
 dnl ############################################################################

