Only in mg-1.3x: MAKE-MG-DIST.bin-files
Only in mg-1.3x: MAKE-MG-DIST.man-files
Only in mg-1.3x: MAKE-MG-DIST.sh
Only in mg-1.3: Makefile
diff -r -c mg-1.3/Makefile.in mg-1.3x/Makefile.in
*** mg-1.3/Makefile.in	Tue Mar 25 18:43:47 1997
--- mg-1.3x/Makefile.in	Fri May 16 12:43:57 1997
***************
*** 40,45 ****
--- 40,46 ----
  libexecdir = $(exec_prefix)/libexec
   
  MDEFINES = 
+ MDEFINES =READLINE='-DGNU_READLINE -I/usr/local/include/readline -L/usr/local/lib' READLINE_LIBS='-lreadline -ltermcap'
  #CC='$(CC)' CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
  #prefix='$(prefix)' exec_prefix='$(exec_prefix)' \
  #bindir='$(bindir)' libexecdir='$(libexecdir)' \
***************
*** 88,94 ****
  clean-local: mostlyclean-local
  
  distclean-local: clean-local
! 	rm -f Makefile config.cache config.h config.log stamp-h
  
  maintainer-clean-local: distclean-local
  	@echo "This command is intended only for maintainers to use;"
--- 89,95 ----
  clean-local: mostlyclean-local
  
  distclean-local: clean-local
! 	rm -f Makefile  Makefile.bak config.cache config.h config.log stamp-h
  
  maintainer-clean-local: distclean-local
  	@echo "This command is intended only for maintainers to use;"
***************
*** 175,177 ****
--- 176,185 ----
  # Tell versions [3.59,3.63) of GNU make not to export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.
  .NOEXPORT:
+ 
+ depend:
+ 	for dir in $(SUBDIRS) ; \
+ 	do \
+ 	  echo making $@ in $$dir ; \
+ 	  (cd $$dir; $(MAKE) CFLAGS='-I../.. -I../../lib -I. -I.. -I../lib' $@ ) ; \
+ 	done
Only in mg-1.3x: Makefile.in.orig
Only in mg-1.3x: README.NeXT
Only in mg-1.3x: README.mg-1.3x
diff -r -c mg-1.3/SampleData/Makefile mg-1.3x/SampleData/Makefile
*** mg-1.3/SampleData/Makefile	Tue Mar 25 18:43:48 1997
--- mg-1.3x/SampleData/Makefile	Fri May 16 12:44:01 1997
***************
*** 1,4 ****
--- 1,18 ----
  DISTFILES = Makefile alice13a.txt.Z MODIFICATIONS 
  
+ SHELL		= /bin/sh
+ 
  dist:
  	ln $(DISTFILES) $(distdir)
+ 
+ mostlyclean:
+ 	rm -f *$o _*.c _*.o *._c *._o core core.*
+  
+ clean: mostlyclean
+  
+ distclean: clean
+ 	rm -f Makefile
+  
+ maintainer-clean: distclean
+ 	@echo "This command is intended only for maintainers to use;"
+ 	@echo "rebuilding the deleted files may require special tools."
Only in mg-1.3x/SampleData: Makefile.orig
diff -r -c mg-1.3/SampleData/bible/Makefile mg-1.3x/SampleData/bible/Makefile
*** mg-1.3/SampleData/bible/Makefile	Tue Mar 25 18:43:55 1997
--- mg-1.3x/SampleData/bible/Makefile	Fri May 16 12:44:03 1997
***************
*** 1,5 ****
--- 1,21 ----
  DISTFILES = \
  	Makefile genesis.txt.Z revelation.txt.Z
  
+ SHELL		= /bin/sh
+ 
+ all:	dist
+ 
  dist:
  	ln $(DISTFILES) $(distdir)
+ 
+ mostlyclean:
+ 	rm -f *$o _*.c _*.o *._c *._o core core.*
+  
+ clean: mostlyclean
+  
+ distclean: clean
+ 	rm -f Makefile
+  
+ maintainer-clean: distclean
+ 	@echo "This command is intended only for maintainers to use;"
+ 	@echo "rebuilding the deleted files may require special tools."
Only in mg-1.3x/SampleData/bible: Makefile.orig
Only in mg-1.3: config.cache
Only in mg-1.3: config.h
diff -r -c mg-1.3/config.h.in mg-1.3x/config.h.in
*** mg-1.3/config.h.in	Tue Mar 25 18:45:30 1997
--- mg-1.3x/config.h.in	Sat May 17 12:10:54 1997
***************
*** 51,59 ****
  /* If using the C implementation of alloca, define if you know the
     direction of stack growth for your system; otherwise it will be
     automatically deduced at run-time.
! 	STACK_DIRECTION > 0 => grows toward higher addresses
! 	STACK_DIRECTION < 0 => grows toward lower addresses
! 	STACK_DIRECTION = 0 => direction of growth unknown
   */
  #undef STACK_DIRECTION
  
--- 51,59 ----
  /* If using the C implementation of alloca, define if you know the
     direction of stack growth for your system; otherwise it will be
     automatically deduced at run-time.
!  STACK_DIRECTION > 0 => grows toward higher addresses
!  STACK_DIRECTION < 0 => grows toward lower addresses
!  STACK_DIRECTION = 0 => direction of growth unknown
   */
  #undef STACK_DIRECTION
  
***************
*** 66,71 ****
--- 66,75 ----
  /* Define if your <sys/time.h> declares struct tm.  */
  #undef TM_IN_SYS_TIME
  
+ /* Define if your processor stores words with the most significant
+    byte first (like Motorola and SPARC, unlike Intel and VAX).  */
+ #undef WORDS_BIGENDIAN
+ 
  /* Define to the name of the distribution.  */
  #undef PACKAGE
  
***************
*** 98,103 ****
--- 102,110 ----
  /* Define if you have the ftime function.  */
  #undef HAVE_FTIME
  
+ /* Define if you have the ftruncate function.  */
+ #undef HAVE_FTRUNCATE
+ 
  /* Define if you have the getpagesize function.  */
  #undef HAVE_GETPAGESIZE
  
***************
*** 113,120 ****
--- 120,133 ----
  /* Define if you have the setbuffer function.  */
  #undef HAVE_SETBUFFER
  
+ /* Define if you have the strcasecmp function.  */
+ #undef HAVE_STRCASECMP
+ 
  /* Define if you have the strftime function.  */
  #undef HAVE_STRFTIME
+ 
+ /* Define if you have the strstr function.  */
+ #undef HAVE_STRSTR
  
  /* Define if you have the strtol function.  */
  #undef HAVE_STRTOL
Only in mg-1.3x: config.h.in.orig
Only in mg-1.3: config.log
Only in mg-1.3: config.status
diff -r -c mg-1.3/configure mg-1.3x/configure
*** mg-1.3/configure	Tue Mar 25 20:08:56 1997
--- mg-1.3x/configure	Mon May 19 11:19:01 1997
***************
*** 1,8 ****
  #! /bin/sh
  
  # Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.4 
! # Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
  #
  # This configure script is free software; the Free Software Foundation
  # gives unlimited permission to copy, distribute and modify it.
--- 1,8 ----
  #! /bin/sh
  
  # Guess values for system-dependent variables and create Makefiles.
! # Generated automatically using autoconf version 2.12 
! # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  #
  # This configure script is free software; the Free Software Foundation
  # gives unlimited permission to copy, distribute and modify it.
***************
*** 38,46 ****
--- 38,61 ----
  verbose=
  x_includes=NONE
  x_libraries=NONE
+ bindir='${exec_prefix}/bin'
+ sbindir='${exec_prefix}/sbin'
+ libexecdir='${exec_prefix}/libexec'
+ datadir='${prefix}/share'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
+ libdir='${exec_prefix}/lib'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ infodir='${prefix}/info'
+ mandir='${prefix}/man'
  
  # Initialize some other variables.
  subdirs=
+ MFLAGS= MAKEFLAGS=
+ # Maximum number of lines to put in a shell here document.
+ ac_max_here_lines=12
  
  ac_prev=
  for ac_option
***************
*** 62,70 ****
  
    case "$ac_option" in
  
!   -build | --build | --buil | --bui | --bu | --b)
      ac_prev=build ;;
!   -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*)
      build="$ac_optarg" ;;
  
    -cache-file | --cache-file | --cache-fil | --cache-fi \
--- 77,90 ----
  
    case "$ac_option" in
  
!   -bindir | --bindir | --bindi | --bind | --bin | --bi)
!     ac_prev=bindir ;;
!   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
!     bindir="$ac_optarg" ;;
! 
!   -build | --build | --buil | --bui | --bu)
      ac_prev=build ;;
!   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
      build="$ac_optarg" ;;
  
    -cache-file | --cache-file | --cache-fil | --cache-fi \
***************
*** 74,79 ****
--- 94,105 ----
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
      cache_file="$ac_optarg" ;;
  
+   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+     ac_prev=datadir ;;
+   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+   | --da=*)
+     datadir="$ac_optarg" ;;
+ 
    -disable-* | --disable-*)
      ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
      # Reject names that are not valid shell variable names.
***************
*** 124,135 ****
  Directory and file names:
    --prefix=PREFIX         install architecture-independent files in PREFIX
                            [$ac_default_prefix]
!   --exec-prefix=PREFIX    install architecture-dependent files in PREFIX
                            [same as prefix]
    --srcdir=DIR            find the sources in DIR [configure dir or ..]
    --program-prefix=PREFIX prepend PREFIX to installed program names
    --program-suffix=SUFFIX append SUFFIX to installed program names
!   --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  Host type:
    --build=BUILD           configure for building on BUILD [BUILD=HOST]
    --host=HOST             configure for HOST [guessed]
--- 150,178 ----
  Directory and file names:
    --prefix=PREFIX         install architecture-independent files in PREFIX
                            [$ac_default_prefix]
!   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                            [same as prefix]
+   --bindir=DIR            user executables in DIR [EPREFIX/bin]
+   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
+   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
+   --datadir=DIR           read-only architecture-independent data in DIR
+                           [PREFIX/share]
+   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
+                           [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
+   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
+   --includedir=DIR        C header files in DIR [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
+   --infodir=DIR           info documentation in DIR [PREFIX/info]
+   --mandir=DIR            man documentation in DIR [PREFIX/man]
    --srcdir=DIR            find the sources in DIR [configure dir or ..]
    --program-prefix=PREFIX prepend PREFIX to installed program names
    --program-suffix=SUFFIX append SUFFIX to installed program names
!   --program-transform-name=PROGRAM
!                           run sed PROGRAM on installed program names
! EOF
!     cat << EOF
  Host type:
    --build=BUILD           configure for building on BUILD [BUILD=HOST]
    --host=HOST             configure for HOST [guessed]
***************
*** 141,148 ****
    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    --x-includes=DIR        X include files are in DIR
    --x-libraries=DIR       X library files are in DIR
- --enable and --with options recognized:$ac_help
  EOF
      exit 0 ;;
  
    -host | --host | --hos | --ho)
--- 184,193 ----
    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
    --x-includes=DIR        X include files are in DIR
    --x-libraries=DIR       X library files are in DIR
  EOF
+     if test -n "$ac_help"; then
+       echo "--enable and --with options recognized:$ac_help"
+     fi
      exit 0 ;;
  
    -host | --host | --hos | --ho)
