]> git.saurik.com Git - bison.git/blame - djgpp/config.bat
* data/glr.c (yyprocessOneStack): Synchronize the shift for all
[bison.git] / djgpp / config.bat
CommitLineData
3768a1ae
JMG
1@echo off\r
2echo Configuring GNU Bison for DJGPP v2.x...\r
3\r
4Rem The SmallEnv tests protect against fixed and too small size\r
5Rem of the environment in stock DOS shell.\r
6\r
7Rem Find out if NLS is wanted or not,\r
8Rem if dependency-tracking is wanted or not,\r
9Rem if caching is wanted or not\r
10Rem and where the sources are.\r
11Rem We always default to NLS support,\r
12Rem no dependency tracking\r
13Rem and to in place configuration.\r
14set ARGS=\r
15set NLS=enabled\r
16if not "%NLS%" == "enabled" goto SmallEnv\r
17set CACHING=enabled\r
18if not "%CACHING%" == "enabled" goto SmallEnv\r
19set DEPENDENCY_TRACKING=disabled\r
20if not "%DEPENDENCY_TRACKING%" == "disabled" goto SmallEnv\r
21set LIBICONV_PREFIX=disabled\r
22if not "%LIBICONV_PREFIX%" == "disabled" goto SmallEnv\r
23set LIBINTL_PREFIX=disabled\r
24if not "%LIBINTL_PREFIX%" == "disabled" goto SmallEnv\r
25set HTML=enabled\r
26if not "%HTML%" == "enabled" goto SmallEnv\r
27set XSRC=.\r
28if not "%XSRC%" == "." goto SmallEnv\r
29\r
30Rem Loop over all arguments.\r
31Rem Special arguments are: NLS, XSRC, CACHE, STATIC_LIBS, LIBICONV_PREFIX, LIBINTL_PREFIX and DEPS.\r
32Rem All other arguments are stored into ARGS.\r
33:ArgLoop\r
34if "%1" == "nls" goto NextArgument\r
35if "%1" == "NLS" goto NextArgument\r
36if "%1" == "no-nls" goto NoNLS\r
37if "%1" == "no-NLS" goto NoNLS\r
38if "%1" == "NO-NLS" goto NoNLS\r
39goto CachingOption\r
40:NoNLS\r
41if "%1" == "no-nls" set NLS=disabled\r
42if "%1" == "no-NLS" set NLS=disabled\r
43if "%1" == "NO-NLS" set NLS=disabled\r
44if not "%NLS%" == "disabled" goto SmallEnv\r
45goto NextArgument\r
46:CachingOption\r
47if "%1" == "cache" goto NextArgument\r
48if "%1" == "CACHE" goto NextArgument\r
49if "%1" == "no-cache" goto NoCaching\r
50if "%1" == "no-CACHE" goto NoCaching\r
51if "%1" == "NO-CACHE" goto NoCaching\r
52goto DependencyOption\r
53:NoCaching\r
54if "%1" == "no-cache" set CACHING=disabled\r
55if "%1" == "no-CACHE" set CACHING=disabled\r
56if "%1" == "NO-CACHE" set CACHING=disabled\r
57if not "%CACHING%" == "disabled" goto SmallEnv\r
58goto NextArgument\r
59:DependencyOption\r
60if "%1" == "no-dep" goto NextArgument\r
61if "%1" == "no-DEP" goto NextArgument\r
62if "%1" == "NO-DEP" goto NextArgument\r
63if "%1" == "dep" goto DependecyTraking\r
64if "%1" == "DEP" goto DependecyTraking\r
65goto LibiconvPrefixOption\r
66:DependecyTraking\r
67if "%1" == "dep" set DEPENDENCY_TRACKING=enabled\r
68if "%1" == "DEP" set DEPENDENCY_TRACKING=enabled\r
69if not "%DEPENDENCY_TRACKING%" == "enabled" goto SmallEnv\r
70goto NextArgument\r
71:LibiconvPrefixOption\r
72if "%1" == "no-libiconvprefix" goto NextArgument\r
73if "%1" == "no-LIBICONVPREFIX" goto NextArgument\r
74if "%1" == "NO-LIBICONVPREFIX" goto NextArgument\r
75if "%1" == "libiconvprefix" goto WithLibiconvPrefix\r
76if "%1" == "LIBICONVPREFIX" goto WithLibiconvPrefix\r
77goto LibintlPrefixOption\r
78:WithLibiconvPrefix\r
79if "%1" == "libiconvprefix" set LIBICONV_PREFIX=enabled\r
80if "%1" == "LIBICONVPREFIX" set LIBICONV_PREFIX=enabled\r
81if not "%LIBICONV_PREFIX%" == "enabled" goto SmallEnv\r
82goto NextArgument\r
83:LibintlPrefixOption\r
84if "%1" == "no-libiconvprefix" goto NextArgument\r
85if "%1" == "no-LIBICONVPREFIX" goto NextArgument\r
86if "%1" == "NO-LIBICONVPREFIX" goto NextArgument\r
87if "%1" == "libintlprefix" goto _WithLibintlPrefix\r
88if "%1" == "LIBINTLPREFIX" goto _WithLibintlPrefix\r
89goto HTMLOption\r
90:_WithLibintlPrefix\r
91if "%1" == "libintlprefix" set LIBINTL_PREFIX=enabled\r
92if "%1" == "LIBINTLPREFIX" set LIBINTL_PREFIX=enabled\r
93if not "%LIBINTL_PREFIX%" == "enabled" goto SmallEnv\r
94:HTMLOption\r
95if "%1" == "withhtml" goto NextArgument\r
96if "%1" == "withHTML" goto NextArgument\r
97if "%1" == "WITHHTML" goto NextArgument\r
98if "%1" == "withouthtml" goto _WithoutHTML\r
99if "%1" == "withoutHTML" goto _WithoutHTML\r
100if "%1" == "WITHOUTHTML" goto _WithoutHTML\r
101goto SrcDirOption\r
102:_WithoutHTML\r
103if "%1" == "withouthtml" set HTML=disabled\r
104if "%1" == "withoutHTML" set HTML=disabled\r
105if "%1" == "WITHOUTHTML" set HTML=disabled\r
106if not "%HTML%" == "disabled" goto SmallEnv\r
107goto NextArgument\r
108:SrcDirOption\r
109echo %1 | grep -q "/"\r
110if errorlevel 1 goto CollectArgument\r
111set XSRC=%1\r
112if not "%XSRC%" == "%1" goto SmallEnv\r
113goto NextArgument\r
114:CollectArgument\r
115set _ARGS=%ARGS% %1\r
116if not "%_ARGS%" == "%ARGS% %1" if not "%_ARGS%" == "%ARGS%%1" goto SmallEnv\r
117echo %_ARGS% | grep -q "[^ ]"\r
118if not errorlevel 0 set ARGS=%_ARGS%\r
119set _ARGS=\r
120:NextArgument\r
121shift\r
122if not "%1" == "" goto ArgLoop\r
123\r
124Rem Create an arguments file for the configure script.\r
125echo --srcdir=%XSRC% > arguments\r
126if "%CACHING%" == "enabled" echo --cache-file=%XSRC%/djgpp/config.cache >> arguments\r
127if "%DEPENDENCY_TRACKING%" == "enabled" echo --enable-dependency-tracking >> arguments\r
128if "%DEPENDENCY_TRACKING%" == "disabled" echo --disable-dependency-tracking >> arguments\r
129if "%LIBICONV_PREFIX%" == "enabled" echo --with-libiconv-prefix >> arguments\r
130if "%LIBICONV_PREFIX%" == "disabled" echo --without-libiconv-prefix >> arguments\r
131if "%LIBINTL_PREFIX%" == "enabled" echo --with-libintl-prefix >> arguments\r
132if "%LIBINTL_PREFIX%" == "disabled" echo --without-libintl-prefix >> arguments\r
133if "%HTML%" == "enabled" echo --enable-html >> arguments\r
134if "%HTML%" == "disabled" echo --disable-html >> arguments\r
135if not "%ARGS%" == "" echo %ARGS% >> arguments\r
136set ARGS=\r
137set CACHING=\r
138set DEPENDENCY_TRACKING=\r
139\r
140if "%XSRC%" == "." goto InPlace\r
141\r
142:NotInPlace\r
143redir -e /dev/null update %XSRC%/configure.orig ./configure\r
144test -f ./configure\r
145if errorlevel 1 update %XSRC%/configure ./configure\r
146\r
147:InPlace\r
148Rem Update configuration files\r
149echo Updating configuration scripts...\r
150test -f ./configure.orig\r
151if errorlevel 1 update configure configure.orig\r
152sed -f %XSRC%/djgpp/config.sed configure.orig > configure\r
153if errorlevel 1 goto SedError\r
154\r
155Rem Make sure they have a config.site file\r
156set CONFIG_SITE=%XSRC%/djgpp/config.site\r
157if not "%CONFIG_SITE%" == "%XSRC%/djgpp/config.site" goto SmallEnv\r
158\r
159Rem Make sure crucial file names are not munged by unpacking\r
160test -f %XSRC%/po/Makefile.in.in\r
161if not errorlevel 1 mv -f %XSRC%/po/Makefile.in.in %XSRC%/po/Makefile.in-in\r
162test -f %XSRC%/po/Makefile.in-in\r
163if errorlevel 1 mv -f %XSRC%/po/Makefile.in %XSRC%/po/Makefile.in-in\r
164test -f %XSRC%/runtime-po/Makefile.in.in\r
165if not errorlevel 1 mv -f %XSRC%/runtime-po/Makefile.in.in %XSRC%/runtime-po/Makefile.in-in\r
166test -f %XSRC%/runtime-po/Makefile.in-in\r
167if errorlevel 1 mv -f %XSRC%/runtime-po/Makefile.in %XSRC%/runtime-po/Makefile.in-in\r
168test -f %XSRC%/data/c++.m4\r
169if not errorlevel 1 mv -f %XSRC%/data/c++.m4 %XSRC%/data/cxx.m4\r
170test -f %XSRC%/data/cxx.m4\r
171if errorlevel 1 mv -f %XSRC%/data/cpp.m4 %XSRC%/data/cxx.m4\r
172\r
c59929c3 173Rem Fix data/lalr1.cc and data/location.cc to reflect the renaming of c++.m4\r
3768a1ae
JMG
174sed "s/c++\.m4/cxx.m4/" %XSRC%/data/lalr1.cc > lalr1.cc\r
175if errorlevel 1 goto lalr1_ccFileError\r
176mv ./lalr1.cc %XSRC%/data/lalr1.cc\r
c59929c3
JMG
177sed "s/c++\.m4/cxx.m4/" %XSRC%/data/location.cc > location.cc\r
178if errorlevel 1 goto location.ccFileError\r
179mv ./location.cc %XSRC%/data/location.cc\r
3768a1ae
JMG
180\r
181Rem Define DJGPP specific defs in config.hin\r
182echo Editing config.hin...\r
183test -f %XSRC%/config_h.orig\r
184if errorlevel 1 update %XSRC%/config.hin %XSRC%/config_h.orig\r
185sed -f %XSRC%/djgpp/config_h.sed %XSRC%/config_h.orig > config.hin\r
186if errorlevel 1 goto SedError2\r
187mv -f config.hin %XSRC%/config.hin\r
188\r
189\r
190Rem Fixing ilicit testsuite file name.\r
191test -f %XSRC%/tests/c++.at\r
192if not errorlevel 1 mv -f %XSRC%/tests/c++.at %XSRC%/tests/cxx.at\r
193\r
194Rem Fixing ilicit calc++ file names in the calc++ directory.\r
195test -d %XSRC%/examples/calc++\r
196if not errorlevel 1 mv -f %XSRC%/examples/calc++ %XSRC%/examples/calcxx\r
197test -d %XSRC%/examples/calcxx\r
198if errorlevel 1 mv -f %XSRC%/examples/calcpp %XSRC%/examples/calcxx\r
199test -f %XSRC%/examples/calcxx/calc++-scanner.cc\r
200if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-scanner.cc %XSRC%/examples/calcxx/calcxx-scanner.cc\r
201test -f %XSRC%/examples/calcxx/calcxx-scanner.cc\r
202if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-scanner.cc %XSRC%/examples/calcxx/calcxx-scanner.cc\r
203test -f %XSRC%/examples/calcxx/calc++-scanner.ll\r
204if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-scanner.ll %XSRC%/examples/calcxx/calcxx-scanner.ll\r
205test -f %XSRC%/examples/calcxx/calcxx-scanner.ll\r
206if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-scanner.ll %XSRC%/examples/calcxx/calcxx-scanner.ll\r
207test -f %XSRC%/examples/calcxx/calc++-driver.cc\r
208if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-driver.cc %XSRC%/examples/calcxx/calcxx-driver.cc\r
209test -f %XSRC%/examples/calcxx/calcxx-driver.cc\r
210if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-driver.cc %XSRC%/examples/calcxx/calcxx-driver.cc\r
211test -f %XSRC%/examples/calcxx/calc++-driver.hh\r
212if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-driver.hh %XSRC%/examples/calcxx/calcxx-driver.hh\r
213test -f %XSRC%/examples/calcxx/calcxx-driver.hh\r
214if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-driver.hh %XSRC%/examples/calcxx/calcxx-driver.hh\r
215test -f %XSRC%/examples/calcxx/calc++-parser.cc\r
216if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-parser.cc %XSRC%/examples/calcxx/calcxx-parser.cc\r
217test -f %XSRC%/examples/calcxx/calcxx-parser.cc\r
218if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-parser.cc %XSRC%/examples/calcxx/calcxx-parser.cc\r
219test -f %XSRC%/examples/calcxx/calc++-parser.hh\r
220if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-parser.hh %XSRC%/examples/calcxx/calcxx-parser.hh\r
221test -f %XSRC%/examples/calcxx/calcxx-parser.hh\r
222if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-parser.hh %XSRC%/examples/calcxx/calcxx-parser.hh\r
223test -f %XSRC%/examples/calcxx/calc++-parser.stamp\r
224if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-parser.stamp %XSRC%/examples/calcxx/calcxx-parser.stamp\r
225test -f %XSRC%/examples/calcxx/calcxx-parser.stamp\r
226if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-parser.stamp %XSRC%/examples/calcxx/calcxx-parser.stamp\r
227test -f %XSRC%/examples/calcxx/calc++-parser.yy\r
228if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++-parser.yy %XSRC%/examples/calcxx/calcxx-parser.yy\r
229test -f %XSRC%/examples/calcxx/calcxx-parser.yy\r
230if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp-parser.yy %XSRC%/examples/calcxx/calcxx-parser.yy\r
231test -f %XSRC%/examples/calcxx/calc++.cc\r
232if not errorlevel 1 mv -f %XSRC%/examples/calcxx/calc++.cc %XSRC%/examples/calcxx/calcxx.cc\r
233test -f %XSRC%/examples/calcxx/calcxx.cc\r
234if errorlevel 1 mv -f %XSRC%/examples/calcxx/calcpp.cc %XSRC%/examples/calcxx/calcxx.cc\r
235\r
236Rem Fixing #include lines in calcxx files.\r
237sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx.cc > calcxx.cc\r
238if errorlevel 1 goto calcxxFileError\r
239mv ./calcxx.cc %XSRC%/examples/calcxx/calcxx.cc\r
240sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-driver.cc > calcxx-driver.cc\r
241if errorlevel 1 goto calcxxFileError\r
242mv ./calcxx-driver.cc %XSRC%/examples/calcxx/calcxx-driver.cc\r
243sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-driver.hh > calcxx-driver.hh\r
244if errorlevel 1 goto calcxxFileError\r
245mv ./calcxx-driver.hh %XSRC%/examples/calcxx/calcxx-driver.hh\r
246sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-parser.cc > calcxx-parser.cc\r
247if errorlevel 1 goto calcxxFileError\r
248mv ./calcxx-parser.cc %XSRC%/examples/calcxx/calcxx-parser.cc\r
249sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-parser.hh > calcxx-parser.hh\r
250if errorlevel 1 goto calcxxFileError\r
251mv ./calcxx-parser.hh %XSRC%/examples/calcxx/calcxx-parser.hh\r
252:sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-parser.yy > calcxx-parser.yy\r
253:if errorlevel 1 goto calcxxFileError\r
254:mv ./calcxx-parser.yy %XSRC%/examples/calcxx/calcxx-parser.yy\r
255sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-scanner.cc > calcxx-scanner.cc\r
256if errorlevel 1 goto calcxxFileError\r
257mv ./calcxx-scanner.cc %XSRC%/examples/calcxx/calcxx-scanner.cc\r
258:sed "/#[ ]*include/s/++/xx/" %XSRC%/examples/calcxx/calcxx-scanner.ll > calcxx-scanner.ll\r
259:if errorlevel 1 goto calcxxFileError\r
260:mv ./calcxx-scanner.ll %XSRC%/examples/calcxx/calcxx-scanner.ll\r
261sed "s/calc++/calcxx/" %XSRC%/examples/calcxx/test > test\r
262if errorlevel 1 goto calcxxFileError\r
263mv ./test %XSRC%/examples/calcxx/test\r
264\r
265\r
266Rem Fixing the scanner files to make file names 8.3 valid.\r
267Rem Use only if you want to change the scan-gram.l and scan-skel.l files.\r
268: sed "/outfile=/s/\.yy/yy/" %XSRC%/src/scan-gram.l > scan-gram.l\r
269: if errorlevel 1 goto ScannerFileError\r
270: mv ./scan-gram.l %XSRC%/src/scan-gram.l\r
271: sed "/outfile=/s/\.yy/yy/" %XSRC%/src/scan-skel.l > scan-skel.l\r
272: if errorlevel 1 goto ScannerFileError\r
273: mv ./scan-skel.l %XSRC%/src/scan-skel.l\r
274\r
275\r
276Rem This is required because DOS/Windows are case-insensitive\r
277Rem to file names, and "make install" will do nothing if Make\r
278Rem finds a file called `install'.\r
279if exist INSTALL ren INSTALL INSTALL.txt\r
280\r
281Rem Set SHELL to a sane default or some configure tests stop working\r
282Rem if the package is configured across partitions.\r
283if not "%SHELL%" == "" goto HomeName\r
284set SHELL=/bin/sh\r
285if not "%SHELL%" == "/bin/sh" goto SmallEnv\r
286echo No SHELL found in the environment, using default value\r
287\r
288:HomeName\r
289Rem Set HOME to a sane default so configure stops complaining.\r
290if not "%HOME%" == "" goto HostName\r
291set HOME=%XSRC%/djgpp\r
292if not "%HOME%" == "%XSRC%/djgpp" goto SmallEnv\r
293echo No HOME found in the environment, using default value\r
294\r
295:HostName\r
296Rem Set HOSTNAME so it shows in config.status\r
297if not "%HOSTNAME%" == "" goto hostdone\r
298if "%windir%" == "" goto msdos\r
299set OS=MS-Windows\r
300if not "%OS%" == "MS-Windows" goto SmallEnv\r
301goto haveos\r
302:msdos\r
303set OS=MS-DOS\r
304if not "%OS%" == "MS-DOS" goto SmallEnv\r
305:haveos\r
306if not "%USERNAME%" == "" goto haveuname\r
307if not "%USER%" == "" goto haveuser\r
308echo No USERNAME and no USER found in the environment, using default values\r
309set HOSTNAME=Unknown PC\r
310if not "%HOSTNAME%" == "Unknown PC" goto SmallEnv\r
311goto userdone\r
312:haveuser\r
313set HOSTNAME=%USER%'s PC\r
314if not "%HOSTNAME%" == "%USER%'s PC" goto SmallEnv\r
315goto userdone\r
316:haveuname\r
317set HOSTNAME=%USERNAME%'s PC\r
318if not "%HOSTNAME%" == "%USERNAME%'s PC" goto SmallEnv\r
319:userdone\r
320set _HOSTNAME=%HOSTNAME%, %OS%\r
321if not "%_HOSTNAME%" == "%HOSTNAME%, %OS%" goto SmallEnv\r
322set HOSTNAME=%_HOSTNAME%\r
323:hostdone\r
324set _HOSTNAME=\r
325set OS=\r
326\r
327Rem install-sh is required by the configure script but clashes with the\r
328Rem various Makefile install-foo targets, so we MUST have it before the\r
329Rem script runs and rename it afterwards\r
330test -f %XSRC%/install-sh\r
331if not errorlevel 1 goto NoRen0\r
332test -f %XSRC%/install-sh.sh\r
333if not errorlevel 1 mv -f %XSRC%/install-sh.sh %XSRC%/install-sh\r
334:NoRen0\r
335\r
336if "%NLS%" == "disabled" goto WithoutNLS\r
337\r
338:WithNLS\r
339Rem Check for the needed libraries and binaries.\r
340test -x /dev/env/DJDIR/bin/msgfmt.exe\r
341if errorlevel 1 goto MissingNLSTools\r
342test -x /dev/env/DJDIR/bin/xgettext.exe\r
343if errorlevel 1 goto MissingNLSTools\r
344test -f /dev/env/DJDIR/include/libcharset.h\r
345if errorlevel 1 goto MissingNLSTools\r
346test -f /dev/env/DJDIR/lib/libcharset.a\r
347if errorlevel 1 goto MissingNLSTools\r
348test -f /dev/env/DJDIR/include/iconv.h\r
349if errorlevel 1 goto MissingNLSTools\r
350test -f /dev/env/DJDIR/lib/libiconv.a\r
351if errorlevel 1 goto MissingNLSTools\r
352test -f /dev/env/DJDIR/include/libintl.h\r
353if errorlevel 1 goto MissingNLSTools\r
354test -f /dev/env/DJDIR/lib/libintl.a\r
355if errorlevel 1 goto MissingNLSTools\r
356\r
357Rem Recreate the files in the %XSRC%/po subdir with our ported tools.\r
358redir -e /dev/null rm %XSRC%/po/*.gmo\r
359redir -e /dev/null rm %XSRC%/po/bison.pot\r
360redir -e /dev/null rm %XSRC%/po/cat-id-tbl.c\r
361redir -e /dev/null rm %XSRC%/po/stamp-cat-id\r
362\r
363Rem Update the arguments file for the configure script.\r
364Rem We prefer without-included-gettext because libintl.a from gettext package\r
365Rem is the only one that is garanteed to have been ported to DJGPP.\r
366echo --enable-nls --without-included-gettext >> arguments\r
367goto ConfigurePackage\r
368\r
369:MissingNLSTools\r
370echo Needed libs/tools for NLS not found. Configuring without NLS.\r
371:WithoutNLS\r
372Rem Update the arguments file for the configure script.\r
373echo --disable-nls >> arguments\r
374\r
375:ConfigurePackage\r
376echo Running the ./configure script...\r
377sh ./configure @arguments\r
378if errorlevel 1 goto CfgError\r
379rm arguments\r
380echo Done.\r
381goto End\r
382\r
383:lalr1_ccFileError\r
384echo ./data/lalr1.cc file editing failed!\r
385goto End\r
386\r
c59929c3
JMG
387:location_ccFileError\r
388echo ./data/location.cc file editing failed!\r
389goto End\r
390\r
3768a1ae
JMG
391:calcxxFileError\r
392echo ./examples/calcxx file editing failed!\r
393goto End\r
394\r
395:ScannerFileError\r
396echo ./scanner file editing failed!\r
397goto End\r
398\r
399:SedError\r
400echo ./configure script editing failed!\r
401goto End\r
402\r
403:SedError2\r
404echo ./config.hin editing failed!\r
405goto End\r
406\r
407:CfgError\r
408echo ./configure script exited abnormally!\r
409goto End\r
410\r
411:SmallEnv\r
412echo Your environment size is too small. Enlarge it and run me again.\r
413echo Configuration NOT done!\r
414\r
415:End\r
416test -f %XSRC%/install-sh.sh\r
417if not errorlevel 1 goto NoRen1\r
418test -f %XSRC%/install-sh\r
419if not errorlevel 1 mv -f %XSRC%/install-sh %XSRC%/install-sh.sh\r
420:NoRen1\r
421if "%SHELL%" == "/bin/sh" set SHELL=\r
422if "%HOME%" == "%XSRC%/djgpp" set HOME=\r
423set ARGS=\r
424set CONFIG_SITE=\r
425set HOSTNAME=\r
426set NLS=\r
427set CACHING=\r
428set DEPENDENCY_TRACKING=\r
429set XSRC=\r