*** lynx2-8-1.24/src/LYMain.c Fri Aug 21 14:30:14 1998 --- Lynx/src/LYMain.c Wed Sep 2 19:13:49 1998 *************** *** 1256,1261 **** --- 1256,1265 ---- * Process the configuration file. */ read_cfg(lynx_cfg_file, "main program", 1); + cp = NULL; + StrAllocCopy(cp,"LYNX_CFG_FILE="); + StrAllocCat(cp,lynx_cfg_file); + putenv(cp); FREE(lynx_cfg_file); HTSwitchDTD(New_DTD); *** lynx2-8-1.24/src/LYShowInfo.c Sun Aug 30 00:22:40 1998 --- Lynx/src/LYShowInfo.c Wed Sep 2 19:13:23 1998 *************** *** 37,42 **** --- 37,43 ---- int url_type; FILE *fp0; char *Address = NULL, *Title = NULL; + char *lynx_cfg_file; CONST char *cp; #ifdef DIRED_SUPPORT *************** *** 76,93 **** fprintf(fp0, "%s\n\n\n", SHOWINFO_TITLE); ! #ifdef LYNX_COMPILE_OPTS ! fprintf(fp0, "

%s %s (%s) - compile time settings\n", LYNX_NAME, LYNX_VERSION, (LYNX_RELEASE ? LYNX_WWW_HOME : LYNX_WWW_DIST), ! (LYNX_RELEASE ? "major release" : "development version"), LYNX_COMPILE_OPTS); - #else - fprintf(fp0, "

%s %s (%s)\n", - LYNX_NAME, LYNX_VERSION, - (LYNX_RELEASE ? LYNX_WWW_HOME : LYNX_WWW_DIST), - (LYNX_RELEASE ? "major release" : "development version") ); #endif #ifdef DIRED_SUPPORT if (lynx_edit_mode && nlinks > 0) { --- 77,101 ---- fprintf(fp0, "%s\n\n\n", SHOWINFO_TITLE); ! fprintf(fp0, "

%s %s (%s)

\n", LYNX_NAME, LYNX_VERSION, (LYNX_RELEASE ? LYNX_WWW_HOME : LYNX_WWW_DIST), ! (LYNX_RELEASE ? "major release" : "development version")); ! fprintf(fp0, "
\n");
! #ifdef LYNX_COMPILE_OPTS
!     fprintf(fp0,
!         "   Compile-time settings: lynx_site.txt\n",
  		 LYNX_COMPILE_OPTS);
  #endif
+     if ((cp=getenv("LYNX_CFG_FILE")) != NULL) {
+         StrAllocCopy(lynx_cfg_file, cp);
+     } else {
+         StrAllocCopy(lynx_cfg_file, LYNX_CFG_FILE);
+     }
+     fprintf(fp0,
+         "   Current config. file : lynx.cfg\n",
+ 		 lynx_cfg_file);
+     fprintf(fp0, "
\n"); #ifdef DIRED_SUPPORT if (lynx_edit_mode && nlinks > 0) {