***************
*** 150,155 ****
--- 195,238 ----
    -host=* | --host=* | --hos=* | --ho=*)
      host="$ac_optarg" ;;
  
+   -includedir | --includedir | --includedi | --included | --include \
+   | --includ | --inclu | --incl | --inc)
+     ac_prev=includedir ;;
+   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+   | --includ=* | --inclu=* | --incl=* | --inc=*)
+     includedir="$ac_optarg" ;;
+ 
+   -infodir | --infodir | --infodi | --infod | --info | --inf)
+     ac_prev=infodir ;;
+   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+     infodir="$ac_optarg" ;;
+ 
+   -libdir | --libdir | --libdi | --libd)
+     ac_prev=libdir ;;
+   -libdir=* | --libdir=* | --libdi=* | --libd=*)
+     libdir="$ac_optarg" ;;
+ 
+   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+   | --libexe | --libex | --libe)
+     ac_prev=libexecdir ;;
+   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+   | --libexe=* | --libex=* | --libe=*)
+     libexecdir="$ac_optarg" ;;
+ 
+   -localstatedir | --localstatedir | --localstatedi | --localstated \
+   | --localstate | --localstat | --localsta | --localst \
+   | --locals | --local | --loca | --loc | --lo)
+     ac_prev=localstatedir ;;
+   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+     localstatedir="$ac_optarg" ;;
+ 
+   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+     ac_prev=mandir ;;
+   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+     mandir="$ac_optarg" ;;
+ 
    -nfp | --nfp | --nf)
      # Obsolete; use --without-fp.
      with_fp=no ;;
***************
*** 162,167 ****
--- 245,259 ----
    | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
      no_recursion=yes ;;
  
+   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+   | --oldin | --oldi | --old | --ol | --o)
+     ac_prev=oldincludedir ;;
+   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+     oldincludedir="$ac_optarg" ;;
+ 
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
      ac_prev=prefix ;;
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
***************
*** 202,207 ****
--- 294,316 ----
    | -silent | --silent | --silen | --sile | --sil)
      silent=yes ;;
  
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+   | --sbi=* | --sb=*)
+     sbindir="$ac_optarg" ;;
+ 
+   -sharedstatedir | --sharedstatedir | --sharedstatedi \
+   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+   | --sharedst | --shareds | --shared | --share | --shar \
+   | --sha | --sh)
+     ac_prev=sharedstatedir ;;
+   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+   | --sha=* | --sh=*)
+     sharedstatedir="$ac_optarg" ;;
+ 
    -site | --site | --sit)
      ac_prev=site ;;
    -site=* | --site=* | --sit=*)
***************
*** 212,217 ****
--- 321,333 ----
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
      srcdir="$ac_optarg" ;;
  
+   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+   | --syscon | --sysco | --sysc | --sys | --sy)
+     ac_prev=sysconfdir ;;
+   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+     sysconfdir="$ac_optarg" ;;
+ 
    -target | --target | --targe | --targ | --tar | --ta | --t)
      ac_prev=target ;;
    -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
***************
*** 221,227 ****
      verbose=yes ;;
  
    -version | --version | --versio | --versi | --vers)
!     echo "configure generated by autoconf version 2.4"
      exit 0 ;;
  
    -with-* | --with-*)
--- 337,343 ----
      verbose=yes ;;
  
    -version | --version | --versio | --versi | --vers)
!     echo "configure generated by autoconf version 2.12"
      exit 0 ;;
  
    -with-* | --with-*)
***************
*** 267,273 ****
    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
      ;;
  
!   *) 
      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
        echo "configure: warning: $ac_option: invalid host type" 1>&2
      fi
--- 383,389 ----
    -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
      ;;
  
!   *)
      if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
        echo "configure: warning: $ac_option: invalid host type" 1>&2
      fi
***************
*** 323,333 ****
  done
  
  # NLS nuisances.
! # Only set LANG and LC_ALL to C if already set.
! # These must not be set unconditionally because not all systems understand
! # e.g. LANG=C (notably SCO).
! if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  
  # confdefs.h avoids OS command line length limits that DEFS can exceed.
  rm -rf conftest* confdefs.h
--- 439,452 ----
  done
  
  # NLS nuisances.
! # Only set these to C if already set.  These must not be set unconditionally
! # because not all systems understand e.g. LANG=C (notably SCO).
! # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
! # Non-C LC_CTYPE values break the ctype check.
  if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
+ if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+ if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+ if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  
  # confdefs.h avoids OS command line length limits that DEFS can exceed.
  rm -rf conftest* confdefs.h
***************
*** 387,394 ****
  ac_ext=c
  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  ac_cpp='$CPP $CPPFLAGS'
! ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
! ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
  
  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
--- 506,514 ----
  ac_ext=c
  # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  ac_cpp='$CPP $CPPFLAGS'
! ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
! ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
! cross_compiling=$ac_cv_prog_cc_cross
  
  if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
    # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
***************
*** 407,414 ****
  if test "$program_transform_name" = s,x,x,; then
    program_transform_name=
  else
!   # Double any \ or $.
!   echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
    program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
    rm -f conftestsed
  fi
--- 527,536 ----
  if test "$program_transform_name" = s,x,x,; then
    program_transform_name=
  else
!   # Double any \ or $.  echo might interpret backslashes.
!   cat <<\EOF_SED > conftestsed
! s,\\,\\\\,g; s,\$,$$,g
! EOF_SED
    program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
    rm -f conftestsed
  fi
***************
*** 423,429 ****
  
  
  PACKAGE=mg
! VERSION=1.2
  
  cat >> confdefs.h <<EOF
  #define PACKAGE "$PACKAGE"
--- 545,551 ----
  
  
  PACKAGE=mg
! VERSION=1.3x
  
  cat >> confdefs.h <<EOF
  #define PACKAGE "$PACKAGE"
***************
*** 436,446 ****
  
  
  
! for ac_prog in $CCC c++ g++ gcc CC cxx
  do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 558,569 ----
  
  
  
! for ac_prog in $CCC c++ g++ gcc CC cxx cc++
  do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:567: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 470,476 ****
--- 593,645 ----
  test -n "$CXX" || CXX="gcc"
  
  
+ echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
+ echo "configure:598: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
+ 
+ ac_ext=C
+ # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ ac_cpp='$CXXCPP $CPPFLAGS'
+ ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ cross_compiling=$ac_cv_prog_cxx_cross
+ 
+ cat > conftest.$ac_ext <<EOF
+ #line 608 "configure"
+ #include "confdefs.h"
+ main(){return(0);}
+ EOF
+ if { (eval echo configure:612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+   ac_cv_prog_cxx_works=yes
+   # If we can't run a trivial program, we are probably using a cross compiler.
+   if (./conftest; exit) 2>/dev/null; then
+     ac_cv_prog_cxx_cross=no
+   else
+     ac_cv_prog_cxx_cross=yes
+   fi
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   ac_cv_prog_cxx_works=no
+ fi
+ rm -fr conftest*
+ ac_ext=c
+ # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ cross_compiling=$ac_cv_prog_cc_cross
+ 
+ echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
+ if test $ac_cv_prog_cxx_works = no; then
+   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
+ fi
+ echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
+ echo "configure:638: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
+ echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
+ cross_compiling=$ac_cv_prog_cxx_cross
+ 
  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
+ echo "configure:643: checking whether we are using GNU C++" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 479,513 ****
    yes;
  #endif
  EOF
! if ${CXX-g++} -E conftest.C 2>&5 | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gxx=yes
  else
    ac_cv_prog_gxx=no
  fi
  fi
  echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  if test $ac_cv_prog_gxx = yes; then
    GXX=yes
!   if test "${CXXFLAGS+set}" != set; then
!     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    echo 'void f(){}' > conftest.cc
  if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
!   ac_cv_prog_gxx_g=yes
  else
!   ac_cv_prog_gxx_g=no
  fi
  rm -f conftest*
  
  fi
!     echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
!     if test $ac_cv_prog_gxx_g = yes; then
!       CXXFLAGS="-g -O"
!     else
!       CXXFLAGS="-O"
!     fi
    fi
  else
    GXX=
--- 648,689 ----
    yes;
  #endif
  EOF
! if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gxx=yes
  else
    ac_cv_prog_gxx=no
  fi
  fi
+ 
  echo "$ac_t""$ac_cv_prog_gxx" 1>&6
+ 
  if test $ac_cv_prog_gxx = yes; then
    GXX=yes
!   ac_test_CXXFLAGS="${CXXFLAGS+set}"
!   ac_save_CXXFLAGS="$CXXFLAGS"
!   CXXFLAGS=
!   echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
! echo "configure:667: checking whether ${CXX-g++} accepts -g" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    echo 'void f(){}' > conftest.cc
  if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
!   ac_cv_prog_cxx_g=yes
  else
!   ac_cv_prog_cxx_g=no
  fi
  rm -f conftest*
  
  fi
! 
! echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
!   if test "$ac_test_CXXFLAGS" = set; then
!     CXXFLAGS="$ac_save_CXXFLAGS"
!   elif test $ac_cv_prog_cxx_g = yes; then
!     CXXFLAGS="-g -O2"
!   else
!     CXXFLAGS="-O2"
    fi
  else
    GXX=
***************
*** 519,524 ****
--- 695,701 ----
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:699: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 551,556 ****
--- 728,734 ----
  # Extract the first word of "$ac_prog", so it can be a program name with args.
  set dummy $ac_prog; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:732: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 582,587 ****
--- 760,766 ----
  # Extract the first word of "gcc", so it can be a program name with args.
  set dummy gcc; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:764: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 597,603 ****
      fi
    done
    IFS="$ac_save_ifs"
-   test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
  fi
  fi
  CC="$ac_cv_prog_CC"
--- 776,781 ----
***************
*** 607,614 ****
--- 785,882 ----
    echo "$ac_t""no" 1>&6
  fi
  
+ if test -z "$CC"; then
+   # Extract the first word of "cc", so it can be a program name with args.
+ set dummy cc; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:793: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test -n "$CC"; then
+   ac_cv_prog_CC="$CC" # Let the user override the test.
+ else
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
+   ac_prog_rejected=no
+   for ac_dir in $PATH; do
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+         ac_prog_rejected=yes
+ 	continue
+       fi
+       ac_cv_prog_CC="cc"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+ if test $ac_prog_rejected = yes; then
+   # We found a bogon in the path, so make sure we never use it.
+   set dummy $ac_cv_prog_CC
+   shift
+   if test $# -gt 0; then
+     # We chose a different compiler from the bogus one.
+     # However, it has the same basename, so the bogon will be chosen
+     # first if we set CC to just the basename; use the full file name.
+     shift
+     set dummy "$ac_dir/$ac_word" "$@"
+     shift
+     ac_cv_prog_CC="$@"
+   fi
+ fi
+ fi
+ fi
+ CC="$ac_cv_prog_CC"
+ if test -n "$CC"; then
+   echo "$ac_t""$CC" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ fi
+ 
+ echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
+ echo "configure:841: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+ 
+ ac_ext=c
+ # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ cross_compiling=$ac_cv_prog_cc_cross
+ 
+ cat > conftest.$ac_ext <<EOF
+ #line 851 "configure"
+ #include "confdefs.h"
+ main(){return(0);}
+ EOF
+ if { (eval echo configure:855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+   ac_cv_prog_cc_works=yes
+   # If we can't run a trivial program, we are probably using a cross compiler.
+   if (./conftest; exit) 2>/dev/null; then
+     ac_cv_prog_cc_cross=no
+   else
+     ac_cv_prog_cc_cross=yes
+   fi
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   ac_cv_prog_cc_works=no
+ fi
+ rm -fr conftest*
+ 
+ echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ if test $ac_cv_prog_cc_works = no; then
+   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ fi
+ echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
+ echo "configure:875: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+ echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ cross_compiling=$ac_cv_prog_cc_cross
  
  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
+ echo "configure:880: checking whether we are using GNU C" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 617,651 ****
    yes;
  #endif
  EOF
! if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gcc=yes
  else
    ac_cv_prog_gcc=no
  fi
  fi
  echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  if test $ac_cv_prog_gcc = yes; then
    GCC=yes
!   if test "${CFLAGS+set}" != set; then
!     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    echo 'void f(){}' > conftest.c
  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
!   ac_cv_prog_gcc_g=yes
  else
!   ac_cv_prog_gcc_g=no
  fi
  rm -f conftest*
  
  fi
!     echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
!     if test $ac_cv_prog_gcc_g = yes; then
!       CFLAGS="-g -O"
!     else
!       CFLAGS="-O"
!     fi
    fi
  else
    GCC=
--- 885,926 ----
    yes;
  #endif
  EOF
! if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
    ac_cv_prog_gcc=yes
  else
    ac_cv_prog_gcc=no
  fi
  fi
+ 
  echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ 
  if test $ac_cv_prog_gcc = yes; then
    GCC=yes
!   ac_test_CFLAGS="${CFLAGS+set}"
!   ac_save_CFLAGS="$CFLAGS"
!   CFLAGS=
!   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
! echo "configure:904: checking whether ${CC-cc} accepts -g" >&5
! if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    echo 'void f(){}' > conftest.c
  if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
!   ac_cv_prog_cc_g=yes
  else
!   ac_cv_prog_cc_g=no
  fi
  rm -f conftest*
  
  fi
! 
! echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
!   if test "$ac_test_CFLAGS" = set; then
!     CFLAGS="$ac_save_CFLAGS"
!   elif test $ac_cv_prog_cc_g = yes; then
!     CFLAGS="-g -O2"
!   else
!     CFLAGS="-O2"
    fi
  else
    GCC=
***************
*** 682,692 ****
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  if test -z "$INSTALL"; then
  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
!     IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
    for ac_dir in $PATH; do
      # Account for people who put trailing slashes in PATH elements.
      case "$ac_dir/" in
--- 957,968 ----
  # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  # ./install, which can be erroneously created by make from ./install.sh.
  echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
+ echo "configure:961: checking for a BSD compatible install" >&5
  if test -z "$INSTALL"; then
  if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
!     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
    for ac_dir in $PATH; do
      # Account for people who put trailing slashes in PATH elements.
      case "$ac_dir/" in
***************
*** 709,719 ****
        ;;
      esac
    done
!   IFS="$ac_save_ifs"
!   # As a last resort, use the slow shell script.
!   test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
  fi
!   INSTALL="$ac_cv_path_install"
  fi
  echo "$ac_t""$INSTALL" 1>&6
  
--- 985,1002 ----
        ;;
      esac
    done
!   IFS="$ac_save_IFS"
! 
  fi
!   if test "${ac_cv_path_install+set}" = set; then
!     INSTALL="$ac_cv_path_install"
!   else
!     # As a last resort, use the slow shell script.  We don't cache a
!     # path for INSTALL within a source directory, because that will
!     # break other packages using the cache if that directory is
!     # removed, or if the path is relative.
!     INSTALL="$ac_install_sh"
!   fi
  fi
  echo "$ac_t""$INSTALL" 1>&6
  
***************
*** 724,729 ****
--- 1007,1013 ----
  test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  
  echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
+ echo "configure:1011: checking whether ln -s works" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 744,750 ****
  fi
  
  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
! set dummy ${MAKE-make}; ac_make=$2
  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
--- 1028,1035 ----
  fi
  
  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
! echo "configure:1032: checking whether ${MAKE-make} sets \${MAKE}" >&5
! set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 772,777 ****
--- 1057,1063 ----
  # Extract the first word of "ranlib", so it can be a program name with args.
  set dummy ranlib; ac_word=$2
  echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:1061: checking for $ac_word" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 799,804 ****
--- 1085,1091 ----
  
  
  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
+ echo "configure:1089: checking how to run the C preprocessor" >&5
  # On Suns, sometimes $CPP names a directory.
  if test -n "$CPP" && test -d "$CPP"; then
    CPP=
***************
*** 813,843 ****
    # On the NeXT, cc -E runs the code through the compiler's parser,
    # not just through cpp.
    cat > conftest.$ac_ext <<EOF
! #line 817 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    CPP="${CC-cc} -E -traditional-cpp"
    cat > conftest.$ac_ext <<EOF
! #line 831 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    CPP=/lib/cpp
  fi
--- 1100,1136 ----
    # On the NeXT, cc -E runs the code through the compiler's parser,
    # not just through cpp.
    cat > conftest.$ac_ext <<EOF
! #line 1104 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    CPP="${CC-cc} -E -traditional-cpp"
    cat > conftest.$ac_ext <<EOF
! #line 1121 "configure"
  #include "confdefs.h"
  #include <assert.h>
  Syntax Error
  EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    :
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    CPP=/lib/cpp
  fi
***************
*** 853,860 ****
  echo "$ac_t""$CPP" 1>&6
  
  echo $ac_n "checking for AIX""... $ac_c" 1>&6
  cat > conftest.$ac_ext <<EOF
! #line 858 "configure"
  #include "confdefs.h"
  #ifdef _AIX
    yes
--- 1146,1154 ----
  echo "$ac_t""$CPP" 1>&6
  
  echo $ac_n "checking for AIX""... $ac_c" 1>&6
+ echo "configure:1150: checking for AIX" >&5
  cat > conftest.$ac_ext <<EOF
! #line 1152 "configure"
  #include "confdefs.h"
  #ifdef _AIX
    yes
***************
*** 876,881 ****
--- 1170,1176 ----
  
  
  echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
+ echo "configure:1174: checking for POSIXized ISC" >&5
  if test -d /etc/conf/kconfig.d &&
    grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  then
***************
*** 895,917 ****
    ISC=
  fi
  
! ac_safe=`echo "minix/config.h" | tr './\055' '___'`
  echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 905 "configure"
  #include "confdefs.h"
  #include <minix/config.h>
  EOF
! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 1190,1216 ----
    ISC=
  fi
  
! ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
+ echo "configure:1196: checking for minix/config.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1201 "configure"
  #include "confdefs.h"
  #include <minix/config.h>
  EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 941,946 ****
--- 1240,1246 ----
  fi
  
  echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
+ echo "configure:1244: checking for ${CC-cc} option to accept ANSI C" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
***************
*** 956,980 ****
  do
    CFLAGS="$ac_save_CFLAGS $ac_arg"
    cat > conftest.$ac_ext <<EOF
! #line 960 "configure"
  #include "confdefs.h"
  #if !defined(__STDC__) || __STDC__ != 1
  choke me
  #endif	
  
! int main() { return 0; }
! int t() {
  int test (int i, double x);
  struct s1 {int (*f) (int a);};
  struct s2 {int (*f) (double a);};
  ; return 0; }
  EOF
! if eval $ac_compile; then
    rm -rf conftest*
    ac_cv_prog_cc_stdc="$ac_arg"; break
  fi
  rm -f conftest*
- 
  done
  CFLAGS="$ac_save_CFLAGS"
  
--- 1256,1281 ----
  do
    CFLAGS="$ac_save_CFLAGS $ac_arg"
    cat > conftest.$ac_ext <<EOF
! #line 1260 "configure"
  #include "confdefs.h"
  #if !defined(__STDC__) || __STDC__ != 1
  choke me
  #endif	
  
! int main() {
  int test (int i, double x);
  struct s1 {int (*f) (int a);};
  struct s2 {int (*f) (double a);};
  ; return 0; }
  EOF
! if { (eval echo configure:1272: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_prog_cc_stdc="$ac_arg"; break
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
  fi
  rm -f conftest*
  done
  CFLAGS="$ac_save_CFLAGS"
  
***************
*** 988,993 ****
--- 1289,1295 ----
  
  
  echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
+ echo "configure:1293: checking for function prototypes" >&5
  if test "$ac_cv_prog_cc_stdc" != no; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
***************
*** 1000,1015 ****
    U=_ ANSI2KNR=ansi2knr
  fi
  
  echo $ac_n "checking for working const""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1009 "configure"
  #include "confdefs.h"
  
! int main() { return 0; }
! int t() {
  
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2]; const charset x;
--- 1302,1407 ----
    U=_ ANSI2KNR=ansi2knr
  fi
  
+ echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
+ echo "configure:1307: checking whether byte ordering is bigendian" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   ac_cv_c_bigendian=unknown
+ # See if sys/param.h defines the BYTE_ORDER macro.
+ cat > conftest.$ac_ext <<EOF
+ #line 1314 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <sys/param.h>
+ int main() {
+ 
+ #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
+  bogus endian macros
+ #endif
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1325: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   # It does; now see whether it defined to BIG_ENDIAN or not.
+ cat > conftest.$ac_ext <<EOF
+ #line 1329 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #include <sys/param.h>
+ int main() {
+ 
+ #if BYTE_ORDER != BIG_ENDIAN
+  not big endian
+ #endif
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   ac_cv_c_bigendian=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   ac_cv_c_bigendian=no
+ fi
+ rm -f conftest*
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+ fi
+ rm -f conftest*
+ if test $ac_cv_c_bigendian = unknown; then
+ if test "$cross_compiling" = yes; then
+     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1360 "configure"
+ #include "confdefs.h"
+ main () {
+   /* Are we little or big endian?  From Harbison&Steele.  */
+   union
+   {
+     long l;
+     char c[sizeof (long)];
+   } u;
+   u.l = 1;
+   exit (u.c[sizeof (long) - 1] == 1);
+ }
+ EOF
+ if { (eval echo configure:1373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+ then
+   ac_cv_c_bigendian=no
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   ac_cv_c_bigendian=yes
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ fi
+ 
+ echo "$ac_t""$ac_cv_c_bigendian" 1>&6
+ if test $ac_cv_c_bigendian = yes; then
+   cat >> confdefs.h <<\EOF
+ #define WORDS_BIGENDIAN 1
+ EOF
+ 
+ fi
+ 
  echo $ac_n "checking for working const""... $ac_c" 1>&6
+ echo "configure:1397: checking for working const" >&5
  if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1402 "configure"
  #include "confdefs.h"
  
! int main() {
  
  /* Ultrix mips cc rejects this.  */
  typedef int charset[2]; const charset x;
***************
*** 1018,1024 ****
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
! static struct point const zero;
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in an arm
     of an if-expression whose if-part is not a constant expression */
--- 1410,1416 ----
  char **p;
  /* NEC SVR4.0.2 mips cc rejects this.  */
  struct point {int x, y;};
! static struct point const zero = {0,0};
  /* AIX XL C 1.02.0.0 rejects this.
     It does not let you subtract one const X* pointer from another in an arm
     of an if-expression whose if-part is not a constant expression */
***************
*** 1055,1070 ****
  
  ; return 0; }
  EOF
! if eval $ac_compile; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
    rm -rf conftest*
    ac_cv_c_const=no
  fi
  rm -f conftest*
- 
  fi
  echo "$ac_t""$ac_cv_c_const" 1>&6
  if test $ac_cv_c_const = no; then
    cat >> confdefs.h <<\EOF
--- 1447,1464 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:1451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_c_const=yes
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_c_const=no
  fi
  rm -f conftest*
  fi
+ 
  echo "$ac_t""$ac_cv_c_const" 1>&6
  if test $ac_cv_c_const = no; then
    cat >> confdefs.h <<\EOF
***************
*** 1073,1122 ****
  
  fi
  
- # If we cannot run a trivial program, we must be cross compiling.
- echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
- if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
-   echo $ac_n "(cached) $ac_c" 1>&6
- else
-   if test "$cross_compiling" = yes; then
-   ac_cv_c_cross=yes
- else
- cat > conftest.$ac_ext <<EOF
- #line 1086 "configure"
- #include "confdefs.h"
- main(){return(0);}
- EOF
- eval $ac_link
- if test -s conftest && (./conftest; exit) 2>/dev/null; then
-   ac_cv_c_cross=no
- else
-   ac_cv_c_cross=yes
- fi
- fi
- rm -fr conftest*
- fi
- cross_compiling=$ac_cv_c_cross
- echo "$ac_t""$ac_cv_c_cross" 1>&6
- 
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1107 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
  #include <string.h>
  #include <float.h>
  EOF
! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    ac_cv_header_stdc=yes
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    ac_cv_header_stdc=no
  fi
--- 1467,1495 ----
  
  fi
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+ echo "configure:1472: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1477 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
  #include <string.h>
  #include <float.h>
  EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    ac_cv_header_stdc=yes
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_header_stdc=no
  fi
***************
*** 1125,1131 ****
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1129 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
--- 1498,1504 ----
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1502 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
***************
*** 1143,1149 ****
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1147 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
--- 1516,1522 ----
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1520 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
***************
*** 1161,1170 ****
  if test $ac_cv_header_stdc = yes; then
    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
!   ac_cv_header_stdc=no
  else
! cat > conftest.$ac_ext <<EOF
! #line 1168 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
--- 1534,1543 ----
  if test $ac_cv_header_stdc = yes; then
    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
!   :
  else
!   cat > conftest.$ac_ext <<EOF
! #line 1541 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
***************
*** 1175,1190 ****
  exit (0); }
  
  EOF
! eval $ac_link
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
    :
  else
    ac_cv_header_stdc=no
  fi
- fi
  rm -fr conftest*
  fi
  fi
  echo "$ac_t""$ac_cv_header_stdc" 1>&6
  if test $ac_cv_header_stdc = yes; then
    cat >> confdefs.h <<\EOF
--- 1548,1568 ----
  exit (0); }
  
  EOF
! if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
    :
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
    ac_cv_header_stdc=no
  fi
  rm -fr conftest*
  fi
+ 
+ fi
  fi
+ 
  echo "$ac_t""$ac_cv_header_stdc" 1>&6
  if test $ac_cv_header_stdc = yes; then
    cat >> confdefs.h <<\EOF
***************
*** 1194,1212 ****
  fi
  
  echo $ac_n "checking for off_t""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1202 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
  #include <stdlib.h>
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "off_t" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_off_t=yes
  else
--- 1572,1592 ----
  fi
  
  echo $ac_n "checking for off_t""... $ac_c" 1>&6
+ echo "configure:1576: checking for off_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1581 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
  #include <stdlib.h>
+ #include <stddef.h>
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_off_t=yes
  else
***************
*** 1225,1243 ****
  fi
  
  echo $ac_n "checking for size_t""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1233 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
  #include <stdlib.h>
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "size_t" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_size_t=yes
  else
--- 1605,1625 ----
  fi
  
  echo $ac_n "checking for size_t""... $ac_c" 1>&6
+ echo "configure:1609: checking for size_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1614 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #if STDC_HEADERS
  #include <stdlib.h>
+ #include <stddef.h>
  #endif
  EOF
  if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
!   egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
    rm -rf conftest*
    ac_cv_type_size_t=yes
  else
***************
*** 1256,1285 ****
  fi
  
  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1264 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/time.h>
  #include <time.h>
! int main() { return 0; }
! int t() {
  struct tm *tp;
  ; return 0; }
  EOF
! if eval $ac_compile; then
    rm -rf conftest*
    ac_cv_header_time=yes
  else
    rm -rf conftest*
    ac_cv_header_time=no
  fi
  rm -f conftest*
- 
  fi
  echo "$ac_t""$ac_cv_header_time" 1>&6
  if test $ac_cv_header_time = yes; then
    cat >> confdefs.h <<\EOF
--- 1638,1669 ----
  fi
  
  echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
+ echo "configure:1642: checking whether time.h and sys/time.h may both be included" >&5
  if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1647 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <sys/time.h>
  #include <time.h>
! int main() {
  struct tm *tp;
  ; return 0; }
  EOF
! if { (eval echo configure:1656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_header_time=yes
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_header_time=no
  fi
  rm -f conftest*
  fi
+ 
  echo "$ac_t""$ac_cv_header_time" 1>&6
  if test $ac_cv_header_time = yes; then
    cat >> confdefs.h <<\EOF
***************
*** 1289,1317 ****
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1297 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
! int main() { return 0; }
! int t() {
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
! if eval $ac_compile; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
    rm -rf conftest*
    ac_cv_struct_tm=sys/time.h
  fi
  rm -f conftest*
- 
  fi
  echo "$ac_t""$ac_cv_struct_tm" 1>&6
  if test $ac_cv_struct_tm = sys/time.h; then
    cat >> confdefs.h <<\EOF
--- 1673,1703 ----
  fi
  
  echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
+ echo "configure:1677: checking whether struct tm is in sys/time.h or time.h" >&5
  if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1682 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <time.h>
! int main() {
  struct tm *tp; tp->tm_sec;
  ; return 0; }
  EOF
! if { (eval echo configure:1690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_struct_tm=time.h
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_struct_tm=sys/time.h
  fi
  rm -f conftest*
  fi
+ 
  echo "$ac_t""$ac_cv_struct_tm" 1>&6
  if test $ac_cv_struct_tm = sys/time.h; then
    cat >> confdefs.h <<\EOF
***************
*** 1323,1377 ****
  
  if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
  cat > conftest.$ac_ext <<EOF
! #line 1327 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  
! int main() { return 0; }
! int t() {
   FILE *rubbish = popen("yes", "r"); 
  ; return 0; }
  EOF
! if eval $ac_compile; then
    :
  else
    rm -rf conftest*
    CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
  fi
  rm -f conftest*
- 
  fi
  
  
! echo $ac_n "checking for -lm""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lm  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1354 "configure"
  #include "confdefs.h"
  
! int main() { return 0; }
! int t() {
  main()
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
!   eval "ac_cv_lib_m=yes"
  else
    rm -rf conftest*
!   eval "ac_cv_lib_m=no"
  fi
  rm -f conftest*
  LIBS="$ac_save_LIBS"
  
  fi
! if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_lib 1
  EOF
--- 1709,1767 ----
  
  if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
  cat > conftest.$ac_ext <<EOF
! #line 1713 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  
! int main() {
   FILE *rubbish = popen("yes", "r"); 
  ; return 0; }
  EOF
! if { (eval echo configure:1721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    :
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    CC="`echo $CC | sed 's/-Xc/-Xa/'`"    ac_cv_prog_cc_stdc='-Xa'
  fi
  rm -f conftest*
  fi
  
  
! echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
! echo "configure:1734: checking for main in -lm" >&5
! ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lm  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1742 "configure"
  #include "confdefs.h"
  
! int main() {
  main()
  ; return 0; }
  EOF
! if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=no"
  fi
  rm -f conftest*
  LIBS="$ac_save_LIBS"
  
  fi
! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
!     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_lib 1
  EOF
***************
*** 1386,1419 ****
  ac_header_dirent=no
  for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  do
! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1396 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_hdr>
! int main() { return 0; }
! int t() {
  DIR *dirp = 0;
  ; return 0; }
  EOF
! if eval $ac_compile; then
    rm -rf conftest*
    eval "ac_cv_header_dirent_$ac_safe=yes"
  else
    rm -rf conftest*
    eval "ac_cv_header_dirent_$ac_safe=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
--- 1776,1810 ----
  ac_header_dirent=no
  for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
+ echo "configure:1782: checking for $ac_hdr that defines DIR" >&5
  if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1787 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <$ac_hdr>
! int main() {
  DIR *dirp = 0;
  ; return 0; }
  EOF
! if { (eval echo configure:1795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    eval "ac_cv_header_dirent_$ac_safe=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_dirent_$ac_safe=no"
  fi
  rm -f conftest*
  fi
  if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
***************
*** 1424,1456 ****
  done
  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  if test $ac_header_dirent = dirent.h; then
! echo $ac_n "checking for -ldir""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-ldir  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1435 "configure"
  #include "confdefs.h"
  
! int main() { return 0; }
! int t() {
  opendir()
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
!   eval "ac_cv_lib_dir=yes"
  else
    rm -rf conftest*
!   eval "ac_cv_lib_dir=no"
  fi
  rm -f conftest*
  LIBS="$ac_save_LIBS"
  
  fi
! if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    LIBS="$LIBS -ldir"
  else
--- 1815,1854 ----
  done
  # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  if test $ac_header_dirent = dirent.h; then
! echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
! echo "configure:1820: checking for opendir in -ldir" >&5
! ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-ldir  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1828 "configure"
  #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error.  */
+ /* We use char because int might match the return type of a gcc2
+     builtin and then its argument prototype would still apply.  */
+ char opendir();
  
! int main() {
  opendir()
  ; return 0; }
  EOF
! if { (eval echo configure:1839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=no"
  fi
  rm -f conftest*
  LIBS="$ac_save_LIBS"
  
  fi
! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    LIBS="$LIBS -ldir"
  else
***************
*** 1458,1490 ****
  fi
  
  else
! echo $ac_n "checking for -lx""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lx  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1469 "configure"
  #include "confdefs.h"
  
! int main() { return 0; }
! int t() {
  opendir()
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
!   eval "ac_cv_lib_x=yes"
  else
    rm -rf conftest*
!   eval "ac_cv_lib_x=no"
  fi
  rm -f conftest*
  LIBS="$ac_save_LIBS"
  
  fi
! if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    LIBS="$LIBS -lx"
  else
--- 1856,1895 ----
  fi
  
  else
! echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
! echo "configure:1861: checking for opendir in -lx" >&5
! ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
! if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    ac_save_LIBS="$LIBS"
  LIBS="-lx  $LIBS"
  cat > conftest.$ac_ext <<EOF
! #line 1869 "configure"
  #include "confdefs.h"
+ /* Override any gcc2 internal prototype to avoid an error.  */
+ /* We use char because int might match the return type of a gcc2
+     builtin and then its argument prototype would still apply.  */
+ char opendir();
  
! int main() {
  opendir()
  ; return 0; }
  EOF
! if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
!   eval "ac_cv_lib_$ac_lib_var=no"
  fi
  rm -f conftest*
  LIBS="$ac_save_LIBS"
  
  fi
! if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    LIBS="$LIBS -lx"
  else
***************
*** 1494,1517 ****
  fi
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1502 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
  #include <string.h>
  #include <float.h>
  EOF
! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    ac_cv_header_stdc=yes
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    ac_cv_header_stdc=no
  fi
--- 1899,1926 ----
  fi
  
  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+ echo "configure:1903: checking for ANSI C header files" >&5
  if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1908 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  #include <stdarg.h>
  #include <string.h>
  #include <float.h>
  EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    ac_cv_header_stdc=yes
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_header_stdc=no
  fi
***************
*** 1520,1526 ****
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1524 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
--- 1929,1935 ----
  if test $ac_cv_header_stdc = yes; then
    # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1933 "configure"
  #include "confdefs.h"
  #include <string.h>
  EOF
***************
*** 1538,1544 ****
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1542 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
--- 1947,1953 ----
  if test $ac_cv_header_stdc = yes; then
    # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  cat > conftest.$ac_ext <<EOF
! #line 1951 "configure"
  #include "confdefs.h"
  #include <stdlib.h>
  EOF
***************
*** 1556,1565 ****
  if test $ac_cv_header_stdc = yes; then
    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
!   ac_cv_header_stdc=no
  else
! cat > conftest.$ac_ext <<EOF
! #line 1563 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
--- 1965,1974 ----
  if test $ac_cv_header_stdc = yes; then
    # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  if test "$cross_compiling" = yes; then
!   :
  else
!   cat > conftest.$ac_ext <<EOF
! #line 1972 "configure"
  #include "confdefs.h"
  #include <ctype.h>
  #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
***************
*** 1570,1585 ****
  exit (0); }
  
  EOF
! eval $ac_link
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
    :
  else
    ac_cv_header_stdc=no
  fi
- fi
  rm -fr conftest*
  fi
  fi
  echo "$ac_t""$ac_cv_header_stdc" 1>&6
  if test $ac_cv_header_stdc = yes; then
    cat >> confdefs.h <<\EOF
--- 1979,1999 ----
  exit (0); }
  
  EOF
! if { (eval echo configure:1983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
    :
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
    ac_cv_header_stdc=no
  fi
  rm -fr conftest*
  fi
+ 
+ fi
  fi
+ 
  echo "$ac_t""$ac_cv_header_stdc" 1>&6
  if test $ac_cv_header_stdc = yes; then
    cat >> confdefs.h <<\EOF
***************
*** 1590,1612 ****
  
  for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
  do
! ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1600 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
! eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
--- 2004,2030 ----
  
  for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
  do
! ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:2010: checking for $ac_hdr" >&5
  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2015 "configure"
  #include "confdefs.h"
  #include <$ac_hdr>
  EOF
! ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! { (eval echo configure:2020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  ac_err=`grep -v '^ *+' conftest.out`
  if test -z "$ac_err"; then
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=yes"
  else
    echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_header_$ac_safe=no"
  fi
***************
*** 1614,1620 ****
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
--- 2032,2038 ----
  fi
  if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_hdr 1
  EOF
***************
*** 1625,1631 ****
  done
  
  cat > conftest.$ac_ext <<EOF
! #line 1629 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  EOF
--- 2043,2049 ----
  done
  
  cat > conftest.$ac_ext <<EOF
! #line 2047 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  EOF
***************
*** 1640,1646 ****
  rm -f conftest*
  
  cat > conftest.$ac_ext <<EOF
! #line 1644 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  EOF
--- 2058,2064 ----
  rm -f conftest*
  
  cat > conftest.$ac_ext <<EOF
! #line 2062 "configure"
  #include "confdefs.h"
  #include <stdio.h>
  EOF
***************
*** 1655,1661 ****
  rm -f conftest*
  
  cat > conftest.$ac_ext <<EOF
! #line 1659 "configure"
  #include "confdefs.h"
  #include <sys/procfs.h>
  EOF
--- 2073,2079 ----
  rm -f conftest*
  
  cat > conftest.$ac_ext <<EOF
! #line 2077 "configure"
  #include "confdefs.h"
  #include <sys/procfs.h>
  EOF
***************
*** 1673,1700 ****
  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  # for constant arguments.  Useless!
  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1681 "configure"
  #include "confdefs.h"
  #include <alloca.h>
! int main() { return 0; }
! int t() {
  char *p = alloca(2 * sizeof(int));
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
    ac_cv_header_alloca_h=yes
  else
    rm -rf conftest*
    ac_cv_header_alloca_h=no
  fi
  rm -f conftest*
- 
  fi
  echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  if test $ac_cv_header_alloca_h = yes; then
    cat >> confdefs.h <<\EOF
--- 2091,2120 ----
  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  # for constant arguments.  Useless!
  echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
+ echo "configure:2095: checking for working alloca.h" >&5
  if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2100 "configure"
  #include "confdefs.h"
  #include <alloca.h>
! int main() {
  char *p = alloca(2 * sizeof(int));
  ; return 0; }
  EOF
! if { (eval echo configure:2107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    ac_cv_header_alloca_h=yes
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_header_alloca_h=no
  fi
  rm -f conftest*
  fi
+ 
  echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  if test $ac_cv_header_alloca_h = yes; then
    cat >> confdefs.h <<\EOF
***************
*** 1704,1714 ****
  fi
  
  echo $ac_n "checking for alloca""... $ac_c" 1>&6
! if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1712 "configure"
  #include "confdefs.h"
  
  #ifdef __GNUC__
--- 2124,2135 ----
  fi
  
  echo $ac_n "checking for alloca""... $ac_c" 1>&6
! echo "configure:2128: checking for alloca" >&5
! if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2133 "configure"
  #include "confdefs.h"
  
  #ifdef __GNUC__
***************
*** 1727,1756 ****
  # endif
  #endif
  
! int main() { return 0; }
! int t() {
  char *p = (char *) alloca(1);
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
!   ac_cv_func_alloca=yes
  else
    rm -rf conftest*
!   ac_cv_func_alloca=no
  fi
  rm -f conftest*
- 
  fi
! echo "$ac_t""$ac_cv_func_alloca" 1>&6
! if test $ac_cv_func_alloca = yes; then
    cat >> confdefs.h <<\EOF
  #define HAVE_ALLOCA 1
  EOF
  
  fi
  
! if test $ac_cv_func_alloca = no; then
    # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    # that cause trouble.  Some versions do not even contain alloca or
    # contain a buggy version.  If you still want to use their alloca,
--- 2148,2178 ----
  # endif
  #endif
  
! int main() {
  char *p = (char *) alloca(1);
  ; return 0; }
  EOF
! if { (eval echo configure:2156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
!   ac_cv_func_alloca_works=yes
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
!   ac_cv_func_alloca_works=no
  fi
  rm -f conftest*
  fi
! 
! echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
! if test $ac_cv_func_alloca_works = yes; then
    cat >> confdefs.h <<\EOF
  #define HAVE_ALLOCA 1
  EOF
  
  fi
  
! if test $ac_cv_func_alloca_works = no; then
    # The SVR3 libPW and SVR4 libucb both contain incompatible functions
    # that cause trouble.  Some versions do not even contain alloca or
    # contain a buggy version.  If you still want to use their alloca,
***************
*** 1762,1772 ****
  
  
  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1770 "configure"
  #include "confdefs.h"
  #if defined(CRAY) && ! defined(CRAY2)
  webecray
--- 2184,2195 ----
  
  
  echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
+ echo "configure:2188: checking whether alloca needs Cray hooks" >&5
  if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2193 "configure"
  #include "confdefs.h"
  #if defined(CRAY) && ! defined(CRAY2)
  webecray
***************
*** 1786,1809 ****
  rm -f conftest*
  
  fi
  echo "$ac_t""$ac_cv_os_cray" 1>&6
  if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1798 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! char $ac_func(); 
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2209,2235 ----
  rm -f conftest*
  
  fi
+ 
  echo "$ac_t""$ac_cv_os_cray" 1>&6
  if test $ac_cv_os_cray = yes; then
  for ac_func in _getb67 GETB67 getb67; do
    echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2218: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2223 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 1816,1831 ****
  
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<EOF
--- 2242,2259 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<EOF
***************
*** 1841,1854 ****
  fi
  
  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test "$cross_compiling" = yes; then
    ac_cv_c_stack_direction=0
  else
! cat > conftest.$ac_ext <<EOF
! #line 1852 "configure"
  #include "confdefs.h"
  find_stack_direction ()
  {
--- 2269,2283 ----
  fi
  
  echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
+ echo "configure:2273: checking stack direction for C alloca" >&5
  if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    if test "$cross_compiling" = yes; then
    ac_cv_c_stack_direction=0
  else
!   cat > conftest.$ac_ext <<EOF
! #line 2281 "configure"
  #include "confdefs.h"
  find_stack_direction ()
  {
***************
*** 1867,1881 ****
    exit (find_stack_direction() < 0);
  }
  EOF
! eval $ac_link
! if test -s conftest && (./conftest; exit) 2>/dev/null; then
    ac_cv_c_stack_direction=1
  else
    ac_cv_c_stack_direction=-1
  fi
- fi
  rm -fr conftest*
  fi
  echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  cat >> confdefs.h <<EOF
  #define STACK_DIRECTION $ac_cv_c_stack_direction
--- 2296,2315 ----
    exit (find_stack_direction() < 0);
  }
  EOF
! if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! then
    ac_cv_c_stack_direction=1
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
    ac_cv_c_stack_direction=-1
  fi
  rm -fr conftest*
  fi
+ 
+ fi
+ 
  echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  cat >> confdefs.h <<EOF
  #define STACK_DIRECTION $ac_cv_c_stack_direction
***************
*** 1884,1896 ****
  fi
  
  if test $ac_cv_prog_gcc = yes; then
!   echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
      ac_pattern="Autoconf.*'x'"
    cat > conftest.$ac_ext <<EOF
! #line 1894 "configure"
  #include "confdefs.h"
  #include <sgtty.h>
  Autoconf TIOCGETP
--- 2318,2331 ----
  fi
  
  if test $ac_cv_prog_gcc = yes; then
!     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
! echo "configure:2323: checking whether ${CC-cc} needs -traditional" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
      ac_pattern="Autoconf.*'x'"
    cat > conftest.$ac_ext <<EOF
! #line 2329 "configure"
  #include "confdefs.h"
  #include <sgtty.h>
  Autoconf TIOCGETP
***************
*** 1908,1914 ****
  
    if test $ac_cv_prog_gcc_traditional = no; then
      cat > conftest.$ac_ext <<EOF
! #line 1912 "configure"
  #include "confdefs.h"
  #include <termio.h>
  Autoconf TCGETA
--- 2343,2349 ----
  
    if test $ac_cv_prog_gcc_traditional = no; then
      cat > conftest.$ac_ext <<EOF
! #line 2347 "configure"
  #include "confdefs.h"
  #include <termio.h>
  Autoconf TCGETA
***************
*** 1922,1939 ****
  
    fi
  fi
!   echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
    if test $ac_cv_prog_gcc_traditional = yes; then
      CC="$CC -traditional"
    fi
  fi
  
  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1937 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
--- 2357,2376 ----
  
    fi
  fi
! 
! echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
    if test $ac_cv_prog_gcc_traditional = yes; then
      CC="$CC -traditional"
    fi
  fi
  
  echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
+ echo "configure:2369: checking return type of signal handlers" >&5
  if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2374 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
  #include <signal.h>
***************
*** 1941,1964 ****
  #undef signal
  #endif
  #ifdef __cplusplus
! extern "C"
! #endif
  void (*signal ()) ();
! int main() { return 0; }
! int t() {
  int i;
  ; return 0; }
  EOF
! if eval $ac_compile; then
    rm -rf conftest*
    ac_cv_type_signal=void
  else
    rm -rf conftest*
    ac_cv_type_signal=int
  fi
  rm -f conftest*
- 
  fi
  echo "$ac_t""$ac_cv_type_signal" 1>&6
  cat >> confdefs.h <<EOF
  #define RETSIGTYPE $ac_cv_type_signal
--- 2378,2404 ----
  #undef signal
  #endif
  #ifdef __cplusplus
! extern "C" void (*signal (int, void (*)(int)))(int);
! #else
  void (*signal ()) ();
! #endif
! 
! int main() {
  int i;
  ; return 0; }
  EOF
! if { (eval echo configure:2391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
    rm -rf conftest*
    ac_cv_type_signal=void
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    ac_cv_type_signal=int
  fi
  rm -f conftest*
  fi
+ 
  echo "$ac_t""$ac_cv_type_signal" 1>&6
  cat >> confdefs.h <<EOF
  #define RETSIGTYPE $ac_cv_type_signal
***************
*** 1966,1985 ****
  
  
  echo $ac_n "checking for vprintf""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 1974 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char vprintf(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! char vprintf(); 
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2406,2427 ----
  
  
  echo $ac_n "checking for vprintf""... $ac_c" 1>&6
+ echo "configure:2410: checking for vprintf" >&5
  if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2415 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char vprintf(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char vprintf();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 1992,2007 ****
  
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
    eval "ac_cv_func_vprintf=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_vprintf=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
--- 2434,2451 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_vprintf=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_vprintf=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
***************
*** 2014,2033 ****
  
  if test "$ac_cv_func_vprintf" != yes; then
  echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2022 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char _doprnt(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! char _doprnt(); 
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2458,2479 ----
  
  if test "$ac_cv_func_vprintf" != yes; then
  echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
+ echo "configure:2462: checking for _doprnt" >&5
  if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2467 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char _doprnt(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char _doprnt();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2040,2055 ****
  
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
    eval "ac_cv_func__doprnt=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func__doprnt=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
--- 2486,2503 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func__doprnt=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func__doprnt=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
***************
*** 2065,2084 ****
  for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2073 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! char $ac_func(); 
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2513,2534 ----
  for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2517: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2522 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2091,2109 ****
  
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_func 1
  EOF
--- 2541,2561 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_func 1
  EOF
***************
*** 2116,2135 ****
  for ac_func in ftruncate strstr strcasecmp
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2124 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! char $ac_func(); 
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2568,2589 ----
  for ac_func in ftruncate strstr strcasecmp
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2572: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2577 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2142,2165 ****
  
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!   :
  else
    echo "$ac_t""no" 1>&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
  fi
- 
  done
  
  
--- 2596,2624 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
!   cat >> confdefs.h <<EOF
! #define $ac_tr_func 1
! EOF
!  
  else
    echo "$ac_t""no" 1>&6
  LIBOBJS="$LIBOBJS ${ac_func}.o"
  fi
  done
  
  
***************
*** 2167,2172 ****
--- 2626,2632 ----
  # *** Custom checking (based on GNU tar configure.in) ***
  # ---------------------------------------------------------------------------
  echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
+ echo "configure:2630: checking for HP-UX needing gmalloc" >&5
  if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
    echo "$ac_t""yes" 1>&6
    LIBOBJS="$LIBOBJS gmalloc.o"
***************
*** 2179,2198 ****
    for ac_func in valloc
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2187 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! char $ac_func(); 
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2639,2660 ----
    for ac_func in valloc
  do
  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2643: checking for $ac_func" >&5
  if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2648 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char $ac_func(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char $ac_func();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2205,2223 ****
  
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_func 1
  EOF
--- 2667,2687 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_$ac_func=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
    echo "$ac_t""yes" 1>&6
!     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
    cat >> confdefs.h <<EOF
  #define $ac_tr_func 1
  EOF
***************
*** 2230,2238 ****
  fi
  
  echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
  # Check whether --with-dmalloc or --without-dmalloc was given.
! withval="$with_dmalloc"
! if test -n "$withval"; then
    if test "$withval" = yes; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
--- 2694,2703 ----
  fi
  
  echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
+ echo "configure:2698: checking if malloc debugging is wanted" >&5
  # Check whether --with-dmalloc or --without-dmalloc was given.
! if test "${with_dmalloc+set}" = set; then
!   withval="$with_dmalloc"
    if test "$withval" = yes; then
    echo "$ac_t""yes" 1>&6
    cat >> confdefs.h <<\EOF
***************
*** 2250,2258 ****
  
  
  echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
  # Check whether --with-regex or --without-regex was given.
! withval="$with_regex"
! if test -n "$withval"; then
    if test "$withval" = yes; then
    ac_with_regex=1
    echo "$ac_t""regex" 1>&6
--- 2715,2724 ----
  
  
  echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
+ echo "configure:2719: checking which of rx or regex is wanted" >&5
  # Check whether --with-regex or --without-regex was given.
! if test "${with_regex+set}" = set; then
!   withval="$with_regex"
    if test "$withval" = yes; then
    ac_with_regex=1
    echo "$ac_t""regex" 1>&6
***************
*** 2267,2286 ****
  if test -z "$ac_with_regex"; then
    echo "$ac_t""rx" 1>&6
    echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
  if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2275 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char re_rx_search(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! char re_rx_search(); 
  
! int main() { return 0; }
! int t() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
--- 2733,2754 ----
  if test -z "$ac_with_regex"; then
    echo "$ac_t""rx" 1>&6
    echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
+ echo "configure:2737: checking for re_rx_search" >&5
  if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 2742 "configure"
  #include "confdefs.h"
  /* System header to define __stub macros and hopefully few prototypes,
      which can conflict with char re_rx_search(); below.  */
  #include <assert.h>
  /* Override any gcc2 internal prototype to avoid an error.  */
! /* We use char because int might match the return type of a gcc2
!     builtin and then its argument prototype would still apply.  */
! char re_rx_search();
  
! int main() {
  
  /* The GNU C library defines this for functions which it implements
      to always fail with ENOSYS.  Some functions are actually named
***************
*** 2293,2308 ****
  
  ; return 0; }
  EOF
! if eval $ac_link; then
    rm -rf conftest*
    eval "ac_cv_func_re_rx_search=yes"
  else
    rm -rf conftest*
    eval "ac_cv_func_re_rx_search=no"
  fi
  rm -f conftest*
- 
  fi
  if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
--- 2761,2778 ----
  
  ; return 0; }
  EOF
! if { (eval echo configure:2765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
    rm -rf conftest*
    eval "ac_cv_func_re_rx_search=yes"
  else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
    rm -rf conftest*
    eval "ac_cv_func_re_rx_search=no"
  fi
  rm -f conftest*
  fi
+ 
  if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
    echo "$ac_t""yes" 1>&6
    :
***************
*** 2339,2349 ****
  # --recheck option to rerun configure.
  #
  EOF
  # Ultrix sh set writes to stderr and can't be redirected directly,
  # and sets the high bit in the cache file unless we assign to the vars.
  (set) 2>&1 |
!   sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
!   >> confcache
  if cmp -s $cache_file confcache; then
    :
  else
--- 2809,2833 ----
  # --recheck option to rerun configure.
  #
  EOF
+ # The following way of writing the cache mishandles newlines in values,
+ # but we know of no workaround that is simple, portable, and efficient.
+ # So, don't put newlines in cache variables' values.
  # Ultrix sh set writes to stderr and can't be redirected directly,
  # and sets the high bit in the cache file unless we assign to the vars.
  (set) 2>&1 |
!   case `(ac_space=' '; set) 2>&1` in
!   *ac_space=\ *)
!     # `set' does not quote correctly, so add quotes (double-quote substitution
!     # turns \\\\ into \\, and sed turns \\ into \).
!     sed -n \
!       -e "s/'/'\\\\''/g" \
!       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
!     ;;
!   *)
!     # `set' quotes correctly as required by POSIX, so do not add quotes.
!     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
!     ;;
!   esac >> confcache
  if cmp -s $cache_file confcache; then
    :
  else
***************
*** 2398,2404 ****
      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
!     echo "$CONFIG_STATUS generated by autoconf version 2.4"
      exit 0 ;;
    -help | --help | --hel | --he | --h)
      echo "\$ac_cs_usage"; exit 0 ;;
--- 2882,2888 ----
      echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
      exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
    -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
!     echo "$CONFIG_STATUS generated by autoconf version 2.12"
      exit 0 ;;
    -help | --help | --hel | --he | --h)
      echo "\$ac_cs_usage"; exit 0 ;;
***************
*** 2411,2420 ****
  
  trap 'rm -fr `echo "Makefile src/text/Makefile src/images/Makefile 
            src/scripts/Makefile lib/Makefile  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  
! # Protect against being on the right side of a sed subst in config.status. 
! sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 
!  s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
  $ac_vpsub
  $extrasub
  s%@CFLAGS@%$CFLAGS%g
--- 2895,2906 ----
  
  trap 'rm -fr `echo "Makefile src/text/Makefile src/images/Makefile 
            src/scripts/Makefile lib/Makefile  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+ EOF
+ cat >> $CONFIG_STATUS <<EOF
  
! # Protect against being on the right side of a sed subst in config.status.
! sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
!  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  $ac_vpsub
  $extrasub
  s%@CFLAGS@%$CFLAGS%g
***************
*** 2426,2431 ****
--- 2912,2929 ----
  s%@exec_prefix@%$exec_prefix%g
  s%@prefix@%$prefix%g
  s%@program_transform_name@%$program_transform_name%g
+ s%@bindir@%$bindir%g
+ s%@sbindir@%$sbindir%g
+ s%@libexecdir@%$libexecdir%g
+ s%@datadir@%$datadir%g
+ s%@sysconfdir@%$sysconfdir%g
+ s%@sharedstatedir@%$sharedstatedir%g
+ s%@localstatedir@%$localstatedir%g
+ s%@libdir@%$libdir%g
+ s%@includedir@%$includedir%g
+ s%@oldincludedir@%$oldincludedir%g
+ s%@infodir@%$infodir%g
+ s%@mandir@%$mandir%g
  s%@PACKAGE@%$PACKAGE%g
  s%@VERSION@%$VERSION%g
  s%@CXX@%$CXX%g
***************
*** 2445,2450 ****
--- 2943,2984 ----
  
  CEOF
  EOF
+ 
+ cat >> $CONFIG_STATUS <<\EOF
+ 
+ # Split the substitutions into bite-sized pieces for seds with
+ # small command number limits, like on Digital OSF/1 and HP-UX.
+ ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
+ ac_file=1 # Number of current file.
+ ac_beg=1 # First line for current file.
+ ac_end=$ac_max_sed_cmds # Line after last line for current file.
+ ac_more_lines=:
+ ac_sed_cmds=""
+ while $ac_more_lines; do
+   if test $ac_beg -gt 1; then
+     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
+   else
+     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
+   fi
+   if test ! -s conftest.s$ac_file; then
+     ac_more_lines=false
+     rm -f conftest.s$ac_file
+   else
+     if test -z "$ac_sed_cmds"; then
+       ac_sed_cmds="sed -f conftest.s$ac_file"
+     else
+       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
+     fi
+     ac_file=`expr $ac_file + 1`
+     ac_beg=$ac_end
+     ac_end=`expr $ac_end + $ac_max_sed_cmds`
+   fi
+ done
+ if test -z "$ac_sed_cmds"; then
+   ac_sed_cmds=cat
+ fi
+ EOF
+ 
  cat >> $CONFIG_STATUS <<EOF
  
  CONFIG_FILES=\${CONFIG_FILES-"Makefile src/text/Makefile src/images/Makefile 
***************
*** 2452,2465 ****
  EOF
  cat >> $CONFIG_STATUS <<\EOF
  for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
!   # Support "outfile[:infile]", defaulting infile="outfile.in".
    case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    *) ac_file_in="${ac_file}.in" ;;
    esac
  
!   # Adjust relative srcdir, etc. for subdirectories.
  
    # Remove last slash and all that follows it.  Not all systems have dirname.
    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
--- 2986,2999 ----
  EOF
  cat >> $CONFIG_STATUS <<\EOF
  for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
!   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    *) ac_file_in="${ac_file}.in" ;;
    esac
  
!   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  
    # Remove last slash and all that follows it.  Not all systems have dirname.
    ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
***************
*** 2487,2492 ****
--- 3021,3027 ----
    [/$]*) INSTALL="$ac_given_INSTALL" ;;
    *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
    esac
+ 
    echo creating "$ac_file"
    rm -f "$ac_file"
    configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
***************
*** 2495,2508 ****
  # $configure_input" ;;
    *) ac_comsub= ;;
    esac
    sed -e "$ac_comsub
  s%@configure_input@%$configure_input%g
  s%@srcdir@%$srcdir%g
  s%@top_srcdir@%$top_srcdir%g
  s%@INSTALL@%$INSTALL%g
! " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
  fi; done
! rm -f conftest.subs
  
  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  # NAME is the cpp macro being defined and VALUE is the value it is being given.
--- 3030,3045 ----
  # $configure_input" ;;
    *) ac_comsub= ;;
    esac
+ 
+   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
    sed -e "$ac_comsub
  s%@configure_input@%$configure_input%g
  s%@srcdir@%$srcdir%g
  s%@top_srcdir@%$top_srcdir%g
  s%@INSTALL@%$INSTALL%g
! " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  fi; done
! rm -f conftest.s*
  
  # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  # NAME is the cpp macro being defined and VALUE is the value it is being given.
***************
*** 2523,2533 ****
  ac_eC=' '
  ac_eD='%g'
  
! CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
  for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
!   # Support "outfile[:infile]", defaulting infile="outfile.in".
    case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    *) ac_file_in="${ac_file}.in" ;;
    esac
--- 3060,3076 ----
  ac_eC=' '
  ac_eD='%g'
  
! if test "${CONFIG_HEADERS+set}" != set; then
! EOF
! cat >> $CONFIG_STATUS <<EOF
!   CONFIG_HEADERS="config.h"
! EOF
! cat >> $CONFIG_STATUS <<\EOF
! fi
  for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
!   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
    case "$ac_file" in
!   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
         ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
    *) ac_file_in="${ac_file}.in" ;;
    esac
***************
*** 2535,2553 ****
    echo creating $ac_file
  
    rm -f conftest.frag conftest.in conftest.out
!   cp $ac_given_srcdir/$ac_file_in conftest.in
  
  EOF
  
  # Transform confdefs.h into a sed script conftest.vals that substitutes
  # the proper values into config.h.in to produce config.h.  And first:
! # Protect against being on the right side of a sed subst in config.status. 
  # Protect against being in an unquoted here document in config.status.
  rm -f conftest.vals
  cat > conftest.hdr <<\EOF
  s/[\\&%]/\\&/g
  s%[\\$`]%\\&%g
! s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  s%ac_d%ac_u%gp
  s%ac_u%ac_e%gp
  EOF
--- 3078,3097 ----
    echo creating $ac_file
  
    rm -f conftest.frag conftest.in conftest.out
!   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
!   cat $ac_file_inputs > conftest.in
  
  EOF
  
  # Transform confdefs.h into a sed script conftest.vals that substitutes
  # the proper values into config.h.in to produce config.h.  And first:
! # Protect against being on the right side of a sed subst in config.status.
  # Protect against being in an unquoted here document in config.status.
  rm -f conftest.vals
  cat > conftest.hdr <<\EOF
  s/[\\&%]/\\&/g
  s%[\\$`]%\\&%g
! s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  s%ac_d%ac_u%gp
  s%ac_u%ac_e%gp
  EOF
***************
*** 2563,2570 ****
  
  # Break up conftest.vals because some shells have a limit on
  # the size of here documents, and old seds have small limits too.
- # Maximum number of lines to put in a single here document.
- ac_max_here_lines=12
  
  rm -f conftest.tail
  while :
--- 3107,3112 ----
***************
*** 2595,2606 ****
--- 3137,3158 ----
      echo "$ac_file is unchanged"
      rm -f conftest.h
    else
+     # Remove last slash and all that follows it.  Not all systems have dirname.
+       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+       # The file is in a subdirectory.
+       test ! -d "$ac_dir" && mkdir "$ac_dir"
+     fi
      rm -f $ac_file
      mv conftest.h $ac_file
    fi
  fi; done
  
+ EOF
+ cat >> $CONFIG_STATUS <<EOF
  
+ EOF
+ cat >> $CONFIG_STATUS <<\EOF
  test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  exit 0
  EOF
diff -r -c mg-1.3/configure.in mg-1.3x/configure.in
*** mg-1.3/configure.in	Tue Mar 25 18:45:35 1997
--- mg-1.3x/configure.in	Sat May 17 11:04:22 1997
***************
*** 5,11 ****
  
  dnl
  PACKAGE=mg
! VERSION=1.2
  
  AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
  AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
--- 5,11 ----
  
  dnl
  PACKAGE=mg
! VERSION=1.3x
  
  AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
  AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
***************
*** 27,32 ****
--- 27,33 ----
  AC_ISC_POSIX
  AC_MINIX
  fp_C_PROTOTYPES
+ AC_C_BIGENDIAN
  AC_C_CONST
  AC_TYPE_OFF_T
  AC_TYPE_SIZE_T
***************
*** 67,73 ****
  AC_FUNC_VPRINTF
  AC_CHECK_FUNCS(ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize)
  AC_REPLACE_FUNCS(ftruncate strstr strcasecmp)
- 
  
  # *** Custom checking (based on GNU tar configure.in) ***
  # ---------------------------------------------------------------------------
--- 68,73 ----
Only in mg-1.3x: configure.in.orig
diff -r -c mg-1.3/docs/Makefile mg-1.3x/docs/Makefile
*** mg-1.3/docs/Makefile	Tue Mar 25 18:45:31 1997
--- mg-1.3x/docs/Makefile	Fri May 16 12:44:09 1997
***************
*** 1,5 ****
--- 1,21 ----
  DISTFILES = Makefile mgmerge.README mg_invf_dump.changes \
    README.man mg.1 mgintro.1 mgintro++.1
  
+ SHELL		= /bin/sh
+ 
+ all:	dist
+ 
  dist:
  	ln $(DISTFILES) $(distdir)
+ 
+ mostlyclean:
+ 	rm -f *$o _*.c _*.o *._c *._o core core.*
+  
+ clean: mostlyclean
+  
+ distclean: clean
+ 	rm -f Makefile
+  
+ maintainer-clean: distclean
+ 	@echo "This command is intended only for maintainers to use;"
+ 	@echo "rebuilding the deleted files may require special tools."
Only in mg-1.3x/docs: Makefile.orig
Only in mg-1.3/lib: Makefile
diff -r -c mg-1.3/lib/Makefile.in mg-1.3x/lib/Makefile.in
*** mg-1.3/lib/Makefile.in	Tue Mar 25 18:45:35 1997
--- mg-1.3x/lib/Makefile.in	Fri May 16 12:44:11 1997
***************
*** 129,135 ****
  	rm -f libmg.a
   
  distclean: clean
! 	rm -f Makefile
   
  maintainer-clean: distclean
  	@echo "This command is intended only for maintainers to use;"
--- 129,135 ----
  	rm -f libmg.a
   
  distclean: clean
! 	rm -f Makefile Makefile.tmp.bak
   
  maintainer-clean: distclean
  	@echo "This command is intended only for maintainers to use;"
***************
*** 141,143 ****
--- 141,151 ----
  # Tell versions [3.59,3.63) of GNU make not to export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.
  .NOEXPORT:
+ 
+ depend:
+ 	cp Makefile Makefile.tmp
+ 	makedepend -f Makefile.tmp -w 0 -- $(CFLAGS) -- $(SOURCES)
+ 	grep -v '[.]o: [/]' Makefile.tmp >Makefile
+ 	rm -f Makefile.tmp
+ 
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
Only in mg-1.3x/lib: Makefile.in.orig
diff -r -c mg-1.3/lib/netorder.h mg-1.3x/lib/netorder.h
*** mg-1.3/lib/netorder.h	Tue Mar 25 18:45:48 1997
--- mg-1.3x/lib/netorder.h	Mon May 19 11:06:14 1997
***************
*** 13,31 ****
  # include <netinet/in.h>
  #endif
  
! #if defined (BIG_ENDIAN) || defined (_BIG_ENDIAN) || defined (__BIG_ENDIAN)
! # ifndef _BIG_ENDIAN
! #  define _BIG_ENDIAN
! # endif
! #endif
! 
! #if defined (LITTLE_ENDIAN) || defined (_LITTLE_ENDIAN) || defined(__LITTLE_ENDIAN)
! # ifndef _LITTLE_ENDIAN
! #  define _LITTLE_ENDIAN
! # endif
! #endif
! 
! #ifdef _LITTLE_ENDIAN
  
  /* double */
  #define HTOND(d)                                                                                  \
--- 13,19 ----
  # include <netinet/in.h>
  #endif
  
! #if !defined(WORDS_BIGENDIAN)		/* then LITTLE_ENDIAN */
  
  /* double */
  #define HTOND(d)                                                                                  \
Only in mg-1.3x: long-to-mg_long.sh
Only in mg-1.3x: mg-1.3-to-1.3x.patch
Only in mg-1.3/src/images: Makefile
diff -r -c mg-1.3/src/images/Makefile.in mg-1.3x/src/images/Makefile.in
*** mg-1.3/src/images/Makefile.in	Tue Mar 25 18:47:58 1997
--- mg-1.3x/src/images/Makefile.in	Fri May 16 12:44:13 1997
***************
*** 196,202 ****
   
  distclean: clean
  	rm -f ansi2knr
! 	rm -f Makefile
   
  maintainer-clean: distclean
  	@echo "This command is intended only for maintainers to use;"
--- 196,202 ----
   
  distclean: clean
  	rm -f ansi2knr
! 	rm -f Makefile Makefile.tmp.bak
   
  maintainer-clean: distclean
  	@echo "This command is intended only for maintainers to use;"
***************
*** 214,216 ****
--- 214,224 ----
  # Tell versions [3.59,3.63) of GNU make not to export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.
  .NOEXPORT:
+ 
+ depend:
+ 	cp Makefile Makefile.tmp
+ 	makedepend -f Makefile.tmp -w 0 -- $(CFLAGS) -- $(SOURCES)
+ 	grep -v '[.]o: [/]' Makefile.tmp >Makefile
+ 	rm -f Makefile.tmp
+ 
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
Only in mg-1.3x/src/images: Makefile.in.orig
Only in mg-1.3/src/scripts: Makefile
diff -r -c mg-1.3/src/scripts/Makefile.in mg-1.3x/src/scripts/Makefile.in
*** mg-1.3/src/scripts/Makefile.in	Tue Mar 25 18:48:20 1997
--- mg-1.3x/src/scripts/Makefile.in	Fri May 16 12:46:32 1997
***************
*** 131,137 ****
   
  distclean: clean
  	rm -f ansi2knr
! 	rm -f Makefile
   
  maintainer-clean: distclean
  	@echo "This command is intended only for maintainers to use;"
--- 131,137 ----
   
  distclean: clean
  	rm -f ansi2knr
! 	rm -f Makefile Makefile.tmp.bak
   
  maintainer-clean: distclean
  	@echo "This command is intended only for maintainers to use;"
***************
*** 149,151 ****
--- 149,159 ----
  # Tell versions [3.59,3.63) of GNU make not to export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.
  .NOEXPORT:
+ 
+ depend:
+ 	cp Makefile Makefile.tmp
+ 	makedepend -f Makefile.tmp -w 0 -- $(CFLAGS) -- $(SOURCES)
+ 	grep -v '[.]o: [/]' Makefile.tmp >Makefile
+ 	rm -f Makefile.tmp
+ 
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
Only in mg-1.3x/src/scripts: Makefile.in.rej
Only in mg-1.3/src/text: Makefile
diff -r -c mg-1.3/src/text/Makefile.in mg-1.3x/src/text/Makefile.in
*** mg-1.3/src/text/Makefile.in	Tue Mar 25 18:46:10 1997
--- mg-1.3x/src/text/Makefile.in	Sat May 17 17:25:53 1997
***************
*** 336,345 ****
   
  clean: mostlyclean
  	rm -f $(EXEC)
   
  distclean: clean
  	rm -f ansi2knr
! 	rm -f Makefile
   
  maintainer-clean: distclean
  	@echo "This command is intended only for maintainers to use;"
--- 336,346 ----
   
  clean: mostlyclean
  	rm -f $(EXEC)
+ 	rm -r bool_parser.c
   
  distclean: clean
  	rm -f ansi2knr
! 	rm -f Makefile Makefile.tmp.bak
   
  maintainer-clean: distclean
  	@echo "This command is intended only for maintainers to use;"
***************
*** 357,359 ****
--- 358,368 ----
  # Tell versions [3.59,3.63) of GNU make not to export all variables.
  # Otherwise a system limit (for SysV at least) may be exceeded.
  .NOEXPORT:
+ 
+ depend:
+ 	cp Makefile Makefile.tmp
+ 	makedepend -f Makefile.tmp -w 0 -- $(CFLAGS) -- $(SOURCES)
+ 	grep -v '[.]o: [/]' Makefile.tmp >Makefile
+ 	rm -f Makefile.tmp
+ 
+ # DO NOT DELETE THIS LINE -- make depend depends on it.
Only in mg-1.3x/src/text: Makefile.in.orig
Only in mg-1.3/src/text: bool_parser.c
Only in mg-1.3x/src/text: mgbuild
diff -r -c mg-1.3/src/text/read_line.c mg-1.3x/src/text/read_line.c
*** mg-1.3/src/text/read_line.c	Tue Mar 25 18:46:30 1997
--- mg-1.3x/src/text/read_line.c	Fri May 16 12:44:44 1997
***************
*** 27,33 ****
  #ifdef GNU_READLINE
  #include "readline.h"
  #include "chardefs.h"
! #include "history.h"
  #endif
  
  
--- 27,35 ----
  #ifdef GNU_READLINE
  #include "readline.h"
  #include "chardefs.h"
! #if 0
! #include "history.h"	/* dropped from recent versions of GNU readline */
! #endif
  #endif
  
  
***************
*** 72,99 ****
  #ifdef GNU_READLINE
  static void memory_error_and_abort ();
  
! char *
  xmalloc (bytes)
!      int bytes;
  {
!   char *temp = (char *) Xmalloc (bytes);
  
    if (!temp)
      memory_error_and_abort ();
    return (temp);
  }
  
! char *
  xrealloc (pointer, bytes)
!      char *pointer;
!      int bytes;
  {
!   char *temp;
  
    if (!pointer)
!     temp = (char *) xmalloc (bytes);
    else
!     temp = (char *) Xrealloc (pointer, bytes);
  
    if (!temp)
      memory_error_and_abort ();
--- 74,101 ----
  #ifdef GNU_READLINE
  static void memory_error_and_abort ();
  
! voidstar
  xmalloc (bytes)
!      size_t bytes;
  {
!   voidstar temp = (voidstar ) Xmalloc (bytes);
  
    if (!temp)
      memory_error_and_abort ();
    return (temp);
  }
  
! voidstar
  xrealloc (pointer, bytes)
!      voidstar pointer;
!      size_t bytes;
  {
!   voidstar temp;
  
    if (!pointer)
!     temp = (voidstar ) xmalloc (bytes);
    else
!     temp = (voidstar ) Xrealloc (pointer, bytes);
  
    if (!temp)
      memory_error_and_abort ();
Only in mg-1.3x/src/text: read_line.c.orig
diff -r -c mg-1.3/src/text/text_get.c mg-1.3x/src/text/text_get.c
*** mg-1.3/src/text/text_get.c	Tue Mar 25 18:46:16 1997
--- mg-1.3x/src/text/text_get.c	Sun May 25 11:09:14 1997
***************
*** 738,744 ****
      if (IS_FIXUP (p))
        {
  	NTOHUL(*p);  /* [RPAP - Jan 97: Endian Ordering] */
! 	*p = *p + (u_long) cd;
        }
  
    /* [RPAP - Jan 97: Endian Ordering] */
--- 738,747 ----
      if (IS_FIXUP (p))
        {
  	NTOHUL(*p);  /* [RPAP - Jan 97: Endian Ordering] */
! 	if ((long)(*p) >= 0)	/* positive offset, so have valid pointer */
! 	  *p = *p + (u_long) cd;
! 	else			/* negative offset, so have NULL pointer */
! 	  *p = (u_long)NULL;
        }
  
    /* [RPAP - Jan 97: Endian Ordering] */
diff -r -c mg-1.3/src/text/words.h mg-1.3x/src/text/words.h
*** mg-1.3/src/text/words.h	Tue Mar 25 18:46:21 1997
--- mg-1.3x/src/text/words.h	Fri May 16 12:44:48 1997
***************
*** 45,51 ****
  	/* Maximum length in bytes of any stem. Note that
  	   variations to MAXSTEMLEN may have dramatic effects on the rest
  	   of the program, , i.e., leave MAXSTEMLEN alone... */
! #define MAXNUMERIC	4
  	/* Maximum number of numeric characters permitted in a word.
  	   This avoids long sequences of numbers creating just one
  	   word occurrence for each number. At most 10,000 all numeric
--- 45,55 ----
  	/* Maximum length in bytes of any stem. Note that
  	   variations to MAXSTEMLEN may have dramatic effects on the rest
  	   of the program, , i.e., leave MAXSTEMLEN alone... */
! 
! /* For mg version 1.3x, we increase MAXNUMERIC from 4 to 15 to support
! searching for ISBN and ISSN data. */
! 
! #define MAXNUMERIC	15
  	/* Maximum number of numeric characters permitted in a word.
  	   This avoids long sequences of numbers creating just one
  	   word occurrence for each number. At most 10,000 all numeric
***************
*** 58,64 ****
  #define WEIGHTPARAM     '/'
  #define STEMPARAM       '#'
  
! #define	INAWORD(c)	(isascii(c) && isalnum(c))
  	/* The definition of what characters are permitted in a word
  	 */
  
--- 62,88 ----
  #define WEIGHTPARAM     '/'
  #define STEMPARAM       '#'
  
! /* For mg version 1.3x, we allow a few other characters in words, to
! support searching for ISBN and ISSN values, programming language
! identifiers, and names like O'Reilly.  An experiment to include colon to
! support BibNet-style citation labels was abandoned because then words
! ending in a colon are indexed with the colon, e.g.  "Albert Einstein:
! Philosopher-Scientist" will not produce a match on Einstein, but only on
! Einstein:, which a searcher would not expect.  BibNet-style citation
! labels can still be found, using Boolean search, e.g.  "Knuth:1988:TP"
! can be found as "knuth & 1988 & tp".
! 
! Ideas for future work: index subwords of words, so that Internet host
! names, URLs, parts of ISBNs, etc can also be searched for. */
! 
! static int c__;
! #define isextendedletter(c) (c__ = (c), \
! 			     ((c__ == '-') || \
! 			      (c__ == '_') || \
! 			      (c__ == '\\') || \
! 			      (c__ == '\'')))
! 
! #define	INAWORD(c)	(isascii(c) && (isalnum(c) || isextendedletter(c)))
  	/* The definition of what characters are permitted in a word
  	 */
  
Only in mg-1.3x/src/text: words.h.orig
Only in mg-1.3: stamp-h
diff -r -c mg-1.3/test/Makefile mg-1.3x/test/Makefile
*** mg-1.3/test/Makefile	Tue Mar 25 18:48:23 1997
--- mg-1.3x/test/Makefile	Fri May 16 12:44:50 1997
***************
*** 1,6 ****
--- 1,8 ----
  DISTFILES = Makefile q1 q2 q3 r1 r2 r3 mgrc1 mgrc2 mgrc3 testmg \
              alice.sum simple_sum.c alice.len
  
+ SHELL		= /bin/sh
+ 
  all: simple_sum
  
  dist:
***************
*** 8,10 ****
--- 10,24 ----
  
  simple_sum: simple_sum.c
  	cc -o $@ $?
+ 
+ mostlyclean:
+ 	rm -f *$o _*.c _*.o *._c *._o core core.*
+  
+ clean: mostlyclean
+  
+ distclean: clean
+ 	rm -f Makefile
+  
+ maintainer-clean: distclean
+ 	@echo "This command is intended only for maintainers to use;"
+ 	@echo "rebuilding the deleted files may require special tools."
Only in mg-1.3x/test: Makefile.orig
