From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Suggested change to nt\configure.bat Date: Sat, 30 Oct 2004 23:40:43 +0200 Message-ID: <075501c4bec9$5f7ae510$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1099173494 3978 80.91.229.6 (30 Oct 2004 21:58:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Oct 2004 21:58:14 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 30 23:42:39 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CO0zf-0001GR-00 for ; Sat, 30 Oct 2004 23:42:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CO17Z-0005XL-OO for ged-emacs-devel@m.gmane.org; Sat, 30 Oct 2004 17:50:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CO17T-0005X8-Of for emacs-devel@gnu.org; Sat, 30 Oct 2004 17:50:43 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CO17S-0005Wd-OL for emacs-devel@gnu.org; Sat, 30 Oct 2004 17:50:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CO17S-0005WS-IH for emacs-devel@gnu.org; Sat, 30 Oct 2004 17:50:42 -0400 Original-Received: from [81.228.11.114] (helo=av7-2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CO0zM-0006xy-JO for emacs-devel@gnu.org; Sat, 30 Oct 2004 17:42:21 -0400 Original-Received: by av7-2-sn1.fre.skanova.net (Postfix, from userid 502) id E634C37EF2; Sat, 30 Oct 2004 23:42:19 +0200 (CEST) Original-Received: from smtp3-1-sn1.fre.skanova.net (smtp3-1-sn1.fre.skanova.net [81.228.11.163]) by av7-2-sn1.fre.skanova.net (Postfix) with ESMTP id D6C8F37EB2 for ; Sat, 30 Oct 2004 23:42:19 +0200 (CEST) Original-Received: from sedrcw11488 (t4o58p112.telia.com [195.252.57.112]) by smtp3-1-sn1.fre.skanova.net (Postfix) with SMTP id 99CBB37E42 for ; Sat, 30 Oct 2004 23:42:18 +0200 (CEST) Original-To: "Emacs Devel" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:29192 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29192 Below are some small changes to nt\configure.bat that I think would make = it more helpful. It checks for more programs that are actually needed during the build and tells how to get them. It also checks to see if bootstrap i= s necessary and tell more in detail how to do the build. What do you think of such a change? Could this be accepted? - Lennart (I am not very familiar with using diff. What switches should be used for diff to make it useful here?) diff -c -b -w -B "c:/emacscvs/emacs/nt/configure.bat" "c:/emacscvs/emacs/nt/configure-new.bat" *** c:/emacscvs/emacs/nt/configure.bat Sun Oct 17 00:54:35 2004 --- c:/emacscvs/emacs/nt/configure-new.bat Sat Oct 30 23:18:38 2004 *************** *** 194,215 **** goto again rem -------------------------------------------------------------------= --- ! rem Check that necessary utilities (cp and rm) are present. :checkutils echo Checking for 'cp'... cp configure.bat junk.bat if not exist junk.bat goto needcp echo Checking for 'rm'... rm junk.bat if exist junk.bat goto needrm goto checkcompiler :needcp echo You need 'cp' (the Unix file copy program) to build Emacs. ! goto end :needrm del junk.bat echo You need 'rm' (the Unix file delete program) to build Emacs. ! goto end rem -------------------------------------------------------------------= --- rem Auto-detect compiler if not specified, and validate GCC if chosen= . --- 194,234 ---- goto again rem -------------------------------------------------------------------= --- ! rem Check that necessary utilities are present. :checkutils echo Checking for 'cp'... cp configure.bat junk.bat if not exist junk.bat goto needcp + echo Checking for 'mv' + mv junk.bat junk-mv.bat + if not exist junk-mv.bat goto needmv + del junk-mv.bat + echo Checking for 'touch'... + touch junk.bat + if not exist junk.bat goto needtouch echo Checking for 'rm'... rm junk.bat if exist junk.bat goto needrm + echo Checking for 'makeinfo'... + makeinfo --help > /null 2>&1 + if errorlevel 1 goto needmakeinfo goto checkcompiler + :needmakeinfo + echo You need a working 'makeinfo' (part of TexInfo) to build Emacs. + goto TellUtilLoc + :needtouch + echo You need a working 'touch' (the Unix file touch program) to buil= d Emacs. + goto TellUtilLoc + :needmv + echo You need 'mv' (the Unix file move program) to build Emacs. + goto TellUtilLoc :needcp echo You need 'cp' (the Unix file copy program) to build Emacs. ! goto TellUtilLoc :needrm del junk.bat echo You need 'rm' (the Unix file delete program) to build Emacs. ! goto TellUtilLoc rem -------------------------------------------------------------------= --- rem Auto-detect compiler if not specified, and validate GCC if chosen= . *************** *** 456,469 **** if not exist ..\site-lisp\subdirs.el copy subdirs.el ..\site-lisp\subdirs.el echo. echo Emacs successfully configured. ! echo Run `%MAKECMD%' to build, then run `%MAKECMD% install' to install. goto end :SmallEnv echo Your environment size is too small. Please enlarge it and rerun configure. echo For example, type "command.com /e:2048" to have 2048 bytes availab= le. set $foo$=3D :end set prefix=3D set nodebug=3D --- 475,509 ---- if not exist ..\site-lisp\subdirs.el copy subdirs.el ..\site-lisp\subdirs.el echo. + echo ----------------------------------------------------- echo Emacs successfully configured. ! if "%COMPILER%" =3D=3D "cl" echo Configured to use MSVC cl and nmake ! if "%COMPILER%" =3D=3D "gcc" echo Configured to use MinGW gcc and GNU M= ake ! echo ------- ! echo Steps to build Emacs: ! @if not EXIST ..\lisp\abbrev.elc echo - Essential Lisp files seem to be missing. You should either ! @if not EXIST ..\lisp\abbrev.elc echo do '%MAKECMD% bootstrap' or cre= ate '..=07lisp/abbrev.elc' somehow ! echo - Run `%MAKECMD%' to build ! echo - Run `%MAKECMD% info' to build Emacs info files ! echo - Run `%MAKECMD% install' ! echo or `%MAKECMD% INSTALL_DIR=3Dc:\emacs\myemacs' to install. ! echo. ! echo Note 1: You may want to use "perl build_sanity.pl to check your building environment. ! if "%MAKECMD%" =3D=3D "gmake" echo Note 2: gmake stands for GNU Make an= d the file name is normally make.exe goto end + :TellUtilLoc + echo ----------- + echo You can find unix utilities for W32 on http://gnuwin32.sourceforge.net/ + echo Or, you can download MSYS from http://www.mingw.org/ + echo or Cygwin from http://www.cygwin.org/ + goto end: + :SmallEnv echo Your environment size is too small. Please enlarge it and rerun configure. echo For example, type "command.com /e:2048" to have 2048 bytes availab= le. set $foo$=3D + :end set prefix=3D set nodebug=3D Diff finished at Sat Oct 30 23:31:30