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 | |
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')
-rwxr-xr-x | check/check-cflags | 6 | ||||
-rwxr-xr-x | check/check-define-variable | 6 | ||||
-rwxr-xr-x | check/check-includedir | 6 | ||||
-rwxr-xr-x | check/check-libs | 6 | ||||
-rwxr-xr-x | check/check-libs-private | 6 | ||||
-rwxr-xr-x | check/check-requires-private | 7 |
6 files changed, 18 insertions, 19 deletions
diff --git a/check/check-cflags b/check/check-cflags index d561b92..9d517c8 100755 --- a/check/check-cflags +++ b/check/check-cflags @@ -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 diff --git a/check/check-define-variable b/check/check-define-variable index dd7f323..bf8aebe 100755 --- a/check/check-define-variable +++ b/check/check-define-variable @@ -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 diff --git a/check/check-includedir b/check/check-includedir index e4c234c..d78ec24 100755 --- a/check/check-includedir +++ b/check/check-includedir @@ -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 diff --git a/check/check-libs b/check/check-libs index ce878a6..32366a1 100755 --- a/check/check-libs +++ b/check/check-libs @@ -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 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 diff --git a/check/check-requires-private b/check/check-requires-private index 7d0f9a9..0f02fb4 100755 --- a/check/check-requires-private +++ b/check/check-requires-private @@ -1,10 +1,9 @@ #! /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 . ${srcdir}/common |