src/ : Add more checks for suported channel counts.
src/common.h : Increase SF_MAX_CHANNELS from 256 to 1024.

Closes: https://github.com/erikd/libsndfile/issues/78
src/sndfile.c : Fix sfinfo.frames file on SFM_WRITE.

When opening a file in SFM_WRITE mode where the output is a pipe,
the sfinfo.frames value was coming back with strange values. The
fix is simply to make sure it get set to zero.

Closes: https://github.com/erikd/libsndfile/issues/77
Fix some typos.

Closes: https://github.com/erikd/libsndfile/pull/79
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
src/flac.c : Remove un-needed code.

The code was calling FLAC__stream_decoder_seek_absolute () immediately
followed by a call to FLAC__stream_decoder_get_decode_position (), the
result of which was immediately thrown away.

Reported-by: Mario Lang <mlang@delysid.org>
Minor CMake files.

* CMake now fails of CMake/config.h.in doesn't exist.
* Command './autogen cmake' now generates CMake/config.h.in.
src/common.h : Double value of SF_FILENAME_LEN to 1024.

Closes: https://github.com/erikd/libsndfile/issues/81
src/sndfile.c : Return an error if the file path is too long.
CMake/build.cmake : Fix for CMake 3.0.2.

Previous versions of CMake allowed targets names like "tests/win32_test"
but CMake 3.0.2 doesn't. The corresponding target name for the new CMake
is "win32_test", but putting the resulting executable in the tests/
directory requires something like:

    add_executable (win32_test tests/win32_test.c)
    set_target_properties (win32_test
                           PROPERTIES RUNTIME_OUTPUT_DIRECTORY tests)
Update .gitignore.
Manpage updates/improvementss.

* Explicitly name options instead of just [options].
* Replace needless verbiage by standard macros.
* Order options alphabetically.
* Add a few cross-references.
* Minor punctuation nits.

Patch-from: Jan Stary <hans@stare.cz>
caf: avoid NULL dereference

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
sd2: fix use-after-free

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
src/sd2.c  Whitespace fix.
programs/ : Minor console output fixes.

* programs/common.c : Remove copy/paste cruft.
* programs/sndfile-play.c : Fix inconsistent indentation.

Patch-from: Jan Stary <hans@stare.cz>
configure : Disable versioned dynamic library when compling for Android.

Closes: https://github.com/erikd/libsndfile/issues/51
src/Makefile.am : Clean up usage of autotool variables.
Add file Scripts/static-deps-build.mk.

A Makefile to build libsndfile with statically linked FLAC, Ogg and
Vorbis libraries. This build method is not documented and minimally
supported. Patches are accepted as long as they don't break my usage
of it.
tests/test_wrapper.sh.in : Handle failure of sfversion.
tests/win32_ordinal_test.c : Better debugging when LoadLibrary fails.