[TOOLS] Add more checks for devel packages.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 13 Nov 2006 14:01:17 +0000 (14:01 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 13 Nov 2006 14:01:17 +0000 (14:01 +0000)
On different systems I ran into different build failures that can be
made more understandable by adding appropriate -devel package
installation checks.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
tools/check/check_crypto_lib [new file with mode: 0755]
tools/check/check_hotplug [changed mode: 0644->0755]
tools/check/check_openssl_devel [new file with mode: 0755]
tools/check/check_x11_devel [new file with mode: 0755]

diff --git a/tools/check/check_crypto_lib b/tools/check/check_crypto_lib
new file mode 100755 (executable)
index 0000000..02e0d18
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+# CHECK-BUILD CHECK-INSTALL
+
+function error {
+    echo
+    echo "  *** Check for crypto library FAILED"
+    exit 1
+}
+
+set -e
+ldconfig -p | grep -q libcrypto.so || error
old mode 100644 (file)
new mode 100755 (executable)
diff --git a/tools/check/check_openssl_devel b/tools/check/check_openssl_devel
new file mode 100755 (executable)
index 0000000..fe9d010
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+# CHECK-BUILD
+
+function error {
+    echo
+    echo "  *** Check for openssl headers FAILED"
+    exit 1
+}
+
+set -e
+[ -e /usr/include/openssl/md5.h ] || error
diff --git a/tools/check/check_x11_devel b/tools/check/check_x11_devel
new file mode 100755 (executable)
index 0000000..7154331
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/bash
+# CHECK-BUILD
+
+function error {
+    echo
+    echo "  *** Check for x11 headers FAILED"
+    exit 1
+}
+
+set -e
+[ -e /usr/include/X11/keysymdef.h ] || error