Skip to contentSkip to conversation

Fail the build unless libSDL is installed.

PATCH In review Arun Sharma 2 participants 2 messages Jul 1, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 2/5 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
#1 lore raw
Quoted 3 lines · Arun Sharma

Fail the build unless libSDL is installed.

Display a warning, and don't build the device model, if there's no libsdl. Many people won't have libsdl but also don't care about the vmx device models.

-- Keir