Commit graph

74 commits

Author SHA1 Message Date
Ralph Giles
119d53c94d Bump soname version to match the 1.0.x branch.
Library soname versioning is something we normally change
only right before each release. However, with 1.0.2 being
released from the 1.0.x branch with 3.0.3, it makes sense
to make the same update here. That way when we do a new
release from master we can just increment again and have
the version properly reflect ranges relative to the stable
branch.
2012-12-05 15:57:45 -08:00
Ralph Giles
def001bd12 Remove obsolete check for endianness.
We don't ever use the WORDS_BIGENDIAN cpp symbol in our code.
2012-11-29 14:59:23 -08:00
Ralph Giles
14454c49a8 Enable maintainer mode by default on automake 1.11
Passing 'enable' as an argument to AM_MAINTAINER_MODE flips the
default to enabled, rather than disabled until automake 1.11.
This is a safer default for a developer-oriented library.

./configure --disable-maintainer-mode is still available for
packagers who what to preserve the upstream build distribution.

On earlier automake versions, the argument appears to have no
effect, so there is no behaviour change for developers using
older autotools.

Based on a patch for opusfile by ron@debian.org.
2012-11-14 12:42:19 -08:00
Ron
ff16ab098e Just fix opus-uninstalled.pc instead of tweaking the build dir
Doing it this way means it's only the weird corner case that actually
pays for being weird, and we don't litter the build dir with an extra
link that normal builds really don't need at all.

It also avoids the problem of platforms where LN_S isn't well defined.
2012-09-19 10:09:32 -07:00
Ron
c40d5004dd Link the include dir into out-of-tree build dirs
Mostly this is for people building other things using an uninstalled
opus tree so that the opus-uninstalled.pc will return a working -I
with --cflags when PKG_CONFIG_PATH is set to point to the build dir.

The version of AC_OUTPUT that takes parameters has long been
deprecated now, and replaced by AC_CONFIG_* macros, so pass them
with AC_CONFIG_FILES, since we're now using AC_CONFIG_COMMANDS
to do the above.
2012-09-18 16:03:56 -07:00
Ralph Giles
3ef8a16616 Opus custom requires libm unconditionally. 2012-09-17 00:05:00 -07:00
Ralph Giles
d47ddfb472 Add -lm to the pkg-config link line.
The floating-point build calls a number of math library
functions, and linking with libm is technically necessary.
It wasn't obvious because most systems support shlib
dependencies and pulled it in that way, or supply the
referenced functions with intrinsics. Discovered the issue
trying to build libopusfile against the uninstalled static
libopus, which unlike opus-tools, doesn't itself need libm.

The -lm argument is only added to Libs for the floating-
point (default) build. It's not necessary for the fixed-
point build.

Also mark which build was used in the .pc file description.
2012-09-16 23:31:28 -07:00
Ralph Giles
a66642a5e1 Remove FLOATING_POINT from config.h.
This isn't used anywhere in the code, floating point is just the
default unless FIXED_POINT is defined.

In the speex codebase, arch.h has a check that both FIXED_POINT
and FLOATING_POINT aren't defined simultaneously, in part as a
check that the build system was constructed with thought about
these and other defines. However, we don't have such a check
and to me it seems unnecessary code.
2012-09-16 23:19:11 -07:00
Jean-Marc Valin
12190653b2 some doc for --enable-fixed-point and --enable-floating-point 2012-08-31 23:35:12 -04:00
Gregory Maxwell
5ae062a759 Completely remove the built-in autotools -fstatck-protector detection.
On some systems (HPPA+HPUX+GCC) -fstatck-protector was causing failures not
at build or link time but at actual runtime. This is much less reasonable to
detect from autotools. It looks this this really can only safely be a white-
list, and the systems which would be whitelisted often already pick up the
setting from the OS build environment in any case.  It isn't important for
OPUS, we were just using it as belt-and-suspenders security and because it
makes some failure types easier to troubleshoot.
2012-08-29 10:29:24 -04:00
Ralph Giles
11dd5522b4 Clarify a comment.
Further cleanup of the confusion with the version string settings.
2012-08-21 11:22:08 -07:00
Ralph Giles
d60673780e Propagate OPUS_VERSION to config.h.
I'm not sure how this worked before, the the previous version
string fiddling commit ended up not defining OPUS_VERSION in
the autoconf build, so opus_get_version_string() returned
'unknown'.
2012-08-21 10:49:43 -07:00
Ralph Giles
59c5a82e51 Move the release version string to version.mk.
Previously we defined the release version string in configure.ac,
and overrode that with 'git describe --tags' if possible. This
made it difficult for non-autoconf builds to set their version
string correctly.

