Add GNU autotools scripts for iLBC

This commit is contained in:
bossiel 2012-12-02 18:30:50 +00:00
parent 56a66ad5a2
commit bb2a188e50
4 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,30 @@
lib_LTLIBRARIES = libiLBC.la
libiLBC_la_SOURCES = \
anaFilter.c\
constants.c\
createCB.c\
doCPLC.c\
enhancer.c\
filter.c\
FrameClassify.c\
gainquant.c\
getCBvec.c\
helpfun.c\
hpInput.c\
hpOutput.c\
iCBConstruct.c\
iCBSearch.c\
iLBC_decode.c\
iLBC_encode.c\
LPCdecode.c\
LPCencode.c\
lsf.c\
packing.c\
StateConstructW.c\
StateSearchW.c\
syntFilter.c
libiLBC_la_LDFLAGS = $LDFLAGS -no-undefined
libiLBC_la_HEADERS = *.h
libiLBC_ladir = $(includedir)/ilbc

View File

@ -0,0 +1,22 @@
echo libtoolize
if [ `(uname -s) 2>/dev/null` == 'Darwin' ]
then
glibtoolize --copy --force
else
libtoolize --copy --force
fi
echo "aclocal"
aclocal
echo "autoheader"
autoheader
echo "create NEWS, README, AUTHORS and ChangeLog"
touch NEWS README AUTHORS ChangeLog
echo "autoreconf"
autoreconf -i
echo "automake"
automake -a

View File

@ -0,0 +1,22 @@
AC_PREREQ([2.0])
AC_INIT(libiLBC, 0.1, diopmamadou(at)doubango(DOT)org)
AM_INIT_AUTOMAKE
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([anaFilter.c])
dnl find suitable C compiler
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_LIBTOOL_WIN32_DLL
AC_PROG_SED
AC_PROG_MAKE_SET
AC_OUTPUT(
Makefile
)

View File

@ -0,0 +1,26 @@
# Code from http://www.loudhush.ro/Loudhush_iaxclient_iLBC.html
BEGIN { srcname = "nothing"; }
{ if (/^A\.[0-9][0-9]*\.* *[a-zA-Z][a-zA-Z_0-9]*\.[ch]/) {
if (srcname != "nothing")
close(srcname);
srcname = $2;
printf("creating source file %s\n", srcname);
}else if (srcname != "nothing") {
if (/Andersen,* *et* *al\./)
printf("skipping %s\n", $0);
else if (/^L/)
printf("skipping2 %s\n", $0);
else if (/Internet Low Bit Rate Codec *December 2004/)
printf("skipping3 %s\n", $0);
else if (/Authors' *Addresses/){
close(srcname);
exit;}
else
print $0 >> srcname;
}
}
END {
printf("ending file %s\n", srcname);
close(srcname);
}