626 |
# Still very private as its interface looks quite bad. |
# Still very private as its interface looks quite bad. |
627 |
# |
# |
628 |
# `$as_dummy' forces splitting on constant user-supplied paths. |
# `$as_dummy' forces splitting on constant user-supplied paths. |
629 |
# POSIX.2 word splitting is done only on the output of word |
# POSIX.2 field splitting is done only on the result of word |
630 |
# expansions, not every word. This closes a longstanding sh security |
# expansions, not on literal text. This closes a longstanding sh security |
631 |
# hole. Optimize it away when not needed. |
# hole. Optimize it away when not needed, i.e., if there are no literal |
632 |
|
# path separators. |
633 |
m4_define([_AS_PATH_WALK], |
m4_define([_AS_PATH_WALK], |
634 |
[AS_REQUIRE([_AS_PATH_SEPARATOR_PREPARE])dnl |
[AS_REQUIRE([_AS_PATH_SEPARATOR_PREPARE])dnl |
635 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
636 |
AS_LITERAL_IF(m4_default([$1], [$PATH]), |
m4_bmatch([$1], [[:;]], |
637 |
[as_dummy="$1" |
[as_dummy="$1" |
638 |
for as_dir in $as_dummy], |
for as_dir in $as_dummy], |
639 |
[for as_dir in m4_default([$1], [$PATH])]) |
[for as_dir in m4_default([$1], [$PATH])]) |