Instead we create, and check into version control, a file called
version.mk which defines OPUS_VERSION. The configure script reads
that file and uses it as a fallback if the git revision isn't available.

The expectation is that version.mk will be manually updated for
releases, just as the previous configure.ac version was. However,
since this is a simpler format, it is easier for alternate build
systems to use, reducing the number of places which must be updated.

Also removes the OPUS_MINOR_VERSION, etc. defines from config.h.
2012-08-16 12:42:32 -07:00
Jean-Marc Valin
9a35da4659 Bump version number 2012-08-15 17:39:57 -04:00
Gregory Maxwell
8d2e9ade8f Use configure.ac provided soname versioning. 2012-08-10 17:21:28 -04:00
Gregory Maxwell
417679c3e5 Disable stack-protector for mingw32 and remove win32 restrict define. 2012-08-09 08:39:15 -04:00
Jean-Marc Valin
4ee682f52a Bump version number to 1.0.1 and set libtool version 2012-08-08 14:50:27 -04:00
Gregory Maxwell
c329045758 Make stack-protector check use AC_LINK_IFELSE. 2012-07-07 02:29:56 -04:00
Gregory Maxwell
1616230245 Add configure option to disable stack protector. 2012-06-28 20:22:26 -04:00
Gregory Maxwell
de9b437eb2 Add -fixed to the version string & clarify that fixed disables float. 2012-06-11 19:19:55 -04:00
Ralph Giles
9d9bad48ab Remove the obsolete LIBOPUS_SUFFIX define.
As best we recall, this was used to version the
library filename during rapid development. It's
no longer needed now that the bitstream is frozen
and isn't hooked up to anything in the build system.
2012-05-18 12:01:46 -07:00
Ralph Giles
3164fcf6a4 Move the various version defines to be together.
The config.h version defines were declared in the
middle of the math feature testing. This commit moves
it to the top of configure.ac where the other version
number code resides.
2012-05-18 11:47:58 -07:00
Jean-Marc Valin
8858cac6bc Sync with draft -14 2012-05-17 19:45:10 -04:00
Jean-Marc Valin
88ddeee581 version bump 2012-05-15 19:58:28 -04:00
Gregory Maxwell
8ecba1ad26 Make vararray and restrict checks fail GCC 2.95.3's broken implementation. 2012-05-15 16:24:12 -04:00
Gregory Maxwell
6c83b0bd96 Improve portability to BeOS via some configure.ac fixes and cleanups. 2012-05-15 16:24:07 -04:00
Jean-Marc Valin
390c89225d Adds some references, bumps version number 2012-04-24 00:57:04 -04:00
Jean-Marc Valin
17c5966045 Last updates for draft -11
- Draft updates
- Updated code to produce and check test vectors
- Making sure that the test vectors pass at all rates as well as for mono and stereo
2012-02-17 16:18:08 -05:00
Jean-Marc Valin
8ba1a0824a version bump 2011-10-31 19:53:06 -04:00
Jean-Marc Valin
38c6a15092 version number bump 2011-10-31 17:21:55 -04:00
Ralph Giles
c19bc34638 Check for __malloc_hook and define MALLOC_FAIL appropriately.
The glibc 2.14 NEWS file says __malloc_hook will be removed
in the next release, so future-proof our use by checking
for this symbol at configure time and only compiling the
malloc failure tests if it is present.
2011-10-28 10:20:16 -07:00
Gregory Maxwell
9652f81eb9 Test cleanups and renaming.
Build tests in the tests/ directory instead of top, cleanup, rename,
and eliminate recursive make for the celt/ unit tests.
2011-10-27 06:27:13 -04:00
Gregory Maxwell
e53ebd696a Don't use -fstack-protector-all when its not supported, add an autoconf test. 2011-10-21 14:21:53 -04:00
Gregory Maxwell
3d28ee8020 Fix stack corruption with high rate SILK encoding added by the recent CBR changes and enable -fstack-protector-all on gcc autotools builds. 2011-10-21 13:00:21 -04:00
Gregory Maxwell
48069bf9bd Documentation and build script updates. 2011-09-15 11:33:18 -04:00
Jean-Marc Valin
c37499090b renames the libcelt/ directory to celt/ 2011-09-13 18:21:18 -07:00
Ralph Giles
35d4fb78ea Add initial Doxygen support for generating api documentation.
Doxygen is a tool for generating programming documentation
based on comments in header and source files. This commit
adds the necessary configuration file and associated support
in the autotools build.

