if not "%1" == "" goto ArgLoop\r
\r
Rem Create an arguments file for the configure script.\r
-echo --srcdir=%XSRC% > arguments\r
-if "%CACHING%" == "enabled" echo --cache-file=%XSRC%/djgpp/config.cache >> arguments\r
-if "%DEPENDENCY_TRACKING%" == "enabled" echo --enable-dependency-tracking >> arguments\r
-if "%DEPENDENCY_TRACKING%" == "disabled" echo --disable-dependency-tracking >> arguments\r
-if "%LIBICONV_PREFIX%" == "enabled" echo --with-libiconv-prefix >> arguments\r
-if "%LIBICONV_PREFIX%" == "disabled" echo --without-libiconv-prefix >> arguments\r
-if "%LIBINTL_PREFIX%" == "enabled" echo --with-libintl-prefix >> arguments\r
-if "%LIBINTL_PREFIX%" == "disabled" echo --without-libintl-prefix >> arguments\r
-if "%HTML%" == "enabled" echo --enable-html >> arguments\r
-if "%HTML%" == "disabled" echo --disable-html >> arguments\r
-if not "%ARGS%" == "" echo %ARGS% >> arguments\r
+echo --srcdir=%XSRC% > args\r
+if "%CACHING%" == "enabled" echo --cache-file=%XSRC%/djgpp/config.cache >> args\r
+if "%DEPENDENCY_TRACKING%" == "enabled" echo --enable-dependency-tracking >> args\r
+if "%DEPENDENCY_TRACKING%" == "disabled" echo --disable-dependency-tracking >> args\r
+if "%LIBICONV_PREFIX%" == "enabled" echo --with-libiconv-prefix >> args\r
+if "%LIBICONV_PREFIX%" == "disabled" echo --without-libiconv-prefix >> args\r
+if "%LIBINTL_PREFIX%" == "enabled" echo --with-libintl-prefix >> args\r
+if "%LIBINTL_PREFIX%" == "disabled" echo --without-libintl-prefix >> args\r
+if "%HTML%" == "enabled" echo --enable-html >> args\r
+if "%HTML%" == "disabled" echo --disable-html >> args\r
+if not "%ARGS%" == "" echo %ARGS% >> args\r
set ARGS=\r
set CACHING=\r
set DEPENDENCY_TRACKING=\r
set CONFIG_SITE=%XSRC%/djgpp/config.site\r
if not "%CONFIG_SITE%" == "%XSRC%/djgpp/config.site" goto SmallEnv\r
\r
+Rem inttypes_.h and inttypes.h map to the same 8.3 alias.\r
+test -f %XSRC%/lib/inttypes_.h\r
+if not errorlevel 1 mv -f %XSRC%/lib/inttypes_.h %XSRC%/lib/_inttypes.h\r
+\r
Rem Make sure crucial file names are not munged by unpacking\r
test -f %XSRC%/po/Makefile.in.in\r
if not errorlevel 1 mv -f %XSRC%/po/Makefile.in.in %XSRC%/po/Makefile.in-in\r
test -f %XSRC%/tests/c++.at\r
if not errorlevel 1 mv -f %XSRC%/tests/c++.at %XSRC%/tests/cxx.at\r
\r
+test -f %XSRC%/tests/testsuite.org\r
+if errorlevel 1 update %XSRC%/tests/testsuite %XSRC%/tests/testsuite.org\r
+sed -f %XSRC%/djgpp/testsuite.sed %XSRC%/tests/testsuite.org > testsuite.tmp\r
+if errorlevel 1 goto SedError3\r
+mv -f ./testsuite.tmp %XSRC%/tests/testsuite\r
+\r
Rem Fixing ilicit calc++ file names in the calc++ directory.\r
test -d %XSRC%/examples/calc++\r
if not errorlevel 1 mv -f %XSRC%/examples/calc++ %XSRC%/examples/calcxx\r
Rem Update the arguments file for the configure script.\r
Rem We prefer without-included-gettext because libintl.a from gettext package\r
Rem is the only one that is garanteed to have been ported to DJGPP.\r
-echo --enable-nls --without-included-gettext >> arguments\r
+echo --enable-nls --without-included-gettext >> args\r
goto ConfigurePackage\r
\r
:MissingNLSTools\r
echo Needed libs/tools for NLS not found. Configuring without NLS.\r
:WithoutNLS\r
Rem Update the arguments file for the configure script.\r
-echo --disable-nls >> arguments\r
+echo --disable-nls >> args\r
\r
:ConfigurePackage\r
echo Running the ./configure script...\r
-sh ./configure @arguments\r
+sh ./configure @args\r
if errorlevel 1 goto CfgError\r
-rm arguments\r
+rm args\r
echo Done.\r
goto End\r
\r
goto End\r
\r
:SedError2\r
-echo ./config.hin editing failed!\r
+echo ./lib/config.hin editing failed!\r
+goto End\r
+\r
+:SedError3\r
+echo ./tests/testsuite editing failed!\r
goto End\r
\r
:CfgError\r