Commit Graph

51 Commits

Author SHA1 Message Date
Erik de Castro Lopo b72540b43c configure.ac : Prepare for x86_64 initrinsics based optimisations.
Detect presence of <x86intrin.h> and set FLAC__HAS_X86INTRIN.
Define FLAC__CPU_X86_64 when CPU is x96_64.
2013-09-15 09:42:36 +10:00
Erik de Castro Lopo 1ec41a97da configure.ac : Improve asm optimisation detection.
When compiling for ia32 on an x86_64 kernel, the configure script
was not detecting the ability to do asm optimisations because the
configure script was detecting the x86_64 kernel not the ia32
user space.
2013-08-11 21:46:22 +10:00
Cristian Rodríguez 355f4aae47 Link with -no-undefined regardless of the OS
libFLAC* must never have undefined symbols no matter
what is the target platform.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-07-21 19:51:08 +10:00
Ulrich Klauer cd4ddabe0f Language fix: "difference licenses"
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-27 18:08:57 +10:00
Dagobert Michelsen 5999d81f0e Use location of TIOCGWINSZ from autoconf manual
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-05-27 18:06:56 +10:00
Erik de Castro Lopo b1982fbc5f Set version to 1.3.0 and update coyprights throughout. 2013-05-26 19:17:53 +10:00
Erik de Castro Lopo c1ebd2caa4 Two minor compiled fixes for OS/2.
Patch from Dave Yeo <dave.r.yeo@gmail.com>.
2013-04-29 21:33:02 +10:00
Erik de Castro Lopo 1b1d05bb25 Version 1.3.0pre4. 2013-04-28 19:00:30 +10:00
Ulrich Klauer 5da86630be Fix pkg-config files to avoid overlinking
Libraries that are used internally by libFLAC(++) but are not part of
their API should be listed in pkg-config "private" clauses. Otherwise
executables that are linked dynamically against libFLAC(++) will have
unneeded direct dependencies (overlinking).

Based on a patch by Brad Smith from
  https://sourceforge.net/p/flac/bugs/397/
that I updated to only include ogg if libFLAC is actually built with
ogg support.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-07 11:03:52 +10:00
Erik de Castro Lopo f44c353e59 Two small patches for utf8 I/O.
Thanks to LRN <lrn1986@gmail.com>.
2013-04-02 06:27:12 +11:00
Erik de Castro Lopo 36c1f08564 configure.ac : Version 1.3.0pre3. 2013-04-01 20:49:41 +11:00
Erik de Castro Lopo 2199d08692 Enable utf8 I/O stuff when compiling with MinGW. 2013-04-01 19:57:13 +11:00
Erik de Castro Lopo b3c3e2ac4f Use recursive automake in src/share/ part of tree.
This will make it easier to incorporate the win_utf8_io stuff.
2013-04-01 19:46:12 +11:00
Erik de Castro Lopo 6497ce1977 configure.ac : Detect the size of off_t. 2013-03-13 21:54:15 +11:00
Erik de Castro Lopo 195470fe2e Add configure option to enable GNU GCC stack smash protection.
This option is disabled by default because it is known not to work
on FreeBSD 9.1 and for Linux -> Windows cross compiling using the
Debian MinGW-w64 tool chain.

It is known to work for native compiles in Debian testing and
OpenBSD 5.2.
2013-03-13 18:59:50 +11:00
Erik de Castro Lopo 06f3812d79 configure.ac : When compiling with GCC use some extra warning flags. 2013-03-11 06:06:34 +11:00
Erik de Castro Lopo 1ad32efb89 Version 1.3.0pre2. 2013-03-09 22:06:12 +11:00
Erik de Castro Lopo 2860f1780c configure.ac : If gcc is version 4.2, use -fgnu89-inline.
Using -gnu-inline avoids a rather ugly warning message that only
seems to be present with gcc-4.2.
2013-03-09 19:45:27 +11:00
Erik de Castro Lopo 712b578539 configure.ac : Disable stack protector on FreeBSD. 2013-03-09 18:42:59 +11:00
Erik de Castro Lopo d5b03bcc36 configure.ac : Don't enable stack protector for mingw* host_os. 2013-03-09 09:18:06 +11:00
Erik de Castro Lopo 05609d5b4b configure.ac : Add hardening compile options.
Extra compile options are detected at configure time with new
XIPH_ADD_*FLAGS m4 macros.

Options enabled include -Wextra, -D_FORTIFY_SOURCE=2 and stack
protection.
2013-03-06 07:39:24 +11:00
Erik de Castro Lopo 538ce85eae configure.ac : Version 1.3.0pre1. 2013-03-02 19:06:56 +11:00
Olivier Blin f699788f31 doc: fix out-of-tree build
When building outside of the source tree, the Doxyfile needs to be
generated in the build tree and should point to the proper paths for
include directories and html footer.

