Skip to content

Commit 96fac34

Browse files
committed
Win32: Accept slashes in --with-opt-dir argument
1 parent 029174a commit 96fac34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

win32/configure.bat

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@echo off
22
@setlocal disabledelayedexpansion
3+
set PROMPT=$E[94m+$E[m$S
34
set witharg=
45

56
for %%I in (%0) do if /%%~dpI/ == /%CD%\/ (
@@ -23,6 +24,8 @@ echo>%config_make% # CONFIGURE
2324
:loop
2425
set opt=%1
2526
if "%1" == "" goto :end
27+
if "%1" == "--debug-configure" (echo on & shift & goto :loop)
28+
if "%1" == "--no-debug-condigure" (echo off & shift & goto :loop)
2629
if "%1" == "--prefix" goto :prefix
2730
if "%1" == "--srcdir" goto :srcdir
2831
if "%1" == "srcdir" goto :srcdir
@@ -243,7 +246,8 @@ goto :loop ;
243246
:opt-dir
244247
set opt=%~2
245248
for %%I in (%opt:;= %) do (
246-
pushd %%I && (
249+
set d=%%I
250+
call pushd %%d:/=\%% && (
247251
call set XINCFLAGS=%%XINCFLAGS%% -I%%CD:\=/%%/include
248252
call set XLDFLAGS=%%XLDFLAGS%% -libpath:%%CD:\=/%%/lib
249253
popd

0 commit comments

Comments
 (0)