]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
Do some more checks.
authorTim Shimmin <tes@sgi.com>
Mon, 27 Jun 2005 14:57:07 +0000 (14:57 +0000)
committerTim Shimmin <tes@sgi.com>
Mon, 27 Jun 2005 14:57:07 +0000 (14:57 +0000)
Merge of master-melb:xfs-cmds:22995a by kenmcd.

  Do some more checks.

make_irix

index 1578520a88a5799ec3bc8217acb3e717e43d4af0..f079a233b74bbe0d0543d8a52f7caaffe8e867b6 100755 (executable)
--- a/make_irix
+++ b/make_irix
 #
 #
 
-# check have root/toolroot set
 error=false
+
+# Do initial checks
+
+# check have root/toolroot set
 if [ -z "$TOOLROOT" ]; then
        echo "TOOLROOT needs to be set to a populated IRIX toolroot"
        error=true
@@ -45,6 +48,25 @@ if [ -z "$ROOT" ]; then
        echo "ROOT needs to be set to a populated IRIX root"
        error=true
 fi 
+
+# check we have c compiler license
+if ! grep -iq '^feature cc' /var/flexlm/license.dat; then
+       echo "Unable to find cc license for IRIX"
+       echo "Get license: http://www.csd.sgi.com/prod/software/swl/keyrequest.html"
+       error=true
+fi
+
+# check we have dev.sw.lib installed
+# needed by ld32 even though we have $ROOT
+if versions dev.sw.lib | grep -q dev.sw.lib; then
+       :
+else
+       echo "dev.sw.lib is not installed"
+       echo "Install from irix-6.5-development-libraries-1/dist"
+       error=true
+fi
+
+# any check failures then exit out
 $error && exit 1
 
 # root/toolroot paths
@@ -74,7 +96,7 @@ $error && exit 1
 # force a full configure
 if [ $# -eq 1 ]; then
        if [ $1 = "-f" ]; then
-               rm -f configure include/builddefs
+               rm -f config.cache configure include/builddefs
                shift
        fi
 fi