Fixing up missing stuff.

git-svn-id: http://op25.osmocom.org/svn/trunk@237 65a5c917-d112-43f1-993d-58c26a4786be
This commit is contained in:
stevie 2011-01-07 12:03:57 +00:00
parent de093a050d
commit 1838b4f88c
3 changed files with 117 additions and 0 deletions

View File

@ -0,0 +1,65 @@
#
# Copyright 2001 Free Software Foundation, Inc.
#
# This file is part of OP25
#
# OP25 is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# OP25 is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OP25; see the file COPYING. If not, write to the Free
# Software Foundation, Inc., 51 Franklin Street, Boston, MA
# 02110-1301, USA.
#
include $(top_srcdir)/Makefile.common
# Install m4 macros in this directory
m4datadir = $(datadir)/aclocal
# List your m4 macros here
m4macros = \
acx_pthread.m4 \
bnv_have_qt.m4 \
cppunit.m4 \
gr_boost.m4 \
gr_check_createfilemapping.m4 \
gr_check_usrp.m4 \
gr_check_mc4020.m4 \
gr_check_shm_open.m4 \
gr_doxygen.m4 \
gr_gprof.m4 \
gr_libgnuradio_core_extra_ldflags.m4 \
gr_no_undefined.m4 \
gr_omnithread.m4 \
gr_pwin32.m4 \
gr_python.m4 \
gr_require_mc4020.m4 \
gr_scripting.m4 \
gr_set_md_cpu.m4 \
gr_swig.m4 \
gr_sysv_shm.m4 \
gr_x86_64.m4 \
lf_cc.m4 \
lf_cxx.m4 \
lf_warnings.m4 \
lf_x11.m4 \
mkstemp.m4 \
onceonly.m4 \
pkg.m4 \
usrp_fusb_tech.m4 \
usrp_libusb.m4 \
usrp_sdcc.m4
# Don't install m4 macros anymore
# m4data_DATA = $(m4macros)
EXTRA_DIST = $(m4macros)

View File

@ -37,6 +37,8 @@ AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_PATH_PROG([RM_PROG], [rm])
AC_PROG_CXX
AM_PATH_PYTHON([2.5])
AC_LIBTOOL_WIN32_DLL
AC_ENABLE_SHARED dnl do build shared libraries

View File

@ -0,0 +1,50 @@
#!/bin/sh
# All this strange PYTHONPATH manipulation is required to run our
# tests using our just built shared library and swig-generated python
# code prior to installation.
# build tree == src tree unless you're doing a VPATH build.
# If you don't know what a VPATH build is, you're not doing one. Relax...
prefix=@prefix@
exec_prefix=@exec_prefix@
# Where to look in the build tree for our shared library
libbld=@abs_top_builddir@/src/lib
# Where to look in the src tree for swig generated python code
libsrc=@abs_top_srcdir@/src/lib
# Where to look in the src tree for hand written python code
py=@abs_top_srcdir@/src/python
# Where to look for installed GNU Radio python modules
# FIXME this is wrong on a distcheck. We really need to ask gnuradio-core
# where it put its python files.
installed_pythondir=@pythondir@
installed_pyexecdir=@pyexecdir@
PYTHONPATH="$libbld:$libbld/.libs:$libsrc:$py:$installed_pythondir:$installed_pyexecdir:$PYTHONPATH"
#PYTHONPATH="$libbld:$libbld/.libs:$libsrc:$py:$installed_pythondir:$installed_pyexecdir"
export PYTHONPATH
#
# This is the simple part...
# Run everything that matches qa_*.py and return the final result.
#
ok=yes
for file in @srcdir@/qa_*.py
do
if ! $file
then
ok=no
fi
done
if [ $ok = yes ]
then
exit 0
else
exit 1
fi