From xemacs-m  Thu Jan 23 11:52:14 1997
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5])
          by xemacs.org (8.8.4/8.8.4) with SMTP
	  id LAA16034 for <xemacs-beta@xemacs.org>; Thu, 23 Jan 1997 11:52:12 -0600 (CST)
Received: from Eng.Sun.COM ([129.146.1.25]) by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id JAA29802; Thu, 23 Jan 1997 09:51:39 -0800
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id JAA26168; Thu, 23 Jan 1997 09:51:30 -0800
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id JAA00941; Thu, 23 Jan 1997 09:51:03 -0800
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id JAA09691; Thu, 23 Jan 1997 09:51:02 -0800
Date: Thu, 23 Jan 1997 09:51:02 -0800
Message-Id: <199701231751.JAA09691@xemacs.eng.sun.com>
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: carney@gvc.dec.com
Cc: xemacs-beta@xemacs.org
Subject: XEmacs 20.0-b91 build success on Digital UNIX V3.2D
In-Reply-To: <9701231233.AA12349@fornet.gvc.dec.com>
References: <9701231233.AA12349@fornet.gvc.dec.com>
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: text/plain; charset=US-ASCII

>>>>> "Steve" == Steve Carney <carney@gvc.dec.com> writes:

Steve> The 20b91 build went fine, but make all-elc gave me the following:
Steve>   [EMACSLOADPATH setup...]

Steve>   Checking for Mule support...
Steve>   /kits/install/xemacs/xemacs-20.0-b91/lib-src/update-elc.sh: test: argument expected
Steve>   *** Exit 1
Steve>   Stop.

Quoting is so much fun, especially when you combine 3 kinds of shell
quoting plus 2 kinds of lisp quoting all on one line.

Here's a patch that should be slightly more bullet-proof, tested with
mule and non-mule xemacs and Solaris /bin/sh:

Martin

*** /tmp/geta4902	Thu Jan 23 09:44:37 1997
--- update-elc.sh	Thu Jan 23 09:42:33 1997
***************
*** 54,62 ****
  
  # Only use Mule XEmacs to compile Mule-specific elisp dirs
  echo "Checking for Mule support..."
! lisp_prog='(when (featurep (quote mule)) (message "yes"))'
! if test -z `$REAL -batch -no-site-file -eval "$lisp_prog" 2>&1` ; then
    ignore_dirs="$ignore_dirs mule"
  fi
  
  # first recompile the byte-compiler, so that the other compiles take place
--- 54,69 ----
  
  # Only use Mule XEmacs to compile Mule-specific elisp dirs
  echo "Checking for Mule support..."
! lisp_prog='(princ (featurep (quote mule)))'
! mule_p="`$REAL -batch -no-site-file -eval \"$lisp_prog\"`"
! if test "$mule_p" = nil ; then
!   echo No
    ignore_dirs="$ignore_dirs mule"
+ elif test "$mule_p" = t; then
+   echo Yes
+ else
+   echo "Error determining presence of mule support"
+   exit 1;
  fi
  
  # first recompile the byte-compiler, so that the other compiles take place

