This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlapi: Remove per-thread section; move to real scns
[perl5.git] / djgpp / configure.bat
CommitLineData
e10940c3
JH
1@echo off\r
2set CONFIG=\r
3set PATH_SEPARATOR=;\r
4set PATH_EXPAND=y\r
5sh -c 'if test $PATH_SEPARATOR = ";"; then exit 1; fi'\r
6if ERRORLEVEL 1 goto path_sep_ok\r
7echo Error:\a\r
8echo Make sure the environment variable PATH_SEPARATOR=; while building perl!\r
9echo Please check your DJGPP.ENV!\r
10goto end\r
11\r
12:path_sep_ok\r
13sh -c 'if test $PATH_EXPAND = "Y" -o $PATH_EXPAND = "y"; then exit 1; fi'\r
14if ERRORLEVEL 1 goto path_exp_ok\r
15echo Error:\a\r
16echo Make sure the environment variable PATH_EXPAND=Y while building perl!\r
17echo Please check your DJGPP.ENV!\r
18goto end\r
19\r
20:path_exp_ok\r
21sh -c '$SHELL -c "exit 128"'\r
22if ERRORLEVEL 128 goto shell_ok\r
23\r
24echo Error:\a\r
25echo The SHELL environment variable must be set to the full path of your sh.exe!\r
26goto end\r
27\r
28:shell_ok\r
29sh -c 'if test ! -d /tmp; then mkdir /tmp; fi'\r
30cp djgpp.[hc] config.over ..\r
31cd ..\r
32echo Running sed...\r
33sh djgpp/djgppsed.sh\r
34\r
35echo Running Configure...\r
36sh Configure %1 %2 %3 %4 %5 %6 %7 %8 %9\r
37:end\r