The generated api files to install should also be taken from the build
tree instead of the source tree.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-01-14 21:52:43 +11:00
Erik de Castro Lopo 55788ea96b Rename obj/ directory to objs/ to avoid BSD make issue. 2012-12-28 11:06:38 +11:00
Erik de Castro Lopo 592021edf7 configure.ac : Treat powerpc64 like powerpc. 2012-12-28 09:50:49 +11:00
Max Horn 0b47ede01b configure: modernize autoconf usage
In particular:
- quote several macro arguments properly
- switch to the extended version of AC_INIT
- replace AM_CONFIG_HEADER by AC_CONFIG_HEADERS
- remove obsolete extra AC_CHECK_SIZEOF param
- upgrade minimal automake version from 1.7 to 1.11
  (which is when dist-xz was introduced)

Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:12:56 +11:00
Max Horn 21f68f4fad configure: merge AC_CHECK_HEADERS calls
Also removed some pointless AC_SUBST invocation, which would only be
necessary if the Makefiles were using the results of the header
detection, which they are not.

Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:12:43 +11:00
Max Horn cdcb88bdc9 configure: always print ac_cv_c_compiler_gnu
Previously, we only printed whether the used compiler was
detected as gcc if the answer was positive. Now we always
print the result (but the GCC version still is only
printed when we are using GCC)

Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:12:30 +11:00
Max Horn 66c0a581d2 autogen.sh: replace this by a simple call to autoreconf
The autoreconf tool is provided by autoconf to do what custom
autogen.sh scripts in many projects used to do. Only it is more
robust and widely tested. It has been available for several years,
too. No reason to rely on custom code for this.

Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:12:14 +11:00
Max Horn f20164e41e configure: replace XIPH_C_FIND_ENDIAN by AC_C_BIGENDIAN
Signed-off-by: Max Horn <max@quendi.de>
2012-12-13 08:11:32 +11:00
Miroslav Lichvar 19c78e58d7 Hide symbols with gcc.
With gcc >= 4 and ELF, set default visibility to hidden and make visible
only the symbols with FLAC_API or FLACPP_API.

A convenience libFLAC-static.la is created for test_libFLAC as it
depends on the hidden symbols.
2012-12-04 17:45:06 +11:00
Miroslav Lichvar 18e01547ac Don't override user-specified CFLAGS. 2012-12-04 17:44:42 +11:00
Erik de Castro Lopo 3e2cd27d05 configure.ac : Make sure FLAC__HAS_OGG gets defined to either 0 or 1. 2012-07-04 19:53:31 +10:00
Cristian Rodríguez 63c874f0fd Fix build with automake 1.12
recent autotools require calling AM_PROG_AR before LT_INIT
this macro needs to be conditionally defined as it is not
present in old versions.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2012-06-08 20:13:29 +10:00
Erik de Castro Lopo 7c07a0ddfe configure.ac : For gcc use -Wall -Wextra when using --enable-gcc-werror. 2012-05-08 20:06:22 +10:00
Cristian Rodríguez 9b7cb22f84 Update and improve autotools build
- INCLUDES is deprecated, and CPPFLAGS is an user-defined
  variable, use the proper AM_CPPFLAGS instead

- Remove FLAC__INLINE definition, providing proper
  replacement for MSVC compilers.

- Detect if we have C99 's lround and provide a replacement
  for windows...
2012-04-08 09:03:03 +10:00
Cristian Rodríguez f029625591 V2: Use a single definition of MIN and MAX in sources 2012-04-06 09:52:06 +10:00
Erik de Castro Lopo afedee1251 configure.ac : Add AM_PROG_CC_C_O. 2012-04-04 20:08:52 +10:00
Erik de Castro Lopo 238b2676c2 Remove winamp2 plugin
Patch from Cristian Rodríguez
Nullsoft has provided a native FLAC support since Winamp 5.31 (since
the year 2006).
2012-03-30 21:35:41 +11:00
Erik de Castro Lopo caef93ec8b configure.ac : Report useful info at the end of configure. 2012-02-26 22:41:44 +11:00
Erik de Castro Lopo e38026a52c Fix for autoreconf failures.
Fixes "undefined macro: AM_PATH_XMMS" and similar errors which cause
autoreconf to fail.

From Sebastian Andrzej Siewior <bigeasy@linutronix.de> via Debian.
2012-02-13 19:55:46 +11:00
Erik de Castro Lopo b6e64af3b3 Disable Altivec on host triplet powerpc-unknown-linux-gnuspe.
SPE is incompatible with AltiVec because it shares the same opcode range.

Patch from Sebastian Andrzej Siewior <bigeasy@linutronix.de> via Debian.
2012-02-13 19:46:32 +11:00
Erik de Castro Lopo d7bfc779c8 Add XIPH_BSWAP32 configure macro to detect __builtin_bswap32() intrinsic. 2012-02-06 07:15:48 +11:00
Erik de Castro Lopo 3abb6c98e9 Add m4/endian.m4 and use it in configure.ac. 2012-02-05 18:58:11 +11:00
Erik de Castro Lopo 0fe9767ebb configure.ac : Patch from David Yeo. OS/2 uses aout format. 2012-02-05 16:29:43 +11:00
Erik de Castro Lopo 8b4bc4b733 configure.ac : Patch from David Yeo adding LT_NO_UNDEFINED for OS/2. 2012-02-05 16:28:40 +11:00
Erik de Castro Lopo 698ee5c7ed Purge MINGW_WINSOCK_LIBS config variable.
This was only needed for ntohl() function which has already been removed.
2012-02-05 16:25:22 +11:00
Erik de Castro Lopo 79828211ed Remove configure maintainer mode.
It doesn't play nicely with git and multiple branches.
2012-02-05 13:45:35 +11:00
Erik de Castro Lopo a3f43aaa7c configure.ac : Detect more headers. 2012-02-05 09:23:38 +11:00
Erik de Castro Lopo 886b960211 configure.ac : Only use AM_SILENT_RULES if its available. Thanks Earl Chew. 2012-02-03 05:52:01 +11:00