andrea montefusco | 2 Sep 18:11 2011
Picon

Re: Small bug in autoconf package

On Fri, Sep 2, 2011 at 2:26 AM, David Rowe <david@...> wrote:
> Thank you Andrea I have applied that patch and checked into SVN.

Hi David,
many thanks for fixing the SVN. I already changed the README in our
ghpsdr3 project on github.
In the meantime I was trying to develop a binary debian package on PPA
for libcodec2 but I discovered that there are some problems on

make dist

and

make distcheck

commands. The first one ends without errors but the tarball generated
is not able to generate any executable, while the second one fails.

Therefore I developed  a small patch for several Makefile.am files, as follows:

Index: unittest/Makefile.am
===================================================================
--- unittest/Makefile.am	(revision 288)
+++ unittest/Makefile.am	(working copy)
 <at>  <at>  -1,4 +1,4  <at>  <at> 
-AM_CFLAGS = -I../src -fPIC -g  -DFLOATING_POINT -DVAR_ARRAYS -O2
+AM_CFLAGS = -I$(top_srcdir)/src -fPIC -g  -DFLOATING_POINT -DVAR_ARRAYS -O2
 AUTOMAKE_OPTS = gnu
 NAME = libcodec2
 AM_CPPFLAGS = $(AM_CFLAGS)
Index: src/Makefile.am
===================================================================
--- src/Makefile.am	(revision 288)
+++ src/Makefile.am	(working copy)
 <at>  <at>  -3,7 +3,7  <at>  <at> 
 NAME = codec2
 AM_CPPFLAGS = $(AM_CFLAGS)

-D=codebook
+D=$(top_srcdir)/src/codebook

 # lsp quantisers

 <at>  <at>  -41,7 +41,7  <at>  <at> 
   $D/dlsp3.txt \
   $D/dlsp4.txt \
   $D/dlsp5.txt \
-  ../unittest/lspd678910.txt
+  $(top_srcdir)/unittest/lspd678910.txt

 noinst_PROGRAMS = generate_codebook

 <at>  <at>  -99,7 +99,9  <at>  <at> 
 lpc.h \
 nlp.h  \
 postfilter.h \
-sine.h
+sine.h \
+codec2_internal.h \
+glottal.c

 bin_PROGRAMS = c2demo c2enc c2dec c2sim

Index: Makefile.am
===================================================================
--- Makefile.am	(revision 288)
+++ Makefile.am	(working copy)
 <at>  <at>  -65,30 +65,40  <at>  <at> 
 wav/hts2a_g729a.wav \
 wav/m2400.wav \
 wav/morig_speex_8k.wav \
-src/globals.c \
-unittest/lsp2.txt \
-unittest/lsp7.txt \
-unittest/lspd78.txt \
-unittest/lsp3.txt \
-unittest/lsp8.txt \
-unittest/lspd910.txt \
-unittest/lsp4.txt \
-unittest/lsp9.txt \
-unittest/lsp10.txt \
-unittest/lsp5.txt \
-unittest/lspd123.txt \
-unittest/lsp1.txt \
-unittest/lsp6.txt \
-unittest/lspd456.txt \
-src/codebook/lsp1.txt \
-src/codebook/lsp2.txt \
-src/codebook/lsp3.txt \
-src/codebook/lsp4.txt \
-src/codebook/lsp5.txt \
-src/codebook/lsp6.txt \
-src/codebook/lsp7.txt \
-src/codebook/lsp8.txt \
-src/codebook/lsp9.txt \
-src/codebook/lsp10.txt
+$(top_srcdir)/unittest/lsp2.txt \
+$(top_srcdir)/unittest/lsp7.txt \
+$(top_srcdir)/unittest/lspd78.txt \
+$(top_srcdir)/unittest/lsp3.txt \
+$(top_srcdir)/unittest/lsp8.txt \
+$(top_srcdir)/unittest/lspd910.txt \
+$(top_srcdir)/unittest/lsp4.txt \
+$(top_srcdir)/unittest/lsp9.txt \
+$(top_srcdir)/unittest/lsp10.txt \
+$(top_srcdir)/unittest/lsp5.txt \
+$(top_srcdir)/unittest/lsp1.txt \
+$(top_srcdir)/unittest/lsp6.txt \
+$(top_srcdir)/unittest/lspd456.txt \
+$(top_srcdir)/unittest/lspd678910.txt \
+$(top_srcdir)/src/codebook/lsp1.txt \
+$(top_srcdir)/src/codebook/lsp2.txt \
+$(top_srcdir)/src/codebook/lsp3.txt \
+$(top_srcdir)/src/codebook/lsp4.txt \
+$(top_srcdir)/src/codebook/lsp5.txt \
+$(top_srcdir)/src/codebook/lsp6.txt \
+$(top_srcdir)/src/codebook/lsp7.txt \
+$(top_srcdir)/src/codebook/lsp8.txt \
+$(top_srcdir)/src/codebook/lsp9.txt \
+$(top_srcdir)/src/codebook/lsp10.txt \
+$(top_srcdir)/src/codebook/dlsp1.txt \
+$(top_srcdir)/src/codebook/dlsp2.txt \
+$(top_srcdir)/src/codebook/dlsp3.txt \
+$(top_srcdir)/src/codebook/dlsp4.txt \
+$(top_srcdir)/src/codebook/dlsp5.txt \
+$(top_srcdir)/src/codebook/dlsp6.txt \
+$(top_srcdir)/src/codebook/dlsp7.txt \
+$(top_srcdir)/src/codebook/dlsp8.txt \
+$(top_srcdir)/src/codebook/dlsp9.txt \
+$(top_srcdir)/src/codebook/dlsp10.txt

+
 SUBDIRS = src unittest

Ciao

  *am*

--

-- 
Andrea Montefusco IW0HDV


Gmane