seal 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardopts +1 -0
- data/LICENSE +13 -0
- data/README.md +265 -0
- data/ext/seal/extconf.rb +45 -0
- data/include/al/al.h +724 -0
- data/include/al/alc.h +277 -0
- data/include/al/efx-presets.h +402 -0
- data/include/al/efx.h +758 -0
- data/include/mpg123/mpg123.h +1034 -0
- data/include/ogg/config_types.h +25 -0
- data/include/ogg/ogg.h +210 -0
- data/include/ogg/os_types.h +147 -0
- data/include/seal.h +23 -0
- data/include/seal/buf.h +143 -0
- data/include/seal/core.h +95 -0
- data/include/seal/efs.h +112 -0
- data/include/seal/err.h +93 -0
- data/include/seal/fmt.h +58 -0
- data/include/seal/listener.h +103 -0
- data/include/seal/raw.h +86 -0
- data/include/seal/rvb.h +520 -0
- data/include/seal/src.h +413 -0
- data/include/seal/stream.h +81 -0
- data/include/vorbis/codec.h +243 -0
- data/include/vorbis/vorbisfile.h +206 -0
- data/mpg123/AUTHORS +150 -0
- data/mpg123/COPYING +773 -0
- data/mpg123/ChangeLog +3 -0
- data/mpg123/INSTALL +111 -0
- data/mpg123/Makefile.am +99 -0
- data/mpg123/Makefile.in +1043 -0
- data/mpg123/NEWS +1200 -0
- data/mpg123/NEWS.libmpg123 +133 -0
- data/mpg123/README +203 -0
- data/mpg123/TODO +38 -0
- data/mpg123/aclocal.m4 +1168 -0
- data/mpg123/build/config.guess +1530 -0
- data/mpg123/build/config.sub +1782 -0
- data/mpg123/build/depcomp +707 -0
- data/mpg123/build/install-sh +527 -0
- data/mpg123/build/ltmain.sh +9655 -0
- data/mpg123/build/missing +330 -0
- data/mpg123/configure +20267 -0
- data/mpg123/configure.ac +2178 -0
- data/mpg123/doc/ACCURACY +2 -0
- data/mpg123/doc/BENCHMARKING +110 -0
- data/mpg123/doc/BUGS +3 -0
- data/mpg123/doc/CONTACT +17 -0
- data/mpg123/doc/LICENSE +22 -0
- data/mpg123/doc/Makefile.am +32 -0
- data/mpg123/doc/Makefile.in +490 -0
- data/mpg123/doc/PATENTS +39 -0
- data/mpg123/doc/README.3DNOW +56 -0
- data/mpg123/doc/README.gain +171 -0
- data/mpg123/doc/README.remote +218 -0
- data/mpg123/doc/ROAD_TO_LGPL +270 -0
- data/mpg123/doc/THANKS +13 -0
- data/mpg123/doc/TODO +63 -0
- data/mpg123/doc/doxy_examples.c +21 -0
- data/mpg123/doc/doxygen.conf +41 -0
- data/mpg123/doc/doxyhead.xhtml +12 -0
- data/mpg123/doc/examples/dump_seekindex.c +41 -0
- data/mpg123/doc/examples/extract_frames.c +92 -0
- data/mpg123/doc/examples/feedseek.c +238 -0
- data/mpg123/doc/examples/id3dump.c +178 -0
- data/mpg123/doc/examples/mpg123_to_wav.c +118 -0
- data/mpg123/doc/examples/mpglib.c +92 -0
- data/mpg123/doc/examples/scan.c +47 -0
- data/mpg123/doc/libmpg123_speed.txt +84 -0
- data/mpg123/equalize.dat +37 -0
- data/mpg123/libmpg123.pc.in +11 -0
- data/mpg123/m4/addrconfig.m4 +34 -0
- data/mpg123/m4/libtool.m4 +7982 -0
- data/mpg123/m4/ltoptions.m4 +384 -0
- data/mpg123/m4/ltsugar.m4 +123 -0
- data/mpg123/m4/ltversion.m4 +23 -0
- data/mpg123/m4/lt~obsolete.m4 +98 -0
- data/mpg123/makedll.sh +19 -0
- data/mpg123/man1/mpg123.1 +512 -0
- data/mpg123/mpg123.spec +68 -0
- data/mpg123/mpg123.spec.in +68 -0
- data/mpg123/ports/MSVC++/2005/libmpg123/libmpg123.vcproj +741 -0
- data/mpg123/ports/MSVC++/2008/dump_seekindex/dump_seekindex.vcproj +194 -0
- data/mpg123/ports/MSVC++/2008/feedseek/feedseek.vcproj +195 -0
- data/mpg123/ports/MSVC++/2008/libmpg123/libmpg123.vcproj +1357 -0
- data/mpg123/ports/MSVC++/2008/mpg123.sln +44 -0
- data/mpg123/ports/MSVC++/2008/mpglib/mpglib.vcproj +191 -0
- data/mpg123/ports/MSVC++/2008/scan/scan.vcproj +195 -0
- data/mpg123/ports/MSVC++/2008clr/2008clr.sln +81 -0
- data/mpg123/ports/MSVC++/2008clr/examples/ReplaceReaderclr/Program.cs +435 -0
- data/mpg123/ports/MSVC++/2008clr/examples/ReplaceReaderclr/Properties/AssemblyInfo.cs +36 -0
- data/mpg123/ports/MSVC++/2008clr/examples/ReplaceReaderclr/ReplaceReaderclr.csproj +72 -0
- data/mpg123/ports/MSVC++/2008clr/examples/feedseekclr/Program.cs +331 -0
- data/mpg123/ports/MSVC++/2008clr/examples/feedseekclr/Properties/AssemblyInfo.cs +36 -0
- data/mpg123/ports/MSVC++/2008clr/examples/feedseekclr/feedseekclr.csproj +71 -0
- data/mpg123/ports/MSVC++/2008clr/examples/scanclr/Program.cs +79 -0
- data/mpg123/ports/MSVC++/2008clr/examples/scanclr/Properties/AssemblyInfo.cs +36 -0
- data/mpg123/ports/MSVC++/2008clr/examples/scanclr/scanclr.csproj +70 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/AssemblyInfo.cpp +76 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/ReadMe.txt +165 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/advanced.cpp +91 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/advanced.h +130 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/dllmain.cpp +19 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/enum.h +218 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/error.cpp +48 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/error.h +134 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/id3v1.cpp +92 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/id3v1.h +132 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/id3v2.cpp +138 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/id3v2.h +152 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/mpg123clr.cpp +896 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/mpg123clr.h +953 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/mpg123clr.rc +102 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/mpg123clr.vcproj +328 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/resource.h +14 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/stdafx.cpp +8 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/stdafx.h +38 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/string.cpp +166 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/string.h +265 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/targetver.h +24 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/text.cpp +67 -0
- data/mpg123/ports/MSVC++/2008clr/mpg123clr/text.h +111 -0
- data/mpg123/ports/MSVC++/2010/dump_seekindex/dump_seekindex.vcxproj +90 -0
- data/mpg123/ports/MSVC++/2010/dump_seekindex/dump_seekindex.vcxproj.filters +6 -0
- data/mpg123/ports/MSVC++/2010/feedseek/feedseek.vcxproj +95 -0
- data/mpg123/ports/MSVC++/2010/feedseek/feedseek.vcxproj.filters +6 -0
- data/mpg123/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj +960 -0
- data/mpg123/ports/MSVC++/2010/libmpg123/libmpg123.vcxproj.user +3 -0
- data/mpg123/ports/MSVC++/2010/libmpg123/yasm.exe +0 -0
- data/mpg123/ports/MSVC++/2010/mpg123.sln +38 -0
- data/mpg123/ports/MSVC++/2010/scan/scan.vcxproj +93 -0
- data/mpg123/ports/MSVC++/2010/scan/scan.vcxproj.filters +6 -0
- data/mpg123/ports/MSVC++/CMP3Stream/INCLUDE/CORE/CORE_FileIn.H +15 -0
- data/mpg123/ports/MSVC++/CMP3Stream/INCLUDE/CORE/SourceFilter_MP3.H +139 -0
- data/mpg123/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_Def.H +206 -0
- data/mpg123/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_FileIn.H +167 -0
- data/mpg123/ports/MSVC++/CMP3Stream/README +4 -0
- data/mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_FileIn.CPP +462 -0
- data/mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_Log.CPP +122 -0
- data/mpg123/ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP +35 -0
- data/mpg123/ports/MSVC++/CMP3Stream/SOURCE/SourceFilter_MP3Stream.CPP +586 -0
- data/mpg123/ports/MSVC++/CMP3Stream/libMPG123/PLACE_LIBMPG123_SOURCES_HERE +0 -0
- data/mpg123/ports/MSVC++/CMP3Stream/libMPG123/libMPG123.vcproj +245 -0
- data/mpg123/ports/MSVC++/config.h +35 -0
- data/mpg123/ports/MSVC++/examples/feedseek.c +240 -0
- data/mpg123/ports/MSVC++/examples/scan.c +47 -0
- data/mpg123/ports/MSVC++/mpg123.h +46 -0
- data/mpg123/ports/MSVC++/msvc.c +59 -0
- data/mpg123/ports/README +26 -0
- data/mpg123/ports/Sony_PSP/Makefile.psp +38 -0
- data/mpg123/ports/Sony_PSP/README +11 -0
- data/mpg123/ports/Sony_PSP/config.h +368 -0
- data/mpg123/ports/Sony_PSP/readers.c.patch +2 -0
- data/mpg123/ports/Xcode/config.h +197 -0
- data/mpg123/ports/Xcode/mpg123.h +17 -0
- data/mpg123/ports/Xcode/mpg123.xcodeproj/project.pbxproj +670 -0
- data/mpg123/ports/mpg123_.pas +478 -0
- data/mpg123/scripts/benchmark-cpu.pl +56 -0
- data/mpg123/scripts/tag_lyrics.py +76 -0
- data/mpg123/src/Makefile.am +186 -0
- data/mpg123/src/Makefile.in +1097 -0
- data/mpg123/src/audio.c +725 -0
- data/mpg123/src/audio.h +106 -0
- data/mpg123/src/buffer.c +312 -0
- data/mpg123/src/buffer.h +45 -0
- data/mpg123/src/common.c +240 -0
- data/mpg123/src/common.h +29 -0
- data/mpg123/src/config.h.in +436 -0
- data/mpg123/src/control_generic.c +809 -0
- data/mpg123/src/equalizer.c +48 -0
- data/mpg123/src/genre.c +271 -0
- data/mpg123/src/genre.h +15 -0
- data/mpg123/src/getlopt.c +148 -0
- data/mpg123/src/getlopt.h +77 -0
- data/mpg123/src/httpget.c +700 -0
- data/mpg123/src/httpget.h +66 -0
- data/mpg123/src/legacy_module.c +74 -0
- data/mpg123/src/libmpg123/Makefile.am +141 -0
- data/mpg123/src/libmpg123/Makefile.in +919 -0
- data/mpg123/src/libmpg123/compat.c +138 -0
- data/mpg123/src/libmpg123/compat.h +178 -0
- data/mpg123/src/libmpg123/dct36_3dnow.S +505 -0
- data/mpg123/src/libmpg123/dct36_3dnowext.S +512 -0
- data/mpg123/src/libmpg123/dct64.c +174 -0
- data/mpg123/src/libmpg123/dct64_3dnow.S +712 -0
- data/mpg123/src/libmpg123/dct64_3dnowext.S +714 -0
- data/mpg123/src/libmpg123/dct64_altivec.c +315 -0
- data/mpg123/src/libmpg123/dct64_i386.c +336 -0
- data/mpg123/src/libmpg123/dct64_i486.c +342 -0
- data/mpg123/src/libmpg123/dct64_mmx.S +811 -0
- data/mpg123/src/libmpg123/dct64_neon.S +297 -0
- data/mpg123/src/libmpg123/dct64_neon_float.S +270 -0
- data/mpg123/src/libmpg123/dct64_sse.S +454 -0
- data/mpg123/src/libmpg123/dct64_sse_float.S +401 -0
- data/mpg123/src/libmpg123/dct64_x86_64.S +464 -0
- data/mpg123/src/libmpg123/dct64_x86_64_float.S +426 -0
- data/mpg123/src/libmpg123/debug.h +171 -0
- data/mpg123/src/libmpg123/decode.h +268 -0
- data/mpg123/src/libmpg123/dither.c +119 -0
- data/mpg123/src/libmpg123/dither.h +23 -0
- data/mpg123/src/libmpg123/equalizer.c +17 -0
- data/mpg123/src/libmpg123/equalizer_3dnow.S +70 -0
- data/mpg123/src/libmpg123/feature.c +106 -0
- data/mpg123/src/libmpg123/format.c +521 -0
- data/mpg123/src/libmpg123/frame.c +1046 -0
- data/mpg123/src/libmpg123/frame.h +410 -0
- data/mpg123/src/libmpg123/gapless.h +119 -0
- data/mpg123/src/libmpg123/getbits.h +100 -0
- data/mpg123/src/libmpg123/getcpuflags.S +91 -0
- data/mpg123/src/libmpg123/getcpuflags.h +47 -0
- data/mpg123/src/libmpg123/huffman.h +340 -0
- data/mpg123/src/libmpg123/icy.c +32 -0
- data/mpg123/src/libmpg123/icy.h +38 -0
- data/mpg123/src/libmpg123/icy2utf8.c +438 -0
- data/mpg123/src/libmpg123/icy2utf8.h +10 -0
- data/mpg123/src/libmpg123/id3.c +999 -0
- data/mpg123/src/libmpg123/id3.h +43 -0
- data/mpg123/src/libmpg123/index.c +134 -0
- data/mpg123/src/libmpg123/index.h +59 -0
- data/mpg123/src/libmpg123/intsym.h +256 -0
- data/mpg123/src/libmpg123/l12_integer_tables.h +278 -0
- data/mpg123/src/libmpg123/l2tables.h +164 -0
- data/mpg123/src/libmpg123/l3_integer_tables.h +1002 -0
- data/mpg123/src/libmpg123/layer1.c +155 -0
- data/mpg123/src/libmpg123/layer2.c +371 -0
- data/mpg123/src/libmpg123/layer3.c +2053 -0
- data/mpg123/src/libmpg123/lfs_alias.c +252 -0
- data/mpg123/src/libmpg123/lfs_wrap.c +751 -0
- data/mpg123/src/libmpg123/libmpg123.c +1607 -0
- data/mpg123/src/libmpg123/mangle.h +74 -0
- data/mpg123/src/libmpg123/mpeghead.h +87 -0
- data/mpg123/src/libmpg123/mpg123.h.in +1075 -0
- data/mpg123/src/libmpg123/mpg123lib_intern.h +338 -0
- data/mpg123/src/libmpg123/ntom.c +148 -0
- data/mpg123/src/libmpg123/optimize.c +964 -0
- data/mpg123/src/libmpg123/optimize.h +219 -0
- data/mpg123/src/libmpg123/parse.c +1179 -0
- data/mpg123/src/libmpg123/parse.h +25 -0
- data/mpg123/src/libmpg123/reader.h +137 -0
- data/mpg123/src/libmpg123/readers.c +1235 -0
- data/mpg123/src/libmpg123/sample.h +152 -0
- data/mpg123/src/libmpg123/stringbuf.c +163 -0
- data/mpg123/src/libmpg123/synth.c +816 -0
- data/mpg123/src/libmpg123/synth.h +196 -0
- data/mpg123/src/libmpg123/synth_3dnow.S +318 -0
- data/mpg123/src/libmpg123/synth_3dnowext.S +6 -0
- data/mpg123/src/libmpg123/synth_8bit.c +142 -0
- data/mpg123/src/libmpg123/synth_8bit.h +86 -0
- data/mpg123/src/libmpg123/synth_altivec.c +1057 -0
- data/mpg123/src/libmpg123/synth_arm.S +271 -0
- data/mpg123/src/libmpg123/synth_arm_accurate.S +287 -0
- data/mpg123/src/libmpg123/synth_i486.c +252 -0
- data/mpg123/src/libmpg123/synth_i586.S +336 -0
- data/mpg123/src/libmpg123/synth_i586_dither.S +375 -0
- data/mpg123/src/libmpg123/synth_mmx.S +125 -0
- data/mpg123/src/libmpg123/synth_mono.h +64 -0
- data/mpg123/src/libmpg123/synth_neon.S +123 -0
- data/mpg123/src/libmpg123/synth_neon_accurate.S +173 -0
- data/mpg123/src/libmpg123/synth_neon_float.S +149 -0
- data/mpg123/src/libmpg123/synth_neon_s32.S +168 -0
- data/mpg123/src/libmpg123/synth_ntom.h +213 -0
- data/mpg123/src/libmpg123/synth_real.c +404 -0
- data/mpg123/src/libmpg123/synth_s32.c +411 -0
- data/mpg123/src/libmpg123/synth_sse.S +6 -0
- data/mpg123/src/libmpg123/synth_sse3d.h +246 -0
- data/mpg123/src/libmpg123/synth_sse_accurate.S +294 -0
- data/mpg123/src/libmpg123/synth_sse_float.S +241 -0
- data/mpg123/src/libmpg123/synth_sse_s32.S +306 -0
- data/mpg123/src/libmpg123/synth_stereo_neon.S +175 -0
- data/mpg123/src/libmpg123/synth_stereo_neon_accurate.S +262 -0
- data/mpg123/src/libmpg123/synth_stereo_neon_float.S +220 -0
- data/mpg123/src/libmpg123/synth_stereo_neon_s32.S +247 -0
- data/mpg123/src/libmpg123/synth_stereo_sse_accurate.S +508 -0
- data/mpg123/src/libmpg123/synth_stereo_sse_float.S +416 -0
- data/mpg123/src/libmpg123/synth_stereo_sse_s32.S +540 -0
- data/mpg123/src/libmpg123/synth_stereo_x86_64.S +335 -0
- data/mpg123/src/libmpg123/synth_stereo_x86_64_accurate.S +454 -0
- data/mpg123/src/libmpg123/synth_stereo_x86_64_float.S +396 -0
- data/mpg123/src/libmpg123/synth_stereo_x86_64_s32.S +473 -0
- data/mpg123/src/libmpg123/synth_x86_64.S +244 -0
- data/mpg123/src/libmpg123/synth_x86_64_accurate.S +301 -0
- data/mpg123/src/libmpg123/synth_x86_64_float.S +259 -0
- data/mpg123/src/libmpg123/synth_x86_64_s32.S +312 -0
- data/mpg123/src/libmpg123/synths.h +52 -0
- data/mpg123/src/libmpg123/tabinit.c +294 -0
- data/mpg123/src/libmpg123/tabinit_mmx.S +210 -0
- data/mpg123/src/libmpg123/testcpu.c +35 -0
- data/mpg123/src/libmpg123/true.h +14 -0
- data/mpg123/src/local.c +63 -0
- data/mpg123/src/local.h +21 -0
- data/mpg123/src/metaprint.c +373 -0
- data/mpg123/src/metaprint.h +17 -0
- data/mpg123/src/module.c +306 -0
- data/mpg123/src/module.h +48 -0
- data/mpg123/src/mpg123.c +1405 -0
- data/mpg123/src/mpg123app.h +171 -0
- data/mpg123/src/output/Makefile.am +213 -0
- data/mpg123/src/output/Makefile.in +1238 -0
- data/mpg123/src/output/aix.c +300 -0
- data/mpg123/src/output/alib.c +209 -0
- data/mpg123/src/output/alsa.c +297 -0
- data/mpg123/src/output/arts.c +117 -0
- data/mpg123/src/output/coreaudio.c +370 -0
- data/mpg123/src/output/dummy.c +78 -0
- data/mpg123/src/output/esd.c +167 -0
- data/mpg123/src/output/hp.c +184 -0
- data/mpg123/src/output/jack.c +450 -0
- data/mpg123/src/output/mint.c +197 -0
- data/mpg123/src/output/nas.c +335 -0
- data/mpg123/src/output/openal.c +197 -0
- data/mpg123/src/output/os2.c +665 -0
- data/mpg123/src/output/oss.c +319 -0
- data/mpg123/src/output/portaudio.c +255 -0
- data/mpg123/src/output/pulse.c +164 -0
- data/mpg123/src/output/sdl.c +206 -0
- data/mpg123/src/output/sgi.c +213 -0
- data/mpg123/src/output/sndio.c +161 -0
- data/mpg123/src/output/sun.c +281 -0
- data/mpg123/src/output/win32.c +229 -0
- data/mpg123/src/playlist.c +596 -0
- data/mpg123/src/playlist.h +52 -0
- data/mpg123/src/resolver.c +319 -0
- data/mpg123/src/resolver.h +25 -0
- data/mpg123/src/sfifo.c +146 -0
- data/mpg123/src/sfifo.h +95 -0
- data/mpg123/src/streamdump.c +74 -0
- data/mpg123/src/streamdump.h +20 -0
- data/mpg123/src/term.c +479 -0
- data/mpg123/src/term.h +81 -0
- data/mpg123/src/tests/noise.c +52 -0
- data/mpg123/src/tests/plain_id3.c +109 -0
- data/mpg123/src/tests/seek_accuracy.c +261 -0
- data/mpg123/src/tests/seek_whence.c +56 -0
- data/mpg123/src/tests/testtext.h +34 -0
- data/mpg123/src/tests/text.c +80 -0
- data/mpg123/src/wav.c +464 -0
- data/mpg123/src/wavhead.h +68 -0
- data/mpg123/src/win32_net.c +599 -0
- data/mpg123/src/win32_support.c +191 -0
- data/mpg123/src/win32_support.h +152 -0
- data/mpg123/src/xfermem.c +321 -0
- data/mpg123/src/xfermem.h +74 -0
- data/mpg123/windows-builds.sh +137 -0
- data/msvc/lib/OpenAL32.lib +0 -0
- data/spec/fixtures/heal.ogg +0 -0
- data/spec/fixtures/tone_up.wav +0 -0
- data/spec/seal/buffer_spec.rb +37 -0
- data/spec/seal/core_spec.rb +29 -0
- data/spec/seal/effect_slot_spec.rb +38 -0
- data/spec/seal/listener_spec.rb +33 -0
- data/spec/seal/reverb_spec.rb +51 -0
- data/spec/seal/source_spec.rb +370 -0
- data/spec/seal/stream_spec.rb +38 -0
- data/spec/spec_helper.rb +45 -0
- data/spec/support/attribute_examples.rb +75 -0
- data/spec/support/audio_object_with_format.rb +27 -0
- data/spec/support/movable_object.rb +22 -0
- data/src/libogg/bitwise.c +857 -0
- data/src/libogg/framing.c +2093 -0
- data/src/libvorbis/backends.h +144 -0
- data/src/libvorbis/bitrate.c +253 -0
- data/src/libvorbis/bitrate.h +59 -0
- data/src/libvorbis/block.c +1046 -0
- data/src/libvorbis/codebook.c +484 -0
- data/src/libvorbis/codebook.h +119 -0
- data/src/libvorbis/codec_internal.h +167 -0
- data/src/libvorbis/envelope.c +375 -0
- data/src/libvorbis/envelope.h +80 -0
- data/src/libvorbis/floor0.c +221 -0
- data/src/libvorbis/floor1.c +1100 -0
- data/src/libvorbis/highlevel.h +58 -0
- data/src/libvorbis/info.c +668 -0
- data/src/libvorbis/lookup.c +94 -0
- data/src/libvorbis/lookup.h +32 -0
- data/src/libvorbis/lookup_data.h +192 -0
- data/src/libvorbis/lpc.c +160 -0
- data/src/libvorbis/lpc.h +29 -0
- data/src/libvorbis/lsp.c +456 -0
- data/src/libvorbis/lsp.h +28 -0
- data/src/libvorbis/mapping0.c +816 -0
- data/src/libvorbis/masking.h +785 -0
- data/src/libvorbis/mdct.c +563 -0
- data/src/libvorbis/mdct.h +71 -0
- data/src/libvorbis/misc.h +57 -0
- data/src/libvorbis/os.h +186 -0
- data/src/libvorbis/psy.c +1206 -0
- data/src/libvorbis/psy.h +154 -0
- data/src/libvorbis/registry.c +45 -0
- data/src/libvorbis/registry.h +32 -0
- data/src/libvorbis/res0.c +889 -0
- data/src/libvorbis/scales.h +90 -0
- data/src/libvorbis/sharedbook.c +579 -0
- data/src/libvorbis/smallft.c +1255 -0
- data/src/libvorbis/smallft.h +34 -0
- data/src/libvorbis/synthesis.c +184 -0
- data/src/libvorbis/vorbisfile.c +2337 -0
- data/src/libvorbis/window.c +2135 -0
- data/src/libvorbis/window.h +26 -0
- data/src/rubyext.c +2329 -0
- data/src/seal/buf.c +124 -0
- data/src/seal/core.c +283 -0
- data/src/seal/efs.c +74 -0
- data/src/seal/err.c +118 -0
- data/src/seal/fmt.c +86 -0
- data/src/seal/listener.c +111 -0
- data/src/seal/mpg.c +174 -0
- data/src/seal/mpg.h +24 -0
- data/src/seal/ov.c +180 -0
- data/src/seal/ov.h +22 -0
- data/src/seal/raw.c +59 -0
- data/src/seal/reader.c +102 -0
- data/src/seal/reader.h +59 -0
- data/src/seal/rvb.c +368 -0
- data/src/seal/src.c +654 -0
- data/src/seal/stream.c +109 -0
- data/src/seal/threading.c +66 -0
- data/src/seal/threading.h +20 -0
- data/src/seal/wav.c +297 -0
- data/src/seal/wav.h +23 -0
- data/src/win32api.rb +29 -0
- metadata +563 -0
@@ -0,0 +1,133 @@
|
|
1
|
+
Changes in libmpg123 libtool interface versions...
|
2
|
+
|
3
|
+
36.0.36
|
4
|
+
- Extended MPG123_RESYNC_LIMIT to initial header search.
|
5
|
+
- Not cutting decoder delay unconditionally anymore (only in combination with known encoder delay / padding).
|
6
|
+
|
7
|
+
35.0.35
|
8
|
+
- Added mpg123_meta_free().
|
9
|
+
|
10
|
+
34.0.34
|
11
|
+
- Added flag MPG123_AUTO_RESAMPLE.
|
12
|
+
- Changed (improved;-) outbuffer behaviour.
|
13
|
+
|
14
|
+
33.0.33
|
15
|
+
- Added MPG123_BUFFERFILL.
|
16
|
+
|
17
|
+
32.0.32
|
18
|
+
- Added mpg123_framepos()
|
19
|
+
|
20
|
+
31.0.31
|
21
|
+
- Added mpg123_framedata() and MPG123_IGNORE_INFOFRAME.
|
22
|
+
|
23
|
+
30.0.30
|
24
|
+
- Added MPG123_FEEDPOOL and MPG123_FEEDBUFFER.
|
25
|
+
|
26
|
+
29.0.29
|
27
|
+
- New decoder: ARM neon.
|
28
|
+
- Added support for 24 bit output (dumb byte-chopping of 32 bit output).
|
29
|
+
|
30
|
+
28.0.28
|
31
|
+
- Add mpg123_strlen().
|
32
|
+
|
33
|
+
27.0.27
|
34
|
+
- Implictly disable seeking on streams when client enforced ICY parsing.
|
35
|
+
This helps debugging dumps of http streams.
|
36
|
+
|
37
|
+
26.0.26
|
38
|
+
- Added mpg123_encsize().
|
39
|
+
- Added flag MPG123_SKIP_ID3V2.
|
40
|
+
|
41
|
+
25.0.25
|
42
|
+
- Version increase to mark the point where the split between normal and large-file-enabled library vanishes again. The world did not like it.
|
43
|
+
Now Thomas lost some days of recreation and sleep to give it a dual-mode libmpg123 on large-file-sensitive systems.
|
44
|
+
|
45
|
+
24.0.24
|
46
|
+
- Introduce mpg123_replace_reader_handle() and mpg123_open_handle()
|
47
|
+
... this is also in preparation for the next version which will drop the separated large-file library again, due to public display of dismay.
|
48
|
+
- Add the experimental mpg123_framebyframe_decode to the off_t-sensitive functions.
|
49
|
+
|
50
|
+
23.0.23
|
51
|
+
- Version increase to mark the point where the explicit split between normal and large-file-enabled library has been introduced.
|
52
|
+
|
53
|
+
22.0.22
|
54
|
+
- Experimental framebyframe API added.
|
55
|
+
|
56
|
+
21.0.21
|
57
|
+
- Added support of unicode file names under windows via UTF-8 argument to mpg123_open.
|
58
|
+
- Added mpg123_feature(), for example to test for the above behaviour.
|
59
|
+
|
60
|
+
20.0.20
|
61
|
+
- New flag: MPG123_PLAIN_ID3TEXT
|
62
|
+
- Corresponding text encoding handling API added:
|
63
|
+
mpg123_enc_from_id3, mpg123_store_utf8
|
64
|
+
|
65
|
+
19.0.19
|
66
|
+
- Hm, what was it exactly now... there are candidates:
|
67
|
+
- runtime dithering
|
68
|
+
- free format
|
69
|
+
- ARM optimizations
|
70
|
+
|
71
|
+
18.0.18
|
72
|
+
- new parameter: MPG123_PREFRAMES is now tunable (the number of frames to decode and skip before a seek point), also default value increased
|
73
|
+
|
74
|
+
17.0.17
|
75
|
+
- introduction optimized stereo synths
|
76
|
+
|
77
|
+
16.0.16
|
78
|
+
- introducing floating point x86-64 SSE synth
|
79
|
+
|
80
|
+
15.0.15
|
81
|
+
- first addition of x86-64 SSE optimizations
|
82
|
+
|
83
|
+
14.0.14
|
84
|
+
- the first libmpg123 with actually working MPG123_UPSPEED
|
85
|
+
- also important regression fix concerning skipping of frames
|
86
|
+
|
87
|
+
13.0.13
|
88
|
+
- The whole set of output formats is generally available (8, 16 and 32 bit integer, signed/unsigned, float)
|
89
|
+
- Many features can be absent from libary as build decision (minimize binary size).
|
90
|
+
|
91
|
+
12.0.12
|
92
|
+
- added mpg123_current_decoder
|
93
|
+
- fixed value of MPG123_ENC_FLOAT
|
94
|
+
- float output now is a real runtime option
|
95
|
+
|
96
|
+
11.0.11
|
97
|
+
- added mpg123_getstate
|
98
|
+
- run-time tunable frame index
|
99
|
+
- officially configured with largefile support where available
|
100
|
+
|
101
|
+
10.0.10
|
102
|
+
- new flag MPG123_FUZZY (along with the fuzzy seek functionality)
|
103
|
+
|
104
|
+
9.0.9
|
105
|
+
- added mpg123_tell_stream
|
106
|
+
|
107
|
+
8.0.8
|
108
|
+
- added mpg123_get_eq
|
109
|
+
|
110
|
+
7.0.7
|
111
|
+
- added mpg123_set_filesize
|
112
|
+
|
113
|
+
6.0.6
|
114
|
+
- added mpg123_icy2utf8
|
115
|
+
|
116
|
+
5.0.5
|
117
|
+
- added mpg123_feed
|
118
|
+
- input buffers now const
|
119
|
+
|
120
|
+
4.0.4
|
121
|
+
- extended mpg123_string api (mpg123_add_substring, mpg123_grow_string)
|
122
|
+
|
123
|
+
3.0.3
|
124
|
+
- Initial floating point support as compile-time option.
|
125
|
+
|
126
|
+
2.0.2
|
127
|
+
- New flag MPG123_SEEKBUFFER.
|
128
|
+
|
129
|
+
1.0.1
|
130
|
+
- Added MPG123_RESYNC_LIMIT parameter.
|
131
|
+
- Added MPG123_OUT_OF_SYNC and MPG123_RESYNC_FAIL error codes.
|
132
|
+
- Fix for uninitialized framesize value in handle.
|
133
|
+
|
data/mpg123/README
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
2
|
+
* mpg123 - MPEG 1.0/2.0/2.5 audio player *
|
3
|
+
* README for version 1.x.y, dated at 14.06.2009 *
|
4
|
+
* *
|
5
|
+
* ...still the fastest MPEG audio player for UNIX ;) *
|
6
|
+
* * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
7
|
+
(This file has very long lines - die-hard terminal nostalgists can be satisfied by `fmt -s -w 75 < README | less`. I think it's better to let the reader's preference rule than to preformat the stuff to some arbitrary width.)
|
8
|
+
|
9
|
+
|
10
|
+
0. Stuff
|
11
|
+
|
12
|
+
For building/installation info see INSTALL.
|
13
|
+
|
14
|
+
The mpg123 project was started by Michel Hipp and is now being maintained by Thomas Orgis and Nicholas J. Humfrey, who initiated the Sourceforge project.
|
15
|
+
The source code contains contributions from quite a few people - see AUTHORS for more info.
|
16
|
+
It is Open Source software licensed mostly under the LGPL with some parts restricted to GPL. See COPYING for details.
|
17
|
+
As for every mp3 player, some of mpg123's functionality may be covered by patents in a country where these are valid. See PATENTS for details.
|
18
|
+
|
19
|
+
Project's official website URL is
|
20
|
+
|
21
|
+
http://mpg123.org
|
22
|
+
(or http://mpg123.orgis.org as fallback address if there is a problem with the DNS forwarding)
|
23
|
+
|
24
|
+
for the traditional home page and
|
25
|
+
|
26
|
+
http://sourceforge.net/projects/mpg123
|
27
|
+
|
28
|
+
for sourceforge.net based services like download mirrors, mailing lists and bug/feature trackers.
|
29
|
+
Please use the sourceforge download mirrors when possible to minimize load on the mpg123.org server.
|
30
|
+
|
31
|
+
|
32
|
+
1. Introduction
|
33
|
+
|
34
|
+
This is a console based decoder/player for mono/stereo mpeg audio files, probably more familiar as MP3 or MP2 files.
|
35
|
+
It's focus is speed. We still need some low-end benchmarks for the current version, but playback should be possible even on i486 CPUs. There is hand-optimized assembly code for i586, MMX, 3DNow, SEE and 3DNowExt instructions, while generic code runs on a variety of different platforms and CPUs.
|
36
|
+
It can play MPEG1.0/2.0/2.5 layer I, II, II (1, 2, 3;-) files (VBR files are fine, too) and produce output on a number of different ways: raw data to stdout and different sound systems depending on your platform (see INSTALL).
|
37
|
+
Most tested are Linux on x86 and Alpha/AXP and MacOSX on ppc as the environments the current developers work in.
|
38
|
+
We are always thankful for user reports on success (and failure) on any platform!
|
39
|
+
|
40
|
+
|
41
|
+
2. Contact
|
42
|
+
|
43
|
+
short:
|
44
|
+
|
45
|
+
mpg123-devel@lists.sourceforge.net
|
46
|
+
mpg123-users@lists.sourceforge.net
|
47
|
+
or
|
48
|
+
maintainer@mpg123.org
|
49
|
+
|
50
|
+
long: see doc/CONTACT
|
51
|
+
|
52
|
+
|
53
|
+
3. Interface/Usage
|
54
|
+
|
55
|
+
Please consult the manpage mpg123(1). Some starter info follows.
|
56
|
+
|
57
|
+
3.1 Simple Console Usage
|
58
|
+
|
59
|
+
Mpg123 is a console program - normally it just plays a list of files you specify on command line and that's it. See the included manpage or
|
60
|
+
|
61
|
+
mpg123 --help
|
62
|
+
|
63
|
+
or, for the full story,
|
64
|
+
|
65
|
+
mpg123 --longhelp
|
66
|
+
|
67
|
+
on command line syntax/options. I encourage you to check out the --gapless and --rva-album/--rva-mix options:-)
|
68
|
+
|
69
|
+
In the simple "mpg123 file1.mp3 file2.mp3" mode, the only thing you can do to interact is to press Ctrl+C to skip to next track or end the whole playback if pressing it twice.
|
70
|
+
|
71
|
+
Note that this Ctrl+C behaviour is special to this mode; when any of the following is activated, Ctrl+C will just kill the program like you would expect normally (this changed from earlier versions).
|
72
|
+
|
73
|
+
3.2 Advanced Console Usage
|
74
|
+
|
75
|
+
You can specify the option -C to enable a terminal control interface enabling to influence playback on current title/playlist by pressing some key:
|
76
|
+
|
77
|
+
-= terminal control keys =-
|
78
|
+
[s] or [ ] interrupt/restart playback (i.e. 'pause')
|
79
|
+
[f] next track
|
80
|
+
[d] previous track
|
81
|
+
[b] back to beginning of track
|
82
|
+
[p] pause while looping current sound chunk
|
83
|
+
[.] forward
|
84
|
+
[,] rewind
|
85
|
+
[:] fast forward
|
86
|
+
[;] fast rewind
|
87
|
+
[>] fine forward
|
88
|
+
[<] fine rewind
|
89
|
+
[+] volume up
|
90
|
+
[-] volume down
|
91
|
+
[r] RVA switch
|
92
|
+
[v] verbose switch
|
93
|
+
[l] list current playlist, indicating current track there
|
94
|
+
[t] display tag info (again)
|
95
|
+
[m] print MPEG header info (again)
|
96
|
+
[h] this help
|
97
|
+
[q] quit
|
98
|
+
|
99
|
+
You can change these bindings to key to your liking by modifying term.h .
|
100
|
+
|
101
|
+
Note: This interface needs not to be available on _every_ platform/build.
|
102
|
+
|
103
|
+
Another note: The volume up and down is performed by changing the scale factor (like the -f parameter) ... so the audio is scaled digitally in the given range of the output format (usually 16bits). That means the lowering the volume will decrease the dynamic range and possibly lessen the quality while increasing volume can in fact increase the dynamic range and thus make it better, if you deal with a silent source and no clipping is necessary.
|
104
|
+
It is a good idea to use RVA values stored in the file for adjusting low volume files, though - mpg123 handles that in addition to your volume setting.
|
105
|
+
|
106
|
+
3.3 Control Interface for Frontends
|
107
|
+
|
108
|
+
There used to be several interfaces for frontends left over from that past, but only one of them remains for the present and future:
|
109
|
+
|
110
|
+
The Generic Control Interface
|
111
|
+
|
112
|
+
It contains of communication of textual messages via standard input to mpg123 and responses to standard output unless the -s switch for output of audio data on stdout is used - then the responses come via stderr.
|
113
|
+
|
114
|
+
See doc/README.remote for usage.
|
115
|
+
|
116
|
+
|
117
|
+
4. Speed
|
118
|
+
|
119
|
+
mpg123 is fast. Any faster software player is probably based on some hacked mpg123;-)
|
120
|
+
MPlayer included mpg123 source code in it's mp3lib and we have to be thankful for the MPlayer folks adding SSE, 3DNowExt and AltiVec optimizations over the years, which we were able to backport.
|
121
|
+
|
122
|
+
mpg123 includes the AltiVec optimization since version 0.61 and the SSE and 3DNowExt optimizations since 0.66 .
|
123
|
+
Also, version 0.66 adds the merged x86 optimization build, which includes every applicable optimization for x86 cpus except the one for i486, wich is a bit special.
|
124
|
+
|
125
|
+
Now mpg123 catched up with MPlayer's mp3lib concerning decoding speed on my Pentium M (which supports SSE):
|
126
|
+
Decoding a certain album (Queensryche's Rage for Order) to /dev/null took 22.4s user time with mpg123-0.66 compared to 24.7s with MPlayer-1.0rc1 .
|
127
|
+
|
128
|
+
Also, beginning with mpg123 1.8.0, there are fresh x86-64 SSE optimizations (provided by Taihei Monma) which make mpg123 the fastest MPEG audio decoder in my knowledge also on current 64bit x86 systems.
|
129
|
+
|
130
|
+
5. Accuracy
|
131
|
+
|
132
|
+
The mpg123 engine is able to decode in full compliance to ISO/IEC 11172-3, for all three layers, using floating point or integer math (the latter since 1.8.1).
|
133
|
+
Accuracy of 16bit output depends on specific optimization in use and compile-time choice about the rounding mode (which is performance relevant).
|
134
|
+
|
135
|
+
The ISO test suite is incorporated in the mpg123 subversion repository under svn://orgis.org/mpg123/test, nightly tests of a build (with high-quality 16bit rounding) are published on the mpg123 website.
|
136
|
+
|
137
|
+
Dithered 16bit output is available as an option (the --cpu choices ending with _dither). See
|
138
|
+
|
139
|
+
http://dither123.dyndns.org
|
140
|
+
|
141
|
+
on the whereabouts.
|
142
|
+
|
143
|
+
6. History
|
144
|
+
|
145
|
+
A looooong time ago (mid-90s), Michael Hipp wrote some initial mpg123 and made it _the_ Unix console mp3 player in the following years.
|
146
|
+
The exact date of birth is fuzzy in human memory, but according to the master himself (Michael) mpg123 started in 1994 as an MP2 player which a year later, 1995, gained MP3 ability.
|
147
|
+
The core decoder files have mostly 1995 as their birth year listed, so one can say that mpg123 as the layer1,2,3 player was born in 1995.
|
148
|
+
In any case, that is a looooong time ago for a media player - especially for one that is still alive!
|
149
|
+
|
150
|
+
This is the historic description:
|
151
|
+
|
152
|
+
This isn't a new player. It's a fully rewritten version originally based
|
153
|
+
on the mpegaudio (FHG-version) package. The DCT algorithm in the
|
154
|
+
synthesis filter is a rewritten version of the DCT first seen in the maplay
|
155
|
+
package, which was written by Tobias Bading (bading@cs.tu-berlin.de). The
|
156
|
+
rewrite was necessary, because the GPL may not allow this copyright mix.
|
157
|
+
The mpegaudio package was written by various people from the MPEG/audio
|
158
|
+
software simulation group. The maplay is under GPL .. You can find the
|
159
|
+
original source code and the mpegaudio package on: ftp.tnt.uni-hannover.de.
|
160
|
+
|
161
|
+
Especially layer3.c common.c and mpg123.h is based on the dist10 package.
|
162
|
+
The code is fully rewritten but I'm using sometimes the
|
163
|
+
same variable names or similar function names as in the
|
164
|
+
original package.
|
165
|
+
|
166
|
+
In the current layer3.c I'm using a DCT36 first seen in Jeff Tsay's
|
167
|
+
(ctsay@pasteur.eecs.berkeley.edu) maplay 1.2+ package. His code is
|
168
|
+
under GPL .. I also tried the enhancement from Mikko Tommila. His
|
169
|
+
code is also in layer3.c (but it's disabled at the moment, because
|
170
|
+
it was slightly slower than the unrolled 9 point DCT (at least on
|
171
|
+
_my_ system)). Theoretically it should be faster. You may try it on
|
172
|
+
your system.
|
173
|
+
|
174
|
+
Well, that's how it started...
|
175
|
+
Official development ceased due to the typical lack-of-time syndrome around 2002 and the free-floating patches began to seize the day.
|
176
|
+
|
177
|
+
But before that, Michael wrote or rewrote the essential code; others contributed their bits.
|
178
|
+
The main message is:
|
179
|
+
|
180
|
+
Code is copyrighted by Michael Hipp, who made it free software under the terms of the LGPL 2.1.
|
181
|
+
|
182
|
+
Please see doc/ROAD_TO_LGPL, COPYING and AUTHORS for details on that. Note that the only notable legacy non-LGPL file was the old alsa output that didn't work with alsa 0.9/1.0 anymore.
|
183
|
+
Also, there has been a libao output in the betas 0.60 for a short period. Libao being generally problematic for us because of its GPL license, this output is not distributed anymore in the release packages. There is now a new, LGPLed alsa output that made both the old alsa and libao obsolete for our purposes.
|
184
|
+
So, the distributed mpg123 releases actually only contain LGPL code, but you get the other files from our subversion repository if you checkout the trunk / version tags.
|
185
|
+
|
186
|
+
There has been quite some confusion about the licensing and "freeness" of mpg123 in the past.
|
187
|
+
The initial "free for private use, ask me when you want to do something commercial" license caused some people to avoid mpg123 and even to write a replacement mimicking the interface but using a different decoding engine - what was not actively developed for too long but entered the "free" software sections.
|
188
|
+
|
189
|
+
The Debian (non-free section) and Gentoo distributions cared about the last stable and the last development release of mpg123 over the years with mainly applying security fixes. Thanks go to the distribution maintainers for not letting it alone to bitrot over the years.
|
190
|
+
|
191
|
+
Thomas Orgis started to hack on mpg123 in 2004 while working on his personal audio experience with mixplayd and later DerMixD, utilizing the generic control interface. In Feb 2005, he crammed control interface improvements together with Debian's r19 fixes and released the personal fork/patch named mpg123-thor.
|
192
|
+
Little later that year, Nicholas J. Humphrey independently created the sourceforge project and released an autotooled 0.59r under official GPL flag with Debian and MacOSX fixes.
|
193
|
+
In the beginning of 2006, Thomas finally decided that he could work "officially" on mpg123 and contacted Michael Hipp for taking over maintainership.
|
194
|
+
Michael was all-positive about letting mpg123 really live again (and perhaps see version 1.0 some time;-) and also pointed at the sourceforge project that didn't see much activity since the initial release.
|
195
|
+
A lot of emails and some weeks later there was the two-developer team of Nicholas and Thomas working on merging their mpg123 variants as well as adding some features and fixes to let it shine again.
|
196
|
+
|
197
|
+
And there we are now...
|
198
|
+
|
199
|
+
7. End
|
200
|
+
|
201
|
+
Have fun!
|
202
|
+
____________
|
203
|
+
Thomas Orgis
|
data/mpg123/TODO
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
Things that need to be done...
|
2
|
+
|
3
|
+
... as always, mostly outdated.
|
4
|
+
|
5
|
+
0. Fix that ugly crash that happens sometimes when Ctrl+C-ing with jack output active:
|
6
|
+
|
7
|
+
Program terminated with signal 11, Segmentation fault.
|
8
|
+
[New process 6293]
|
9
|
+
[New process 6291]
|
10
|
+
[New process 6292]
|
11
|
+
[New process 6284]
|
12
|
+
#0 0x00002aced607695b in memcpy () from /lib/libc.so.6
|
13
|
+
(gdb) bt
|
14
|
+
#0 0x00002aced607695b in memcpy () from /lib/libc.so.6
|
15
|
+
#1 0x00002aced5b4f092 in jack_ringbuffer_read () from /usr/lib/libjack.so.0
|
16
|
+
#2 0x00000000004151dd in process_callback ()
|
17
|
+
#3 0x00002aced5b4bf40 in Jack::JackClient::Execute () from /usr/lib/libjack.so.0
|
18
|
+
#4 0x00002aced5b5f8da in Jack::JackPosixThread::ThreadHandler () from /usr/lib/libjack.so.0
|
19
|
+
#5 0x00002aced6354fa7 in start_thread () from /lib/libpthread.so.0
|
20
|
+
#6 0x00002aced60c802d in clone () from /lib/libc.so.6
|
21
|
+
|
22
|
+
|
23
|
+
1. mpg123 could pick up new sample rates suggested by the output modules (like a jack server fixed to 96kHz) and adapt to that.
|
24
|
+
|
25
|
+
Though the practical rates for MPEG audio are up to 48kHz ... but one could easily upsample.
|
26
|
+
Currently, we detect standard rates and resample when needed... but not new ones.
|
27
|
+
|
28
|
+
4. Prevent ID3v2 tags from being parsed multiple times after seek.
|
29
|
+
|
30
|
+
I need to carry a list of ID3v2 frame addresses that already have been parsed into the data structures.
|
31
|
+
Currently, this is a possible memory leak when the seek index is disabled (tag data at file beginning) or id3 data is just somewhere in the stream.
|
32
|
+
That being said, in the "normal" case, there is no leak.
|
33
|
+
|
34
|
+
5. What's about SINGLE_MIX?
|
35
|
+
Check what is _really_ happening there, make some test file...
|
36
|
+
|
37
|
+
6. Ensure proper operation of free format with the feeder.
|
38
|
+
MPG123_NEED_MORE needs to be propagated from the freeformat framesize guesser.
|
data/mpg123/aclocal.m4
ADDED
@@ -0,0 +1,1168 @@
|
|
1
|
+
# generated automatically by aclocal 1.12.2 -*- Autoconf -*-
|
2
|
+
|
3
|
+
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
|
4
|
+
|
5
|
+
# This file is free software; the Free Software Foundation
|
6
|
+
# gives unlimited permission to copy and/or distribute it,
|
7
|
+
# with or without modifications, as long as this notice is preserved.
|
8
|
+
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
11
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
12
|
+
# PARTICULAR PURPOSE.
|
13
|
+
|
14
|
+
m4_ifndef([AC_AUTOCONF_VERSION],
|
15
|
+
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
16
|
+
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
|
17
|
+
[m4_warning([this file was generated for autoconf 2.69.
|
18
|
+
You have another version of autoconf. It may work, but is not guaranteed to.
|
19
|
+
If you have problems, you may need to regenerate the build system entirely.
|
20
|
+
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
21
|
+
|
22
|
+
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
23
|
+
#
|
24
|
+
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
25
|
+
#
|
26
|
+
# This program is free software; you can redistribute it and/or modify
|
27
|
+
# it under the terms of the GNU General Public License as published by
|
28
|
+
# the Free Software Foundation; either version 2 of the License, or
|
29
|
+
# (at your option) any later version.
|
30
|
+
#
|
31
|
+
# This program is distributed in the hope that it will be useful, but
|
32
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
33
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
34
|
+
# General Public License for more details.
|
35
|
+
#
|
36
|
+
# You should have received a copy of the GNU General Public License
|
37
|
+
# along with this program; if not, write to the Free Software
|
38
|
+
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
39
|
+
#
|
40
|
+
# As a special exception to the GNU General Public License, if you
|
41
|
+
# distribute this file as part of a program that contains a
|
42
|
+
# configuration script generated by Autoconf, you may include it under
|
43
|
+
# the same distribution terms that you use for the rest of that program.
|
44
|
+
|
45
|
+
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
|
46
|
+
# ----------------------------------
|
47
|
+
AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
48
|
+
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
49
|
+
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
|
50
|
+
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
|
51
|
+
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
52
|
+
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
53
|
+
fi
|
54
|
+
if test -n "$PKG_CONFIG"; then
|
55
|
+
_pkg_min_version=m4_default([$1], [0.9.0])
|
56
|
+
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
57
|
+
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
58
|
+
AC_MSG_RESULT([yes])
|
59
|
+
else
|
60
|
+
AC_MSG_RESULT([no])
|
61
|
+
PKG_CONFIG=""
|
62
|
+
fi
|
63
|
+
|
64
|
+
fi[]dnl
|
65
|
+
])# PKG_PROG_PKG_CONFIG
|
66
|
+
|
67
|
+
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
68
|
+
#
|
69
|
+
# Check to see whether a particular set of modules exists. Similar
|
70
|
+
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
|
71
|
+
#
|
72
|
+
#
|
73
|
+
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
|
74
|
+
# this or PKG_CHECK_MODULES is called, or make sure to call
|
75
|
+
# PKG_CHECK_EXISTS manually
|
76
|
+
# --------------------------------------------------------------
|
77
|
+
AC_DEFUN([PKG_CHECK_EXISTS],
|
78
|
+
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
79
|
+
if test -n "$PKG_CONFIG" && \
|
80
|
+
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
|
81
|
+
m4_ifval([$2], [$2], [:])
|
82
|
+
m4_ifvaln([$3], [else
|
83
|
+
$3])dnl
|
84
|
+
fi])
|
85
|
+
|
86
|
+
|
87
|
+
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
|
88
|
+
# ---------------------------------------------
|
89
|
+
m4_define([_PKG_CONFIG],
|
90
|
+
[if test -n "$$1"; then
|
91
|
+
pkg_cv_[]$1="$$1"
|
92
|
+
elif test -n "$PKG_CONFIG"; then
|
93
|
+
PKG_CHECK_EXISTS([$3],
|
94
|
+
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
|
95
|
+
[pkg_failed=yes])
|
96
|
+
else
|
97
|
+
pkg_failed=untried
|
98
|
+
fi[]dnl
|
99
|
+
])# _PKG_CONFIG
|
100
|
+
|
101
|
+
# _PKG_SHORT_ERRORS_SUPPORTED
|
102
|
+
# -----------------------------
|
103
|
+
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
|
104
|
+
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
105
|
+
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
106
|
+
_pkg_short_errors_supported=yes
|
107
|
+
else
|
108
|
+
_pkg_short_errors_supported=no
|
109
|
+
fi[]dnl
|
110
|
+
])# _PKG_SHORT_ERRORS_SUPPORTED
|
111
|
+
|
112
|
+
|
113
|
+
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
114
|
+
# [ACTION-IF-NOT-FOUND])
|
115
|
+
#
|
116
|
+
#
|
117
|
+
# Note that if there is a possibility the first call to
|
118
|
+
# PKG_CHECK_MODULES might not happen, you should be sure to include an
|
119
|
+
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
|
120
|
+
#
|
121
|
+
#
|
122
|
+
# --------------------------------------------------------------
|
123
|
+
AC_DEFUN([PKG_CHECK_MODULES],
|
124
|
+
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
125
|
+
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
126
|
+
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
127
|
+
|
128
|
+
pkg_failed=no
|
129
|
+
AC_MSG_CHECKING([for $1])
|
130
|
+
|
131
|
+
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
132
|
+
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
133
|
+
|
134
|
+
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
|
135
|
+
and $1[]_LIBS to avoid the need to call pkg-config.
|
136
|
+
See the pkg-config man page for more details.])
|
137
|
+
|
138
|
+
if test $pkg_failed = yes; then
|
139
|
+
_PKG_SHORT_ERRORS_SUPPORTED
|
140
|
+
if test $_pkg_short_errors_supported = yes; then
|
141
|
+
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
|
142
|
+
else
|
143
|
+
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
|
144
|
+
fi
|
145
|
+
# Put the nasty error message in config.log where it belongs
|
146
|
+
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
147
|
+
|
148
|
+
ifelse([$4], , [AC_MSG_ERROR(dnl
|
149
|
+
[Package requirements ($2) were not met:
|
150
|
+
|
151
|
+
$$1_PKG_ERRORS
|
152
|
+
|
153
|
+
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
154
|
+
installed software in a non-standard prefix.
|
155
|
+
|
156
|
+
_PKG_TEXT
|
157
|
+
])],
|
158
|
+
[AC_MSG_RESULT([no])
|
159
|
+
$4])
|
160
|
+
elif test $pkg_failed = untried; then
|
161
|
+
ifelse([$4], , [AC_MSG_FAILURE(dnl
|
162
|
+
[The pkg-config script could not be found or is too old. Make sure it
|
163
|
+
is in your PATH or set the PKG_CONFIG environment variable to the full
|
164
|
+
path to pkg-config.
|
165
|
+
|
166
|
+
_PKG_TEXT
|
167
|
+
|
168
|
+
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
|
169
|
+
[$4])
|
170
|
+
else
|
171
|
+
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
172
|
+
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
173
|
+
AC_MSG_RESULT([yes])
|
174
|
+
ifelse([$3], , :, [$3])
|
175
|
+
fi[]dnl
|
176
|
+
])# PKG_CHECK_MODULES
|
177
|
+
|
178
|
+
# Copyright (C) 2002-2012 Free Software Foundation, Inc.
|
179
|
+
#
|
180
|
+
# This file is free software; the Free Software Foundation
|
181
|
+
# gives unlimited permission to copy and/or distribute it,
|
182
|
+
# with or without modifications, as long as this notice is preserved.
|
183
|
+
|
184
|
+
# serial 8
|
185
|
+
|
186
|
+
# AM_AUTOMAKE_VERSION(VERSION)
|
187
|
+
# ----------------------------
|
188
|
+
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
189
|
+
# generated from the m4 files accompanying Automake X.Y.
|
190
|
+
# (This private macro should not be called outside this file.)
|
191
|
+
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
192
|
+
[am__api_version='1.12'
|
193
|
+
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
194
|
+
dnl require some minimum version. Point them to the right macro.
|
195
|
+
m4_if([$1], [1.12.2], [],
|
196
|
+
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
197
|
+
])
|
198
|
+
|
199
|
+
# _AM_AUTOCONF_VERSION(VERSION)
|
200
|
+
# -----------------------------
|
201
|
+
# aclocal traces this macro to find the Autoconf version.
|
202
|
+
# This is a private macro too. Using m4_define simplifies
|
203
|
+
# the logic in aclocal, which can simply ignore this definition.
|
204
|
+
m4_define([_AM_AUTOCONF_VERSION], [])
|
205
|
+
|
206
|
+
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
207
|
+
# -------------------------------
|
208
|
+
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
209
|
+
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
210
|
+
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
211
|
+
[AM_AUTOMAKE_VERSION([1.12.2])dnl
|
212
|
+
m4_ifndef([AC_AUTOCONF_VERSION],
|
213
|
+
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
214
|
+
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
215
|
+
|
216
|
+
# Figure out how to run the assembler. -*- Autoconf -*-
|
217
|
+
|
218
|
+
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
|
219
|
+
#
|
220
|
+
# This file is free software; the Free Software Foundation
|
221
|
+
# gives unlimited permission to copy and/or distribute it,
|
222
|
+
# with or without modifications, as long as this notice is preserved.
|
223
|
+
|
224
|
+
# serial 5
|
225
|
+
|
226
|
+
# AM_PROG_AS
|
227
|
+
# ----------
|
228
|
+
AC_DEFUN([AM_PROG_AS],
|
229
|
+
[# By default we simply use the C compiler to build assembly code.
|
230
|
+
AC_REQUIRE([AC_PROG_CC])
|
231
|
+
test "${CCAS+set}" = set || CCAS=$CC
|
232
|
+
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
|
233
|
+
AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
|
234
|
+
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
|
235
|
+
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
|
236
|
+
])
|
237
|
+
|
238
|
+
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
239
|
+
|
240
|
+
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
|
241
|
+
#
|
242
|
+
# This file is free software; the Free Software Foundation
|
243
|
+
# gives unlimited permission to copy and/or distribute it,
|
244
|
+
# with or without modifications, as long as this notice is preserved.
|
245
|
+
|
246
|
+
# serial 2
|
247
|
+
|
248
|
+
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
249
|
+
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
|
250
|
+
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
|
251
|
+
#
|
252
|
+
# Of course, Automake must honor this variable whenever it calls a
|
253
|
+
# tool from the auxiliary directory. The problem is that $srcdir (and
|
254
|
+
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
255
|
+
# depending on how configure is run. This is pretty annoying, since
|
256
|
+
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
257
|
+
# source directory, any form will work fine, but in subdirectories a
|
258
|
+
# relative path needs to be adjusted first.
|
259
|
+
#
|
260
|
+
# $ac_aux_dir/missing
|
261
|
+
# fails when called from a subdirectory if $ac_aux_dir is relative
|
262
|
+
# $top_srcdir/$ac_aux_dir/missing
|
263
|
+
# fails if $ac_aux_dir is absolute,
|
264
|
+
# fails when called from a subdirectory in a VPATH build with
|
265
|
+
# a relative $ac_aux_dir
|
266
|
+
#
|
267
|
+
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
268
|
+
# are both prefixed by $srcdir. In an in-source build this is usually
|
269
|
+
# harmless because $srcdir is '.', but things will broke when you
|
270
|
+
# start a VPATH build or use an absolute $srcdir.
|
271
|
+
#
|
272
|
+
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
273
|
+
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
274
|
+
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
275
|
+
# and then we would define $MISSING as
|
276
|
+
# MISSING="\${SHELL} $am_aux_dir/missing"
|
277
|
+
# This will work as long as MISSING is not called from configure, because
|
278
|
+
# unfortunately $(top_srcdir) has no meaning in configure.
|
279
|
+
# However there are other variables, like CC, which are often used in
|
280
|
+
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
281
|
+
#
|
282
|
+
# Another solution, used here, is to always expand $ac_aux_dir to an
|
283
|
+
# absolute PATH. The drawback is that using absolute paths prevent a
|
284
|
+
# configured tree to be moved without reconfiguration.
|
285
|
+
|
286
|
+
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
287
|
+
[dnl Rely on autoconf to set up CDPATH properly.
|
288
|
+
AC_PREREQ([2.50])dnl
|
289
|
+
# expand $ac_aux_dir to an absolute path
|
290
|
+
am_aux_dir=`cd $ac_aux_dir && pwd`
|
291
|
+
])
|
292
|
+
|
293
|
+
# AM_CONDITIONAL -*- Autoconf -*-
|
294
|
+
|
295
|
+
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
|
296
|
+
#
|
297
|
+
# This file is free software; the Free Software Foundation
|
298
|
+
# gives unlimited permission to copy and/or distribute it,
|
299
|
+
# with or without modifications, as long as this notice is preserved.
|
300
|
+
|
301
|
+
# serial 10
|
302
|
+
|
303
|
+
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
304
|
+
# -------------------------------------
|
305
|
+
# Define a conditional.
|
306
|
+
AC_DEFUN([AM_CONDITIONAL],
|
307
|
+
[AC_PREREQ([2.52])dnl
|
308
|
+
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
309
|
+
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
310
|
+
AC_SUBST([$1_TRUE])dnl
|
311
|
+
AC_SUBST([$1_FALSE])dnl
|
312
|
+
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
313
|
+
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
314
|
+
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
315
|
+
if $2; then
|
316
|
+
$1_TRUE=
|
317
|
+
$1_FALSE='#'
|
318
|
+
else
|
319
|
+
$1_TRUE='#'
|
320
|
+
$1_FALSE=
|
321
|
+
fi
|
322
|
+
AC_CONFIG_COMMANDS_PRE(
|
323
|
+
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
324
|
+
AC_MSG_ERROR([[conditional "$1" was never defined.
|
325
|
+
Usually this means the macro was only invoked conditionally.]])
|
326
|
+
fi])])
|
327
|
+
|
328
|
+
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
|
329
|
+
#
|
330
|
+
# This file is free software; the Free Software Foundation
|
331
|
+
# gives unlimited permission to copy and/or distribute it,
|
332
|
+
# with or without modifications, as long as this notice is preserved.
|
333
|
+
|
334
|
+
# serial 17
|
335
|
+
|
336
|
+
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
|
337
|
+
# written in clear, in which case automake, when reading aclocal.m4,
|
338
|
+
# will think it sees a *use*, and therefore will trigger all it's
|
339
|
+
# C support machinery. Also note that it means that autoscan, seeing
|
340
|
+
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
341
|
+
|
342
|
+
|
343
|
+
# _AM_DEPENDENCIES(NAME)
|
344
|
+
# ----------------------
|
345
|
+
# See how the compiler implements dependency checking.
|
346
|
+
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
|
347
|
+
# We try a few techniques and use that to set a single cache variable.
|
348
|
+
#
|
349
|
+
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
350
|
+
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
351
|
+
# dependency, and given that the user is not expected to run this macro,
|
352
|
+
# just rely on AC_PROG_CC.
|
353
|
+
AC_DEFUN([_AM_DEPENDENCIES],
|
354
|
+
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
355
|
+
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
356
|
+
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
357
|
+
AC_REQUIRE([AM_DEP_TRACK])dnl
|
358
|
+
|
359
|
+
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
|
360
|
+
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
|
361
|
+
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
362
|
+
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
|
363
|
+
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
|
364
|
+
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
365
|
+
[depcc="$$1" am_compiler_list=])
|
366
|
+
|
367
|
+
AC_CACHE_CHECK([dependency style of $depcc],
|
368
|
+
[am_cv_$1_dependencies_compiler_type],
|
369
|
+
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
370
|
+
# We make a subdir and do the tests there. Otherwise we can end up
|
371
|
+
# making bogus files that we don't know about and never remove. For
|
372
|
+
# instance it was reported that on HP-UX the gcc test will end up
|
373
|
+
# making a dummy file named 'D' -- because '-MD' means "put the output
|
374
|
+
# in D".
|
375
|
+
rm -rf conftest.dir
|
376
|
+
mkdir conftest.dir
|
377
|
+
# Copy depcomp to subdir because otherwise we won't find it if we're
|
378
|
+
# using a relative directory.
|
379
|
+
cp "$am_depcomp" conftest.dir
|
380
|
+
cd conftest.dir
|
381
|
+
# We will build objects and dependencies in a subdirectory because
|
382
|
+
# it helps to detect inapplicable dependency modes. For instance
|
383
|
+
# both Tru64's cc and ICC support -MD to output dependencies as a
|
384
|
+
# side effect of compilation, but ICC will put the dependencies in
|
385
|
+
# the current directory while Tru64 will put them in the object
|
386
|
+
# directory.
|
387
|
+
mkdir sub
|
388
|
+
|
389
|
+
am_cv_$1_dependencies_compiler_type=none
|
390
|
+
if test "$am_compiler_list" = ""; then
|
391
|
+
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
392
|
+
fi
|
393
|
+
am__universal=false
|
394
|
+
m4_case([$1], [CC],
|
395
|
+
[case " $depcc " in #(
|
396
|
+
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
397
|
+
esac],
|
398
|
+
[CXX],
|
399
|
+
[case " $depcc " in #(
|
400
|
+
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
401
|
+
esac])
|
402
|
+
|
403
|
+
for depmode in $am_compiler_list; do
|
404
|
+
# Setup a source with many dependencies, because some compilers
|
405
|
+
# like to wrap large dependency lists on column 80 (with \), and
|
406
|
+
# we should not choose a depcomp mode which is confused by this.
|
407
|
+
#
|
408
|
+
# We need to recreate these files for each test, as the compiler may
|
409
|
+
# overwrite some of them when testing with obscure command lines.
|
410
|
+
# This happens at least with the AIX C compiler.
|
411
|
+
: > sub/conftest.c
|
412
|
+
for i in 1 2 3 4 5 6; do
|
413
|
+
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
414
|
+
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
415
|
+
# Solaris 10 /bin/sh.
|
416
|
+
echo '/* dummy */' > sub/conftst$i.h
|
417
|
+
done
|
418
|
+
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
419
|
+
|
420
|
+
# We check with '-c' and '-o' for the sake of the "dashmstdout"
|
421
|
+
# mode. It turns out that the SunPro C++ compiler does not properly
|
422
|
+
# handle '-M -o', and we need to detect this. Also, some Intel
|
423
|
+
# versions had trouble with output in subdirs.
|
424
|
+
am__obj=sub/conftest.${OBJEXT-o}
|
425
|
+
am__minus_obj="-o $am__obj"
|
426
|
+
case $depmode in
|
427
|
+
gcc)
|
428
|
+
# This depmode causes a compiler race in universal mode.
|
429
|
+
test "$am__universal" = false || continue
|
430
|
+
;;
|
431
|
+
nosideeffect)
|
432
|
+
# After this tag, mechanisms are not by side-effect, so they'll
|
433
|
+
# only be used when explicitly requested.
|
434
|
+
if test "x$enable_dependency_tracking" = xyes; then
|
435
|
+
continue
|
436
|
+
else
|
437
|
+
break
|
438
|
+
fi
|
439
|
+
;;
|
440
|
+
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
441
|
+
# This compiler won't grok '-c -o', but also, the minuso test has
|
442
|
+
# not run yet. These depmodes are late enough in the game, and
|
443
|
+
# so weak that their functioning should not be impacted.
|
444
|
+
am__obj=conftest.${OBJEXT-o}
|
445
|
+
am__minus_obj=
|
446
|
+
;;
|
447
|
+
none) break ;;
|
448
|
+
esac
|
449
|
+
if depmode=$depmode \
|
450
|
+
source=sub/conftest.c object=$am__obj \
|
451
|
+
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
452
|
+
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
453
|
+
>/dev/null 2>conftest.err &&
|
454
|
+
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
455
|
+
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
456
|
+
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
457
|
+
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
458
|
+
# icc doesn't choke on unknown options, it will just issue warnings
|
459
|
+
# or remarks (even with -Werror). So we grep stderr for any message
|
460
|
+
# that says an option was ignored or not supported.
|
461
|
+
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
462
|
+
# icc: Command line warning: ignoring option '-M'; no argument required
|
463
|
+
# The diagnosis changed in icc 8.0:
|
464
|
+
# icc: Command line remark: option '-MP' not supported
|
465
|
+
if (grep 'ignoring option' conftest.err ||
|
466
|
+
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
467
|
+
am_cv_$1_dependencies_compiler_type=$depmode
|
468
|
+
break
|
469
|
+
fi
|
470
|
+
fi
|
471
|
+
done
|
472
|
+
|
473
|
+
cd ..
|
474
|
+
rm -rf conftest.dir
|
475
|
+
else
|
476
|
+
am_cv_$1_dependencies_compiler_type=none
|
477
|
+
fi
|
478
|
+
])
|
479
|
+
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
480
|
+
AM_CONDITIONAL([am__fastdep$1], [
|
481
|
+
test "x$enable_dependency_tracking" != xno \
|
482
|
+
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
483
|
+
])
|
484
|
+
|
485
|
+
|
486
|
+
# AM_SET_DEPDIR
|
487
|
+
# -------------
|
488
|
+
# Choose a directory name for dependency files.
|
489
|
+
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
|
490
|
+
AC_DEFUN([AM_SET_DEPDIR],
|
491
|
+
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
492
|
+
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
493
|
+
])
|
494
|
+
|
495
|
+
|
496
|
+
# AM_DEP_TRACK
|
497
|
+
# ------------
|
498
|
+
AC_DEFUN([AM_DEP_TRACK],
|
499
|
+
[AC_ARG_ENABLE([dependency-tracking], [dnl
|
500
|
+
AS_HELP_STRING(
|
501
|
+
[--enable-dependency-tracking],
|
502
|
+
[do not reject slow dependency extractors])
|
503
|
+
AS_HELP_STRING(
|
504
|
+
[--disable-dependency-tracking],
|
505
|
+
[speeds up one-time build])])
|
506
|
+
if test "x$enable_dependency_tracking" != xno; then
|
507
|
+
am_depcomp="$ac_aux_dir/depcomp"
|
508
|
+
AMDEPBACKSLASH='\'
|
509
|
+
am__nodep='_no'
|
510
|
+
fi
|
511
|
+
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
512
|
+
AC_SUBST([AMDEPBACKSLASH])dnl
|
513
|
+
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
514
|
+
AC_SUBST([am__nodep])dnl
|
515
|
+
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
516
|
+
])
|
517
|
+
|
518
|
+
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
519
|
+
|
520
|
+
# Copyright (C) 1999-2012 Free Software Foundation, Inc.
|
521
|
+
#
|
522
|
+
# This file is free software; the Free Software Foundation
|
523
|
+
# gives unlimited permission to copy and/or distribute it,
|
524
|
+
# with or without modifications, as long as this notice is preserved.
|
525
|
+
|
526
|
+
# serial 6
|
527
|
+
|
528
|
+
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
529
|
+
# ------------------------------
|
530
|
+
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
531
|
+
[{
|
532
|
+
# Autoconf 2.62 quotes --file arguments for eval, but not when files
|
533
|
+
# are listed without --file. Let's play safe and only enable the eval
|
534
|
+
# if we detect the quoting.
|
535
|
+
case $CONFIG_FILES in
|
536
|
+
*\'*) eval set x "$CONFIG_FILES" ;;
|
537
|
+
*) set x $CONFIG_FILES ;;
|
538
|
+
esac
|
539
|
+
shift
|
540
|
+
for mf
|
541
|
+
do
|
542
|
+
# Strip MF so we end up with the name of the file.
|
543
|
+
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
544
|
+
# Check whether this is an Automake generated Makefile or not.
|
545
|
+
# We used to match only the files named 'Makefile.in', but
|
546
|
+
# some people rename them; so instead we look at the file content.
|
547
|
+
# Grep'ing the first line is not enough: some people post-process
|
548
|
+
# each Makefile.in and add a new line on top of each file to say so.
|
549
|
+
# Grep'ing the whole file is not good either: AIX grep has a line
|
550
|
+
# limit of 2048, but all sed's we know have understand at least 4000.
|
551
|
+
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
552
|
+
dirpart=`AS_DIRNAME("$mf")`
|
553
|
+
else
|
554
|
+
continue
|
555
|
+
fi
|
556
|
+
# Extract the definition of DEPDIR, am__include, and am__quote
|
557
|
+
# from the Makefile without running 'make'.
|
558
|
+
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
559
|
+
test -z "$DEPDIR" && continue
|
560
|
+
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
561
|
+
test -z "am__include" && continue
|
562
|
+
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
563
|
+
# Find all dependency output files, they are included files with
|
564
|
+
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
565
|
+
# simplest approach to changing $(DEPDIR) to its actual value in the
|
566
|
+
# expansion.
|
567
|
+
for file in `sed -n "
|
568
|
+
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
569
|
+
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
|
570
|
+
# Make sure the directory exists.
|
571
|
+
test -f "$dirpart/$file" && continue
|
572
|
+
fdir=`AS_DIRNAME(["$file"])`
|
573
|
+
AS_MKDIR_P([$dirpart/$fdir])
|
574
|
+
# echo "creating $dirpart/$file"
|
575
|
+
echo '# dummy' > "$dirpart/$file"
|
576
|
+
done
|
577
|
+
done
|
578
|
+
}
|
579
|
+
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
580
|
+
|
581
|
+
|
582
|
+
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
583
|
+
# -----------------------------
|
584
|
+
# This macro should only be invoked once -- use via AC_REQUIRE.
|
585
|
+
#
|
586
|
+
# This code is only required when automatic dependency tracking
|
587
|
+
# is enabled. FIXME. This creates each '.P' file that we will
|
588
|
+
# need in order to bootstrap the dependency handling code.
|
589
|
+
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
590
|
+
[AC_CONFIG_COMMANDS([depfiles],
|
591
|
+
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
592
|
+
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
593
|
+
])
|
594
|
+
|
595
|
+
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
|
596
|
+
#
|
597
|
+
# This file is free software; the Free Software Foundation
|
598
|
+
# gives unlimited permission to copy and/or distribute it,
|
599
|
+
# with or without modifications, as long as this notice is preserved.
|
600
|
+
|
601
|
+
# serial 8
|
602
|
+
|
603
|
+
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
|
604
|
+
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
|
605
|
+
|
606
|
+
# Do all the work for Automake. -*- Autoconf -*-
|
607
|
+
|
608
|
+
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
|
609
|
+
#
|
610
|
+
# This file is free software; the Free Software Foundation
|
611
|
+
# gives unlimited permission to copy and/or distribute it,
|
612
|
+
# with or without modifications, as long as this notice is preserved.
|
613
|
+
|
614
|
+
# serial 19
|
615
|
+
|
616
|
+
# This macro actually does too much. Some checks are only needed if
|
617
|
+
# your package does certain things. But this isn't really a big deal.
|
618
|
+
|
619
|
+
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
620
|
+
# AM_INIT_AUTOMAKE([OPTIONS])
|
621
|
+
# -----------------------------------------------
|
622
|
+
# The call with PACKAGE and VERSION arguments is the old style
|
623
|
+
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
624
|
+
# and VERSION should now be passed to AC_INIT and removed from
|
625
|
+
# the call to AM_INIT_AUTOMAKE.
|
626
|
+
# We support both call styles for the transition. After
|
627
|
+
# the next Automake release, Autoconf can make the AC_INIT
|
628
|
+
# arguments mandatory, and then we can depend on a new Autoconf
|
629
|
+
# release and drop the old call support.
|
630
|
+
AC_DEFUN([AM_INIT_AUTOMAKE],
|
631
|
+
[AC_PREREQ([2.62])dnl
|
632
|
+
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
633
|
+
dnl the ones we care about.
|
634
|
+
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
635
|
+
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
636
|
+
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
637
|
+
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
638
|
+
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
639
|
+
# is not polluted with repeated "-I."
|
640
|
+
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
641
|
+
# test to see if srcdir already configured
|
642
|
+
if test -f $srcdir/config.status; then
|
643
|
+
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
644
|
+
fi
|
645
|
+
fi
|
646
|
+
|
647
|
+
# test whether we have cygpath
|
648
|
+
if test -z "$CYGPATH_W"; then
|
649
|
+
if (cygpath --version) >/dev/null 2>/dev/null; then
|
650
|
+
CYGPATH_W='cygpath -w'
|
651
|
+
else
|
652
|
+
CYGPATH_W=echo
|
653
|
+
fi
|
654
|
+
fi
|
655
|
+
AC_SUBST([CYGPATH_W])
|
656
|
+
|
657
|
+
# Define the identity of the package.
|
658
|
+
dnl Distinguish between old-style and new-style calls.
|
659
|
+
m4_ifval([$2],
|
660
|
+
[AC_DIAGNOSE([obsolete],
|
661
|
+
[$0: two- and three-arguments forms are deprecated. For more info, see:
|
662
|
+
http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_INIT_AUTOMAKE-invocation])
|
663
|
+
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
664
|
+
AC_SUBST([PACKAGE], [$1])dnl
|
665
|
+
AC_SUBST([VERSION], [$2])],
|
666
|
+
[_AM_SET_OPTIONS([$1])dnl
|
667
|
+
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
668
|
+
m4_if(
|
669
|
+
m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
|
670
|
+
[ok:ok],,
|
671
|
+
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
672
|
+
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
673
|
+
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
674
|
+
|
675
|
+
_AM_IF_OPTION([no-define],,
|
676
|
+
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
|
677
|
+
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
|
678
|
+
|
679
|
+
# Some tools Automake needs.
|
680
|
+
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
681
|
+
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
682
|
+
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
|
683
|
+
AM_MISSING_PROG([AUTOCONF], [autoconf])
|
684
|
+
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
|
685
|
+
AM_MISSING_PROG([AUTOHEADER], [autoheader])
|
686
|
+
AM_MISSING_PROG([MAKEINFO], [makeinfo])
|
687
|
+
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
688
|
+
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
689
|
+
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
690
|
+
# For better backward compatibility. To be removed once Automake 1.9.x
|
691
|
+
# dies out for good. For more background, see:
|
692
|
+
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
693
|
+
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
694
|
+
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
695
|
+
# We need awk for the "check" target. The system "awk" is bad on
|
696
|
+
# some platforms.
|
697
|
+
AC_REQUIRE([AC_PROG_AWK])dnl
|
698
|
+
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
699
|
+
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
700
|
+
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
701
|
+
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
702
|
+
[_AM_PROG_TAR([v7])])])
|
703
|
+
_AM_IF_OPTION([no-dependencies],,
|
704
|
+
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
705
|
+
[_AM_DEPENDENCIES([CC])],
|
706
|
+
[m4_define([AC_PROG_CC],
|
707
|
+
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
|
708
|
+
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
709
|
+
[_AM_DEPENDENCIES([CXX])],
|
710
|
+
[m4_define([AC_PROG_CXX],
|
711
|
+
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
|
712
|
+
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
713
|
+
[_AM_DEPENDENCIES([OBJC])],
|
714
|
+
[m4_define([AC_PROG_OBJC],
|
715
|
+
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
|
716
|
+
dnl Support for Objective C++ was only introduced in Autoconf 2.65,
|
717
|
+
dnl but we still cater to Autoconf 2.62.
|
718
|
+
m4_ifdef([AC_PROG_OBJCXX],
|
719
|
+
[AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
720
|
+
[_AM_DEPENDENCIES([OBJCXX])],
|
721
|
+
[m4_define([AC_PROG_OBJCXX],
|
722
|
+
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])])dnl
|
723
|
+
])
|
724
|
+
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
|
725
|
+
dnl The 'parallel-tests' driver may need to know about EXEEXT, so add the
|
726
|
+
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
|
727
|
+
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
728
|
+
AC_CONFIG_COMMANDS_PRE(dnl
|
729
|
+
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
730
|
+
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
731
|
+
])
|
732
|
+
|
733
|
+
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
734
|
+
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
735
|
+
dnl mangled by Autoconf and run in a shell conditional statement.
|
736
|
+
m4_define([_AC_COMPILER_EXEEXT],
|
737
|
+
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
738
|
+
|
739
|
+
|
740
|
+
# When config.status generates a header, we must update the stamp-h file.
|
741
|
+
# This file resides in the same directory as the config header
|
742
|
+
# that is generated. The stamp files are numbered to have different names.
|
743
|
+
|
744
|
+
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
745
|
+
# loop where config.status creates the headers, so we can generate
|
746
|
+
# our stamp files there.
|
747
|
+
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
748
|
+
[# Compute $1's index in $config_headers.
|
749
|
+
_am_arg=$1
|
750
|
+
_am_stamp_count=1
|
751
|
+
for _am_header in $config_headers :; do
|
752
|
+
case $_am_header in
|
753
|
+
$_am_arg | $_am_arg:* )
|
754
|
+
break ;;
|
755
|
+
* )
|
756
|
+
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
757
|
+
esac
|
758
|
+
done
|
759
|
+
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
760
|
+
|
761
|
+
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
|
762
|
+
#
|
763
|
+
# This file is free software; the Free Software Foundation
|
764
|
+
# gives unlimited permission to copy and/or distribute it,
|
765
|
+
# with or without modifications, as long as this notice is preserved.
|
766
|
+
|
767
|
+
# serial 8
|
768
|
+
|
769
|
+
# AM_PROG_INSTALL_SH
|
770
|
+
# ------------------
|
771
|
+
# Define $install_sh.
|
772
|
+
AC_DEFUN([AM_PROG_INSTALL_SH],
|
773
|
+
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
774
|
+
if test x"${install_sh}" != xset; then
|
775
|
+
case $am_aux_dir in
|
776
|
+
*\ * | *\ *)
|
777
|
+
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
778
|
+
*)
|
779
|
+
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
780
|
+
esac
|
781
|
+
fi
|
782
|
+
AC_SUBST([install_sh])])
|
783
|
+
|
784
|
+
# Copyright (C) 2003-2012 Free Software Foundation, Inc.
|
785
|
+
#
|
786
|
+
# This file is free software; the Free Software Foundation
|
787
|
+
# gives unlimited permission to copy and/or distribute it,
|
788
|
+
# with or without modifications, as long as this notice is preserved.
|
789
|
+
|
790
|
+
# serial 2
|
791
|
+
|
792
|
+
# Check whether the underlying file-system supports filenames
|
793
|
+
# with a leading dot. For instance MS-DOS doesn't.
|
794
|
+
AC_DEFUN([AM_SET_LEADING_DOT],
|
795
|
+
[rm -rf .tst 2>/dev/null
|
796
|
+
mkdir .tst 2>/dev/null
|
797
|
+
if test -d .tst; then
|
798
|
+
am__leading_dot=.
|
799
|
+
else
|
800
|
+
am__leading_dot=_
|
801
|
+
fi
|
802
|
+
rmdir .tst 2>/dev/null
|
803
|
+
AC_SUBST([am__leading_dot])])
|
804
|
+
|
805
|
+
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
806
|
+
|
807
|
+
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
|
808
|
+
#
|
809
|
+
# This file is free software; the Free Software Foundation
|
810
|
+
# gives unlimited permission to copy and/or distribute it,
|
811
|
+
# with or without modifications, as long as this notice is preserved.
|
812
|
+
|
813
|
+
# serial 5
|
814
|
+
|
815
|
+
# AM_MAKE_INCLUDE()
|
816
|
+
# -----------------
|
817
|
+
# Check to see how make treats includes.
|
818
|
+
AC_DEFUN([AM_MAKE_INCLUDE],
|
819
|
+
[am_make=${MAKE-make}
|
820
|
+
cat > confinc << 'END'
|
821
|
+
am__doit:
|
822
|
+
@echo this is the am__doit target
|
823
|
+
.PHONY: am__doit
|
824
|
+
END
|
825
|
+
# If we don't find an include directive, just comment out the code.
|
826
|
+
AC_MSG_CHECKING([for style of include used by $am_make])
|
827
|
+
am__include="#"
|
828
|
+
am__quote=
|
829
|
+
_am_result=none
|
830
|
+
# First try GNU make style include.
|
831
|
+
echo "include confinc" > confmf
|
832
|
+
# Ignore all kinds of additional output from 'make'.
|
833
|
+
case `$am_make -s -f confmf 2> /dev/null` in #(
|
834
|
+
*the\ am__doit\ target*)
|
835
|
+
am__include=include
|
836
|
+
am__quote=
|
837
|
+
_am_result=GNU
|
838
|
+
;;
|
839
|
+
esac
|
840
|
+
# Now try BSD make style include.
|
841
|
+
if test "$am__include" = "#"; then
|
842
|
+
echo '.include "confinc"' > confmf
|
843
|
+
case `$am_make -s -f confmf 2> /dev/null` in #(
|
844
|
+
*the\ am__doit\ target*)
|
845
|
+
am__include=.include
|
846
|
+
am__quote="\""
|
847
|
+
_am_result=BSD
|
848
|
+
;;
|
849
|
+
esac
|
850
|
+
fi
|
851
|
+
AC_SUBST([am__include])
|
852
|
+
AC_SUBST([am__quote])
|
853
|
+
AC_MSG_RESULT([$_am_result])
|
854
|
+
rm -f confinc confmf
|
855
|
+
])
|
856
|
+
|
857
|
+
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
858
|
+
|
859
|
+
# Copyright (C) 1997-2012 Free Software Foundation, Inc.
|
860
|
+
#
|
861
|
+
# This file is free software; the Free Software Foundation
|
862
|
+
# gives unlimited permission to copy and/or distribute it,
|
863
|
+
# with or without modifications, as long as this notice is preserved.
|
864
|
+
|
865
|
+
# serial 7
|
866
|
+
|
867
|
+
# AM_MISSING_PROG(NAME, PROGRAM)
|
868
|
+
# ------------------------------
|
869
|
+
AC_DEFUN([AM_MISSING_PROG],
|
870
|
+
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
871
|
+
$1=${$1-"${am_missing_run}$2"}
|
872
|
+
AC_SUBST($1)])
|
873
|
+
|
874
|
+
|
875
|
+
# AM_MISSING_HAS_RUN
|
876
|
+
# ------------------
|
877
|
+
# Define MISSING if not defined so far and test if it supports --run.
|
878
|
+
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
879
|
+
AC_DEFUN([AM_MISSING_HAS_RUN],
|
880
|
+
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
881
|
+
AC_REQUIRE_AUX_FILE([missing])dnl
|
882
|
+
if test x"${MISSING+set}" != xset; then
|
883
|
+
case $am_aux_dir in
|
884
|
+
*\ * | *\ *)
|
885
|
+
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
886
|
+
*)
|
887
|
+
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
888
|
+
esac
|
889
|
+
fi
|
890
|
+
# Use eval to expand $SHELL
|
891
|
+
if eval "$MISSING --run true"; then
|
892
|
+
am_missing_run="$MISSING --run "
|
893
|
+
else
|
894
|
+
am_missing_run=
|
895
|
+
AC_MSG_WARN(['missing' script is too old or missing])
|
896
|
+
fi
|
897
|
+
])
|
898
|
+
|
899
|
+
# Helper functions for option handling. -*- Autoconf -*-
|
900
|
+
|
901
|
+
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
|
902
|
+
#
|
903
|
+
# This file is free software; the Free Software Foundation
|
904
|
+
# gives unlimited permission to copy and/or distribute it,
|
905
|
+
# with or without modifications, as long as this notice is preserved.
|
906
|
+
|
907
|
+
# serial 6
|
908
|
+
|
909
|
+
# _AM_MANGLE_OPTION(NAME)
|
910
|
+
# -----------------------
|
911
|
+
AC_DEFUN([_AM_MANGLE_OPTION],
|
912
|
+
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
913
|
+
|
914
|
+
# _AM_SET_OPTION(NAME)
|
915
|
+
# --------------------
|
916
|
+
# Set option NAME. Presently that only means defining a flag for this option.
|
917
|
+
AC_DEFUN([_AM_SET_OPTION],
|
918
|
+
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
|
919
|
+
|
920
|
+
# _AM_SET_OPTIONS(OPTIONS)
|
921
|
+
# ------------------------
|
922
|
+
# OPTIONS is a space-separated list of Automake options.
|
923
|
+
AC_DEFUN([_AM_SET_OPTIONS],
|
924
|
+
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
925
|
+
|
926
|
+
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
927
|
+
# -------------------------------------------
|
928
|
+
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
929
|
+
AC_DEFUN([_AM_IF_OPTION],
|
930
|
+
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
931
|
+
|
932
|
+
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
933
|
+
|
934
|
+
# Copyright (C) 1996-2012 Free Software Foundation, Inc.
|
935
|
+
#
|
936
|
+
# This file is free software; the Free Software Foundation
|
937
|
+
# gives unlimited permission to copy and/or distribute it,
|
938
|
+
# with or without modifications, as long as this notice is preserved.
|
939
|
+
|
940
|
+
# serial 9
|
941
|
+
|
942
|
+
# AM_SANITY_CHECK
|
943
|
+
# ---------------
|
944
|
+
AC_DEFUN([AM_SANITY_CHECK],
|
945
|
+
[AC_MSG_CHECKING([whether build environment is sane])
|
946
|
+
# Reject unsafe characters in $srcdir or the absolute working directory
|
947
|
+
# name. Accept space and tab only in the latter.
|
948
|
+
am_lf='
|
949
|
+
'
|
950
|
+
case `pwd` in
|
951
|
+
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
952
|
+
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
953
|
+
esac
|
954
|
+
case $srcdir in
|
955
|
+
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
956
|
+
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
|
957
|
+
esac
|
958
|
+
|
959
|
+
# Do 'set' in a subshell so we don't clobber the current shell's
|
960
|
+
# arguments. Must try -L first in case configure is actually a
|
961
|
+
# symlink; some systems play weird games with the mod time of symlinks
|
962
|
+
# (eg FreeBSD returns the mod time of the symlink's containing
|
963
|
+
# directory).
|
964
|
+
if (
|
965
|
+
am_has_slept=no
|
966
|
+
for am_try in 1 2; do
|
967
|
+
echo "timestamp, slept: $am_has_slept" > conftest.file
|
968
|
+
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
969
|
+
if test "$[*]" = "X"; then
|
970
|
+
# -L didn't work.
|
971
|
+
set X `ls -t "$srcdir/configure" conftest.file`
|
972
|
+
fi
|
973
|
+
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
974
|
+
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
975
|
+
|
976
|
+
# If neither matched, then we have a broken ls. This can happen
|
977
|
+
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
978
|
+
# broken ls alias from the environment. This has actually
|
979
|
+
# happened. Such a system could not be considered "sane".
|
980
|
+
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
981
|
+
alias in your environment])
|
982
|
+
fi
|
983
|
+
if test "$[2]" = conftest.file || test $am_try -eq 2; then
|
984
|
+
break
|
985
|
+
fi
|
986
|
+
# Just in case.
|
987
|
+
sleep 1
|
988
|
+
am_has_slept=yes
|
989
|
+
done
|
990
|
+
test "$[2]" = conftest.file
|
991
|
+
)
|
992
|
+
then
|
993
|
+
# Ok.
|
994
|
+
:
|
995
|
+
else
|
996
|
+
AC_MSG_ERROR([newly created file is older than distributed files!
|
997
|
+
Check your system clock])
|
998
|
+
fi
|
999
|
+
AC_MSG_RESULT([yes])
|
1000
|
+
# If we didn't sleep, we still need to ensure time stamps of config.status and
|
1001
|
+
# generated files are strictly newer.
|
1002
|
+
am_sleep_pid=
|
1003
|
+
if grep 'slept: no' conftest.file >/dev/null 2>&1; then
|
1004
|
+
( sleep 1 ) &
|
1005
|
+
am_sleep_pid=$!
|
1006
|
+
fi
|
1007
|
+
AC_CONFIG_COMMANDS_PRE(
|
1008
|
+
[AC_MSG_CHECKING([that generated files are newer than configure])
|
1009
|
+
if test -n "$am_sleep_pid"; then
|
1010
|
+
# Hide warnings about reused PIDs.
|
1011
|
+
wait $am_sleep_pid 2>/dev/null
|
1012
|
+
fi
|
1013
|
+
AC_MSG_RESULT([done])])
|
1014
|
+
rm -f conftest.file
|
1015
|
+
])
|
1016
|
+
|
1017
|
+
# Copyright (C) 2001-2012 Free Software Foundation, Inc.
|
1018
|
+
#
|
1019
|
+
# This file is free software; the Free Software Foundation
|
1020
|
+
# gives unlimited permission to copy and/or distribute it,
|
1021
|
+
# with or without modifications, as long as this notice is preserved.
|
1022
|
+
|
1023
|
+
# serial 2
|
1024
|
+
|
1025
|
+
# AM_PROG_INSTALL_STRIP
|
1026
|
+
# ---------------------
|
1027
|
+
# One issue with vendor 'install' (even GNU) is that you can't
|
1028
|
+
# specify the program used to strip binaries. This is especially
|
1029
|
+
# annoying in cross-compiling environments, where the build's strip
|
1030
|
+
# is unlikely to handle the host's binaries.
|
1031
|
+
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
1032
|
+
# always use install-sh in "make install-strip", and initialize
|
1033
|
+
# STRIPPROG with the value of the STRIP variable (set by the user).
|
1034
|
+
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
1035
|
+
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
1036
|
+
# Installed binaries are usually stripped using 'strip' when the user
|
1037
|
+
# run "make install-strip". However 'strip' might not be the right
|
1038
|
+
# tool to use in cross-compilation environments, therefore Automake
|
1039
|
+
# will honor the 'STRIP' environment variable to overrule this program.
|
1040
|
+
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
|
1041
|
+
if test "$cross_compiling" != no; then
|
1042
|
+
AC_CHECK_TOOL([STRIP], [strip], :)
|
1043
|
+
fi
|
1044
|
+
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
1045
|
+
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
1046
|
+
|
1047
|
+
# Copyright (C) 2006-2012 Free Software Foundation, Inc.
|
1048
|
+
#
|
1049
|
+
# This file is free software; the Free Software Foundation
|
1050
|
+
# gives unlimited permission to copy and/or distribute it,
|
1051
|
+
# with or without modifications, as long as this notice is preserved.
|
1052
|
+
|
1053
|
+
# serial 3
|
1054
|
+
|
1055
|
+
# _AM_SUBST_NOTMAKE(VARIABLE)
|
1056
|
+
# ---------------------------
|
1057
|
+
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
1058
|
+
# This macro is traced by Automake.
|
1059
|
+
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
1060
|
+
|
1061
|
+
# AM_SUBST_NOTMAKE(VARIABLE)
|
1062
|
+
# --------------------------
|
1063
|
+
# Public sister of _AM_SUBST_NOTMAKE.
|
1064
|
+
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
1065
|
+
|
1066
|
+
# Check how to create a tarball. -*- Autoconf -*-
|
1067
|
+
|
1068
|
+
# Copyright (C) 2004-2012 Free Software Foundation, Inc.
|
1069
|
+
#
|
1070
|
+
# This file is free software; the Free Software Foundation
|
1071
|
+
# gives unlimited permission to copy and/or distribute it,
|
1072
|
+
# with or without modifications, as long as this notice is preserved.
|
1073
|
+
|
1074
|
+
# serial 3
|
1075
|
+
|
1076
|
+
# _AM_PROG_TAR(FORMAT)
|
1077
|
+
# --------------------
|
1078
|
+
# Check how to create a tarball in format FORMAT.
|
1079
|
+
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
|
1080
|
+
#
|
1081
|
+
# Substitute a variable $(am__tar) that is a command
|
1082
|
+
# writing to stdout a FORMAT-tarball containing the directory
|
1083
|
+
# $tardir.
|
1084
|
+
# tardir=directory && $(am__tar) > result.tar
|
1085
|
+
#
|
1086
|
+
# Substitute a variable $(am__untar) that extract such
|
1087
|
+
# a tarball read from stdin.
|
1088
|
+
# $(am__untar) < result.tar
|
1089
|
+
AC_DEFUN([_AM_PROG_TAR],
|
1090
|
+
[# Always define AMTAR for backward compatibility. Yes, it's still used
|
1091
|
+
# in the wild :-( We should find a proper way to deprecate it ...
|
1092
|
+
AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
1093
|
+
m4_if([$1], [v7],
|
1094
|
+
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
1095
|
+
[m4_case([$1], [ustar],, [pax],,
|
1096
|
+
[m4_fatal([Unknown tar format])])
|
1097
|
+
AC_MSG_CHECKING([how to create a $1 tar archive])
|
1098
|
+
# Loop over all known methods to create a tar archive until one works.
|
1099
|
+
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
1100
|
+
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
1101
|
+
# Do not fold the above two line into one, because Tru64 sh and
|
1102
|
+
# Solaris sh will not grok spaces in the rhs of '-'.
|
1103
|
+
for _am_tool in $_am_tools
|
1104
|
+
do
|
1105
|
+
case $_am_tool in
|
1106
|
+
gnutar)
|
1107
|
+
for _am_tar in tar gnutar gtar;
|
1108
|
+
do
|
1109
|
+
AM_RUN_LOG([$_am_tar --version]) && break
|
1110
|
+
done
|
1111
|
+
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
1112
|
+
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
1113
|
+
am__untar="$_am_tar -xf -"
|
1114
|
+
;;
|
1115
|
+
plaintar)
|
1116
|
+
# Must skip GNU tar: if it does not support --format= it doesn't create
|
1117
|
+
# ustar tarball either.
|
1118
|
+
(tar --version) >/dev/null 2>&1 && continue
|
1119
|
+
am__tar='tar chf - "$$tardir"'
|
1120
|
+
am__tar_='tar chf - "$tardir"'
|
1121
|
+
am__untar='tar xf -'
|
1122
|
+
;;
|
1123
|
+
pax)
|
1124
|
+
am__tar='pax -L -x $1 -w "$$tardir"'
|
1125
|
+
am__tar_='pax -L -x $1 -w "$tardir"'
|
1126
|
+
am__untar='pax -r'
|
1127
|
+
;;
|
1128
|
+
cpio)
|
1129
|
+
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
1130
|
+
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
1131
|
+
am__untar='cpio -i -H $1 -d'
|
1132
|
+
;;
|
1133
|
+
none)
|
1134
|
+
am__tar=false
|
1135
|
+
am__tar_=false
|
1136
|
+
am__untar=false
|
1137
|
+
;;
|
1138
|
+
esac
|
1139
|
+
|
1140
|
+
# If the value was cached, stop now. We just wanted to have am__tar
|
1141
|
+
# and am__untar set.
|
1142
|
+
test -n "${am_cv_prog_tar_$1}" && break
|
1143
|
+
|
1144
|
+
# tar/untar a dummy directory, and stop if the command works
|
1145
|
+
rm -rf conftest.dir
|
1146
|
+
mkdir conftest.dir
|
1147
|
+
echo GrepMe > conftest.dir/file
|
1148
|
+
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
1149
|
+
rm -rf conftest.dir
|
1150
|
+
if test -s conftest.tar; then
|
1151
|
+
AM_RUN_LOG([$am__untar <conftest.tar])
|
1152
|
+
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
1153
|
+
fi
|
1154
|
+
done
|
1155
|
+
rm -rf conftest.dir
|
1156
|
+
|
1157
|
+
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
1158
|
+
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
1159
|
+
AC_SUBST([am__tar])
|
1160
|
+
AC_SUBST([am__untar])
|
1161
|
+
]) # _AM_PROG_TAR
|
1162
|
+
|
1163
|
+
m4_include([m4/addrconfig.m4])
|
1164
|
+
m4_include([m4/libtool.m4])
|
1165
|
+
m4_include([m4/ltoptions.m4])
|
1166
|
+
m4_include([m4/ltsugar.m4])
|
1167
|
+
m4_include([m4/ltversion.m4])
|
1168
|
+
m4_include([m4/lt~obsolete.m4])
|