]> granicus.if.org Git - curl/commit
configure: set PATH_SEPARATOR to colon for PATH w/o separator
authorDaniel Stenberg <daniel@haxx.se>
Thu, 25 Jan 2018 22:30:49 +0000 (23:30 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Jan 2018 23:01:18 +0000 (00:01 +0100)
commitb7db2842666286bb66111b1da46e707bf5d417b4
tree745e3c23e370c21ee9c065050bc5f9020d6aa864
parent4272a0b0fc49a1ac0ceab5c4a365c9f6ab8bf8e2
configure: set PATH_SEPARATOR to colon for PATH w/o separator

The logic tries to figure out what the path separator in the $PATH
variable is, but if there's only one directory in the $PATH it
fails. This change make configure *guess* on colon instead of erroring
out, simply because that is probably the more common character.

PATH_SEPARATOR can always be set by the user to override the guessing.

(tricky bug to reproduce, as in my case for example the configure script
requires binaries in more than one directory so passing in a PATH with a
single dir fails.)

Reported-by: Earnestly on github
Fixes #2202
Closes #2265
m4/zz40-xc-ovr.m4