Skip to contentSkip to conversation

Fail the build unless libSDL is installed.

PATCH New Arun Sharma 1 participant 1 message Jun 30, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fail the build unless libSDL is installed.

Fail the build unless libSDL is installed.

tools/check/check_sdl_lib new file +10 -0
diff -r a7b2638827fa -r be004ea3a553 tools/check/check_sdl_lib
@@ -0,0 +1,10 @@
+#!/bin/bash
+# CHECK-BUILD CHECK-INSTALL
+
+function error {
+        echo 'Check for SDL library failed.'
+        exit 1
+}
+
+set -e
+ldconfig -p | grep libSDL-.*so || error