[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/5] Check for sdl-config before calling it
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 2/5] Check for sdl-config before calling it |
Date: |
Wed, 20 Jan 2010 18:27:22 +0100 |
Adapted Loïc Minier version to not use which.
cc: Loïc Minier <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
configure | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 71edaf5..c671918 100755
--- a/configure
+++ b/configure
@@ -996,9 +996,15 @@ fi
if $pkgconfig sdl --modversion >/dev/null 2>&1; then
sdlconfig="$pkgconfig sdl"
_sdlversion=`$sdlconfig --modversion 2>/dev/null | sed 's/[^0-9]//g'`
-else
+else if prog_exist "sdl-config"; then
sdlconfig='sdl-config'
_sdlversion=`$sdlconfig --version | sed 's/[^0-9]//g'`
+else
+ if test "$sdl" = "yes" ; then
+ feature_not_found "sdl"
+ fi
+ sdl=no
+fi
fi
sdl_too_old=no
--
1.6.6