From: Tollef Fog Heen Date: Mon, 22 Aug 2005 10:41:08 +0000 (+0000) Subject: Add solaris workaround for tests X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=145dba778d2e5fbe06a08079f90b748b8f24a9fb;p=pkg-config Add solaris workaround for tests /bin/sh on solaris isn't POSIX compliant, so we just exec a POSIX shell on Solaris. --- diff --git a/check/check-cflags b/check/check-cflags index 46af744..d561b92 100755 --- a/check/check-cflags +++ b/check/check-cflags @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common diff --git a/check/check-define-variable b/check/check-define-variable index e0e0880..dd7f323 100755 --- a/check/check-define-variable +++ b/check/check-define-variable @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common diff --git a/check/check-libs b/check/check-libs index 0572e9a..ce878a6 100755 --- a/check/check-libs +++ b/check/check-libs @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common diff --git a/check/check-libs-private b/check/check-libs-private index 0678fd7..4e83c85 100755 --- a/check/check-libs-private +++ b/check/check-libs-private @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common diff --git a/check/check-requires-private b/check/check-requires-private index 744d790..234b8ed 100755 --- a/check/check-requires-private +++ b/check/check-requires-private @@ -1,5 +1,10 @@ #! /bin/sh +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + set -e . ${srcdir}/common