diff options
author | jcorgan | 2008-11-03 20:08:39 +0000 |
---|---|---|
committer | jcorgan | 2008-11-03 20:08:39 +0000 |
commit | 7ea75f891baabf0612f09e14353552bd33413dc8 (patch) | |
tree | 4d1471e49e3ea8d2189979920b41840849026c19 /config | |
parent | fd5782d6940b262c3db553c6ba6afcf78954a4fa (diff) | |
download | gnuradio-7ea75f891baabf0612f09e14353552bd33413dc8.tar.gz gnuradio-7ea75f891baabf0612f09e14353552bd33413dc8.tar.bz2 gnuradio-7ea75f891baabf0612f09e14353552bd33413dc8.zip |
Merged r9881:9917 from jcorgan/deb-wip into trunk. Updates Debian/Ubuntu packaging system to build trunk code on Ubuntu 8.10.
Several new trunk components still need debs created.
Impact on non-packaging code:
* Renamed libgr_audio_alsa.so to libgnuradio-audio-alsa.so
* Renamed libusrp_inband.so to libusrp-inband.so
* Added PYTHON_CHECK_MODULE to build system to simplify Python dependency verification
Packaging code updates:
* Updated build-depends and package dependencies to be current with trunk
* Added package for libgruel and libgruel-dev
* Renamed library packages to use simplified names, removing the 0 or 0c2a suffix. This may not follow Debian policy, but we can revisit this if we ever go into official Debian or Ubuntu.
* Remove gr-comedi from packaging
* Restructured sections to eliminate 'contrib'. Since we're not official Debian, we don't need to deal with the sdcc-nf issue.
* Consolidated usrp firmware packages into corresponding main packages (same as previous).
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9918 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'config')
-rw-r--r-- | config/gr_python.m4 | 26 | ||||
-rw-r--r-- | config/grc_gr_audio_alsa.m4 | 1 | ||||
-rw-r--r-- | config/grc_gr_comedi.m4 | 2 | ||||
-rw-r--r-- | config/grc_gr_wxgui.m4 | 10 | ||||
-rw-r--r-- | config/grc_grc.m4 | 15 | ||||
-rw-r--r-- | config/grc_usrp.m4 | 2 |
6 files changed, 34 insertions, 22 deletions
diff --git a/config/gr_python.m4 b/config/gr_python.m4 index 6c862bba3..ea6df49c4 100644 --- a/config/gr_python.m4 +++ b/config/gr_python.m4 @@ -126,3 +126,29 @@ print path AC_SUBST(PYTHON_LDFLAGS) fi ]) + +# PYTHON_CHECK_MODULE +# +# Determines if a particular Python module can be imported +# +# $1 - module name +# $2 - module description +# $3 - action if found +# $4 - action if not found + +AC_DEFUN([PYTHON_CHECK_MODULE],[ + AC_MSG_CHECKING([for $2]) + python_cmd='import sys +try: + import $1 +except: + sys.exit(1)' + + if ! $PYTHON -c "$python_cmd" ; then + AC_MSG_RESULT([no]) + $4 + else + AC_MSG_RESULT([yes]) + $3 + fi +]) diff --git a/config/grc_gr_audio_alsa.m4 b/config/grc_gr_audio_alsa.m4 index f5d6eb32e..9c653c1c2 100644 --- a/config/grc_gr_audio_alsa.m4 +++ b/config/grc_gr_audio_alsa.m4 @@ -35,6 +35,7 @@ AC_DEFUN([GRC_GR_AUDIO_ALSA],[ AC_CONFIG_FILES([ \ gr-audio-alsa/Makefile \ + gr-audio-alsa/gr-audio-alsa.pc \ gr-audio-alsa/src/Makefile \ gr-audio-alsa/src/run_tests \ ]) diff --git a/config/grc_gr_comedi.m4 b/config/grc_gr_comedi.m4 index 531cafd2a..2bdfacbc0 100644 --- a/config/grc_gr_comedi.m4 +++ b/config/grc_gr_comedi.m4 @@ -29,7 +29,7 @@ AC_DEFUN([GRC_GR_COMEDI],[ dnl no : otherwise if test $passed = yes; then dnl Don't do gr-comedi if the 'comedi' library is unavailable. - PKG_CHECK_MODULES(COMEDI, comedilib >= 0.7,[], + PKG_CHECK_MODULES(COMEDI, comedilib < 0.8,[], [passed=no;AC_MSG_RESULT([gr-comedi requires comedilib, not found.])]) fi diff --git a/config/grc_gr_wxgui.m4 b/config/grc_gr_wxgui.m4 index 476c431d2..30c9b438b 100644 --- a/config/grc_gr_wxgui.m4 +++ b/config/grc_gr_wxgui.m4 @@ -29,14 +29,8 @@ AC_DEFUN([GRC_GR_WXGUI],[ dnl yes : if the --enable code passed muster and all dependencies are met dnl no : otherwise if test $passed = yes; then - if ! ${PYTHON} -c 'import wx'; then - AC_MSG_RESULT([gr-wxgui requires wxPython, not found.]) - passed=no - fi - if ! ${PYTHON} -c 'import numpy'; then - AC_MSG_RESULT([gr-wxgui requires numpy (Numeric Python), not found.]) - passed=no - fi + PYTHON_CHECK_MODULE([wx],[Python wxWidgets wrappers],[],[passed=no]) + PYTHON_CHECK_MODULE([numpy],[Numeric Python extensions],[],[passed=no]) fi AC_CONFIG_FILES([ \ diff --git a/config/grc_grc.m4 b/config/grc_grc.m4 index b5ae52cee..8dfbe2399 100644 --- a/config/grc_grc.m4 +++ b/config/grc_grc.m4 @@ -29,18 +29,9 @@ AC_DEFUN([GRC_GRC],[ dnl # test python dependencies dnl ######################################## if test $passed = yes; then - if ! ${PYTHON} -c 'import Cheetah'; then - AC_MSG_RESULT([grc requires the Python Cheetah templates installed, not found.]) - passed=no - fi - if ! ${PYTHON} -c 'import pygtk'; then - AC_MSG_RESULT([grc requires Python GTK wrappers installed, not found.]) - passed=no - fi - if ! ${PYTHON} -c 'import lxml'; then - AC_MSG_RESULT([grc requires libxml2 and libxslt wrappers (lxml), not found.]) - passed=no - fi + PYTHON_CHECK_MODULE([Cheetah],[Python Cheetah templates],[],[passed=no]) + PYTHON_CHECK_MODULE([pygtk],[Python GTK wrappers],[],[passed=no]) + PYTHON_CHECK_MODULE([lxml],[Python XML wrappers],[],[passed=no]) fi dnl ######################################## diff --git a/config/grc_usrp.m4 b/config/grc_usrp.m4 index f810748ab..6783e99a9 100644 --- a/config/grc_usrp.m4 +++ b/config/grc_usrp.m4 @@ -61,7 +61,7 @@ AC_DEFUN([GRC_USRP],[ -I\${abs_top_srcdir}/usrp/firmware/include" usrp_LA="\${abs_top_builddir}/usrp/host/lib/legacy/libusrp.la" usrp_inband_INCLUDES="-I\${abs_top_srcdir}/usrp/host/lib/inband" - usrp_inband_LA="\${abs_top_builddir}/usrp/host/lib/inband/libusrp_inband.la" + usrp_inband_LA="\${abs_top_builddir}/usrp/host/lib/inband/libusrp-inband.la" fi dnl Include the usrp-inband INCLUDES and LA |