spogulis no
https://git.tukaani.org/xz.git
synced 2025-10-18 23:23:27 +00:00
Build: Workaround a POSIX shell detection problem on Solaris.
I don't know if the problem is in gnulib's gl_POSIX_SHELL macro or if xzgrep does something that isn't in POSIX. The workaround adds a special case for Solaris: if /usr/xpg4/bin/sh exists and gl_cv_posix_shell wasn't overriden on the configure command line, use that shell for xzgrep and other scripts. That shell is known to work and exists on most Solaris systems.
Šī revīzija ir iekļauta:
vecāks
93a1f61e89
revīzija
8238192652
10
configure.ac
10
configure.ac
@ -547,6 +547,16 @@ AC_SUBST([enable_path_for_scripts])
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
case $host_os in
|
||||||
|
solaris*)
|
||||||
|
# The gnulib POSIX shell macro below may pick a shell that
|
||||||
|
# doesn't work with xzgrep. Workaround by picking a shell
|
||||||
|
# that is known to work.
|
||||||
|
if test -z "$gl_cv_posix_shell" && test -x /usr/xpg4/bin/sh; then
|
||||||
|
gl_cv_posix_shell=/usr/xpg4/bin/sh
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
gl_POSIX_SHELL
|
gl_POSIX_SHELL
|
||||||
if test -z "$POSIX_SHELL" && test "x$enable_scripts" = xyes ; then
|
if test -z "$POSIX_SHELL" && test "x$enable_scripts" = xyes ; then
|
||||||
AC_MSG_ERROR([No POSIX conforming shell (sh) was found.])
|
AC_MSG_ERROR([No POSIX conforming shell (sh) was found.])
|
||||||
|
Notiek ielāde…
x
Atsaukties uz šo jaunā problēmā
Block a user