*** configure.b~0	Fri Aug 26 01:40:36 1994
--- configure.bat	Tue Mar 18 17:19:14 1997
***************
*** 1,13 ****
  @echo off
! echo Configuring bison for go32
  rem This batch file assumes a unix-type "sed" program
  
  echo # Makefile generated by "configure.bat"> Makefile
- echo all.dos : bison >> Makefile
  
  if exist config.sed del config.sed
  
  echo "s/@srcdir@/./g					">> config.sed
  echo "s/@CC@/gcc/g					">> config.sed
  echo "s/@INSTALL@//g					">> config.sed
  echo "s/@INSTALL_PROGRAM@//g				">> config.sed
--- 1,15 ----
  @echo off
! echo Configuring bison for DJGPP
  rem This batch file assumes a unix-type "sed" program
  
  echo # Makefile generated by "configure.bat"> Makefile
  
  if exist config.sed del config.sed
  
  echo "s/@srcdir@/./g					">> config.sed
+ echo "s,@prefix@,c:/djgpp,g				">> config.sed
+ echo "s,@exec_prefix@,c:/djgpp,g			">> config.sed
+ echo "s/@srcdir@/./g					">> config.sed
  echo "s/@CC@/gcc/g					">> config.sed
  echo "s/@INSTALL@//g					">> config.sed
  echo "s/@INSTALL_PROGRAM@//g				">> config.sed
***************
*** 15,28 ****
  echo "s/@DEFS@/-DHAVE_STRERROR/g			">> config.sed
  echo "s/@LIBS@//g					">> config.sed
  echo "s/@ALLOCA@//g					">> config.sed
! 
! echo "/^bison[ 	]*:/,/-o/ {				">> config.sed
! echo "  s/	\$(CC)/	>bison.rf/			">> config.sed
! echo "  /-o/ a\						">> config.sed
! echo "	$(CC) @bison.rf					">> config.sed
! echo "}							">> config.sed
  
  sed -e "s/^\"//" -e "s/\"$//" -e "s/[ 	]*$//" config.sed > config2.sed
  sed -f config2.sed Makefile.in >> Makefile
  del config.sed
  del config2.sed
--- 17,26 ----
  echo "s/@DEFS@/-DHAVE_STRERROR/g			">> config.sed
  echo "s/@LIBS@//g					">> config.sed
  echo "s/@ALLOCA@//g					">> config.sed
! echo "s/^CFLAGS *=.*$/CFLAGS=-O2 -g/g			">> config.sed
  
  sed -e "s/^\"//" -e "s/\"$//" -e "s/[ 	]*$//" config.sed > config2.sed
  sed -f config2.sed Makefile.in >> Makefile
+ copy bison.simple bison.s1 > nul
  del config.sed
  del config2.sed
*** files.c~0	Sun Oct 15 22:01:30 1995
--- files.c	Tue Mar 18 16:57:20 1997
***************
*** 120,127 ****
--- 120,134 ----
  #ifdef MSDOS
    tmp_base = getenv ("TMP");
    if (tmp_base == 0)
+     tmp_base = getenv ("TEMP");
+   if (tmp_base == 0)
+     tmp_base = getenv ("TMPDIR");
+   if (tmp_base == 0)
      tmp_base = "";
+ #ifndef __DJGPP__
+   /* DJGPP supports Windows 95 which is case-preserving.  */
    strlwr (infile);
+ #endif /* __DJGPP__ */
  #endif /* MSDOS */
  
    tmp_len = strlen (tmp_base);
***************
*** 132,138 ****
--- 139,148 ----
  	 For other output files, remove the ".c" or ".tab.c" suffix.  */
        name_base = spec_outfile;
  #ifdef MSDOS
+ #ifndef __DJGPP__
+       /* DJGPP supports Windows 95 which is case-preserving.  */
        strlwr (name_base);
+ #endif /* __DJGPP__ */
  #endif /* MSDOS */
        /* BASE_LENGTH includes ".tab" but not ".c".  */
        base_length = strlen (name_base);
***************
*** 161,167 ****
--- 171,180 ----
        strcat (name_base, ".tab");
  #endif
  #ifdef MSDOS
+ #ifndef __DJGPP__
+       /* DJGPP supports Windows 95 which is case-preserving.  */
        strlwr (name_base);
+ #endif /* __DJGPP__ */
  #endif /* MSDOS */
      }
    else
*** bison.t~0	Fri Dec  1 01:24:56 1995
--- bison.texinfo	Tue Mar 18 17:48:02 1997
***************
*** 4844,4849 ****
--- 4844,4853 ----
  @file{foo.tab.c}, and the @samp{bison hack/foo.y} filename yields
  @file{hack/foo.tab.c}.@refill
  
+ The VMS and MS-DOS file systems do not permit filenames such as
+ @file{foo.tab.c}.  In the above examples, the output files would instead
+ be named @file{foo_tab.c} and @file{hack/foo_tab.c}, accordingly.
+ 
  @menu
  * Bison Options::     All the options described in detail, 
  			in alphabetical order by short options.
***************
*** 4947,4952 ****
--- 4951,4961 ----
  called @file{foo.tab.c} by default.  As a consequence, the verbose
  output file is called @file{foo.output}.@refill
  
+ On MS-DOS and VMS, the filename cannot have more than one dot, so the
+ parser file will be called @file{foo_tab.c}.  MS-DOS filenames aren't
+ allowed to have more than 3 characters in the extension, so the output
+ file will be called @file{foo.out} instead.@refill
+ 
  @item -V
  @itemx --version
  Print the version number of Bison and exit.
***************
*** 4969,4974 ****
--- 4978,4986 ----
  bison -y $*
  @end example
  @end table
+ 
+ (On MS-DOS, this option yields @file{y_tab.c}, @file{y_tab.h} and
+ @file{y.out}, accordingly.)
  
  @node Option Cross Key, VMS Invocation, Bison Options, Invocation
  @section Option Cross Key
