diff options
author | Tollef Fog Heen <tfheen@err.no> | 2008-03-23 21:07:39 +0100 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2008-03-23 21:07:39 +0100 |
commit | 3954a7ee3e37cc270df867a19b1e3fb65ecc6386 (patch) | |
tree | af48bc101a09b3809c6b2ba8cfa66cc1e05a4b0b /check/check-libs-private | |
parent | cebb308ce4757a5d2ed5501157e8521a1f3ca999 (diff) |
2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-cflags, check/check-define-variable,
check/check-includedir, check/check-libs,
check/check-libs-private, check/check-requires-private: Replace
the crazy -d ~root check with a more proper way to just make sure
we are running under a POSIX shell. Thanks to Kjetil Torgrim
Homme for the tip about using getconf PATH.
Diffstat (limited to 'check/check-libs-private')
-rwxr-xr-x | check/check-libs-private | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/check/check-libs-private b/check/check-libs-private index 4e83c85..961962b 100755 --- a/check/check-libs-private +++ b/check/check-libs-private @@ -1,8 +1,8 @@ #! /bin/sh -# Do the Solaris Dance: -if [ ! -d ~root ] ; then - exec /usr/xpg4/bin/sh $0 "$@" +# Make sure we're POSIX +if [ "$PKG_CONFIG_SHELL_IS_POSIX" != "1" ]; then + PKG_CONFIG_SHELL_IS_POSIX=1 PATH=`getconf PATH` exec sh $0 "$@" fi set -e |