[vlc-devel] commit: Add a test for ggi (Christophe Mutricy )

git version control git at videolan.org
Sat Sep 13 00:56:01 CEST 2008


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Fri Sep 12 15:48:18 2008 +0100| [d14bfaa2f6dc8499d21ed77ecdb11364fd7aa354] | committer: Christophe Mutricy 

Add a test for ggi

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d14bfaa2f6dc8499d21ed77ecdb11364fd7aa354
---

 configure.ac |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index 693a1a1..7d300c9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4411,15 +4411,19 @@ AC_ARG_ENABLE(ggi,
   [  --enable-ggi            GGI support (default disabled)])
 if test "${enable_ggi}" = "yes"
 then
-  VLC_ADD_PLUGIN([ggi])
-  VLC_ADD_LIBS([ggi],[-lggi])
-  AC_ARG_WITH(ggi,
-    [    --with-ggi=PATH       path to libggi],
-    [ if test "${with_ggi}" != "no" -a -n "${with_ggi}"
-      then
-        VLC_ADD_CPPFLAGS([ggi],[-I${with_ggi}/include])
-        VLC_ADD_LIBS([ggi],[-L${with_ggi}/lib])
-      fi ])
+  AC_CHECK_HEADER([ggi/ggi.h],[
+    VLC_ADD_PLUGIN([ggi])
+    VLC_ADD_LIBS([ggi],[-lggi])
+    AC_ARG_WITH(ggi,
+      [    --with-ggi=PATH       path to libggi],
+      [ if test "${with_ggi}" != "no" -a -n "${with_ggi}"
+        then
+          VLC_ADD_CPPFLAGS([ggi],[-I${with_ggi}/include])
+          VLC_ADD_LIBS([ggi],[-L${with_ggi}/lib])
+        fi ])
+    ],[
+       AC_MSG_ERROR([LibGGI development files can't be found])
+    ])
 fi
 
 dnl




More information about the vlc-devel mailing list