script generated by pkg.m4 does not work when pkg-config is in a directory with spaces
Submitted by Jefferson Carpenter
Assigned to pkg..@..op.org
Link to original bug (#103368)
Description
Created attachment 134933 patch
When pkg-config is located in a directory with spaces, the script generated by pkg.m4 crashes whenever it tries to run the program.
For instance, when pkg-config is located in
C:\Program Files\Mono\bin\pkg-config.exe
I get the following messages from the configure script in cygwin:
./configure: line 2645: /cygdrive/c/Program: No such file or directory
I haven't tested, but this problem would also occur on Linux, should pkg-config ever be in a directory with spaces.
A patch is attached that should fix the problem with pkg-config. I have not looked for other commands in pkg.m4 that may have the same issue.
Attachment 134933, "patch":
0001-Don-t-crash-when-pkg-config-is-in-a-path-containing-.patch