summaryrefslogtreecommitdiff
path: root/check/check-define-variable
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2005-08-22 10:41:08 +0000
committerTollef Fog Heen <tfheen@err.no>2005-08-22 10:41:08 +0000
commit145dba778d2e5fbe06a08079f90b748b8f24a9fb (patch)
treec8c8412d511090903781523e717a73ab19900e0c /check/check-define-variable
parent924949891f22e51e48f14d619bfd30a73f84102d (diff)
downloadpkg-config-145dba778d2e5fbe06a08079f90b748b8f24a9fb.tar.gz
Add solaris workaround for tests
/bin/sh on solaris isn't POSIX compliant, so we just exec a POSIX shell on Solaris.
Diffstat (limited to 'check/check-define-variable')
-rwxr-xr-xcheck/check-define-variable5
1 files changed, 5 insertions, 0 deletions
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