Merged r7478:7608 from michaelld/t186 into trunk. Adds ability to compile GNU Radio...
[debian/gnuradio] / config / grc_gr_video_sdl.m4
index 405feb0ea2016dba01e6e3f1550683874ec66f94..74aa5c046c9b7f2e09b1114c2f348db923d6e4f7 100644 (file)
@@ -1,4 +1,4 @@
-dnl Copyright 2001,2002,2003,2004,2005,2006 Free Software Foundation, Inc.
+dnl Copyright 2001,2002,2003,2004,2005,2006,2008 Free Software Foundation, Inc.
 dnl 
 dnl This file is part of GNU Radio
 dnl 
@@ -27,6 +27,12 @@ AC_DEFUN([GRC_GR_VIDEO_SDL],[
     ])
     
     passed=yes
+    # Don't do gr-video-sdl if gnuradio-core skipped
+    if test x$gnuradio_core_skipped = xyes; then
+        AC_MSG_RESULT([Component gr-video-sdl requires gnuradio-core, which is not being built or specified via pre-installed files.])
+       passed=no
+    fi
+    # Don't do gr-video-sdl if the SDL library is unavailable.
     SDL_VERSION=1.2.0
     AM_PATH_SDL($SDL_VERSION,[],
         [passed=no;AC_MSG_RESULT([gr-video-sdl requires library sdl, not found or failed test.])])