Commit Graph

399 Commits

Author SHA1 Message Date
Erik de Castro Lopo
ac0c02de3c Drop use of __USE_MINGW_ANSI_STDIO 2016-07-03 11:05:08 +10:00
Erik de Castro Lopo
50a4098e9f sndfile-play: Remove support for Darwin <= 11
Darwin 12 (Mountain Lion) was released in February 2012. Apple no
longer support 11 and neither does libsndfile.
2016-07-03 10:33:31 +10:00
Erik de Castro Lopo
5afbcc6cf4 configure.ac: 1.0.28pre1 2016-06-19 21:39:20 +10:00
Erik de Castro Lopo
d3d545abf9 Version 1.0.27 2016-06-19 18:08:54 +10:00
Erik de Castro Lopo
95828ca2e9 Rename EXTERNAL_* to EXTERNAL_XIPH_*`
New naming makes sense because adding Wavpack support would not
depend on any of the existing Xiph.Org libraries.
2016-03-14 08:17:45 +11:00
Erik de Castro Lopo
01a2712a98 configure.ac: Clean up CFLAGS/CXXFLAGS 2016-01-27 21:34:39 +11:00
Erik de Castro Lopo
cc77ff33bd configure.ac: Remove duplicate line 2015-12-06 15:24:46 +11:00
Erik de Castro Lopo
bb6cd875af Remove all mentions of Carbon for OSX
Suport for Carbon was remove in 2012, but crept back in the same
year in an un-related commit.

Patch-from: Jan Stary <hans@stare.cz>
2015-11-27 06:16:38 +11:00
Erik de Castro Lopo
2f9c2945b4 configure.ac: 1.0.27pre1 2015-11-22 21:34:49 +11:00
Erik de Castro Lopo
f67f0992ea Version 1.0.26 2015-11-22 20:54:04 +11:00
Erik de Castro Lopo
f98d9588ba configure.ac: Improve <sndio.h> detection
Only test for it on OpenBSD.
2015-10-29 13:17:50 +11:00
Erik de Castro Lopo
ec63d5765f configure.ac: Remove -fsanitize options
Previously, the address, integer and undefined sanitizers were all
enabled at once which doesn't always work.

Instead, compiling libsndfile with the sanitizer should be done with
for example:

    CFLAGS=-fsanitize=address CXXFLAGS=-fsanitize=address ./configure
2015-08-07 21:08:37 +10:00
Erik de Castro Lopo
d9bae19203 Version 1.0.26pre6 2015-04-28 15:30:50 +10:00
Erik de Castro Lopo
4c7e1bd99c configure.ac : Add detection of -fsanitizer=undefined.
Both Clang and GCC-4.9 now support the undefined behaviour sanitizer
so detect and enable it when configuring with --enable-sanitizer.

Also improve configure reporting of sanitizer and stack smash
protection.
2014-12-16 13:18:42 +11:00
Erik de Castro Lopo
9f1fbafb56 configure.ac : Require flac >= 1.3.1.
Earlier versions of FLAC had a couple of CVEs.

Also AC_SUBST the HAVE_EXTERNAL_LIBS variable.
2014-12-07 08:21:22 +11:00
Erik de Castro Lopo
ea963dfd31 configure.ac : Use '-static-libgcc' with mingw-w64-* compilers.
Without this, libsndfile-1.dll depends on libgcc_s_sjlj-1.dll which
is a pain in the neck. Tried a number of things to fix this, but in
the end it was a suggestion from Jean-Baptiste Kempf on the
mingw-w64-public mailing list that solved it.

Suggested-by: Jean-Baptiste Kempf <jb@videolan.org>
2014-11-27 18:37:50 +11:00
Erik de Castro Lopo
6c67259489 Revert "configure : Disable versioned dynamic library when compling for Android."
This reverts commit 432479b3f5.

This approach didn't work.
2014-11-26 06:22:02 +11:00
Erik de Castro Lopo
432479b3f5 configure : Disable versioned dynamic library when compling for Android.
Closes: https://github.com/erikd/libsndfile/issues/51
2014-11-13 06:08:05 -08:00
Timothy Gu
9c2575f7de configure.ac: Fix detection of MinGW
This is more consistent with other checks in the file and fixes #75.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2014-09-02 06:16:16 +10:00
Erik de Castro Lopo
548cd98a0d configure.ac : Fix chmod of Scripts/build-test-tarball.mk. 2014-08-03 19:54:11 +10:00
Erik de Castro Lopo
c161588249 Fix detection and usage OpenBSD's <sndio.h>. 2014-07-30 14:36:47 +10:00
Erik de Castro Lopo
c66bb23bfb configure.ac : Detect OpenBSD as a separate OS. 2014-07-04 20:35:31 +10:00
Erik de Castro Lopo
2b598d2e23 configure.ac : Add -funsigned-char to CXXFLAGS.
Reported by Michael Tautschnig <mt@debian.org> via the Debian bug
tracker : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750098
2014-06-02 19:39:38 +10:00
Erik de Castro Lopo
6b466560c3 configure.ac : Add --enable-sanitizer option.
Currently this includes:
    -fsanitize=address
    -fsanitize-integer

Even with this option enabled, the flags will only be added if the
compiler supports them.
2014-04-05 13:34:14 +11:00
Erik de Castro Lopo
c1e11ddac0 configure.ac : Symbols file is in $(srcdir). 2014-03-01 20:48:21 +11:00
Erik de Castro Lopo
2f645e491e configure.ac : Add AC_CONFIG_MACRO_DIR directive. 2014-02-28 09:51:13 +11:00
Vadim Markovtsev
b53a11e75b Added support for building in a separate directory
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-12-20 20:52:50 +11:00
Erik de Castro Lopo
50d1df56f7 configure.ac : Report if C compile is Clang. 2013-11-23 11:43:56 +11:00
Erik de Castro Lopo
700ae0e8f3 configure.ac : Allow -Werror to be switched on for Clang.
Commit d7cc3dd0a4 allowed the detection of Clang masquerading as GNU GCC
which was required because Clang is not the same as GCC. However, that
change prevented configuration with --enable-gcc-werror.

This fix changes the configure option to --enable-werror and will allow
it to be enabled for any compiler that accepts the -Werror flag.
2013-11-23 11:38:27 +11:00
Erik de Castro Lopo
d7cc3dd0a4 Detect Clang compiler compiler.
Autoconf detects the Clang compiler as GNU GCC (clang sets defines like
__GNUC__ etc) but Clang is *not* completely compatible. We detect Clang
and set ac_vc_c_compiler_gnu to 'no'.

Closes: https://github.com/erikd/libsndfile/issues/49
2013-11-01 15:58:44 +11:00
Erik de Castro Lopo
a463af3946 Scripts/ : Add to EXTRA_DIST.
Add: Scripts/android-configure.sh Scripts/linux-to-win-cross-configure.sh
Rename: build-test-tarball.mk.in -> Scripts/build-test-tarball.mk.in
2013-09-08 13:06:37 +10:00
Erik de Castro Lopo
24f8ddf14d configure.ac : CFLAGS and CXXFLAGS tweaks. 2013-09-08 12:45:46 +10:00
Erik de Castro Lopo
328b8f8a38 Configure improvements for Android. 2013-09-08 12:44:06 +10:00
Erik de Castro Lopo
4ffd22a4a4 Fix issues with 'make test-tarball' with --disable-shared.
When shared libs are disabled the binaries end up in a .libs/
dir while when they're enabled there is no .libs/ dir.
2013-09-04 21:02:16 +10:00
Erik de Castro Lopo
8a657c2424 configure.ac : Add HOST_TRIPLET. 2013-08-12 09:37:10 +10:00
Erik de Castro Lopo
7a5f494183 Detect and use fstat64() when sizeof (off_t) == 4.
Still have a problem of 32 bit systems where sizeof (off_t) == 4
and fstat64() doesn't exist (eg Android). In this case it will just
fail to work correctly at run time. This is bad.
2013-07-31 22:34:58 +10:00
Erik de Castro Lopo
1212de31c6 configure.ac : Improve detection of 64 bit file offset type. 2013-07-31 18:32:22 +10:00
Erik de Castro Lopo
84ee01e72c configure.ac : Drop -Wunreachable-code.
Warns on things like a break after a return in a switch statement.
Doesn't seem that useful a warning.
2013-07-13 17:53:01 +10:00
Erik de Castro Lopo
ca790066b6 configure.ac : Fix for current versions of autotools.
Patch from Cristian Rodriguez.
2013-07-13 17:28:25 +10:00
Erik de Castro Lopo
8393ee3e61 configure.ac : Include a couple more -W flags. 2013-07-12 18:44:21 +10:00
Erik de Castro Lopo
c2e58d077f configure.ac : Add -Wmissing-declarations to CFLAGS. 2013-06-25 18:00:51 +10:00
Erik de Castro Lopo
90b38b36b8 Disable stack protector by default.
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.

Closes: https://github.com/erikd/libsndfile/issues/42
2013-06-22 19:36:32 +10:00
Erik de Castro Lopo
d0c9fae4f9 configure.ac : Sanity check --disable-largefile.
If sizeof (off_t) == 8, then disable large file support doesn't work.
2013-04-30 09:41:35 +10:00
Karl Lindén
9b331554ab Use pkgconfigdir variable as it is not sure it will be libdir/pkgconfig.
Let an external script handle printing of installation directories so
that printing can be done in a `cleaner' way without tests.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-28 21:35:08 +10:00
Karl Lindén
958263fbd7 Do not use old variable INCLUDES and use modern AM_INIT_AUTOMAKE invocation.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-07 20:05:08 +10:00
Karl Lindén
315c92457b Honour --htmldir option to configure script.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-05 07:32:24 +11:00
Erik de Castro Lopo
4953e9e8bb configure.ac : Detect and enable stack protection. 2013-04-04 21:14:06 +11:00
Erik de Castro Lopo
f4698f5998 configure.ac : Fix sanitization of FLAC_CFLAGS value. 2013-02-22 17:34:31 +11:00
Erik de Castro Lopo
275a13db6d configure.ac : Improve sanitization of FLAC_CFLAGS value. 2013-02-22 06:29:40 +11:00
Erik de Castro Lopo
a86e5d89f2 configure.ac : Version 1.0.26pre5. 2013-02-10 14:09:32 +11:00
Erik de Castro Lopo
e092a9f885 Drop tests for and CPP hackery for C99 struct flexible array feature. 2013-02-06 18:48:36 +11:00
Erik de Castro Lopo
66c5d9490c configure.ac : Use PKG_INSTALLDIR when it exists. 2013-02-05 19:44:05 +11:00
Erik de Castro Lopo
0cebed8572 configure.ac : Version 1.0.26pre4. 2012-12-01 12:38:40 +11:00
Erik de Castro Lopo
c976070ba4 configure.ac : Detect OSX_DARWIN_VERSION. 2012-11-30 22:35:29 +11:00
Erik de Castro Lopo
42dd9b90ac configure.ac : Version 1.0.26pre3. 2012-10-13 12:48:38 +11:00
Erik de Castro Lopo
65a5067d7a Patch from Ricci Adams to use OSX's AudioQueues on OSX 10.7 and greater. 2012-08-04 18:00:51 +10:00
Erik de Castro Lopo
32b5bfdf15 configure.ac : Detect the presence of lround. 2012-06-08 18:16:35 +10:00
Erik de Castro Lopo
eab47d649e configure.ac : Fix if test for empty $prefix. 2012-03-20 18:29:08 +11:00
Erik de Castro Lopo
11d0791d1d configure.ac : Only use automake AM_SLIENT_RULES where supported. 2012-03-10 18:22:51 +11:00
Erik de Castro Lopo
d99740b6f8 For GCC, use inline assembler for endian swapping. 2012-03-09 20:53:29 +11:00
Erik de Castro Lopo
4bee0d2b62 configure.ac : Detect presence of <x86intrin.h> header file. 2012-03-05 19:34:14 +11:00
Erik de Castro Lopo
fb5e4f7570 configure.ac : Version 1.0.26pre2. 2012-03-04 10:42:23 +11:00
Erik de Castro Lopo
e0671a836c configure.ac : Fix typo, FLAC_CLFAGS -> FLAC_CFLAGS. 2012-01-26 16:21:52 +11:00
Erik de Castro Lopo
d464da7dba configure.ac : Use AC_SYS_LARGEFILE instead of AC_SYS_EXTRA_LARGEFILE. 2011-08-23 20:20:20 +10:00
Erik de Castro Lopo
5983e8ca46 Move ACLOCAL_AMFLAGS setup to Makefile.am. 2011-08-07 19:54:24 +10:00
Erik de Castro Lopo
164a20e75b configure.ac : 1.0.26pre1. 2011-07-15 19:05:30 +10:00
Erik de Castro Lopo
2c4d2bdce6 Updates for 1.0.25. 2011-07-13 21:21:13 +10:00
Erik de Castro Lopo
c4e96841c9 configure.ac : Link libspeex if ENABLE_EXPERIMENTAL_CODE == 1. 2011-07-04 22:01:56 +10:00
Erik de Castro Lopo
1b4b05ae6a configure.ac : Add -Wundef to CFLAGS. 2011-06-13 22:15:06 +10:00
Erik de Castro Lopo
ff38eacb92 configure.ac : Use int64_t instead of off_t when they are the same size. 2011-05-18 06:33:28 +10:00
Erik de Castro Lopo
3884db7528 configure.ac : Whitespace fix. 2011-03-30 18:54:48 +11:00
Erik de Castro Lopo
33cd8bdb46 src/ : Use non-recursive make to build GSM610 and G72x helper libs. 2011-03-25 21:18:23 +11:00
Erik de Castro Lopo
b7212c30fe configure.ac : Sanitize FLAC_CFLAGS value supplied by pkg-config. 2011-03-25 20:42:07 +11:00
Erik de Castro Lopo
81935a277f configure.ac : 1.0.25pre2. 2011-03-25 20:37:38 +11:00
Erik de Castro Lopo
b566fff5a8 configure.ac : Rearrange AC_CONFIG_FILES. 2011-03-25 17:19:11 +11:00
Erik de Castro Lopo
fb4df2e642 configure.ac : Version 1.0.25pre1. 2011-03-24 18:13:32 +11:00
Erik de Castro Lopo
0772042a68 Updates for release 1.0.24. 2011-03-23 19:35:49 +11:00
Erik de Castro Lopo
a7bd34386c configure.ac : 1.0.24pre3. 2011-03-22 22:47:22 +11:00
Erik de Castro Lopo
99f016ff86 configure.ac : Fix up usage of sed (should not assume GNU sed). 2011-03-22 17:47:01 +11:00
Erik de Castro Lopo
0f41f4be63 configure.ac : 1.0.24pre2. 2011-03-22 06:34:38 +11:00
Erik de Castro Lopo
26f3f3a45f configure.ac : Fix use of pkg-config after detection. 2011-03-18 18:01:41 +11:00
Erik de Castro Lopo
18fc0135c6 configure.ac : Minor tweak. 2011-03-15 22:24:19 +11:00
Erik de Castro Lopo
36c6fe71c1 configure.ac : Fail more gracefully if pkg-config is missing. 2011-03-08 07:04:50 +11:00
Erik de Castro Lopo
f209698448 Update copyright dates. 2011-01-19 21:36:56 +11:00
Erik de Castro Lopo
0011db82da configure.ac : Improve message when pkg-config is missing. 2010-12-28 22:36:15 +11:00
Erik de Castro Lopo
ba3ca03df2 configure.ac : Make TYPEOF_SF_COUNT_T int64_t where possible. 2010-11-01 21:05:22 +11:00
Erik de Castro Lopo
6816f9b2da configure.ac : Sed fix for FreeBSD. Thanks Tony Theodore. 2010-10-20 21:25:06 +11:00
Erik de Castro Lopo
b2b2cf4a49 configure.ac : Bump to 1.0.24pre1. 2010-10-14 21:20:47 +11:00
Erik de Castro Lopo
034c20033d Switch from shave to automake-1.11's AM_SILENT_RULES. 2010-10-14 21:06:10 +11:00
Erik de Castro Lopo
08d35de4cd Updates for 1.0.23 release. 2010-10-10 15:31:23 +11:00
Erik de Castro Lopo
84d1393898 Add version string resources to the windows DLL. 2010-10-10 12:43:08 +11:00
Erik de Castro Lopo
d37b2c48e1 configure.ac : Version 1.0.23pre1. 2010-10-04 21:36:57 +11:00
Erik de Castro Lopo
98b5b70635 Release 1.0.22. 2010-10-04 11:39:47 +11:00
Erik de Castro Lopo
fad92da4d3 configure.ac : Version 1.0.22pre4. 2010-06-09 21:42:27 +10:00
Erik de Castro Lopo
3eb6954930 configure.ac : When compiling with x86_64-w64-mingw32-gcc link with -static-libgcc flags. 2010-05-07 21:42:14 +10:00
Erik de Castro Lopo
66f6e6cae7 Hook pedantic-header-test into test suite. 2010-04-21 18:17:45 +10:00
Erik de Castro Lopo
358840d84e configure.ac : Bump version 1.0.22pre3. 2010-03-01 22:21:17 +11:00
Erik de Castro Lopo
820433c565 configure.ac : Clean up configure report. 2010-02-28 09:05:35 +11:00
Erik de Castro Lopo
52d464273f configure.ac : Remove -fpascal-strings from OSX's OS_SPECIFIC_CFLAGS. 2010-02-22 18:26:21 +11:00
Erik de Castro Lopo
984161c26b configure.ac : Bump to 1.0.22pre2. 2010-01-10 08:36:52 +11:00