]> err.no Git - pkg-config/commitdiff
Add solaris workaround for tests
authorTollef Fog Heen <tfheen@err.no>
Mon, 22 Aug 2005 10:41:08 +0000 (10:41 +0000)
committerTollef Fog Heen <tfheen@err.no>
Mon, 22 Aug 2005 10:41:08 +0000 (10:41 +0000)
/bin/sh on solaris isn't POSIX compliant, so we just exec a POSIX
shell on Solaris.

check/check-cflags
check/check-define-variable
check/check-libs
check/check-libs-private
check/check-requires-private

index 46af744def717673150664221498f5625fb88eba..d561b92d03352c1518dedaf1a8f057034e7015d4 100755 (executable)
@@ -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
index e0e08806f715c5c80978bffa9d9a5ce6d531909a..dd7f3238134155682d2a11b629d3963a6bf4cdf6 100755 (executable)
@@ -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
index 0572e9a1cfb6e9790b1d562ddd99bd04a25ddce9..ce878a6e3ff6a76ff3075202becedbcf7df110d2 100755 (executable)
@@ -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
index 0678fd7b0c225182578de829e7858f2f013f5d6e..4e83c85e3c5f50b3d926cf395598d3dca588fb26 100755 (executable)
@@ -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
index 744d7900a4816a15362e27ec4b4d86a2548b4e92..234b8ed31c1cfba116726ecab2cffc0599432c4d 100755 (executable)
@@ -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