Right now it doesn't generate much documentation because our
public header files aren't marked up. Warnings are printed
for undocumented members and arguments.
2011-09-07 11:06:23 -07:00
Ralph Giles
858468ee42 Fix the 'distclean' target.
With subdir-objects, both the top-level makefile, and
libcelt/Makefile, which runs celt-specific unit tests,
were sharing libcelt/.deps for generated dependencies.

Each thought it owned the directory, and so would remove
the files it created in that directory, followed by the
directory itself. The second makefile would then fail to
because the files it created weren't there to remove,
blocking a successful 'make distcheck' with in runs
'make distclean' as part of its verification tests.

We can work around the problem by generating the makefile
for the tests in the actual test directory, so it doesn't
share autotools scratch space with the top level makefile.
2011-09-03 16:34:51 -07:00
Gregory Maxwell
40f956eed0 Various minor cleanups (removing dead arguments, macros) to libcelt/. Reinstate -Wunused-parameter. 2011-09-01 19:42:37 -04:00
Jean-Marc Valin
06237d7b8c Implements the OpusCustom modes (mostly) properly 2011-09-01 13:20:40 -04:00
Gregory Maxwell
d6335abedc Adds many syntactically unnecessary parentheses to silence GCC -Wparentheses.
The object code is unchanged (except ectest). Also reenables -Wparentheses, -Wsign-compare,
and the MSVC warnings.
2011-08-30 20:16:23 -04:00
Ralph Giles
9f71309abe Add pkg-config support files.
These files allow compiling and linking against the reference
implementation with an invocation like `pkg-config --cflags
--libs opus`. They're optional within the opus build system,
but can simplify compilation for clients and are generally
considered part of a normal autotools build these days.

The -uninstalled version refers to local build products
within the tree, which is helpful for testing and unprivileged
builds. opus.pc is used once 'make install' has put the
libraries and headers somewhere more permanent.
2011-08-28 15:33:14 -04:00
Jean-Marc Valin
f334c82ec3 Adds a fuzzing mode that causes the encoder to make random decisions 2011-08-11 16:48:05 -04:00
Jean-Marc Valin
bf6a4e01b6 Re-enables test cases, including the rotation test 2011-08-05 10:47:41 -04:00
Jean-Marc Valin
a8ac44b670 Using the real version name instead of the last tag name 2011-08-05 08:47:24 -04:00
Ralph Giles
2852cb1486 Tell automake to put object files in subdirectories.
Previously the autotools build litered whatever directory
'make' was invoked from with intermediate files. Adding
'subdir-objects' to AUTOMAKE_OPTIONS tells it to put them
in subdirectories according to the relative paths to the
source files, .i.e. silk/schur.o for $(srcdir)/silk/schur.c

The change to autogen.sh is necessary to handle the
(apparently new) case where an AUTOMAKE_OPTIONS line is
given without a minimum version number.
2011-08-02 11:43:43 -07:00
Ralph Giles
50f933b57f Query git for the repository revision and use that for the version string.
Rather than compiling in the fixed version number from the configure
file, it's more helpful for testing and debugging to directly embed
the repository's revision. We use 'git describe --tags' for this, since
for tagged revisions it just returns the tag name, and in other cases
is more readable than a raw commit id.

If git isn't present or can't find a repository to query, we fall back
to the static version number in the configure script.
2011-08-02 09:45:04 -07:00
Jean-Marc Valin
d9636c5d19 Add a function to query the Opus version 2011-07-31 22:29:05 -04:00
Gregory Maxwell
fce4323e15 Remove the configurability of the post-filter. It is always enabled in Opus. 2011-07-29 16:19:29 -04:00
Ralph Giles
5ccc124036 Enable automake's "silent rules" if they are available.
Automake version 1.11 and above provide a build mode where
each build command is replaced by a single-line annotation.
Since autotools build lines for libraries typically each fill
an entire terminal screen, this mode makes it easier to keep
track of build progress, and warnings stand out more clearly.

For debugging the build process, the old behaviour can be
recovered by running 'make V=1' at bulid time, or by passing
--disable-silent-rules to configure.

Since Automake 1.11 is still very recent, we only invoke
the AM_SILENT_RULES macro if it is defined, allowing fallback
to the old behaviour under previous versions of automake.
2011-07-29 09:09:04 -04:00