]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
OpenSolaris/OpenIllumos: use /bin/bash if available for test scripts.
authorGert Doering <gert@greenie.muc.de>
Wed, 9 Oct 2019 12:00:43 +0000 (14:00 +0200)
committerGert Doering <gert@greenie.muc.de>
Thu, 10 Oct 2019 18:24:22 +0000 (20:24 +0200)
t_client.sh relies on "echo -e" and "echo -n" to produce nicely
looking output, which fails on Solaris /bin/sh - force SHELL=/bin/bash
on recent-enough Solaris variants that have it.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20191009120043.22692-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18914.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
configure.ac

index c7fd7a84d5994247bae4b9a92cb5239ce0123a94..4159e4509095c7a54b8d5d975b2b332b210b6187 100644 (file)
@@ -306,6 +306,7 @@ case "$host" in
                AC_DEFINE([TARGET_SOLARIS], [1], [Are we running on Solaris?])
                AC_DEFINE_UNQUOTED([TARGET_PREFIX], ["S"], [Target prefix])
                CPPFLAGS="$CPPFLAGS -D_XPG4_2"
+               test -x /bin/bash && SHELL="/bin/bash"
                ;;
        *-*-openbsd*)
                AC_DEFINE([TARGET_OPENBSD], [1], [Are we running on OpenBSD?])