Skip to content

Commit bc2108b

Browse files
komhhpax
authored andcommitted
autogen.sh: Use $PATH_SEPARATOR as a path separator of ACLOCAL_PATH
A path separator of ACLOCAL_PATH on OS/2 is ';' not ':'. So use $PATH_SEPARATOR instead of hard-coded ':'. Signed-off-by: KO Myung-Hun <komh78@gmail.com>
1 parent 95f866d commit bc2108b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

autogen.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,14 @@ fi
4646
mv -f autoconf/aclocal.m4 autoconf/aclocal.m4.old
4747
mkdir -p autoconf/m4.old autoconf/m4
4848
mv -f autoconf/m4/*.m4 autoconf/m4.old/ 2>/dev/null || true
49-
ACLOCAL_PATH="${ACLOCAL_PATH}${ACLOCAL_PATH:+:}`pwd`/autoconf/m4.old"
49+
if ${PATH_SEPARATOR+false} :; then
50+
PATH_SEPARATOR=:
51+
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
52+
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
53+
PATH_SEPARATOR=';'
54+
}
55+
fi
56+
ACLOCAL_PATH="${ACLOCAL_PATH}${ACLOCAL_PATH:+${PATH_SEPARATOR}}`pwd`/autoconf/m4.old"
5057
export ACLOCAL_PATH
5158
"$ACLOCAL" --install --output=autoconf/aclocal.m4 -I autoconf/m4
5259
if test ! -f autoconf/aclocal.m4; then

0 commit comments

Comments
 (0)