make maintainer-clean removes these, and we want a clean orig.tar.gz
[debian/gnuradio] / gr-howto-write-a-block / config / gr_standalone.m4
index 593583e2dde56f23f64f047113af335285d84bfb..3f8ddf1d62f74c213d43582f20622602a8b794eb 100644 (file)
@@ -124,4 +124,12 @@ m4_define([GR_STANDALONE],
     [enable_python=yes]  
   )
   AM_CONDITIONAL([PYTHON], [test x$enable_python = xyes])
+
+  dnl Define where to look for cppunit includes and libs
+  dnl sets CPPUNIT_CFLAGS and CPPUNIT_LIBS
+  dnl Try using pkg-config first, then fall back to cppunit-config.
+  PKG_CHECK_EXISTS(cppunit,
+    [PKG_CHECK_MODULES(CPPUNIT, cppunit >= 1.9.14)],
+    [AM_PATH_CPPUNIT([1.9.14],[],
+                    [AC_MSG_ERROR([GNU Radio requires cppunit.  Stop])])])
 ])