aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Eckels <eckels@google.com>2012-08-06 15:17:56 -0700
committerLucas Eckels <eckels@google.com>2012-08-08 09:29:17 -0700
commit3d540f5de5b3a28ce6ad855cef7d9d9a44242c07 (patch)
tree56367e03b9d9fe3cce806508c4d7553647945b91
parent9e51f014ada352e89237a6981093860291c8150d (diff)
downloadmpg123-3d540f5de5b3a28ce6ad855cef7d9d9a44242c07.tar.gz
Add mpg123 1.8.1 source
Change-Id: I602e744b1e24d95e203c05b0e93d15d373a45639
-rw-r--r--.gitignore47
-rw-r--r--AUTHORS141
-rw-r--r--COPYING773
-rw-r--r--ChangeLog8853
-rw-r--r--INSTALL109
-rw-r--r--Makefile.am53
-rw-r--r--Makefile.in832
-rw-r--r--NEWS947
-rw-r--r--NEWS.libmpg12365
-rw-r--r--README203
-rw-r--r--TODO15
-rw-r--r--aclocal.m49013
-rwxr-xr-xautogen.sh93
-rwxr-xr-xbuild/config.guess1542
-rwxr-xr-xbuild/config.sub1677
-rw-r--r--build/depcomp589
-rw-r--r--build/install-sh519
-rwxr-xr-xbuild/ltmain.sh8406
-rw-r--r--build/missing367
-rwxr-xr-xconfigure25949
-rwxr-xr-xconfigure.ac1800
-rw-r--r--doc/ACCURACY2
-rw-r--r--doc/BENCHMARKING110
-rw-r--r--doc/BUGS3
-rw-r--r--doc/CONTACT17
-rw-r--r--doc/LICENSE22
-rw-r--r--doc/Makefile.am31
-rw-r--r--doc/Makefile.in436
-rw-r--r--doc/PATENTS39
-rw-r--r--doc/README.3DNOW56
-rw-r--r--doc/README.gain171
-rw-r--r--doc/README.remote200
-rw-r--r--doc/ROAD_TO_LGPL270
-rw-r--r--doc/THANKS13
-rw-r--r--doc/TODO63
-rw-r--r--doc/doxy_examples.c17
-rw-r--r--doc/doxygen.conf41
-rw-r--r--doc/doxyhead.xhtml12
-rw-r--r--doc/examples/Makefile29
-rw-r--r--doc/examples/dumb_decoder.c58
-rw-r--r--doc/examples/feedseek.c229
-rw-r--r--doc/examples/id3dump.c172
-rw-r--r--doc/examples/mpg123_to_wav.c103
-rw-r--r--doc/examples/mpglib.c83
-rw-r--r--doc/examples/scan.c47
-rw-r--r--doc/libmpg123_speed.txt74
-rw-r--r--equalize.dat37
-rw-r--r--libmpg123.pc.in11
-rw-r--r--libmpg123.xcodeproj/project.pbxproj366
-rwxr-xr-xmakedll.sh19
-rw-r--r--man1/mpg123.1504
-rw-r--r--mpg123.spec68
-rw-r--r--mpg123.spec.in68
-rw-r--r--ports/MSVC++/2005/libmpg123/libmpg123.vcproj751
-rw-r--r--ports/MSVC++/2008/feedseek/feedseek.vcproj195
-rw-r--r--ports/MSVC++/2008/libmpg123/libmpg123.vcproj2994
-rw-r--r--ports/MSVC++/2008/mpg123.sln38
-rw-r--r--ports/MSVC++/2008/mpglib/mpglib.vcproj189
-rw-r--r--ports/MSVC++/2008/scan/scan.vcproj195
-rw-r--r--ports/MSVC++/CMP3Stream/INCLUDE/CORE/CORE_FileIn.H15
-rw-r--r--ports/MSVC++/CMP3Stream/INCLUDE/CORE/SourceFilter_MP3.H139
-rw-r--r--ports/MSVC++/CMP3Stream/INCLUDE/IIEP_Def.H206
-rw-r--r--ports/MSVC++/CMP3Stream/INCLUDE/IIEP_FileIn.H167
-rw-r--r--ports/MSVC++/CMP3Stream/README4
-rw-r--r--ports/MSVC++/CMP3Stream/SOURCE/CORE_FileIn.CPP462
-rw-r--r--ports/MSVC++/CMP3Stream/SOURCE/CORE_Log.CPP122
-rw-r--r--ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP35
-rw-r--r--ports/MSVC++/CMP3Stream/SOURCE/SourceFilter_MP3Stream.CPP586
-rw-r--r--ports/MSVC++/CMP3Stream/libMPG123/PLACE_LIBMPG123_SOURCES_HERE0
-rw-r--r--ports/MSVC++/CMP3Stream/libMPG123/libMPG123.vcproj245
-rwxr-xr-xports/MSVC++/config.h21
-rw-r--r--ports/MSVC++/examples/feedseek.c231
-rw-r--r--ports/MSVC++/examples/scan.c47
-rw-r--r--ports/MSVC++/mpg123.h34
-rw-r--r--ports/MSVC++/msvc.c58
-rw-r--r--ports/README19
-rw-r--r--ports/Sony_PSP/Makefile.psp38
-rw-r--r--ports/Sony_PSP/README11
-rwxr-xr-xports/Sony_PSP/config.h368
-rw-r--r--ports/Sony_PSP/readers.c.patch2
-rw-r--r--ports/mpg123_.pas478
-rw-r--r--scripts/benchmark-cpu.pl56
-rw-r--r--src/Mac.config.h372
-rw-r--r--src/Makefile.am145
-rw-r--r--src/Makefile.in874
-rw-r--r--src/audio.c681
-rw-r--r--src/audio.h99
-rw-r--r--src/buffer.c312
-rw-r--r--src/buffer.h45
-rw-r--r--src/common.c230
-rw-r--r--src/common.h29
-rwxr-xr-xsrc/config.h.in367
-rw-r--r--src/control_generic.c714
-rw-r--r--src/equalizer.c48
-rw-r--r--src/genre.c271
-rw-r--r--src/genre.h15
-rw-r--r--src/getlopt.c148
-rw-r--r--src/getlopt.h77
-rw-r--r--src/httpget.c677
-rw-r--r--src/httpget.h48
-rw-r--r--src/legacy_module.c74
-rw-r--r--src/libmpg123/Mac.mpg123.h878
-rw-r--r--src/libmpg123/Makefile.am124
-rw-r--r--src/libmpg123/Makefile.in788
-rw-r--r--src/libmpg123/compat.c41
-rw-r--r--src/libmpg123/compat.h124
-rw-r--r--src/libmpg123/dct36_3dnow.S508
-rw-r--r--src/libmpg123/dct36_3dnowext.S515
-rw-r--r--src/libmpg123/dct64.c174
-rw-r--r--src/libmpg123/dct64_3dnow.S715
-rw-r--r--src/libmpg123/dct64_3dnowext.S717
-rw-r--r--src/libmpg123/dct64_altivec.c315
-rw-r--r--src/libmpg123/dct64_i386.c336
-rw-r--r--src/libmpg123/dct64_i486.c342
-rw-r--r--src/libmpg123/dct64_mmx.S815
-rw-r--r--src/libmpg123/dct64_sse.S457
-rw-r--r--src/libmpg123/dct64_sse_float.S404
-rw-r--r--src/libmpg123/dct64_x86_64.S467
-rw-r--r--src/libmpg123/dct64_x86_64_float.S429
-rw-r--r--src/libmpg123/debug.h171
-rw-r--r--src/libmpg123/decode.h259
-rw-r--r--src/libmpg123/dnoise.dat65536
-rwxr-xr-xsrc/libmpg123/dnoise.sh34
-rw-r--r--src/libmpg123/equalizer.c17
-rw-r--r--src/libmpg123/equalizer_3dnow.S73
-rw-r--r--src/libmpg123/format.c395
-rw-r--r--src/libmpg123/frame.c848
-rw-r--r--src/libmpg123/frame.h355
-rw-r--r--src/libmpg123/getbits.h100
-rw-r--r--src/libmpg123/getcpuflags.S94
-rw-r--r--src/libmpg123/getcpuflags.h49
-rw-r--r--src/libmpg123/huffman.h340
-rw-r--r--src/libmpg123/icy.c32
-rw-r--r--src/libmpg123/icy.h35
-rw-r--r--src/libmpg123/icy2utf8.c437
-rw-r--r--src/libmpg123/icy2utf8.h9
-rw-r--r--src/libmpg123/id3.c905
-rw-r--r--src/libmpg123/id3.h28
-rw-r--r--src/libmpg123/index.c114
-rw-r--r--src/libmpg123/index.h56
-rw-r--r--src/libmpg123/l2tables.h164
-rw-r--r--src/libmpg123/layer1.c155
-rw-r--r--src/libmpg123/layer2.c359
-rw-r--r--src/libmpg123/layer3.c2067
-rw-r--r--src/libmpg123/libmpg123.c1463
-rw-r--r--src/libmpg123/libmpg123.sym.in76
-rw-r--r--src/libmpg123/mangle.h55
-rw-r--r--src/libmpg123/mpg123.h.in878
-rw-r--r--src/libmpg123/mpg123lib_intern.h184
-rw-r--r--src/libmpg123/ntom.c138
-rw-r--r--src/libmpg123/optimize.c862
-rw-r--r--src/libmpg123/optimize.h211
-rw-r--r--src/libmpg123/parse.c1019
-rw-r--r--src/libmpg123/parse.h25
-rw-r--r--src/libmpg123/reader.h107
-rw-r--r--src/libmpg123/readers.c1027
-rw-r--r--src/libmpg123/sample.h118
-rw-r--r--src/libmpg123/stringbuf.c131
-rw-r--r--src/libmpg123/synth.c541
-rw-r--r--src/libmpg123/synth.h196
-rw-r--r--src/libmpg123/synth_3dnow.S321
-rw-r--r--src/libmpg123/synth_3dnowext.S9
-rw-r--r--src/libmpg123/synth_8bit.c142
-rw-r--r--src/libmpg123/synth_8bit.h86
-rw-r--r--src/libmpg123/synth_altivec.c1057
-rw-r--r--src/libmpg123/synth_i486.c252
-rw-r--r--src/libmpg123/synth_i586.S339
-rw-r--r--src/libmpg123/synth_i586_dither.S378
-rw-r--r--src/libmpg123/synth_mmx.S129
-rw-r--r--src/libmpg123/synth_mono.h64
-rw-r--r--src/libmpg123/synth_ntom.h213
-rw-r--r--src/libmpg123/synth_real.c315
-rw-r--r--src/libmpg123/synth_s32.c319
-rw-r--r--src/libmpg123/synth_sse.S9
-rw-r--r--src/libmpg123/synth_sse3d.h246
-rw-r--r--src/libmpg123/synth_sse_accurate.S297
-rw-r--r--src/libmpg123/synth_sse_float.S244
-rw-r--r--src/libmpg123/synth_sse_s32.S309
-rw-r--r--src/libmpg123/synth_stereo_sse_accurate.S511
-rw-r--r--src/libmpg123/synth_stereo_sse_float.S419
-rw-r--r--src/libmpg123/synth_stereo_sse_s32.S543
-rw-r--r--src/libmpg123/synth_stereo_x86_64.S338
-rw-r--r--src/libmpg123/synth_stereo_x86_64_accurate.S457
-rw-r--r--src/libmpg123/synth_stereo_x86_64_float.S399
-rw-r--r--src/libmpg123/synth_stereo_x86_64_s32.S476
-rw-r--r--src/libmpg123/synth_x86_64.S247
-rw-r--r--src/libmpg123/synth_x86_64_accurate.S304
-rw-r--r--src/libmpg123/synth_x86_64_float.S262
-rw-r--r--src/libmpg123/synth_x86_64_s32.S315
-rw-r--r--src/libmpg123/synths.h52
-rw-r--r--src/libmpg123/tabinit.c242
-rw-r--r--src/libmpg123/tabinit_mmx.S213
-rw-r--r--src/libmpg123/testcpu.c35
-rw-r--r--src/libmpg123/true.h14
-rw-r--r--src/local.c63
-rw-r--r--src/local.h21
-rw-r--r--src/metaprint.c328
-rw-r--r--src/metaprint.h17
-rw-r--r--src/module.c287
-rw-r--r--src/module.h48
-rw-r--r--src/mpg123.c1254
-rw-r--r--src/mpg123app.h151
-rw-r--r--src/output/Makefile.am203
-rw-r--r--src/output/Makefile.in1109
-rw-r--r--src/output/aix.c300
-rw-r--r--src/output/alib.c209
-rw-r--r--src/output/alsa.c289
-rw-r--r--src/output/arts.c117
-rw-r--r--src/output/coreaudio.c370
-rw-r--r--src/output/dummy.c78
-rw-r--r--src/output/esd.c167
-rw-r--r--src/output/hp.c184
-rw-r--r--src/output/jack.c447
-rw-r--r--src/output/mint.c197
-rw-r--r--src/output/nas.c335
-rw-r--r--src/output/os2.c663
-rw-r--r--src/output/oss.c329
-rw-r--r--src/output/portaudio.c255
-rw-r--r--src/output/pulse.c164
-rw-r--r--src/output/sdl.c206
-rw-r--r--src/output/sgi.c213
-rw-r--r--src/output/sndio.c140
-rw-r--r--src/output/sun.c281
-rw-r--r--src/output/win32.c229
-rw-r--r--src/playlist.c559
-rw-r--r--src/playlist.h49
-rw-r--r--src/resolver.c313
-rw-r--r--src/resolver.h25
-rw-r--r--src/sfifo.c146
-rw-r--r--src/sfifo.h95
-rw-r--r--src/term.c463
-rw-r--r--src/term.h76
-rw-r--r--src/tests/seek_accuracy.c254
-rw-r--r--src/wav.c404
-rw-r--r--src/wavhead.h68
-rw-r--r--src/xfermem.c321
-rw-r--r--src/xfermem.h74
-rwxr-xr-xwindows-builds.sh146
238 files changed, 187311 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6352d02
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,47 @@
+/build
+/source/build
+*.mode1v3
+*.pbxuser
+*.pbxindex/
+!user.pbxuser
+/*.log
+*.user
+*.ncb
+*.suo
+*.pdb
+*.pdf
+*.html
+*.idb
+*.o
+*.lo
+*.a
+*.so
+*.so.0
+*.la
+.deps
+.libs
+*.pyc
+.DS_Store
+# Emacs and other editor backup files
+*~
+
+# builds on Windows
+Debug/
+Release/
+release/
+
+/Makefile
+/config.log
+/config.status
+/doc/Makefile
+/libmpg123.pc
+/libtool
+/src/Makefile
+/src/config.h
+/src/libmpg123/.libs/
+/src/libmpg123/Makefile
+/src/libmpg123/libmpg123.sym
+/src/libmpg123/mpg123.h
+/src/output/Makefile
+/src/stamp-h1
+/x86-unknown-linux/ \ No newline at end of file
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..faee621
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,141 @@
+This is an attempt to give credit to the people who contributed in some way to the mpg123 project.
+There are names and email addresses listed. Please use these addresses only to contact contributors with some question about their mpg123 contribution.
+You are explicitly not allowed to send them unwanted business offers or to question the quality of their sex life.
+--------------------
+
+Current maintainers with various sorts of contributions:
+ Thomas Orgis <thomas@orgis.org>
+ Nicholas J Humfrey <njh@ecs.soton.ac.uk>
+
+Generic address pointing to the current maintainer (hopefully still works in future in case maintainership will change again): <maintainer@mpg123.org>
+
+The creator: Michael Hipp (email: hippm@informatik.uni-tuebingen.de - please bother maintainers first)
+
+Contributions/ideas Thomas Orgis era (includes backports from mhipp trunk):
+
+Taihei Monma <tmkk@mac.com>: A whole lot of new/improved assembler code!
+Christian Weisgerber <naddy@openbsd.org>: sndio output
+Patrick Dehne <patrick@steidle.net>: more MSVC++ porting, patch to handle missing bit reservoirs
+Thorsten Glaser <tg@mirbsd.de>: icy2utf8, suggest utf8 locale stuff
+Dan Smith <dan@algenta.com>: ABI fixes for ensuring stack alignment (esp. for MinGW-built DLL with MSVC)
+Michael Ryzhykh <mclroy@gmail.com>: mpg123.spec.in
+Stefan Lenselink <Stefan@lenselink.org>: initial aRts output
+Sergej Kvachonok <ravenexp@gmail.com>: win32 audio rewrite
+Winston: SunOS-4.1.4/gcc-2.7.0 testing and suggestions for fixes (legacy Makefile, integer type headers)
+Mika Tiainen: pointing out the fix for the UTF to ASCII filtering of tags to actually work
+Nick Kurshev <nickols_k@mail.ru>: extended 3dnow (from mplayer)
+Zuxy Meng <zuxy.meng@gmail.com>: SSE (from mplayer)
+Honza <cundrak@quick.cz>: idea and prototype patch for ICY meta data support
+Petr Baudis <pasky@ucw.cz>: patches: term sigcont, id3 display unicode fallback and condensed output
+Petr Salinger <Petr.Salinger@seznam.cz>: i486 enhancement
+mpdavig@users.sourceforge.net: linux-ppc-nas Makefile.legacy entry
+Adrian Bacon <adrian.bacon@xs4all.nl>: patched decode_i586_dither (noise shaped float/int rounding)
+Cool Feet Audio project <nutcase@dtfm.org>: realtime equalizer control
+Steve Grundell <www@grundell.u-net.com>: clean stdout in control mode with stdout decoding
+Romain Dolbeau <romain@dolbeau.org>: Altivec support (taken from mplayer)
+Taihei Monma <tmkk@mac.com>: Altivec improvements
+higway <higway@mednet.md>: MMX Patch
+Clemens Ladisch <clemens@ladisch.de>: ALSA 0.9/1.0 support
+
+Debian Daniel Kobras <kobras@debian.org> era:
+
+Steve Kemp <skx@debian.org>
+Dan Olson <theoddone33@icculus.org>
+Syuuhei Kashiyama <squash@mb.kcom.ne.jp>
+Rupert Levene <rupert.debian@hotpop.com>
+Andreas Dilger <adilger@turbolinux.com>
+Erik B. Andersen <andersee@debian.org>
+Chris Butler <chrisb@debian.org>
+Martin Sjogren <md9ms@mdstud.chalmers.se>
+Chet Hosey <chosey@budapress.com>
+Roland Rosenfeld <roland@spinnaker.de>
+
+
+Debian Colin Watson <cjwatson@debian.org> era:
+
+Helge Deller <deller@gmx.de>
+Chet Hosey <chosey@budapress.com>
+Christopher C. Chimelis <chris@debian.org>
+Roland Rosenfeld <roland@spinnaker.de>
+Marcelo E. Magallon <mmagallo@debian.org>
+
+
+Initial Debianers:
+
+Tommi Virtanen <tv@debian.org>
+Paul Haggart <phaggart@debian.org>
+
+
+Contributions/ideas Michael Hipp era:
+
+Mikko Tommila: DCT9
+Oliver Fromme <oliver.fromme@heim3.tu-clausthal.de>
+MPEG Software Simulation Group: reference decoder package
+Tobias Bading: idea for DCT64 in subband synthesis from maplay package
+Jeff Tsay and Mikko Tommila: MDCT36 from maplay package
+Philipp Knirsch <phil@mpik-tueb.mpg.de>: DCT36/manual unroll idea
+Thomas Woerner: SGI Audio
+Damien Clermonte: HP-UX audio fixes
+Niclas Lindstrom <nil@wineasy.se>: OS2 port
+Stefan Bieschewski <stb@acm.org>: Pentium optimizations, decode_i586.s
+Martin Denn <mdenn@unix-ag.uni-kl.de>: NAS port
+Niklas Beisert <nbeisert@physik.tu-muenchen.de>: MPEG 2.5 tables
+<mycroft@NetBSD.ORG> and <augustss@cs.chalmers.se>: NetBSD Patch(es)
+Kevin Brintnall <kbrint@visi.com>: BSD patch
+Tony Million: win32 port
+Steven Tiger Lang: advanced shuffle
+Eric B. Mitchell: esd port
+Ryan R. Prosser <prosser@geocities.com>: esd port for Solaris
+Andreas Neuhaus: initial generic control interface
+
+(additionally fetched from changelog:)
+
+Ralf Hildebrandt <R.Hildebrandt@TU-BS.DE>: audio_alib changes
+<sms@moe.2bsd.com>: BSDOS 4.0 with gcc added to Makefile
+Bertrand Petit <elrond@phoe.netdev.net>: frontend changes
+Erik Mouw <J.A.K.Mouw@its.tudelft.nl>: SGI audio fix for non RAD machines
+Daniel O'Connor <darius@guppy.dons.net.au>: freebsd-esd make-entry
+D. Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>: enhanced head_check
+Wilson, Jeff D <jeff.wilson@wilcom.com>: xterm-title
+Robert Bihlmeyer <robbe@orcus.priv.at>: esd changes
+Hannu Napari's <Hannu.Napari@hut.fi>: SGI audio patches
+<Juergen.Schoew@unix-ag.uni-siegen.de>: native AIX support
+<psst@euskalnet.net>: playlist patch
+Gilles Zunino <Gilles.Zunino@hei.fupl.asso.fr>: SGI audio patches
+Matthew Parslow <roy@alpha.alphalink.com.au>: esdserver patch
+<dlux@dlux.sch.bme.hu>: equalizer patch (equalfile setting)
+Ducroquet Erwan <ducroque@ufr-info-p7.ibp.fr>: HPUX/ALib support
+Shane Wegner <shane@CM.NU>: genrepatch
+Samuel Audet <guardia@step.polymtl.ca>: wav-File patch
+"J. Dean Brederson" <jdb@cs.utah.edu>: SGI-RAD support
+Chou Ye-chi <is84002@cis.nctu.edu.tw>: sajberplay/FreeBSD patch
+Fabrice Bellard <bellard@email.enst.fr>: 486 optimizations
+A. Hermansen <ahermans@vf.telia.no> and J. Kysela <perex@jcu.cz>: ALSA output
+KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp>: K6-3DNow
+Petr Stehlik <stehlik@cas3.zlin.vutbr.cz>: MINT
+Andy <andy@snoogie.demon.co.uk>: float2int speed up proposal
+Brian Foutz <foutz@anise.ee.cornell.edu>: TK3Play
+Thomas Niederreiter <tn@tarantel.rz.fh-muenchen.de>: RIFF header fix
+Stefan Gybas <cab@studbox.uni-stuttgart.de>: m68k patch
+Grant Erickson <eric0139@tc.umn.edu>: Linux PPC patch
+Peter Berger <peterb@hoopoe.psc.edu>: BSDi patch
+Henrik P Johnson <king@one.se>: HTTP auth
+Steven Tiger Lang <tiger@tyger.org>: advanced shuffle
+"Brian J. Swetland" <swetland@uiuc.edu>: front-end (remote) patch
+<leo@zycad.com>
+Tillmann Steinbrecher <tst@gmx.de>: shuffle patch
+M.Stekelenburg <m.stekelenburg@student.utwente.nl>: i386-getbits
+Antti Andreimann <anttix@cyberix.edu.ee>: outburst patch
+Hur TaeSung <saturn@arari.snu.ac.kr>: 'http accept' patch
+
+(from post-0.59 changes that yet have to go into new trunk:)
+
+Hans Schwengeler <schweng@astro.unibas.ch>: audio_dec additions
+Wojciech Barañski's Mp3Play (check the tools folder): Mp3Play frontend
+Daniel Koukola: audio_oss.c patch
+Munechika SUMIKAWA <sumikawa@ebina.hitachi.co.jp>: IPv6
+TEMNOTA <temnota@kmv.ru>: HTTP,FTP patch/playlist fix
+Peter Surda <shurdeek@panorama.sth.ac.at>: VBR patch
+Ben <ben@blaukopf.com>: ARM startup time improvements
+Dave MacKenzie <djm@pix.net>: init_output() patch
+pasky's <pasky@ju.cz>: close-on-stop patch
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..cf361b2
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,773 @@
+This is the file that contains the terms of use, copying, etc. for the mpg123 distribution package.
+
+Main message:
+
+ Code is copyrighted by Michael Hipp, who made it free software under the terms of the LGPL 2.1.
+
+But that is not all of it.
+mpg123 is licensed under the GNU General Lesser Public License, version 2.1, and in parts under the GNU General Public License, version 2.
+That means that _all_ of mpg123 is licensed under GPL and the major part also under the LGPL.
+
+Actually, the "major part" currently is the whole distributed package of mpg123. There are some files (old alsa output, libao output) that you get from our svn repository and that do not fall under LGPL.
+
+When the copyright marker in a source file says "the mpg123 project" that means that the file contains code copyrighted by contributors to mpg123, the "initially written by" naming the person(s) that created the file and thus may have the largest part of copyrights on it.
+I am explaining this here to emphasize that the copyright always actually lies by the individual member (i.e. contributor to) of the mpg123 project who wrote a specific section of code.
+Usage of a source code management system like Subversion should provide keeping track of individual copyright traces...
+
+Please consider that any code that is contributed to the mpg123 project shall be licensed under LGPL 2.1 .
+If you want to contribute, but don't agree to that (i.e. you want to have your code GPL only) please say so - then, we either you convince is to include your code under GPL, we convince you to make it LGPL instead or, as a last resort, you'll have to do you own GPLed fork.
+But we should try to avoid the last option...
+
+All files in the distribution that don't carry a license note on their own are licensed under the terms of the LGPL 2.1; all files that do carry either a LGPL or GPL note are licensed respectively under the LGPL or GPL as follows:
+
+
+=======================
+1. The LGPL version 2.1
+=======================
+
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 2.1, February 1999
+
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+[This is the first released version of the Lesser GPL. It also counts
+ as the successor of the GNU Library Public License, version 2, hence
+ the version number 2.1.]
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+Licenses are intended to guarantee your freedom to share and change
+free software--to make sure the software is free for all its users.
+
+ This license, the Lesser General Public License, applies to some
+specially designated software packages--typically libraries--of the
+Free Software Foundation and other authors who decide to use it. You
+can use it too, but we suggest you first think carefully about whether
+this license or the ordinary General Public License is the better
+strategy to use in any particular case, based on the explanations below.
+
+ When we speak of free software, we are referring to freedom of use,
+not price. Our General Public Licenses are designed to make sure that
+you have the freedom to distribute copies of free software (and charge
+for this service if you wish); that you receive source code or can get
+it if you want it; that you can change the software and use pieces of
+it in new free programs; and that you are informed that you can do
+these things.
+
+ To protect your rights, we need to make restrictions that forbid
+distributors to deny you these rights or to ask you to surrender these
+rights. These restrictions translate to certain responsibilities for
+you if you distribute copies of the library or if you modify it.
+
+ For example, if you distribute copies of the library, whether gratis
+or for a fee, you must give the recipients all the rights that we gave
+you. You must make sure that they, too, receive or can get the source
+code. If you link other code with the library, you must provide
+complete object files to the recipients, so that they can relink them
+with the library after making changes to the library and recompiling
+it. And you must show them these terms so they know their rights.
+
+ We protect your rights with a two-step method: (1) we copyright the
+library, and (2) we offer you this license, which gives you legal
+permission to copy, distribute and/or modify the library.
+
+ To protect each distributor, we want to make it very clear that
+there is no warranty for the free library. Also, if the library is
+modified by someone else and passed on, the recipients should know
+that what they have is not the original version, so that the original
+author's reputation will not be affected by problems that might be
+introduced by others.
+
+ Finally, software patents pose a constant threat to the existence of
+any free program. We wish to make sure that a company cannot
+effectively restrict the users of a free program by obtaining a
+restrictive license from a patent holder. Therefore, we insist that
+any patent license obtained for a version of the library must be
+consistent with the full freedom of use specified in this license.
+
+ Most GNU software, including some libraries, is covered by the
+ordinary GNU General Public License. This license, the GNU Lesser
+General Public License, applies to certain designated libraries, and
+is quite different from the ordinary General Public License. We use
+this license for certain libraries in order to permit linking those
+libraries into non-free programs.
+
+ When a program is linked with a library, whether statically or using
+a shared library, the combination of the two is legally speaking a
+combined work, a derivative of the original library. The ordinary
+General Public License therefore permits such linking only if the
+entire combination fits its criteria of freedom. The Lesser General
+Public License permits more lax criteria for linking other code with
+the library.
+
+ We call this license the "Lesser" General Public License because it
+does Less to protect the user's freedom than the ordinary General
+Public License. It also provides other free software developers Less
+of an advantage over competing non-free programs. These disadvantages
+are the reason we use the ordinary General Public License for many
+libraries. However, the Lesser license provides advantages in certain
+special circumstances.
+
+ For example, on rare occasions, there may be a special need to
+encourage the widest possible use of a certain library, so that it becomes
+a de-facto standard. To achieve this, non-free programs must be
+allowed to use the library. A more frequent case is that a free
+library does the same job as widely used non-free libraries. In this
+case, there is little to gain by limiting the free library to free
+software only, so we use the Lesser General Public License.
+
+ In other cases, permission to use a particular library in non-free
+programs enables a greater number of people to use a large body of
+free software. For example, permission to use the GNU C Library in
+non-free programs enables many more people to use the whole GNU
+operating system, as well as its variant, the GNU/Linux operating
+system.
+
+ Although the Lesser General Public License is Less protective of the
+users' freedom, it does ensure that the user of a program that is
+linked with the Library has the freedom and the wherewithal to run
+that program using a modified version of the Library.
+
+ The precise terms and conditions for copying, distribution and
+modification follow. Pay close attention to the difference between a
+"work based on the library" and a "work that uses the library". The
+former contains code derived from the library, whereas the latter must
+be combined with the library in order to run.
+
+ GNU LESSER GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License Agreement applies to any software library or other
+program which contains a notice placed by the copyright holder or
+other authorized party saying it may be distributed under the terms of
+this Lesser General Public License (also called "this License").
+Each licensee is addressed as "you".
+
+ A "library" means a collection of software functions and/or data
+prepared so as to be conveniently linked with application programs
+(which use some of those functions and data) to form executables.
+
+ The "Library", below, refers to any such software library or work
+which has been distributed under these terms. A "work based on the
+Library" means either the Library or any derivative work under
+copyright law: that is to say, a work containing the Library or a
+portion of it, either verbatim or with modifications and/or translated
+straightforwardly into another language. (Hereinafter, translation is
+included without limitation in the term "modification".)
+
+ "Source code" for a work means the preferred form of the work for
+making modifications to it. For a library, complete source code means
+all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation
+and installation of the library.
+
+ Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running a program using the Library is not restricted, and output from
+such a program is covered only if its contents constitute a work based
+on the Library (independent of the use of the Library in a tool for
+writing it). Whether that is true depends on what the Library does
+and what the program that uses the Library does.
+
+ 1. You may copy and distribute verbatim copies of the Library's
+complete source code as you receive it, in any medium, provided that
+you conspicuously and appropriately publish on each copy an
+appropriate copyright notice and disclaimer of warranty; keep intact
+all the notices that refer to this License and to the absence of any
+warranty; and distribute a copy of this License along with the
+Library.
+
+ You may charge a fee for the physical act of transferring a copy,
+and you may at your option offer warranty protection in exchange for a
+fee.
+
+ 2. You may modify your copy or copies of the Library or any portion
+of it, thus forming a work based on the Library, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) The modified work must itself be a software library.
+
+ b) You must cause the files modified to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ c) You must cause the whole of the work to be licensed at no
+ charge to all third parties under the terms of this License.
+
+ d) If a facility in the modified Library refers to a function or a
+ table of data to be supplied by an application program that uses
+ the facility, other than as an argument passed when the facility
+ is invoked, then you must make a good faith effort to ensure that,
+ in the event an application does not supply such function or
+ table, the facility still operates, and performs whatever part of
+ its purpose remains meaningful.
+
+ (For example, a function in a library to compute square roots has
+ a purpose that is entirely well-defined independent of the
+ application. Therefore, Subsection 2d requires that any
+ application-supplied function or table used by this function must
+ be optional: if the application does not supply it, the square
+ root function must still compute square roots.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Library,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Library, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote
+it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Library.
+
+In addition, mere aggregation of another work not based on the Library
+with the Library (or with a work based on the Library) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may opt to apply the terms of the ordinary GNU General Public
+License instead of this License to a given copy of the Library. To do
+this, you must alter all the notices that refer to this License, so
+that they refer to the ordinary GNU General Public License, version 2,
+instead of to this License. (If a newer version than version 2 of the
+ordinary GNU General Public License has appeared, then you can specify
+that version instead if you wish.) Do not make any other change in
+these notices.
+
+ Once this change is made in a given copy, it is irreversible for
+that copy, so the ordinary GNU General Public License applies to all
+subsequent copies and derivative works made from that copy.
+
+ This option is useful when you wish to copy part of the code of
+the Library into a program that is not a library.
+
+ 4. You may copy and distribute the Library (or a portion or
+derivative of it, under Section 2) in object code or executable form
+under the terms of Sections 1 and 2 above provided that you accompany
+it with the complete corresponding machine-readable source code, which
+must be distributed under the terms of Sections 1 and 2 above on a
+medium customarily used for software interchange.
+
+ If distribution of object code is made by offering access to copy
+from a designated place, then offering equivalent access to copy the
+source code from the same place satisfies the requirement to
+distribute the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 5. A program that contains no derivative of any portion of the
+Library, but is designed to work with the Library by being compiled or
+linked with it, is called a "work that uses the Library". Such a
+work, in isolation, is not a derivative work of the Library, and
+therefore falls outside the scope of this License.
+
+ However, linking a "work that uses the Library" with the Library
+creates an executable that is a derivative of the Library (because it
+contains portions of the Library), rather than a "work that uses the
+library". The executable is therefore covered by this License.
+Section 6 states terms for distribution of such executables.
+
+ When a "work that uses the Library" uses material from a header file
+that is part of the Library, the object code for the work may be a
+derivative work of the Library even though the source code is not.
+Whether this is true is especially significant if the work can be
+linked without the Library, or if the work is itself a library. The
+threshold for this to be true is not precisely defined by law.
+
+ If such an object file uses only numerical parameters, data
+structure layouts and accessors, and small macros and small inline
+functions (ten lines or less in length), then the use of the object
+file is unrestricted, regardless of whether it is legally a derivative
+work. (Executables containing this object code plus portions of the
+Library will still fall under Section 6.)
+
+ Otherwise, if the work is a derivative of the Library, you may
+distribute the object code for the work under the terms of Section 6.
+Any executables containing that work also fall under Section 6,
+whether or not they are linked directly with the Library itself.
+
+ 6. As an exception to the Sections above, you may also combine or
+link a "work that uses the Library" with the Library to produce a
+work containing portions of the Library, and distribute that work
+under terms of your choice, provided that the terms permit
+modification of the work for the customer's own use and reverse
+engineering for debugging such modifications.
+
+ You must give prominent notice with each copy of the work that the
+Library is used in it and that the Library and its use are covered by
+this License. You must supply a copy of this License. If the work
+during execution displays copyright notices, you must include the
+copyright notice for the Library among them, as well as a reference
+directing the user to the copy of this License. Also, you must do one
+of these things:
+
+ a) Accompany the work with the complete corresponding
+ machine-readable source code for the Library including whatever
+ changes were used in the work (which must be distributed under
+ Sections 1 and 2 above); and, if the work is an executable linked
+ with the Library, with the complete machine-readable "work that
+ uses the Library", as object code and/or source code, so that the
+ user can modify the Library and then relink to produce a modified
+ executable containing the modified Library. (It is understood
+ that the user who changes the contents of definitions files in the
+ Library will not necessarily be able to recompile the application
+ to use the modified definitions.)
+
+ b) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (1) uses at run time a
+ copy of the library already present on the user's computer system,
+ rather than copying library functions into the executable, and (2)
+ will operate properly with a modified version of the library, if
+ the user installs one, as long as the modified version is
+ interface-compatible with the version that the work was made with.
+
+ c) Accompany the work with a written offer, valid for at
+ least three years, to give the same user the materials
+ specified in Subsection 6a, above, for a charge no more
+ than the cost of performing this distribution.
+
+ d) If distribution of the work is made by offering access to copy
+ from a designated place, offer equivalent access to copy the above
+ specified materials from the same place.
+
+ e) Verify that the user has already received a copy of these
+ materials or that you have already sent this user a copy.
+
+ For an executable, the required form of the "work that uses the
+Library" must include any data and utility programs needed for
+reproducing the executable from it. However, as a special exception,
+the materials to be distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies
+the executable.
+
+ It may happen that this requirement contradicts the license
+restrictions of other proprietary libraries that do not normally
+accompany the operating system. Such a contradiction means you cannot
+use both them and the Library together in an executable that you
+distribute.
+
+ 7. You may place library facilities that are a work based on the
+Library side-by-side in a single library together with other library
+facilities not covered by this License, and distribute such a combined
+library, provided that the separate distribution of the work based on
+the Library and of the other library facilities is otherwise
+permitted, and provided that you do these two things:
+
+ a) Accompany the combined library with a copy of the same work
+ based on the Library, uncombined with any other library
+ facilities. This must be distributed under the terms of the
+ Sections above.
+
+ b) Give prominent notice with the combined library of the fact
+ that part of it is a work based on the Library, and explaining
+ where to find the accompanying uncombined form of the same work.
+
+ 8. You may not copy, modify, sublicense, link with, or distribute
+the Library except as expressly provided under this License. Any
+attempt otherwise to copy, modify, sublicense, link with, or
+distribute the Library is void, and will automatically terminate your
+rights under this License. However, parties who have received copies,
+or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+ 9. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Library or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Library (or any work based on the
+Library), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Library or works based on it.
+
+ 10. Each time you redistribute the Library (or any work based on the
+Library), the recipient automatically receives a license from the
+original licensor to copy, distribute, link with or modify the Library
+subject to these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties with
+this License.
+
+ 11. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Library at all. For example, if a patent
+license would not permit royalty-free redistribution of the Library by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Library.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply,
+and the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 12. If the distribution and/or use of the Library is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Library under this License may add
+an explicit geographical distribution limitation excluding those countries,
+so that distribution is permitted only in or among countries not thus
+excluded. In such case, this License incorporates the limitation as if
+written in the body of this License.
+
+ 13. The Free Software Foundation may publish revised and/or new
+versions of the Lesser General Public License from time to time.
+Such new versions will be similar in spirit to the present version,
+but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library
+specifies a version number of this License which applies to it and
+"any later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Library does not specify a
+license version number, you may choose any version ever published by
+the Free Software Foundation.
+
+ 14. If you wish to incorporate parts of the Library into other free
+programs whose distribution conditions are incompatible with these,
+write to the author to ask for permission. For software which is
+copyrighted by the Free Software Foundation, write to the Free
+Software Foundation; we sometimes make exceptions for this. Our
+decision will be guided by the two goals of preserving the free status
+of all derivatives of our free software and of promoting the sharing
+and reuse of software generally.
+
+ NO WARRANTY
+
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+
+====================
+2. The GPL version 2
+====================
+
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..282041f
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,8853 @@
+2009-06-14 12:40 thor
+
+ * tags/1.8.1/ChangeLog, tags/1.8.1/NEWS,
+ tags/1.8.1/ports/Sony_PSP/Makefile.psp,
+ tags/1.8.1/ports/Sony_PSP/config.h: merge r2192: Sony PSP build
+ files
+
+2009-06-14 12:31 thor
+
+ * tags/1.8.1/configure.ac: version 1.8.1
+
+2009-06-14 12:22 thor
+
+ * tags/1.8.1/NEWS, tags/1.8.1/src/libmpg123/synth_altivec.c:
+ import r2179: old gcc with AltiVec
+
+2009-06-14 12:20 thor
+
+ * tags/1.8.1/NEWS, tags/1.8.1/src/mpg123.c: import fix for binary
+ name in output
+
+2009-06-14 12:13 thor
+
+ * tags/1.8.1/README: update README date
+
+2009-06-14 12:12 thor
+
+ * tags/1.8.1/README: update README for accuracy and x86-64 stuff
+
+2009-06-14 11:58 thor
+
+ * tags/1.8.1/configure.ac: Dammit, configure was still broken...
+ another fix to make --enable-modules/--disable-modules work
+ properly.
+
+2009-06-14 11:44 thor
+
+ * tags/1.8.1/NEWS, tags/1.8.1/configure.ac: merge in r2174: fix
+ --enable-modules
+
+2009-06-14 11:42 thor
+
+ * tags/1.8.1/NEWS, tags/1.8.1/configure.ac,
+ tags/1.8.1/src/libmpg123/dct64_i386.c,
+ tags/1.8.1/src/libmpg123/layer1.c,
+ tags/1.8.1/src/libmpg123/layer2.c,
+ tags/1.8.1/src/libmpg123/layer3.c,
+ tags/1.8.1/src/libmpg123/mpg123lib_intern.h,
+ tags/1.8.1/src/libmpg123/sample.h,
+ tags/1.8.1/src/libmpg123/tabinit.c: Merge in code for actually
+ having integer decoders that decode well. Revisions 2095, 2099,
+ 2105, 2108, 2110, 2114, 2115.
+
+2009-06-14 11:03 thor
+
+ * tags/1.8.1: preparing 1.8.1 ... there ... are ... omissions
+
+2009-06-10 08:04 thor
+
+ * tags/1.8.0/doc/Makefile.am: include the dumb decoder
+ * tags/1.8.0/configure.ac: version
+ * tags/1.8.0/NEWS, tags/1.8.0/doc/examples/dumb_decoder.c,
+ tags/1.8.0/src/libmpg123/libmpg123.c,
+ tags/1.8.0/src/libmpg123/mpg123.h.in: import the
+ MPG123_NEW_FORMAT fix
+
+2009-06-10 08:02 thor
+
+ * tags/1.8, tags/1.8.0: it's 1.8.0!
+ * tags/1.8: tagging 1.8 with a final fix
+
+2009-06-08 07:06 thor
+
+ * tags/1.8rc5/configure.ac,
+ tags/1.8rc5/src/libmpg123/synth_stereo_x86_64_s32.S: marking it
+ as rc5, together with merging the win64 s32 fix
+
+2009-06-08 07:05 thor
+
+ * tags/1.8rc5: another rc with another win64 fix
+
+2009-06-06 20:58 thor
+
+ * tags/1.8rc4/configure.ac: name it rc4
+
+2009-06-06 20:53 thor
+
+ * tags/1.8rc4/NEWS, tags/1.8rc4/configure.ac,
+ tags/1.8rc4/src/libmpg123/synth_stereo_x86_64.S: merge in r2143,
+ windows 64bit stereo synth fix
+
+2009-06-06 20:51 thor
+
+ * tags/1.8rc4: tag rc4 for the win64 fix
+
+2009-06-02 21:54 thor
+
+ * tags/1.8rc3/configure.ac: call it rc3, actually
+
+2009-06-02 21:53 thor
+
+ * tags/1.8rc3/NEWS: merge in the lame pun
+
+2009-06-02 21:52 thor
+
+ * tags/1.8rc3/NEWS: note open issue of win64
+
+2009-06-02 21:37 thor
+
+ * tags/1.8rc3/configure.ac: increase the lib version to
+ something... that is not consistent, *shrug*
+
+2009-06-02 21:36 thor
+
+ * tags/1.8rc3/NEWS: merge r2122: note OS/2 state
+
+2009-06-02 21:35 thor
+
+ * tags/1.8rc3/man1/mpg123.1, tags/1.8rc3/src/mpg123.c: merge
+ r2113: --gain deprecation
+
+2009-06-02 21:34 thor
+
+ * tags/1.8rc3/NEWS, tags/1.8rc3/src/audio.c,
+ tags/1.8rc3/src/mpg123.c, tags/1.8rc3/src/mpg123app.h: merge
+ r2105: reactivate --gain code
+
+2009-06-02 21:30 thor
+
+ * tags/1.8rc3/NEWS, tags/1.8rc3/src/audio.c,
+ tags/1.8rc3/src/buffer.c, tags/1.8rc3/src/xfermem.c,
+ tags/1.8rc3/src/xfermem.h: merge in r2100: fix bug 2796802 (wait
+ for buffer init)
+
+2009-06-02 21:24 thor
+
+ * tags/1.8rc3/man1/mpg123.1: merge in r2049: space in man page
+
+2009-06-02 21:17 thor
+
+ * tags/1.8rc3: one last RC... copying before pulling in the last
+ changes
+
+2009-05-24 01:06 thor
+
+ * tags/1.8rc2/configure.ac: it is 1.8rc2
+
+2009-05-24 00:38 thor
+
+ * tags/1.8rc2/configure.ac: import the buffer choice from trunk
+
+2009-05-24 00:37 thor
+
+ * tags/1.8rc2/configure.ac,
+ tags/1.8rc2/src/libmpg123/dct64_x86_64.S,
+ tags/1.8rc2/src/libmpg123/dct64_x86_64_float.S,
+ tags/1.8rc2/src/libmpg123/synth_stereo_x86_64.S,
+ tags/1.8rc2/src/libmpg123/synth_stereo_x86_64_accurate.S,
+ tags/1.8rc2/src/libmpg123/synth_stereo_x86_64_float.S,
+ tags/1.8rc2/src/libmpg123/synth_stereo_x86_64_s32.S,
+ tags/1.8rc2/src/libmpg123/synth_x86_64.S,
+ tags/1.8rc2/src/libmpg123/synth_x86_64_accurate.S,
+ tags/1.8rc2/src/libmpg123/synth_x86_64_float.S,
+ tags/1.8rc2/src/libmpg123/synth_x86_64_s32.S: import the win64
+ calling convenion fixes from trunk
+
+2009-05-24 00:32 thor
+
+ * tags/1.8rc2: the next rc
+
+2009-05-21 22:36 thor
+
+ * tags/1.8rc1/doc/Makefile.am: README.WIN32 is gone...
+
+2009-05-21 22:27 thor
+
+ * tags/1.8rc1/Makefile.am: remove xmms2 plugin entries from
+ Makefile
+
+2009-05-21 22:20 thor
+
+ * tags/1.8rc1/configure.ac: mark version 1.8rc1
+
+2009-05-21 22:19 thor
+
+ * tags/1.8rc1/NEWS.libmpg123: noted the change for 17.0.17
+
+2009-05-21 20:33 thor
+
+ * tags/1.8rc1: branching off 1.8rc1 to get the final 1.8.0 release
+ stabilized
+
+2009-05-21 20:32 thor
+
+ * trunk/doc/libmpg123_speed.txt: update speed notes
+
+2009-05-21 11:03 thor
+
+ * trunk/doc/THANKS: at least some thanks to JonY
+
+2009-05-21 10:56 thor
+
+ * trunk/src/module.c, trunk/src/mpg123.c: proper fix for the
+ no-path case, this time
+
+2009-05-21 10:08 thor
+
+ * trunk/src/module.c: actually tell the complete current moddir to
+ be tested in debug output
+
+2009-05-21 09:54 thor
+
+ * trunk/src/module.c, trunk/src/mpg123.c: Try to handle empty
+ binary path for finding modules (windows needs it? -- we want
+ testing).
+
+2009-05-20 22:01 thor
+
+ * trunk/TODO: Some TODOs are done.
+
+2009-05-20 21:57 thor
+
+ * trunk/doc/ACCURACY, trunk/doc/README.WIN32: doc update Remove
+ outdated win32 README, update accuracy info.
+ * trunk/doc/THANKS: More alphabetical, a small passage to cover
+ people I did not name.
+
+2009-05-19 22:39 patr3ck
+
+ * trunk/ports/MSVC++/config.h, trunk/src/libmpg123/sample.h:
+ define __inline as inline in config.h to make static inline
+ declarations work as sugested by sobukus
+
+2009-05-19 22:38 thor
+
+ * trunk/NEWS: An attempt to get the NEWS for 1.8.0 written down.
+ * trunk/AUTHORS: be more specific about Taihei;-)
+
+2009-05-19 21:33 thor
+
+ * trunk/src/tests: ignore
+
+2009-05-19 21:31 thor
+
+ * trunk/xmms2-plugin: xmms2 plugin is in xmms2 upstream source
+
+2009-05-19 21:14 thor
+
+ * trunk/src/libmpg123/readers.c: also do nott check for
+ anticipated file end in the ICY reader...
+
+2009-05-19 14:35 thor
+
+ * trunk/src/libmpg123/readers.c: Do not anticipate file end,
+ always wait for read() indicating real EOF (hopefully fixes bug
+ 2793677 with embedded ID3v1).
+
+2009-05-19 09:55 thor
+
+ * trunk/src/mpg123.c: do nott included unnecessary headers in
+ mpg123.c
+
+2009-05-18 14:15 thor
+
+ * trunk/src/libmpg123/mpg123lib_intern.h: load config.h earlier to
+ make the ABI_ALIGN_FUN work again, thanks to Leandro for
+ spotting this (still needs testing)
+
+2009-05-18 08:21 taihei
+
+ * trunk/src/libmpg123/synth_3dnow.S: supported accurate rounding
+ for 3dnow decoder
+
+2009-05-17 21:42 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: Catch up
+ with Taihai's latest additions to SSE optimized decoding
+
+2009-05-17 19:38 thor
+
+ * trunk/configure.ac: there is no synth_stereo_sse.S
+
+2009-05-17 13:29 thor
+
+ * trunk/configure.ac: organize the --with-int-quality code...
+ choose either set of sources, not always both
+
+2009-05-17 11:19 thor
+
+ * trunk/src/libmpg123/Makefile.am: Enable RPATH builds for
+ dithering decoders by using full path to dnoise.sh. Just a note
+ again, for funny paths: Spaces in source path will blow up with
+ autoconf. Do not forget that.
+
+2009-05-17 06:21 taihei
+
+ * trunk/configure.ac, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/decode.h, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/synth.c, trunk/src/libmpg123/synth_s32.c,
+ trunk/src/libmpg123/synth_sse_accurate.S,
+ trunk/src/libmpg123/synth_sse_s32.S,
+ trunk/src/libmpg123/synth_stereo_sse_accurate.S,
+ trunk/src/libmpg123/synth_stereo_sse_s32.S,
+ trunk/src/libmpg123/synth_stereo_x86_64_accurate.S,
+ trunk/src/libmpg123/synth_x86_64_accurate.S: - added accurate
+ 16bit decoder for SSE and x86-64 -- should be used when
+ --enable-int-quality=yes is specified - added optimized s32
+ synth for SSE
+
+2009-05-17 00:36 thor
+
+ * trunk/man1/mpg123.1, trunk/src/mpg123.c, trunk/src/mpg123app.h:
+ add --preframes, update documentation
+
+2009-05-17 00:22 thor
+
+ * trunk/src/libmpg123/readers.c: do not seek back to an index
+ position when we are already closer to the aim
+
+2009-05-16 23:44 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c: Be smarter
+ about seeking.. prevent unnecessary back-seeks when we are on
+ track already.
+
+2009-05-16 22:58 thor
+
+ * trunk/src/libmpg123/format.c: reduce verbosity of format
+ matching code... people get irritated by mentioning of
+ resampling where there is no resampling
+
+2009-05-16 22:26 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/sample.h: compile-time choice for integer
+ accuracy default is the truncation as before, as it's the
+ fastest and casual people won't notice, but there is ./configure
+ --enable-int-quality to make integer conversion more proper and
+ improve the accuracy in the LSB.
+
+2009-05-16 09:25 thor
+
+ * trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/libmpg123/readers.c:
+ Non-seekable streams can still go forwards, that idea has been
+ in the code, but not used. This is hard on the border for things
+ one should not add during stabilizing a release. I know.
+
+2009-05-16 09:23 thor
+
+ * trunk/src/mpg123.c: Do not try to skip 0 frames, that can
+ unnecessarily break playback of non-seekable streams.
+
+2009-05-16 09:17 thor
+
+ * trunk/src/libmpg123/id3.c: fix ID3v2 RVA2 parsing of negative
+ values, see bug #2792417
+
+2009-05-16 09:14 thor
+
+ * trunk/configure.ac: for completeness, add int16_t
+
+2009-05-14 15:49 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: Add .S files
+ and mpg123.h.in to the project to make MSVC SVN plugins work
+ correctly. Suggested by TheVinn.
+
+2009-05-14 14:43 patr3ck
+
+ * trunk/src/libmpg123/mpg123lib_intern.h: I should have removed
+ the inline and leave the static in place.
+
+2009-05-14 14:41 patr3ck
+
+ * trunk/src/libmpg123/mpg123lib_intern.h: Removed static before
+ inline. It gave compile errors on MSVC++. Spotted and fix
+ suggested by TheVinn on IRC.
+
+2009-05-14 07:25 taihei
+
+ * trunk/src/libmpg123/mpg123lib_intern.h: faster accurate rounding
+
+2009-05-13 07:47 taihei
+
+ * trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/synth_altivec.c: REAL_TO_SHORT should round
+ fp value to the nearest integer, without truncation. This makes
+ 16-bit integer output of the generic (and altivec) decoder fully
+ compliant with the standard (but slower). ==== Layer 1 ====
+ layer 1 16bit compliance (unlikely...) RMS=4.36437e-06 (PASS)
+ maxdiff=7.62939e-06 (PASS) layer 1 float compliance (hopefully
+ fine) RMS=1.97436e-08 (PASS) maxdiff=1.49012e-07 (PASS) ====
+ Layer 2 ==== layer 2 16bit compliance (unlikely...)
+ RMS=3.5121e-06 (PASS) maxdiff=7.62939e-06 (PASS) layer 2 float
+ compliance (hopefully fine) RMS=1.78736e-08 (PASS)
+ maxdiff=8.28877e-08 (PASS) ==== Layer 3 ==== layer 3 16bit
+ compliance (unlikely...) RMS=4.30092e-06 (PASS)
+ maxdiff=7.689e-06 (PASS) layer 3 float compliance (hopefully
+ fine) RMS=2.14814e-08 (PASS) maxdiff=1.67638e-07 (PASS)
+
+2009-05-12 08:38 taihei
+
+ * trunk/src/libmpg123/layer3.c: a fix for the HF cutoff problem
+
+2009-05-12 07:10 thor
+
+ * trunk/src/libmpg123/parse.c: document that I did test the
+ halfspeed stuff
+
+2009-05-11 12:19 thor
+
+ * trunk/NEWS, trunk/src/playlist.c: Wow, the last playlist fix
+ disabled random play! Man, you have to test that stuff... Now
+ hopefully fine and also the randomness enhancement documented.
+
+2009-05-11 12:16 thor
+
+ * trunk/NEWS.libmpg123: lib news... MPG123_PREFRAMES
+ * trunk/configure.ac: fix nofpu decoder build (disable 32bit and
+ float output in configure already)
+
+2009-05-10 23:36 thor
+
+ * trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/optimize.c, trunk/src/libmpg123/optimize.h:
+ fix configure for generic_nofpu
+
+2009-05-10 22:17 thor
+
+ * trunk/src/libmpg123/frame.c: Settling on preframes=4 per
+ default, with fixed upper limit of 2 for layer 1 and 2, as well
+ as lower limit 1 for layer 3.
+
+2009-05-10 21:56 thor
+
+ * trunk/src/libmpg123/libmpg123.c: Reset frame buffers before
+ seeks. That helps to get the first sample accurately... and
+ generally. Now I need 2 preframes for layer 1 and 2 compliance
+ bitstreams, 4 for layer 3.
+
+2009-05-10 21:46 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/tests/seek_accuracy.c:
+ Resuming work on seek accuracy. Layer 3 is mostly fine, layer 1
+ and 2 gives me creeps. They work now basically, but also only
+ with certain preframes values. Also, getting the first sample
+ again always fails. Will try to reinit decoder for that case...
+ or in any case...
+
+2009-05-10 21:20 thor
+
+ * trunk/src/libmpg123/getbits.h: Importing a C version of getbits.
+ That fixes layer1 decoding. I am not sure what exactly went
+ wrong with the macro, but the C code makes mpg123 a compliant
+ layer 1 decoder again. This should be no performance regression,
+ at least it is none on my system. The C code is still in the
+ header, ready to be inlined for the same result. Maybe I will
+ move all getbits macros to static C functions...
+
+2009-05-10 21:17 thor
+
+ * trunk/src/libmpg123/libmpg123.c: does not need getbits
+
+2009-05-10 19:27 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/parse.c: Fix the
+ breakage that the layer2 testing brought to light: The parser
+ screamed header change on changes between stereo modes. I got
+ that check wrong... funny, that this doesn't jump on your feet
+ with real world files... that much, at least. To elaborate a
+ bit: The breakage meant too many decoder buffer
+ reinitializations during the stream, introducing some tickling,
+ and, of course, breaking seek sample value accuracy.
+
+2009-05-04 09:07 thor
+
+ * trunk/NEWS.libmpg123: working on the libmpg123 version jump NEWS
+
+2009-05-04 09:06 thor
+
+ * trunk/src/tests/seek_accuracy.c: more informative test report
+
+2009-05-03 21:46 thor
+
+ * trunk/NEWS: import the NEWS for the 1.7.x bugfix releases
+
+2009-05-03 19:38 patr3ck
+
+ * trunk/ports/MSVC++/2008/mpg123.sln: Switch default build from
+ x86 to generic.
+
+2009-05-03 15:36 taihei
+
+ * trunk/configure.ac: a fix for configure help message
+
+2009-05-03 13:14 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/optimize.c: move SSE up
+ in the list of decoders as shown to the outside workd
+
+2009-05-02 07:33 thor
+
+ * trunk/Makefile.am: include the CPU benchmark script in
+ distribution
+
+2009-05-01 16:08 taihei
+
+ * trunk/configure.ac: disable modules automatically when libltdl
+ not found
+
+2009-05-01 06:02 taihei
+
+ * trunk/src/libmpg123/dct64_sse.S,
+ trunk/src/libmpg123/dct64_sse_float.S,
+ trunk/src/libmpg123/synth_sse3d.h: a new dct64 with SSE
+ optimization, written from scratch
+
+2009-05-01 00:06 thor
+
+ * trunk/scripts/benchmark-cpu.pl: update the CPU benchmark...
+ producing some formatted text output (for plotting, for example)
+
+2009-04-30 23:24 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/optimize.c: Make SSE the
+ first choice for x86. It is generally faster than 3DNowExt on
+ AMD CPUs that support both (especially once Taihei brings in the
+ improved dct64 for SSE). The optimized dct36 seems even to make
+ it _slower_ for K7 and K8. On K6 it is faster than plain dct36.
+ Need to check how it is on early K7 without SSE unit.
+
+2009-04-30 14:50 thor
+
+ * trunk/configure.ac: further fixing of configure... now runs with
+ --disable-shared again
+
+2009-04-30 14:28 thor
+
+ * trunk/configure.ac: check for sys/types.h explicitly
+
+2009-04-30 14:21 thor
+
+ * trunk/Makefile.am, trunk/src/Makefile.am: Remove legacy build
+ system from distribution, too.
+
+2009-04-30 14:17 thor
+
+ * trunk/INSTALL, trunk/MakeLegacy.sh, trunk/src/Makefile.legacy,
+ trunk/src/Makefile.win32, trunk/src/config.h.legacy: Legacy
+ build system is gone for now.
+
+2009-04-30 14:10 thor
+
+ * trunk/configure.ac: Quickfix for configure... libtool uses
+ $EGREP without checking for it. This is apparently collateral
+ damage from libltdl removal ... and it seems wrong having to
+ check for that program manually.
+
+2009-04-29 10:17 thor
+
+ * trunk/src/libmpg123/optimize.c: Use the SSE-optimized real
+ synths in 3DNowExt decoder when CPU can do SSE, too. Still open
+ is the question of SSE being faster on some CPUs that can do
+ 3DNowExt (namely AMD64). AthlonXPs are a bit faster on
+ 3DNowExt... but the margin is so tigth that some tweaked
+ optimization to the SSE code would overcome it easily, I guess.
+
+2009-04-29 10:13 thor
+
+ * trunk/windows-builds.sh: x86-64, not x86_64
+
+2009-04-28 22:02 patr3ck
+
+ * trunk/src/libmpg123/layer2.c, trunk/src/libmpg123/layer3.c,
+ trunk/src/libmpg123/tabinit.c: Fix a few MSVC++ compiler
+ warnings.
+
+2009-04-28 21:44 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/mpg123.sln: Add MSVC builds with
+ combined, runtime selected optimizations in Debug/Release
+ Dll/Lib variants. Dither optimizations are not yet included.
+
+2009-04-28 21:38 patr3ck
+
+ * trunk/ports/MSVC++/examples/feedseek.c: Make feedseek output
+ more verbose
+
+2009-04-28 21:37 patr3ck
+
+ * trunk/src/libmpg123/synth_i586_dither.S: Change fadd to fadds to
+ make yasm happy
+
+2009-04-28 16:28 thor
+
+ * trunk/windows-builds.sh: switch to manual libltdl copying for
+ now...
+
+2009-04-28 15:34 patr3ck
+
+ * trunk/ports/MSVC++/2008/feedseek/feedseek.vcproj,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/mpg123.sln,
+ trunk/ports/MSVC++/2008/mpglib/mpglib.vcproj,
+ trunk/ports/MSVC++/2008/scan/scan.vcproj: Add more assembler
+ optimized builds in preparation for the combining OPT_MULTI
+ build. We now have the following builds in MSVC++ 2008:
+ OPT_GENERIC (Debug/Release, Dll/Lib) OPT_I386 (Debug/Release,
+ Dll/Lib) OPT_I586 (Debug/Release, Dll/Lib) OPT_MMX
+ (Debug/Release, Dll/Lib) OPT_MULTI OPT_3DNOW (Debug/Release,
+ Dll/Lib) OPT_MULTI OPT_3DNOWEXT (Debug/Release, Dll/Lib) OPT_SSE
+ (Debug/Release, Dll/Lib)
+
+2009-04-28 14:35 patr3ck
+
+ * trunk/windows-builds.sh: Adapt 64bit cross-compiler settings
+
+2009-04-27 23:49 thor
+
+ * trunk/NEWS.libmpg123: do not forget...
+
+2009-04-27 23:44 thor
+
+ * trunk/Makefile.am, trunk/configure.ac,
+ trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/tests/seek_accuracy.c: Making the preframes count (aka
+ IGNORESHIFT) runtime-tunable via MPG123_PREFRAMES paramter.
+ There is no command-line paramter for the mpg123 app yet. Also,
+ increasing the default preframes count to 13, based on
+ observation of another Queens$ Perhaps I need to make the test
+ check _every_ sample position... anyhow: Think about the best
+ default value for the 1.8.0 realease! 13 is quite big, where 3
+ may be fine for th$ Slow machines would prefer 1 or 2, I guess.
+ Of course mpg123 needs a command line parameter, too.
+
+2009-04-27 23:25 thor
+
+ * trunk/autogen.sh: Bye, bye libltdl part 2: autogen.sh
+ * trunk/configure.ac, trunk/libltdl: Bye, bye, libtldl. Really,
+ get it installed in your system or forget about it. It is mostly
+ harmful to have the libltdl as a copy in mpg123. We seem to get
+ rpms with libltdl in it where there is a libtool rpm for that...
+ needless nuisance. Get your libltdl and then mpg123 -- it's Free!
+
+2009-04-27 07:01 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/frame.c: Increasing
+ IGNORESHIFT to stay sample-accurate on seeks also for some more
+ tricky layer 3 files. I am still not sure what the
+ theoretical/practical maximum number of intermangled (via bit
+ reservoir) frames is.
+
+2009-04-27 06:55 thor
+
+ * trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in: Documenting the fallacy of
+ MPG123_UPSPEED and friends together with sample-accurate seeking.
+
+2009-04-27 06:53 thor
+
+ * trunk/configure.ac: increase lib version for last fix
+ * trunk/src/Makefile.am, trunk/src/tests,
+ trunk/src/tests/seek_accuracy.c: Now properly working with seek
+ accuracy: There is a test!
+
+2009-04-27 05:43 thor
+
+ * trunk/src/libmpg123/libmpg123.c: Another thing broke with the
+ doublespeed fix: minimal-glitch seeking! Fixing that regression
+ from 1.6.x series. Now it should be as good/bad as before...
+
+2009-04-22 19:48 patr3ck
+
+ * trunk/src/libmpg123/parse.c: Discard bitreservoir of previous
+ frames if a resync is needed
+
+2009-04-20 12:43 taihei
+
+ * trunk/src/libmpg123/synth_stereo_x86_64_s32.S,
+ trunk/src/libmpg123/synth_x86_64_s32.S: a bit more optimum way
+ for the previous commit
+
+2009-04-20 11:37 taihei
+
+ * trunk/src/libmpg123/synth_altivec.c,
+ trunk/src/libmpg123/synth_stereo_x86_64_s32.S,
+ trunk/src/libmpg123/synth_x86_64_s32.S: Fixed optimized s32
+ synth functions to detect and treat clipped samples more
+ accurately; positive overflow should be rounded to 2147483647
+
+2009-04-18 16:20 taihei
+
+ * trunk/configure.ac, trunk/src/audio.c,
+ trunk/src/libmpg123/Makefile.am, trunk/src/libmpg123/decode.h,
+ trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/synth_altivec.c,
+ trunk/src/libmpg123/synth_s32.c,
+ trunk/src/libmpg123/synth_stereo_x86_64_s32.S,
+ trunk/src/libmpg123/synth_x86_64_s32.S, trunk/src/wav.c: - Added
+ x86-64 & AltiVec optimizations for s32 output - Added support
+ for s32 output in wav writer module - Cleaned up AltiVec synth
+ functions
+
+2009-04-18 08:09 taihei
+
+ * trunk/src/output/coreaudio.c: updated coreaudio module to
+ support float and s32 output
+
+2009-04-17 17:22 taihei
+
+ * trunk/src/libmpg123/synth_stereo_x86_64.S: fixed an issue in
+ clip sample counting
+
+2009-04-17 06:36 taihei
+
+ * trunk/src/libmpg123/synth_altivec.c: Also fixed an alignment
+ issue in altivec stereo synths
+
+2009-04-16 18:35 taihei
+
+ * trunk/src/libmpg123/synth_stereo_sse_float.S,
+ trunk/src/libmpg123/synth_stereo_x86_64.S,
+ trunk/src/libmpg123/synth_stereo_x86_64_float.S: fixed stereo
+ synth functions to assume unaligned output buffers; a bit
+ slower, but safe
+
+2009-04-16 09:40 patr3ck
+
+ * trunk/ports/MSVC++/2008/feedseek/feedseek.vcproj,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/mpg123.sln,
+ trunk/ports/MSVC++/2008/mpglib/mpglib.vcproj,
+ trunk/ports/MSVC++/2008/scan/scan.vcproj: Update the MSVC++ SSE
+ build to include the new 32 bit float optimizations, this is
+ only working in the debug build at the moment Add new
+ Debug_SSE_Dll build Remove the invalid "Debug Asm" build that
+ should not be part of the project files Add debug symbols to the
+ release builds where it was missing
+
+2009-04-15 15:08 taihei
+
+ * trunk/configure.ac, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/decode.h, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/synth_real.c,
+ trunk/src/libmpg123/synth_stereo_sse_float.S,
+ trunk/src/libmpg123/synth_stereo_x86_64.S,
+ trunk/src/libmpg123/synth_stereo_x86_64_float.S,
+ trunk/src/libmpg123/synth_x86_64.S,
+ trunk/src/libmpg123/synth_x86_64_float.S: Added stereo version
+ of SSE float synth
+
+2009-04-15 12:08 taihei
+
+ * trunk/configure.ac, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/dct64_sse_float.S,
+ trunk/src/libmpg123/dct64_x86_64_float.S,
+ trunk/src/libmpg123/decode.h, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/synth_real.c,
+ trunk/src/libmpg123/synth_sse_float.S,
+ trunk/src/libmpg123/tabinit.c: - Added 32-bit version of SSE
+ optimized synth for float output - Optimized x86-64 float dct64
+ a bit
+
+2009-04-14 11:04 taihei
+
+ * trunk/src/libmpg123/synth_stereo_x86_64.S,
+ trunk/src/libmpg123/synth_stereo_x86_64_float.S,
+ trunk/src/libmpg123/synth_x86_64.S,
+ trunk/src/libmpg123/synth_x86_64_float.S: optimized x86-64 synth
+ a bit
+
+2009-04-14 08:38 taihei
+
+ * trunk/src/libmpg123/decode.h, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/synth_altivec.c: added stereo optimized
+ synth for altvec
+
+2009-04-13 20:28 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/optimize.c: A single
+ comma, its absence causing trouble for standalone 3DNowExt build.
+
+2009-04-13 00:45 thor
+
+ * trunk/configure.ac: Another merge from Taihei's branch: MacOS
+ build fixes (configure).
+
+2009-04-13 00:37 thor
+
+ * trunk/INSTALL: note about incomplete configure (wrt minimal
+ builds with optimizations)
+
+2009-04-13 00:30 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/decode.h, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/synth.c, trunk/src/libmpg123/synth_real.c,
+ trunk/src/libmpg123/synth_stereo_x86_64.S,
+ trunk/src/libmpg123/synth_stereo_x86_64_float.S: Merge from
+ Taihei's branch: The x86-64 stereo synths. The huge benefit is
+ to be observed for the float stereo synth, but it is also
+ noticable for the 16bit one. In any case: We are _fast_!
+
+2009-04-13 00:04 thor
+
+ * trunk/configure.ac: give this a unique library version
+
+2009-04-13 00:03 thor
+
+ * trunk/src/libmpg123/dct64_altivec.c,
+ trunk/src/libmpg123/decode.h, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/synth_altivec.c,
+ trunk/src/libmpg123/synth_x86_64_float.S,
+ trunk/src/libmpg123/tabinit.c: Merges from Taihei's branch: -
+ modified decwin initialization code for float SSE and AltiVec -
+ improved float SSE synth - improved AltiVec synth and dct64,
+ including a new float output function This includes adaptions to
+ the improved synth selection structure, so in effect the AltiVec
+ code is untested currently.
+
+2009-04-12 23:31 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/decode.h,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/layer1.c,
+ trunk/src/libmpg123/layer2.c, trunk/src/libmpg123/layer3.c,
+ trunk/src/libmpg123/optimize.c, trunk/src/libmpg123/synth.c,
+ trunk/src/libmpg123/synths.h: prepare for Taihei's stereo
+ optimizations ... using one generic stereo wrapper instead of
+ lots of specific ones.
+
+2009-04-12 22:36 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/config.h, trunk/src/libmpg123/dct64_sse.S:
+ MSVC SSE build Move REAL_IS_FLOAT from project defines into
+ config.h
+
+2009-04-12 22:00 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/optimize.c: fix / clean
+ up active decoder detection This helps the sse-only x86 build to
+ work with float output...
+
+2009-04-12 21:41 thor
+
+ * trunk/configure.ac: yeah, there have been changes to libmpg123
+ * trunk/Makefile.am: do not include test/ stuff anymore
+
+2009-04-12 20:44 thor
+
+ * test, test/compliance.sh, test/rmsdouble.c, trunk/test: moving
+ the test stuff to its own place
+
+2009-04-12 20:41 thor
+
+ * trunk/src/libmpg123/Makefile.am, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/optimize.c, trunk/src/libmpg123/optimize.h,
+ trunk/src/libmpg123/synth.c, trunk/src/libmpg123/synth_8bit.c,
+ trunk/src/libmpg123/synth_8bit.h,
+ trunk/src/libmpg123/synth_real.c,
+ trunk/src/libmpg123/synth_s32.c, trunk/src/libmpg123/synths.h:
+ Restructure the synth function choosing; removing a good deal of
+ ugly code. After realizing that the synth function calls are via
+ the pointer in fr->synth (usually), the opt_synth_ macros have
+ been eliminated. The frame struct now hosts a struct with arrays
+ of all synth functions that are available for the chosen decoder
+ -- instead of lots if individual pointer variables. That way,
+ the code in optimize.c could be simplified. Also, the changes
+ for stereo synths are hopefully small, and even the i486 code
+ should then be able to be integrated in a x86 build; though one
+ can debate on how much sense this makes.
+
+2009-04-12 20:04 thor
+
+ * trunk/test/compliance.sh, trunk/test/rmsdouble.c: update
+ rmsdouble and include script for instant ISO MPEG compliance
+ testing
+
+2009-04-12 19:46 thor
+
+ * trunk/src/libmpg123/dct64_3dnowext.S,
+ trunk/src/libmpg123/dct64_mmx.S, trunk/src/libmpg123/mangle.h,
+ trunk/src/libmpg123/synth_i586_dither.S: Remove occurences of
+ $ASM_NAME, use a fixed ASM_VALUE instead.
+
+2009-04-12 19:12 thor
+
+ * trunk/src/libmpg123/tabinit.c: explicit debug message for MMX
+ tables
+
+2009-04-12 19:11 thor
+
+ * trunk/src/playlist.c: fix breakage with --loop introduced with
+ my changes to random mode
+
+2009-04-09 07:44 thor
+
+ * trunk/src/libmpg123/synth_sse3d.h: make proper comments out of
+ the APP markers, msvc did not like it
+
+2009-04-09 07:29 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: Use project
+ instead of solution relative path's to generate and compile asm
+ files.
+
+2009-04-09 00:06 patr3ck
+
+ * trunk/ports/MSVC++/examples/feedseek.c: Undo the last commit for
+ feedseek.c, it should have not been included
+
+2009-04-08 23:51 patr3ck
+
+ * trunk/windows-builds.sh: Add missing in, spotted by jon_y
+
+2009-04-08 23:27 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/examples/feedseek.c, trunk/ports/README:
+ First asm build for MSVC++ using the yasm compiler. Thanks go to
+ jon_y for the idea how to integrate this build into MSVC++.
+
+2009-04-08 23:09 patr3ck
+
+ * trunk/src/libmpg123/dct64_mmx.S: Replace all fistp/fist with
+ fistps/fists to make yasm happy, thanks go to Taihei Monma for
+ the solution suggestion
+
+2009-04-08 20:07 patr3ck
+
+ * trunk/src/output/win32.c: Don't swallow output buffers at the
+ end of playing an audio. One buffer is still not played.
+
+2009-04-08 15:19 patr3ck
+
+ * trunk/src/libmpg123/mangle.h: Add assembler-preprocessor support
+ for MSVC (courtesy of JonY).
+
+2009-04-07 10:16 thor
+
+ * trunk/src/playlist.c, trunk/src/playlist.h: Increasing perceived
+ randomness of random play by decreasing mathematical randomness
+ (prevent repetition of tracks within half of total playlist
+ size).
+
+2009-04-06 22:28 thor
+
+ * trunk/windows-builds.sh: untested attempt to merge in the x86-64
+ cross compilation script from JonY
+
+2009-04-05 17:45 thor
+
+ * trunk/src/libmpg123/dct64_x86_64_float.S,
+ trunk/src/libmpg123/synth_x86_64_float.S: add the missing
+ assembler files for floating point x86-64 SSE
+
+2009-04-05 17:32 thor
+
+ * trunk/src/libmpg123/id3.c: again, printf format for the unsigned
+ encoding
+
+2009-04-05 17:31 thor
+
+ * trunk/src/libmpg123/id3.c: proper format for unsigned encoding
+ value
+
+2009-04-05 16:41 thor
+
+ * trunk/src/libmpg123/optimize.c: Oh, yeah... let the
+ floating-point SSE use the floating-point tables! The float
+ output with x86-64 optimization works fine now, also passes MPEG
+ 1 layer 3 ISO conformity. A note on that: Indeed, x86-64 looks a
+ bit worse here than x86 (also the generic code) because of the
+ switch from x87's internal 80 bits.
+
+2009-04-05 16:32 thor
+
+ * trunk/test/s16_double.c: faster s16_double too
+
+2009-04-05 15:38 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/decode.h, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/optimize.h,
+ trunk/src/libmpg123/synth_real.c: Add x86_64 decoder with float
+ output form Taihei. It is about 10% faster than generic, and not
+ net properly working (high-pitch noise in output).
+
+2009-04-05 15:37 thor
+
+ * trunk/test/f32_double.c, trunk/test/rmsdouble.c: Speed up the
+ RMS and float conversion stuff.
+
+2009-04-05 14:04 thor
+
+ * trunk/src/libmpg123/synth.c: code formatting
+
+2009-04-05 12:25 thor
+
+ * trunk/src/libmpg123/id3.c: fix potential invalid buffer access
+ with negative encoding values
+
+2009-04-05 11:02 thor
+
+ * trunk/configure.ac: increase lib patchlevel
+
+2009-04-05 11:01 thor
+
+ * trunk/src/libmpg123/libmpg123.c: prevent multiple needless
+ mpg123_init() work
+ * trunk/src/libmpg123/frame.c: Fix weird performance issue by
+ increasing decwin alignment to 64 bytes, matching (effective)
+ cacheline size of current x86 CPUs. Have to wonder if a) one
+ should make this (compile time, run time?) tunable b) system
+ malloc() should actually take care of this.
+
+2009-04-04 07:37 thor
+
+ * trunk/src/libmpg123/id3.c: catch l==0 earlier in the UTF16
+ conversion; this was a possible crash/overflow
+
+2009-04-03 09:20 thor
+
+ * trunk/src/control_generic.c: the same RVA fix for generic control
+
+2009-04-03 09:12 thor
+
+ * trunk/src/term.c: fix the silence on RVA change, stupid bug
+
+2009-04-03 08:37 thor
+
+ * trunk/NEWS: note x86-64
+
+2009-04-03 08:30 thor
+
+ * trunk/configure.ac: fix help message to mention correct x86-64
+ decoder choice
+
+2009-04-03 07:11 thor
+
+ * trunk/src/libmpg123/synth_x86_64.S: a little fix from Taihei
+
+2009-04-02 22:31 thor
+
+ * trunk/AUTHORS, trunk/configure.ac,
+ trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/dct64_x86_64.S,
+ trunk/src/libmpg123/decode.h, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/optimize.h, trunk/src/libmpg123/synth.c,
+ trunk/src/libmpg123/synth_x86_64.S,
+ trunk/src/libmpg123/tabinit.c: add shiny new x86-64 SSE
+ optimizations by Taihai Monma
+
+2009-04-02 20:18 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/id3.c,
+ trunk/src/libmpg123/layer1.c, trunk/src/libmpg123/layer2.c,
+ trunk/src/libmpg123/layer3.c, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/parse.c, trunk/src/libmpg123/readers.c: by
+ Patrick: add various casts and type corrections to make
+ compilers feel more comfy
+
+2009-03-29 23:10 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: Add debug
+ symbols
+
+2009-03-29 23:05 patr3ck
+
+ * trunk/ports/MSVC++/2008/mpglib/mpglib.vcproj: Disable warning
+ 4996 (deprecated open/close etc)
+
+2009-03-29 10:55 thor
+
+ * trunk/NEWS, trunk/configure.ac: update version for next target,
+ lib changed a bit again, too
+
+2009-03-29 10:53 thor
+
+ * trunk/src/module.c: Optional environment variable MPG123_MODDIR
+ to replace the compiled-in PKGLIBDIR for finding modules...
+ still, a module build does not work from the source directory
+ and that sucks.
+
+2009-03-29 10:26 patr3ck
+
+ * trunk/src/libmpg123/synth_ntom.h: Fix a few C4018:
+ signed/unsigned mismatch warnings on MSVC
+
+2009-03-27 07:10 thor
+
+ * trunk/src/output/arts.c: Fix arts custom data type... use a
+ proper storage place of the correct type and size instead of
+ ao->fn. Also using arts_free now, what does not prevent the
+ artsc lib from leaking memory. Well, arts is dead anyway.
+
+2009-03-27 07:08 thor
+
+ * trunk/src/audio.c: fix output types for WAV
+
+2009-03-25 23:34 patr3ck
+
+ * trunk/src/libmpg123/sample.h: Fix the C4146 compiler warnings as
+ suggested by Thomas
+
+2009-03-25 18:09 thor
+
+ * trunk/src/libmpg123/dnoise.sh: fix dither noise script
+ portability (Solaris)
+
+2009-03-23 11:51 patr3ck
+
+ * trunk/Makefile.am: Include the new feedseek.c to source
+ distributions
+
+2009-03-23 11:39 patr3ck
+
+ * trunk/ports/MSVC++/2005/feedseek/feedseek.vcproj,
+ trunk/ports/MSVC++/2008/feedseek/feedseek.vcproj,
+ trunk/ports/MSVC++/examples/feedseek.c: Add unicode feedseek to
+ MSVC++ 2005/ 2008 projects. Patch contributed by JonY
+ (10walls@gmail.com).
+
+2009-03-23 11:31 patr3ck
+
+ * trunk/src/libmpg123/mpg123lib_intern.h: Add explicit cast in the
+ DOUBLE_TO_REAL and REAL_TO_SHORT macros as sugested by Thomas.
+ This fixes around 30 warnings on MSVC.
+
+2009-03-23 11:08 thor
+
+ * trunk/src/output/aix.c, trunk/src/output/jack.c,
+ trunk/src/output/sun.c: remove usage of the mpg123 param struct
+ in modules... we need a proper interface for that
+
+2009-03-23 11:04 thor
+
+ * trunk/src/libmpg123/sample.h: remove unneeded sample macro
+
+2009-03-22 23:41 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/decode.h,
+ trunk/src/libmpg123/optimize.c: hotfix for build without 8bit
+
+2009-03-22 22:44 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/layer3.c: less verbose
+
+2009-03-22 08:55 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/libmpg123.c: Make the combination of
+ doublespeed and halfspeed work as with 0.59r: -d 2 -h 2 is a
+ noop again. The other variant where that is every 2nd frame
+ repeated is also a valid interpretation, of course.
+
+2009-03-21 15:40 thor
+
+ * trunk/src/output/Makefile.am, trunk/src/output/coreaudio.c:
+ include sfifo in coreaudio like for the other modules that need
+ it to reduce link issues, extra flags not needed (hopefully)
+
+2009-03-21 14:50 thor
+
+ * trunk/src/libmpg123/optimize.c, trunk/src/output/Makefile.am:
+ MacOS fixes by Taihai Monma
+
+2009-03-21 11:20 thor
+
+ * trunk/NEWS, trunk/NEWS.libmpg123: news update
+
+2009-03-21 11:13 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/libmpg123.c:
+ Fix the decoding bug that surfaced with the doublespeed action
+ -- a set_pointer(512) has been removed where it was needed when
+ skipping frames.
+
+2009-03-11 10:41 thor
+
+ * trunk/NEWS: added NEWS about sndio
+
+2009-03-11 10:12 thor
+
+ * trunk/configure.ac: giving the lib a new verison, marking the
+ first libmpg123 with actually working MPG123_UPSPEED
+
+2009-03-11 07:51 thor
+
+ * trunk/NEWS, trunk/src/libmpg123/libmpg123.c: fix doublespeed
+ paramter, was a no-op in all 1.x mpg123 so far
+
+2009-03-10 22:27 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/mpg123.sln: Added dll builds Removed
+ i486 builds Got rid of the many different output directories.
+ Build results can now be found in a Debug/Release directory
+
+2009-03-10 22:05 thor
+
+ * trunk/windows-builds.sh: .dll, not .so
+
+2009-03-09 01:01 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/mpg123.c: Prevent error message for setting frame
+ index when frame index is disabled. Now you only get the error
+ when actually trying to set the index size to something non-zero.
+
+2009-03-09 00:48 thor
+
+ * trunk/src/libmpg123/decode.h,
+ trunk/src/libmpg123/mpg123lib_intern.h: fixed point decoder
+ builds again... OUT_REAL and OUT_S32 are always needed
+
+2009-03-09 00:47 thor
+
+ * trunk/windows-builds.sh: trying to get the needed libltdl.dll
+ into the win32 binpacks
+
+2009-03-05 09:50 thor
+
+ * trunk/configure.ac: repair the modules switch, deleted too much
+ earlier
+
+2009-03-05 08:22 thor
+
+ * trunk/configure.ac: do not disable modules on windows anymore
+
+2009-03-05 08:20 thor
+
+ * trunk/Makefile.am: include the msvc example stuff in distribution
+
+2009-03-03 22:26 patr3ck
+
+ * trunk/doc/examples/scan.c,
+ trunk/ports/MSVC++/2008/scan/scan.vcproj,
+ trunk/ports/MSVC++/examples, trunk/ports/MSVC++/examples/scan.c:
+ Split scan.c into a general and a MSVC specific one to get rid
+ of #ifdefs
+
+2009-03-03 13:14 thor
+
+ * trunk/NEWS: document sizes of libmpg123 with reduced features
+
+2009-03-03 12:57 thor
+
+ * trunk/NEWS, trunk/TODO: updated NEWS and TODO for immanent 1.7.0
+
+2009-03-03 12:53 thor
+
+ * trunk/configure.ac: Added --disable-messages.
+
+2009-03-03 12:40 thor
+
+ * trunk/configure.ac: patchlevel
+
+2009-03-03 12:33 thor
+
+ * trunk/src/libmpg123/format.c, trunk/src/module.c: (c) 2009
+
+2009-03-03 12:32 thor
+
+ * trunk/windows-builds.sh: Added plugin handling to the windows
+ build script. Needs testing.
+
+2009-03-03 11:57 thor
+
+ * trunk/NEWS, trunk/src/module.c: More flexible search for plugin
+ dirs, now working on a list (added "plugins" relative to binary).
+
+2009-03-02 14:11 patr3ck
+
+ * trunk/doc/examples/scan.c,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/mpg123.sln,
+ trunk/ports/MSVC++/2008/scan,
+ trunk/ports/MSVC++/2008/scan/scan.vcproj,
+ trunk/ports/MSVC++/mpg123.h, trunk/ports/MSVC++/msvc.c: Handles
+ which are opened by _topen must be used with _read and _close
+ functions Added a MSVC++ scan project for the scan.c example
+
+2009-03-02 13:57 thor
+
+ * trunk/src/module.c: more module verbosity on error
+
+2009-02-19 11:36 thor
+
+ * trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/dct36_3dnow.S,
+ trunk/src/libmpg123/dct36_3dnow.sx,
+ trunk/src/libmpg123/dct36_3dnowext.S,
+ trunk/src/libmpg123/dct36_3dnowext.sx,
+ trunk/src/libmpg123/dct64_3dnow.S,
+ trunk/src/libmpg123/dct64_3dnow.sx,
+ trunk/src/libmpg123/dct64_3dnowext.S,
+ trunk/src/libmpg123/dct64_3dnowext.sx,
+ trunk/src/libmpg123/dct64_mmx.S,
+ trunk/src/libmpg123/dct64_mmx.sx,
+ trunk/src/libmpg123/dct64_sse.S,
+ trunk/src/libmpg123/dct64_sse.sx,
+ trunk/src/libmpg123/equalizer_3dnow.S,
+ trunk/src/libmpg123/equalizer_3dnow.sx,
+ trunk/src/libmpg123/getcpuflags.S,
+ trunk/src/libmpg123/getcpuflags.sx,
+ trunk/src/libmpg123/synth_3dnow.S,
+ trunk/src/libmpg123/synth_3dnow.sx,
+ trunk/src/libmpg123/synth_3dnowext.S,
+ trunk/src/libmpg123/synth_3dnowext.sx,
+ trunk/src/libmpg123/synth_i586.S,
+ trunk/src/libmpg123/synth_i586.sx,
+ trunk/src/libmpg123/synth_i586_dither.S,
+ trunk/src/libmpg123/synth_i586_dither.sx,
+ trunk/src/libmpg123/synth_mmx.S,
+ trunk/src/libmpg123/synth_mmx.sx,
+ trunk/src/libmpg123/synth_sse.S,
+ trunk/src/libmpg123/synth_sse.sx,
+ trunk/src/libmpg123/tabinit_mmx.S,
+ trunk/src/libmpg123/tabinit_mmx.sx: Revert the rename of .S to
+ .sx. This .sx ending only works with current gcc, older gccs
+ choke badly on the files, thinking there's some linker fodder.
+ While directly calling cpp on these files works fine,
+ libtool/automake insist on calling gcc -E, which does _not_
+ work. What's the portable way to handle this? I am sick of this
+ mess. Users of MinGW please use csmake, that hoepfully detects
+ the big .S . We do not support assembler optimizations on
+ systems that cannot handle .S (and the possible temporary file
+ with .s).
+
+2009-02-18 15:07 thor
+
+ * trunk/autogen.sh, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/dct36_3dnow.S,
+ trunk/src/libmpg123/dct36_3dnow.sx,
+ trunk/src/libmpg123/dct36_3dnowext.S,
+ trunk/src/libmpg123/dct36_3dnowext.sx,
+ trunk/src/libmpg123/dct64_3dnow.S,
+ trunk/src/libmpg123/dct64_3dnow.sx,
+ trunk/src/libmpg123/dct64_3dnowext.S,
+ trunk/src/libmpg123/dct64_3dnowext.sx,
+ trunk/src/libmpg123/dct64_mmx.S,
+ trunk/src/libmpg123/dct64_mmx.sx,
+ trunk/src/libmpg123/dct64_sse.S,
+ trunk/src/libmpg123/dct64_sse.sx,
+ trunk/src/libmpg123/equalizer_3dnow.S,
+ trunk/src/libmpg123/equalizer_3dnow.sx,
+ trunk/src/libmpg123/getcpuflags.S,
+ trunk/src/libmpg123/getcpuflags.sx,
+ trunk/src/libmpg123/synth_3dnow.S,
+ trunk/src/libmpg123/synth_3dnow.sx,
+ trunk/src/libmpg123/synth_3dnowext.S,
+ trunk/src/libmpg123/synth_3dnowext.sx,
+ trunk/src/libmpg123/synth_i586.S,
+ trunk/src/libmpg123/synth_i586.sx,
+ trunk/src/libmpg123/synth_i586_dither.S,
+ trunk/src/libmpg123/synth_i586_dither.sx,
+ trunk/src/libmpg123/synth_mmx.S,
+ trunk/src/libmpg123/synth_mmx.sx,
+ trunk/src/libmpg123/synth_sse.S,
+ trunk/src/libmpg123/synth_sse.sx,
+ trunk/src/libmpg123/tabinit_mmx.S,
+ trunk/src/libmpg123/tabinit_mmx.sx: Rename the .S files to .sx,
+ preventing trouble on non-case-sensitive platforms. Now we also
+ don't need the explicit .S preprocessing rule anymore and thus
+ automake-1.10 is no problem.
+
+2009-02-17 10:10 thor
+
+ * trunk/configure.ac: try to autodetect -lnsl and -lsocket (for
+ solaris, gethostbyname is() in one, socket() in the other)
+
+2009-02-15 10:00 thor
+
+ * trunk/NEWS, trunk/configure.ac, trunk/src/output/Makefile.am:
+ Supposedly, modules work out of the box under MinGW when one
+ includes the -no-undefined flag...
+
+2009-02-15 00:55 thor
+
+ * trunk/src/buffer.c, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/libmpg123.c, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/parse.c, trunk/src/mpg123.c,
+ trunk/src/mpg123app.h, trunk/src/output/portaudio.c,
+ trunk/src/output/pulse.c, trunk/src/output/sdl.c: update some
+ years to 2009
+
+2009-02-15 00:53 thor
+
+ * trunk/NEWS, trunk/man1/mpg123.1, trunk/src/buffer.c,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h: add that preload
+ tuning parameter
+
+2009-02-14 19:38 thor
+
+ * trunk/src/libmpg123/Makefile.am: re-enable RPATH builds,
+ libmpg123.sym is a local file now, being generated
+
+2009-02-14 19:27 thor
+
+ * trunk/configure.ac: add win32 to default audio help, sort
+ alphabetically
+
+2009-02-14 19:09 thor
+
+ * trunk/configure.ac: try to settle the socket library issue
+ (note: one could make it conditional on ipv6 usage)
+
+2009-02-14 18:53 thor
+
+ * trunk/configure.ac: Will not disable posix/callback input so
+ soon... not that much gain anyway
+ * trunk/src/output/sdl.c: include windows.h for Sleep()
+
+2009-02-14 18:44 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/readers.c: Make the
+ feeder/buffer code disable-able.
+
+2009-02-14 18:42 thor
+
+ * trunk/src/output/win32.c: Try to fix the HWAVEOUT mess... it's
+ no integer!
+
+2009-02-14 18:03 thor
+
+ * trunk/configure.ac: Only enable the ABI alignment stuff on i386
+ arches... (together with the change in mpg123lib_intern.h from
+ last commit)
+
+2009-02-14 18:02 thor
+
+ * trunk/src/audio.c, trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/optimize.c: C90 fixes
+
+2009-02-14 17:50 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/readers.c: prevent
+ timeout reader setup with user-replaced read function
+
+2009-02-14 17:39 thor
+
+ * trunk/configure.ac: yeah, bugfix happened, increment version
+ * trunk/src/libmpg123/readers.c: Let the feed reader error out on
+ open when ICY interval is set. It is not that trivial to support
+ this and handle MPG123_NEED_MORE properly. I advise users to
+ employ mpg123_replace_reader when custom I/O and ICY is needed.
+ If that's not possible... well, gotta filter ICY yourself:-/
+
+2009-02-14 17:19 thor
+
+ * trunk/src/libmpg123/layer3.c, trunk/src/libmpg123/libmpg123.c: a
+ bit less default verbosity
+
+2009-02-14 17:14 thor
+
+ * trunk/src/Makefile.am, trunk/src/output/portaudio.c,
+ trunk/src/output/sdl.c, trunk/src/sfifo.c, trunk/src/sfifo.h:
+ MAke the sfifo code statically local to the few output modules
+ that need it.
+
+2009-02-14 16:43 thor
+
+ * trunk/src/output/alsa.c, trunk/src/output/os2.c,
+ trunk/src/output/pulse.c, trunk/src/output/sgi.c,
+ trunk/src/output/win32.c: internal module functions are static,
+ marking leftovers
+
+2009-02-14 10:38 thor
+
+ * trunk/ports/MSVC++/2005/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: attempt to
+ update the project files for added sample.h
+
+2009-02-14 10:34 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h: Reuse
+ rawdecwin if possible (realloc-like, like rawbuffs).
+
+2009-02-14 10:13 thor
+
+ * trunk/src/libmpg123/libmpg123.c, trunk/src/libmpg123/optimize.c:
+ Make sure that frame_buffers is only called in the synth
+ function setup, where it's followed by make_decode_tables. Also,
+ changed the error of frame_buffers failing in
+ set_synth_functions to indicate buffer (memory) problem.
+
+2009-02-14 10:06 thor
+
+ * trunk/src/libmpg123/optimize.c: Most probably pinned bug
+ 2472726. I finally have been able to reproduce it with the help
+ of valgrind, which changed the memory management. After a
+ resync, the frame buffers get (re)allocated, in case of the
+ decwin, that's a free() of the old and immediately malloc() of
+ the new. With normal glibc memory management that resulted in
+ the same block of memory than before being assigned (when the
+ size did not change). Thus, the failure to call
+ make_decode_tables on the new memory ws hidden because the old
+ values were still there. So, the easy fix is to call
+ make_decode_tables everytime after changing the frame buffers.
+ Waiting for confirmation from the Windows folks...
+
+2009-02-14 10:00 thor
+
+ * trunk/src/libmpg123/frame.c: error protection got not initialized
+
+2009-02-14 09:59 thor
+
+ * trunk/src/libmpg123/libmpg123.c: debug message format fixed
+
+2009-02-13 15:41 thor
+
+ * trunk/src/libmpg123/Makefile.am: also distribute the sample.h...
+
+2009-02-13 15:40 thor
+
+ * trunk/src/libmpg123/decode.h, trunk/src/libmpg123/sample.h,
+ trunk/src/libmpg123/synth.c, trunk/src/libmpg123/synth_8bit.c,
+ trunk/src/libmpg123/synth_altivec.c,
+ trunk/src/libmpg123/synth_real.c,
+ trunk/src/libmpg123/synth_s32.c: Extract the WRITE_SAMPLE macros
+ out of decode.h into sample.h, only the synth functions need
+ these.
+
+2009-01-10 18:07 thor
+
+ * trunk/src/output/jack.c: Add named connections to JACK output
+ (the -a parameter can now take a comma-separated list of output
+ ports). When you choose only one port, stereo output gets mixed
+ down into this one by jackd.
+
+2009-01-10 17:21 thor
+
+ * trunk/src/mpg123.c: That hint about resampling is not true
+ anymore.
+
+2009-01-10 16:38 thor
+
+ * trunk/scripts/debugdef.pl, trunk/src/libmpg123/debug.h: Add new
+ preprocessor flags to disable error / warning messages. That can
+ save around 9K on libmpg123.
+
+2009-01-10 16:37 thor
+
+ * trunk/NEWS: also the news entry for the ntom fix
+
+2009-01-10 16:36 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c: Include the
+ fix (from 1.6.4) for ntom + seeking + frame fillup, and ntom
+ consistency with seeking as side effect.
+
+2009-01-10 14:17 thor
+
+ * trunk/src/libmpg123/layer3.c: Fix resampling modes for i486 (the
+ special optimization only applies to 1to1 synth).
+
+2009-01-10 10:45 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/synth_i486.c: fix i486 decoder with the bo
+ business
+
+2009-01-10 10:18 thor
+
+ * trunk/src/libmpg123/synth_altivec.c: fix altivec's fr->bo usage
+ (theoretically, need someone with an apple box to test)
+
+2009-01-09 14:30 patr3ck
+
+ * trunk/ports/MSVC++/2005/feedseek,
+ trunk/ports/MSVC++/2005/feedseek/feedseek.vcproj,
+ trunk/ports/MSVC++/2005/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2005/mpg123.sln,
+ trunk/ports/MSVC++/2005/mpglib,
+ trunk/ports/MSVC++/2005/mpglib/mpglib.vcproj,
+ trunk/ports/MSVC++/2008/feedseek/feedseek.vcproj,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/mpg123.sln: VS2005 build environment
+ catchup including examples and release optimization settings.
+ Additionally fix a few VS2008 compiler settings along the way.
+
+2008-12-29 22:36 thor
+
+ * trunk/NEWS, trunk/NEWS.libmpg123, trunk/configure.ac,
+ trunk/src/libmpg123/Makefile.am, trunk/src/libmpg123/decode.h,
+ trunk/src/libmpg123/format.c, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/icy.h,
+ trunk/src/libmpg123/icy2utf8.h, trunk/src/libmpg123/id3.c,
+ trunk/src/libmpg123/id3.h, trunk/src/libmpg123/layer2.c,
+ trunk/src/libmpg123/layer3.c, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/optimize.h, trunk/src/libmpg123/parse.c,
+ trunk/src/libmpg123/readers.c, trunk/src/libmpg123/synth.c,
+ trunk/src/libmpg123/synth_8bit.c,
+ trunk/src/libmpg123/synth_real.c,
+ trunk/src/libmpg123/synth_s32.c, trunk/src/libmpg123/tabinit.c:
+ Massive commit. That's holiday season for you. This one is all
+ about reducing libmpg123 size via --disable switches to
+ configure. id3v2 handling, icy, output formats, MPEG layers ...
+ have fun!
+
+2008-12-29 22:32 thor
+
+ * trunk/src/legacy_module.c: typos
+
+2008-12-20 16:35 thor
+
+ * trunk: ignore changes in ChangeLog
+
+2008-12-20 16:34 thor
+
+ * trunk/NEWS: add notes for 1.6.3
+
+2008-12-20 16:33 thor
+
+ * trunk/configure.ac: again... a fix for configure default: really
+ enable fifo when autodetected
+
+2008-12-19 19:19 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/mpg123.h: Add int32_t and uint32_t
+ definitions to MSVC++ mpg123.h
+
+2008-12-15 10:00 thor
+
+ * trunk/src/metaprint.c: Actually use the output stream argument
+ of print_icy (no user-visible change, though).
+
+2008-12-14 19:12 thor
+
+ * trunk: ignore
+
+2008-12-14 19:07 thor
+
+ * trunk/src/libmpg123: ignore
+
+2008-12-14 19:05 thor
+
+ * trunk/doc/examples: ignore
+
+2008-12-14 19:04 thor
+
+ * trunk/test/README: mention forkfaint
+
+2008-12-14 19:02 thor
+
+ * trunk/test/hex24_s32.c: hex 24bit ASCII -> native signed 32bit
+ integer
+
+2008-12-14 19:01 thor
+
+ * trunk/test/README: Notes about test/
+
+2008-12-14 18:23 thor
+
+ * trunk/AUTHORS, trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/output/Makefile.am, trunk/src/output/sndio.c: Adding
+ sndio output, contributed by Christian Weisgerber. Not tested by
+ self, lacking an OpenBSD install.
+
+2008-12-12 14:46 thor
+
+ * trunk/test/s16_double.c: note about s16 scaling
+ * trunk/test/rmsdouble.c: Interpret the limits as already being
+ relative to full scale. Makes sense.
+
+2008-12-12 14:33 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/mpg123.c: Give
+ proper help for --encoding with list of encodings. Also fixed s8
+ u8 nlen value to 2.
+
+2008-12-12 14:12 thor
+
+ * trunk/configure.ac, trunk/src/audio.c,
+ trunk/src/config.h.legacy, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/decode.h, trunk/src/libmpg123/format.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/optimize.c, trunk/src/libmpg123/optimize.h,
+ trunk/src/libmpg123/synth.c, trunk/src/libmpg123/synth_8bit.c,
+ trunk/src/libmpg123/synth_real.c,
+ trunk/src/libmpg123/synth_s32.c, trunk/src/mpg123.c,
+ trunk/src/mpg123app.h, trunk/src/output/alsa.c: A tale about
+ output. - Signed 32bit integer output (generic/i386). -
+ Postprocessing for unsigned 16 or 32 bit integer. - Fixing 32bit
+ integer encoding flags (sorry... but they didn't do anything
+ before anyway). - Split synth stuff into some files according to
+ output format. Trying to be easier on compilers. - Alsa output
+ supports 32bit and float formats now. - New mpg123 command line
+ parameter to force a specific output encoding (--encoding) ...
+ not yet documented.
+
+2008-12-12 14:07 thor
+
+ * trunk/test/Makefile, trunk/test/s32_double.c: Also add signed
+ 32bit handling.
+
+2008-12-12 13:44 thor
+
+ * trunk/test, trunk/test/Makefile, trunk/test/f32_double.c,
+ trunk/test/hex24_double.c, trunk/test/rms32.c,
+ trunk/test/rmsdouble.c, trunk/test/s16_double.c: Some system
+ work for compliance testing. I can reproduce
+ http://www.underbit.com/resources/mpeg/audio/compliance/ for
+ layer3 and generic decoder, the numbers. Only, that I interpret
+ the compliance restriction differently. Anyhow: When using f32
+ output, mpg123 is clearly compliant. the 16bit truncation is a
+ bit of a question.
+
+2008-12-12 13:42 thor
+
+ * trunk/test/1000Hz/work.sh: updated / corrected lame options
+
+2008-12-10 19:18 thor
+
+ * trunk/src/libmpg123/id3.c, trunk/src/libmpg123/mpg123.h.in:
+ Hacking a variant of the USLT idea from sf.net issue #1883610 .
+ Untested.
+
+2008-12-10 16:48 thor
+
+ * trunk/src/libmpg123/format.c, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/libmpg123.c:
+ Fix sf.net bug #2413608: The new_format flag got lost when you
+ close the track without querying it. Now the output format gets
+ cleared on that occasion so that format newness arises anew on
+ next track.
+
+2008-12-10 00:51 thor
+
+ * trunk/src/term.c: remove unused variable
+ * trunk/src/libmpg123/optimize.c: fix optimize.c, with leftover
+ DEBUG, too
+
+2008-12-09 23:43 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/optimize.c, trunk/src/libmpg123/optimize.h,
+ trunk/src/term.c: - WIP API change: mpg123_current_decoder
+ returns a const char*, not an index - some cleaning up (can I
+ really call it like that?) in optimize.c - fixing up single
+ i586_dither build
+
+2008-12-09 23:04 thor
+
+ * trunk/src/libmpg123/synth_i586_dither.S: Fixing a bug with two
+ faces in i586 dither code: Wrong stack variable access for
+ ditherindex and dithernoise. The latter has been new, the former
+ must have been there from the beginning but harmless. Hm.. but
+ how much of the noise has been used before?
+
+2008-12-09 17:50 thor
+
+ * trunk/src/libmpg123/decode.h, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/optimize.h, trunk/src/libmpg123/synth.c,
+ trunk/src/libmpg123/synth.h: Adding 2to1 and 4to1 dithered synth
+ with generic code. Also used for i586_dither decoder's
+ downsampling.
+
+2008-12-09 11:53 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/decode.h,
+ trunk/src/libmpg123/dnoise.sh, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/optimize.h, trunk/src/libmpg123/synth.c,
+ trunk/src/libmpg123/synth.h,
+ trunk/src/libmpg123/synth_i586_dither.S,
+ trunk/src/libmpg123/synth_ntom.h: More experiment: First steps
+ to prepare outsourcing of the dithernoise, adding a
+ generic_dither decoder offering a portable alternative to
+ synth_1to1_i586_dither.
+
+2008-11-30 14:39 thor
+
+ * trunk/doc/examples/feedseek.c: fix a bit off_t versus size_t
+
+2008-11-30 14:38 thor
+
+ * trunk/doc/examples/Makefile: give it some space Note: that
+ simple makefile won't work with static linking.
+
+2008-11-28 20:24 patr3ck
+
+ * trunk/Makefile.am, trunk/doc/Makefile.am,
+ trunk/doc/examples/Makefile: Add feedseek example to makefile
+ and distribution Add new MSVC solution and project files to
+ distribution
+
+2008-11-28 17:29 patr3ck
+
+ * trunk/ports/MSVC++/2008/mpg123.sln: Add MSVC++ solution file
+ that holds the library and example projects
+
+2008-11-28 17:27 patr3ck
+
+ * trunk/ports/MSVC++/2008/mpglib,
+ trunk/ports/MSVC++/2008/mpglib/mpglib.vcproj: add MSVC++ project
+ file for mpglib example
+ * trunk/doc/examples/feedseek.c, trunk/ports/MSVC++/2008/feedseek,
+ trunk/ports/MSVC++/2008/feedseek/feedseek.vcproj: new
+ programming example fuzzy seeking in feeder mode
+
+2008-11-27 22:58 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: Add optimize
+ flags to the rest of the release builds, all release builds are
+ now tuned for speed
+
+2008-11-27 22:55 patr3ck
+
+ * trunk/doc/examples/mpglib.c: Make it compile under MSVC++
+
+2008-11-25 23:57 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: Enable some
+ compiler optimizations for the i486 release build
+
+2008-11-21 13:25 thor
+
+ * trunk/Makefile.am: add msvc.c to distribution
+
+2008-11-18 00:44 patr3ck
+
+ * trunk/ports/MSVC++/2005/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: add
+ REAL_IS_FLOAT to all builds to make float output with
+ MPG123_ENC_FLOAT_32 working
+
+2008-11-17 20:40 patr3ck
+
+ * trunk/src/libmpg123/libmpg123.c: mpg123_length now returns
+ mpg123_tell if nothing else works
+
+2008-11-12 10:18 thor
+
+ * trunk/Makefile.am, trunk/NEWS: added equalize.dat to the
+ distribution, been missing
+
+2008-11-11 23:08 thor
+
+ * trunk/src/libmpg123/libmpg123.c: not mh here
+
+2008-11-11 23:05 thor
+
+ * trunk/src/libmpg123/libmpg123.c: Restore buffer initialization
+ for mpg123 handle on initial mpg123_parnew() The whole think
+ with mpg123_parnew() / mpg123_decoder() / decode_update() has to
+ be cleaned up!
+
+2008-11-11 23:04 thor
+
+ * trunk/NEWS, trunk/configure.ac: import the 1.6.2 fix for IPv6
+ auto detection in configure
+
+2008-11-10 20:57 patr3ck
+
+ * trunk/ports/MSVC++/2005/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: Catch up to
+ latest code restructuring
+
+2008-11-10 01:04 thor
+
+ * trunk/src/libmpg123/format.c: remove that debugging line
+
+2008-11-10 00:58 thor
+
+ * trunk/src/libmpg123/synth_i486.c: Ah, alright, it was just a
+ missing i ... absynth_1to1_i486 instead of absynth_1to1_486!
+
+2008-11-10 00:55 thor
+
+ * trunk/src/Makefile.legacy: legacy built sort of working again;
+ but also has trouble with i486
+
+2008-11-10 00:53 thor
+
+ * trunk/src/libmpg123/optimize.c: code fixup for non-multi ...
+ i486 still broken strangely
+
+2008-11-10 00:34 thor
+
+ * trunk/NEWS: NEW sync and update
+
+2008-11-09 23:55 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/Makefile.am: build
+ system fixup for the synth_ rename
+
+2008-11-09 23:47 thor
+
+ * trunk/src/libmpg123/synth_float.c: removed synth_float.c, it's
+ in synth.c
+
+2008-11-09 23:45 thor
+
+ * trunk/configure.ac: remove bashisms, thanks to Christian
+ Weisgerber
+
+2008-11-09 23:30 thor
+
+ * trunk/src/libmpg123/decode_3dnow.S,
+ trunk/src/libmpg123/decode_3dnowext.S,
+ trunk/src/libmpg123/decode_float.c,
+ trunk/src/libmpg123/decode_i586.S,
+ trunk/src/libmpg123/decode_i586_dither.S,
+ trunk/src/libmpg123/decode_mmx.S,
+ trunk/src/libmpg123/decode_sse.S,
+ trunk/src/libmpg123/decode_sse3d.h,
+ trunk/src/libmpg123/synth_3dnow.S,
+ trunk/src/libmpg123/synth_3dnowext.S,
+ trunk/src/libmpg123/synth_float.c,
+ trunk/src/libmpg123/synth_i586.S,
+ trunk/src/libmpg123/synth_i586_dither.S,
+ trunk/src/libmpg123/synth_mmx.S,
+ trunk/src/libmpg123/synth_sse.S,
+ trunk/src/libmpg123/synth_sse3d.h: Complete the rename of
+ decode_ files to synth_ files. They contain synth functions.
+ * trunk/src/libmpg123/optimize.c: oh, some random keypress went
+ in...
+
+2008-11-09 23:26 thor
+
+ * trunk/src/libmpg123/optimize.c: missed a ;
+
+2008-11-09 23:22 thor
+
+ * trunk/src/libmpg123/synth_1to1.h: synth_1to1.h is gone
+
+2008-11-09 23:20 thor
+
+ * trunk/src/libmpg123/decode.h: update copyright on decode.h
+
+2008-11-09 23:19 thor
+
+ * trunk/src/libmpg123/decode_2to1.c,
+ trunk/src/libmpg123/decode_4to1.c: Removed more obsolete
+ decode_*, they are gone into synth.c and associated headers.
+
+2008-11-09 23:18 thor
+
+ * trunk/src/libmpg123/decode_ntom.c: removed decode_ntom.c
+ * trunk/src/libmpg123/format.c,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/parse.c, trunk/src/libmpg123/parse.h: Move
+ the sample<->byte conversion to format.c .
+
+2008-11-09 23:12 thor
+
+ * trunk/src/libmpg123/format.c: Don't offer float for fixed build.
+ * trunk/NEWS.libmpg123: updating for 12.0.12
+
+2008-11-09 23:08 thor
+
+ * trunk/src/libmpg123/Makefile.am: synth_8bit been missing
+
+2008-11-09 23:05 thor
+
+ * trunk/src/output/jack.c: Update the JACK output to also work
+ with float samples as JACK likes it.
+ * trunk/src/mpg123.c: - const char* for decoder names - added
+ --float option (will be documented...)
+
+2008-11-09 23:04 thor
+
+ * trunk/src/term.c, trunk/src/term.h: Add a key to check for
+ currently active decoder.
+
+2008-11-09 23:02 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/compat.h, trunk/src/libmpg123/decode.c,
+ trunk/src/libmpg123/decode.h,
+ trunk/src/libmpg123/decode_altivec.c,
+ trunk/src/libmpg123/decode_i386.c,
+ trunk/src/libmpg123/decode_i486.c, trunk/src/libmpg123/format.c,
+ trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/index.c, trunk/src/libmpg123/layer1.c,
+ trunk/src/libmpg123/layer2.c, trunk/src/libmpg123/layer3.c,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/libmpg123.sym.in,
+ trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/optimize.c, trunk/src/libmpg123/optimize.h,
+ trunk/src/libmpg123/parse.c, trunk/src/libmpg123/parse.h,
+ trunk/src/libmpg123/synth.c, trunk/src/libmpg123/synth.h,
+ trunk/src/libmpg123/synth_1to1.h,
+ trunk/src/libmpg123/synth_2to1.h,
+ trunk/src/libmpg123/synth_4to1.h,
+ trunk/src/libmpg123/synth_8bit.h,
+ trunk/src/libmpg123/synth_altivec.c,
+ trunk/src/libmpg123/synth_i486.c,
+ trunk/src/libmpg123/synth_mono.h,
+ trunk/src/libmpg123/synth_ntom.h, trunk/src/libmpg123/tabinit.c:
+ Bigg-O-Commit: Began with cleaning up layer3 ... ended in
+ long-due overhaul of the whole synth functions and optimization
+ cruft. A lot more is now how it is supposed to be: - Every
+ decoder supports all formats / resamplings, though the
+ optimization only kicks in for certain modes (1to1 16bit, 8bit).
+ - Formats include floating point output in every non-fixed-math
+ build (Yay!). - Redundant code has been merged into the synth*
+ headers. - A possible downside: compiling synth.c is a bit of
+ work, may split that again into synth, synth_8bit, etc. One has
+ to do some side-by-side comparison with 1.6.x with respect to
+ output and speed. I could be that one should re-insert some
+ optimized dct64 in some places (apart from synth_1to1). Well, I
+ hope things are a bit cleaner now... though I don't claim
+ they're less complicated;-)
+
+2008-11-09 22:55 thor
+
+ * trunk/NEWS: some notes
+
+2008-11-09 22:22 patr3ck
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: Add ntom.c
+ to VC2008 project file
+
+2008-11-07 12:09 thor
+
+ * trunk/src/libmpg123/libmpg123.c, trunk/src/libmpg123/parse.c:
+ remove unreachable code
+ * trunk/src/output/esd.c: Make sure to include config.h early
+ enough.
+
+2008-11-07 12:08 thor
+
+ * trunk/autogen.sh: portable sh in autogen.sh
+ * trunk/configure.ac: only use alignment machinery for decoders
+ where it may be useful; the sun compiler complained
+
+2008-11-07 08:54 thor
+
+ * trunk/NEWS, trunk/src/libmpg123/decode.h,
+ trunk/src/libmpg123/format.c: Deactivate unsigned 16bit. It is
+ not handled. Either this deactivation or a converter wrapped
+ into libmpg123 will go into 1.6.1 .
+
+2008-11-07 08:53 thor
+
+ * trunk/src/libmpg123/layer3.c: Cleanup: reformat layer3.c to
+ consistent style (consistent by my rules;-).
+
+2008-11-06 09:59 thor
+
+ * trunk/NEWS, trunk/configure.ac, trunk/src/common.c,
+ trunk/src/control_generic.c, trunk/src/libmpg123/compat.h: After
+ seeing that control_generic.c forgot to cast off_t to long for a
+ printf, realized that this is the time to add proper large type
+ printing. We try to use PRIiMAX and friends if possible, else
+ fallback to long.
+
+2008-11-06 09:46 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/libmpg123/Makefile.am, trunk/src/libmpg123/decode.c,
+ trunk/src/libmpg123/decode.h, trunk/src/libmpg123/decode_2to1.c,
+ trunk/src/libmpg123/decode_4to1.c,
+ trunk/src/libmpg123/decode_altivec.c,
+ trunk/src/libmpg123/decode_float.c,
+ trunk/src/libmpg123/decode_i386.c,
+ trunk/src/libmpg123/decode_ntom.c, trunk/src/libmpg123/format.c,
+ trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/ntom.c, trunk/src/libmpg123/optimize.c,
+ trunk/src/libmpg123/optimize.h, trunk/src/libmpg123/parse.c,
+ trunk/src/libmpg123/parse.h, trunk/src/libmpg123/synth_1to1.h,
+ trunk/src/libmpg123/synth_2to1.h,
+ trunk/src/libmpg123/synth_4to1.h,
+ trunk/src/libmpg123/synth_ntom.h, trunk/src/libmpg123/tabinit.c,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h, trunk/src/wav.c,
+ trunk/src/wavhead.h: I am insane. I really am. Here comes a
+ first hack at a comined build with floating point output.
+
+2008-11-05 02:07 thor
+
+ * trunk/configure.ac: at least a little increment in version for
+ development
+
+2008-11-05 01:23 thor
+
+ * trunk/doc/examples/mpglib.c, trunk/doc/examples/scan.c: include
+ style
+
+2008-11-04 23:45 thor
+
+ * trunk/NEWS: Last notes for 1.6.0!
+
+2008-11-04 18:02 thor
+
+ * trunk/configure.ac: closing a quote, un-breaking the build again
+
+2008-11-04 16:44 thor
+
+ * trunk/configure.ac: configure cleanup; safer tests and another
+ bugfix for fifo (like ipv6 and network before)
+
+2008-11-04 16:26 thor
+
+ * trunk/configure.ac: fix network and ipv6 configuration handling,
+ thanks to Thorsten Glaser for pointers
+
+2008-11-04 16:09 thor
+
+ * trunk/src/libmpg123/dct64_3dnowext.S,
+ trunk/src/libmpg123/dct64_sse.S: fix remaining #APP / #NO_APP
+
+2008-11-04 09:38 thor
+
+ * trunk/src/libmpg123: ignore
+
+2008-11-04 09:34 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123lib_intern.h: Work on alignment
+ issues... - Made the actual check easier on compilers (old gcc
+ will not align too small blocks). - Do not use the useless check
+ when using gcc-4.2+. - Some drive-by configure.ac refinement.
+
+2008-11-03 10:36 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c: By default
+ enable the stack alignment check now. The fail case is too
+ serious. Also, it is enhanced to detect a bad build of libmpg123
+ itself: When you give gcc -mpreferred-stack-boundary=2, it will
+ not handle __attribute__((aligned(16))) variables correctly. I
+ consider this alone to be a bug, but that may be subject to
+ discussion. What is clearly a bug in gcc-4.3.1: The check fails
+ to detect stack misalignment there! The % 16 is apparently
+ optimized to zero at compile time... while at runtime the result
+ is wrong. This depends on some optimization included in -O1
+ already, or worse, a combination of some (I could not make out a
+ single option that is causing it). Anyhow, gcc-3.3 and gcc-3.4
+ handle that fine -- at least they detect the misalignment.
+
+2008-11-03 00:39 thor
+
+ * trunk/src/libmpg123/dct36_3dnowext.S: fix broken comments (it's
+ preprocessed now!)
+
+2008-11-03 00:32 thor
+
+ * trunk/src/output/esd.c: include some headers in esd.c for netbsd
+
+2008-11-03 00:21 thor
+
+ * trunk/configure.ac: better BSD detection
+
+2008-11-02 23:26 thor
+
+ * trunk/configure.ac: Weird quoting to preserve the [^0-9] as it
+ is needed, M4 swallowed the brackets.
+
+2008-11-02 22:46 thor
+
+ * trunk/configure.ac: only use numeric file offset bit values
+
+2008-11-02 22:11 thor
+
+ * trunk/configure.ac, trunk/src/control_generic.c,
+ trunk/src/libmpg123/compat.h, trunk/src/libmpg123/libmpg123.sym,
+ trunk/src/libmpg123/libmpg123.sym.in,
+ trunk/src/libmpg123/mpg123.h.in: More work on largefile support.
+ Now we have some hacks that, at least on systems that deal with
+ _FILE_OFFSET_BITS, prevent mixture of non-largefile and
+ largefile program/library.
+
+2008-11-02 21:27 thor
+
+ * trunk/src/libmpg123/frame.c: intialize fr->down_sample; prevents
+ irritating error messages with debugging
+
+2008-11-02 15:25 thor
+
+ * trunk/src/libmpg123/parse.c: fix a seeking weirdness;
+ audio_start has been overwritten due to resyncs
+
+2008-11-02 13:35 thor
+
+ * trunk/src/libmpg123/frame.c: More verbosity to a theoretically
+ impossible error message that I nevertheless saw in a log from
+ Patrick. What is the deal with fr->down_sample there?
+
+2008-10-28 09:13 thor
+
+ * trunk/ports/MSVC++/2005/libmpg123/libmpg123.vcproj: patch from
+ Patrick: update the MSVC++ 2005 project
+
+2008-10-28 09:07 thor
+
+ * trunk/src/mpg123.c: Quick hack to have --no-seekbuffer to
+ disable the http stream buffering. Not sure if that will stay,
+ it's for Serge to debug something.
+
+2008-10-27 15:48 thor
+
+ * trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/mpg123.h, trunk/ports/MSVC++/msvc.c:
+ Integrate new patch from Patrick: Open unicode files for MSVC++.
+
+2008-10-27 15:39 thor
+
+ * trunk/src/libmpg123/readers.c: complete the "cannot open file"
+ error msg
+
+2008-10-26 10:40 thor
+
+ * trunk/xmms2-plugin/mpg123/mpg123.c: Add the line for fuzzy
+ seeking to the (outdated, actually) xmms2 plugin.
+
+2008-10-26 10:36 thor
+
+ * trunk/src/libmpg123/readers.c: (cosmetic) Return MPG123_ERR
+ instead of the return value from open() directly. It's still -1,
+ as always...
+
+2008-10-24 19:09 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/index.c,
+ trunk/src/libmpg123/index.h: Optimized index a little, not that
+ it really matters. The next frame number to put into is cached.
+
+2008-10-24 10:06 thor
+
+ * trunk/src/audio.h, trunk/src/mpg123app.h: Header fix, audio.h
+ needs mpg123.h, mpg123app does not need module.h .
+
+2008-10-24 09:34 thor
+
+ * trunk/MakeLegacy.sh, trunk/configure.ac,
+ trunk/src/Makefile.legacy, trunk/src/audio.h,
+ trunk/src/common.h, trunk/src/config.h.legacy,
+ trunk/src/httpget.h, trunk/src/libmpg123/compat.h,
+ trunk/src/libmpg123/icy.h,
+ trunk/src/libmpg123/mpg123lib_intern.h, trunk/src/local.h,
+ trunk/src/metaprint.c, trunk/src/metaprint.h,
+ trunk/src/module.h, trunk/src/mpg123app.h, trunk/src/playlist.h,
+ trunk/src/term.h: Sort out header issues, merge more stuff into
+ compat.h. Also, reactivate legacy build.
+
+2008-10-24 08:34 thor
+
+ * trunk/ports/MSVC++/2005/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: Convert the
+ MSVC project files to DOS line ending, as they started out. My
+ patch program always strips the trailing CRs ... supposedly a
+ different patch format (unified) would help?
+
+2008-10-24 08:32 thor
+
+ * trunk/ports/MSVC++/2005/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj: MSVC updates
+ from Patrick, mainly additon of index.c and some build cleanup.
+
+2008-10-23 00:04 thor
+
+ * trunk/NEWS, trunk/NEWS.libmpg123, trunk/configure.ac: doc
+ update, lib version update
+
+2008-10-22 23:58 thor
+
+ * trunk/src/libmpg123/Makefile.am, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/index.c,
+ trunk/src/libmpg123/index.h, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/libmpg123/parse.c,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h: When frame index is
+ enabled, it's size is now runtime-tunable. Along with that, the
+ associated code has found it's own place. The main API header
+ got some comment refinements in addition to the necessary
+ changes.
+
+2008-10-22 23:56 thor
+
+ * trunk/configure.ac: - add largefile support detection in
+ configure This will define _FILE_OFFSET_BITS and stuff like
+ that. Users of the lib should be aware of that... - always
+ define INDEX_SIZE
+
+2008-10-22 23:50 thor
+
+ * trunk/src/control_generic.c: remove unused variable
+
+2008-10-22 23:49 thor
+
+ * trunk/src/libmpg123/compat.h,
+ trunk/src/libmpg123/mpg123lib_intern.h: compat.h is the place
+ for system headers
+
+2008-10-22 23:48 thor
+
+ * trunk/src/libmpg123/readers.c: lessen default verbosity in reader
+
+2008-10-21 22:10 thor
+
+ * trunk/NEWS, trunk/configure.ac, trunk/src/libmpg123/parse.c:
+ enable frame index also for non-seekable streams ... among that:
+ the feeder, that can seek but differently
+
+2008-10-19 10:44 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/parse.c: Add handling of stream size given
+ by Xing header; that one indeed has been missing. Also warn if
+ it differs significantly from determined file size.
+
+2008-10-19 00:59 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/frame.c: A bit more
+ safety with fuzzy seeking, also being paranoid about positive
+ file length with VBR table.
+
+2008-10-18 18:15 thor
+
+ * trunk/NEWS, trunk/NEWS.libmpg123, trunk/src/control_generic.c,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/libmpg123.sym,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/term.c: Adding
+ mpg123_getstate to query things, like "is the current position
+ accurate?".
+
+2008-10-18 18:13 thor
+
+ * trunk/src/libmpg123/frame.c: use TRUE, not 1
+
+2008-10-18 12:20 thor
+
+ * trunk/man1/mpg123.1: manpage update
+
+2008-10-18 12:05 thor
+
+ * trunk/NEWS: NEWS for 1.6.0 ... final?
+
+2008-10-18 12:02 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c: Prevent
+ gapless stuff from fiddling while we don't have an accurate
+ position. ...also updating the patchlevel of the lib for that.
+
+2008-10-18 00:05 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/parse.c: Add usage of the Xing TOC to the
+ fuzzy seeking. Also, trying to silence the resync
+
+2008-10-17 09:24 thor
+
+ * trunk/NEWS.libmpg123, trunk/configure.ac,
+ trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/libmpg123/parse.c,
+ trunk/src/mpg123.c: first guess at fuzzy seeking, using mean
+ framesize as estimate
+
+2008-10-15 09:50 thor
+
+ * trunk/windows-builds.sh: Save the readme & co with .txt
+ extension for Windows binary packages.
+
+2008-10-15 08:51 thor
+
+ * trunk/windows-builds.sh: again, the hopyfully working version of
+ the script
+
+2008-10-15 08:19 thor
+
+ * trunk/src/libmpg123/libmpg123.c: revert the debugging stuff in
+ libmpg123.c; it is not for the repo
+
+2008-10-15 08:17 thor
+
+ * trunk/src/libmpg123/libmpg123.c, trunk/windows-builds.sh: still
+ a missing adaption of the windows script... hopefully complete
+ now
+
+2008-10-15 00:52 thor
+
+ * trunk/INSTALL: another hint for windows (the SSE stack alignment
+ issue)
+
+2008-10-15 00:47 thor
+
+ * trunk/INSTALL: hint about win32 binaries
+
+2008-10-15 00:43 thor
+
+ * trunk/windows-builds.sh: fix a path there
+
+2008-10-15 00:12 thor
+
+ * trunk/Makefile.am, trunk/windows-builds.sh: also distribute the
+ build script
+
+2008-10-15 00:10 thor
+
+ * trunk/windows-builds.sh: an attempt to have automated windows
+ builds in here
+
+2008-10-13 09:06 thor
+
+ * trunk/ports/MSVC++/config.h: do not forget these important
+ features: gapless and seek index
+
+2008-10-11 21:40 thor
+
+ * trunk/ports/README: another note for the MSVCers
+
+2008-10-11 16:03 thor
+
+ * trunk/Makefile.am: add new ports stuff to distfiles
+
+2008-10-11 15:59 thor
+
+ * trunk/NEWS: a bit of credit
+
+2008-10-11 15:57 thor
+
+ * trunk/NEWS: doc update
+
+2008-10-11 15:50 thor
+
+ * trunk/NEWS, trunk/NEWS.libmpg123, trunk/configure.ac,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/libmpg123.sym,
+ trunk/src/libmpg123/mpg123.h.in: adding mpg123_tell_stream to
+ get the current input offset
+
+2008-10-11 15:29 thor
+
+ * trunk/NEWS, trunk/ports/README: doc update for MSVC++ projects
+
+2008-10-11 15:17 thor
+
+ * trunk/ports/MSVC++/2005, trunk/ports/MSVC++/2005/libmpg123,
+ trunk/ports/MSVC++/2005/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/2008, trunk/ports/MSVC++/2008/libmpg123,
+ trunk/ports/MSVC++/2008/libmpg123/libmpg123.vcproj,
+ trunk/ports/MSVC++/config.h: adding MSVC projects by Patrick
+ Dehne
+
+2008-10-11 14:17 thor
+
+ * trunk/ports/README: update ports README for MSVC++
+
+2008-10-11 14:14 thor
+
+ * trunk/ports/mpg123_msvc.h: don't need that anymore
+
+2008-10-11 14:13 thor
+
+ * trunk/ports/MSVC++/mpg123.h: Add a mpg123.h wrapper header to be
+ used by all MSVC++ builds.
+
+2008-10-11 14:10 thor
+
+ * trunk/ports/MSVC++/CMP3Stream,
+ trunk/ports/MSVC++/CMP3Stream/INCLUDE,
+ trunk/ports/MSVC++/CMP3Stream/README,
+ trunk/ports/MSVC++/CMP3Stream/SOURCE,
+ trunk/ports/MSVC++/CMP3Stream/libMPG123,
+ trunk/ports/MSVC++/INCLUDE, trunk/ports/MSVC++/README,
+ trunk/ports/MSVC++/SOURCE, trunk/ports/MSVC++/libMPG123: Move
+ the MSVC++ wrapper class to a subdirectory, preparing for the
+ new MSVC++ projects to come.
+
+2008-10-11 13:49 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: make mpg123.h.in directly
+ includable with -DMPG123_NO_CONFIGURE
+
+2008-10-11 13:23 thor
+
+ * trunk/src/libmpg123/readers.c: MSVC++ needs io.h in readers.c .
+
+2008-10-11 12:21 thor
+
+ * trunk/src/term.c: Fix a funny regression in the loopy pause: We
+ were going backwards in time one frame at a time.
+
+2008-10-11 12:14 thor
+
+ * trunk/man1/mpg123.1: An attempt to clarify the terminal control
+ with respect to pausing. ...in the course of that, don't mention
+ the "pause" that is a loop.
+
+2008-10-11 12:04 thor
+
+ * trunk/AUTHORS, trunk/NEWS, trunk/configure.ac,
+ trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/layer3.c: Integrate bit reservoir patch from
+ Patrick Dehne, fixing playback of badly cut MPEG layer 3 streams.
+
+2008-10-09 11:08 thor
+
+ * trunk/src/local.c: UTF-8 env check also using LC_ALL and LC_CTYPE
+
+2008-10-09 10:57 thor
+
+ * trunk/src/libmpg123/icy2utf8.c: icy2utf8: comment typo and
+ additions to test
+
+2008-10-08 08:32 thor
+
+ * trunk/NEWS, trunk/src/local.c, trunk/src/mpg123.c,
+ trunk/src/mpg123app.h: Added --utf8.
+
+2008-10-08 08:20 thor
+
+ * trunk/AUTHORS, trunk/NEWS: doc update
+ * trunk/configure.ac, trunk/src/Makefile.am, trunk/src/local.c,
+ trunk/src/local.h, trunk/src/mpg123.c, trunk/src/mpg123app.h:
+ More elaborate check for UTF-8 locale, with setlocale and
+ nl_langinfo. In the course of applying that, moved this locale
+ code out into its own realm. Structure.
+
+2008-10-08 08:18 thor
+
+ * trunk/src/libmpg123/icy2utf8.c: Do only convert stuff that is
+ not already UTF-8. There are streams that send UTF-8 ICY
+ metadata...
+
+2008-10-08 08:16 thor
+
+ * trunk/configure.ac, trunk/src/getlopt.c,
+ trunk/src/libmpg123/compat.c, trunk/src/libmpg123/compat.h:
+ Moved that replacement strdup to commpat.c, also check for it
+ instead of assuming some specific system.
+
+2008-10-02 13:49 thor
+
+ * trunk/NEWS, trunk/configure.ac,
+ trunk/src/libmpg123/decode_2to1.c,
+ trunk/src/libmpg123/decode_4to1.c,
+ trunk/src/libmpg123/decode_ntom.c: fix resampling modes for
+ integer decoding (just use REAL_MUL, stupid!)
+
+2008-10-02 13:35 thor
+
+ * trunk/src/libmpg123/libmpg123.c: now really fix the expected
+ samples from a frame (did not work for flexible resampling)
+
+2008-10-02 13:06 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c: Fix the
+ broken frame filler for resampling modes (look for output sample
+ count per frame, not input).
+
+2008-10-02 12:45 thor
+
+ * trunk/NEWS: some news for 1.6.0
+ * trunk/configure.ac: gah, confusion with libversion again... not
+ ., :!
+
+2008-10-02 12:35 thor
+
+ * trunk/doc/README.remote: update remote control docu
+
+2008-10-02 12:34 thor
+
+ * trunk/src/Makefile.am, trunk/src/control_generic.c,
+ trunk/src/equalizer.c, trunk/src/mpg123.c,
+ trunk/src/mpg123app.h: Adding EQFILE and SHOWEQ to remote
+ control, factoring out the equalizer file loading for that.
+ Realizing that the equalizer file reading did not even work with
+ the example equalize.dat and fixing this (really ignore comment
+ lines).
+
+2008-10-02 11:55 thor
+
+ * trunk/NEWS.libmpg123, trunk/configure.ac,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/libmpg123.sym,
+ trunk/src/libmpg123/mpg123.h.in: added mpg123_geteq()
+
+2008-10-02 11:53 thor
+
+ * trunk/src/libmpg123/mpg123lib_intern.h: added REAL_TO_DOUBLE
+ and... a using (long) in DOUBLE_TO_REAL for fixed (integer)
+ real... seems right, theoretically
+
+2008-10-02 00:58 thor
+
+ * trunk/NEWS: an attempt to update the NEWS
+
+2008-10-02 00:54 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in: More parameter safety (checks
+ for NULL pointers users may give).
+
+2008-10-02 00:41 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c: cleanup
+ error return of mpg123_index
+
+2008-10-02 00:39 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/parse.c: Wrap INDEX_SIZE=0 around extra
+ #define to prevent compilers from chokin on zero-sized arrays.
+
+2008-10-01 20:27 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in: Multiple issues at once
+ (sorry): - fill up broken frames (with zeros) that would
+ otherwise screw up the relation between sample offset and frame
+ offset, breaking seeks - prevent reporting of negative positions
+ - deny seek if file position is screwed up - some more caution
+ with user-provided pointers to store values (check for NULL)
+
+2008-10-01 20:23 thor
+
+ * trunk/src/resolver.c: remove an unused variable
+
+2008-10-01 20:18 thor
+
+ * trunk/src/libmpg123/frame.c: be prepared to find first header
+ again when there is no seek table, fresh and clean
+
+2008-10-01 20:11 thor
+
+ * trunk/configure.ac: version will be 1.6.0 because of added
+ features of control interface
+
+2008-10-01 20:10 thor
+
+ * trunk/configure.ac: be prepared to find first header again when
+ there is no seek table, fresh and clean
+
+2008-10-01 20:04 thor
+
+ * trunk/TODO: note about possible multiplied ID3v2 parsing
+
+2008-10-01 19:29 thor
+
+ * trunk/test/1000Hz/work.sh: use --no-gapless
+ * trunk/ChangeLog: typo
+
+2008-09-30 17:25 thor
+
+ * trunk/src/control_generic.c, trunk/src/mpg123.c,
+ trunk/src/mpg123app.h: adding sample and scan commands to remote
+ interface, also --keep-open
+
+2008-09-17 13:58 thor
+
+ * trunk/src/libmpg123/Makefile.am, trunk/src/libmpg123/dnoise.c,
+ trunk/src/libmpg123/dnoise.dat, trunk/src/libmpg123/dnoise.sh:
+ turn dnoise.c into a data file with a converter script; much
+ saner this way
+
+2008-09-17 13:45 thor
+
+ * trunk/configure.ac: fixes for picky autoconf-2.62 ... it picked
+ up the spaces around variable names (actually only the space
+ _after_) as part of the variable name. Great job to make me
+ waste my time with such cruft again!!
+
+2008-09-03 11:07 thor
+
+ * trunk/NEWS, trunk/configure.ac: document updates
+
+2008-09-03 11:05 thor
+
+ * trunk/src/libmpg123/libmpg123.c: make mpg123_getformat check for
+ NULL pointers
+
+2008-09-03 11:03 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: Clean up mpg123_channels:
+ MPG123_LEFT|MPG123_RIGHT is now a member of the enum, at least
+ per value. C++ still wants to have a specific symbol instead of
+ the binary | ...
+
+2008-09-03 10:38 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/libmpg123/reader.h,
+ trunk/src/libmpg123/readers.c: use const char* file paths for
+ open()
+
+2008-08-29 06:47 thor
+
+ * trunk/configure.ac: update library version
+
+2008-08-22 08:43 thor
+
+ * trunk/src/libmpg123/libmpg123.sym: add the missing export symbol
+ for mpg123_set_filesize
+
+2008-08-21 17:18 thor
+
+ * trunk/NEWS, trunk/NEWS.libmpg123, trunk/configure.ac,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in: Work on bug #2064322, adding
+ mpg123_set_filesize() and controlling mpg123_length() a bit.
+ Arbitrary negative length values should be a thing of the past
+ now.
+
+2008-08-20 09:34 thor
+
+ * trunk/configure.ac: version will be 1.5.1
+
+2008-08-20 09:28 thor
+
+ * trunk/NEWS, trunk/configure.ac, trunk/src/libmpg123/dct64_sse.S:
+ Making SSE decoder thread safe (bug #2053181). The local b1 and
+ b2 variables are now handled on the stack, which interestingly
+ also seems to be slightly faster on my machine.
+
+2008-08-19 18:20 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: API doc: make mpg123_init/exit
+ calling with threads more clear
+
+2008-08-10 18:40 thor
+
+ * trunk/NEWS, trunk/man1/mpg123.1: update docs
+
+2008-08-10 18:39 thor
+
+ * trunk/src/mpg123.c: add --no-resync to replace --resync in future
+
+2008-08-10 18:21 thor
+
+ * trunk/src/wav.c: Make wav/cdr/au output properly work with the
+ special file "-", aka. stdout. Not closing it, not repeating
+ headers.
+
+2008-08-03 20:04 thor
+
+ * trunk/src/libmpg123/dct36_3dnow.S,
+ trunk/src/libmpg123/dct36_3dnowext.S,
+ trunk/src/libmpg123/dct64_3dnow.S,
+ trunk/src/libmpg123/dct64_3dnowext.S,
+ trunk/src/libmpg123/dct64_mmx.S,
+ trunk/src/libmpg123/dct64_sse.S,
+ trunk/src/libmpg123/decode_3dnow.S,
+ trunk/src/libmpg123/decode_3dnowext.S,
+ trunk/src/libmpg123/decode_i586.S,
+ trunk/src/libmpg123/decode_i586_dither.S,
+ trunk/src/libmpg123/decode_mmx.S,
+ trunk/src/libmpg123/decode_sse.S,
+ trunk/src/libmpg123/equalizer_3dnow.S,
+ trunk/src/libmpg123/getcpuflags.S,
+ trunk/src/libmpg123/tabinit_mmx.S: following gentoo advice...
+ marking stacks as non-exec for gcc
+
+2008-08-03 08:43 thor
+
+ * trunk/src/control_generic.c: fix help of loadpaused command
+
+2008-08-02 11:54 thor
+
+ * trunk/src/libmpg123/Makefile.am: include ic2utf8.h in
+ distribution
+
+2008-08-02 11:48 thor
+
+ * trunk/src/resolver.c: remove the fixed DEBUG
+
+2008-08-02 11:41 thor
+
+ * trunk/NEWS: updated 1.5.0 NEWS
+
+2008-08-02 11:40 thor
+
+ * trunk/src/resolver.c: Also make the initial connection use the
+ timeout (would block forever otherwise...).
+
+2008-08-02 11:39 thor
+
+ * trunk/src/libmpg123/readers.c: Do the nonblock switching
+ properly, without clearing other flags.
+
+2008-08-02 10:40 thor
+
+ * trunk/AUTHORS, trunk/NEWS, trunk/NEWS.libmpg123,
+ trunk/configure.ac, trunk/src/Makefile.am, trunk/src/httpget.c,
+ trunk/src/id3print.c, trunk/src/id3print.h,
+ trunk/src/libmpg123/Makefile.am, trunk/src/libmpg123/icy2utf8.c,
+ trunk/src/libmpg123/icy2utf8.h, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/libmpg123.sym,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/metaprint.c,
+ trunk/src/metaprint.h, trunk/src/mpg123.c, trunk/src/term.c:
+ Added the ICY decoding from Thorsten Glaser (of course wrapped
+ it a bit in mpg123 mungo;-).
+
+2008-08-02 09:19 thor
+
+ * trunk/src/libmpg123/reader.h, trunk/src/libmpg123/readers.c:
+ preserve the constness of input buffers
+
+2008-08-02 09:10 thor
+
+ * trunk/NEWS: NEWS updated for 1.5.0
+
+2008-08-02 08:55 thor
+
+ * trunk/src/libmpg123/layer3.c, trunk/src/libmpg123/parse.c: -
+ remove varmodesupport - consistent indendation in parse.c - dead
+ code removed in parse.c
+
+2008-08-02 08:36 thor
+
+ * trunk/src/libmpg123/parse.c: Remove that line that stored the
+ (bogus, anyway) peak value a float number from an arbitrary
+ buffer. At least on the Wii (PowerPC), this triggered a problem
+ due to unaligned floating point operation.
+
+2008-08-02 08:33 thor
+
+ * trunk/src/libmpg123/mpg123.h.in, trunk/src/libmpg123/parse.c,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h: Remove --force-resync
+ again; the ICY resync mess has been caused by that bug of mine...
+
+2008-07-11 21:38 thor
+
+ * trunk/NEWS, trunk/src/output/alsa.c: Try to resume ALSA devices
+ after suspend...
+
+2008-07-09 08:41 thor
+
+ * trunk/doc/doxyhead.xhtml: ...you should proofread that before
+ the first commit. Anyway, added note about compatibility.
+
+2008-07-09 08:37 thor
+
+ * trunk/doc/doxyhead.xhtml: Eh... put that note below the mpg123
+ linkbar...
+
+2008-07-09 08:35 thor
+
+ * trunk/doc/doxyhead.xhtml: Added note about API being from
+ development verison.
+
+2008-07-09 01:35 thor
+
+ * trunk/configure.ac: Put environment CFLAGS/CPPFLAGS _after_ the
+ generated ones, to give the user the last word.
+
+2008-07-04 08:01 thor
+
+ * trunk/NEWS, trunk/NEWS.libmpg123, trunk/configure.ac,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/libmpg123.sym,
+ trunk/src/libmpg123/mpg123.h.in: Added mpg123_feed() and made it
+ take a const pointer as input buffer (mpg123_decode, too).
+
+2008-07-01 09:52 thor
+
+ * trunk/src/httpget.c: added audio/mpegurl
+
+2008-07-01 08:56 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/libmpg123/parse.c,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h: added --force-resync
+ (I think it will vanish soon again), by-the-way cleanup of
+ unused fr->do_recover
+
+2008-07-01 08:30 thor
+
+ * trunk/NEWS, trunk/src/mpg123.c, trunk/src/mpg123app.h,
+ trunk/src/playlist.c: Added --ignore-mime.
+
+2008-07-01 01:39 thor
+
+ * trunk/src/httpget.c, trunk/src/mpg123.c: Remove further NETWORK
+ blocks to make it actually work for generic systems.
+
+2008-07-01 01:20 thor
+
+ * trunk/src/resolver.c: Give note about kind of connection being
+ tried to established (old IPv4 code, new code).
+
+2008-07-01 01:17 thor
+
+ * trunk/configure.ac, trunk/src/httpget.c, trunk/src/resolver.c:
+ Give the network code a dedicated configure and preprocessor
+ switch; checking for the lot of headers in configure. One step
+ further to eliminate the host OS recognition stuff.
+
+2008-06-30 23:44 thor
+
+ * trunk/NEWS, trunk/configure.ac, trunk/src/resolver.c: ... IPv6!
+ Totally untested!
+
+2008-06-30 23:41 thor
+
+ * trunk/src/httpget.c: Re-enable the host request header
+ (debugging...); make verbosity about HTTP communication
+ runtime-switchable.
+
+2008-06-30 23:32 thor
+
+ * trunk/src/httpget.c: remove a debugging line
+
+2008-06-30 22:56 thor
+
+ * trunk/NEWS, trunk/src/httpget.c, trunk/src/httpget.h,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h, trunk/src/playlist.c,
+ trunk/src/resolver.c: proxy fixup
+
+2008-06-30 21:22 thor
+
+ * trunk/NEWS: news for 1.5.0 ...
+ * trunk/src/Makefile.am, trunk/src/httpget.c, trunk/src/httpget.h,
+ trunk/src/resolver.c, trunk/src/resolver.h: Reworked the HTTP
+ code! Apart from now using mpg123_string all around (which
+ should at least be a bit safer), the lowlevel network code is
+ separated into resolver.c . This should ease the to-come IPv6
+ changes.
+
+2008-06-30 21:20 thor
+
+ * trunk/configure.ac: The new libmpg123 version
+ * trunk/NEWS.libmpg123, trunk/src/libmpg123/libmpg123.sym,
+ trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/stringbuf.c: Extending libmpg123's string
+ API with substrings and growing; doc update.
+
+2008-06-30 21:14 thor
+
+ * trunk/src/mpg123.c: verbose error message on http_open failure
+
+2008-06-30 20:36 thor
+
+ * trunk/src/libmpg123/id3.c: Wondering why that didn't hit
+ earlier: A bogus null-termination of the "lang" field in
+ comments.
+
+2008-06-30 20:22 thor
+
+ * trunk/src/audio.h: export print_capabilities officially
+
+2008-06-29 10:49 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/stringbuf.c: Safety: make the char*
+ arguments to mpg123_add_string and mpg123_set_string const char*
+ .
+
+2008-06-29 09:01 thor
+
+ * trunk/src/mpg123.c: Try to be more helpful on output format
+ errors; especially cdr.
+
+2008-06-15 20:35 thor
+
+ * trunk/ports/Sony_PSP/README,
+ trunk/ports/Sony_PSP/readers.c.patch: Update of PSP port to
+ current toolchain, by noapic.
+
+2008-05-23 09:04 thor
+
+ * trunk/src/libmpg123/libmpg123.c: Add more alignment checking.
+
+2008-05-20 18:56 thor
+
+ * trunk/Makefile.am, trunk/ports/README,
+ trunk/ports/mpg123_msvc.h: add that msvc header
+
+2008-05-18 09:27 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: Oh, that missing error code in
+ mpg123.h
+
+2008-05-18 08:24 thor
+
+ * trunk/src/libmpg123/libmpg123.c: A li'l attempt to detect
+ misaligned stack in debug build.
+
+2008-05-18 07:42 thor
+
+ * trunk/NEWS: now really the news about 1.4.3 stuff
+
+2008-05-18 07:19 thor
+
+ * trunk/AUTHORS, trunk/src/libmpg123/format.c,
+ trunk/src/libmpg123/frame.c, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/optimize.c, trunk/src/libmpg123/parse.c,
+ trunk/src/libmpg123/stringbuf.c: Import the ABI / stack
+ alignment fixes from tag 1.4.3 (rev 1484).
+
+2008-05-18 07:15 thor
+
+ * trunk/NEWS: news for 1.4.3
+
+2008-05-13 20:35 thor
+
+ * trunk/src/libmpg123/id3.c: RVA notice clarification.
+
+2008-05-13 20:34 thor
+
+ * trunk/src/output/win32.c: Make win32 output use the channel
+ count to support mono playback (from 1.4.3 tag).
+
+2008-04-29 20:03 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/libmpg123.c:
+ Fixing the return value of mpg123_tell(), and thus the return
+ value of mpg123_seek() as well as the working of relative seeks.
+ The buffer offset missed a conversion from bytes to samples.
+ This should fix bug 1947373.
+
+2008-04-28 22:51 njh
+
+ * trunk/misc/ruby-mpg123.rb: Added ruby class for controlling
+ mpg123
+
+2008-04-28 09:36 thor
+
+ * trunk/src/libmpg123/getcpuflags.S,
+ trunk/src/libmpg123/getcpuflags.h: A fix for bogus 3DNow
+ detection on CPUs that do not support the extended flag query.
+ Not yet verified on the CPU in question (IDT C6).
+
+2008-04-20 13:19 thor
+
+ * trunk/NEWS, trunk/src/libmpg123/readers.c, trunk/src/mpg123.c:
+ import build fixes from 1.4.2
+
+2008-04-20 07:50 thor
+
+ * trunk/src/control_generic.c, trunk/src/libmpg123/readers.c: One
+ precaution and one bugfix with header inclusion oder: readers.c
+ didn't see config.h before conditionally including system
+ headers. This only made trouble on Cygwin so far, apparently.
+
+2008-04-14 06:52 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: Further clarification in
+ encoding doc.
+
+2008-04-14 06:48 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: clarify testing situation with
+ floats
+
+2008-04-14 06:43 thor
+
+ * trunk/src/libmpg123/format.c, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in: Silently drop not supported
+ formats in mpg123_format(), no outright failure.
+
+2008-04-14 06:42 thor
+
+ * trunk/src/libmpg123/frame.c: fix printf for float
+
+2008-04-14 00:07 thor
+
+ * trunk/configure.ac, trunk/src/audio.c,
+ trunk/src/libmpg123/format.c, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/mpg123lib_intern.h: Working on float output
+ support. Tested only 32bit float, but added API definitions for
+ 64bit float and 32bit integers, too.
+
+2008-04-07 23:04 thor
+
+ * trunk/NEWS, trunk/configure.ac: Calling this 1.4.1.
+
+2008-04-07 23:03 thor
+
+ * trunk/src/mpg123.c: Fix terminal again... there was a
+ term_restore() left where it should not be. This was the
+ quick-shot regression bug 1936548
+
+2008-04-06 23:41 thor
+
+ * trunk/src/audio.c: Fix that info line... forgot the name!
+
+2008-04-06 23:30 thor
+
+ * trunk/NEWS: The forgotten NEWS update for 1.4.0 .
+
+2008-04-06 22:58 thor
+
+ * trunk/src/audio.c: More useful output module error message.
+
+2008-04-06 22:48 thor
+
+ * trunk/src/output/alsa.c: Make ALSA silent when desired (probing).
+
+2008-04-06 22:25 thor
+
+ * trunk/src/output/alsa.c, trunk/src/output/oss.c: Make OSS and
+ Alsa (partly silent) when probing. Alsa needs some change to
+ make the library silent...
+
+2008-04-06 22:24 thor
+
+ * trunk/src/audio.c: clear the quietness flag after probing output
+
+2008-04-06 22:11 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h: - Fix nasty segfault when
+ no working module was found (ao = NULL !!!). - Introduce silent
+ init for probing.
+
+2008-04-06 21:35 thor
+
+ * trunk/src/output/arts.c: Fail correctly when there is no arts.
+
+2008-04-06 20:50 thor
+
+ * trunk/src/libmpg123/readers.c: A bit more EOF safety in
+ skip_bytes; clearness.
+
+2008-04-04 11:59 thor
+
+ * trunk/src/libmpg123/readers.c: Avoid a size 0 read in ICY
+ parser... that triggered EOF now.
+
+2008-04-04 10:26 thor
+
+ * trunk/src/mpg123.c: Enable interrupt within loop where the track
+ loading failes (which would be annoying with --loop -1, in
+ particular), further thoughts about cleanup of that SIGINT
+ business.
+
+2008-04-04 09:46 thor
+
+ * trunk/src/libmpg123/readers.c: fixing an endless loop in ICY
+ reader when stream actually ends in EOF and not with an error...
+ duh
+
+2008-04-01 19:55 thor
+
+ * trunk/NEWS, trunk/configure.ac, trunk/man1/mpg123.1: Update
+ stuff for 1.4.0 release.
+
+2008-04-01 19:54 thor
+
+ * trunk/src/libmpg123/readers.c: Cleanup with regard to error
+ messages.
+
+2008-04-01 19:51 thor
+
+ * trunk/src/libmpg123/dnoise.c: Add that f to the float
+ constants... makes some compilers happy.
+
+2008-03-21 22:04 thor
+
+ * trunk/configure.ac: Now building the list of all (useful)
+ compiled modules into mpg123 as default list to try. That
+ finally does "just play" whether I got alsa or oss drivers
+ loaded without fuzz (apart from alsa error messages).
+
+2008-03-21 21:46 thor
+
+ * trunk/src/audio.c: Following the idea of
+ http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/mpg123-no-la.patch
+ (bug 1910500): Implement a search for working output modules,
+ extending the original idea to a runtime check (opening the
+ device). Now you can give mpg123 a list of output modules from
+ which it chooses the first working one.
+
+2008-03-21 21:44 thor
+
+ * trunk/src/module.c: Name the module in loading error message.
+
+2008-03-21 21:34 thor
+
+ * trunk/src/playlist.c: Need time.h .
+
+2008-03-21 21:31 thor
+
+ * trunk/src/output/oss.c: Last time: debug.h!
+
+2008-03-21 21:29 thor
+
+ * trunk/src/output/jack.c: Here, too, include debug.h .
+ * trunk/src/output/aix.c, trunk/src/output/alib.c,
+ trunk/src/output/alsa.c, trunk/src/output/alsa05.c,
+ trunk/src/output/arts.c, trunk/src/output/coreaudio.c,
+ trunk/src/output/dummy.c, trunk/src/output/esd.c,
+ trunk/src/output/hp.c, trunk/src/output/libao.c,
+ trunk/src/output/mint.c, trunk/src/output/nas.c,
+ trunk/src/output/os2.c, trunk/src/output/portaudio.c,
+ trunk/src/output/sdl.c, trunk/src/output/sgi.c,
+ trunk/src/output/sun.c, trunk/src/output/win32.c: include
+ debug.h explicitly
+
+2008-03-21 20:19 thor
+
+ * trunk/src/output/dummy.c: Don't warn on dummy output usage...
+ may be intentional.
+
+2008-03-20 13:55 thor
+
+ * trunk/src/audio.c, trunk/src/buffer.c, trunk/src/common.c,
+ trunk/src/control_generic.c, trunk/src/getlopt.c,
+ trunk/src/httpget.c, trunk/src/id3print.c,
+ trunk/src/legacy_module.c, trunk/src/libmpg123/decode_ntom.c,
+ trunk/src/libmpg123/format.c, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/id3.c, trunk/src/libmpg123/layer3.c,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/parse.c, trunk/src/libmpg123/readers.c,
+ trunk/src/libmpg123/stringbuf.c, trunk/src/libmpg123/system.c,
+ trunk/src/libmpg123/tabinit.c, trunk/src/module.c,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h, trunk/src/playlist.c,
+ trunk/src/term.c, trunk/src/wav.c, trunk/src/xfermem.c: Update
+ some copyright years.
+
+2008-03-20 13:51 thor
+
+ * trunk/src/audio.c, trunk/src/buffer.c, trunk/src/common.c,
+ trunk/src/control_generic.c, trunk/src/getlopt.c,
+ trunk/src/httpget.c, trunk/src/id3print.c,
+ trunk/src/legacy_module.c, trunk/src/libmpg123/decode_ntom.c,
+ trunk/src/libmpg123/format.c, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/id3.c, trunk/src/libmpg123/layer3.c,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/parse.c, trunk/src/libmpg123/readers.c,
+ trunk/src/libmpg123/stringbuf.c, trunk/src/libmpg123/system.c,
+ trunk/src/libmpg123/tabinit.c, trunk/src/module.c,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h, trunk/src/playlist.c,
+ trunk/src/term.c, trunk/src/wav.c, trunk/src/xfermem.c: Ensure
+ that debug.h is included after any system headers. There may be
+ funny conflicts with my generic macro names.
+
+2008-03-19 23:52 thor
+
+ * trunk/src/libmpg123/readers.c: Be paranoid, include the headers
+ for select() even when not needed on my system.
+
+2008-03-19 23:46 thor
+
+ * trunk/src/common.c, trunk/src/control_generic.c,
+ trunk/src/libmpg123/parse.c, trunk/src/libmpg123/readers.c,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h, trunk/src/playlist.c,
+ trunk/src/term.c, trunk/src/xfermem.c: Removed some unnecessary
+ #includes; centralized some in mpg123app.h Still not sure about
+ where readers.c gets its definition for select() from.
+
+2008-03-19 23:23 thor
+
+ * trunk/src/libmpg123/dnoise.c: Making dnoise a bit smaller by
+ omitting leading zeros. Still, wondering if computation at
+ runtime would be such a bad thing.
+
+2008-03-11 22:26 thor
+
+ * trunk/xmms2-plugin/mpg123/mpg123.c: Style fixes in xmms2 plugin
+ + removal of metadata handling.
+
+2008-03-08 20:37 thor
+
+ * trunk/NEWS, trunk/configure.ac: We're at 1.3.1 and have some
+ NEWS (backmerge from the tag).
+
+2008-03-08 20:06 thor
+
+ * trunk/src/term.c: A note about the limit of terminal controlled
+ pitch.
+
+2008-03-08 19:50 thor
+
+ * trunk/src/output/alsa.c: Omit the xfer_align call only when alsa
+ lib is at least 1.0.16, where the function is deprecated. This
+ is no guarantee for --enable-nagging builds to succeed; it just
+ happens to work now on my laptop with alsa-lib 1.0.16. It
+ doesn't work on that other box with 1.0.15, where the alloca fun
+ triggers a warning. Anyhow, hope to fix bug 1908603 for the poor
+ souls with old alsa libs (old meaning: half a year old) where
+ the xfer_align setting may be crucial.
+
+2008-03-08 19:40 thor
+
+ * trunk/src/libmpg123/readers.c: superfluous debugging code
+
+2008-03-08 08:58 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/mpg123.c,
+ trunk/src/mpg123app.h, trunk/src/term.c, trunk/src/term.h:
+ Reacting to a wish list item... and adding a kinda cool feature
+ there: A --pitch parameter as well as interactive terminal
+ control for playback speed control via the output (hardware)
+ sample rate. I first considered using the software "resampling"
+ of libmpg123 but this way it has the best possible quality and
+ the least cpu impact (that is, basically none;-). It is the
+ mpg123 way! Plus, if your hardware doesn't support many rates or
+ you really, really want your CPU do the work, just use an output
+ module like alsa with default (plughw) device or portaudio that
+ will do the resampling in software. That being said... I just
+ found out that my laptop's sound chip can actually do a bit more
+ than 48000Hz;-)
+
+2008-03-08 08:52 thor
+
+ * trunk/src/term.c: Also apply the terminal verbosity setting to
+ the library.
+
+2008-03-02 22:31 thor
+
+ * trunk/Makefile.am: omit dirs from Makefile.am
+
+2008-03-02 22:23 thor
+
+ * trunk/INSTALL, trunk/Makefile.am, trunk/NEWS, trunk/ports,
+ trunk/ports/MSVC++, trunk/ports/MSVC++/INCLUDE,
+ trunk/ports/MSVC++/INCLUDE/CORE,
+ trunk/ports/MSVC++/INCLUDE/CORE/CORE_FileIn.H,
+ trunk/ports/MSVC++/INCLUDE/CORE/SourceFilter_MP3.H,
+ trunk/ports/MSVC++/INCLUDE/IIEP_Def.H,
+ trunk/ports/MSVC++/INCLUDE/IIEP_FileIn.H,
+ trunk/ports/MSVC++/README, trunk/ports/MSVC++/SOURCE,
+ trunk/ports/MSVC++/SOURCE/CORE_FileIn.CPP,
+ trunk/ports/MSVC++/SOURCE/CORE_Log.CPP,
+ trunk/ports/MSVC++/SOURCE/CORE_Mutex.CPP,
+ trunk/ports/MSVC++/SOURCE/SourceFilter_MP3Stream.CPP,
+ trunk/ports/MSVC++/libMPG123,
+ trunk/ports/MSVC++/libMPG123/PLACE_LIBMPG123_SOURCES_HERE,
+ trunk/ports/MSVC++/libMPG123/libMPG123.vcproj,
+ trunk/ports/README, trunk/ports/Sony_PSP,
+ trunk/ports/Sony_PSP/Makefile.psp, trunk/ports/Sony_PSP/README,
+ trunk/ports/Sony_PSP/config.h,
+ trunk/ports/Sony_PSP/readers.c.patch, trunk/ports/mpg123_.pas:
+ Including the ports/bindings that threatened to collect dust in
+ my mailbox.
+
+2008-03-02 22:22 thor
+
+ * trunk/NEWS: More news for 1.3.0.
+
+2008-03-02 21:34 thor
+
+ * trunk/NEWS, trunk/TODO, trunk/src/libmpg123/id3.c: Fix that
+ memory leak.
+
+2008-03-02 17:04 thor
+
+ * trunk/NEWS, trunk/NEWS.libmpg123: News for 1.3.0.
+
+2008-03-02 16:56 thor
+
+ * trunk, trunk/configure.ac, trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/reader.h, trunk/src/libmpg123/readers.c,
+ trunk/src/mpg123.c: This is my weekend again... hacking to make
+ http streaming work better. - Added MPG123_SEEKBUFFER flag,
+ triggering re-use of the feeder bufferchain code to enable some
+ peek-ahead on non-seekable streams. - During hacking and finally
+ found where the ICY code went wrong (especially seen with big
+ buffer): The ICY reader didn't care for read() returning some
+ but less than the wanted bytes. Shame on me! A test looks good
+ for now... going to close that memleak and make 1.3.0 tonight.
+
+2008-03-02 14:02 thor
+
+ * trunk/xmms2-plugin/mpg123/mpg123.c: Big diff just for whitespace
+ in "function (parm)", xmms2 coding style.
+
+2008-03-02 13:49 thor
+
+ * trunk/xmms2-plugin/mpg123/mpg123.c: adding xmms magic to make
+ streaming work
+
+2008-03-02 13:27 thor
+
+ * trunk/src/libmpg123/parse.c: - Report zero time/frames left for
+ non-seekable streams (without warning). - Ensure that you at
+ least get MPG123_ERR_READER when read_frame goes wrong (error:
+ no error is too confusing;-).
+
+2008-03-02 01:02 thor
+
+ * trunk/TODO: Added note about that memleak.
+
+2008-03-02 00:58 thor
+
+ * trunk/src/libmpg123/libmpg123.c, trunk/src/libmpg123/parse.c,
+ trunk/src/libmpg123/reader.h, trunk/src/libmpg123/readers.c:
+ Spell out the buffer chain which was embedded in the feeder
+ code; going to re-use it as input buffer for supporting frame
+ sync check wich peek-ahead for non-seeable streams.
+
+2008-03-02 00:55 thor
+
+ * trunk/src/output/alsa.c: There's a deprecated ALSA API
+ function... shrugging and removing the call. Still gives sound,
+ eh?
+
+2008-03-01 14:01 thor
+
+ * trunk/src/libmpg123/id3.c, trunk/src/term.c: Code niceness fixes.
+
+2008-03-01 13:11 thor
+
+ * trunk/TODO_1.0: That TODO is outdated.
+
+2008-03-01 10:19 thor
+
+ * trunk/src/libmpg123/layer3.c: Make that mask shift in
+ III_dequantize_sample safe (from mhipp rev 43).
+
+2008-03-01 10:14 thor
+
+ * trunk/src/libmpg123/layer3.c: The "r0c/r1c > 22 fix" from mhipp
+ rev 51.
+
+2008-03-01 10:07 thor
+
+ * trunk/src/libmpg123/layer3.c: Importing the layer table change
+ from mhipp rev 51; that fixes the sizzling of bug 1895025.
+
+2008-03-01 10:03 thor
+
+ * trunk/src/libmpg123/id3.c: Another safeguard against too _large_
+ claimed frame sizes.
+
+2008-02-29 22:32 thor
+
+ * trunk/src/libmpg123/id3.c: Fixing a crash in the ID3v2 parser
+ with _really_ small (invalid) comment/text frame length values.
+
+2008-02-26 09:02 thor
+
+ * trunk/configure.ac, trunk/man1/mpg123.1, trunk/src/mpg123.c,
+ trunk/src/mpg123app.h: adding --smooth, which is a new
+ user-visible feature, so heading for 1.3.0
+
+2008-02-25 23:29 thor
+
+ * trunk/NEWS: update NEWS for a possible 1.2.2 release
+
+2008-02-25 23:25 thor
+
+ * trunk/src/mpg123.c: ICY stuff: Always clear htd on open_track,
+ print ICY-NAME and ICY-URL after loading as mpg123-0.6x did it.
+
+2008-02-25 23:24 thor
+
+ * trunk/src/libmpg123/parse.c: Gah, forgot a { , breaking
+ compilation for the last few days.
+
+2008-02-20 10:02 thor
+
+ * trunk/configure.ac: May become version 1.2.2 (maybe will add the
+ smooth buffer feature for less interrupted streaming reconnects).
+
+2008-02-20 10:00 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/parse.c: libmpg123
+ 1.3.1: Don't try to resync on ICY streams (mpg123 --loop -1 does
+ a good job on unreliable connections, reconnect to server
+ instead of fiddling helplessly in the data.
+
+2008-02-19 22:26 thor
+
+ * trunk/NEWS, trunk/configure.ac: Preparing for 1.2.1 release.
+
+2008-02-19 11:48 thor
+
+ * trunk/src/mpg123.c: Fixing the loosing of freshness for a track
+ when we seem to jump over the start_frame for some reason. This
+ was the cause for no verbose info being printed for some
+ internet streams... stream was always treated as fresh file
+ (before reaching first frame to be actually played). Now isn't
+ there some bug behind that in libmpg123 that causes the first
+ frame number for mpg123 to be 2, for example, instead of 0?
+
+2008-02-11 01:58 thor
+
+ * trunk/src/audio.c: Add an output write loop to handle
+ SIGSTOP/CONT operation (bug 1890563).
+
+2008-02-08 10:07 thor
+
+ * trunk/src/libmpg123/parse.c: A hack to loosen stream check
+ strictness... discarding the first header on resync. That at
+ least enables playback of the test file of bug 1889051 ... but
+ may introduce other false positives again. Actually, the problem
+ of 1889051 is a false positive for the fist header; which
+ _passes_ the text for a following valid header after that frame.
+ What a coincidence... Should I test for the next 2 frames?
+ MPlayer doesn't show the short distortion that mpg123 shows in
+ decoding the first (invalid, but strangely decodable) frame.
+ Guess the best to do is to finally rewrite that frame
+ reading/searching function to be more consistent and tunable for
+ - bytes of junk to skip - resync limit (we have that already) -
+ number of frames/headers readahead for assuring a valid stream I
+ would like to have a 1.2.1 release with just the last bugfix
+ (endless loop in resync) and perhaps a variant of the current
+ hack after I spent some more thought and testing on it (does
+ mpg123 still pass the nasty test files that made me make the
+ resync that strickt?). Then, for 1.3.0, the tunable resync
+ should enter the scene.
+
+2008-02-07 17:12 thor
+
+ * trunk/NEWS, trunk/configure.ac, trunk/src/libmpg123/parse.c: fix
+ resync with free format headers in there... header_check did not
+ fail for them, though we do not support free format
+
+2008-02-03 12:57 thor
+
+ * trunk/AUTHORS: complete name of Michael in AUTHORS
+
+2008-01-31 21:21 thor
+
+ * trunk/NEWS, trunk/src/common.c: OK, another late change for
+ 1.2.0 ... fix mpg123 -v on Win32 (an #ifndef missing for
+ select() on stderr).
+
+2008-01-30 23:52 thor
+
+ * trunk/AUTHORS, trunk/Makefile.am, trunk/NEWS,
+ trunk/NEWS.libmpg123, trunk/doc/THANKS, trunk/man1/mpg123.1: The
+ documentation stuff for 1.2.0 ... forgot it earlier.
+
+2008-01-30 22:48 thor
+
+ * trunk/autogen.sh, trunk/configure.ac: Fixing build on Win32 with
+ correct buffer disabling in configure and also generating the
+ mpg123.spec directly in autogen.sh (prevent regeneration by
+ configure). This is version 1.2.0 of mpg123...
+
+2008-01-30 22:44 thor
+
+ * trunk/src/mpg123.c: Let the library paremeter error message
+ indicate the parameter setting that failed by number.
+
+2008-01-27 18:47 thor
+
+ * trunk/NEWS.libmpg123: A separate file to have overview on
+ libmpg123 changes.
+
+2008-01-27 18:36 thor
+
+ * trunk/src/libmpg123/frame.h, trunk/src/libmpg123/optimize.h:
+ Ahem, _now_ remove the redundant optimize stuff from frame.h .
+
+2008-01-27 18:35 thor
+
+ * trunk/src/mpg123.c: Regression fix: Ignore premature end of
+ audio flushing when we got SIGINT (that showed in error/quit
+ with OSS output on Ctrl+C instead of going to next track).
+
+2008-01-27 13:55 thor
+
+ * trunk/Makefile.am, trunk/mpg123.spec.in: RPM stuff: - Do not
+ distribute the preliminary fedora spec file... it's outdated and
+ any additional spec file confuses rpmbuild. - Remove specific
+ BuildPrereq for making it "just work" on SuSE (in case the
+ unnamed prereq is met...). - Do not force default output to
+ alsa, as alsa may not be built! Automatic selection works (worst
+ case on linux is OSS).
+
+2008-01-27 12:38 thor
+
+ * trunk, trunk/mpg123.spec.in: Really adding that spec file.
+
+2008-01-27 12:33 thor
+
+ * trunk/Makefile.am, trunk/configure.ac: Add Michael's generic
+ mpg123.spec.in .
+
+2008-01-27 12:32 thor
+
+ * trunk/src/audio.c: Initialize ao->is_open also for fake modules.
+
+2008-01-27 10:16 thor
+
+ * trunk/configure.ac: Replace AC_TYPE_ macros with direct calls to
+ AC_CHECK_TYPE, to get some easy compatibility with older
+ autoconf.
+
+2008-01-27 10:14 thor
+
+ * trunk/src/libmpg123/Makefile.am: Adding i486 files to
+ Makefile.am so that they are indeed in the distribution (bug
+ 1879274).
+
+2008-01-27 10:08 thor
+
+ * trunk/configure.ac, trunk/src/libmpg123/decode_i386.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/optimize.h: Fix
+ i486 build for not claiming i386 decoder support, removing the
+ redundant optimization definitions from frame.h along the way.
+
+2008-01-26 15:33 thor
+
+ * trunk/configure.ac, trunk/doc/examples/scan.c,
+ trunk/src/libmpg123/Makefile.am, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/libmpg123/parse.c,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h: Initializing
+ framesize (as pointed out by "Gates Fan"). Adding resync limit
+ as tunable parameter, with possible setting to -1 to scan
+ through all available data for next valid MPEG frame.
+
+2008-01-26 14:44 thor
+
+ * trunk/src/Makefile.am: %-style patterns rules are a GNU make
+ extension... so make it compatible.
+
+2008-01-18 13:36 thor
+
+ * trunk/Makefile.am: adding autogen.sh to distribution
+
+2008-01-16 17:31 thor
+
+ * trunk/Makefile.am: remove dead entries for rpm spec
+
+2008-01-16 17:17 thor
+
+ * trunk/rpm/fedora4/mpg123-1.0.1.spec: another RPM spec fix
+
+2008-01-16 17:16 thor
+
+ * trunk/rpm/fedora4/mpg123-1.0.1-3.spec,
+ trunk/rpm/fedora4/mpg123-1.0.1.spec: another one
+
+2008-01-16 17:15 thor
+
+ * trunk/rpm/fedora4/mpg123-1.0.1-2.spec,
+ trunk/rpm/fedora4/mpg123-1.0.1.spec: Putting the versions
+ together.
+
+2008-01-16 17:14 thor
+
+ * trunk/configure.ac: Accept --with-audio=foo,bar,bang just as
+ well as --with-audio="foo bar bang".
+
+2008-01-16 17:13 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am: Remove the special
+ handling of pkglibdir in configure.ac and let the Makefile
+ define PKGLIBDIR instead in AM_CPPFLAGS. That is less error
+ prone and lets the automagic properly work out pkglibdir.
+ Hopefully it fixes the RPM build problems on fedora... not
+ entirely sure what kind of build they actually do.
+
+2008-01-16 11:06 thor
+
+ * trunk/Makefile.am, trunk/configure.ac: The next dev vesion...
+ with the forgotten rpm spec files...
+
+2008-01-15 02:19 thor
+
+ * trunk/NEWS, trunk/README, trunk/configure.ac: Prepare for 1.1.0
+ release.
+
+2008-01-15 02:13 thor
+
+ * trunk/rpm, trunk/rpm/fedora4, trunk/rpm/fedora4/README,
+ trunk/rpm/fedora4/mpg123-1.0.1-2.spec,
+ trunk/rpm/fedora4/mpg123-1.0.1-3.spec,
+ trunk/rpm/fedora4/mpg123-1.0.1.spec: Store Michael's (not
+ Hipp;-) attempts at fedore RPMs.
+
+2008-01-13 14:34 thor
+
+ * trunk/src/mpg123.c: Soften the -q option: Now you are able to
+ increase verbosity after -q again: mpg123 -v -v -v -q is silent,
+ while mpg123 -v -v -q -v still gives progress display.
+
+2008-01-01 16:19 thor
+
+ * trunk/src/term.c, trunk/src/term.h: A tribute to the commands
+ that can obliterate your screen (or the idea of running mpg123
+ -q -C): - key for printing ID3 tag info ([t]) - key for printing
+ MPEG frame header info ([m])
+
+2008-01-01 16:06 thor
+
+ * trunk/src/mpg123.c: Allow enabling of progress display in
+ terminal even when -q was given on command line.
+
+2008-01-01 15:41 thor
+
+ * trunk/src/mpg123.c, trunk/src/mpg123app.h, trunk/src/playlist.c,
+ trunk/src/playlist.h, trunk/src/term.c, trunk/src/term.h: More
+ fun at the terminal: - key for going to previous track ([d],
+ because it's left of [f] usually... this is a place where a
+ config file makes sense). - key for printing current playlist -
+ some modifications in main player and playlist code to support
+ this
+
+2007-12-30 16:31 thor
+
+ * trunk/src/libmpg123/id3.c: Really stop tag parsing when reaching
+ padding. Immediately.
+
+2007-12-30 16:11 thor
+
+ * trunk/src/libmpg123/id3.c: More quietness in id3.c .
+
+2007-12-30 15:57 thor
+
+ * trunk/src/libmpg123/id3.c, trunk/src/libmpg123/parse.c: More
+ robust ID3v2 support; On parse error in tag, the parsing of the
+ tag just stops -- not the MPEG parsing! The tag parsing function
+ shall now return: <0 for read errors only (possibly just need
+ feed) 0 for unparseable tag (no new info) >0 for at least some
+ successfully parsed info (even partial)
+
+2007-12-28 19:16 thor
+
+ * trunk/NEWS, trunk/src/libmpg123/parse.c: - more on demand
+ verbosity in parser (lame/xing/info tag) - update NEWS for next
+ feature release
+
+2007-12-28 18:18 thor
+
+ * trunk/xmms2-plugin/mpg123/mpg123.c: Cleaning up the XMMS2 plugin
+ a bit... preparing for submitting it to them.
+
+2007-12-28 14:32 thor
+
+ * trunk/configure.ac: Introducing a scheme: The SVN trunk is the
+ development version for 1.1.0 release (1.1.0-dev).
+
+2007-12-28 14:31 thor
+
+ * trunk/NEWS, trunk/src/audio.c, trunk/src/module.c: Merge more
+ module loader safety changes from 1.0.1 release: - Check for
+ failure of getting working dir or module dir. - Fix the module
+ loading error check in audio.c to catch it at the right time.
+
+2007-12-28 13:57 thor
+
+ * trunk/src/module.c: What a bug! The increased path buffer has
+ not been stored in the path buffer pointer! Of course that's
+ causing sf.net bug 1859413. So I finally got the view on my
+ blatant mistake as a late christmas gift.
+
+2007-12-23 13:58 thor
+
+ * trunk/src/output/arts.c: the missing source!
+
+2007-12-23 13:38 thor
+
+ * trunk/AUTHORS, trunk/configure.ac, trunk/src/output/Makefile.am:
+ Work on the next version begins... initial aRts support now.
+
+2007-12-23 11:32 thor
+
+ * trunk/NEWS: Late NEWS.
+
+2007-12-23 11:31 thor
+
+ * trunk/src/Makefile.am, trunk/src/output/Makefile.am: Late fix:
+ Make VPATH builds find the mpg123.h in the build directory.
+
+2007-12-23 11:03 thor
+
+ * trunk/NEWS, trunk/configure.ac: Going to be 1.0.0!
+ * trunk/man1/mpg123.1: Updated the man page with some command line
+ parameters.
+
+2007-12-23 10:35 thor
+
+ * trunk/doc/README.remote, trunk/src/control_generic.c: Update
+ remote control doc and push version of interface to v3.
+
+2007-12-23 10:08 thor
+
+ * trunk/configure.ac: Streamline the (experimental) floating point
+ decoder by dropping modules as no normal output modules supports
+ float as of now.
+
+2007-12-23 09:52 thor
+
+ * trunk/configure.ac: Initialize pkgconfig before using in
+ configure, fixes some configs (unsurprisingly)...
+
+2007-12-23 09:47 thor
+
+ * trunk/configure.ac: Fix copy'n'pase artifact in configure help
+ output (sse_alone).
+
+2007-12-20 22:26 thor
+
+ * trunk/src/output/pulse.c: Ooops, in case of error, something
+ erroneous should be returned by pulse_write().
+
+2007-12-20 22:20 thor
+
+ * trunk/src/output/pulse.c: Fix pulseaudio write function's return
+ value and, while being there also the initial open with default
+ audio format.
+
+2007-12-18 10:30 thor
+
+ * trunk/NEWS, trunk/configure.ac: Going to be 1.0rc3 with updated
+ NEWS.
+
+2007-12-18 10:25 thor
+
+ * trunk/src/libmpg123/parse.c, trunk/src/libmpg123/tabinit.c: Some
+ cleanup regarding QUIETness.
+
+2007-12-18 10:18 thor
+
+ * trunk/src/libmpg123/getbits.c: Remove that file, it's unused and
+ distracts.
+
+2007-12-18 10:14 thor
+
+ * trunk/src/libmpg123/id3.c: More verbosity on level 4: Tell about
+ ID3 encodings.
+ * trunk/AUTHORS: Added ravenexp for reworked win32 output.
+
+2007-12-13 01:10 thor
+
+ * trunk/configure.ac: Disable buffer when compiling CoreAudio
+ directly into binary (not as module).
+
+2007-12-10 00:51 thor
+
+ * trunk/configure.ac: It's rc3-dev now ... release on 3rd advent?
+ ;-)
+ * trunk/TODO: Again: Try to note stuff to do _later_. 1.0 is first.
+
+2007-12-10 00:50 thor
+
+ * trunk/src/output/jack.c: Fixing that one... The capabilities
+ inquiry does not work when the open function fails out on the
+ first one where native audio settings are required via format=-1
+ etc.!
+
+2007-12-09 15:12 thor
+
+ * trunk/configure.ac: Naming it 1.0rc2.
+
+2007-12-09 15:01 thor
+
+ * trunk/Makefile.am, trunk/NEWS, trunk/src/audio.c,
+ trunk/src/audio.h, trunk/src/buffer.c, trunk/src/mpg123.c,
+ trunk/src/xfermem.c, trunk/test/forkfaint.c: Completed the
+ output abstraction (also in buffer; also unified closing of
+ output stuff with exit_output). Made mpg123 check for errors in
+ output (while writing - so after _opening_ was successful) so
+ that it does't rage-decode in invalid files/pipes.
+
+2007-12-09 13:01 thor
+
+ * trunk/src/mpg123.c: Those { } were imortant!
+
+2007-12-09 12:48 thor
+
+ * trunk/src/mpg123.c: Include windows.h for Sleep().
+
+2007-12-09 12:47 thor
+
+ * trunk/configure.ac: Disable modules per default on windows.
+
+2007-12-09 03:12 thor
+
+ * trunk/src/audio.c: test and fix DNOXFERMEM
+
+2007-12-09 03:07 thor
+
+ * trunk/src/audio.c, trunk/src/mpg123.c, trunk/src/mpg123app.h,
+ trunk/src/wav.c: Glue the wav/au/cdr and stdout writers to the
+ module structure; allowing integration with audio capabilities
+ and easier handling in mpg123 code. Plus, they now work again
+ after my output changes had ruled them out;-)
+
+2007-12-08 15:10 thor
+
+ * trunk/NEWS: more news for 1.0rc2
+
+2007-12-08 14:47 thor
+
+ * trunk/src/id3print.c: Wile being very overly careful on empty
+ ID3v2 data, I prevented ID3v1 from filling gaps! Now we have a
+ synthesis again.
+
+2007-12-08 14:35 thor
+
+ * trunk/src/libmpg123/decode_ntom.c: Switch to SAFE_NTOM since I
+ really have seen the bad things that happen with 32bits integer
+ multiplication in the short formula. I had the good code
+ there... on 64bit arch, one may switch back to the unsafe
+ formula, but it remains theoretically unsafe.
+
+2007-12-08 13:31 thor
+
+ * trunk/src/audio.c, trunk/src/buffer.c: Buffer now says "Hey" now
+ on succesful startup and the main process checks for that. A bad
+ audio module setting now has the expected result... abort at the
+ correct place.
+
+2007-12-08 13:19 thor
+
+ * trunk/src/control_generic.c, trunk/src/mpg123.c: cleanup
+
+2007-12-08 13:15 thor
+
+ * trunk/src/audio.c: remove that debugging line
+
+2007-12-08 13:14 thor
+
+ * trunk/src/audio.c: Fix forced rate audio format detection...
+ result up to now was _no_ support detection at all because of
+ comparison of size_t with -1. Why the heck doesn't -Wall point
+ me at this?
+
+2007-12-08 05:01 thor
+
+ * trunk/NEWS: More changes noted... hope to tag this 1.0rc2
+ tomorrow. This rc then really should only get fixes...
+
+2007-12-08 04:58 thor
+
+ * trunk/src/control_generic.c: Added TAG command for retrieving
+ the whole lot of ID3v2 (and ID3v1 again) data. Updated help
+ text, applied the @H { ... @H } grouping like introduced for the
+ TAG.
+
+2007-12-08 04:09 thor
+
+ * trunk/src/control_generic.c: Print full ID3v1.1 info and, a tad
+ more interesting, some ID3v2 data.
+
+2007-12-08 04:07 thor
+
+ * trunk/src/libmpg123/libmpg123.c: The seek functions now all try
+ to init the track; so that for example mpg123_seek(mh, 0,
+ SEEK_SET) Can be used to scan to the first frame, possibly
+ finding ID3v2 and Lame tag info.
+
+2007-12-08 03:24 thor
+
+ * trunk/NEWS: news for 1.0rc2
+
+2007-12-08 03:11 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/mpg123.c:
+ complete the --delay
+
+2007-12-08 03:00 thor
+
+ * trunk/src/term.c: some debugging removed
+
+2007-12-08 02:51 thor
+
+ * trunk/TODO_1.0: Yes, the buffer stuff has been improved... that
+ leaves only the platform testing/fixing and that parallel make
+ thing on the list.
+
+2007-12-08 02:50 thor
+
+ * trunk/TODO_1.1: Yeah, funny. Tried to have the discipline to
+ plan stuff for 1.1 before 1.0 is out. The improved buffer
+ interaction is there. Now.
+
+2007-12-08 02:48 thor
+
+ * trunk/src/term.c: Remove the forced DEBUG. Done with that.
+
+2007-12-08 02:46 thor
+
+ * trunk/src/mpg123.c, trunk/src/term.c: Fix buffer behaviour with
+ seeking, in the only way that seemed workable: When you press a
+ seek key in buffer mode, the buffer is stopped and you can seek
+ in peace to your position (makes most sense to have verbosity
+ turned on). After reaching the position, you have to press the
+ stop/un-stop key to restart playback. Seeking wile listening to
+ the bits passing by is really, really non-trivial with the
+ buffer because of the timing between keypress repeats and the
+ buffer refilling. When you want it really interactive, you don't
+ want to have the buffer in between... I think the current
+ solution is close to a local optimum for this, it's the tradeoff
+ you have to do. Even seeking _inside_ the buffer won't help
+ seeking backwards, as the refill would kick in in the same way.
+
+2007-12-08 01:20 thor
+
+ * trunk/src/mpg123.c: Need to check command line parameters and
+ possibly give usage _before_ starting the output.
+
+2007-12-08 01:16 thor
+
+ * trunk/src/audio.c, trunk/src/buffer.c, trunk/src/buffer.h,
+ trunk/src/control_generic.c, trunk/src/mpg123.c,
+ trunk/src/mpg123app.h, trunk/src/term.c, trunk/src/xfermem.c,
+ trunk/src/xfermem.h: More communicative buffer and normalized
+ usage of which. No nastly killing or SIGSTOP anymore; buffer
+ either plays or waits for commands, including termination. This
+ fixes the terminal behaviour with track skip and seek when
+ stopped: The buffer can be resynced while being stopped, so no
+ forced restart of playback on track skip anymore. The only
+ nagging usability issue remaining with the buffer is the
+ inability to seek while playing. Refilling of the buffer effects
+ in fast-forward only.
+
+2007-12-08 01:11 thor
+
+ * trunk/src/libmpg123/stringbuf.c: remove a debugging line
+
+2007-12-07 23:02 thor
+
+ * trunk/src/output/portaudio.c: A typo broke portaudio18 for me...
+ the undefined function was just a little compiler warning;
+ dynamic modules are a bit ignorant there. V18 works now (again),
+ v19 is bitching on my box, but I have a report that it works for
+ someone else.
+
+2007-12-07 04:18 thor
+
+ * trunk/TODO_1.1: differe todo, now more on term.c with buffer
+
+2007-12-07 03:43 thor
+
+ * trunk/src/output/portaudio.c: More compatibility hacking is
+ needed for portaudio19... there are some differing definitions.
+ The detection in configure works, the conditional compilation,
+ too -- but only portaudio v19 itself gives me the creeps. v18
+ works normally, v19 just wants to block or segfault on my box.
+ The segfaul is _inside_ portaudio:-/
+
+2007-12-07 02:57 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/buffer.c,
+ trunk/src/mpg123.c, trunk/src/xfermem.h: Some audio handling
+ rework, mainly to clean up the mess with the buffer. The initial
+ reason was to install safeguards against multiple ao->close()
+ operations, which was done, too. Now either the buffer or the
+ main mpg123 process touch the audio devices; in the buffered
+ case the main program querying the buffer process for audio
+ capabilities. That and some other potential bug(s) fixed. This
+ is too much movement in a release candidate, but it is necessary
+ - we want some quality for 1.0!
+
+2007-12-07 02:53 thor
+
+ * trunk/src/id3print.c: Do the check for NULL source string
+ earlier; it is not that serious since mpg123_copy_string checks
+ for that, though.
+
+2007-12-07 02:48 thor
+
+ * trunk/src/libmpg123/id3.c: More safety for ID3 links: null them
+ on every id3_link run (do not rely on a new track being loaded).
+
+2007-12-07 02:43 thor
+
+ * trunk/src/libmpg123/id3.c, trunk/src/libmpg123/stringbuf.c: ID3
+ initialization was missing comment = NULL ... that could have
+ nasty consequences, an invalid pointer being presented if a new
+ track didn't overwrite it.
+
+2007-12-07 02:15 thor
+
+ * trunk/README: Some lines about the beginning.
+
+2007-12-06 22:22 thor
+
+ * trunk/src/audio.c: There was an initial mpg123_replace buffer
+ there. Not good.
+
+2007-12-06 22:07 thor
+
+ * trunk/TODO_1.1, trunk/configure.ac, trunk/man1/mpg123.1,
+ trunk/src/mpg123.c, trunk/src/mpg123app.h,
+ trunk/src/output/portaudio.c: accidential group commit of
+ half-baken stuff... - fragments of --delay - portaudio v18 and
+ v19 handling - thinking about safeguarding audio output close
+ (portaudio segfauls when close is done twice) - TODO for 1.1:
+ buffer+audio rework
+
+2007-12-06 21:53 thor
+
+ * trunk/src/audio.c: remove unused defines
+
+2007-12-05 01:27 thor
+
+ * trunk/configure.ac, trunk/src/output/Makefile.am,
+ trunk/src/output/esd.c, trunk/src/output/esound.c: Renamed
+ esound.c to esd.c again, as that's the name it is referred to in
+ places and also to keep the old --with-audio=esd (everyone calls
+ it ESD, perhaps only ESD people themselves say ESounD...). Also,
+ to keep all audio output code in the distribution and to ease
+ testing/fixing, I added 6 unsupported output module configs to
+ configure.ac / Makefile.am. Of course, that part of
+ configure/build is not tested...
+
+2007-12-04 22:33 thor
+
+ * trunk/xmms2-plugin/mpg123/mpg123.c: Update the XMMS2 plugin for
+ the mpg123_rates change.
+
+2007-12-04 22:31 thor
+
+ * trunk/INSTALL, trunk/NEWS, trunk/README: Trying to update the
+ docs a bit.
+
+2007-12-04 21:37 thor
+
+ * trunk/NEWS: got old news from 0.68
+ * trunk/src/audio.c: stray debugging line
+
+2007-12-04 16:01 thor
+
+ * trunk/autogen.sh, trunk/configure.ac, trunk/src/audio.c,
+ trunk/src/libmpg123/format.c, trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/mpg123lib_intern.h, trunk/src/mpg123app.h:
+ Worked on the win32 crash... found out that the access to the
+ exported (?!) array mpg123_rates[] and/or mpg123_encodings[]
+ blows with the DLL. Exporting functions to access the arrays
+ instead seems to work; and is generally the better way, perhaps.
+ So there is an API change from mpg123_rates[] to
+ mpg123_rates(const long **, size_t *) and likewise for
+ mpg123_encodings. Along with the win32 hacking I actually
+ enabled the EXPORT define stuff, but this made no difference
+ anyway (I guess libtool just uses libmpg123.sym and that's it).
+ Another issue, interwoven but unrelated (sorry...) is the
+ hacking of autotool stuff to omit C++, F77 compiler tests that
+ libtool macros trigger. A future version of libtool shall be
+ fixed and won't need these hacks.
+
+2007-12-04 10:54 thor
+
+ * trunk/src/output/win32.c: That lay around for a while: proper
+ returning out of win32 write function.
+ * trunk/src/mpg123app.h: Be more friendly to win32: unistd.h can
+ be there; use the check for signal.h
+
+2007-12-04 10:53 thor
+
+ * trunk/configure.ac: prepare for rc1 ... though still win32
+ trouble there
+ * trunk/src/playlist.c: move this index variable inside the block
+ it is needed in (was a compile warning on win32)
+
+2007-12-03 14:38 thor
+
+ * trunk/src/id3print.c: Oh, my. I didn't test in non-UTF shell ...
+ now the utf8ascii in id3print.c copies with NULL source. Perhaps
+ I should really just let these pointers point to an empty string
+ when there is no info? Even if there is an empty string, the
+ fill should be >0 because of the closing zero. So a string with
+ p[0] = 0, size=1 and fill=0 could be a safe alternative to
+ NULL...
+
+2007-12-02 21:37 thor
+
+ * trunk/src/libmpg123/id3.c: Just choose the last comment if no
+ generic comment is there.
+
+2007-12-02 20:24 thor
+
+ * trunk/xmms2-plugin/mpg123/mpg123.c: Fix the xmms2 plugin for
+ changed ID3v2 API.
+
+2007-12-02 15:35 thor
+
+ * trunk, trunk/doc, trunk/src/libmpg123, trunk/test: more ignores
+
+2007-12-02 15:29 thor
+
+ * trunk/doc/examples: ignore binaries
+ * trunk/m4: removed that empty m4/
+
+2007-12-02 15:28 thor
+
+ * trunk/Makefile.am, trunk/autogen.sh, trunk/configure.ac,
+ trunk/m4/ac_c_const.m4: OK, tackled this differently. Hacking of
+ -Wno-error into CFLAGS doesn't really work (not properly, at
+ least)... and also the exiting working with CFLAGS that
+ influence the foolowing tests in configure was not good. Now we
+ are a bit more careful with the mods (also redirecting -DSTUFF
+ to CPPFLAGS instead of CFLAGS) and there is a blocker check at
+ beginning. configure will just fail when there is -Werror in the
+ flags, because it is really bad with several tests. Note that
+ this also implies that make distcheck will always fail in this
+ controlled way when run after a configure that generated CFLAGS
+ with -Werror. These generated CFLAGS are carried over to the
+ configure run in the distcheck dir... dunno if and how one could
+ change that.
+
+2007-12-02 13:17 thor
+
+ * trunk/Makefile.am, trunk/autogen.sh, trunk/m4,
+ trunk/m4/ac_c_const.m4: For now including a private copy of
+ AC_C_CONST that works with -Wall -Werror -pedantic ... I don't
+ know if I break the test for some obscure compiler, but for now
+ it's only the jack module that really depends on this test to
+ work - and that won't be used on old and obscure systems.
+
+2007-12-02 01:09 thor
+
+ * trunk/doc/Makefile.am: adding some distfiles
+
+2007-12-02 00:52 thor
+
+ * trunk/src/libmpg123/libmpg123.c: Code conformity: There was a
+ declaration in code.
+ * trunk/configure.ac: Separate --enable-debug from the developer
+ CFLAGS (-Wall -Werror -pedantic). Some user should be able to
+ get debugging stuff without being bothered with our ISO C
+ conformity or whatnot. The full set of complaints and failues is
+ available via --enable-nagging .
+
+2007-12-02 00:41 thor
+
+ * trunk/src/libmpg123/id3.c: remove that debugging line
+
+2007-12-02 00:17 thor
+
+ * trunk/src/libmpg123/id3.c: Oops! Now the ID3v2.2 hack is
+ complete with the 3-bytes-to-long macro actually taking only 3
+ bytes.
+
+2007-12-02 00:15 thor
+
+ * trunk/src/libmpg123/id3.c: Hacked ID3v2.2 support... mapping
+ text frames to ID3v2.3 . The old RVA frame is not supported
+ (it's a bit ill-defined, anyway, beginning with "What do the
+ values mean?"). Important: This is not tested as I am unable to
+ get my hands on a v2.2 tagged file atm... I have once
+ encountered one on someone else's Mac where iTunes created such
+ cruft.
+
+2007-12-02 00:12 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: Note about ID3v1.1 .
+
+2007-12-02 00:02 thor
+
+ * trunk/doc/examples/id3dump.c: Do not leave the data fields
+ modified after print_lines - that screwed raw tag display.
+
+2007-12-01 22:19 thor
+
+ * trunk/doc/examples/id3dump.c: last clean up for today.
+
+2007-12-01 22:17 thor
+
+ * trunk/doc/examples/id3dump.c: Oh, man... surprising how many
+ errors you can make in such a simple program. While cleaning up,
+ I found the innocent lang[3] = 0 on a variable defined as char
+ lang[3] ... just now made the program segfault. Coders, you have
+ to keep your eyes open!
+
+2007-12-01 22:02 thor
+
+ * trunk/doc/examples/id3dump.c: Baah! That loop was even with the
+ wrong limit! Will vanish now anyway.
+ * trunk/doc/examples/id3dump.c: remove leftovers
+
+2007-12-01 22:01 thor
+
+ * trunk/doc/examples/id3dump.c: Simplify v1 printing... that
+ looping was too clever - and didn't save code lines!
+
+2007-12-01 21:42 thor
+
+ * trunk/doc/examples/id3dump.c, trunk/src/id3print.c,
+ trunk/src/libmpg123/id3.c, trunk/src/libmpg123/id3.h,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/stringbuf.c: Some things relating to ID3v2
+ handling: - the named entries for artist, album, etc in struct
+ mpg123_id3v2 are now pointers... - ... into the new arrays of
+ ID3v2 text, comment and extra (TXXX) data - That makes a lot
+ more info directly accessible; which id3dump now does access -
+ adapted id3print.c to the pointer thing (by dropping some & ;-)
+ - mpg123_copy_string() now produces an empty string (_not_ "")
+ when copying from NULL id3.c got a bit of structure, but the
+ main parsing function is still to bloated. In general, I hope
+ this change of ID3v2 handling makes sense. You have more data
+ plus the possibility to easily loop through the entries...
+
+2007-12-01 17:24 thor
+
+ * trunk/doc/examples/Makefile, trunk/doc/examples/id3dump.c,
+ trunk/src/id3print.c, trunk/src/libmpg123/id3.c,
+ trunk/src/libmpg123/mpg123.h.in,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/stringbuf.c: Made ID3 code store all
+ comments in a list (API change in mpg123_id3v2 struct!) and
+ while doing that seen what I did wrong last time: I ignored the
+ encoding of the description field.
+
+2007-12-01 14:08 thor
+
+ * trunk/src/libmpg123/format.c, trunk/src/libmpg123/libmpg123.c:
+ mpg123_format() now also intiializes the track if necessary.
+ Waiting for MPG123_NEW_FORMAT to happen on read can be lame when
+ you really want to know it in advance.
+
+2007-12-01 13:30 thor
+
+ * trunk/doc/examples/mpg123_to_wav.c: move that comment into
+ cleanup itself
+
+2007-12-01 13:27 thor
+
+ * trunk/doc/examples/mpg123_to_wav.c: mpg123_to_wav with some more
+ care.
+
+2007-11-30 23:51 thor
+
+ * trunk/doc/doxy_examples.c, trunk/doc/doxygen.conf: id3dump.c
+ example file was missing...
+
+2007-11-30 23:20 thor
+
+ * trunk/doc/doxy_examples.c, trunk/doc/doxygen.conf,
+ trunk/doc/examples/mpglib.c: Include the examples in API doc.
+
+2007-11-30 22:09 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: a bit better english
+
+2007-11-30 22:08 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: a list for the SEEK_*
+
+2007-11-30 22:05 thor
+
+ * trunk/configure.ac: 1.0rc0 now ... shall be 1.0rc1 soon.
+
+2007-11-30 22:04 thor
+
+ * trunk/doc/html, trunk/doc/man: Know these dirs, ignore their
+ contents.
+ * trunk/TODO_1.0: A lot less here: - buffer crash fixed - jump bug
+ fixed - make distcheck worked!
+
+2007-11-30 22:03 thor
+
+ * trunk/src/libmpg123/libmpg123.c, trunk/src/libmpg123/parse.c:
+ Fix the broken first jump in remote control: mpg123_timeframe()
+ needs to initialize the track for returning something non zero.
+
+2007-11-30 22:00 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: More functions possibly return
+ message codes...
+
+2007-11-30 21:59 thor
+
+ * trunk/src/mpg123.c, trunk/src/xfermem.c, trunk/src/xfermem.h:
+ Fix the buffer crash: replacing the libmpg123 buffer is no good
+ idea when libmpg123 has no idea of it being a ring buffer! Now
+ we decode normally and copy the data from mpg123 to the buffer
+ in a more appropriate manner.
+
+2007-11-30 08:51 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: make the /todos TODOs again...
+ should vanish on release
+
+2007-11-30 02:38 thor
+
+ * trunk/doc/doxygen.conf, trunk/doc/doxyhead.xhtml: Fitted the
+ doxygen stuff into the website; a hacked doxygen.css does the
+ trick.
+
+2007-11-30 02:01 thor
+
+ * trunk/doc/doxygen.conf: we want SSI
+
+2007-11-30 01:59 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: that todo is official...
+
+2007-11-30 01:58 thor
+
+ * trunk/doc/doxygen.conf, trunk/doc/doxyhead.xhtml: Use a header
+ to fit into mpg123 website.
+
+2007-11-30 01:48 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: just a dot
+ * trunk/src/libmpg123/mpg123.h.in: a space line less
+
+2007-11-30 01:46 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: a space line less
+
+2007-11-30 01:44 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: fix the low level group
+
+2007-11-30 01:39 thor
+
+ * trunk/doc/doxygen.conf: Create more man ... perhaps now one can
+ think about installing all pages that start with mpg123_ (or
+ MPG123_ for the constants, even?).
+
+2007-11-30 01:21 thor
+
+ * trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in: A good deal of changes of
+ mpg123.h documentation; functional change is integration of
+ status messages with error codes (also in mpg123_strerror()).
+
+2007-11-29 09:15 thor
+
+ * trunk/Makefile.am: include makedll.sh in distribution
+
+2007-11-28 23:39 thor
+
+ * trunk/TODO_1.0: More thought on the Solaris/buffer/? segfault.
+
+2007-11-28 23:29 thor
+
+ * trunk/TODO_1.0: I had parallel make run fail and the following
+ single run being OK...
+
+2007-11-28 23:28 thor
+
+ * trunk/src/libmpg123/libmpg123.c: mpg123_index shall return
+ MPG123_OK when it's OK.
+
+2007-11-28 23:27 thor
+
+ * trunk/makedll.sh: disbale modules for dll build, as they won't
+ do on windows anyway.
+
+2007-11-28 18:57 thor
+
+ * trunk/TODO_1.0: more on the segfault on solaris... more likely
+ buffer bug
+
+2007-11-28 18:18 thor
+
+ * trunk/TODO_1.0: A bug noted in solaris (presumably a generic bug
+ in random playback), note about make distcheck.
+
+2007-11-28 15:39 thor
+
+ * trunk/Makefile.am, trunk/configure.ac, trunk/doc/Makefile.am:
+ fixing make dist for doc/
+
+2007-11-28 12:11 thor
+
+ * trunk/doc/examples/scan.c: Just swapping headers to confirm that
+ stdio.h is not needed for mpg123.h anymore.
+
+2007-11-28 12:10 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: We don't need stdio.h anymore
+ (the print function is gone).
+
+2007-11-28 12:08 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/libmpg123.sym,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/term.c: Fix the index
+ stuff... libmpg123 API now contains mpg123_index instead of
+ mpg123_print_index and mpg123 does the printing itself.
+
+2007-11-28 11:16 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: We have RVA and volume
+ handling, remove these TODO lines, though adding a remark about
+ preamp (easy to do).
+
+2007-11-28 11:14 thor
+
+ * trunk/TODO_1.0: We need to get the buffer audio handling
+ straight some time ... dunno if that's for 1.0 .
+
+2007-11-28 11:12 thor
+
+ * trunk/TODO_1.0: Updated that - less TODO overall, but
+ control_generic.c needs a look.
+
+2007-11-28 11:07 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: comment cosmetics
+
+2007-11-28 11:06 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: MPG123_ENC_ANY doesn't need
+ itself for the definition.
+
+2007-11-28 11:02 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: more precise comments for
+ mpg123_init() and mpg123_exit()
+
+2007-11-28 10:52 thor
+
+ * trunk/src/control_generic.c, trunk/src/mpg123.c: Make remote
+ control work again; there was stray audio handling code still
+ there.
+
+2007-11-28 10:42 thor
+
+ * trunk/src/libmpg123/frame.h, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/parse.c: Enable the build without GAPLESS
+ again.
+
+2007-11-28 10:10 thor
+
+ * trunk/man1/mpg123.1, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in, trunk/src/mpg123.c: - enable
+ gapless mode per default in library - add parameter operation to
+ remove flags - mpg123 --no-gapless is now needed to get
+ non-gapless decoding (the good thing is the default now;-) -
+ removed references to GAPLESS macro in mpg123 application
+
+2007-11-28 10:09 thor
+
+ * trunk/doc/examples/id3dump.c, trunk/doc/examples/mpglib.c,
+ trunk/doc/examples/scan.c: more usage info
+
+2007-11-28 10:06 thor
+
+ * trunk/doc/examples/scan.c: usage for scan
+
+2007-11-28 09:35 thor
+
+ * trunk/doc/examples/Makefile, trunk/doc/examples/id3dump.c,
+ trunk/doc/examples/mpglib.c, trunk/doc/examples/scan.c,
+ trunk/src/Makefile.am, trunk/src/id3dump.c, trunk/src/mpglib.c,
+ trunk/src/scan.c: Move example programs from src/ to
+ doc/examples/ .
+ * trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in: Fix build with latest changes
+ to mpg123.h.
+
+2007-11-28 09:34 thor
+
+ * trunk/doc/examples/mpg123_to_wav.c: get a newline at the end.
+
+2007-11-28 08:41 thor
+
+ * trunk/src/scan.c: Add a note about error checking, fix
+ description and include stdio.h .
+
+2007-11-28 08:35 thor
+
+ * trunk/src/id3dump.c: The little tool to dump ID3 tag information
+ of files. Was used in testing, may be useful in general - at
+ least shall serve as example.
+
+2007-11-28 00:06 njh
+
+ * trunk/src/libmpg123/mpg123.h.in: Seperated functions out into
+ different named groups/sections/modules
+
+2007-11-28 00:05 njh
+
+ * trunk/doc/doxygen.conf: Don't include the full paths of files
+
+2007-11-27 08:59 thor
+
+ * trunk/src/libmpg123/icy.c, trunk/src/libmpg123/icy.h,
+ trunk/src/libmpg123/readers.c, trunk/src/libmpg123/stringbuf.c:
+ Omit some redundant and unconditional header includes.
+
+2007-11-27 08:58 thor
+
+ * trunk/src/libmpg123/mpg123lib_intern.h: Don't need to include
+ that header here anymore.
+
+2007-11-27 08:57 thor
+
+ * trunk/src/libmpg123/mpg123.h.in: Some small comment changes,
+ notably correcting the description of the rate parameter in the
+ format functions.
+
+2007-11-27 00:07 njh
+
+ * trunk/doc/examples/Makefile, trunk/doc/examples/mpg123_to_wav.c:
+ My very poor first attempt at a mp3 to wav converter (but it
+ works!). Needs a lot of error handling added.
+
+2007-11-26 01:35 njh
+
+ * trunk/doc/doxygen.conf, trunk/doc/examples,
+ trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h.in: Documented lots more of the
+ libmpg123 API using Doxygen
+
+2007-11-25 13:01 thor
+
+ * trunk/src/libmpg123/system.c: Add a note about the outdatedness
+ of system.c .
+
+2007-11-25 00:53 njh
+
+ * trunk/configure.ac, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/mpg123.h, trunk/src/libmpg123/mpg123.h.in: A
+ custom mpg123.h is now generated by configure. It will only
+ #include the system headers available on the current system.
+
+2007-11-24 03:59 thor
+
+ * trunk/src/id3print.c, trunk/src/id3print.h,
+ trunk/src/libmpg123/compat.c, trunk/src/libmpg123/compat.h,
+ trunk/src/libmpg123/dnoise.c, trunk/src/libmpg123/format.c,
+ trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/getcpuflags.h, trunk/src/libmpg123/icy.c,
+ trunk/src/libmpg123/id3.c, trunk/src/libmpg123/id3.h,
+ trunk/src/libmpg123/mangle.h, trunk/src/libmpg123/mpg123.h,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/parse.h, trunk/src/libmpg123/reader.h,
+ trunk/src/libmpg123/testcpu.c, trunk/src/libmpg123/true.h,
+ trunk/src/mpglib.c, trunk/src/scan.c: A bunch of cosmetics,
+ mostly license plate.
+
+2007-11-24 03:58 thor
+
+ * trunk/src/Makefile.am: Another dangerous hack to pretend
+ revursive make handling dependencies correctly for libmpg123/ ...
+
+2007-11-24 03:38 thor
+
+ * trunk/src/libmpg123/Makefile.am: Make testcpu compile again.
+
+2007-11-23 21:07 thor
+
+ * trunk/Makefile.am, trunk/src/libmpg123/mpg123.h: doc/ has
+ nothing to build for now and some space less in mpg123.h
+
+2007-11-23 21:06 thor
+
+ * trunk/src/output/Makefile.am: Prevent empty lib/mpg123 on
+ installation when modules were disabled.
+
+2007-11-23 21:05 thor
+
+ * trunk/src/Makefile.am: Make the non-module build with shared lib
+ work... hacking the generation of the output object file as
+ recursive make call into the src/Makefile.am since the build
+ system would try to build the dependency on the output object
+ from src/, which doesn't work.
+
+2007-11-23 21:03 thor
+
+ * trunk/configure.ac: Make it possible to --disable-modules but
+ still retain the shared libmpg123 (disabled modules don't imply
+ disabled shared lib anymore).
+
+2007-11-23 21:02 thor
+
+ * trunk/src/libmpg123/id3.c: Fix a crash with zero-sized text
+ frames (duh!) after ravenexp gave the hint. Also, make reading
+ of a test tag from ravenexp work... the BOM of a UTF16 comment
+ was preceeded by a null byte (triggering the crash, actually).
+
+2007-11-22 07:27 thor
+
+ * trunk/src/audio.c, trunk/src/libmpg123/format.c,
+ trunk/src/libmpg123/mpg123.h: API cleanup: format functions
+ always take plain rates and encodings, not mpg123 indices.
+
+2007-11-22 00:43 thor
+
+ * trunk/src/output/win32.c: A new version of the win32 output,
+ this time allowing arbitrary writes. Gives sound.
+
+2007-11-22 00:43 njh
+
+ * trunk/Makefile.am, trunk/doc/Makefile.am,
+ trunk/doc/doxygen.conf, trunk/doc/html,
+ trunk/src/libmpg123/libmpg123.c, trunk/src/libmpg123/mpg123.h:
+ Started working on Doxygen documentation
+
+2007-11-21 01:20 njh
+
+ * trunk/Makefile.am, trunk/configure.ac, trunk/libmpg123.pc.in:
+ Added pkg-config file, to help other tools use libmpg123 easily
+
+2007-11-21 01:00 njh
+
+ * trunk/src/libmpg123/libmpg123.c: Fix for warning on Linux
+ PPC/gcc 4.1.2
+
+2007-11-21 00:11 njh
+
+ * trunk/src/libmpg123/decode_altivec.c,
+ trunk/src/libmpg123/optimize.h: Updated Altivec decoder to use
+ new style, based on decoder.c
+
+2007-11-20 23:09 njh
+
+ * trunk/src/common.c, trunk/src/control_generic.c,
+ trunk/src/libmpg123/frame.c, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/parse.c, trunk/src/libmpg123/readers.c,
+ trunk/src/mpg123.c: Added casts to various printf to make it
+ compile on Darwin
+
+2007-11-20 21:56 thor
+
+ * trunk/src/output/win32.c: A semicolon was needed.
+
+2007-11-20 20:24 thor
+
+ * trunk/scripts/debugdef.pl, trunk/src/libmpg123/debug.h: Added
+ ereturn macro for the frequent if(some_error_condition) {
+ error("blablabla"); return error; }
+
+2007-11-20 20:23 thor
+
+ * trunk/src/output/win32.c: Bug-fixing update from ravenexp;
+ buffer size issues still have to be sorted out...
+
+2007-11-19 09:04 thor
+
+ * trunk/test/rms16.c: Now computing the RMS with normalization of
+ the difference to the input amplitude range. The former way of
+ just normalizing to 32768 wasn't that bright an idea, I think.
+
+2007-11-18 02:45 thor
+
+ * trunk/src/libmpg123/dct64_vector.c: A general idea of
+ vectorizing dct64... still unsure if I should convert existing
+ SSE to AMD64 or do it from scratch.
+
+2007-11-18 02:44 thor
+
+ * trunk/src/libmpg123/dct64_sse64.S,
+ trunk/src/libmpg123/decode_sse64.S: These were added
+ accidentally on last commit... along with dct64_2.c, but that
+ one may stay for a while...
+
+2007-11-18 02:41 thor
+
+ * trunk/autogen.sh, trunk/src/libmpg123/dct64_2.c,
+ trunk/src/libmpg123/dct64_sse64.S,
+ trunk/src/libmpg123/decode_sse64.S, trunk/src/output/oss.c:
+ Build tool borkage... resort to hardcoding use of automake-1.9
+ for LTCCASCOMPILE ... adding note about libtool-1.5.24 being bad
+ in a different way that I don't yet know to handle properly.
+
+2007-11-18 02:26 thor
+
+ * trunk/configure.ac, trunk/src/module.c, trunk/src/mpg123.c,
+ trunk/src/mpg123app.h: Reshape the module code a bit; intention
+ was to support loading modules from location relative to mpg123
+ binary -- to make it work on Windows as it is common there. I
+ doesn't work on Windows, though, and I don't feel able to fix
+ our build system to make it work. The changes _do_ enable
+ relative loading on Linux, provided one hacks the .la files to
+ _not_ contain hardcoded absolute paths. Also, some cleanup
+ happened, so the changes go in, although their use is limited.
+
+2007-11-17 20:40 thor
+
+ * trunk/src/libmpg123/frame.c: more alignment
+
+2007-11-17 20:39 thor
+
+ * trunk/configure.ac, trunk/src/output/win32.c: Refreshed Win32
+ output; reworked by ravenex.
+
+2007-11-16 07:30 thor
+
+ * trunk/src/libmpg123/Makefile.am: We really want LTCCASCOMPILE
+ there, LTCPPASCOMPILE being a strange ill-effect of using
+ automake-1.10! With automake-1.9, LTCCASCOMPILE is the thing.
+
+2007-11-14 07:16 thor
+
+ * trunk/src/libmpg123/Makefile.am: Use $(LTCPPASCOMPILE)
+ $(DEFAULT_INCLUDES) for .S -> .lo ... does that help Windows
+ with the not found config.h?
+
+2007-11-14 07:03 thor
+
+ * trunk/src/Makefile.am: Add OUTPUT_OBJ to mpg123_DEPENDENCIES ...
+ that at least triggers a relink of mpg123 when the object
+ changed in static linking mode.
+
+2007-11-13 19:25 thor
+
+ * trunk/src/mpg123.c: timeout not on WIN32, forgot an #ifndef ...
+
+2007-11-12 21:02 thor
+
+ * trunk/src/mpg123.c, trunk/src/mpg123app.h: Added --index option;
+ run mpg123_scan() on every track before playback; perhaps that
+ helps the guy with unreliable IDE to precache files as a side
+ effect.
+
+2007-11-10 15:37 thor
+
+ * trunk/src/id3print.c, trunk/src/mpg123.c, trunk/src/mpg123app.h:
+ Re-enable the UTF-8 -> ASCII filtering, but hack a little check
+ in that just prints the UTF-8 strings when $LANG contains
+ "UTF-8". It's not proper but it works for me;-)
+
+2007-11-09 22:51 thor
+
+ * trunk/src/Makefile.legacy: Also remove decode_mmxsse from the
+ makefile.
+
+2007-11-09 22:50 thor
+
+ * trunk/src/libmpg123/decode_mmxsse.S: That one is dead.
+ * trunk/src/Makefile.legacy: Fix stupid syntax errors in
+ linux-help.
+
+2007-11-09 13:14 thor
+
+ * trunk/scripts/exportsym.pl, trunk/src/libmpg123/libmpg123.sym:
+ Made a script for filtering out the EXPORTed symbols and ran
+ that instead of caring myself for inclusion of mpg123_fmt and
+ what else I forgot.
+
+2007-11-09 00:37 thor
+
+ * trunk/src/libmpg123/libmpg123.c: Thanks again to John Stamp for
+ pointing me at these forgotten NULL checks.
+
+2007-11-09 00:32 thor
+
+ * trunk/src/libmpg123/format.c, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/libmpg123.c, trunk/src/libmpg123/mpg123.h:
+ The handling of separate parameter objects has been completed
+ for output format settings (mpg123_fmt() and friends added); now
+ also fixing a subtle bug where the defaults for output format
+ would have been at random. mpg123_format_all() and then copying
+ the uninitialized bits from the parameter object did not have
+ the desired effect... better now;-) Thanks go to John Stamp to
+ find this out with last.fm; mpg123 itself, setting format
+ support _after_ handle creation, didn't see that.
+
+2007-11-08 15:33 thor
+
+ * trunk/src/mpglib.c: update mpglib a bit...
+
+2007-11-08 15:17 thor
+
+ * trunk/src/libmpg123/libmpg123.c: Make sure the decoded bytes
+ count is set to zero when mpg123_decode() returns something like
+ MPG123_NEW_FORMAT!
+
+2007-11-08 03:30 thor
+
+ * trunk/src/audio.c, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/mpg123.c: - Allow NULL
+ for "choose default decoder" in mpg123_decoder(). - Actually
+ disabled need for that in mpg123 through using param.cpu in
+ initial handle setup. The forced rate check had to go in before
+ that (from audio.c) to ensure we get a fallback decoder when
+ needed.
+
+2007-11-08 03:08 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/frame.h,
+ trunk/src/libmpg123/parse.c: Some feeble steps to support free
+ format... just broken down some barrier; not yet added the
+ framesize parser.
+ * trunk/xmms2-plugin/mpg123/mpg123.c: Also here, use the rate
+ instead of the index.
+
+2007-11-08 03:06 thor
+
+ * trunk/src/audio.c, trunk/src/libmpg123/format.c,
+ trunk/src/libmpg123/mpg123.h: mpg123_format() now just takes the
+ actual _rate_ instead of the rate index. Makes more sense to
+ applications.
+
+2007-11-06 14:18 thor
+
+ * trunk/configure.ac, trunk/src/playlist.c: use random() instead
+ of rand() when available
+
+2007-11-06 13:55 thor
+
+ * trunk/src/playlist.c: Fix the shuffle according to bug 1777621.
+
+2007-11-06 13:09 thor
+
+ * trunk/src/mpg123.c: Hack a call to split_dir_file() to clean up
+ the hep properly - valgrind now has nothing to complain about
+ possible memory leaks. That is, it has nothing to complain for
+ mpg123 -s file.mp3 > /dev/null; it has quite some issues with
+ ALSA:-(
+
+2007-11-06 13:01 thor
+
+ * trunk/src/libmpg123/frame.c: Initialize the r_read and r_lseek
+ fields to NULL.
+
+2007-11-06 10:46 thor
+
+ * trunk/src/libmpg123/frame.c: Clean up the frame init/reset mess
+ a bit, preventing frame_buffers_reset before the buffers have
+ been allocated (d'oh\!). That should take care of bug 1825734.
+
+2007-11-04 21:19 thor
+
+ * trunk/src/libmpg123/Makefile.am: Does this INCLUDES help win32?
+ * trunk/src/libmpg123/layer3.c: More () to make pedantic gcc happy.
+
+2007-10-29 16:35 thor
+
+ * trunk/src/output/sun.c: No LINEAR8 enconding on solaris... until
+ I hear it working somewhere (wasn't nice to my ears on a Ray).
+ Also, make that format test loop over the entries we actually
+ have, not just 4 always (that point got a regression during
+ output plugin merge, I suppose).
+
+2007-10-29 16:32 thor
+
+ * trunk/src/Makefile.legacy: Glitch in solaris Makefile entry ...
+ -fast was joined to $(CFLAGS).
+
+2007-10-29 16:31 thor
+
+ * trunk/src/Makefile.am: No depending on -lltdl ... we'd rather
+ need to depend on ../libltdl/libltdl.la, but not when it is
+ already installed...
+
+2007-10-29 16:30 thor
+
+ * trunk/src/libmpg123/format.c: Fix the format check - not just
+ any bit, _every_ bit of the format must be in the support mask!
+
+2007-10-28 22:30 thor
+
+ * trunk/src/libmpg123/layer3.c: Remove the dead code.
+
+2007-10-28 22:08 thor
+
+ * trunk/src/libmpg123/layer3.c: Michael Hipp found the already
+ many year-old fix for the MPEG 2.5 issue of bug 1807964!
+ Actually, this comment in layer3.c seems to have been prophetic:
+ /* check this again for 2.5 and sfreq=8 */ Now that block works
+ better. It also works slower, though. Gotta see if I can
+ optimize this if/else tree.
+
+2007-10-28 16:37 thor
+
+ * trunk/src/output/sun.c: Put the parameter setting in there
+ again... will it work now on Solaris?
+
+2007-10-27 08:35 thor
+
+ * trunk/MakeLegacy.sh, trunk/src/Makefile.legacy,
+ trunk/src/config.h.legacy: Make legacy build use MAKE variable
+ for the make program to use (default is "make", but you may need
+ MAKE=gmake ./MakeLegacy.sh). Also, adding to the solaris build
+ entry (some defined) and HAVE_SIGNAL_H per default on in
+ config.h.legacy. Not sure if we should put all the system
+ specific defines into Makefile.legacy or in separate config.h
+ files .
+
+2007-10-27 08:29 thor
+
+ * trunk/src/output/sun.c: Make sun output compile again - but it
+ does not work yet.
+
+2007-10-27 08:28 thor
+
+ * trunk/src/module.c: Portability: stat() for file type instead of
+ using non-standard dirent field.
+ * trunk/src/legacy_module.c: No C++ comments.
+
+2007-10-25 23:52 thor
+
+ * trunk/src/common.c: Remove one of these !defined(GENERIC) for a
+ positive header check for signal.h .
+
+2007-10-25 23:40 thor
+
+ * trunk/src/mpg123app.h: framenum is off_t
+
+2007-10-25 22:41 thor
+
+ * trunk/src/libmpg123/Makefile.am, trunk/src/output/esd.c,
+ trunk/src/output/esound.c: Yay! Even `make distcheck` succeeds
+ now after making path of libmpg123.sym absolute.
+
+2007-10-25 22:33 thor
+
+ * trunk/src: ignore
+
+2007-10-25 22:32 thor
+
+ * trunk/src/output: even more ignore
+
+2007-10-25 22:31 thor
+
+ * trunk/src/libmpg123: more ignore
+ * trunk: ignore
+
+2007-10-25 22:30 thor
+
+ * trunk/libltdl: ignore
+
+2007-10-25 22:28 thor
+
+ * trunk/src/mpg123.c, trunk/src/playlist.c: Re-enable STDIN
+ playback via special filename "-" and fix a file descriptor leak
+ along with that.
+
+2007-10-25 22:10 thor
+
+ * trunk/Makefile.am, trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/output/Makefile.am: Serious autotool hacking. By now
+ you should be able to get - a standard dynamic build with shared
+ lib and auto-detected modules - a dynamic build with a selected
+ range of modules (--with-audio) - the default audio module you
+ want via --with-default-audio - a one-static-module build with
+ shared lib (--disable-modules) - a one-static-module build with
+ static lib (--disable-modules --disable-shared) - a fully static
+ build (-static in LDFLAGS when running configure) The
+ static-module builds skip the libltdl configure step. This just
+ took some days of headache and yelling at autotools/libtool...
+
+2007-10-24 16:13 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/buffer.c,
+ trunk/src/mpg123.c, trunk/src/output/Makefile.am,
+ trunk/src/output/alsa.c: Fix an alsa (not just there, I guess)
+ crash by making sure the ao->userptr and ao->fn get cleared
+ after close in close_output. Also removed direct uses of
+ ao->close in mpg123.c and buffer.c .
+
+2007-10-24 16:12 thor
+
+ * trunk/src/Makefile.legacy: Honor CPPFLAGS!
+
+2007-10-24 15:33 thor
+
+ * trunk/MakeLegacy.sh: Only overwrite config.h when it changed.
+ Makes it possible not to always rebuild everything.
+
+2007-10-22 23:33 thor
+
+ * trunk/Makefile.am, trunk/TODO_1.0, trunk/autogen.sh,
+ trunk/src/Makefile.am, trunk/src/output/Makefile.am: Ideally, we
+ would support modules on systems without installed libltdl via
+ the included copy... which needed some hacking to actually make
+ it into the dist tarball. this is not really resolved until I
+ saw a working build on some system apart from GNU/Linux (and
+ Nick's MacOSX), where you usually have libltdl.
+
+2007-10-22 21:44 thor
+
+ * trunk/makedll.sh: Ease Win32 DLL creation with MinGW32 a bit.
+
+2007-10-22 20:30 thor
+
+ * trunk/Makefile.am: distribute the rms16 program
+
+2007-10-22 11:07 thor
+
+ * trunk/TODO_1.0: We still got something to do...
+
+2007-10-22 10:56 thor
+
+ * trunk/doc/BUGS: Old list of bugs was outdated, BUGS now just
+ points to the tracker.
+
+2007-10-22 10:54 thor
+
+ * trunk/test/rms16.c: Less verbose rms16.
+
+2007-10-22 10:14 thor
+
+ * trunk/src/libmpg123/libmpg123.c: Make mpg123_decode work with
+ &done == NULL . Segfault is never good.
+
+2007-10-22 07:46 thor
+
+ * trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/libmpg123.sym, trunk/src/libmpg123/mpg123.h,
+ trunk/src/libmpg123/reader.h, trunk/src/libmpg123/readers.c: Add
+ possibility to replace the read and lseek functions. That is
+ needed to support non-supported methods of opening a file: You
+ open the thing, give some integer to open_fd, your read/lseek
+ get called with that integer (aka. "file descriptor") to perform
+ their task. The downside is, now I actually added callbacks to
+ libmpg123... didn't plan to:-/
+
+2007-10-20 10:07 thor
+
+ * trunk/src/libmpg123/tabinit.c,
+ trunk/src/libmpg123/tabinit_mmx.S: Move costab_mmxsse[] into
+ assembly to stop MinGW stumbling over ALIGNED(32) (must be a bug
+ limiting at 16). In assembler everything is fine with ALIGN32.
+
+2007-10-18 22:22 thor
+
+ * trunk/src/Makefile.am: distributing the legacy_module.c, too
+
+2007-10-18 20:46 thor
+
+ * trunk/src/libmpg123/frame.c, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h: Normalize the encoding macros,
+ MPG123_ENC_8 now working just like MPG123_ENC_16. Normalize
+ return values: int mpg123_read();
+
+2007-10-17 23:55 thor
+
+ * trunk/src/Makefile.am, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/libmpg123.sym, trunk/src/libmpg123/mpg123.h,
+ trunk/src/scan.c: Support for getting (estimated) track length
+ and for scanning through file to get accurate length. A proper
+ LAME tag contains proper info, but you never know...
+
+2007-10-17 23:45 thor
+
+ * trunk/src/libmpg123/reader.h, trunk/src/libmpg123/readers.c: A
+ safety reader that just bounces back requests ... it is better
+ than segfaulting on call of NULL functions.
+
+2007-10-17 23:17 thor
+
+ * trunk/src/libmpg123/Makefile.am: it depends on libmpg132.sym
+
+2007-10-16 22:14 thor
+
+ * trunk/src/libmpg123/libmpg123.c, trunk/src/libmpg123/mpg123.h,
+ trunk/src/libmpg123/readers.c: Fix strerror list (a comma was
+ missing), add an error for file access problem.
+
+2007-10-16 21:49 thor
+
+ * trunk/src/libmpg123/frame.c: No timeout on win32...
+
+2007-10-16 20:49 thor
+
+ * trunk/src/mpg123.c: Hacking the frame header info not messing
+ with verbose terminal display anymore, via a track freshness: -
+ ensures that the progress line is printed _after_ play_frame()
+ got first real data - ensures that play_frame() does not repeat
+ the header info when the track is rewound
+
+2007-10-16 20:23 thor
+
+ * trunk/src/Makefile.legacy: ensure use of CPPFLAGS
+
+2007-10-16 20:18 thor
+
+ * trunk/src/mpg123.c, trunk/src/term.c, trunk/src/term.h: Fix
+ term.c to work with the opinter ao. Much better now: I can play
+ and seek, change tracks. Seeking indeed sounds better now,
+ without the distortion (the library does some extra work now to
+ ensure that).
+
+2007-10-16 20:02 thor
+
+ * trunk/src/mpg123.c: Always enable the --test-cpu and --list-cpu
+ switches m even if there is only one decoder.
+
+2007-10-16 19:56 thor
+
+ * trunk/src/httpget.c: Give non-http enabled builds the
+ debunk_mime function; that spares us cluttering playlist.c with
+ #ifdefs.
+ * trunk/src/Makefile.legacy, trunk/src/legacy_module.c: A bit of
+ legacy building.
+
+2007-10-16 17:33 thor
+
+ * trunk/src/output/alib.c: Include lib headers via <>, not "";
+ makes the gcc dep generator work for legacy makefile.
+
+2007-10-16 03:33 thor
+
+ * trunk/src/term.c: Wodnering about the segfault when changing to
+ next track on terminal... for sure something simple... a next
+ day.
+
+2007-10-16 03:23 thor
+
+ * trunk/src/output/Makefile.am: Help VPATH?
+
+2007-10-16 02:50 thor
+
+ * trunk/src/libmpg123/Makefile.am: re-include DK's VPATH fix for
+ the asm build rule... which still doesn't help the basic
+ borkedness with make distcheck. -I../../src doesn't seem to help
+ finding the most basic headers!
+
+2007-10-16 02:45 thor
+
+ * trunk/src/libmpg123/format.c, trunk/src/libmpg123/frame.c,
+ trunk/src/mpg123.c: The frame reset was missing crucial bits.
+ Now mpg123 fails gracefully when wanting to play stuff when no
+ audio interface is avalable.
+
+2007-10-16 02:39 thor
+
+ * trunk/src/Makefile.am, trunk/src/audio.c, trunk/src/audio.h,
+ trunk/src/httpget.c, trunk/src/libmpg123/Makefile.am,
+ trunk/src/libmpg123/compat.c, trunk/src/libmpg123/frame.c,
+ trunk/src/libmpg123/frame.h, trunk/src/libmpg123/libmpg123.c,
+ trunk/src/libmpg123/mpg123.h, trunk/src/libmpg123/reader.h,
+ trunk/src/libmpg123/readers.c, trunk/src/libmpg123/stringbuf.c,
+ trunk/src/libmpg123/tabinit.c, trunk/src/mpg123.c,
+ trunk/src/output/Makefile.am, trunk/src/wav.c: A state of source
+ that builds. I am testing...
+
+2007-10-16 02:19 thor
+
+ * trunk/src/httpget.h: Header protection macro had a typo...
+
+2007-10-16 02:14 thor
+
+ * trunk/src/control_generic.c: Resolving a leftover conflict.
+
+2007-10-16 01:32 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am: First attempt to make
+ it build again.
+
+2007-10-16 01:22 thor
+
+ * trunk/test: Moving the basic test stuff to the main trunk.
+
+2007-10-16 01:21 thor
+
+ * trunk/Makefile.am: Also distribute the added doc.
+
+2007-10-16 01:19 thor
+
+ * trunk/doc/ACCURACY, trunk/doc/libmpg123_speed.txt: Some docs I
+ added in the lib branch.
+ * trunk/xmms2-plugin: Moving the xmms2-plugin to mainline.
+
+2007-10-16 01:11 thor
+
+ * trunk/src/libmpg123/compat.c, trunk/src/libmpg123/compat.h,
+ trunk/src/libmpg123/mpg123lib_intern.h: The outsourced
+ compatibility functions.
+
+2007-10-16 01:10 thor
+
+ * trunk/src/mpglib.c: Adding the mpglib-style example program
+ again.
+
+2007-10-16 01:08 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/output/aix.c,
+ trunk/src/output/alib.c, trunk/src/output/alsa.c,
+ trunk/src/output/alsa05.c, trunk/src/output/coreaudio.c,
+ trunk/src/output/dummy.c, trunk/src/output/esd.c,
+ trunk/src/output/hp.c, trunk/src/output/jack.c,
+ trunk/src/output/libao.c, trunk/src/output/mint.c,
+ trunk/src/output/nas.c, trunk/src/output/os2.c,
+ trunk/src/output/oss.c, trunk/src/output/portaudio.c,
+ trunk/src/output/pulse.c, trunk/src/output/sdl.c,
+ trunk/src/output/sgi.c, trunk/src/output/sun.c,
+ trunk/src/output/win32.c: An attempt to mass-convert the output
+ stuff with respect to audio encoding constants and the changed
+ main header.
+
+2007-10-16 01:04 thor
+
+ * trunk/src/common.c, trunk/src/common.h: One last mentioning of
+ struct frame was there...
+
+2007-10-16 00:59 thor
+
+ * trunk/src/genre.c, trunk/src/genre.h: The genres better
+ organized.
+ * trunk/src/layer3.h: *poof*
+
+2007-10-16 00:52 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/buffer.c,
+ trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_generic.c, trunk/src/dct36_3dnow.S,
+ trunk/src/dct36_3dnowext.S, trunk/src/dct64.c,
+ trunk/src/dct64_3dnow.S, trunk/src/dct64_3dnowext.S,
+ trunk/src/dct64_altivec.c, trunk/src/dct64_i386.c,
+ trunk/src/dct64_i486.c, trunk/src/dct64_mmx.S,
+ trunk/src/dct64_sse.S, trunk/src/debug.h, trunk/src/decode.c,
+ trunk/src/decode.h, trunk/src/decode_2to1.c,
+ trunk/src/decode_3dnow.S, trunk/src/decode_4to1.c,
+ trunk/src/decode_altivec.c, trunk/src/decode_i386.c,
+ trunk/src/decode_i486.c, trunk/src/decode_i586.S,
+ trunk/src/decode_i586_dither.S, trunk/src/decode_mmx.S,
+ trunk/src/decode_mmxsse.S, trunk/src/decode_ntom.c,
+ trunk/src/dnoise.c, trunk/src/equalizer.c,
+ trunk/src/equalizer_3dnow.S, trunk/src/getbits.c,
+ trunk/src/getbits.h, trunk/src/getcpuflags.S,
+ trunk/src/getcpuflags.h, trunk/src/httpget.c,
+ trunk/src/httpget.h, trunk/src/huffman.h, trunk/src/icy.c,
+ trunk/src/icy.h, trunk/src/id3.c, trunk/src/id3.h,
+ trunk/src/id3print.c, trunk/src/id3print.h,
+ trunk/src/l2tables.h, trunk/src/layer1.c, trunk/src/layer2.c,
+ trunk/src/layer3.c, trunk/src/libmpg123/dct64_altivec.c,
+ trunk/src/libmpg123/decode_altivec.c,
+ trunk/src/libmpg123/layer1.c, trunk/src/libmpg123/layer2.c,
+ trunk/src/libmpg123/layer3.c,
+ trunk/src/libmpg123/mpg123lib_intern.h,
+ trunk/src/libmpg123/optimize.h, trunk/src/libmpg123/parse.c,
+ trunk/src/libmpg123/reader.h, trunk/src/libmpg123/readers.c,
+ trunk/src/libmpg123/tabinit.c, trunk/src/mangle.h,
+ trunk/src/module.c, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/mpg123app.h, trunk/src/optimize.c,
+ trunk/src/optimize.h, trunk/src/playlist.c,
+ trunk/src/playlist.h, trunk/src/readers.c,
+ trunk/src/stringbuf.c, trunk/src/stringbuf.h,
+ trunk/src/system.c, trunk/src/tabinit.c,
+ trunk/src/tabinit_mmx.S, trunk/src/term.c, trunk/src/term.h,
+ trunk/src/testcpu.c, trunk/src/wav.c, trunk/src/xfermem.c,
+ trunk/src/xfermem.h: One big step of the messy part of libmpg123
+ merge. The hard code mixes should be done, easy code mixes to
+ follow... then the fun with the build system.
+
+2007-10-16 00:13 thor
+
+ * trunk/src/libmpg123/system.c: Just language.
+
+2007-10-14 22:32 thor
+
+ * trunk/src/libmpg123: Moving in the library source from the
+ mpg123lib branch.
+
+2007-09-19 14:34 njh
+
+ * trunk/src/output/aix.c, trunk/src/output/alib.c,
+ trunk/src/output/alsa05.c, trunk/src/output/coreaudio.c,
+ trunk/src/output/dummy.c, trunk/src/output/hp.c,
+ trunk/src/output/jack.c, trunk/src/output/libao.c,
+ trunk/src/output/mint.c, trunk/src/output/nas.c,
+ trunk/src/output/os2.c, trunk/src/output/oss.c,
+ trunk/src/output/portaudio.c, trunk/src/output/sdl.c,
+ trunk/src/output/sgi.c, trunk/src/output/sun.c,
+ trunk/src/output/win32.c: Cleaned up output modules some more: -
+ All modules now contain module init code - Removed fprintf and
+ replaced with debug/warning/error macros - Converted spaces to
+ tabs
+
+2007-09-18 13:31 njh
+
+ * trunk/src/output/portaudio.c, trunk/src/output/sdl.c: Moved
+ global variables to ao->userptr. Now shuts down libraries
+ properly when module is de-initialised.
+
+2007-09-18 13:29 njh
+
+ * trunk/src/sfifo.c: Fix to prevent double-free.
+
+2007-09-18 12:37 thor
+
+ * trunk/src/audio.c: -v -v now also prints the audio driver name.
+
+2007-09-18 12:36 thor
+
+ * trunk/src/output/nas.c: Add a cast in debugging line to make
+ pedantic gcc happy.
+
+2007-09-15 23:36 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/output/aix.c,
+ trunk/src/output/hp.c, trunk/src/output/sun.c: When we start
+ defining some module API, it is a bad idea to rely on the
+ mpg123-global param struct. So, I pushed the output flags back
+ into a proper data field in the audio output struct and give a
+ copy of param.output_flags to it when opening an output. In the
+ same place, I apply param.output_device to ao->device ... it
+ looks to me as it was intended that way to make -o module:device
+ really work.
+
+2007-09-15 23:24 thor
+
+ * trunk/src/audio.h, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/output/aix.c, trunk/src/output/hp.c,
+ trunk/src/output/sun.c: Integrate legacy -o h -o l -o s with
+ new-style -o module[:device] . When there is a one-letter
+ argument, the legacy flag is set - else, it is a module spec.
+ This implies a minimum length of a module name: 2 characters. I
+ think that shall be no problem for any sane module name. Along
+ with the option processing change, the output flag was put into
+ the parameter struct, as it has to be set _before_ the audio
+ structure is allocated.
+
+2007-09-13 12:45 njh
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/common.c,
+ trunk/src/control_generic.c, trunk/src/layer1.c,
+ trunk/src/layer2.c, trunk/src/layer3.c, trunk/src/mpg123.c,
+ trunk/src/mpg123.h: Now closing audio output module properly
+ Moved more relavent code into audio.c
+
+2007-09-11 14:27 njh
+
+ * trunk/src/legacy_module.c: Added --list-modules message for
+ legacy build
+
+2007-09-11 14:25 njh
+
+ * trunk/src/module.c, trunk/src/module.h: Changed all occurrences
+ of http://mpg123.de to http://mpg123.org (for consistency)
+
+2007-09-11 14:12 njh
+
+ * trunk/src/mpg123.c: Added back command-line option to choose the
+ output module
+
+2007-09-11 13:43 njh
+
+ * trunk/src/module.c: Added API version checking
+ * trunk/src/audio.c, trunk/src/module.c, trunk/src/output/alsa.c:
+ Fixes to make Linux compile
+
+2007-09-11 13:35 njh
+
+ * trunk/src/output/pulse.c: Forgot to import this code from the
+ branch
+
+2007-09-11 09:23 njh
+
+ * trunk/autogen.sh, trunk/configure.ac: Libtool is required to
+ build modules (and ranlib is obseleted)
+
+2007-09-10 23:37 njh
+
+ * trunk/src/legacy_module.c, trunk/src/module.c,
+ trunk/src/output/sun.c: config.h gets included by mpg123.h these
+ days
+
+2007-09-10 23:23 njh
+
+ * trunk/configure.ac, trunk/libltdl, trunk/src/Makefile.am,
+ trunk/src/Makefile.legacy, trunk/src/audio.c, trunk/src/audio.h,
+ trunk/src/audio_aix.c, trunk/src/audio_alib.c,
+ trunk/src/audio_alsa.c, trunk/src/audio_alsa05.c,
+ trunk/src/audio_coreaudio.c, trunk/src/audio_dummy.c,
+ trunk/src/audio_esd.c, trunk/src/audio_hp.c,
+ trunk/src/audio_jack.c, trunk/src/audio_libao.c,
+ trunk/src/audio_mint.c, trunk/src/audio_nas.c,
+ trunk/src/audio_os2.c, trunk/src/audio_oss.c,
+ trunk/src/audio_portaudio.c, trunk/src/audio_sdl.c,
+ trunk/src/audio_sgi.c, trunk/src/audio_sun.c,
+ trunk/src/audio_win32.c, trunk/src/buffer.c, trunk/src/common.c,
+ trunk/src/common.h, trunk/src/control_generic.c,
+ trunk/src/layer1.c, trunk/src/layer2.c, trunk/src/layer3.c,
+ trunk/src/layer3.h, trunk/src/legacy_module.c,
+ trunk/src/module.c, trunk/src/module.h, trunk/src/mpg123.c,
+ trunk/src/mpg123.h, trunk/src/output,
+ trunk/src/output/Makefile.am, trunk/src/output/aix.c,
+ trunk/src/output/alib.c, trunk/src/output/alsa.c,
+ trunk/src/output/alsa05.c, trunk/src/output/coreaudio.c,
+ trunk/src/output/dummy.c, trunk/src/output/esd.c,
+ trunk/src/output/hp.c, trunk/src/output/jack.c,
+ trunk/src/output/libao.c, trunk/src/output/mint.c,
+ trunk/src/output/nas.c, trunk/src/output/os2.c,
+ trunk/src/output/oss.c, trunk/src/output/portaudio.c,
+ trunk/src/output/sdl.c, trunk/src/output/sgi.c,
+ trunk/src/output/sun.c, trunk/src/output/win32.c,
+ trunk/src/term.c, trunk/src/term.h, trunk/src/wav.c: Finished
+ hacking in loadable output module support from branch
+ "njh-outputplugin". Legacy support allows statically compiling
+ in a single module. Still needs some work, but a quick test on
+ my MacBook worked :)
+
+2007-08-27 21:33 thor
+
+ * trunk/src/Makefile.am, trunk/src/httpget.c, trunk/src/httpget.h,
+ trunk/src/mpg123.c, trunk/src/mpg123.h, trunk/src/playlist.c,
+ trunk/src/readers.c: A reaction to bug 1782603; centralizing the
+ MIME stuff in httpget.c and adding some aliases.
+
+2007-08-06 23:23 thor
+
+ * trunk/NEWS: Little update to NEWS.
+
+2007-08-06 23:04 thor
+
+ * trunk/README, trunk/man1/mpg123.1: - --long-help mentioned in
+ README - updated man page for --loop and --timeout
+
+2007-08-06 22:52 thor
+
+ * trunk/INSTALL: INSTALL updates inspired by Winston.
+
+2007-08-06 22:38 thor
+
+ * trunk/src/system.c: Well, this file is inactive atm., but we
+ still can fix some language.
+
+2007-08-06 22:31 thor
+
+ * trunk/src/config.h.legacy: More positive suggestions for integer
+ types in config.h.legacy.
+
+2007-08-06 22:19 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am: Combine MMX, SSE,
+ 3DNowExt with fallback decoders and add the _alone cpu builds.
+
+2007-08-06 21:12 thor
+
+ * trunk/AUTHORS, trunk/doc/THANKS: update contributors and
+ supporters
+
+2007-08-06 20:45 thor
+
+ * trunk/AUTHORS: Reorder the maintainer eras in AUTHORS to go into
+ the past when scrolling down the file.
+
+2007-08-03 23:06 thor
+
+ * trunk/src/common.c: little header cleanup in common.c
+
+2007-08-03 13:09 thor
+
+ * trunk/src/mpg123.h: mpg123.h cleanup, removing old stuff that's
+ not needed.
+
+2007-08-02 19:48 thor
+
+ * trunk/configure.ac, trunk/src/common.c, trunk/src/mpg123.h: Sort
+ out some integer type header stuff... central in mpg123.h .
+
+2007-08-02 16:18 thor
+
+ * trunk/src/id3.c: Short is 16 bit, no need for inttypes.h in
+ id3.c .
+
+2007-08-01 15:28 thor
+
+ * trunk/src/dct64_altivec.c, trunk/src/decode_altivec.c,
+ trunk/src/layer1.c, trunk/src/layer2.c, trunk/src/layer3.c,
+ trunk/src/optimize.h, trunk/src/tabinit.c: ALIGN(16) ->
+ ALIGNED(16), as there is already such a macro on MacOSX.
+
+2007-08-01 15:03 thor
+
+ * trunk/src/dct64_altivec.c, trunk/src/decode_altivec.c,
+ trunk/src/layer1.c, trunk/src/layer2.c, trunk/src/layer3.c,
+ trunk/src/optimize.h, trunk/src/tabinit.c: Change alignment
+ macro name to ALIGN() and applying it everywhere where alignment
+ is needed in C code. That fixes MacOSX build (the aligned()
+ macro messed up left over __attribute__((aligned(16))) ...).
+
+2007-07-28 00:58 thor
+
+ * trunk/src/control_generic.c, trunk/src/mpg123.c: Let the control
+ interface be at least built and in principle activated under
+ Win32; while it doesn't work because of select() being limited
+ to sockets.
+
+2007-07-28 00:57 thor
+
+ * trunk/src/readers.c: Need sys/time.h!
+
+2007-07-28 00:46 thor
+
+ * trunk/src/Makefile.legacy: SunOS not having strerror ...?
+
+2007-07-28 00:15 thor
+
+ * trunk/src/mpg123.c, trunk/src/mpg123.h, trunk/src/readers.c:
+ Hide the timeout code (using select()) from Win32 to make that
+ build work again.
+
+2007-07-27 23:35 thor
+
+ * trunk/src/Makefile.legacy: -DNO_RT for SunOS
+
+2007-07-27 23:32 thor
+
+ * trunk/configure.ac, trunk/src/config.h.legacy,
+ trunk/src/mpg123.c, trunk/src/mpg123.h: Another hint from
+ Winston: be prepared for missing strerror.
+
+2007-07-27 23:23 thor
+
+ * trunk/configure.ac: Going to be 0.67 .
+
+2007-07-27 23:22 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.legacy,
+ trunk/src/audio.c, trunk/src/audio_aix.c,
+ trunk/src/audio_alib.c, trunk/src/audio_alsa05.c,
+ trunk/src/audio_coreaudio.c, trunk/src/audio_hp.c,
+ trunk/src/audio_jack.c, trunk/src/audio_nas.c,
+ trunk/src/audio_oss.c, trunk/src/audio_portaudio.c,
+ trunk/src/audio_sdl.c, trunk/src/audio_sgi.c,
+ trunk/src/audio_sun.c, trunk/src/audio_win32.c,
+ trunk/src/buffer.c, trunk/src/common.c, trunk/src/common.h,
+ trunk/src/config.h.legacy, trunk/src/control_generic.c,
+ trunk/src/decode.c, trunk/src/decode_2to1.c,
+ trunk/src/decode_4to1.c, trunk/src/decode_altivec.c,
+ trunk/src/decode_i386.c, trunk/src/decode_i486.c,
+ trunk/src/decode_ntom.c, trunk/src/httpget.c, trunk/src/id3.c,
+ trunk/src/layer3.c, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/playlist.c, trunk/src/readers.c,
+ trunk/src/stringbuf.c, trunk/src/system.c, trunk/src/tabinit.c,
+ trunk/src/term.c, trunk/src/wav.c, trunk/src/xfermem.c: A commit
+ motivated by SunOS veteran Winston. He gave SunOS 4.1.2 with gcc
+ 2.7.0 a spin. A commit that looks bigger than it is. Most files
+ only got header #includes removed that are handled in mpg123.h .
+ Then there are the corresponding changes in mpg123.h; together
+ with the addition of safe_realloc for ancient systems. The ugly
+ need for snprintf in make_remote_header() has been avoided by
+ changing this one into print_remote_header(). The Question of
+ size_t, ssize_t and off_t is handled in configure now;
+ respectively in config.h.legacy .
+
+2007-07-27 22:28 thor
+
+ * trunk/NEWS: Preparing NEWS for 0.67 .
+
+2007-07-25 20:05 thor
+
+ * trunk/src/Makefile.am: Let 'make clean' clean *.a files, too.
+
+2007-07-12 21:51 thor
+
+ * trunk/src/audio.c: Enable flexible rate for stdout decoding, too.
+
+2007-07-12 21:34 thor
+
+ * trunk/src/control_generic.c: We can use the external one from
+ mpg123.c, should even, perhaps.
+
+2007-07-01 08:21 thor
+
+ * trunk/src/id3.c: Hah! Now UTF8 filtering to ASCII finally works
+ thanks to Mika Tiainen.
+
+2007-06-30 18:47 thor
+
+ * trunk/src/common.c: Notes in audio_flush() about it not being
+ relevant for buffered decoding. Strangely, there is this write
+ call for DECODE_BUFFER... I think that should be different... I
+ am not sure about how safe the buffer code is. I don't claim to
+ understand it, though.
+
+2007-06-30 15:44 thor
+
+ * trunk/src/common.c: I was one frame off; -k 1 was a no-op since
+ the first frame number was incremented to 1 too soon. Now the
+ fresh frame number is -1 before read_frame and 0 for the first
+ frame after that. The funny part is, that the buggy variant
+ agrees with 0.59r and the corrected has a shift of 1 frame for
+ many mp3 files: 0.59r does not recognize the LAME tag and plays
+ a frame of silence instead. So, now it should be correct, albeit
+ differing from old mpg123.
+
+2007-06-28 13:15 thor
+
+ * trunk/src/mpg123.c: a ) in help output
+
+2007-06-28 13:07 thor
+
+ * trunk/src/mpg123.c, trunk/src/mpg123.h, trunk/src/playlist.c,
+ trunk/src/playlist.h: --loop: Specify loop count for tracks; <0
+ triggers endless loop; good for persistent internet streaming
+ with unreliable connection and --timeout
+
+2007-06-28 12:07 thor
+
+ * trunk/src/mpg123.c, trunk/src/mpg123.h, trunk/src/readers.c:
+ --timeout <n>: Possibility to end playback on a stream that
+ doesn't give data for <n> seconds. I hope this helps the guy of
+ ROM 106.5FM with the non-static internet connection.
+
+2007-06-12 00:28 thor
+
+ * trunk/src/Makefile.am: DK pointed this fix out to not break
+ compiles into separate object dirs: use more flags for cpp on .S
+ files.
+
+2007-06-12 00:25 thor
+
+ * trunk/src/mpg123.c: Add a missing Y for the setpriority paranoia.
+
+2007-06-04 23:22 thor
+
+ * trunk, trunk/src: ignore autogenerated stuff
+
+2007-06-04 23:02 thor
+
+ * trunk/configure.ac, trunk/src/dct64_sse.S, trunk/src/layer1.c,
+ trunk/src/layer2.c, trunk/src/layer3.c, trunk/src/mangle.h,
+ trunk/src/optimize.h: If __attribute__((aligned(16))) works,
+ replace all left movups with movaps for dct64_sse, following a
+ patch by Zuxy Meng posted to MPlayer list. On my Pentium-M that
+ seems to gain about 1% of performance, while the other opts seem
+ to profit from the alignment, too.
+
+2007-06-04 21:31 thor
+
+ * trunk/src/audio.c, trunk/src/audio_aix.c,
+ trunk/src/audio_alib.c, trunk/src/audio_alsa.c,
+ trunk/src/audio_alsa05.c, trunk/src/audio_coreaudio.c,
+ trunk/src/audio_dummy.c, trunk/src/audio_esd.c,
+ trunk/src/audio_hp.c, trunk/src/audio_jack.c,
+ trunk/src/audio_libao.c, trunk/src/audio_mint.c,
+ trunk/src/audio_nas.c, trunk/src/audio_os2.c,
+ trunk/src/audio_oss.c, trunk/src/audio_portaudio.c,
+ trunk/src/audio_sdl.c, trunk/src/audio_sgi.c,
+ trunk/src/audio_sun.c, trunk/src/audio_win32.c,
+ trunk/src/buffer.c, trunk/src/common.c,
+ trunk/src/control_generic.c, trunk/src/dct64.c,
+ trunk/src/dct64_altivec.c, trunk/src/dct64_i386.c,
+ trunk/src/dct64_i486.c, trunk/src/debug.h, trunk/src/decode.c,
+ trunk/src/decode_2to1.c, trunk/src/decode_4to1.c,
+ trunk/src/decode_altivec.c, trunk/src/decode_i386.c,
+ trunk/src/decode_i486.c, trunk/src/decode_ntom.c,
+ trunk/src/equalizer.c, trunk/src/getbits.c, trunk/src/httpget.c,
+ trunk/src/id3.c, trunk/src/layer1.c, trunk/src/layer2.c,
+ trunk/src/layer3.c, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/optimize.c, trunk/src/playlist.c, trunk/src/readers.c,
+ trunk/src/system.c, trunk/src/tabinit.c, trunk/src/term.c,
+ trunk/src/wav.c, trunk/src/xfermem.c: Include config.h and
+ debug.h centrally in mpg132.h, remove redundant includes.
+
+2007-06-04 20:10 thor
+
+ * trunk/src/optimize.c: Show decoder options in their priority
+ order.
+
+2007-06-04 20:07 thor
+
+ * trunk/man1/mpg123.1: Update the man page date.
+
+2007-06-04 19:53 thor
+
+ * trunk/scripts/benchmark-cpu.pl: Modify the script to use the
+ actually supported decoders.
+
+2007-06-04 14:10 njh
+
+ * trunk/scripts/benchmark-cpu.pl: Perl script to benchmark each of
+ mpg123's CPU optimisations
+
+2007-06-03 23:41 thor
+
+ * trunk/NEWS: news for 0.66
+
+2007-06-03 23:28 thor
+
+ * trunk/src/optimize.c, trunk/src/optimize.h: complete the forced
+ / flexible rate fallback for 3DNowExt->3DNow
+
+2007-06-03 23:06 thor
+
+ * trunk/src/optimize.c: Do the pentium fallback for
+ forced/flexible rate also from 3DNowExt. I guess the root lies
+ in MMX...
+
+2007-06-03 20:57 thor
+
+ * trunk/src/config.h.legacy: define some HAVE_*_H to make some
+ legacy builds build again
+
+2007-06-03 20:11 thor
+
+ * trunk/README: little README update/fix
+
+2007-06-01 09:54 thor
+
+ * trunk/configure.ac, trunk/doc/README.remote,
+ trunk/src/control_generic.c: Let the remote interface print the
+ greeting string _before_ waiting on the fifo. Also updated
+ documentation for control interface.
+
+2007-06-01 09:34 thor
+
+ * trunk/man1/mpg123.1, trunk/src/mpg123.c: - set remote_err when
+ putting audio to stdout. - some documentation consistency
+
+2007-06-01 08:07 thor
+
+ * trunk/configure.ac: OSF1 is not just a generic system - it's
+ UNIX!
+
+2007-06-01 07:44 thor
+
+ * trunk/configure.ac: For now, define NOXFERMEM for -DGENERIC;
+ this has to be resolved with indivitual checks later.
+
+2007-06-01 07:27 thor
+
+ * trunk/configure.ac, trunk/src/wav.c: Another GENERIC fix: check
+ for get/setuid.
+
+2007-06-01 07:25 thor
+
+ * trunk/configure.ac, trunk/src/mpg123.c: One fix for generic
+ systems that have setpriority - check for the necessary headers
+ instead of system type.
+
+2007-06-01 06:57 thor
+
+ * trunk/configure.ac: Fix configure for non-gcc
+ (with_optimization=0).
+
+2007-06-01 00:32 njh
+
+ * trunk/MakeLegacy.sh, trunk/Makefile.am, trunk/autogen.sh,
+ trunk/configure.ac, trunk/misc/equalizer-control.pl,
+ trunk/src/Makefile.am, trunk/src/Makefile.legacy,
+ trunk/src/Makefile.win32, trunk/src/audio.c, trunk/src/audio.h,
+ trunk/src/audio_aix.c, trunk/src/audio_alib.c,
+ trunk/src/audio_alsa.c, trunk/src/audio_coreaudio.c,
+ trunk/src/audio_dummy.c, trunk/src/audio_esd.c,
+ trunk/src/audio_hp.c, trunk/src/audio_jack.c,
+ trunk/src/audio_libao.c, trunk/src/audio_mint.c,
+ trunk/src/audio_nas.c, trunk/src/audio_os2.c,
+ trunk/src/audio_oss.c, trunk/src/audio_portaudio.c,
+ trunk/src/audio_sdl.c, trunk/src/audio_sgi.c,
+ trunk/src/audio_sun.c, trunk/src/audio_win32.c,
+ trunk/src/buffer.c, trunk/src/buffer.h, trunk/src/common.c,
+ trunk/src/common.h, trunk/src/control_generic.c,
+ trunk/src/dct36_3dnow.S, trunk/src/dct64.c,
+ trunk/src/dct64_3dnow.S, trunk/src/dct64_altivec.c,
+ trunk/src/dct64_i386.c, trunk/src/dct64_i486.c,
+ trunk/src/dct64_mmx.S, trunk/src/decode.c, trunk/src/decode.h,
+ trunk/src/decode_2to1.c, trunk/src/decode_3dnow.S,
+ trunk/src/decode_4to1.c, trunk/src/decode_altivec.c,
+ trunk/src/decode_i386.c, trunk/src/decode_i486.c,
+ trunk/src/decode_i586.S, trunk/src/decode_mmx.S,
+ trunk/src/decode_ntom.c, trunk/src/equalizer.c,
+ trunk/src/equalizer_3dnow.S, trunk/src/genre.h,
+ trunk/src/getbits.c, trunk/src/getbits.h,
+ trunk/src/getcpuflags.S, trunk/src/getlopt.c,
+ trunk/src/getlopt.h, trunk/src/httpget.c, trunk/src/huffman.h,
+ trunk/src/icy.h, trunk/src/l2tables.h, trunk/src/layer1.c,
+ trunk/src/layer2.c, trunk/src/layer3.c, trunk/src/layer3.h,
+ trunk/src/mpg123.c, trunk/src/mpg123.h, trunk/src/optimize.c,
+ trunk/src/optimize.h, trunk/src/playlist.c,
+ trunk/src/playlist.h, trunk/src/readers.c,
+ trunk/src/stringbuf.c, trunk/src/stringbuf.h,
+ trunk/src/system.c, trunk/src/tabinit.c,
+ trunk/src/tabinit_mmx.S, trunk/src/term.c, trunk/src/term.h,
+ trunk/src/wav.c, trunk/src/xfermem.c, trunk/src/xfermem.h:
+ Changed all occurrences of http://mpg123.de to http://mpg123.org
+ (for consistency)
+
+2007-05-31 22:43 thor
+
+ * trunk/man1/mpg123.1: Add hint for 'h' in terminal control mode.
+
+2007-05-31 22:21 thor
+
+ * trunk/man1/mpg123.1: Add --fifo Option to man page.
+
+2007-05-31 22:08 thor
+
+ * trunk/src/wav.c: Make this compile in normal mode with -Werror.
+
+2007-05-31 22:06 thor
+
+ * trunk/configure.ac: re-enable -Werror for debugging build
+
+2007-05-31 22:05 thor
+
+ * trunk/configure.ac, trunk/src/control_generic.c: Use mkfifo
+ instead of mknod, test for it in configure instead of guessing
+ based on operating system.
+
+2007-05-31 21:45 thor
+
+ * trunk/configure.ac: x86 apple default to x86
+
+2007-05-31 21:34 thor
+
+ * trunk/src/Makefile.am: add the x86_dither lib to EXTRA_LIBS
+
+2007-05-31 21:31 thor
+
+ * trunk/src/Makefile.am, trunk/src/decode_i586_dither.S,
+ trunk/src/dnoise.c: Move the dither noise into a standalone C
+ file. That saves space (, instead of .float for every number)
+ and circumvents a workaround for the .float pseudo-op, which is
+ .single on MacOSX.
+
+2007-05-31 20:09 thor
+
+ * trunk/src/optimize.c: Let --test-cpu print the actually
+ available decoders, not just the cpu flags.
+
+2007-05-31 19:58 thor
+
+ * trunk/src/optimize.c: Don't claim we have anything with SSE2 or
+ SSE3.
+
+2007-05-31 19:55 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am: towards a real
+ separation of x86 and x86_dither
+
+2007-05-31 16:45 thor
+
+ * trunk/Makefile.am, trunk/man1, trunk/man1/mpg123.1,
+ trunk/mpg123.1, trunk/src/mpg123.c: Updated the manpage a bit.
+
+2007-05-31 16:12 thor
+
+ * trunk/src/mpg123.c: fix file creation mode for -O
+
+2007-05-31 15:55 thor
+
+ * trunk/src/Makefile.am: decode.h shall be distributed.
+
+2007-05-31 15:54 thor
+
+ * trunk/configure.ac, trunk/src/common.c, trunk/src/common.h,
+ trunk/src/decode.c, trunk/src/decode.h, trunk/src/decode_2to1.c,
+ trunk/src/decode_4to1.c, trunk/src/decode_ntom.c,
+ trunk/src/getlopt.c, trunk/src/getlopt.h, trunk/src/mpg123.c,
+ trunk/src/mpg123.h, trunk/src/optimize.h, trunk/src/tabinit.c,
+ trunk/src/wav.c: I couldn't help myself... here is the option
+ for a build using the generic decoder that produces 32bit float
+ output. You select it via --with-cpu=generic_float, which
+ implies dummy output and also disables the buffer. The decoded
+ audio can be written raw or to a IEEE float wav file. This
+ demonstrates that it's doable and not too complicated for the
+ generic code. Next would be to a) make it into a runtime option
+ and b) adapt assembler opts to that. The latter will most likely
+ not happen for every opt.
+
+2007-05-31 11:26 thor
+
+ * trunk/configure.ac: split x86 opts into x86: everything except
+ i486 and i586_dither (as it is large) x86_dither: everything
+ except i486 (x86 + 256K)
+
+2007-05-31 11:25 thor
+
+ * trunk/src/optimize.c: list 3DNowExt
+
+2007-05-30 17:52 thor
+
+ * trunk/configure.ac, trunk/src/dct36_3dnowext.S,
+ trunk/src/dct64_3dnowext.S, trunk/src/dct64_mmx.S,
+ trunk/src/dct64_sse.S, trunk/src/decode_3dnow.S,
+ trunk/src/decode_i586.S, trunk/src/decode_i586_dither.S,
+ trunk/src/decode_mmxsse.S, trunk/src/equalizer_3dnow.S,
+ trunk/src/getcpuflags.S, trunk/src/mangle.h,
+ trunk/src/tabinit_mmx.S: Trying to make assembler stuff work on
+ MacOSX: - test for behaviour of .align (exponent or direct byte
+ value) and macros in mangle.h - replace every align/p2align with
+ ALIGN4, ALIGN8, ALIGN16 or ALIGN32 - more BSS
+
+2007-05-30 16:30 thor
+
+ * trunk/configure.ac: Add a default cpu target of x86 for i686-*
+ host.
+
+2007-05-30 16:26 thor
+
+ * trunk/src/dct64_sse.S, trunk/src/decode_3dnow.S,
+ trunk/src/decode_i586.S, trunk/src/mangle.h: A first attempt to
+ silence the MacOSX assembler.
+
+2007-05-30 16:16 thor
+
+ * trunk/src/audio.c: Some debug printf fixes (%li -> %i).
+
+2007-05-29 13:21 thor
+
+ * trunk/src/mpg123.c, trunk/src/wav.c: Fix wav and raw output
+ under Win32 by explicitly setting the file mode to binary. The
+ distortion was caused by line end bytes being converted.
+
+2007-05-29 13:20 thor
+
+ * trunk/configure.ac: Call FIFO suport disabled when it is after
+ auto detection.
+
+2007-05-29 09:00 thor
+
+ * trunk/src/audio.c: Hopefully a last variant of the error
+ message. We'll clean up the capabilities code itself later with
+ the output plugins..
+
+2007-05-28 19:30 thor
+
+ * trunk/src/audio.c: Yet another variant of error message, without
+ an appended parenthesed part.
+
+2007-05-27 09:12 thor
+
+ * trunk/src/audio.c: More explained error message.
+
+2007-05-27 08:56 thor
+
+ * trunk/src/audio.c: fix "you forced mono"
+
+2007-05-25 10:06 thor
+
+ * trunk/doc/monostereo.txt, trunk/src/audio.c, trunk/src/mpg123.c,
+ trunk/src/mpg123.h: Fix force_mono logic and give meaningful
+ error messages when the audio device doesn't play.
+
+2007-05-25 00:32 thor
+
+ * trunk/src/audio_win32.c: 1. Fix (?) the Win32 output. It used to
+ get a deadlock on waveOutWrite when callback wants the critical
+ section. Figured that we actually only need the critical section
+ to keep the block count straight. 2. Reformat the code. Still, I
+ don't like the win32 output. It cannot be efficient to
+ allocate/deallocate memory blocks all the time. A fixed set of
+ buffers makes so much sense. Just manage an array of them (do I
+ need so many, even?).
+
+2007-05-24 22:56 thor
+
+ * trunk/configure.ac: Detect win32 audio by probing windows.h ...
+ the winmm library check just doesn't work.
+
+2007-05-24 22:55 thor
+
+ * trunk/src/mpg123.h: no double declaration of REAL_IS_FLOAT on
+ Win32
+
+2007-05-24 12:57 thor
+
+ * trunk/configure.ac, trunk/src/audio_sdl.c,
+ trunk/src/audio_win32.c: trying to add win32 again
+
+2007-05-24 12:38 thor
+
+ * trunk/README: little README update regarding SSE/3DNowExt
+
+2007-05-24 12:14 thor
+
+ * trunk/src/decode_mmxsse.S, trunk/src/mpg123.c,
+ trunk/src/optimize.h: fix single cpu compiles by fixing MPLAYER
+ -> OPT_MPLAYER
+
+2007-05-24 02:37 thor
+
+ * trunk/src/Makefile.am, trunk/src/dct36_3dnowext.S,
+ trunk/src/dct64_3dnowext.S: Fix dependencies and comments for
+ some of the new asms. Now a x86 build "just works".
+
+2007-05-24 02:36 thor
+
+ * trunk/src/control_generic.c: Fix a warning about comstr.
+
+2007-05-24 02:06 thor
+
+ * trunk/src/Makefile.am, trunk/src/dct36_3dnowext.S,
+ trunk/src/dct36_3dnowext.c, trunk/src/dct64_3dnowext.S,
+ trunk/src/dct64_3dnowext.c, trunk/src/dct64_sse.S,
+ trunk/src/dct64_sse.c, trunk/src/decode_mmxsse.S,
+ trunk/src/decode_mmxsse.c: Really switch to standalone assembler
+ for SSE and extended 3DNow (some cleanup and mergeing still due)
+ now. Also use CCASFLAGS for assembler files.
+
+2007-05-24 01:49 thor
+
+ * trunk/src/dct64_3dnowext.S, trunk/src/decode_mmxsse.S: ASM_NAME
+ fixes
+
+2007-05-24 00:17 thor
+
+ * trunk/src/dct36_3dnowext.S, trunk/src/dct64_3dnowext.S,
+ trunk/src/dct64_sse.S, trunk/src/decode_i586.S,
+ trunk/src/decode_i586_dither.S, trunk/src/decode_mmxsse.S,
+ trunk/src/mangle.h, trunk/src/tabinit_mmx.S: Another step to
+ convert stuff to (kindof portable) external asm.
+
+2007-05-23 22:36 thor
+
+ * trunk/configure.ac: How smart am I? Now again the OSS check.
+
+2007-05-23 00:18 thor
+
+ * trunk/configure.ac: Now really...
+
+2007-05-22 23:23 thor
+
+ * trunk/configure.ac: fix OSS detection, tell what audio systems
+ were detected
+
+2007-05-22 22:55 thor
+
+ * trunk/src/decode_mmxsse.S: Turn this into standalone ASM...
+ gonna see what cygwin/mingw say to this.
+
+2007-05-22 21:26 thor
+
+ * trunk/src/decode_mmxsse.c: typo in comment
+
+2007-05-17 16:28 thor
+
+ * trunk/src/audio_alsa.c: apply fix from Clemens for bug 1691913
+ handling underrun now
+
+2007-05-09 12:49 thor
+
+ * trunk/configure.ac, trunk/src/control_generic.c,
+ trunk/src/mpg123.c, trunk/src/mpg123.h: 1. FIFO support in
+ control_generic just reading from STDIN and mkfifo
+ /tmp/mpg123_fifo mpg123 -R < /tmp/mpg123_fifo & doesn't make
+ repeated `echo command > /tmp/mpg123_fifo` possible, so a bit of
+ extra code added mpg123 -R --fifo /tmp/mpg123_fifo And you have
+ your mpg123 daemon randomly controlled by the fifo. 2. Fixup
+ command parsing for multiple commands in one read() (which
+ usually never happens) ... it was just wrong before. Now it's
+ still not nice code, but works. Also there's no malloc needed
+ anymore, which is good.
+
+2007-05-09 12:19 thor
+
+ * trunk/src/audio.c: tell the device dame in verbose mode
+
+2007-05-02 23:02 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am: fix the rename to
+ coreaudio for configure/make ... cannot test here, but need make
+ dist to work
+
+2007-05-02 22:52 thor
+
+ * trunk/configure.ac: fall back to dummy output properly
+
+2007-05-02 22:48 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/audio_portaudio.c, trunk/src/buffer.c,
+ trunk/src/buffer.h, trunk/src/common.c,
+ trunk/src/control_generic.c, trunk/src/decode_3dnow.S,
+ trunk/src/decode_i586.S, trunk/src/decode_i586_dither.S,
+ trunk/src/mangle.h, trunk/src/tabinit_mmx.S, trunk/src/term.c,
+ trunk/src/wav.c: Hacking MinGW32 into cooperation, in dialog
+ with Elia Blance. This restores some work of Tony Million from
+ ages ago... wrapping buffer code properly into #ifndef NOXFERMEM
+ again (except in term.c, which is a different beast). Hack
+ Makefile for the preprocessed .S files (mingw doesn't run cpp by
+ itself). Got autoconf'ed x86 portaudio/mme build working for
+ *-mingw32; Elia wants SDL ...;-) Also configure now doesn't look
+ at OS for choosing default audio output but at the available
+ output systems instead. Let's keep this hardcoding at a minimum.
+ Sound playback works, control_generic not (no stdin in windows
+ terminal?). Assembler opts work nicely (including --cpu choice).
+ WAV writing has distortion ... twisted endianess?
+
+2007-05-02 12:08 thor
+
+ * trunk/src/control_generic.c: wrap buffer code in #ifndef
+ NOXFERMEM
+
+2007-05-01 16:16 thor
+
+ * trunk/src/optimize.c, trunk/src/optimize.h: Make MMX and SSE
+ fall back to i586 and friends (what's available) when
+ auto-choosing cpu and -r <rate> is given. That's what I can do
+ about bug 1545293 for now. When we have the next release with
+ the x86 combined build, people are able to properly do flexible
+ rate mode even with an MMX-enabled (or SSE) build. On the long
+ term we need a) separating the decoding tables (I guess the
+ special mmx table is interfering here) b) making the opts work
+ with resampling natively
+
+2007-04-20 21:47 thor
+
+ * trunk/scripts/debugdef.pl, trunk/src/debug.h,
+ trunk/src/httpget.c: Fix up the debugging macros; syntactic
+ appearance as functions again (no closing ; in macro itself) (as
+ DK suggested, basically).
+
+2007-04-11 23:43 njh
+
+ * trunk/src/audio.c: What was this old ALSA stuff still doing here
+
+2007-04-11 22:29 njh
+
+ * trunk/src/audio_coreaudio.c, trunk/src/audio_macosx.c: Renamed
+ macosx to coreaudio
+ * trunk/src/audio_jack.c: Fixed C90 problems
+
+2007-04-10 20:59 njh
+
+ * trunk/src/Makefile.am: Added rule to build testcpu
+
+2007-03-11 21:54 thor
+
+ * trunk/src/optimize.c: don't pollute generic control interface
+ with "decoder: SSE"
+
+2007-03-05 00:09 thor
+
+ * trunk/src/decode_mmxsse.c, trunk/src/optimize.c: fix debug
+ compile in optimize.c ... noted inevitable failure of debug
+ compile in decode_mmxsse (long long)
+
+2007-03-05 00:06 thor
+
+ * trunk/configure.ac: make the all-in-one x86 opt the default
+ guess for i586+ linux/cygwin of course --with-cpu still gives
+ you the smaller binary optimized for one cpu only
+
+2007-03-04 23:46 thor
+
+ * trunk/src/Makefile.am: add getcpuflags.h to the distro
+
+2007-03-04 22:07 thor
+
+ * trunk/src/Makefile.am, trunk/src/dct36_3dnow.S,
+ trunk/src/dct64_3dnow.S, trunk/src/dct64_mmx.S,
+ trunk/src/dct64_mmx.s, trunk/src/decode_3dnow.S,
+ trunk/src/decode_i586.S, trunk/src/decode_i586.s,
+ trunk/src/decode_i586_dither.S, trunk/src/decode_i586_dither.s,
+ trunk/src/decode_mmx.S, trunk/src/decode_mmx.s,
+ trunk/src/equalizer_3dnow.S, trunk/src/getcpuflags.S,
+ trunk/src/tabinit_mmx.S, trunk/src/tabinit_mmx.s: convert
+ standalone assembler codes to C preprocessed asm, using mangle.h
+ and adding some quirks to make cygwin happy
+
+2007-03-04 22:06 thor
+
+ * trunk/src/optimize.c, trunk/src/optimize.h: fix the optmize
+ stuff again, optmize.c only for multi, fix mmx standalone with
+ OPT_MMXORSSE instead of MMXORSSE
+
+2007-03-04 22:04 thor
+
+ * trunk/src/mpg123.c: common.h is needed for print_stat
+
+2007-03-04 11:58 thor
+
+ * trunk/src/mpg123.c, trunk/src/optimize.c: cleaning up cpuflags
+ stuff ... really enabling test-cpu for 3dnow
+
+2007-03-04 03:17 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/dct36_3dnow.S, trunk/src/dct36_3dnow.s,
+ trunk/src/dct64_3dnow.S, trunk/src/dct64_3dnow.s,
+ trunk/src/decode_3dnow.S, trunk/src/decode_3dnow.s,
+ trunk/src/equalizer_3dnow.S, trunk/src/equalizer_3dnow.s:
+ cpp-ified some more asm, fix 3dnow in autoconf
+
+2007-03-04 01:55 thor
+
+ * trunk, trunk/AUTHORS, trunk/build, trunk/src,
+ trunk/src/Makefile.am, trunk/src/Makefile.legacy,
+ trunk/src/getcpuflags.S, trunk/src/getcpuflags.s,
+ trunk/src/mangle.h, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/optimize.c, trunk/src/optimize.h: - fix optimize.c to
+ compile again, clean up some 3dnow lecacy stuff - getcpuflags
+ asm is now fed through cpp (.S triggers that for gcc ... for
+ other compilers we could trivially force this) - also fix some
+ svn:ignores to lower the noise ...
+
+2007-03-04 01:43 thor
+
+ * trunk/src/getcpuflags.s: now using cpp to get name mangling done
+
+2007-03-02 23:34 thor
+
+ * trunk/src/getcpuflags.h, trunk/src/getcpuflags.s,
+ trunk/src/mpg123.c, trunk/src/optimize.c, trunk/src/testcpu.c:
+ refacor the cpu flag code ... now one asm funtion for all flags
+ adapted the optimize stuff Note: 3dnow has to be fixed again, or
+ at least documented that the current behaviour is to build
+ _only_ 3dnow in. To reproduce previous behaviour one would need
+ to make the 3dnow opt an alias for multi with 3dnow and i586.
+ That would be compatible, but inconsistent.
+
+2007-02-28 09:18 thor
+
+ * trunk/src/getcpuflags.s, trunk/src/testcpu.c: fix the cpuid asm
+ to be correctly skipped on a cpu that doesn't support it, add a
+ simple standalone cpu flag tester still need to reorganize the
+ split getcpuflags.s functions back into one
+
+2007-02-25 20:55 thor
+
+ * trunk/src/mpg123.c: #ifdef some mplayer import specific code in
+ mpg123.c
+
+2007-02-25 16:32 thor
+
+ * trunk/README, trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_generic.c, trunk/src/mpg123.h,
+ trunk/src/term.c, trunk/src/term.h: Adding more control to
+ terminal control: volume, rva and verbosity switch... also added
+ volume and rva info to status display.
+
+2007-02-22 05:09 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/dct36_3dnowext.c, trunk/src/dct64_3dnowext.c,
+ trunk/src/decode_i386.c, trunk/src/decode_mmxsse.c,
+ trunk/src/mpg123.c, trunk/src/optimize.c, trunk/src/optimize.h:
+ I cannot stop... hacked 3DNowExt from MPlayer in (check license
+ again...) It builds but I still have to test it on a 3dnowext
+ box. And... these MPlayer imports are not really nicely crafted.
+ One should tidy up.
+
+2007-02-22 03:47 thor
+
+ * trunk/src/mpg123.c, trunk/src/mpg123.h: mangle the 3dnow and
+ multi test option a bit for staying compatible in the solo 3dnow
+ build
+
+2007-02-22 03:38 thor
+
+ * trunk/src/optimize.c: formatting, lowercase features
+
+2007-02-22 03:29 thor
+
+ * trunk/src/getcpuflags.s, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/optimize.c, trunk/src/optimize.h: more relentless
+ duplication in the cpuflags code to detect all interesting
+ features and cpu family, adding a generic feature set test
+ (instead of only 3dnow test) and tests for auto selection of
+ opts not yet decided to prevent user from setting invalid opt
+ besides for non-pentium class cpus
+
+2007-02-22 02:09 thor
+
+ * trunk/src/mangle.h: adding this header for a moment ... it's
+ gpl-only and possibly only temporary until I decided what to do
+ with the SSE stuff
+
+2007-02-22 02:04 thor
+
+ * trunk/src/decode_i386.c, trunk/src/getcpuflags.s,
+ trunk/src/mpg123.c, trunk/src/optimize.c, trunk/src/optimize.h:
+ fixing i386 code with gcc-4.1 by using the old WRITE_SAMPLE
+ again - the new one has distorted sound and gcc complains about
+ strict aliasing ... the old WRITE_SAMPLE even seems to be faster
+ with gcc-3.4! Of course I didn't (yet) test on my real i386DX40
+ if there's an advantage. Started mocking with cpuflags to get
+ proper MMX and SSE detection.
+
+2007-02-22 00:54 thor
+
+ * trunk/src/optimize.c, trunk/src/optimize.h: some fixing for
+ multi mode... need to do cpu detection for real
+
+2007-02-21 23:43 thor
+
+ * trunk/configure.ac: debugging mode won't compile the i386 code
+ with strict aliasing rules because of WRITE_SAMPLE, adding
+ -fno-strict-aliasing
+
+2007-02-20 04:00 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/decode_i386.c, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/optimize.c, trunk/src/optimize.h: a first edition of
+ the merged build ... only serves to produce silence of funny
+ sounds atm. ... dunno why but getting some sleep looks like a
+ valid option
+
+2007-02-20 03:07 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/dct64_sse.c, trunk/src/decode_i386.c,
+ trunk/src/decode_mmxsse.c, trunk/src/layer2.c,
+ trunk/src/layer3.c, trunk/src/optimize.c, trunk/src/optimize.h:
+ Adding SSE from MPlayer! Surprised how this worked with some
+ guessing and late night disrespect. This now is again a bit
+ faster than the gcc-4.1 enhanced i386 code; and also mpg123 is
+ now again a bit faster than MPlayer at decoding mp3 on an SSE
+ cpu (well, mplayer's bigger architecture has to show somewhere
+ ... perhaps it's even just the faster update of progress display
+ on terminal, which I only redirected to /dev/null in the test).
+ What's missing is the 3DNow!Ext code, that should be adaptible
+ in the same way as the SSE code was, but it may make sense to
+ make that a bit prettier first. Oh ... and downsampling is quite
+ silent. I guess mplayer didn't use that and somehow it does not
+ magically start working for mpg123. I can still switch to
+ another dct function...
+
+2007-02-20 01:43 thor
+
+ * trunk/src/Makefile.legacy, trunk/src/optimize.c: update the
+ legacy Makefile
+
+2007-02-19 19:15 thor
+
+ * trunk/NEWS, trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/common.c, trunk/src/dct64_altivec.c,
+ trunk/src/dct64_i386.c, trunk/src/dct64_i486.c,
+ trunk/src/dct64_mmx.s, trunk/src/decode.c,
+ trunk/src/decode_2to1.c, trunk/src/decode_4to1.c,
+ trunk/src/decode_altivec.c, trunk/src/decode_i386.c,
+ trunk/src/decode_i486.c, trunk/src/decode_i586.s,
+ trunk/src/decode_i586_dither.s, trunk/src/decode_ntom.c,
+ trunk/src/layer2.c, trunk/src/layer3.c, trunk/src/mpg123.c,
+ trunk/src/mpg123.h, trunk/src/optimize.c, trunk/src/optimize.h,
+ trunk/src/tabinit.c, trunk/src/tabinit_mmx.s: Starting to hack
+ for 0.66; with the crazy idea to prepare the possibility of a
+ unified build featuring a set of (x86) optimizations to choose
+ from at runtime. I got it now so far that it compiles for the
+ one-opt builds; optmization metalogic stuff shall cluster
+ in/around optimize.[hc] . Some interesting numbers I got on -t
+ with different opts, i386 outpacing all others... Oh: As a
+ drive-by I removed the -march settings from the cpu_type opts;
+ that prevented my -march=pentium-m from being effective, which
+ interestingly didn't harm the i386 build, but the i486 one by a
+ great deal.
+
+2007-02-07 09:19 thor
+
+ * trunk/NEWS: updating for 0.65
+
+2007-02-07 09:13 thor
+
+ * trunk/configure.ac: wrap gcc specific flags into $GCC = yes,
+ first attempt to support SGI systems again (untested)
+
+2007-02-07 09:03 thor
+
+ * trunk/src/layer3.c: just a comment about the region1>region2
+ check, hinting at the possibility that it gives false positives
+ at lame 3.70 files - or that these files are just broken
+
+2007-01-31 21:37 thor
+
+ * trunk/src/common.c: adding a debug message on crc bit change to
+ clarify that the fix for bug 1629697 also fixes 1648271
+
+2007-01-31 20:54 thor
+
+ * trunk/configure.ac: Do not use -Wall per default (it's gcc
+ specific and also why nag the users with the warnings?)
+
+2007-01-22 03:09 thor
+
+ * trunk/src/id3.c: fixing bug 1641195 (id3v2.3 does not store
+ synchsafe frame sizes) as well as an error with the msb of
+ synchsafe longs (would have impact with tags >2MiB)
+
+2007-01-22 02:38 thor
+
+ * trunk/src/id3.c: id3v2.2 is a different beast, do not try to
+ parse that
+
+2007-01-20 21:06 thor
+
+ * trunk/src/common.c, trunk/src/common.h: seen the real root of
+ the evil of bug 1629697: there is an old lame tag from lame 3.70
+ that has a header without crc bit but that track has crc. Now
+ allowing the crc bit to vary in stream - it's no big deal...
+ This extends the bugfix to no also correctly parsing the lame
+ tag.
+
+2007-01-20 18:42 thor
+
+ * trunk/src/common.c, trunk/src/getbits.c: fixing 1629697
+ (awaiting verify from user): the error protection bit was lost
+ during search for first valid header (an initial bad header set
+ it to 0, now for the valid header search the stuff is
+ rerinitialized)
+
+2007-01-15 20:29 thor
+
+ * trunk/configure.ac: incrementing the version number in advance
+ to 0.65 to not miss it again like for 0.64
+
+2007-01-15 20:22 thor
+
+ * trunk/NEWS: preparing for 0.64
+
+2007-01-15 20:10 thor
+
+ * trunk/src/httpget.c: fixing a DOS issue with read errors on HTTP
+ (now failing properly instead of endless loop)
+
+2007-01-14 16:33 thor
+
+ * trunk/NEWS, trunk/README, trunk/configure.ac: preparing for 0.63
+
+2007-01-12 15:05 njh
+
+ * trunk/src/id3.c, trunk/src/readers.c: Fixes for warning: format
+ '%d' expects type 'int', but argument 5 has type 'size_t'
+
+2006-12-30 00:34 thor
+
+ * trunk/doc/BUGS: removed this bug entry because it was no bug but
+ just entering an url on the shell... an url containing & ...
+ it's a bit embarassing;-)
+
+2006-12-30 00:25 thor
+
+ * trunk/src/Makefile.legacy, trunk/src/config.h.legacy,
+ trunk/src/httpget.c, trunk/src/xfermem.c: cleanup generic code
+ with dummies for xfermem and http
+
+2006-12-24 05:16 thor
+
+ * trunk/AUTHORS, trunk/NEWS, trunk/README, trunk/configure.ac,
+ trunk/doc/README.remote, trunk/mpg123.1: preparing for 0.62
+
+2006-12-24 04:56 thor
+
+ * trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_generic.c: JUMP generic command now accepts
+ offset/position in seconds (suffix "s" to number)
+
+2006-12-24 04:24 thor
+
+ * trunk/doc/BUGS: this backgrounding is strange... only seen it on
+ smgl yet, but then for any pls-capable mpg123.
+
+2006-12-24 02:29 thor
+
+ * trunk/src/Makefile.legacy, trunk/src/common.c,
+ trunk/src/control_generic.c, trunk/src/httpget.c,
+ trunk/src/readers.c: first working soutcast/ICY meta data
+ support; we need an unsigned byte and it starts with stream
+ data, not meta data Info output is in normal console output and
+ generic control frontend... terminal control mode following
+
+2006-12-22 02:28 thor
+
+ * trunk/scripts/debugdef.pl, trunk/src/Makefile.am,
+ trunk/src/Makefile.legacy, trunk/src/debug.h,
+ trunk/src/httpget.c, trunk/src/icy.c, trunk/src/icy.h,
+ trunk/src/mpg123.c, trunk/src/readers.c, trunk/src/stringbuf.c,
+ trunk/src/stringbuf.h: Essential part of ICY support. It's in
+ reader and http_open. Missing is only proper output - and, that
+ it actually works:-/ There is something fishy in the reader...
+
+2006-12-22 02:26 thor
+
+ * trunk/doc/BUGS: one old entry removed, added one about
+ backgrounding when playing internet radio
+
+2006-12-21 23:22 thor
+
+ * trunk/src/readers.c: reformatting readers.c before adding the
+ ICY stuff
+
+2006-12-21 23:11 thor
+
+ * trunk/src/common.c, trunk/src/readers.c: removed the dead
+ READ_MMAP code
+
+2006-12-21 23:06 thor
+
+ * trunk/src/readers.c: shake hands with open_stream again,
+ formatting and comments
+
+2006-12-02 14:17 thor
+
+ * trunk/AUTHORS, trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_generic.c, trunk/src/id3.c,
+ trunk/src/mpg123.c, trunk/src/mpg123.h: - added volume setting
+ for frontend - added rva setting for frontend, refined rva
+ settign a bit (fixed a bug with first setting not being made ??)
+ - c90 fixes - rva defines not wrapped in gapless ifdef - updated
+ pasky's deeds
+
+2006-11-30 11:16 thor
+
+ * trunk/src/httpget.c, trunk/src/playlist.c, trunk/src/readers.c:
+ adding acceptance of MIME types application/pls and audio/x-mpeg
+ ... Perhaps this list of aliases for playlists and streams has
+ to grow further...
+
+2006-11-20 09:08 thor
+
+ * trunk/src/audio_oss.c: Remove byteswapping code that got
+ accidentally reactivated (OSS output now simply requests native
+ endianess) - thanks for pointing out, DK!
+
+2006-11-02 17:32 thor
+
+ * trunk/src/id3.c, trunk/src/mpg123.c, trunk/src/mpg123.h: merged
+ pasky's ide about adaptive condensed tag display and made it
+ default; added --long-tag option for the previous, space taking,
+ variant (one may prefer it on occasion)
+
+2006-11-02 17:09 thor
+
+ * trunk/src/common.c, trunk/src/id3.c: de-verbose, moved notes at
+ least one verbosity level up There was too much noise...
+
+2006-11-02 16:40 thor
+
+ * trunk/src/id3.c, trunk/src/stringbuf.c: adapting and fixing
+ pasky's (Petr Baudi) utf emergency patch (at least interpreting
+ and converting to lating1/ascii where possible), avoids messing
+ up the terminal when encountering unicode
+
+2006-10-31 19:02 njh
+
+ * trunk/configure.ac, trunk/src/audio_macosx.c: Applied patch from
+ Taihei Monma to using AudioUnit API instead of coreaudio API
+
+2006-10-30 03:15 thor
+
+ * trunk/AUTHORS, trunk/src/term.c: term patch (restore on sigcont)
+ from petr baudis
+
+2006-10-24 21:56 thor
+
+ * trunk/src/audio_nas.c: corrected is error1 with one argument -
+ thanks, DK
+
+2006-10-20 23:10 njh
+
+ * trunk/configure.ac: Don't think the space at the start of the
+ file was deliberate
+
+2006-10-20 22:00 thor
+
+ * trunk/AUTHORS, trunk/NEWS, trunk/README, trunk/mpg123.1:
+ preparing for 0.61
+
+2006-10-20 11:25 thor
+
+ * trunk/configure.ac: reassuring notes about cygwin
+
+2006-10-12 13:48 thor
+
+ * trunk/src/mpg123.c: trying to mke the generic code compile again
+ - catch_child should not be used when we do not define it
+
+2006-10-12 13:33 thor
+
+ * trunk/src/id3.c: do not use C99 types without _very_ good reason
+
+2006-10-12 13:29 thor
+
+ * trunk/src/httpget.c: fake http_open had bad definition
+ * trunk/configure.ac: test with ==, not =
+
+2006-10-11 23:14 njh
+
+ * trunk/AUTHORS, trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/dct64_altivec.c, trunk/src/decode_altivec.c,
+ trunk/src/tabinit.c: Added Taihei Monma's AltiVec improvements
+
+2006-10-10 23:45 thor
+
+ * trunk/src/dct64_i486.c: applied i486 patch from Petr Salinger
+ <Petr.Salinger@seznam.cz> (sf.net tracker
+ http://sourceforge.net/tracker/index.php?func=detail&aid=1572103&group_id=135704&atid=733194)
+
+2006-10-10 08:41 thor
+
+ * trunk/configure.ac: oh, the kfreebsd cpus are the same as for
+ linux, thanks Petr
+
+2006-10-09 22:14 thor
+
+ * trunk/configure.ac: configure update for kfreebsd (bsd with gnu
+ userspace) and cygwin (no assembler by default, oss instead of
+ lame-linking esd)
+
+2006-10-09 21:42 thor
+
+ * trunk/src/common.c, trunk/src/control_generic.c,
+ trunk/src/mpg123.h: Slimmed the ugly #ifdef REAL_IS... stuff in
+ scanf based on central format definition in mpg123.h; also added
+ such safe format for a printf (sendmsg). Jens Wilhelm Wulf
+ suggested something like that. I agree.
+
+2006-10-05 16:04 thor
+
+ * trunk/mpg123.1: we can do mpeg 2.5!
+
+2006-09-30 16:10 thor
+
+ * trunk/src/common.c, trunk/src/common.h, trunk/src/readers.c: Ok,
+ Struggled a while to nail bug 1556471. We have now (for seekable
+ streams) a basic read ahead for finding the real first frame.
+ The next step would be to make every resync use that, but the
+ most important situation is nasty garbage at beginning of file.
+ I also loosened the HDRCMPMASK to allow changing bitrate - the
+ resync disregards valid VBR frames otherwise.
+
+2006-09-29 23:42 thor
+
+ * trunk/src/audio.c, trunk/src/audio.h, trunk/src/audio_alib.c,
+ trunk/src/audio_jack.c, trunk/src/audio_macosx.c,
+ trunk/src/audio_mint.c, trunk/src/audio_nas.c,
+ trunk/src/audio_oss.c, trunk/src/audio_portaudio.c,
+ trunk/src/audio_sdl.c, trunk/src/audio_sgi.c,
+ trunk/src/common.c, trunk/src/control_generic.c,
+ trunk/src/decode_ntom.c, trunk/src/getlopt.c,
+ trunk/src/httpget.c, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/playlist.c, trunk/src/readers.c, trunk/src/tabinit.c:
+ Big commit, inspired by bug 1555113 a) turning any potentially
+ harmful (to terminal) exit()s into return or safe_exit in
+ mpg123.c b) alsong that, convert many fprintf(stderr to the
+ error macro I tried to refrain from more cleanups...
+
+2006-09-27 20:32 thor
+
+ * trunk/src/wav.c: replace various exit()s to return instead, use
+ error/waring macros
+
+2006-09-27 19:36 thor
+
+ * trunk/configure.ac: according to bug id 1556769, fix solaris
+ detection
+
+2006-09-27 18:13 thor
+
+ * trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_generic.c, trunk/src/mpg123.c,
+ trunk/src/term.c, trunk/src/term.h: give targeted position in
+ terminal mode then seeking while stopped
+
+2006-09-27 17:15 thor
+
+ * trunk/src/control_generic.c, trunk/src/layer3.c,
+ trunk/src/layer3.h: Extended gapless mode for control_generic to
+ also cover the pause-seek-unpause case where not a gap but a
+ tick from the grave is the problem (because of old frames
+ influencing new ones at different location in stream). I don't
+ claim that it is nice what I did, but it seems to work nicely
+ for me.
+
+2006-09-20 10:24 thor
+
+ * trunk/configure.ac: we are working on the next release
+
+2006-09-20 10:22 thor
+
+ * trunk/src/term.c: prevent unpleasant effect when stopping,
+ seeking, resuming
+
+2006-09-14 18:57 thor
+
+ * trunk/src/layer3.c: applied the CVE-2006-1655 fix at another
+ very similar location
+
+2006-09-04 17:29 thor
+
+ * trunk/configure.ac, trunk/src/audio_esd.c: make ESD work for
+ otehr systems with dummy queueflush, try to support Cygwin
+
+2006-08-30 13:18 thor
+
+ * trunk/doc/ROAD_TO_LGPL: another typo
+
+2006-08-30 02:58 thor
+
+ * trunk/src/Makefile.am: some default config.h.legacy should not
+ hurt
+
+2006-08-30 02:57 thor
+
+ * trunk/ChangeLog: dummy again
+
+2006-08-30 02:53 thor
+
+ * trunk/src/audio_alsa.c: info for bug 1547470
+
+2006-08-29 21:56 thor
+
+ * trunk/ChangeLog, trunk/NEWS: last NEWS
+
+2006-08-29 21:54 thor
+
+ * trunk/INSTALL: small correction for libasound and typo
+
+2006-08-29 21:53 thor
+
+ * trunk/src/layer3.c: this sort of / spurious overflow is too
+ common, debug+verbose
+
+2006-08-29 21:52 thor
+
+ * trunk/configure.ac: calling it version 0.60
+
+2006-08-29 17:09 thor
+
+ * trunk/configure.ac: copy and pase typo, nas is not alsa
+
+2006-08-29 12:04 thor
+
+ * trunk/src/id3.c: fix compiler warning about sign differing
+ pointers
+
+2006-08-29 11:57 thor
+
+ * trunk/doc/PATENTS: typo
+
+2006-08-27 09:22 thor
+
+ * trunk/NEWS: news for 0.60-beta6
+
+2006-08-27 09:14 thor
+
+ * trunk/Makefile.am: also distribute the THANKS
+ * trunk/doc/THANKS: as Gabor suggested - let us be thankful
+
+2006-08-27 09:08 thor
+
+ * trunk/configure.ac: goign to be last beta - for real now!
+
+2006-08-27 01:50 thor
+
+ * trunk/src/Makefile.am, trunk/src/Makefile.legacy,
+ trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_generic.c, trunk/src/id3.c, trunk/src/id3.h,
+ trunk/src/mpg123.c, trunk/src/mpg123.h, trunk/src/stringbuf.c,
+ trunk/src/stringbuf.h: Too big upgrade... It is actually just
+ about better id3 support, namely adding basic parsing and
+ display of id3v2 text info fields. The code for that was
+ outsourced from common.c - that file contained too much "common"
+ code... One change on the side ofthe way is that control_generic
+ now doesn't exit but return properly so that the main routine
+ can cleanup afterwards
+
+2006-08-26 14:53 thor
+
+ * trunk/src/Makefile.am, trunk/src/playlist.c,
+ trunk/src/playlist.h, trunk/src/stringbuf.c,
+ trunk/src/stringbuf.h: stringbuf on its own to be reused
+
+2006-08-26 13:59 thor
+
+ * trunk/src/common.c, trunk/src/readers.c: moved id3 printing to
+ read_frame; going to add id3v2 printing support there
+
+2006-08-26 13:45 thor
+
+ * trunk/src/common.c: promote some ID3v2 info form debug to very
+ verbose
+
+2006-08-25 12:28 thor
+
+ * trunk/src/audio_libao.c, trunk/src/mpg123.c,
+ trunk/src/playlist.c: struggling to stay C90 compatible...
+ mostly (no %z printf specifier)
+
+2006-08-25 10:36 thor
+
+ * trunk/NEWS, trunk/configure.ac: steering towards beta5
+
+2006-08-25 10:28 thor
+
+ * trunk/configure.ac, trunk/doc/TODO, trunk/src/Makefile.am: form
+ framework to support fixed point arithmetic; normal playback
+ working with generic_nofpu
+
+2006-08-25 09:28 thor
+
+ * trunk/src/mpg123.c, trunk/src/playlist.c, trunk/src/playlist.h:
+ playlist entry length not statically limited anymore, memory
+ housekeeping
+
+2006-08-25 09:24 thor
+
+ * trunk/src/getlopt.c: memory gets lost on strdup according to
+ valgrind...
+
+2006-08-24 21:53 thor
+
+ * trunk/src/playlist.c, trunk/src/playlist.h: boilerplates for
+ playlist...
+
+2006-08-24 21:52 thor
+
+ * trunk/src/Makefile.am, trunk/src/Makefile.legacy,
+ trunk/src/mpg123.c, trunk/src/mpg123.h, trunk/src/playlist.c,
+ trunk/src/playlist.h: A step to a leaner mpg123.c: outsourced
+ and reorganized the playlist code. Main functionality change is
+ that the whole playlist is read in on program start (rather
+ needed for http playlists since few servers will keep up the
+ connection for the duration of several tracks).
+
+2006-08-24 10:53 thor
+
+ * trunk/ChangeLog: dummy ChangeLog so that autogen.sh does not
+ complain anymore
+
+2006-08-24 09:18 thor
+
+ * trunk/src/mpg123.c: fixing bug 1544530; do not parse listname
+ when it is NULL
+
+2006-08-24 08:08 thor
+
+ * trunk/src/audio_alsa.c: note about needed adjustable alsa buffer
+
+2006-08-24 08:06 thor
+
+ * trunk/src/config.h.legacy: sys/types.h could be needed
+
+2006-08-24 08:05 thor
+
+ * trunk/src/mpg123.c: give chose audio rate in very verbose mode
+
+2006-08-22 12:20 thor
+
+ * trunk/src/common.c: missed a line break in rva message
+
+2006-08-22 09:31 thor
+
+ * trunk/COPYING, trunk/INSTALL, trunk/NEWS, trunk/README: more doc
+ update
+
+2006-08-22 09:01 thor
+
+ * trunk/NEWS, trunk/README: update info for release of beta4
+
+2006-08-22 07:09 thor
+
+ * trunk/Makefile.am, trunk/src/common.c, trunk/src/layer3.c: more
+ silent for normal usage
+
+2006-08-21 23:07 thor
+
+ * trunk/doc/LICENSE: please let me my mild humor...
+
+2006-08-21 18:24 thor
+
+ * trunk/BENCHMARKING, trunk/BUGS, trunk/CONTACT,
+ trunk/Makefile.am, trunk/README, trunk/doc/BENCHMARKING,
+ trunk/doc/BUGS, trunk/doc/CONTACT: more doc tidyness
+
+2006-08-21 17:23 thor
+
+ * trunk/misc/equalizer-control.pl, trunk/misc/test.pl: naming the
+ equalizer demo script accordingly
+
+2006-08-21 17:22 thor
+
+ * trunk/misc, trunk/misc/test.pl, trunk/test.pl: misc stuff gets a
+ place
+
+2006-08-21 17:20 thor
+
+ * trunk/TODO, trunk/doc/TODO: Yeah, this one, too.
+
+2006-08-21 17:17 thor
+
+ * trunk/ROAD_TO_LGPL, trunk/doc/ROAD_TO_LGPL: ...
+ * trunk/PATENTS, trunk/doc/PATENTS: ...
+
+2006-08-21 17:15 thor
+
+ * trunk/README.WIN32, trunk/doc/README.WIN32: not front page 5
+
+2006-08-21 17:14 thor
+
+ * trunk/README.thor, trunk/doc/README.thor: not front page 4
+ * trunk/README.remote, trunk/doc/README.remote: not front page 3
+ * trunk/README.gain, trunk/doc/README.gain: not front page 2
+ * trunk/README.3DNOW, trunk/doc/README.3DNOW: not front page
+
+2006-08-21 17:13 thor
+
+ * trunk/doc: doc dir created
+
+2006-08-21 16:57 thor
+
+ * trunk/ROAD_TO_LGPL: the file list is the historic one from
+ 17.7.2006, for changes after that we have our logs
+
+2006-08-21 16:52 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am: fixing i486
+
+2006-08-21 16:45 njh
+
+ * trunk/CHANGES, trunk/LICENSE, trunk/Makefile.am, trunk/NEWS,
+ trunk/README.thor, trunk/ROAD_TO_LGPL, trunk/configure.ac:
+ mpg123 now uses standard GNU file names.
+
+2006-08-21 16:13 thor
+
+ * trunk/configure.ac, trunk/src/Makefile.am: trying to get
+ i486/i386 back
+
+2006-08-21 15:52 njh
+
+ * trunk/src/Makefile.am: Added decode_i486.c to 486 CPU target
+
+2006-08-21 15:22 thor
+
+ * trunk/src/layer3.c: do not annoy every user - overflow warning
+ as debug message
+
+2006-08-21 15:07 thor
+
+ * trunk/src/common.c: avoid non-C90 printf stuff, better solution
+ in future
+
+2006-08-21 14:57 thor
+
+ * trunk/src/common.c: long long is not safely there... just use
+ long for this debugging output of an off_T
+
+2006-08-21 14:53 thor
+
+ * trunk/configure.ac, trunk/src/common.c, trunk/src/common.h,
+ trunk/src/config.h.legacy, trunk/src/readers.c,
+ trunk/src/term.c, trunk/src/term.h: Disabled mmap stuff; vbr
+ seeking having replaced old stream seek There is now a configure
+ option to select frame index table size - if set to 0, you
+ basically disable it any any seek will start from beginning and
+ the read through the frames.
+
+2006-08-21 13:48 thor
+
+ * trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_generic.c: a working seek for generic control
+ (now also working backwards - whee!), along the way some more
+ cleanup regarding the frame numeber bein in frame struct
+
+2006-08-21 13:40 thor
+
+ * trunk/src/mpg123.c: to make it clear: -s gives you host byte
+ order!
+
+2006-08-21 13:36 thor
+
+ * trunk/src/term.c: after rewind, we are at frame zero again
+
+2006-08-21 13:20 thor
+
+ * trunk/src/mpg123.c: non-vbr seek mode does also count frames in
+ read_frame
+
+2006-08-21 13:18 thor
+
+ * trunk/src/mpg123.h, trunk/src/readers.c: take long arguments as
+ frame offset
+
+2006-08-21 13:02 thor
+
+ * trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_generic.c, trunk/src/mpg123.c,
+ trunk/src/mpg123.h, trunk/src/readers.c, trunk/src/term.c,
+ trunk/src/term.h: big thing... it's the initial addition of some
+ sort of accurate seeking in vbr (and strangely tagged) files. I
+ didn't do it for mmapped mode and I think I'll erase that one
+ soon, anyway (you can use stuff like /dev/shm or just trust your
+ kernel buffers). There are some changes more or less related to
+ seeking that have been necessary. Most code is wrapped in #ifdef
+ VBR seek now...
+
+2006-08-21 12:56 thor
+
+ * trunk/src/httpget.c: adding workaround for rautemusik internet
+ radio... their server doesn't like the port in Host request
+ header! (gives endless relocations)
+
+2006-08-21 12:21 thor
+
+ * trunk/src/audio_alsa.c: make the close foolproof (instead of
+ fixing the code that calls it without having the device opened
+ before)
+
+2006-08-21 11:58 thor
+
+ * trunk/src/audio_alsa.c, trunk/src/term.c: Now more proper alsa
+ code from clemens; fixing the remaining buffer mode crashes by
+ making term.c more aware of the fact that if there is a buffer,
+ no one else should mess with the audio device.
+
+2006-08-17 07:46 thor
+
+ * trunk/src/common.c, trunk/src/readers.c: Ok, changed the check
+ in read_frame back to comparig the new header with first and old
+ header. That is a pragmatic change that gives some false
+ negatives but still allows seeking in this one evil file at all.
+ Blind seeking in vbr files is evil.
+
+2006-08-17 07:38 thor
+
+ * trunk/src/common.c, trunk/src/common.h, trunk/src/readers.c:
+ Started workign on the seeking (and fixed the second-time id3v2
+ recognition to happen in quiet mode , too, by the way). The
+ seeking is a mess but necessarily so for vbr files that we don't
+ have a frame mapping for (from Xing header - not used atm,
+ though). Now the seeking at least works for this one very vbr
+ file (where no frame is like the first!) where formerly any
+ seekl lead directly to end-of-track. There is a tradeoff: Now we
+ get false positives from time to time. We should treat
+ Xing-tagged vbr files with all the info we have and at least
+ warn about vbr files that lack the seeking info.
+
+2006-08-17 00:06 thor
+
+ * trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_generic.c: One place to calculate current
+ seconds, frames to go... also introduced mean_framesize to make
+ better estimates on remaining track length for vbr files without
+ xing header (from which the number of frames is known).
+
+2006-08-15 18:22 thor
+
+ * trunk/INSTALL: one should say what is needed even if trivial
+
+2006-08-15 17:06 thor
+
+ * trunk/src/audio_alsa.c: code and vars!
+
+2006-08-15 15:13 thor
+
+ * trunk/src/term.c, trunk/src/term.h: give a clue about control
+ via online help
+
+2006-08-15 14:54 thor
+
+ * trunk/src/term.c, trunk/src/term.h: space bar is very intuitive
+ for the stop(real pause) function
+
+2006-08-15 13:57 thor
+
+ * trunk/src/audio_alsa.c: ALSA: you need to prepare after drop;
+ solving the buffer kill / no sound after "b" issue following
+ suggestion from Clemens Ladisch
+
+2006-08-14 22:16 njh
+
+ * trunk/src/audio_sdl.c: Previously forgot to free up ringer
+ buffer in audio_close(). Changed to using new debugging and
+ error macros.
+
+2006-08-14 22:05 njh
+
+ * trunk/src/audio_macosx.c: Got so fed up with trying to get
+ audio_queueflush() working that I changed everything to use
+ SFIFO code instead.
+
+2006-08-14 17:04 njh
+
+ * trunk/src/audio_macosx.c: Initialise env to NULL.
+
+2006-08-14 16:41 njh
+
+ * trunk/src/audio_macosx.c: Fixed bug #1532711. Can now call
+ audio_close() before audio_open() without crash.
+
+2006-08-13 21:53 thor
+
+ * trunk/src/audio_alsa.c: alsa queueflush with snd_pcm_drop is
+ troublesome...
+
+2006-08-13 21:52 thor
+
+ * trunk/src/common.c: reading id3v2 frames anytime when encountered
+
+2006-08-13 19:53 thor
+
+ * trunk/src/audio_alsa.c: queueflush for alsa needs fixing with
+ buffer; bug id 1536513
+
+2006-08-13 19:51 thor
+
+ * trunk/src/mpg123.c: this check is not complete nonsense
+
+2006-08-13 17:07 thor
+
+ * trunk/configure.ac: --disable-debug != --enable-debug! Now
+ getting this right...
+
+2006-08-13 16:02 thor
+
+ * trunk/AUTHORS: storing the email that worked
+
+2006-08-13 00:43 thor
+
+ * trunk/src/common.c: oops, pointer!
+
+2006-08-13 00:41 thor
+
+ * trunk/src/common.c: calm down gcc for pointer signs
+
+2006-08-13 00:35 thor
+
+ * trunk/CHANGES, trunk/Makefile.am, trunk/src/Makefile.am: distro
+ stuff...
+
+2006-08-13 00:04 thor
+
+ * trunk/src/common.c: just a note
+
+2006-08-12 23:55 thor
+
+ * trunk/src/layer3.c: the small xrpnt overflow is a warning and no
+ error
+
+2006-08-12 23:51 thor
+
+ * trunk/src/common.c: fiddled a bit with the ID3v2 debugging
+ messsages
+
+2006-08-12 23:20 thor
+
+ * trunk/README, trunk/mpg123.1: minimal doc change before beta4
+
+2006-08-12 19:15 thor
+
+ * trunk/src/layer3.c: this common "error" message is better just
+ for debugging
+
+2006-08-12 19:04 thor
+
+ * trunk/src/layer3.c, trunk/src/mpg123.c: Printing wanted help to
+ stdout is a good idea, printing the mpg123 hello lines on stdout
+ with the -s switch possibly in work is a bad one. Shame on you...
+
+2006-08-08 01:34 thor
+
+ * trunk/TODO: more notes about progress and outstanding progress
+
+2006-08-08 01:31 thor
+
+ * trunk/README.gain: update about progress
+
+2006-08-08 01:29 thor
+
+ * trunk/BUGS: You are not alone... bugs all around.
+
+2006-08-08 01:23 thor
+
+ * trunk/configure.ac: linkflag to libs and not CFLAGS... Clemens
+ got that covered, too.
+
+2006-08-08 01:18 thor
+
+ * trunk/src/audio_alsa.c: Clemens Ladisch rightfully erased my
+ dirty hack and made proper Alsa API check for initialized
+ device;-)
+
+2006-08-08 01:15 thor
+
+ * trunk/src/common.c, trunk/src/config.h.legacy: Too late again...
+ feverishly hacked reading of RVA values from ID3v2 in 3 variants
+ - ID3v2.4 RVA2 frames - RVA_* style comment fields - TXXX fields
+ from foobar2000 (untested)
+
+2006-08-07 08:48 thor
+
+ * trunk/src/common.c: Got a good deal of ID3v2 parsing... now
+ wondering why I cannot derive the correct size of the Image in
+ this Mike Zee file. id3v2 -l sees it correctly; I parse the size
+ value - and that simply is wrong?!! After I've settled that the
+ file is just broken and id3v2 does play some trick, I can go
+ back to store RVA values...
+
+2006-08-06 17:48 thor
+
+ * trunk/TODO: being more clear there on gain and types
+
+2006-08-06 17:45 thor
+
+ * trunk/src/readers.c: We have to stop using ints everywhere for
+ byte counts... future TODO.
+
+2006-08-06 17:20 thor
+
+ * trunk/README.gain, trunk/src/common.c: going to make id3v2
+ parsing properly... since not even id3lib can handle 2.4:-(
+
+2006-08-06 17:02 thor
+
+ * trunk/README.gain, trunk/configure.ac, trunk/src/common.c: some
+ clarification adding to the confusion - did I already say that
+ all this tagging is a MESS?
+
+2006-08-06 16:20 thor
+
+ * trunk/src/mpg123.h: should we limit samples to 2**16/2 or
+ 2**16/1-1? there will be a one missing in the first case... or
+ is this taken care of elsewhere?
+
+2006-08-06 13:21 thor
+
+ * trunk/mpg123.1, trunk/src/common.c, trunk/src/mpg123.c,
+ trunk/src/mpg123.h: initial RVA support using ReplayGain values
+ in Info/Lame tag
+
+2006-08-06 11:02 thor
+
+ * trunk/configure.ac, trunk/src/common.c, trunk/src/httpget.c,
+ trunk/src/mpg123.h: some more explicit/corrected system header
+ dependencies along with fallback (for SIZE_MAX, ULONG_MAX), in
+ common.c the maximal frame count for gapless is now actually
+ depending on the system limit
+
+2006-08-06 10:25 thor
+
+ * trunk/README.gain: thoughts about RVA gain
+
+2006-08-06 00:50 thor
+
+ * trunk/CHANGES, trunk/src/mpg123.c: update CHANGES, officially
+ adding MPEG 2.5
+
+2006-08-06 00:45 thor
+
+ * trunk/src/common.c, trunk/src/layer3.c: some more unified error
+ messages
+
+2006-08-06 00:39 thor
+
+ * trunk/src/common.c: 1. re-enable MPEG 2.5 as I could be actually
+ safe to do so 2. bail out on free format header if first one (so
+ supposedly not just stream distortion) 3. _not_ bail out on
+ decode_header failure ... perhaps this is no good idea?
+
+2006-08-05 22:40 thor
+
+ * trunk/src/layer3.c: comment about mhipp bandinfo change...
+ should we change?
+
+2006-08-05 21:38 thor
+
+ * trunk/src/layer3.c: small cleanup - #if 0 code, const
+
+2006-08-05 20:46 thor
+
+ * trunk/src/layer3.c: say what's wrong on bad sideinfo
+
+2006-08-05 17:06 thor
+
+ * trunk/src/layer3.c: Widen the bugfix for the Stravinsky fuzzing
+ ... there are files where xrpnt does exceed that range is
+ supposedly should have (?), pointing to end+4 bytes. Since these
+ play fine now and sounded wrong with the strict check, I hope
+ this is justified. when will I have time to really understand
+ the core decoding routines and their pointers?
+
+2006-08-05 16:48 thor
+
+ * trunk/src/common.c: more standard error messages
+
+2006-08-05 14:55 thor
+
+ * trunk/scripts/debugdef.pl, trunk/src/debug.h: now also warnings
+ and error messages as macro
+
+2006-08-05 14:54 thor
+
+ * trunk/src/Makefile.legacy: brute force debug.h depends
+
+2006-08-05 13:10 thor
+
+ * trunk/src/common.c: updated debugging lines
+
+2006-08-04 10:00 thor
+
+ * trunk/src/mpg123.c: A proposal for smaller head message.
+
+2006-08-04 09:51 thor
+
+ * trunk/src/audio_alsa.c: hotfix for my laptop... don't call
+ snd_pcm_drain when we didn't really prepare the device
+
+2006-08-04 08:56 njh
+
+ * trunk/AUTHORS, trunk/CHANGES: Added Clemens Ladisch as author of
+ ALSA support
+
+2006-08-04 08:04 njh
+
+ * trunk/src/audio_alsa.c: new ALSA audio output driver sent to me
+ by Clemens Ladisch
+
+2006-08-04 00:38 njh
+
+ * trunk/CHANGES, trunk/configure.ac: Removed libao from
+ distribution. Bumbed version number.
+ * trunk/src/dct64_altivec.c: Oops - I broke Altivec - this fixes
+ it again
+
+2006-08-04 00:37 njh
+
+ * trunk/src/Makefile.am: Added debug.h to list of source files so
+ that it is distributed
+
+2006-08-02 11:27 njh
+
+ * trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/audio_portaudio.c, trunk/src/audio_sdl.c,
+ trunk/src/sfifo.h: SDL is working nicely now.
+
+2006-08-02 03:27 njh
+
+ * trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/audio_portaudio.c, trunk/src/dct64_altivec.c,
+ trunk/src/sfifo.c, trunk/src/sfifo.h: Added PortAudio support -
+ and remove Altivec autodetectoion because it was more trouble
+ than it was worth
+
+2006-08-02 00:04 njh
+
+ * trunk/configure.ac, trunk/src/dct64_altivec.c: Use Altivec if
+ available automatically
+
+2006-08-01 19:29 njh
+
+ * trunk/Makefile.am, trunk/configure.ac, trunk/src/audio_alsa.c,
+ trunk/src/audio_alsa05.c, trunk/src/audio_alsa08.c,
+ trunk/src/audio_alsa09.c: Nearly implemented ALSA 0.9 API
+ support - still got a few problems though.
+
+2006-08-01 16:10 njh
+
+ * trunk/src/httpget.c: Variables delared in bad places
+
+2006-08-01 15:59 njh
+
+ * trunk/TODO: Added my own TODO list items
+
+2006-08-01 14:58 njh
+
+ * trunk/src/Makefile.am, trunk/src/Makefile.legacy,
+ trunk/src/dct64_MMX.s, trunk/src/dct64_mmx.s,
+ trunk/src/decode_MMX.s, trunk/src/decode_mmx.s,
+ trunk/src/tabinit_MMX.s, trunk/src/tabinit_mmx.s: made MMX
+ lowercase for concistency with other processor names
+
+2006-08-01 14:28 njh
+
+ * trunk/src/audio_alsa.c, trunk/src/audio_alsa08.c: Moved old also
+ audio interface code out of the way
+
+2006-07-29 16:31 thor
+
+ * trunk/configure.ac: beta3!
+ * trunk/src/mpg123.c: added missing \n in longhelp
+
+2006-07-29 16:29 thor
+
+ * trunk/CHANGES, trunk/mpg123.1, trunk/src/mpg123.c,
+ trunk/src/mpg123.h: enhancing the playlist mode with more mime
+ and the listentry parameter
+
+2006-07-29 11:51 thor
+
+ * trunk/src/httpget.c, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/readers.c: fixing bug id 1529319... and overreacting a
+ bit about the whole issue: - initialy made steps to HTTP/1.1
+ (for the host header field because of virtual hosts support) but
+ retreated after realizing that one has to accept chunked data -
+ now still HTTP/1.0 with host header as extension (as before,
+ actually), also again sending only absolute paths as requests
+ (no full url) but still allowing relative redirects - using the
+ content-type header field to prevent playback of wrong codec and
+ to more safely recognice playlist files - one result: for a
+ single we resource one can always use the -@ switch: playlists
+ are treated as playlists and if it is an audio/mpeg file, it is
+ reopened as such - added most simple parsing of pls (shoutcast)
+ playlists
+
+2006-07-29 06:02 thor
+
+ * trunk/src/mpg123.c: explicitly handle failed http_open
+
+2006-07-29 05:03 thor
+
+ * trunk/src/httpget.c: make sure that httpauth1 doesn't leak
+ memory... oaranoid
+
+2006-07-29 04:49 thor
+
+ * trunk/src/mpg123.c: 1. noted a memory leak on strdup but not
+ fixed yet 2. fruitless debugging of terminal mindbreaking
+ characters from a internet radio playlist. Probably these are
+ actually send by the server.
+
+2006-07-28 13:45 thor
+
+ * trunk/src/httpget.c: fixing bug 1529266; the segfault happening
+ on the second http request was due to a global pointer
+ (httpauth1) being free()d but not nulled.
+
+2006-07-24 11:32 thor
+
+ * trunk/CHANGES: beta2 update just before real release...
+
+2006-07-24 11:10 thor
+
+ * trunk/configure.ac: I won't screw history: this is beta2, even
+ when beta1 didn't see the sunlight.
+
+2006-07-24 11:08 thor
+
+ * trunk/src/mpg123.c, trunk/src/mpg123.h, trunk/src/term.c: Oh,
+ what a bug: The terminal control key "f" for next track relied
+ on the SIGINT hack. Shame on me for not knowing this when
+ diabling this hack for terminal control mode.
+
+2006-07-24 10:32 thor
+
+ * trunk/configure.ac: version 0.60-beta1
+
+2006-07-24 10:30 thor
+
+ * trunk/README: date of today
+
+2006-07-24 10:29 thor
+
+ * trunk/PATENTS: Notes about patents... the date of expiration of
+ the core mp3 patent would make a nice release day for mpg123
+ 0.60;-)
+
+2006-07-24 10:28 thor
+
+ * trunk/README: small updates
+
+2006-07-24 09:02 thor
+
+ * trunk/ROAD_TO_LGPL: The LGPL reasoning for y'all to read.
+
+2006-07-24 08:57 thor
+
+ * trunk/plugin: empty, useless
+
+2006-07-24 08:56 thor
+
+ * trunk/README.thor: typo
+
+2006-07-24 08:52 thor
+
+ * trunk/Makefile.win32, trunk/src/Makefile.win32: moved the Win32
+ Makefile to src/ ... I'm pretty sure that it won't work as is
+ anymore. Have to grab some windows box and test... eh, and some
+ compiler. Borland?
+
+2006-07-24 08:46 thor
+
+ * trunk/CHANGES: corrections and additions
+
+2006-07-24 08:42 thor
+
+ * trunk/mpg123.1: added license
+
+2006-07-24 08:33 thor
+
+ * trunk/mpg123.1: ... the file AUTHORS ...
+
+2006-07-24 07:49 thor
+
+ * trunk/mpg123.1: updated the man page ... my first one without
+ the help of perldoc
+
+2006-07-24 07:38 thor
+
+ * trunk/src/mpg123.c: title setting also for rxvt-* and xterm-*;
+ added help about that
+
+2006-07-24 06:57 thor
+
+ * trunk/TODO: note about track gain adjustment
+
+2006-07-24 01:05 thor
+
+ * trunk/BENCHMARKING.thor, trunk/mpg123.1: in BENCHMARKING now
+
+2006-07-24 01:04 thor
+
+ * trunk/BENCHMARKING: Updated the benchmarking notes, added
+ BENCHMARKING.thor contents as well as some fresh recheck.
+
+2006-07-24 00:56 thor
+
+ * trunk/INSTALL: updated installation instructions
+
+2006-07-24 00:15 thor
+
+ * trunk/src/mpg123.c: fixed lecagy build broken by VERSION_STRING;
+ made help output nicer
+
+2006-07-23 22:58 thor
+
+ * trunk/src/Makefile.legacy: fixing the install target
+
+2006-07-23 18:56 thor
+
+ * trunk/AUTHORS: cleaning up and warning spammers
+
+2006-07-17 22:37 thor
+
+ * trunk/mpg123.1, trunk/src/mpg123.c: - seen that manpage needs a
+ lot of updating (nearly ten years old!) - made the wanted usage
+ info (-?, --help, --longhelp) go to stdout and only the
+ help-on-error to stderr - added --version to give program
+ version string
+
+2006-07-17 21:04 thor
+
+ * tools, trunk/tools: keep the main trunk tight; auxilliary tools
+ in separate location
+
+2006-07-17 21:03 thor
+
+ * trunk/precompiled: we have assemblers nowadays, no need to keep
+ the precompiled objects
+
+2006-07-17 19:45 thor
+
+ * trunk/BUGS, trunk/CHANGES, trunk/CONTACT, trunk/LICENSE,
+ trunk/README, trunk/README.cfa, trunk/README.new,
+ trunk/README.remote, trunk/README.thor,
+ trunk/src/control_generic.c: Getting documentation closer to
+ release, typo in control_generic help.
+
+2006-07-17 19:25 thor
+
+ * trunk/README: to be replaced by new one
+
+2006-07-17 17:33 thor
+
+ * legal/statements/Nicholas_J._Humfrey.email, trunk/COPYING:
+ Updated COPYING to a near-final state, added agreement hint by
+ Nicholas.
+
+2006-07-17 16:20 thor
+
+ * legal/first_final.txt, trunk/src/Makefile.am,
+ trunk/src/layer1.c, trunk/src/layer2.c, trunk/src/layer3.c,
+ trunk/src/layer3.h, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/readers.c, trunk/src/system.c, trunk/src/tabinit.c,
+ trunk/src/term.c, trunk/src/term.h, trunk/src/wav.c,
+ trunk/src/xfermem.c, trunk/src/xfermem.h: Next round of
+ boilerplates along with the story. With the current argument,
+ there is only one GPL-only file left!
+
+2006-07-17 16:16 thor
+
+ * trunk/MakeLegacy.sh: We write C, not C++.
+
+2006-07-17 14:59 thor
+
+ * trunk/AUTHORS, trunk/COPYING, trunk/src/audio_esd.c,
+ trunk/src/equalizer.c, trunk/src/genre.h, trunk/src/getbits.c,
+ trunk/src/getbits.h, trunk/src/getcpuflags.s,
+ trunk/src/getlopt.c, trunk/src/getlopt.h, trunk/src/httpget.c,
+ trunk/src/huffman.h, trunk/src/l2tables.h: equalizer patch
+ really was jsut a path to equalizer, new author for
+ linux-ppc-nas make target
+
+2006-07-17 14:57 thor
+
+ * trunk/src/Makefile.legacy: added PPC/NAS target from
+ <mpdavig@users.sourceforge.net>
+
+2006-07-17 13:54 thor
+
+ * trunk/src/dct64_MMX.s, trunk/src/decode_MMX.s,
+ trunk/src/tabinit_MMX.s: the MMX stuff came into Michaels hands
+ without comment -> LGPL by author rule
+
+2006-07-17 13:53 thor
+
+ * trunk/AUTHORS: credit for Mikko and his DCT9
+
+2006-07-17 03:22 thor
+
+ * lgpl/first_final.txt, trunk/AUTHORS, trunk/COPYING,
+ trunk/scripts/debugdef.pl, trunk/src/Makefile.legacy,
+ trunk/src/audio.c, trunk/src/audio.h, trunk/src/audio_aix.c,
+ trunk/src/audio_alib.c, trunk/src/audio_dummy.c,
+ trunk/src/audio_esd.c, trunk/src/audio_hp.c,
+ trunk/src/audio_jack.c, trunk/src/audio_libao.c,
+ trunk/src/audio_macosx.c, trunk/src/audio_mint.c,
+ trunk/src/audio_nas.c, trunk/src/audio_os2.c,
+ trunk/src/audio_oss.c, trunk/src/audio_sgi.c,
+ trunk/src/audio_sun.c, trunk/src/audio_win32.c,
+ trunk/src/buffer.c, trunk/src/buffer.h, trunk/src/common.c,
+ trunk/src/common.h, trunk/src/control_generic.c,
+ trunk/src/dct36_3dnow.s, trunk/src/dct64.c,
+ trunk/src/dct64_3dnow.s, trunk/src/dct64_MMX.s,
+ trunk/src/dct64_altivec.c, trunk/src/dct64_i386.c,
+ trunk/src/dct64_i486.c, trunk/src/debug.h, trunk/src/decode.c,
+ trunk/src/decode_2to1.c, trunk/src/decode_3dnow.s,
+ trunk/src/decode_4to1.c, trunk/src/decode_MMX.s,
+ trunk/src/decode_i386.c, trunk/src/decode_i486.c,
+ trunk/src/decode_i586.s, trunk/src/decode_ntom.c,
+ trunk/src/equalizer_3dnow.s, trunk/src/tabinit_MMX.s: First part
+ of boilerplating and sorting all out. Looks kinda nice now,
+ still would like to get the higway mmx stuff clear... maybe
+ Michael remembers something there.
+
+2006-07-17 02:15 thor
+
+ * trunk/AUTHORS: little update for MMX, unnecessary verbosity
+ about what maintaing implies
+
+2006-07-17 01:30 thor
+
+ * trunk/src/audio_jack.c: boilerplate and // -> /* */ as mpg123 is
+ (still) an old-compiler friendly project
+
+2006-07-17 01:02 thor
+
+ * trunk/src/common.c, trunk/src/control_generic.c,
+ trunk/src/httpget.c, trunk/src/layer3.c: Oh, I should compile
+ more often with strict settings: pedantic gcc complained about
+ some C89 violations I introduced. Fixed that.
+
+2006-07-17 01:01 thor
+
+ * trunk/configure.ac, trunk/src/audio_alsa.c,
+ trunk/src/audio_alsa09.c: Old alsa output doesn't work with any
+ sane setup using alsa today (meaning: not using the 0.5 api).
+ New doesn't work because unfinished yet. Alsa output actually is
+ available through libao. So, deactivated alsa stuff in configure
+ for now...
+
+2006-07-17 00:06 thor
+
+ * trunk/Makefile.am, trunk/autogen.sh, trunk/configure.ac: more
+ boilerplates
+
+2006-07-16 23:56 thor
+
+ * trunk/MakeLegacy.sh: boiler
+
+2006-07-16 23:54 thor
+
+ * trunk/scripts/debugdef.pl: public domain should be gpl
+ compatible...
+
+2006-07-16 23:46 thor
+
+ * mpglib/trunk, trunk/mpglib: mpglib will be something of its own,
+ taken care of later...
+
+2006-07-16 23:39 thor
+
+ * trunk/Makefile.win32, trunk/test.pl: niceness by a line
+
+2006-07-16 23:38 thor
+
+ * trunk/test.pl: boilerplate, style cleanup (could use more use,
+ though)
+
+2006-07-16 23:37 thor
+
+ * trunk/Makefile.win32: boilerplate
+
+2006-07-16 23:24 thor
+
+ * trunk/src/audio_oss.c: just a paranoid note
+
+2006-07-10 02:23 thor
+
+ * trunk/src/audio_libao.c: Polished the libao output a bit while
+ testing it on my linux laptop: - parsing -a driver:file for file
+ devices (well, this could be extended to a general scheme to
+ choose between different driver subsystems via -a system:file or
+ system:device:file ...) - corrected the error handling: -1 is
+ expected on error by mpg123.c - giving help message with list of
+ available drivers when invalid one is specified I verified with
+ one testfile that -a wav:file does the same as -w file. I think
+ that this is good;-) Also, I'd like to mention that it's nice to
+ measure audio subsystem overhead with comparing -t and -a null.
+ With the libao in place, I'm wondering if we still want our own
+ alsa output... let's see...
+
+2006-07-09 17:37 thor
+
+ * buglog/fuzzing.txt, buglog/mathias_wenzel_stress.txt,
+ trunk/src/layer3.c: next segfault by fuzzing... fixed this
+ special test case but one needs full understanding of layer3.c
+ to really get it
+
+2006-07-06 14:00 thor
+
+ * buglog/mathias_wenzel_stress.txt, trunk/src/common.c,
+ trunk/src/layer3.c: Fixed the mpeg2.5 verdict in common.c (we
+ have to check support for this); made parts of layer3.c more
+ robust based on an evil mp3 (see the buglog file). Most
+ important featur of this robustness could be that mpg123 doesn't
+ simply exit() in wrong sideinfo anymore but tries to continue.
+
+2006-07-05 20:45 thor
+
+ * trunk/TODO, trunk/src/httpget.c: Revised my bugfix for the last
+ GLSA issue after suggestion by Daniel Kobras (allow longer
+ redirection urls than request url), spent some time hacking
+ further ... and: - fixed unnoticed memory leak in redirection
+ (malloc without free for assigned pointer) - now accepting
+ non-absolute redirects; request now is always of the form GET
+ http://host/path HTTP/1.0 (non-absolute relocations are related
+ to this request) That also works flawlessly with my virtual
+ domain setup on my server used in the test. - decided that this
+ whole file is evil; we need to rewrite that properly
+
+2006-07-04 12:41 thor
+
+ * buglog, buglog/buglog.txt,
+ buglog/gentoo-bug133988_GLSA_200607-01.html,
+ tags/0.59r-thor6/mpg123.c, trunk/src/httpget.c: Reacted to
+ gentoo bug 133988 / GLSA 200607-01 and fixed it properly,
+ storing and using the allocated length of purl as well as
+ ensuring string termination.
+
+2006-07-04 01:43 thor
+
+ * trunk/src/common.c, trunk/src/layer3.c, trunk/src/layer3.h,
+ trunk/src/mpg123.c: Again reworked the gapless stuff... should
+ be more efficient now and also more aggressive by just skipping
+ decoder delay even if no info found and also adding decoder
+ delay to end (hm, where does this really make sense without
+ padding removal?). It should be more efficient now; a comparison
+ between linux-x86 binary (pentium) with and without gapless code
+ shows perhaps around 0.2% speed penalty through added code -
+ which already melts when gapless mode is actually active.
+ Generally on speed: comparison with 0.59r (linux build,
+ non-marched cflags (pentium2)) shows around 2% slower decoding
+ for svn trunk; but this is greatly compensated by using one of
+ the new assembler optimizations. Still, I see much code that can
+ be improved also for efficiency alone by clearing the situation
+ with some (shared) variables that don't need to be passed around
+ all the time...
+
+2006-07-04 01:25 thor
+
+ * trunk/src/Makefile.legacy: these -g were leftovers
+
+2006-07-03 12:55 thor
+
+ * trunk/src/Makefile.legacy, trunk/src/common.c,
+ trunk/src/common.h, trunk/src/control_generic.c,
+ trunk/src/layer3.c, trunk/src/layer3.h, trunk/src/mpg123.c,
+ trunk/src/mpg123.h: Main message: The gapless mode has been
+ enhanced to work more low-level (in layer3.c) and also to use
+ the Xing-given frame count to get the end straight. It should
+ work (tested, but not in every detail) both with the -k option
+ and terminal controlled seeking as well as control_generic
+ JUMPs. The current implementation adds some load that could be
+ reduced by putting the gapless checker code into behind flush
+ check instead of before but that needs additional care for track
+ end (where audio_flush is called externally). Apart from that
+ and some needed de-uglification it should be a nicely working
+ feature. Minor messages: frameNum is unsigned long (so bigger
+ that int and never < 0!); some parts of mpg123.c and common.c
+ did not honor these truths. But I don't claim that I catched all
+ occurences of such problems - see BUGS. Also, I fixed stuff in
+ print_stat with weird frame number estimations. Looks _much_
+ better now esp. when the frame count is known from Xing tag.
+
+2006-07-03 12:16 njh
+
+ * trunk/AUTHORS: Added Romain Dolbeau to AUTHORS file for his
+ Altivec work
+
+2006-07-03 12:12 njh
+
+ * trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/dct64_altivec.c: Imported altivec support from mplayer
+ (and it works!) Still need to do CPU detection.
+
+2006-07-03 12:11 thor
+
+ * trunk/TODO: more and less of this
+
+2006-06-27 00:54 thor
+
+ * trunk/src/config.h.legacy: Did we start using C++ style comments?
+
+2006-06-27 00:51 thor
+
+ * trunk/src/common.c: a note on gapless hack updated
+
+2006-06-26 22:57 thor
+
+ * trunk/README.new: added note about more natural Ctrl+C
+
+2006-06-26 22:43 thor
+
+ * trunk/src/Makefile.legacy: some more flags by default
+
+2006-06-26 22:40 thor
+
+ * trunk/src/Makefile.legacy: ' seems to be dangerous together with
+ line-continuing \ ... made more "
+
+2006-06-26 22:22 thor
+
+ * trunk/configure.ac: generic linux support (?)
+
+2006-06-26 22:04 thor
+
+ * trunk/src/mpg123.c: Following DK's suggestion in a comment, I
+ disabled the Ctrl+C (SIGINT) hack when a control mode is active.
+ You can still do Ctrl+C to skip a song and twice to end playback
+ if you do not use the terminal or remote control mode. With
+ active control mode, a Ctrl+C now kills as expected (formerly,
+ it was just ignored).
+
+2006-06-26 21:36 thor
+
+ * trunk/src/getlopt.c, trunk/src/mpg123.c: There were several
+ option parsing regressions most probably caused by application
+ of Nicholas' changes to my code with changed command line
+ parsing. Fixed the obvious ones and made the option parser bail
+ out if it encouters such an error again.
+
+2006-06-26 21:34 thor
+
+ * trunk/MakeLegacy.sh, trunk/src/config.h.legacy: More legacy make
+ system working again with more crafted config.h.
+
+2006-06-26 13:17 thor
+
+ * trunk/AUTHORS, trunk/README.new: history in README.new,
+ maintainers in AUTHORS
+
+2006-06-26 12:24 thor
+
+ * trunk/src/audio.c, trunk/src/audio_aix.c,
+ trunk/src/audio_alib.c, trunk/src/audio_alsa.c,
+ trunk/src/audio_dummy.c, trunk/src/audio_esd.c,
+ trunk/src/audio_hp.c, trunk/src/audio_jack.c,
+ trunk/src/audio_libao.c, trunk/src/audio_macosx.c,
+ trunk/src/audio_mint.c, trunk/src/audio_nas.c,
+ trunk/src/audio_os2.c, trunk/src/audio_sgi.c,
+ trunk/src/audio_win32.c, trunk/src/buffer.c, trunk/src/common.c,
+ trunk/src/control_generic.c, trunk/src/dct64.c,
+ trunk/src/dct64_i386.c, trunk/src/dct64_i486.c,
+ trunk/src/decode.c, trunk/src/decode_2to1.c,
+ trunk/src/decode_4to1.c, trunk/src/decode_i386.c,
+ trunk/src/decode_i486.c, trunk/src/decode_ntom.c,
+ trunk/src/equalizer.c, trunk/src/getbits.c, trunk/src/httpget.c,
+ trunk/src/layer1.c, trunk/src/layer2.c, trunk/src/layer3.c,
+ trunk/src/readers.c, trunk/src/system.c, trunk/src/tabinit.c,
+ trunk/src/wav.c, trunk/src/xfermem.c: Added inclusion config.h
+ everywhere to make sure we don't stumble over some missing
+ define later and search like crazy...
+
+2006-06-26 12:22 thor
+
+ * trunk/src/mpg123.c: Sorry, but these pointlessly broken lines
+ were _ugly_.
+
+2006-06-26 12:11 thor
+
+ * trunk/src/getlopt.c, trunk/src/term.c: These got some new-style
+ debugging through the terminal control bug hunt. Also, I want to
+ take the chance to hint at scripts/debugdef.pl that I added
+ previously: It is a Perl script generating the debug.h header in
+ a way to avoid variadic macros for fprintf. Result are debugN
+ macros that mean "debug line with N arguments". Examples:
+ debug1("Ok, there's one value: %i", var) debug3("now three of
+ them: %i %f %i", var1, var2, var3) simplest case: debug("just a
+ message");
+
+2006-06-26 12:06 thor
+
+ * trunk/scripts, trunk/scripts/debugdef.pl, trunk/src/debug.h,
+ trunk/src/mpg123.c: Hah! Found the place where terminal control
+ got killed! The option definition in mpg123.c lacked the type
+ specifier (a regression caused by merging). To find that, I
+ added debug.h for more convenient debugs.
+
+2006-06-26 01:05 thor
+
+ * trunk/README.new: small update on urls, frontend control
+
+2006-06-26 01:04 thor
+
+ * trunk/MakeLegacy.sh, trunk/configure.ac, trunk/src/Makefile.am,
+ trunk/src/audio_oss.c: - making audio_oss work again (didn't
+ include config.h); added needed bits for fake config.h. - adding
+ i586_dither as cpu variant: i586 assembler with dithering /
+ noise shaping
+
+2006-06-25 23:52 thor
+
+ * trunk/src/Makefile.legacy, trunk/src/control_tk3play.c,
+ trunk/src/control_tk3play.h, trunk/src/mpg123.c,
+ trunk/src/mpg123.h: Removing obsolete control interfaces (no one
+ uses them since a loong time).
+
+2006-06-22 21:19 njh
+
+ * trunk/configure.ac, trunk/src/Makefile.am, trunk/src/audio.h,
+ trunk/src/audio_macosx.c, trunk/src/audio_sun.c,
+ trunk/src/buffer.h, trunk/src/common.c, trunk/src/common.h,
+ trunk/src/control_tk3play.h, trunk/src/genre.h,
+ trunk/src/getbits.h, trunk/src/getlopt.h, trunk/src/huffman.h,
+ trunk/src/l2tables.h, trunk/src/layer3.c, trunk/src/mpg123.h,
+ trunk/src/term.h, trunk/src/xfermem.h: Now compiles on Solaris.
+ Tested on: SunOS ironwood.sucs.soton.ac.uk 5.8 Generic_117350-31
+ sun4u sparc SUNW,Sun-Fire-880
+
+2006-06-22 20:25 njh
+
+ * trunk/src/Makefile.am: added Makefile.legacy to the distribution
+
+2006-06-22 20:12 njh
+
+ * trunk/configure.ac, trunk/src/audio_oss.c: Closer to Linux
+ working
+
+2006-06-22 19:18 njh
+
+ * trunk/src/Makefile.am: decode_x86.s -> decode_i586.s
+
+2006-06-22 19:10 njh
+
+ * trunk/configure.ac: Added --with-optimization configure option.
+ Display CFLAGS in debug mode.
+
+2006-06-22 19:09 njh
+
+ * trunk/Makefile.am: Include MakeLegacy.sh in distribution
+
+2006-06-22 17:18 njh
+
+ * trunk/MakeLegacy.sh: Make sure that configure.ac exists before
+ runing sed over it
+
+2006-06-22 17:15 njh
+
+ * trunk/MakeLegacy.sh: I won my fight with sed! yay!
+
+2006-06-22 12:06 thor
+
+ * trunk/README.sajber, trunk/debian, trunk/jukebox,
+ trunk/src/control_sajber.c: Removed debian dir and outdated
+ Sajber jukebox files. Have to check state of the tk3play
+ interface and modify Makefile.legacy (still all targets there).
+
+2006-06-22 09:21 thor
+
+ * trunk/src/Makefile.legacy: version.h does not exist anymore,
+ remove it from Makefile.legacy
+
+2006-06-22 04:55 njh
+
+ * trunk/configure.ac, trunk/src/Makefile.am: Added support for MMX
+ processors to configure system
+
+2006-06-22 04:07 njh
+
+ * trunk/MakeLegacy.sh, trunk/configure.ac,
+ trunk/src/Makefile.legacy, trunk/src/audio.c, trunk/src/audio.h,
+ trunk/src/audio_aix.c, trunk/src/audio_alib.c,
+ trunk/src/audio_alsa.c, trunk/src/audio_dummy.c,
+ trunk/src/audio_esd.c, trunk/src/audio_hp.c,
+ trunk/src/audio_libao.c, trunk/src/audio_macosx.c,
+ trunk/src/audio_mint.c, trunk/src/audio_nas.c,
+ trunk/src/audio_os2.c, trunk/src/audio_oss.c,
+ trunk/src/audio_sgi.c, trunk/src/audio_sun.c,
+ trunk/src/audio_win32.c, trunk/src/dct64.c, trunk/src/getlopt.h,
+ trunk/src/httpget.c, trunk/src/mpg123.c, trunk/src/system.c,
+ trunk/src/term.c, trunk/src/term.h, trunk/src/xfermem.c: Now
+ up-to-date with the progress I made in my own SVN repository.
+ Lots of changes to the audio output interface - it is now a lot
+ cleaner.
+
+2006-06-21 21:04 njh
+
+ * trunk/configure.ac, trunk/src/Makefile.legacy,
+ trunk/src/audio_nas.c, trunk/src/httpget.c, trunk/src/mpg123.c,
+ trunk/src/mpg123.h, trunk/src/version.h: Package version is now
+ taken from configure.ac
+
+2006-06-21 21:02 njh
+
+ * trunk/AUTHORS, trunk/CREDITS: Offical filename for list of
+ people is AUTHORS (so says GNU policy)
+
+2006-06-21 15:16 njh
+
+ * trunk/configure.ac: configure source file
+
+2006-06-21 04:49 njh
+
+ * trunk/src/Makefile.legacy: Bah, hopefully this works better.
+
+2006-06-21 04:25 njh
+
+ * trunk/src/Makefile.legacy: use the $MAKE variable
+
+2006-06-21 03:57 njh
+
+ * trunk/Makefile.am, trunk/autogen.sh, trunk/src/Makefile.am,
+ trunk/src/Makefile.legacy, trunk/src/audio.c,
+ trunk/src/audio_jack.c, trunk/src/audio_libao.c,
+ trunk/src/audio_macosx.c, trunk/src/mpg123.c,
+ trunk/src/mpg123.h, trunk/src/term.c, trunk/src/term.h: Applied
+ some of my changes to mpg123 - new build system works on OS X
+
+2006-06-21 03:26 njh
+
+ * trunk/src/Makefile.legacy: Fixed legacy build system
+
+2006-06-21 03:20 njh
+
+ * trunk/MakeLegacy.sh, trunk/src/Makefile,
+ trunk/src/Makefile.legacy: Renamed old Makefile Makefile.legacy
+
+2006-06-21 03:19 njh
+
+ * trunk/MakeLegacy.sh, trunk/Makefile, trunk/audio.c,
+ trunk/audio.h, trunk/audio_aix.c, trunk/audio_alib.c,
+ trunk/audio_alsa.c, trunk/audio_dummy.c, trunk/audio_esd.c,
+ trunk/audio_hp.c, trunk/audio_mint.c, trunk/audio_nas.c,
+ trunk/audio_os2.c, trunk/audio_oss.c, trunk/audio_sgi.c,
+ trunk/audio_sun.c, trunk/audio_win32.c, trunk/buffer.c,
+ trunk/buffer.h, trunk/build, trunk/common.c, trunk/common.h,
+ trunk/control_generic.c, trunk/control_sajber.c,
+ trunk/control_tk3play.c, trunk/control_tk3play.h,
+ trunk/dct36_3dnow.s, trunk/dct64.c, trunk/dct64_3dnow.s,
+ trunk/dct64_MMX.s, trunk/dct64_i386.c, trunk/dct64_i486.c,
+ trunk/decode.c, trunk/decode_2to1.c, trunk/decode_3dnow.s,
+ trunk/decode_4to1.c, trunk/decode_MMX.s, trunk/decode_i386.c,
+ trunk/decode_i486.c, trunk/decode_i586.s,
+ trunk/decode_i586_dither.s, trunk/decode_ntom.c,
+ trunk/equalizer.c, trunk/equalizer_3dnow.s, trunk/genre.h,
+ trunk/getbits.c, trunk/getbits.h, trunk/getcpuflags.s,
+ trunk/getlopt.c, trunk/getlopt.h, trunk/httpget.c,
+ trunk/huffman.h, trunk/l2tables.h, trunk/layer1.c,
+ trunk/layer2.c, trunk/layer3.c, trunk/mpg123.c, trunk/mpg123.h,
+ trunk/readers.c, trunk/src, trunk/src/Makefile,
+ trunk/src/audio.c, trunk/src/audio.h, trunk/src/audio_aix.c,
+ trunk/src/audio_alib.c, trunk/src/audio_alsa.c,
+ trunk/src/audio_dummy.c, trunk/src/audio_esd.c,
+ trunk/src/audio_hp.c, trunk/src/audio_mint.c,
+ trunk/src/audio_nas.c, trunk/src/audio_os2.c,
+ trunk/src/audio_oss.c, trunk/src/audio_sgi.c,
+ trunk/src/audio_sun.c, trunk/src/audio_win32.c,
+ trunk/src/buffer.c, trunk/src/buffer.h, trunk/src/common.c,
+ trunk/src/common.h, trunk/src/control_generic.c,
+ trunk/src/control_sajber.c, trunk/src/control_tk3play.c,
+ trunk/src/control_tk3play.h, trunk/src/dct36_3dnow.s,
+ trunk/src/dct64.c, trunk/src/dct64_3dnow.s,
+ trunk/src/dct64_MMX.s, trunk/src/dct64_i386.c,
+ trunk/src/dct64_i486.c, trunk/src/decode.c,
+ trunk/src/decode_2to1.c, trunk/src/decode_3dnow.s,
+ trunk/src/decode_4to1.c, trunk/src/decode_MMX.s,
+ trunk/src/decode_i386.c, trunk/src/decode_i486.c,
+ trunk/src/decode_i586.s, trunk/src/decode_i586_dither.s,
+ trunk/src/decode_ntom.c, trunk/src/equalizer.c,
+ trunk/src/equalizer_3dnow.s, trunk/src/genre.h,
+ trunk/src/getbits.c, trunk/src/getbits.h,
+ trunk/src/getcpuflags.s, trunk/src/getlopt.c,
+ trunk/src/getlopt.h, trunk/src/httpget.c, trunk/src/huffman.h,
+ trunk/src/l2tables.h, trunk/src/layer1.c, trunk/src/layer2.c,
+ trunk/src/layer3.c, trunk/src/mpg123.c, trunk/src/mpg123.h,
+ trunk/src/readers.c, trunk/src/system.c, trunk/src/tabinit.c,
+ trunk/src/tabinit_MMX.s, trunk/src/term.c, trunk/src/term.h,
+ trunk/src/version.h, trunk/src/wav.c, trunk/src/xfermem.c,
+ trunk/src/xfermem.h, trunk/system.c, trunk/tabinit.c,
+ trunk/tabinit_MMX.s, trunk/term.c, trunk/term.h,
+ trunk/version.h, trunk/wav.c, trunk/xfermem.c, trunk/xfermem.h:
+ Tidying up a bit: moved all source code into 'src' directory.
+ Moving aside old build system and calling it 'legacy'. Can build
+ legacy system using ./MakeLegacy.sh <foo>
+
+2006-06-18 14:05 thor
+
+ * trunk/common.c, trunk/common.h, trunk/control_generic.c: added
+ loadpaused action to control_generic (again?), removed some
+ redundant functions... placed stream info generation into
+ common.c (now adding the last flag for vbr) control_generic now
+ also has a help command that gives a summary of commands and
+ info on the cryptic stream info
+
+2006-06-18 10:49 thor
+
+ * trunk/COPYING: license WIP!
+
+2006-06-17 21:45 thor
+
+ * trunk/common.c, trunk/mpg123.c: I just had to do it... gapless
+ mode now also takes resampling into account. Some cosmetics - it
+ needs user testing now. And still the real solution for
+ detecting the end, while the current one should work in 95% of
+ the cases.
+
+2006-06-17 19:46 thor
+
+ * trunk/common.c, trunk/common.h, trunk/mpg123.c: Ironed the
+ gapless support; now works for mono, stereo, 8bit, 16bit -
+ explicit resampling support still missing.
+
+2006-06-17 14:31 thor
+
+ * trunk/version.h: it's not 0.59r-thor anymore...
+ * trunk/Makefile, trunk/common.c, trunk/mpg123.c: OK, I enclosed
+ the actual working (tiny time consuming - well, some ifs for
+ every audio buffer flush... every 16K raw data...) of gapless
+ code in #ifdefs for GAPLESS; being enabled in target
+ linux-x86-gapless (you can turn it on via -DGAPLESS in you
+ CFLAGS, anyway). It now actually works for several tracks
+ following each other - but still, it's fixed to work on stereo
+ 16 bit layer3 files; mono will be added easily.
+
+2006-06-17 13:15 thor
+
+ * trunk/common.c: added note about bmp album art (gosh, what a
+ mess...)
+
+2006-06-17 12:51 thor
+
+ * trunk/common.c: added GAPLESS macro to enable disabling of hack
+ in audio_flush (homeopathic performance gain... not really;-)
+
+2006-06-17 12:38 thor
+
+ * trunk/mpg123.c: lingua2
+
+2006-06-17 12:37 thor
+
+ * trunk/mpg123.c: lingua
+
+2006-06-16 22:51 thor
+
+ * trunk/common.c, trunk/mpg123.c: restricted gapless hack to layer
+ 3, added --help info on the gapless switch still need proper
+ track begin/end and mono/stereo (even 8bit?) handling
+
+2006-06-16 14:51 thor
+
+ * trunk/README.new: this will become the new README eventually...
+ still in the works
+
+2006-06-16 03:35 thor
+
+ * trunk/common.c, trunk/common.h, trunk/mpg123.c, trunk/mpg123.h:
+ Added a first hack to make gapless output (skipping delays and
+ padding), activated via --gapless. This only works for single
+ layer3 files with Lame tag and without resampling and only for
+ stereo now. It's the technical proof-of-concept.
+
+2006-06-14 10:46 thor
+
+ * notes/insight.txt, trunk/common.c, trunk/mpg123.c,
+ trunk/mpg123.h: Now being able to detect and skip (even
+ interpret) the Xing/Lame tag that caused one frame of silence at
+ the beginning. Still want to implement skip of padding/delay
+ samples based on info in there.
+
+2006-06-12 18:02 thor
+
+ * trunk/Makefile, trunk/decode_i586_dither.s: Added the dithered
+ pentium decode from "ACS" <adrian.bacon@xs4all.nl> /
+ http://dither123.dyndns.org (GPL, currently - have to contact
+ him again). Modified the Makefile for that -- make
+ PENTIUM_DECODE=decode_i586 ... or make
+ PENTIUM_DECODE=decode_i586_dither ... -- along with some other
+ cleanups and hints for targets.
+
+2006-06-12 03:18 thor
+
+ * trunk/Makefile, trunk/dct64_MMX.s, trunk/decode_MMX.s,
+ trunk/decode_i386.c, trunk/layer2.c, trunk/layer3.c,
+ trunk/mpg123.h, trunk/tabinit.c, trunk/tabinit_MMX.s: Attempt to
+ backport the MMX stuff. It seems to work - and it's faster;-)
+ (testfile: 10s against 13s)
+
+2006-06-12 02:01 thor
+
+ * trunk/Makefile: trying to put env CFLAGS in place everywhere,
+ removing -D flags from generic target since they don't
+ compile... so many targets...
+
+2006-06-12 00:21 thor
+
+ * trunk/common.c: Finally got around to fix playback of that
+ dreaded file with a BMP (not "unsynched") in ID3V2 tag. Partial
+ backport from mhipp's trunk; now just ignoring the number of
+ bytes indicated by id3v2 frame header.
+
+2006-06-04 20:26 thor
+
+ * trunk/mpg123.c: The equalizer control patch just duplicated code
+ that got executed twice when usning an equalfile. Fixed that.
+
+2006-05-14 11:30 thor
+
+ * trunk/CHANGES, trunk/Makefile, trunk/decode_i386.c,
+ trunk/httpget.c, trunk/layer3.c, trunk/mpg123.c, trunk/mpg123.h,
+ trunk/version.h: - applied relevant stuff from Debian's 22: -
+ fix for CVE-2006-1655 (buffer overflow in III_i_stereo()) -
+ strict aliasing hack in WRITE_SAMPLE of decode_i386.c - fixed
+ http streaming through proxy by actually using the request
+ url... - buffer resync on Ctrl-C (cleaning, reducing pauses with
+ multiple files) - removed unused esdserver variable from
+ mpg123.h - did NOT apply the Debian Makefile/manpage changes
+ (going to rewrite that stuff anyway) - made the netbsd-i386
+ targets visible as netbsd-x86
+
+2006-05-11 15:26 thor
+
+ * trunk/version.h: forgot that
+
+2006-05-11 12:56 thor
+
+ * lgpl, trunk/lgpl: it's separate discussion...
+
+2006-05-11 12:54 thor
+
+ * trunk/CHANGES, trunk/Makefile, trunk/mpg123.c: netbsd targets
+ with and without realtime stuff (that seems to need -lpthread...)
+
+2006-04-28 10:33 thor
+
+ * trunk/lgpl/KIMURA_Takuhiro.key, trunk/lgpl/fromme.email,
+ trunk/lgpl/notes.txt, trunk/lgpl/x.email: I try and I try...
+ found some addresses from internet search; mailed... ...already
+ got some failures but also 2 responses (I'll add that no
+ notes.txt later)
+
+2006-04-24 11:26 thor
+
+ * trunk/lgpl/inventory.txt, trunk/lgpl/notes.txt,
+ trunk/lgpl/notex.txt: more investigation for license
+
+2006-04-08 08:02 thor
+
+ * trunk/NOTES.LGPL, trunk/lgpl/notex.txt: better there
+
+2006-04-08 08:01 thor
+
+ * trunk/CREDITS, trunk/NOTES.LGPL, trunk/lgpl,
+ trunk/lgpl/first.email, trunk/lgpl/no.list, trunk/lgpl/ok.list:
+ Further research into (non)licensed code and comnmunication.
+
+2006-03-10 12:37 thor
+
+ * trunk/CREDITS: some failed addresses
+
+2006-03-10 03:22 thor
+
+ * trunk/CREDITS: An attempt to gather a comprehensive list of
+ people who contributed to mpg123. So far not _all_ eMail
+ addresses failed;-)
+
+2006-02-22 08:28 thor
+
+ * trunk/JUKEBOX, trunk/README.sajber: Following a suggestion from
+ Nick, we avoid having both jukebox/ and JUKEBOX. It's a question
+ if this sajber jukebox interface will keep working anyway...
+
+2005-12-24 00:41 thor
+
+ * trunk/BENCHMARKING.thor: just added my benchmark; nice to have
+ some numbers there...
+
+2005-12-24 00:18 thor
+
+ * trunk/CHANGES, trunk/README, trunk/README.thor: now also final
+ thor5 doc-wise
+
+2005-12-24 00:07 thor
+
+ * trunk/mpg123.c: really thor5 now (code): a trivial 0 instead of
+ NULL
+
+2005-12-24 00:03 thor
+
+ * trunk/debian/changelog, trunk/httpget.c: Debian r20 httpget fix
+
+2005-12-23 20:26 thor
+
+ * trunk/BUGS, trunk/CHANGES, trunk/Makefile, trunk/README,
+ trunk/README.thor, trunk/control_generic.c, trunk/decode.c,
+ trunk/decode_2to1.c, trunk/decode_4to1.c, trunk/decode_i386.c,
+ trunk/decode_ntom.c, trunk/equalizer.c, trunk/getlopt.c,
+ trunk/getlopt.h, trunk/mpg123.c, trunk/mpg123.h,
+ trunk/readers.c, trunk/version.h: Going towards version 5
+ Preliminary result from sessions on my (well, the university's)
+ Compaq XP1000. - introduced an extra flag to prevent equalfile
+ from being used as a bool all the time (confuses compilers and
+ is just not nice) - cared for real being whatever (float,
+ double, ...) in sscanf stuff of control_generic (mainly in my
+ added SEQ) - fixed the Alpha show-stopper: mixing up of int and
+ long pointers in getlopt
+
+2005-02-24 20:09 thor
+
+ * trunk/control_generic.c: final final -thor4: just a
+ misunderstanding: break means end and that makes sense.
+
+2005-02-24 19:33 thor
+
+ * trunk/Makefile: final -thor4: changed my modified target to
+ "linux-static"
+
+2005-02-24 19:17 thor
+
+ * trunk/README.3DNOW, trunk/README.thor, trunk/dct36_3dnow.s,
+ trunk/debian, trunk/debian/README, trunk/debian/changelog,
+ trunk/debian/control, trunk/debian/control.alsa,
+ trunk/debian/copyright, trunk/debian/mime,
+ trunk/debian/postinst, trunk/debian/postrm, trunk/debian/prerm,
+ trunk/debian/rules, trunk/equalizer_3dnow.s,
+ trunk/getcpuflags.s: thor4: second stage.
+
+2005-02-24 19:12 thor
+
+ * trunk/CHANGES, trunk/Makefile, trunk/audio.c, trunk/audio_esd.c,
+ trunk/audio_oss.c, trunk/audio_sun.c, trunk/buffer.c,
+ trunk/common.c, trunk/common.h, trunk/control_generic.c,
+ trunk/control_sajber.c, trunk/control_tk3play.c, trunk/dct64.c,
+ trunk/dct64_3dnow.s, trunk/dct64_i486.c, trunk/decode.c,
+ trunk/decode_3dnow.s, trunk/decode_i386.c, trunk/equalizer.c,
+ trunk/httpget.c, trunk/layer1.c, trunk/layer2.c, trunk/layer3.c,
+ trunk/mpg123.1, trunk/mpg123.c, trunk/mpg123.h, trunk/readers.c,
+ trunk/tabinit.c, trunk/term.c, trunk/test.pl, trunk/version.h,
+ trunk/xfermem.c: thor4: merge the Debian 0.59r-19 in for serious
+ bug fixing, a bit of docu
+
+2005-02-24 16:40 thor
+
+ * trunk/CHANGES, trunk/control_generic.c, trunk/httpget.c,
+ trunk/mpg123.h, trunk/readers.c, trunk/version.h: thor-3: again
+ command parsing reworked; non-exit()ing open functions added:
+
+2004-10-09 20:36 thor
+
+ * trunk/control_generic.c: Removed load-paused function that
+ wasn't really working anyway.
+
+2004-10-08 16:12 thor
+
+ * trunk/control_generic.c: added version info in control_generic
+ startup message
+
+2004-09-21 04:02 thor
+
+ * trunk/version.h: version info updated
+
+2004-09-21 03:58 thor
+
+ * trunk/CHANGES, trunk/control_generic.c, trunk/mpglib: more info
+ in general and more useful info on JUMP
+
+2006-02-20 05:37 thor
+
+ * trunk/CHANGES, trunk/Makefile, trunk/README.cfa,
+ trunk/control_generic.c, trunk/decode_i586.s, trunk/mpg123.c,
+ trunk/mpg123.h, trunk/test.pl, trunk/version.h: Just going to
+ put mpg123-thor in here for a start; bridge to my CVS for that
+ one. 0.59r-ThOr(remote-err,eq,flushing) - added audio_flush()
+ calls to various places in control_generic.c to make sure there
+ is nothing left in there that hurts later
+ 0.59r-realeq-remoteerr: - applied patch from Cool Feet Audio
+ project (nutcase@dtfm.org, see README.cfa) to use real-time
+ equalizer in remote mode - applied patch from AMF
+ (amf.sourceforge.net) by Steve Grundell for remote communication
+ not polluting the STDOUT where the audio data is read from
+ (instead using STDERR) ... and faster seeking, maybe The patches
+ go not cleanly together, but rejects are trivial. Thus, a
+ combined patch with both would makes sense. - modified (IMHO
+ improved) the control_generic command reading: now always making
+ sure that the full command is read up to a mandatory \n; also
+ reworked the application of the commands afterwards - added SEQ
+ command: simple eq with only 3 bands - added SILENCE command: I
+ don't want the playback messages when I don't read them (since
+ my frontend is reading the STDOUT it knows what is going on) -
+ added SLJ command: SILENCE-LOAD-JUMP... a hack for my hacked
+ mixplayd... maybe one should remove that again.
+
+2006-02-20 05:11 thor
+
+ * trunk: Going to start with version 0.59r as the new trunk...
+ this version is the one underlying the vast majority of current
+ patches (including mine;-). We'll see what good stuff there is
+ to port over from the 0.59s series.
+
+2006-02-20 03:49 thor
+
+ * tags/0.59r: version 0.59r as tag
+ * mhipp/BENCHMARKING, mhipp/BUGS, mhipp/CHANGES, mhipp/COPYING,
+ mhipp/INSTALL, mhipp/Makefile, mhipp/README,
+ mhipp/README.remote, mhipp/audio.c, mhipp/audio.h,
+ mhipp/audio_aix.c, mhipp/audio_alib.c, mhipp/audio_alsa.c,
+ mhipp/audio_esd.c, mhipp/audio_hp.c, mhipp/audio_os2.c,
+ mhipp/audio_sgi.c, mhipp/audio_sun.c, mhipp/buffer.c,
+ mhipp/buffer.h, mhipp/common.c, mhipp/common.h,
+ mhipp/control_generic.c, mhipp/control_tk3play.c,
+ mhipp/dct64_3dnow.s, mhipp/dct64_i386.c, mhipp/decode_3dnow.s,
+ mhipp/decode_i386.c, mhipp/equalizer.c, mhipp/get1bit.h,
+ mhipp/getbits.c, mhipp/getbits.h, mhipp/getbits.s,
+ mhipp/getbits_.s, mhipp/getbits_bsdos.s, mhipp/httpget.c,
+ mhipp/l2tables.h, mhipp/layer1.c, mhipp/layer2.c,
+ mhipp/layer3.c, mhipp/mpg123.1, mhipp/mpg123.c, mhipp/mpg123.h,
+ mhipp/mpglib/README, mhipp/mpglib/TODO, mhipp/mpglib/mpglib.h,
+ mhipp/plugin/Makefile, mhipp/plugin/README,
+ mhipp/plugin/dltst.c, mhipp/plugin/plugin.c,
+ mhipp/plugin/plugin.h, mhipp/precompiled,
+ mhipp/precompiled/linux-i386,
+ mhipp/precompiled/linux-i386/dct64_3dnow.o,
+ mhipp/precompiled/linux-i386/decode_3dnow.o, mhipp/readers.c,
+ mhipp/tabinit.c, mhipp/tables.h, mhipp/term.c, mhipp/term.h,
+ mhipp/tools/interface-and-phython, mhipp/version.h, mhipp/wav.c,
+ mhipp/xfermem.c: version 0.59r by Michael Hipp: - applied
+ audio_alib changes from Ralf Hildebrandt
+ <R.Hildebrandt@TU-BS.DE> - some 'paetsches' from DK - minor
+ optimizations in layer3 (dequantize/huffman) - BSDOS 4.0 with
+ gcc added to Makefile (<sms@moe.2bsd.com>) - Solaris-ESD patch
+ from Ryan Prosser <prosser@wam.umd.edu> - Added Frontend changes
+ from Bertrand Petit <elrond@phoe.netdev.net> - more DK
+ 'paetsches' (final dk7-clubhaus edition), includes extended term
+ control - SGI audio fix for non RAD machines from Erik Mouw
+ <J.A.K.Mouw@its.tudelft.nl> - fixed ugly bug in layer3 dequant
+ for bt==2 (may cause high frequency clitchs) - AMD-3DNow
+ optimizations in decode and dct64 - OS/2 reworked from Samuel
+ Audet (see audio_os2.c for more) - added freebsd-esd make-entry
+ from Daniel O'Connor (darius@guppy.dons.net.au) - added enhanced
+ head_check from D. Skarda <0rfelyus@atrey.karlin.mff.cuni.cz> -
+ applied 'xterm-title-patch' from "Wilson, Jeff D"
+ <jeff.wilson@wilcom.com> - more esd changes from Robert
+ Bihlmeyer <robbe@orcus.priv.at> - applied Hannu Napari's
+ <Hannu.Napari@hut.fi> SGI audio patches - minor changes in
+ httpget.c and mpg123.c - added native AIX support from
+ Juergen.Schoew@unix-ag.uni-siegen.de - applied playlist patch
+ from <psst@euskalnet.net> - more SGI audio patches from Gilles
+ Zunino <Gilles.Zunino@hei.fupl.asso.fr> - applied esdserver
+ patch from Matthew Parslow <roy@alpha.alphalink.com.au> - added
+ some fixes for control_generic
+
+2006-02-20 03:42 thor
+
+ * mhipp/BUGS, mhipp/CHANGES, mhipp/Makefile, mhipp/Makefile.win32,
+ mhipp/README, mhipp/TODO, mhipp/audio.h, mhipp/audio_esd.c,
+ mhipp/audio_mint.c, mhipp/audio_sun.c, mhipp/buffer.c,
+ mhipp/common.c, mhipp/decode.c, mhipp/decode_2to1.c,
+ mhipp/decode_4to1.c, mhipp/decode_i386.c, mhipp/decode_ntom.c,
+ mhipp/equalizer.c, mhipp/genre.h, mhipp/getlopt.c,
+ mhipp/layer3.c, mhipp/mpg123.c, mhipp/mpg123.h,
+ mhipp/mpglib/TODO, mhipp/version.h, mhipp/wav.c,
+ mhipp/xfermem.c: version 0.59q by Michael Hipp: - ESD fixes -
+ minor bugfixes (DK patch ;) - au and cdr 'support' (it's a hack)
+ - Fixed 'VBR' Bug in get_scale_fac1(). Thanx to
+ <ssonique@hotmail.com> for this. (Wasn't really a VBR Bug. The
+ new encoders just triggered it.) - Added equalizer patch from
+ <dlux@dlux.sch.bme.hu>
+
+2006-02-20 03:41 thor
+
+ * mhipp/CHANGES, mhipp/Makefile, mhipp/README, mhipp/audio.c,
+ mhipp/audio.h, mhipp/audio_alib.c, mhipp/audio_alsa.c,
+ mhipp/audio_esd.c, mhipp/audio_hp.c, mhipp/audio_sgi.c,
+ mhipp/audio_sun.c, mhipp/common.c, mhipp/control.c,
+ mhipp/control_sajber.c, mhipp/control_tk3play.c,
+ mhipp/dct64_i486.c, mhipp/decode_3dnow.s, mhipp/decode_i386.c,
+ mhipp/decode_i486.c, mhipp/decode_ntom.c, mhipp/genre.h,
+ mhipp/getlopt.c, mhipp/getlopt.h, mhipp/httpget.c,
+ mhipp/layer3.c, mhipp/mpg123.c, mhipp/mpg123.h, mhipp/mpglib,
+ mhipp/mpglib/Makefile, mhipp/mpglib/README,
+ mhipp/mpglib/common.c, mhipp/mpglib/dct64_i386.c,
+ mhipp/mpglib/decode_i386.c, mhipp/mpglib/huffman.h,
+ mhipp/mpglib/interface.c, mhipp/mpglib/layer3.c,
+ mhipp/mpglib/main.c, mhipp/mpglib/mpg123.h,
+ mhipp/mpglib/mpglib.h, mhipp/mpglib/tabinit.c, mhipp/readers.c,
+ mhipp/system.c, mhipp/term.c, mhipp/tools, mhipp/tools/ASF.info,
+ mhipp/tools/asfCDtomp3, mhipp/version.h, mhipp/wav.c,
+ mhipp/xfermem.c, mhipp/xfermem.h: version 0.59p by Michael Hipp:
+ - Added mpglib (see mpglib directory) - 'make generic' is more
+ generic now - Added HPUX/ALib support from Ducroquet Erwan
+ (ducroque@ufr-info-p7.ibp.fr) - Added EsoundD support from <fill
+ it in> - Added exp. relatime support (compile with -DSET_RT) -
+ Added linux-sparc patch from <hmm lost email) - Added genrepatch
+ from Shane Wegner <shane@CM.NU> - Added wav-File patch Samuel
+ Audet <guardia@cam.org> - Added SGI-RAD support from "J. Dean
+ Brederson" <jdb@cs.utah.edu> - Added sajberplay/FreeBSD patch
+ from Chou Ye-chi <is84002@cis.nctu.edu.tw> - Added 486
+ optimizations from Fabrice Bellard <bellard@email.enst.fr> -
+ Added combined output devices on SUN (ie Speaker and headphones
+ together) - Added audio_alsa.c (under GPL license) for the ALSA
+ sound system from A. Hermansen <ahermans@vf.telia.no> and J.
+ Kysela <perex@jcu.cz> -Added K6-3DNow patches from KIMURA
+ Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp>
+
+2006-02-20 03:38 thor
+
+ * mhipp/BUGS, mhipp/CHANGES, mhipp/COPYING, mhipp/Makefile,
+ mhipp/NOTES, mhipp/TODO, mhipp/audio.c, mhipp/audio.c.old,
+ mhipp/audio_oss.c, mhipp/buffer.c, mhipp/common.c,
+ mhipp/control.c, mhipp/control_tk3play.c,
+ mhipp/control_tk3play.h, mhipp/decode_i386.c,
+ mhipp/decode_ntom.c, mhipp/layer1.c, mhipp/layer2.c,
+ mhipp/layer3.c, mhipp/mpg123.1, mhipp/mpg123.c, mhipp/mpg123.h,
+ mhipp/plugin, mhipp/plugin/Makefile, mhipp/plugin/README,
+ mhipp/plugin/dltst.c, mhipp/plugin/plugin.c,
+ mhipp/plugin/plugin.h, mhipp/version.h, mhipp/xfermem.c,
+ mhipp/xfermem.h: version 0.59o by Michael Hipp: - fixed Bug with
+ stereo streams on mono audio hardware for OSS - fixed a bug with
+ mono output and 1:1 (no) rate conversion - again changes in the
+ probe code - fix in the buffer code for the case, that audio
+ parameters are changing - more changes to the flexibel rate
+ converter, should now work when writing to STDOUT. - Added
+ Andy's (<andy@snoogie.demon.co.uk>) float2int speed up proposal
+ (check WRITE_SAMPLE in decode_i386.c) .. Maybe someone wanna
+ take the idea and put it into the decode_i586.s part? - Added
+ TK3Play support from Brian Foutz <foutz@anise.ee.cornell.edu>
+ (compiles but untested) - RIFF Header fix (according to Thomas
+ Niederreiter's <tn@tarantel.rz.fh-muenchen.de> patch) - m68k
+ patch from Stefan Gybas <cab@studbox.uni-stuttgart.de> applied -
+ minor additional PPC changes applied - resync and EOF hang fixed
+ - resync and bitrate correction relaxed - Slightly change
+ verbose output; added countdown
+
+2006-02-20 03:35 thor
+
+ * mhipp/BUGS, mhipp/CHANGES, mhipp/Makefile, mhipp/Makefile.win32,
+ mhipp/NOTES, mhipp/README, mhipp/TODO, mhipp/audio.c,
+ mhipp/audio.c.old, mhipp/audio.h, mhipp/audio_dummy.c,
+ mhipp/audio_hp.c, mhipp/audio_nas.c, mhipp/audio_os2.c,
+ mhipp/audio_oss.c, mhipp/audio_sgi.c, mhipp/audio_sun.c,
+ mhipp/audio_win32.c, mhipp/buffer.c, mhipp/common.c,
+ mhipp/control.c, mhipp/decode.c, mhipp/decode_2to1.c,
+ mhipp/decode_4to1.c, mhipp/decode_i386.c, mhipp/decode_ntom.c,
+ mhipp/equalizer.c, mhipp/httpget.c, mhipp/layer1.c,
+ mhipp/layer2.c, mhipp/layer3.c, mhipp/mpg123.c, mhipp/mpg123.h,
+ mhipp/system.c, mhipp/tabinit.c, mhipp/version.h,
+ mhipp/xfermem.c: version 0.59n by Michael Hipp: - fixed shuffle
+ bug - added memory mapped IO for file reading - added MPEG 2.5
+ 12kHz and 8kHz table entry - started flexibel rate conversion ..
+ - new '-Z' / '--random' option - minor clean-up - splitted audio
+ file in audio system dependend smaller parts - started system
+ stream support (external program: system.c) - unsigned 8 bit
+ (instead of ulaw) is now default for 8bit operation - Linux PPC
+ patch from Grant Erickson <eric0139@tc.umn.edu> applied - added
+ BSDi patch from Peter Berger <peterb@hoopoe.psc.edu>, who
+ reported a failure when catching signals - minor bug fix in the
+ control interface for sajber jukebox - fixed the ugly 'Ctrl-Z in
+ buffer mode' bug .. YES ;) - added buffer preload when underrun
+ occurs (preload = 1/8 buffer size)
+
+2006-02-20 03:26 thor
+
+ * mhipp/BUGS, mhipp/CHANGES, mhipp/INSTALL, mhipp/Makefile,
+ mhipp/Makefile.win32, mhipp/README, mhipp/README.WIN32,
+ mhipp/audio.c, mhipp/audio.h, mhipp/buffer.c, mhipp/common.c,
+ mhipp/control.c, mhipp/decode.c, mhipp/decode_2to1.c,
+ mhipp/decode_4to1.c, mhipp/decode_i386.c, mhipp/decode_i586.s,
+ mhipp/equalize.dat, mhipp/getbits_bsdos.s, mhipp/httpget.c,
+ mhipp/layer1.c, mhipp/layer3.c, mhipp/mpg123.1, mhipp/mpg123.c,
+ mhipp/mpg123.h, mhipp/version.h, mhipp/xfermem.c: version 0.59m
+ by Michael Hipp: - Bug with RIFF header streams fixed. - HTTP
+ auth option patch from Henrik P Johnson <king@one.se> - NetBSD
+ patch(s) added from <mycroft@NetBSD.ORG> and
+ <augustss@cs.chalmers.se> - Added advanced shuffle support from
+ Steven Tiger Lang <tiger@tyger.org> - fixed bug with too large
+ big_value field - fixed (hopefully) the bug with the '-a' option
+ - work-around for some pedantic compilers in fr->synth init -
+ some changes for the 'generic' version - applied NAS bug-fix
+ patch - new (good) MPEG 2.5 tables (from Niklas Beisert) - added
+ WIN32 support from Tony Million - added some bug fixes from
+ Niklas Beisert - fixed another ugly bug in layer3 dequantize
+ (wrote over the border of the 'xr' field) - a minor HPUX clean
+ up - added BSD patch from Kevin Brintnall <kbrint@visi.com> -
+ added Makefile.win32 - added NAS big endian fix
+
+2006-02-20 03:24 thor
+
+ * mhipp/CHANGES, mhipp/Makefile, mhipp/README, mhipp/audio.c,
+ mhipp/common.c, mhipp/decode.c, mhipp/decode_2to1.c,
+ mhipp/decode_4to1.c, mhipp/decode_i386.c, mhipp/decode_i586.s,
+ mhipp/equalize.dat, mhipp/equalizer.c, mhipp/layer3.c,
+ mhipp/mpg123.c, mhipp/mpg123.h, mhipp/tabinit.c,
+ mhipp/version.h: version 0.59l by Michael Hipp: - simple
+ equalizer support (to be continued) - added NAS patch from
+ Martin Denn <mdenn@unix-ag.uni-kl.de> - real mono support -
+ added pentium optimized decode_i586 from Stefan Bieschewski
+ <stb@acm.org> - fixed a bug in MS dequantize function
+
+2006-02-20 03:22 thor
+
+ * mhipp/CHANGES, mhipp/INSTALL, mhipp/Makefile, mhipp/README,
+ mhipp/audio.c, mhipp/audio.h, mhipp/buffer.c, mhipp/common.c,
+ mhipp/decode.c, mhipp/getbits.s, mhipp/httpget.c,
+ mhipp/mpg123.c, mhipp/mpg123.h, mhipp/version.h,
+ mhipp/xfermem.c, mhipp/xfermem.h: version 0.59k by Michael
+ Hipp/Oliver Fromme: - fixed "Accept" header in httpget.c - fixed
+ buffer overflow (causing core dumps) in httpget.c - fixed
+ display of song length - fixed -b (buffer) problem on SGI / IRIX
+ -- it definitely works now - fixed problem when files with
+ different sample rates where played, it now works with -b
+ (buffer), too - fixed order of local variables in decode.c to
+ work around a compiler bug in ultrix - fixed Makefile for ultrix
+ - reverted to old getbits.s (the new one could cause coredumps)
+ - more compact MPEG header display in non-verbose mode - small
+ fixes in buffer code and elsewhere
+
+2006-02-20 03:19 thor
+
+ * mhipp/CHANGES, mhipp/INSTALL, mhipp/JUKEBOX, mhipp/Makefile,
+ mhipp/README, mhipp/common.c, mhipp/control.c, mhipp/get1bit.h,
+ mhipp/getbits.s, mhipp/jukebox, mhipp/jukebox/README,
+ mhipp/jukebox/audio.h, mhipp/jukebox/controldata.h,
+ mhipp/layer3.c, mhipp/mpg123.c, mhipp/mpg123.h, mhipp/version.h:
+ version 0.59j by Michael Hipp: - added sajber jukebox control
+ interface (it's currently a big hack) (see 'JUKEBOX' file for
+ more) - added simple rewind facility .. (only used by sajber
+ interface at the moment)
+
+2006-02-20 03:14 thor
+
+ * mhipp/CHANGES, mhipp/Makefile, mhipp/README, mhipp/TODO,
+ mhipp/audio.c, mhipp/audio.h, mhipp/buffer.c, mhipp/common.c,
+ mhipp/getbits.s, mhipp/httpget.c, mhipp/layer2.c,
+ mhipp/layer3.c, mhipp/mpg123.1, mhipp/mpg123.c, mhipp/mpg123.h,
+ mhipp/tables.h, mhipp/version.h: version 0.59i by Michael Hipp:
+ - added front-end (remote) patch from "Brian J. Swetland"
+ <swetland@uiuc.edu> - added OS2 patches from Niclas Lindstrom
+ <nil@wineasy.se> - fixed 'rewind bug' - added patches from Leo
+ Broukhis <leo@zycad.com> - added shuffle patch from Tillmann
+ Steinbrecher <tst@darmstadt.netsurf.de> - added i386-getbits
+ from M.Stekelenburg <m.stekelenburg@student.utwente.nl> - added
+ fallback to 8bit if no 16bit samples support (currently linux
+ only) - added (slightly changed) outburst patch from Antti
+ Andreimann <anttix@cyberix.edu.ee> - added 'http accept' patch
+ from Hur TaeSung <saturn@arari.snu.ac.kr> - fixed buffer mode bug
+
+2006-02-20 03:10 thor
+
+ * mhipp/CHANGES, mhipp/Makefile, mhipp/README, mhipp/audio.c,
+ mhipp/audio.h, mhipp/buffer.c, mhipp/common.c, mhipp/decode.c,
+ mhipp/decode_2to1.c, mhipp/decode_4to1.c, mhipp/decode_i386.c,
+ mhipp/layer1.c, mhipp/layer2.c, mhipp/layer3.c, mhipp/mpg123.c,
+ mhipp/mpg123.h, mhipp/tabinit.c, mhipp/version.h: version 0.59h
+ by Michael Hipp - added '--8bit' option to force 'UNSIGNED 8
+ BIT' playing - pcm buffer type changed to 'unsigned char *' -
+ plays 2:1 and 4:1 with the real frequency (ie 11025/22050
+ instead of 44100) - program (re)sets (changed) frequency for
+ every frame - buffer mode is broken
+
+2006-02-20 03:08 thor
+
+ * mhipp/CHANGES, mhipp/Makefile, mhipp/README, mhipp/TODO,
+ mhipp/audio.c, mhipp/common.c, mhipp/dct64.c,
+ mhipp/decode_2to1.c, mhipp/decode_4to1.c, mhipp/layer1.c,
+ mhipp/layer2.c, mhipp/layer3.c, mhipp/mpg123.1, mhipp/mpg123.c,
+ mhipp/mpg123.h, mhipp/version.h, mhipp/xfermem.c,
+ mhipp/xfermem.h: version 0.59g by Michael Hipp (with f...):
+ 0.59g: (MH) ------ - added support for MPEG 2.5 (it's a HACK!)
+ .. mpg123 understands and plays 2.5 but it does it wrong. (you
+ will hear this!) - Fixed wrong values in BandInfo struct for
+ 32kHz mode - Some performance improvements and minor changes and
+ bug-fixes. - Tried the new imdct from the maplay1.2+ (version
+ 1.81) package. (but it was slightly slower on my system,
+ currently disabled) 0.59f: (OF) ------ HP-UX audio fix (provided
+ by Damien Clermonte). Buffering (-b option) hopefully fixed.
+ Please test!
+
+2006-02-20 03:05 thor
+
+ * mhipp/CHANGES, mhipp/Makefile, mhipp/README, mhipp/common.c,
+ mhipp/layer3.c, mhipp/mpg123.1, mhipp/mpg123.c, mhipp/mpg123.h:
+ version 0.59e by Michael Hipp: added Audio MPEG 2.0 support (but
+ near untested) (MH)
+
+2006-02-20 03:03 thor
+
+ * mhipp/CHANGES, mhipp/Makefile, mhipp/README, mhipp/audio.c,
+ mhipp/buffer.c, mhipp/common.c, mhipp/dct64.c,
+ mhipp/dct64_i386.c, mhipp/decode.c, mhipp/decode_2to1.c,
+ mhipp/decode_4to1.c, mhipp/decode_i386.c, mhipp/getlopt.c,
+ mhipp/getlopt.h, mhipp/mpg123.1, mhipp/mpg123.c, mhipp/mpg123.h,
+ mhipp/xfermem.c, mhipp/xfermem.h: version 0.59d by Michael Hipp,
+ including at least 0.59c (a?, b?): 0.59d: (MH) ------ minor
+ modifications to dct64_i386.c removed duplicated dependency
+ 'dct64.o' in Makefile 0.59c: (OF) ------ Another complete rework
+ of the buffer system (-b option) (normally uses mmap(), but it
+ can also use SYSV-ShMem because mmap() is broken on linux).
+
+2006-02-20 02:59 thor
+
+ * mhipp/CHANGES, mhipp/INSTALL, mhipp/Makefile, mhipp/README,
+ mhipp/TODO, mhipp/audio.c, mhipp/buffer.c, mhipp/cmpl3,
+ mhipp/common.c, mhipp/dct64.c, mhipp/decode.c,
+ mhipp/decode_2to1.c, mhipp/decode_4to1.c, mhipp/decode_i386.c,
+ mhipp/getbits.s, mhipp/getbits_.s, mhipp/getlopt.c,
+ mhipp/getlopt.h, mhipp/httpget.c, mhipp/layer3.c,
+ mhipp/mpg123.1, mhipp/mpg123.c, mhipp/mpg123.h: version 0.59 by
+ Michael Hipp, with step 0.58 in there: 0.59: (MH) -----
+ extracted dct64() from decode*.c files. some changes to dct64()
+ and decode*.c to allow auto-increment/decrement removed
+ bit-counter in getbit-functions. Layer3 part2 now counts it
+ itself. 0.58: (OF) ----- Bugfix: not closing the audio device
+ caused a few samples to be lost. Bugfix: audio_set_rate() was
+ not called (!?!). Additional command line options
+ "--doublespeed" and "--halfspeed" (couldn't find better names).
+ See the manpage. Complete redesign of command line options. See
+ the manpage. Changed the buffer algorithm (-b). I'm not sure
+ whether it's better or worse now. Supports multiple files on the
+ command line. Pressing Ctrl-C will skip to the next MPEG file,
+ pressing it twice within one second will abort mpg123
+ completely. See the "INTERRUPT" section in the manpage. Support
+ for http URLs. See also the -p option in the manpage. Support
+ for list files. See also the -@ option in the manpage.
+
+2006-02-20 02:54 thor
+
+ * mhipp/CHANGES, mhipp/INSTALL, mhipp/Makefile, mhipp/README,
+ mhipp/TODO, mhipp/audio.c, mhipp/buffer.c, mhipp/cmpl3,
+ mhipp/common.c, mhipp/decode.c, mhipp/decode_2to1.c,
+ mhipp/decode_4to1.c, mhipp/decode_i386.c, mhipp/decode_int.c,
+ mhipp/huffman.c, mhipp/huffman.h, mhipp/layer1.c,
+ mhipp/layer2.c, mhipp/layer3.c, mhipp/mpg123.1, mhipp/mpg123.c,
+ mhipp/mpg123.h, mhipp/tabinit.c: version 0.57 by Michael Hipp,
+ stepping over version 0.56: 0.57: (MH) ----- Put the
+ downsampling code together with the full quality decode into one
+ binary. (new options -2to1,-4to1) Optimizations in the dct12.
+ Removed the 'int' version. 0.56: (OF) ----- Additional command
+ line option "-rs" to try to resync on "broken" MPEG streams (now
+ called "--resync" or "-y"). Additional command line option "-b"
+ to use audio output buffering. See the manpage for additional
+ information. Changed a few variable names and some other minor
+ fixes, so the source compiles more cleanly (without warnings) on
+ most platforms (for example, the FreeBSD port compiles without
+ warnings using "-Wall -ansi -pedantic"). Makefile changes: moved
+ "solaris" to "solaris-gcc", new target "solaris" (using Sun's
+ SparcWorks cc, faster tha gcc!), new targets "aix" and "generic".
+
+2006-02-20 02:50 thor
+
+ * mhipp/CHANGES, mhipp/COPYING, mhipp/INSTALL, mhipp/Makefile,
+ mhipp/README, mhipp/TODO, mhipp/audio.c, mhipp/common.c,
+ mhipp/decode.c, mhipp/decode_2to1.c, mhipp/decode_4to1.c,
+ mhipp/decode_i386.c, mhipp/decode_lp.c, mhipp/huffman.h,
+ mhipp/layer1.c, mhipp/layer2.c, mhipp/layer3.c, mhipp/mpg123.c,
+ mhipp/mpg123.h: version 0.55 by Michael Hipp: removed some
+ obsolete code from layer3.c (MH) changed scalefac stoing in
+ layer3 (MH) decode_4to1.c added again. Renamed decode_lp.c to
+ decode_2to1.c (MH) (both not optimized .. still expterimental)
+ Minor cleanups and optimizations in layer3. (MH) Removed some
+ (probable) minor bugs. (MH) Changed 2**(...) scaling (and
+ omitted a few muls) (MH) Changed Makefile (OF) Changed
+ dequantize to reorder with a mapping table (you can disable this
+ by undefining MAP in layer3.c) (MH) removed the 'dummy' scale
+ step for mixed mode (MH) Changed copy policy (MH) Modified
+ dequant-reorder-mapping (MH)
+
+2006-02-20 02:09 thor
+
+ * mhipp, mhipp/CHANGES, mhipp/INSTALL, mhipp/Makefile,
+ mhipp/README, mhipp/TODO, mhipp/audio.c, mhipp/common.c,
+ mhipp/decode.c, mhipp/decode_i386.c, mhipp/decode_int.c,
+ mhipp/decode_lp.c, mhipp/getbits.s, mhipp/getbits_.s,
+ mhipp/huffman.c, mhipp/huffman.h, mhipp/layer1.c,
+ mhipp/layer2.c, mhipp/layer3.c, mhipp/mpg123.1, mhipp/mpg123.c,
+ mhipp/mpg123.h, mhipp/tables.h, tags: Starting reconstruction of
+ Michael Hipp's trackable work (downloadable release versions) in
+ svn. This is version 0.54. Of course this is not the beginning,
+ but it is what I was able to get. Changes from 0.53b to 0.54 (by
+ Michael Hipp): Minor changes in the documents .. huffman.c:
+ x->len,y->len removed .. always '15' for the important cases
+ audio.c: some additions to the SOLARIS audio code First noted
+ changes at all: from 0.53a to 0.53b by Oliver Fromme: see
+ CHANGES file
+
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..cb91fc4
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,109 @@
+mpg123 install hints
+--------------------
+
+(This file has very long lines - die-hard terminal nostalgists can be satisfied by `fmt -s -w 75 < INSTALL | less`. I think it's better to let the reader's preference rule than to preformat the stuff to some arbitrary width.)
+
+There are now two basic ways to get your mpg123 installation consisting of
+
+ a) the mpg123 binary file
+ - with libmpg123 as shared library or statically linked
+ - with audio output plugins, or one statically linked
+ b) a man page
+
+(you may want to copy some of the documentation - README, etc - to /usr/share/doc/mpg123 or the like, too)
+
+
+0. Prerequesites
+
+You really need:
+
+- a C compiler; we try to keep the code ANSI C89/ISO C90 compatible
+ gcc from 2.95 on should work, others, too - please report any issues
+ Actually, we have a confirmed working build (svn trunk leading to release 0.67) on SunOS 4.1.4 with gcc-2.7.0 .
+
+- an (UNIX-like) operating system with standard tools; MinGW32 and Cygwin are working for Microsoft Windows, too.
+- For the library only, you may get lucky with MSVC++ using the project files under ports/
+- For other exotic platforms, see ports/
+
+You want:
+
+- working assembler (recent GNU binutils) if using certain CPU optimizations
+
+- headers and lib for certain audio output drivers (libasound for alsa, sdl for sdl...)
+
+
+1. New installation via GNU autotools
+
+The GNU 3-step procedure:
+
+ ./configure
+ make
+ make install
+
+Run
+
+ ./configure --help
+
+for a list of possible parameters you can specify. The obvious are --prefix and the normal GNU autotool bunch, but others include what audio subsystem to use and what CPU optimizations to build in.
+For the optimizations (decoder choice), the default on 32bit x86 systems since version 0.66 is a build that combines all possible optimizations and chooses one at runtime (see --cpu, --list-cpu and --test-cpu parameters).
+Update: x86 build includes all but i586_dither, which is a bit bigger due to the dither noise; use x86_dither to get it into the bunch, too.
+
+Another posibly important choice is --with-seektable=<number> for setting the size for the table of stored frame addresses to make seeking faster. When you want a minimal memory footprint, you can set number to 0. Seeking will always start from the beginning, then - being accurate, but rather slow, what doesn't matter if you don't use interactive seeking forth and back.
+
+There are various library features you can leave out via --disable options (like output formats, resampling modes). Please note that this is only configured/tested for the generic (fpu) decoder, not optimized ones. Perhaps that changes in future.
+
+
+2. The classic way via the provided Makefile
+
+No, the Makefile is not provided anymore. Even if autotools is complicated, it is more cumbersome to take care of two build systems in parallel.
+You can dig in SVN for MakeLegacy.sh and src/Makefile.legacy and src/config.h.legacy, if you want.
+
+Again, to be clear: There is no classic way anymore.
+
+3. Do something different on a special platform/compiler/...
+
+Look into the ports/ directory for some traces of "porting" mpg123 or usually libmpg123 alone to different systems and compilers.
+
+3a. Preparing Win32 binary packages.
+
+Caution: You should make sure to use some gcc >= 4.2.0, even if it's still the experimental package for MinGW32.
+This helps preventing incompatibilities between generated DLL files and other compilers (it's about stack alignment).
+
+Get MinGW/MSYS installed, run the MSYS shell.
+Enter the mpg123 source directory.
+Execute sh ./windows-builds.sh .
+
+After some time, you should have some relevant files under releases/ (or releases\, for Windows people;-).
+You don't just get one build -- there are several variants, corresponding to what usually is to be found under http://mpg123.org/download/win32 .
+
+
+4. Have fun!
+
+
+These are some remarks from Michael that could still bear some relevance:
+
+ - There is currently no direct audio hardware support for the
+ "dec" and "generic" targets. That means that you have to use
+ the "-s" commandline option to write the decoded audio data
+ to stdout.
+
+ - On Solaris, use Sun's SparcWorks compiler ("make solaris")
+ if at all possible. It generates faster code than gcc, so
+ use gcc only if there's no other way.
+
+ - The macro "htons" causes a compiler warning in httpget.c
+ (at least on FreeBSD 2.1.x). This can be safely ignored.
+
+ - For Solaris 2.4: append the options "-L/usr/ucblib -lucb"
+ at the end of the link command line. Do this ONLY for
+ Solaris 2.4, NOT for Solaris 2.5 or newer versions.
+
+ - The HP-UX port might be broken. I was able to compile it
+ on an HP-UX 9 account, but there were some problems with
+ libraries on HP-UX 10. I'm not an HP expert, but perhaps
+ someone else can fix it.
+ [note: some people report NO problems also with HP-UX 10]
+
+ - IRIX: some people reported compile problems on IRIX 5.x (5.3)
+ but 6.x seems to compile without problems
+
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..f5f4d59
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,53 @@
+## Makefile.am: produce Makefile.in from this
+
+## copyright by the mpg123 project - free software under the terms of the LGPL 2.1
+## see COPYING and AUTHORS files in distribution or http://mpg123.org
+## initially written by Nicholas J. Humfrey
+dist_man_MANS = man1/mpg123.1
+
+SUBDIRS = src doc
+DIST_SUBDIRS = src doc
+
+# pkg-config file for the mpg123 library
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libmpg123.pc
+
+EXTRA_DIST = \
+ libmpg123.pc.in \
+ mpg123.spec.in \
+ mpg123.spec \
+ makedll.sh \
+ windows-builds.sh \
+ equalize.dat \
+ NEWS.libmpg123 \
+ autogen.sh \
+ ports/MSVC++/mpg123.h \
+ ports/MSVC++/config.h \
+ ports/MSVC++/msvc.c \
+ ports/MSVC++/examples/scan.c \
+ ports/MSVC++/examples/feedseek.c \
+ ports/MSVC++/2005/libmpg123/libmpg123.vcproj \
+ ports/MSVC++/2008/mpg123.sln \
+ ports/MSVC++/2008/feedseek/feedseek.vcproj \
+ ports/MSVC++/2008/mpglib/mpglib.vcproj \
+ ports/MSVC++/2008/libmpg123/libmpg123.vcproj \
+ ports/MSVC++/2008/scan/scan.vcproj \
+ ports/MSVC++/CMP3Stream/libMPG123/libMPG123.vcproj \
+ ports/MSVC++/CMP3Stream/libMPG123/PLACE_LIBMPG123_SOURCES_HERE \
+ ports/MSVC++/CMP3Stream/README \
+ ports/MSVC++/CMP3Stream/SOURCE/CORE_Log.CPP \
+ ports/MSVC++/CMP3Stream/SOURCE/CORE_FileIn.CPP \
+ ports/MSVC++/CMP3Stream/SOURCE/SourceFilter_MP3Stream.CPP \
+ ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP \
+ ports/MSVC++/CMP3Stream/INCLUDE/CORE/CORE_FileIn.H \
+ ports/MSVC++/CMP3Stream/INCLUDE/CORE/SourceFilter_MP3.H \
+ ports/MSVC++/CMP3Stream/INCLUDE/IIEP_FileIn.H \
+ ports/MSVC++/CMP3Stream/INCLUDE/IIEP_Def.H \
+ ports/README \
+ ports/Sony_PSP/config.h \
+ ports/Sony_PSP/README \
+ ports/Sony_PSP/Makefile.psp \
+ ports/Sony_PSP/readers.c.patch \
+ ports/mpg123_.pas \
+ scripts/benchmark-cpu.pl
+
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..49556c1
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,832 @@
+# Makefile.in generated by automake 1.10.2 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+subdir = .
+DIST_COMMON = README $(am__configure_deps) $(dist_man_MANS) \
+ $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+ $(srcdir)/libmpg123.pc.in $(top_srcdir)/configure AUTHORS \
+ COPYING ChangeLog INSTALL NEWS TODO build/config.guess \
+ build/config.sub build/depcomp build/install-sh \
+ build/ltmain.sh build/missing
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/src/config.h
+CONFIG_CLEAN_FILES = libmpg123.pc
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+man1dir = $(mandir)/man1
+am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgconfigdir)"
+NROFF = nroff
+MANS = $(dist_man_MANS)
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+pkgconfigDATA_INSTALL = $(INSTALL_DATA)
+DATA = $(pkgconfig_DATA)
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ { test ! -d $(distdir) \
+ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -fr $(distdir); }; }
+DIST_ARCHIVES = $(distdir).tar.gz
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+AIX_CFLAGS = @AIX_CFLAGS@
+AIX_LDFLAGS = @AIX_LDFLAGS@
+AIX_LIBS = @AIX_LIBS@
+ALIB_CFLAGS = @ALIB_CFLAGS@
+ALIB_LDFLAGS = @ALIB_LDFLAGS@
+ALIB_LIBS = @ALIB_LIBS@
+ALSA_CFLAGS = @ALSA_CFLAGS@
+ALSA_LDFLAGS = @ALSA_LDFLAGS@
+ALSA_LIBS = @ALSA_LIBS@
+AMTAR = @AMTAR@
+AR = @AR@
+ARTS_CFLAGS = @ARTS_CFLAGS@
+ARTS_LDFLAGS = @ARTS_LDFLAGS@
+ARTS_LIBS = @ARTS_LIBS@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
+CCASFLAGS = @CCASFLAGS@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+COREAUDIO_CFLAGS = @COREAUDIO_CFLAGS@
+COREAUDIO_LDFLAGS = @COREAUDIO_LDFLAGS@
+COREAUDIO_LIBS = @COREAUDIO_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DECODER_LOBJ = @DECODER_LOBJ@
+DECODER_OBJ = @DECODER_OBJ@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMMY_CFLAGS = @DUMMY_CFLAGS@
+DUMMY_LDFLAGS = @DUMMY_LDFLAGS@
+DUMMY_LIBS = @DUMMY_LIBS@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_LDFLAGS = @ESD_LDFLAGS@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GREP = @GREP@
+HP_CFLAGS = @HP_CFLAGS@
+HP_LDFLAGS = @HP_LDFLAGS@
+HP_LIBS = @HP_LIBS@
+INCLUDE_STDIO_H = @INCLUDE_STDIO_H@
+INCLUDE_STDLIB_H = @INCLUDE_STDLIB_H@
+INCLUDE_SYS_TYPE_H = @INCLUDE_SYS_TYPE_H@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+JACK_CFLAGS = @JACK_CFLAGS@
+JACK_LDFLAGS = @JACK_LDFLAGS@
+JACK_LIBS = @JACK_LIBS@
+LARGEFILE_BITS = @LARGEFILE_BITS@
+LARGEFILE_SUFFIX = @LARGEFILE_SUFFIX@
+LARGEFILE_SWITCH = @LARGEFILE_SWITCH@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBMPG123_VERSION = @LIBMPG123_VERSION@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_LDFLAGS = @LT_LDFLAGS@
+MAKEINFO = @MAKEINFO@
+MINT_CFLAGS = @MINT_CFLAGS@
+MINT_LDFLAGS = @MINT_LDFLAGS@
+MINT_LIBS = @MINT_LIBS@
+MKDIR_P = @MKDIR_P@
+MODULE_OBJ = @MODULE_OBJ@
+NAS_CFLAGS = @NAS_CFLAGS@
+NAS_LDFLAGS = @NAS_LDFLAGS@
+NAS_LIBS = @NAS_LIBS@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OS2_CFLAGS = @OS2_CFLAGS@
+OS2_LDFLAGS = @OS2_LDFLAGS@
+OS2_LIBS = @OS2_LIBS@
+OSS_CFLAGS = @OSS_CFLAGS@
+OSS_LDFLAGS = @OSS_LDFLAGS@
+OSS_LIBS = @OSS_LIBS@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+OUTPUT_CFLAGS = @OUTPUT_CFLAGS@
+OUTPUT_LDFLAGS = @OUTPUT_LDFLAGS@
+OUTPUT_LIBS = @OUTPUT_LIBS@
+OUTPUT_MOD = @OUTPUT_MOD@
+OUTPUT_OBJ = @OUTPUT_OBJ@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@
+PORTAUDIO_LDFLAGS = @PORTAUDIO_LDFLAGS@
+PORTAUDIO_LIBS = @PORTAUDIO_LIBS@
+PULSE_CFLAGS = @PULSE_CFLAGS@
+PULSE_LDFLAGS = @PULSE_LDFLAGS@
+PULSE_LIBS = @PULSE_LIBS@
+RANLIB = @RANLIB@
+SDL_CFLAGS = @SDL_CFLAGS@
+SDL_LDFLAGS = @SDL_LDFLAGS@
+SDL_LIBS = @SDL_LIBS@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SGI_CFLAGS = @SGI_CFLAGS@
+SGI_LDFLAGS = @SGI_LDFLAGS@
+SGI_LIBS = @SGI_LIBS@
+SHELL = @SHELL@
+SNDIO_CFLAGS = @SNDIO_CFLAGS@
+SNDIO_LDFLAGS = @SNDIO_LDFLAGS@
+SNDIO_LIBS = @SNDIO_LIBS@
+STRIP = @STRIP@
+SUN_CFLAGS = @SUN_CFLAGS@
+SUN_LDFLAGS = @SUN_LDFLAGS@
+SUN_LIBS = @SUN_LIBS@
+VERSION = @VERSION@
+WIN32_CFLAGS = @WIN32_CFLAGS@
+WIN32_LDFLAGS = @WIN32_LDFLAGS@
+WIN32_LIBS = @WIN32_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+dist_man_MANS = man1/mpg123.1
+SUBDIRS = src doc
+DIST_SUBDIRS = src doc
+
+# pkg-config file for the mpg123 library
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libmpg123.pc
+EXTRA_DIST = \
+ libmpg123.pc.in \
+ mpg123.spec.in \
+ mpg123.spec \
+ makedll.sh \
+ windows-builds.sh \
+ equalize.dat \
+ NEWS.libmpg123 \
+ autogen.sh \
+ ports/MSVC++/mpg123.h \
+ ports/MSVC++/config.h \
+ ports/MSVC++/msvc.c \
+ ports/MSVC++/examples/scan.c \
+ ports/MSVC++/examples/feedseek.c \
+ ports/MSVC++/2005/libmpg123/libmpg123.vcproj \
+ ports/MSVC++/2008/mpg123.sln \
+ ports/MSVC++/2008/feedseek/feedseek.vcproj \
+ ports/MSVC++/2008/mpglib/mpglib.vcproj \
+ ports/MSVC++/2008/libmpg123/libmpg123.vcproj \
+ ports/MSVC++/2008/scan/scan.vcproj \
+ ports/MSVC++/CMP3Stream/libMPG123/libMPG123.vcproj \
+ ports/MSVC++/CMP3Stream/libMPG123/PLACE_LIBMPG123_SOURCES_HERE \
+ ports/MSVC++/CMP3Stream/README \
+ ports/MSVC++/CMP3Stream/SOURCE/CORE_Log.CPP \
+ ports/MSVC++/CMP3Stream/SOURCE/CORE_FileIn.CPP \
+ ports/MSVC++/CMP3Stream/SOURCE/SourceFilter_MP3Stream.CPP \
+ ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP \
+ ports/MSVC++/CMP3Stream/INCLUDE/CORE/CORE_FileIn.H \
+ ports/MSVC++/CMP3Stream/INCLUDE/CORE/SourceFilter_MP3.H \
+ ports/MSVC++/CMP3Stream/INCLUDE/IIEP_FileIn.H \
+ ports/MSVC++/CMP3Stream/INCLUDE/IIEP_Def.H \
+ ports/README \
+ ports/Sony_PSP/config.h \
+ ports/Sony_PSP/README \
+ ports/Sony_PSP/Makefile.psp \
+ ports/Sony_PSP/readers.c.patch \
+ ports/mpg123_.pas \
+ scripts/benchmark-cpu.pl
+
+all: all-recursive
+
+.SUFFIXES:
+am--refresh:
+ @:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
+ cd $(srcdir) && $(AUTOMAKE) --gnu \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+libmpg123.pc: $(top_builddir)/config.status $(srcdir)/libmpg123.pc.in
+ cd $(top_builddir) && $(SHELL) ./config.status $@
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool config.lt
+install-man1: $(man1_MANS) $(man_MANS)
+ @$(NORMAL_INSTALL)
+ test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
+ @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
+ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+ for i in $$l2; do \
+ case "$$i" in \
+ *.1*) list="$$list $$i" ;; \
+ esac; \
+ done; \
+ for i in $$list; do \
+ if test -f $$i; then file=$$i; \
+ else file=$(srcdir)/$$i; fi; \
+ ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+ case "$$ext" in \
+ 1*) ;; \
+ *) ext='1' ;; \
+ esac; \
+ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+ inst=`echo $$inst | sed -e 's/^.*\///'`; \
+ inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
+ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
+ done
+uninstall-man1:
+ @$(NORMAL_UNINSTALL)
+ @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
+ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
+ for i in $$l2; do \
+ case "$$i" in \
+ *.1*) list="$$list $$i" ;; \
+ esac; \
+ done; \
+ for i in $$list; do \
+ ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+ case "$$ext" in \
+ 1*) ;; \
+ *) ext='1' ;; \
+ esac; \
+ inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
+ inst=`echo $$inst | sed -e 's/^.*\///'`; \
+ inst=`echo $$inst | sed '$(transform)'`.$$ext; \
+ echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
+ rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
+ done
+install-pkgconfigDATA: $(pkgconfig_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
+ @list='$(pkgconfig_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
+ $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
+ done
+
+uninstall-pkgconfigDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(pkgconfig_DATA)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
+ rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
+ done
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ test -d $(distdir) || mkdir $(distdir)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r $(distdir)
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-lzma: distdir
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.lzma*) \
+ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
+ mkdir $(distdir)/_build
+ mkdir $(distdir)/_inst
+ chmod a-w $(distdir)
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && cd $(distdir)/_build \
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+ distuninstallcheck \
+ && chmod -R a-w "$$dc_install_base" \
+ && ({ \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
+ && rm -rf "$$dc_destdir" \
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+distuninstallcheck:
+ @cd $(distuninstallcheck_dir) \
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+ || { echo "ERROR: files left after uninstall:" ; \
+ if test -n "$(DESTDIR)"; then \
+ echo " (check DESTDIR support)"; \
+ fi ; \
+ $(distuninstallcheck_listfiles) ; \
+ exit 1; } >&2
+distcleancheck: distclean
+ @if test '$(srcdir)' = . ; then \
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+ exit 1 ; \
+ fi
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left in build directory after distclean:" ; \
+ $(distcleancheck_listfiles) ; \
+ exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(MANS) $(DATA)
+installdirs: installdirs-recursive
+installdirs-am:
+ for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgconfigdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-libtool \
+ distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-man install-pkgconfigDATA
+
+install-dvi: install-dvi-recursive
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-info: install-info-recursive
+
+install-man: install-man1
+
+install-pdf: install-pdf-recursive
+
+install-ps: install-ps-recursive
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-man uninstall-pkgconfigDATA
+
+uninstall-man: uninstall-man1
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
+ install-strip
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am am--refresh check check-am clean clean-generic \
+ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
+ dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
+ distclean distclean-generic distclean-libtool distclean-tags \
+ distcleancheck distdir distuninstallcheck dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-man1 install-pdf \
+ install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+ ps ps-am tags tags-recursive uninstall uninstall-am \
+ uninstall-man uninstall-man1 uninstall-pkgconfigDATA
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..bd5dcf4
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,947 @@
+1.8.1
+---
+- Include improvements to integer decoder from SVN trunk.
+ They have been accidentally promised on 1.8.0 release announcements, though they were not there. Here it is: ISO compliant fixed point decoding (speed optimizations are still reserved for next release).
+- Fixed build with ./configure --enable-modules (bug in configure script).
+- Fix name of binary in help screen when called with path.
+- Build fix for old gcc with AltiVec code.
+- Update of Sony PSP build files.
+
+1.8.0 (The Taihei Monmament)
+---
+
+- New and improved SSE optimizations! For x86-64, too! Also AltiVec! Fast float output! Faster stereo!
+ Finally, this should put mpg123 into the efficiency-leading position on current hardware!
+ Thanks go out to Taihei Monma for pushing lots of new assembler code.
+- Added proper rounding modes to 16bit integer.
+ - Use ./configure --enable-int-quality to prefer accuracy over speed.
+ - Accurate code (generic, SSE, 3dnow -- i586 has always been good) delivers ISO compliant quality with 16bit output.
+ - Uses fast rounding for IEEE754 floats.
+ - Mpg123 can do fully ISO compliant MPEG audio decoding to 16bits (of course to 32bit float/int, too).
+- subtle performance enhancements via broader data alignment
+- Prefer SSE code over 3DNowExt.
+ - It can be tight, but generally our new SSE code is better on CPUs that can do both.
+- Remove HF cutoff (SFB21), has been introduced in 0.59r .
+- Fix layer 1 regression (been there since version 1.x).
+ - Layer 1 ISO compliance test is positive now.
+- Fix layer 2 regression (false positives header change).
+ - Layer 2 ISO compliance test is positive now.
+- more sample-accurateness
+ - Clear frame buffers before seek.
+ - Decode 4 frames in advance for layer 3 (2 for layer 1 and 2) per default.
+ - Number of layer 3 frames to decoded in advance (and fill bit reservoir) is runtime tunable (--preframes).
+- Do not stop decoding after stray ID3v1 tags in streams (bug 2793677).
+- Fix handling of negative RVA2 values in ID3v2 (bug 2792417).
+- Discard bitreservoir of previous frames if a resync is needed.
+- improve perceived randomness of --random (do not repeat too early)
+- Fix special crash case in UTF16 conversion for ID3v2.
+- MPG123_MODDIR environment variable for changing module directory at runtime
+- arts output fixes (bug 2715128)
+- win32 output swallowing less buffers at end (but still some audio is lost, bug 2722991)
+- tested mpg123 on OS/2; it works, but not the native audio output (SDL works)
+- WAV output announces supported output formats correctly
+- fix buffer startup to make sure the first bits of audio are not discarded (bug 2796802)
+- re-enable the --gain parameter (the move to modules disabled that), untested
+- Libltdl is _not_ included anymore.
+ - The host system is expected to provide it, otherwise plugins are not used.
+ - Our copy does not get in the way anymore.
+- enhancements of the MSVC++ builds, including optimizations using yasm
+- general build system fixes
+- Legacy build system is gone.
+- code cleanup
+ - signed/unsigned integer usage, make compilers more happy)
+ - simplified synth selection code (it is _less_ code now, and does more)
+- Fixed behaviour of MPG123_NEW_FORMAT: Now it does not stop you from just continuing decoding without querying the (new) output format, this behaviour regression had been there since somewhen after 1.4.3 .
+
+1.7.3
+---
+ - Fix a regression introduced with the --doublespeed fix. Now seeking should be a lot smoother again.
+
+1.7.2
+---
+ - Fix a possible vulnerability in the ID3 code (negative encoding values).
+
+1.7.1
+---
+ - Just one fix for making the RVA switch in terminal and generic control mode work again (instead of plain silence).
+
+1.7.0
+---
+- Lots of output format fun!
+ - now supporting 8, 16, 32 bit signed/unsigned integers,
+ 32bit float (64bit float can be hacked in quickly)
+ - optimized decoders use fallback routines for non-optimized
+ formats transparently
+ - flexible resampling is automatically chosen when output does
+ not support standard rates (like a JACK server)
+ - That meant quite some restructuring in the decoder code...
+- Lots of core functionality now optional, enabling small-footprint
+ builds of libmpg123.
+ - choosing among the MPEG layer codes
+ - NtoM resampling
+ - downsampling
+ - feeder API (mpg123_open_feed())
+ - ID3v2
+ - String API
+ - ICY
+ - output formats
+ - error/warning message printouts
+ - ... a layer3-only shared libmpg123 can be just 107K on x86-64
+ or 94K on x86
+- --preload (tune prefill before playback for buffered mode)
+- win64 support (one report at least;-), modules working on Windows
+- Windows/MSVC++: fixed handling of unicode file names,
+ mpg123_topen() now actually working there
+ - You are obliged to use mpg123_tclose() now!
+- using "plugins" subdir relative to mpg123 binary
+ (in addition to ../lib/mpg123)
+- switch to libtool 2.2 and automake 1.10 for the build scripts
+ - though no update to new libtool 2 API, yet
+- some portability fixes
+- prevent user from creating non-working I/O setups
+ (replacing timeout reader, ICY with feeding)
+- JACK output accepts port names for -a, stereo gets mixed down
+ when only one port is chosen
+- added sndio output, contributed by Christian Weisgerber
+- Make --doublespeed paramter work, porting of which has been
+ forgotten in the 1.x series!
+ Along with that, a regression in decoding has been fixed
+ (concerning skipping of frames in general).
+
+1.6.4
+---
+- Fix for consistent NtoM resampled decoding and broken frames fillup.
+
+1.6.3
+---
+
+- Fix sf.net bug #2413608: Make sure a new format does not slip through after early close.
+- Include equalizer example file and a piece of wrapper code for MSVC++ in the distribution.
+- Do not claim to support unsigned 16 bit encoding (never been the case).
+- Fix default fifo detection, now it actally activates fifo support!
+
+1.6.2
+---
+
+- Fix default IPv6 detection in configure.ac (a typo has been introduced before).
+
+1.6.1
+---
+
+- Fix printing of largefile offsets in remote control interface.
+- Some portability fixes (reduced compiler warnings on Solaris, p.ex.).
+
+1.6.0
+---
+- small things inside that I forgot to mention
+- some new commands for remote control interface:
+ - SCAN
+ - SAMPLE
+ - EQFILE
+ - SHOWEQ
+- added --keep-open command line flag (for remote control)
+- fixed equalizer file parsing to really handle comment lines as example file suggests
+- more elaborate detection of UTF-8 locale, also --utf8 switch to force it
+- added --fuzzy to enable inexact seeking (see below)
+- added --index-size parameter for tuning accurate frame seek index
+- enabling largefile support via configure
+- libmpg123 11.0.11:
+ - added mpg123_geteq(), mpg123_tell_stream() and mpg123_getstate()
+ - API cleanup (take const char* for mpg123_open())
+ - calm down complainling (C++) compilers by completing the mpg123_channels enum
+ - fixed several possible crashes when user provides NULLs where it isn't appropriate
+ - workaround for frames that fail decoding (bad frame body, missing bit reservoir): fill up with silence
+ That also fixes seeking issues related to bad frames since now the fixed relation between frame and sample offsets is restored.
+ - Finally realized what that the resampling code for integer math (generic_nofpu) was just incomplete!
+ Now it works, using the defined integer multiplication.
+ - Detect UTF-8 in ICY conversion (instead of just assuming CP-1252, provided by Torsten Glaser).
+ - Prevent ugly noise when the bit reservoir is not fully there (p.ex. ignorantly cut mp3 files).
+ Concerned frames are silenced, but reservoir for following frames is kept.
+ Thanks to Patrick Dehne for the investigation and patch!
+ - New option for fuzzy seeking; trading sample accuracy for speed.
+ With that option, seeks positions are guessed using mean framesize or the Xing VBR TOC is used.
+ - Feeder streams work with seek index now.
+ - Seek frame index is runtime tunable.
+ - more caution with alignment issues for varying library users
+- new project files to build/use libmpg123 with MSVC++ 2005 and 2008, provided by Patrick Dehne
+- fixed a regression that made the pause/loop mode in terminal control slowly go backwards
+
+Big note for libmpg123 users: Make sure your application is compiled with the same largefile setting as libmpg123!
+If that does not match, you will get unresolved symbols (which is better than weird errors when using a nonmatching off_t in arguments;-).
+
+1.5.1
+---
+
+- fix wav/au/cdr writing to stdout (bug #2044423)
+- add more sensible --no-resync to replace --resync (bug #2044404)
+- libmpg123 7.0.7
+ - fix thread safety of SSE decoder (bug #2053181)
+ - fix robustness of length handling, added mpg123_set_filesize() (bug #2064322)
+
+1.5.0
+---
+
+- libmpg123 6.0.6
+ - Floating point decoding back again, (build time choice for now; --with-cpu=generic_float).
+ - More robust string handling; extended string API.
+ - fixed an (so far) unnoticed ID3 bug that may have obscured comment fields
+ - added mpg123_feed() as shortcut; using const input buffer now
+ - resync is enabled again for ICY streams (the trouble in the past was due to a reader bug, not the streams)
+ - decode ICY text data to UTF-8 (thanks, Thorsten)
+ - preserve file flags for timeout mode
+- More elaborate (helpful?) error message for output format problems.
+- Reworked HTTP code... and added IPv6 support!
+- Fix the --proxy parameter (has been accidentally ignored before).
+- Added --ignore-mime to work with web streams with funny playlist MIME types like "audio/megurl".
+- Know MIME audio/mpegurl.
+- --timeout is now also used for the connection itself (not just reading).
+- Now trying to resume ALSA device after suspend.
+- subtle build changes (your CFLAGS rule now)
+
+1.4.3
+---
+
+- Fix mpg123_tell() and mpg123_seek() return values with respect to the samples in decoding buffer (bug 1947373).
+- Fix (bogus) 3DNow detection on IDT C6 (bug 1947982).
+- Fix mono playback of win32 output (bug 1955157).
+- Fix ABI compatibility with compilers that don't align the stack like gcc does (fixing SSE crashes on win32).
+
+1.4.2
+---
+
+- Fix build problems (for Cygwin and Win32, perhaps others, too).
+
+1.4.1
+---
+
+- Fix a serious regression of terminal control mode (forgot to remove a term_restore(), bug 1936548).
+
+1.4.0
+---
+
+- Enable runtime check for available and working output modules.
+ Now mpg123 tries all built modules (or a list specified in mpg123 -o moda,modb,modc) in turn to find a working output.
+ This minimizes the situation of having to specify a device when default output doesn't work for some reason.
+ See bug 1910500.
+- libmpg123 2.2.2
+ - Fixing an endless loop for ICY streams that suddenly end without error (just EOF).
+ - Further fixes around EOF handling in (buffered/ICY) streams.
+- Enable user to interrupt mpg123 when stuck in a loop of failing to open a track (with --loop).
+- This time with correct RPM spec (hopefully... sorry, Michael!).
+
+1.3.1
+---
+- Enable snd_pcm_sw_params_set_xfer_align() for alsa-lib < 1.0.16 (bug 1908603).
+- libmpg123 2.1.2 (no-op change)
+
+1.3.0
+---
+
+This is a _major_ fix release for http streaming!
+Much more usable than earlier mpg123 1.x versions.
+
+- libmpg123 libtool-version 2.0.2
+ - Fix nasty bug in ICY reader that failed to account for partial reads from slower network.
+ - Now non-seekable streams can get peek-ahead for MPEG sync, too, triggered by the MPG123_SEEKBUFFER flag.
+ - Do not try to resync on streams with ICY metadata, that won't work.
+ Consequently, if there's unreliable network, use --loop -1 to make mpg123 reconnect to the server on errors.
+ - Applying a few layer 3 decoder fixes from old mhipp CVS (hail to the creator;-)
+ That includes the fix for bug 1895025.
+ - Fix ID3v2 parser with very invalid claimed ID3v2 frame sizes (could have triggered DOS before).
+ - Oh, and fixed a steady memory leak in ID3 handling. Should mention that;-)
+- Print ICY-NAME and ICY-URL again, as mpg123-0.6x did.
+- Added --smooth option for not flusing buffer between tracks but at program end only.
+- Included some contributed ports/bindings of libmpg123 under ports/ .
+
+1.2.1
+----
+
+- libmpg123 libtool-version 1.2.1 (coincidence!)
+ - Earlier check for free format headers to prevent them from screwing up resync (free format still not supported)
+ - bug 1889051: more flexible resync, not insisting on the format of the first frame (which could have been bogus)
+- Add an output write loop to handle SIGSTOP/CONT operation (bug 1890563).
+- Fixed a bug where playback status for some http streams was not shown.
+
+1.2.0
+----
+
+- libmpg123 libtool-version 1.0.1
+ - See NEWS.libmpg123 for details.
+ - This adds --resync-limit parameter to mpg123.
+- Some build system work, including:
+ - It is now possible to build a mpg123 rpm from the source tarball via rpmbuild -tb .
+ - configure: Accept --with-audio=foo,bar,bla (comma-separated list) in addition to --with-audio="foo bar bla".
+ - autogen.sh included in distribution.
+ - Include the forgotten i486 files in the distribution (now that's embarrasing...).
+ Also a little fix for wrong --list-cpu on i486 build.
+ - Fix build with MinGW32.
+- Fix -v stat output (time display) for MinGW32 build.
+
+1.1.0
+----
+
+- Added arts output.
+- More verbosity on lame/xing/info tags (on demand) instead of compile-time debugging switch.
+- XMMS2 plugin cleanup (submitted to XMMS2 for inclusion)
+- Improved ID3v2 robustness (let bad tags not affect playback of the important part).
+- Terminal control:
+ - Key for going to previous track ([d], because it's left of [f] usually... no config file yet for that).
+ - Key for printing current playlist, [l].
+ - Now possible to switch on verbosity also for mpg123 -q -C
+ - Key for (re)printing ID3 tag info ([t]).
+ - Key for (re)printing MPEG frame header info ([m]).
+- Soften the -q option: Now you are able to increase verbosity after -q again, like mpg123 -q -v (this fixes cplay's progress display).
+
+1.0.1
+----
+
+- Fix module loader to prevent crash in working paths with more than 49 characters length (bug 1859413).
+
+1.0.0
+----
+
+- Fixed Pulseaudio.
+- Cleaned up configure.
+- Pushed remote control version to v3.
+- Updated documentation.
+- Fix VPATH build for generated mpg123.h .
+
+1.0rc3
+----
+
+- Fixed JACK output.
+- Disable buffer when statically building CoreAudio in (MacOSX); with CoreAudio module the buffer works, with static output it doesn't.
+ This is the situation because of fork() discrimination by Apple Inc. .
+- Added verbosity to tell about ID3v2 text encodings (level 4).
+- minor cleanup
+
+1.0rc2
+----
+
+- Fixed some bugs, the ID3v2 interface of libmpg123 is safer now (there were possibly stale pointers in there).
+- Buffer mode got vital improvements (yeah, that is sort of feature creep during release process, but worth it)
+ The improved communication makes it possible to skip tracks in terminal control mode without the hack to immediately restart playback.
+ To be able to do seeking in terminal mode with buffer properly, buffered playback stops on seek keys. You restart playback after you are done with seeking.
+- Support either portaudio v18 or v19 API (v18 works for me, v19 works according to user report).
+- Audio output handling got safer and more clean, a byproduct of implementing the above. I stumbled over some things and had to fix it (yeah, feature creep in parts again, but still: Worth it!;-)
+ Any audio access is now restricted to either that standalone mpg123 process or the buffer process, the output being opened _after_ the fork().
+ There is hope that this fixes buffered output on MacOSX.
+- More feature creep, this time because of something like that was already included in the Debian mpg123:
+ --delay parameter to issue a pause before each track (does not make sense for file writing outputs, though).
+- Even more feature creep: remote control can now give ID3v2 data, also in more raw form via new "tag" command.
+ This sort of qualifies as bugfix, actually, since it's item 1786430 on the tracker;-)
+- Make flexible rate computations more safe (especially on 32bit platforms) by switching to the looping code instead of direct multiplication/division (which blows up with integers). A possible effect was premature track ending with a forced rate.
+- Flexible rate mode works _at_all_ again with fixed output support detection code (comparison of -1 with a size_t ended a loop all too early).
+- check for error in flushing output (this ends mpg123 for a broken pipe, for example)
+
+1.0rc1
+----
+
+- In one word: LOTS!
+- Many small things that happened while migrating to the new setup.
+- The decoder is now a library (libmpg123) which can be installed also for other programs to use.
+ This finally provides a heavily improved replacement for the aged mpglib. We have doxygen API doc, example codes.
+ You can still choose to compile the decoder statically into the mpg123 binary, though.
+- We have a plugin system for audio output! This should be relieving to package maintainers for binary distributions, drastically reducing the number of builds they have to provide.
+ Here, too, you can choose to build one audio output into the binary like before; you can have your old-school one-piece mpg123 or the hip I-am-legion shared-lib-and-plugin flexible mpg123;-)
+ One exception: For now, you have to compile without modules in MinGW32/MSYS.
+- ID3v2 support has been enhanced and, in the case of specific comments (those with a description), fixed.
+ The ID3 parsing is part of libmpg123, offering support for virtually all textual information in ID3v2.2, ID3v2.3 and ID3v2.4 tags (along with the usual 128 bytes of ID3v1 or ID3v1.1 in a block).
+ All tag texts are converted to UTF-8, allowing mpg123 to properly display special chars in an Unicode terminal without fuzz (for non-UTF locales, there is still the ASCII reduction).
+- Gapless decoding (of layer 3 streams) is now considered to be a standard feature and is enabled per default both at build- and runtime.
+- ...
+
+
+0.68
+----
+
+- Fix bug 1807964: distorted playback of MPEG 2.5 files
+
+0.67
+----
+
+Thanks go out to the ROM 106.5FM team (http://www.rom.lu/) for supporting this release with a donation on sf.net and a bottle of finest Gewuerztraminer wine from Luxembourg!
+
+- verified that it builds on SGI IRIX 6.5 for MIPS32 and MIPS64
+- enable flexible rate for stdout decoding, too
+- UTF8 filtering to ASCII finally works thanks to Mika Tiainen, see bug 1745847
+- corrected frame offset; -k was off by one
+ This means now that -k disagrees with mpg123 0.59r on many files because the old version does play a frame of silence when encountering LAME tag instead of dropping it for audio.
+- added --timeout <n>: Possibility to end playback on a stream that doesn't give data for <n> seconds.
+- added --loop <n>: for ... well... looping playback of a track; motivation was persistent internet streaming with unreliable connection (together with --timeout)
+- build fixes
+- use movap instruction in SSE assembly when compiler supports the needed alignment (idea from MPlayer)
+- show decoder options in their priority order in --list-cpu/--test-cpu
+- added Perl script to benchmark each of mpg123's CPU optimisations
+- portability enhancements and cleanups along with testing on SunOS 4.1.2 with gcc-2.7.0
+- workaround for ugly flexible rate for MMX/SSE/3DNowExt code:
+ --with-cpu=mmx also includes i586 code as fallback; similar with the others
+
+0.66
+----
+
+- support for a combined build of x86 optimizations and runtime selection among these
+ The (supposedly) "highest" CPU-supported optimization is chosen by default,
+ --cpu, --list-cpu and --test-cpu parameters are there for you to take control.
+- default build for x86 systems is combined "x86" with generic, i386, i586, MMX, 3DNow, SSE, 3DNowExt;
+ "x86_dither" also includes the dithering i586 decoder
+- no automatic -march compiler flags anymore;
+ the --with-cpu configure option selects specific assembler code but special CFLAGS are up to you
+- extended 3DNow and SSE optmizations from MPlayer's mp3lib
+- x86 assembler optimizations adapted for MacOS X/Intel
+- straight support for Windows using MinGW32, reactivated the native WinMM output
+ Core functionality including assembler optmimizations and WAV writing is there.
+- assembler optimizations also for cygwin
+- set remote-err automatically when putting audio to stdout
+- a bit more general portability in the new build system
+- fix file creation mode for -O
+- experimental decoding to 32bit float (raw and WAV file): ./configure --with-cpu=generic_float
+- generic control interface (-R) can create and read from a named pipe, parameter --fifo <path>
+- audio bugfix: playback of mono file on stereo-only hardware, better error reporting there
+- ALSA output handling underruns
+- MMX, SSE and 3DNowExt fallback to i586 and below or 3Dnow for forced sample rate
+- more terminal control: volume, RVA and verbosity controls
+
+0.65
+----
+
+ - now allow crc bit to vary over stream (fixes files with bad lame tag and some internet streams)
+ - do not try to parse id3v2.2 (as opposed to 2.3 and 2.4)
+ - correct id3v2.3 parsing for not expecting syncsafe integers for framesize, 2.4 introduced that
+ - omit gcc specific compiler flags when gcc is not there
+ - initital attempt to support sgi/irix with configure (please test)
+
+0.64
+----
+
+ - fixing a potential denial of service problem; broken connection to server could trigger an endless loop
+
+0.63
+----
+
+ - build fixes, only relevant to developers and people who had problems building
+
+0.62
+----
+
+ - JUMP command in generic frontend accepts offsets/positions in seconds (JUMP 4s vs. JUMP 4)
+ - initial support for ICY meta data in SHOUTcast streams
+ - a bit of fixing with rva code, added rva and general volume control to generic frontend
+ - accepting more MIME types for http streaming (application/pls and audio/x-mpeg)
+ - ID3v2 info output taking less space per default - more resembling the old ID3v1 view for short tags, full view with always one line per item via extra --long-tag switch
+ - generally less verbosity (i.e. noise on console) per default
+ - ID3v2 now having some kind of support for unicode; trying to print what's latin1-compatible and prevent messing up of terminal with unknown bytes
+ - several bug fixes and small improvements
+
+0.61
+-----
+
+- improved AltiVec code from Taihei Monma
+- an i486 optimization by Petr Salinger
+- improving interactive experience (terminal, frontends)
+ -> prevent/lessen bad effect after seeking while paused
+ -> show targeted position while seeking in terminal mode while paused
+ -> not messing up terminal on unexpected errors
+- decoder robustness - better file sync (weird junk at beginning, some vbr frames)
+- build system improvements:
+ -> fixing configure isses on some platforms
+ -> adding cygwin, kfreebsd
+- extended fix for CVE-2006-1655
+- generic code should compiling again...
+
+0.60 final (The Team!)
+-----
+
+- no functional changes
+
+0.60-beta6 (Thomas Orgis)
+-----
+
+- more use of ID3v2 tags, mpg123 now displays both (merged) info from ID3v2 and ID3v1; trying to support both ID3v2.3 and ID3v2.4, but ignoring encoding (UTF8 should still work if your terminal supports it, straight unicode should work except for parsing genre numbers and multiline strings)
+
+0.60-beta5 (Thomas Orgis)
+-----
+
+- more robust playlist support:
+ -> path/url length not limited to 1023 characters anymore
+ -> reading in of whole playlist at program start (old operation was not really safe with playlist from http)
+ -> fixed bug where reading of playlist form stdin caused segfault (introduced with the pls format support)
+- smaller cleanups, screen output cosmetics
+
+0.60-beta4 (Nicholas Humfrey & Thomas Orgis)
+-----
+
+- proper seeking, also for VBR streams
+- real two-way seeking in remote control mode at all
+- better estimates of remaining frames (on vbr files), exact if Xing header is found
+- Removed libao support (as it is GPL and we aren't - and we don't need it with native Alsa)
+- Added ALSA 0.9/1.0 support by Clemens Ladisch (old alsa is in audio_alsa05.c but will most likely vanish soon)
+- Added PortAudio audio-output support
+- Added SDL audio-output support
+- Fixed NAS audio-output support
+- re-enabled MPEG 2.5, code just seems to work
+- improved stream checking; being more willing in general (favor resync instead of bail out) but directly give up if free format stream is obvious
+- Whee! Initial Relative Volume Adjustment (buzz) support with reading of ReplayGain values in lame/info tag, the RVA2 frames in ID3v2.4, ID3v2 TXXX tags from foobar2000 (please test, someone!) and custom ID3v2.3 comments entitled RVA / RVA_ALBUM / RVA_AUDIOPHILE / RVA_RADIO / RVA_MIX
+- more persistence in trying to get http streams
+
+0.60-beta3 (Thomas Orgis)
+-----
+
+- fixed bug with segfault in http code on stream from live365.com - bug id 1529266
+- made http request HTTP/1.0 compilant again (tested only without proxy) - bug id 1529319
+- now using http content-type header to check for correct types mpg123 can understand
+ -> you can now always use -@ for a single http resource (direct stream or playlist) since a stream will be reopened based on MIME type,
+ though omitting it will save you one http request to the server in the direct stream case...
+- now simple parsing of shoutcast pls playlists (how did you people use shoutcast before?)
+- playlist mode enhanced with selective playback of one entry in list (--listentry parameter)
+
+
+0.60-beta2 (Thomas Orgis)
+-----
+
+- fixed bug in terminal control mode that caused the f key to quit program isntead of advance to next file (introduced by the first attempt to restore "normal" Ctrl+C behaviour in terminal control mode)
+
+0.60-beta1 (Thomas Orgis & Nicholas Humfrey)
+-----
+
+On the way to the first new offical realease since years!
+
+- new license: all LGPL except the old audio_alsa.c
+- merge with Nicholas' sourceforge package
+ - autooled configure/make system
+ - MacOSX, Jack, libao (alsa 0.9/1.x support through that)
+- experimental gapless playback for layer 3
+- merged in MMX and AltiVec optimizations
+- security bug fix of GLSA 200607-01 and catching possible crashes found by fuzzing
+- fixed many issues here and there
+- polished help messages, updated man page...
+
+UNDERGROUND 0.59r-thor7 (well, I'm going to release a _really_ official mpg123 in future) (Thomas Orgis <thomas@orgis.org>)
+-----
+
+- applied relevant stuff from Debian's 22:
+ - fix for CVE-2006-1655 (buffer overflow in III_i_stereo())
+ - strict aliasing hack in WRITE_SAMPLE of decode_i386.c
+ - fixed http streaming through proxy by actually using the request url...
+ - buffer resync on Ctrl-C (cleaning, reducing pauses with multiple files)
+ - removed unused esdserver variable from mpg123.h
+ - did NOT apply the Debian Makefile/manpage changes (going to rewrite that stuff anyway)
+- made the netbsd-i386 targets visible as netbsd-x86
+
+UNOFFICIAL 0.59r-thor6 (Thomas Orgis <thomas@orgis.org>)
+-----
+
+- split nedbsd targets for realtime priority selection code; since one needs -lpthread with it. standard netbsd target doesn't use realtime code -- I won't recommend running mpg123 as root anyway!
+
+UNOFFICIAL 0.59r-thor5 (Thomas Orgis <thomas@orgis.org>)
+-----
+
+- Separated the the use of char* equalfile as filename from the use as TRUE/FALSE flag by introducing int have_eq_settings. Compilers kept nagging about assigning and integer (TRUE) to char* ... and it feels more right this way.
+
+- Made control_generic aware of real being possibly different than float (seq command used to raise an FPE on OSF1 when this assumption was not the case.
+
+- Fixed the command line arg parsing to work properly on Alpha (32 and 64 bit mixup)
+
+UNOFFICIAL 0.59r-thor4 (Thomas Orgis <thomas@orgis.org>)
+-----
+
+- merged with 0.59r-19 from Debian project (Daniel Kobras <kobras@debian.org>), hopefully fixing all those security vulnerabilities
+ -> my dirty http_open and open_stream variants now replaced by more proper code
+ -> still my (rather workloaded) parsing/processing in control_generic, but now including the idea to watch out for \n, \r\n and \r (or \n\r, for that matter;-)
+
+UNOFFICIAL 0.59r-thor3 (Thomas Orgis <thomas@orgis.org>)
+-----
+
+- hacked additional variants of http_open and open_stream that return errors instead of exit()ing; makes more sense when used by a frontend
+- further cleanup (and return to using continue instead of nested if(){}else{if()else{}}) in command processing, better error messages there
+
+UNOFFICIAL 0.59r-ThOr(remote-err,eq,flushing) (Thomas Orgis <thomas@orgis.org>)
+-----
+-added audio_flush() calls to various places in control_generic.c to make sure there is nothing left in there that hurts later (not sure if this has effects)
+-(re?)enabled (?) code for stream info
+-corrected answer of JUMP (now gives actual reached position, +/- 1 frame since I'll still have to figure out what frame 0 really is...)
+
+UNOFFICIAL 0.59r-realeq-remoteerr: (Thomas Orgis <thomas@orgis.org>)
+-----
+- applied patch from Cool Feet Audio project (nutcase@dtfm.org, see README.cfa) to use real-time equalizer in remote mode
+- applied patch from AMF (amf.sourceforge.net) by Steve Grundell for remote communication not polluting the STDOUT where the audio data is read from (instead using STDERR) ... and faster seeking, maybe
+ The patches go not cleanly together, but rejects are trivial. Thus, a combined patch with both would makes sense.
+- modified (IMHO improved) the control_generic command reading: now always making sure that the full command is read up to a mandatory \n; also reworked the application of the commands afterwards
+- added SEQ command: simple eq with only 3 bands
+- added SILENCE command: I don't want the playback messages when I don't read them (since my frontend is reading the STDOUT it knows what is going on)
+- added SLJ command: SILENCE-LOAD-JUMP... a hack for my hacked mixplayd... maybe one should remove that again.
+
+0.59r: (MH)
+-----
+- applied audio_alib changes from Ralf Hildebrandt <R.Hildebrandt@TU-BS.DE>
+- some 'paetsches' from DK
+- minor optimizations in layer3 (dequantize/huffman)
+- BSDOS 4.0 with gcc added to Makefile (<sms@moe.2bsd.com>)
+- Solaris-ESD patch from Ryan Prosser <prosser@wam.umd.edu>
+- Added Frontend changes from Bertrand Petit <elrond@phoe.netdev.net>
+- more DK 'paetsches' (final dk7-clubhaus edition), includes extended term
+ control
+- SGI audio fix for non RAD machines from Erik Mouw <J.A.K.Mouw@its.tudelft.nl>
+- fixed ugly bug in layer3 dequant for bt==2 (may cause high frequency clitchs)
+- AMD-3DNow optimizations in decode and dct64
+- OS/2 reworked from Samuel Audet (see audio_os2.c for more)
+- added freebsd-esd make-entry from Daniel O'Connor (darius@guppy.dons.net.au)
+- added enhanced head_check from D. Skarda <0rfelyus@atrey.karlin.mff.cuni.cz>
+- applied 'xterm-title-patch' from "Wilson, Jeff D" <jeff.wilson@wilcom.com>
+- more esd changes from Robert Bihlmeyer <robbe@orcus.priv.at>
+- applied Hannu Napari's <Hannu.Napari@hut.fi> SGI audio patches
+- minor changes in httpget.c and mpg123.c
+- added native AIX support from Juergen.Schoew@unix-ag.uni-siegen.de
+- applied playlist patch from <psst@euskalnet.net>
+- more SGI audio patches from Gilles Zunino <Gilles.Zunino@hei.fupl.asso.fr>
+- applied esdserver patch from Matthew Parslow <roy@alpha.alphalink.com.au>
+- added some fixes for control_generic
+
+0.59q: (MH)
+------
+- ESD fixes
+- minor bugfixes (DK patch ;)
+- au and cdr 'support' (it's a hack)
+- Fixed 'VBR' Bug in get_scale_fac1(). Thanx to <ssonique@hotmail.com> for
+ this. (Wasn't really a VBR Bug. The new encoders just triggered it.)
+- Added equalizer patch from <dlux@dlux.sch.bme.hu>
+
+0.59p: (MH)
+------
+- Added mpglib (see mpglib directory)
+- 'make generic' is more generic now
+- Added HPUX/ALib support from Ducroquet Erwan (ducroque@ufr-info-p7.ibp.fr)
+- Added EsoundD support from <fill it in>
+- Added exp. relatime support (compile with -DSET_RT)
+- Added linux-sparc patch from <hmm lost email)
+- Added genrepatch from Shane Wegner <shane@CM.NU>
+- Added wav-File patch Samuel Audet <guardia@cam.org>
+- Added SGI-RAD support from "J. Dean Brederson" <jdb@cs.utah.edu>
+- Added sajberplay/FreeBSD patch from Chou Ye-chi <is84002@cis.nctu.edu.tw>
+- Added 486 optimizations from Fabrice Bellard <bellard@email.enst.fr>
+- Added combined output devices on SUN (ie Speaker and headphones together)
+- Added audio_alsa.c (under GPL license) for the ALSA sound system from
+ A. Hermansen <ahermans@vf.telia.no> and J. Kysela <perex@jcu.cz>
+- Added K6-3DNow patches from KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp>
+- Added MINT patches from Petr Stehlik <stehlik@cas3.zlin.vutbr.cz>
+- Fixed minor bug for linux-i486 and mono
+
+0.59o: (MH)
+------
+- fixed Bug with stereo streams on mono audio hardware for OSS
+- fixed a bug with mono output and 1:1 (no) rate conversion
+- again changes in the probe code
+- fix in the buffer code for the case, that audio parameters are changing
+- more changes to the flexibel rate converter, should now work when
+ writing to STDOUT.
+- Added Andy's (<andy@snoogie.demon.co.uk>) float2int speed up proposal
+ (check WRITE_SAMPLE in decode_i386.c) .. Maybe someone wanna take the
+ idea and put it into the decode_i586.s part?
+- Added TK3Play support from Brian Foutz <foutz@anise.ee.cornell.edu>
+ (compiles but untested)
+- RIFF Header fix (according to Thomas Niederreiter's
+ <tn@tarantel.rz.fh-muenchen.de> patch)
+- m68k patch from Stefan Gybas <cab@studbox.uni-stuttgart.de> applied
+- minor additional PPC changes applied
+- resync and EOF hang fixed
+- resync and bitrate correction relaxed
+- Slightly change verbose output; added countdown
+
+
+0.59n: (MH)
+------
+- fixed shuffle bug
+- added memory mapped IO for file reading
+- added MPEG 2.5 12kHz and 8kHz table entry
+- started flexibel rate conversion ..
+- new '-Z' / '--random' option
+- minor clean-up
+- splitted audio file in audio system dependend smaller parts
+- started system stream support (external program: system.c)
+- unsigned 8 bit (instead of ulaw) is now default for 8bit operation
+- Linux PPC patch from Grant Erickson <eric0139@tc.umn.edu> applied
+- added BSDi patch from Peter Berger <peterb@hoopoe.psc.edu>, who reported
+ a failure when catching signals
+- minor bug fix in the control interface for sajber jukebox
+- fixed the ugly 'Ctrl-Z in buffer mode' bug .. YES ;)
+- added buffer preload when underrun occurs (preload = 1/8 buffer size)
+- minor SUN audio clean up
+
+0.59m: (MH)
+------
+- Bug with RIFF header streams fixed.
+- HTTP auth option patch from Henrik P Johnson <king@one.se>
+- NetBSD patch(s) added from <mycroft@NetBSD.ORG> and <augustss@cs.chalmers.se>
+- Added advanced shuffle support from Steven Tiger Lang <tiger@tyger.org>
+- fixed bug with too large big_value field
+- fixed (hopefully) the bug with the '-a' option
+- work-around for some pedantic compilers in fr->synth init
+- some changes for the 'generic' version
+- applied NAS bug-fix patch
+- new (good) MPEG 2.5 tables (from Niklas Beisert)
+- added WIN32 support from Tony Million
+- added some bug fixes from Niklas Beisert
+- fixed another ugly bug in layer3 dequantize (wrote over the border
+ of the 'xr' field)
+- a minor HPUX clean up
+- added BSD patch from Kevin Brintnall <kbrint@visi.com>
+- added Makefile.win32
+- added NAS big endian fix
+
+
+0.59l: (MH)
+------
+- simple equalizer support (to be continued)
+- added NAS patch from Martin Denn <mdenn@unix-ag.uni-kl.de>
+- real mono support
+- added pentium optimized decode_i586 from Stefan Bieschewski <stb@acm.org>
+- fixed a bug in MS dequantize function
+
+
+0.59k: (OF)
+------
+- fixed "Accept" header in httpget.c
+- fixed buffer overflow (causing core dumps) in httpget.c
+- fixed display of song length
+- fixed -b (buffer) problem on SGI / IRIX -- it definitely works now
+- fixed problem when files with different sample rates where played,
+ it now works with -b (buffer), too
+- fixed order of local variables in decode.c to work around a
+ compiler bug in ultrix
+- fixed Makefile for ultrix
+- reverted to old getbits.s (the new one could cause coredumps)
+- more compact MPEG header display in non-verbose mode
+- small fixes in buffer code and elsewhere
+
+
+0.59j: (MH)
+------
+- added sajber jukebox control interface (it's currently a big hack)
+ (see 'JUKEBOX' file for more)
+- added simple rewind facility .. (only used by sajber interface at the moment)
+
+
+0.59i: (MH)
+-----------
+- added front-end (remote) patch from "Brian J. Swetland" <swetland@uiuc.edu>
+- added OS2 patches from Niclas Lindstrom <nil@wineasy.se>
+- fixed 'rewind bug'
+- added patches from Leo Broukhis <leo@zycad.com>
+- added shuffle patch from Tillmann Steinbrecher <tst@gmx.de>
+- added i386-getbits from M.Stekelenburg <m.stekelenburg@student.utwente.nl>
+- added fallback to 8bit if no 16bit samples support (currently linux only)
+- added (slightly changed) outburst patch
+ from Antti Andreimann <anttix@cyberix.edu.ee>
+- added 'http accept' patch from Hur TaeSung <saturn@arari.snu.ac.kr>
+- fixed buffer mode bug
+
+
+0.59h: (MH)
+------
+- added '--8bit' option to force 'ULAW 8 BIT' playing
+- pcm buffer type changed to 'unsigned char *'
+- plays 2:1 and 4:1 with the real frequency (ie 11025/22050 instead
+ of 44100)
+- program (re)sets (changed) frequency for every frame
+- buffer mode is broken
+
+
+0.59g: (MH)
+------
+- added support for MPEG 2.5 (it's a HACK!) .. mpg123 understands and plays
+ 2.5 but it does it wrong. (you will hear this!)
+- Fixed wrong values in BandInfo struct for 32kHz mode
+- Some performance improvements and minor changes and bug-fixes.
+- Tried the new imdct from the maplay1.2+ (version 1.81) package. (but
+ it was slightly slower on my system, currently disabled)
+
+
+0.59f: (OF)
+------
+- HP-UX audio fix (provided by Damien Clermonte)
+- Buffering (-b option) hopefully fixed. Please test!
+
+
+0.59e:
+------
+- added Audio MPEG 2.0 support (but near untested) (MH)
+
+
+0.59d: (MH)
+------
+- minor modifications to dct64_i386.c
+- removed duplicated dependency 'dct64.o' in Makefile
+
+
+0.59c: (OF)
+------
+Another complete rework of the buffer system (-b option)
+ (normally uses mmap(), but it can also use SYSV-ShMem because
+ mmap() is broken on linux).
+
+0.59: (MH)
+-----
+extracted dct64() from decode*.c files.
+some changes to dct64() and decode*.c to allow auto-increment/decrement
+removed bit-counter in getbit-functions. Layer3 part2 now counts it itself.
+
+0.58: (OF)
+-----
+Bugfix: not closing the audio device caused a few samples to be lost.
+Bugfix: audio_set_rate() was not called (!?!).
+Additional command line options "--doublespeed" and "--halfspeed"
+ (couldn't find better names). See the manpage.
+Complete redesign of command line options. See the manpage.
+Changed the buffer algorithm (-b). I'm not sure whether it's better
+ or worse now.
+Supports multiple files on the command line. Pressing Ctrl-C will
+ skip to the next MPEG file, pressing it twice within one second
+ will abort mpg123 completely. See the "INTERRUPT" section in the
+ manpage.
+Support for http URLs. See also the -p option in the manpage.
+Support for list files. See also the -@ option in the manpage.
+
+0.57: (MH)
+-----
+Put the downsampling code together with the full
+ quality decode into one binary. (new options -2to1,-4to1)
+Optimizations in the dct12.
+Removed the 'int' version.
+
+0.56: (OF)
+-----
+Additional command line option "-rs" to try to resync on
+ "broken" MPEG streams (now called "--resync" or "-y").
+Additional command line option "-b" to use audio output buffering.
+ See the manpage for additional information.
+Changed a few variable names and some other minor fixes, so the
+ source compiles more cleanly (without warnings) on most
+ platforms (for example, the FreeBSD port compiles without
+ warnings using "-Wall -ansi -pedantic").
+Makefile changes: moved "solaris" to "solaris-gcc", new target
+ "solaris" (using Sun's SparcWorks cc, faster tha gcc!), new
+ targets "aix" and "generic".
+
+0.55:
+-----
+removed some obsolete code from layer3.c (MH)
+changed scalefac stoing in layer3 (MH)
+decode_4to1.c added again. Renamed decode_lp.c to decode_2to1.c (MH)
+(both not optimized .. still expterimental)
+Minor cleanups and optimizations in layer3. (MH)
+Removed some (probable) minor bugs. (MH)
+Changed 2**(...) scaling (and omitted a few muls) (MH)
+Changed Makefile (OF)
+Changed dequantize to reorder with a mapping table
+ (you can disable this by undefining MAP in layer3.c) (MH)
+removed the 'dummy' scale step for mixed mode (MH)
+Changed copy policy (MH)
+Modified dequant-reorder-mapping (MH)
+
+0.54: (MH)
+-----
+Minor changes in the documents ..
+huffman.c: x->len,y->len removed .. always '15' for the important cases
+audio.c: some additions to the SOLARIS audio code
+
+0.53b: (OF)
+------
+Makefile:
+
+ Renamed SPARC10 to SUNOS (which is more appropriate).
+ Tested with SunOS 4.1.4 on a SPARCstation SLC, 20 MHz
+ (322% CPU, so no realtime decoding).
+ Added SOLARIS. Tested with Solaris 2.5.1 on an Ultra 1,
+ 167 MHz (14% CPU), a SPARCstation 5, 110 MHz (47% CPU),
+ and a SPARCstation 10, 33 MHz (68% CPU).
+ Added FreeBSD. Tested with 2.1.7 on a Pentium-90 (38% CPU)
+ and 2.2 on a Pentium-166 (20% CPU).
+ Added Digital Unix. Tested with DU 3.2 on a DEC 3000/500
+ (Alpha AXP 150 MHz, 33% CPU). Does not support DEC's
+ audio interface ("AudioFile"), decodes to stdout only.
+ Improved "clean" target to remove core files and editor
+ backup files.
+ Added "install" target.
+ Added "dist" target to create a .tar.gz file of the source
+ directory.
+
+ In the distributed Makefile, all system sections are
+ commented out. When you type "make" without uncommenting
+ one of the sections, an appropriate error message will
+ be displayed.
+
+audio.c
+
+ Fixed problem when opening /dev/audio on Solaris:
+ I had to remove O_NDELAY, because writing to /dev/audio
+ didn't block until the requested number of samples
+ could be written, but instead it wrote only as much
+ samples as it was able too. Sounded funny. Removing
+ O_NDELAY fixed the problem. I don't think that it
+ hurts SunOS either, so I didn't make another #ifdef.
+
+common.c
+
+ Fixed bug by adding function finish_output():
+ The decoder writes the audio samples into a buffer, and
+ each time the buffer is full, it is written to the
+ audio device (or to stdout). But when the decoding is
+ done, there are some samples left in the buffer which
+ aren't written yet -- they were just discarded.
+ This additional function fixes the problem by writing
+ the remaining samples from the buffer. It is called
+ immediately after the main frame loop in mpg123.c.
+
+decode*.c
+
+ Fixed compiler warning on symbol "div":
+ Some compilers issue warnings because the symbol div is
+ already used for something else (see "man div"), so I
+ changed it to "divv".
+
+layer*.c
+
+ Functions do_layer*:
+ Moved the declaration for audio_play_samples into
+ mpg123.h. Makes the code cleaner.
+
+ I moved the variables pcm_samples and pcm_point to
+ common.c, so they are shared between all modules. This
+ was necessary because the finish_output() function
+ (see common.c above) needs to access them.
+
+ Renamed loop variables "i" and "j" to "k" in order to
+ fix compiler warnings for duplicate/hidden symbols
+ (similar to "div" in decode*.c, see above).
+
+ Changed the preprocessor symbol AUDIOBUFSIZE into a
+ global variable "audiobufsize". This makes it possible
+ to change it by a command line option.
+
+layer1.c
+
+ Fixed error in function I_step_one, second parameter:
+ unsigned int scale_index[2][] --> ...[2][SBLIMIT]
+ This caused an error with the DU compiler (which is ok,
+ because [2][] is incorrect according to ANSI). I don't
+ know whether [2][SBLIMIT] actually works correctly (I
+ have no layer-1 streams to test it), but at least it
+ compiles without error, and it appears to be correct
+ (looking at the rest of the source). Heaven knows why
+ gcc doesn't issue an error, and what it actually makes
+ from it.
+
+mpg123.1
+
+ A simple manual page. Type "nroff -man mpg123.1 | more"
+ to view it, or install it in /usr/local/man/man1 (this is
+ done automatically by "make install").
+
+mpg123.c
+
+ New boolean variable "quiet":
+ If this variable is set to TRUE (command line option
+ -q), no messages are printed.
+
+***
+
diff --git a/NEWS.libmpg123 b/NEWS.libmpg123
new file mode 100644
index 0000000..9e77932
--- /dev/null
+++ b/NEWS.libmpg123
@@ -0,0 +1,65 @@
+Changes in libmpg123 libtool interface versions...
+
+18.0.18
+ - new parameter: MPG123_PREFRAMES is now tunable (the number of frames to decode and skip before a seek point), also default value increased
+
+17.0.17
+ - introduction optimized stereo synths
+
+16.0.16
+ - introducing floating point x86-64 SSE synth
+
+15.0.15
+ - first addition of x86-64 SSE optimizations
+
+14.0.14
+ - the first libmpg123 with actually working MPG123_UPSPEED
+ - also important regression fix concerning skipping of frames
+
+13.0.13
+ - The whole set of output formats is generally available (8, 16 and 32 bit integer, signed/unsigned, float)
+ - Many features can be absent from libary as build decision (minimize binary size).
+
+12.0.12
+ - added mpg123_current_decoder
+ - fixed value of MPG123_ENC_FLOAT
+ - float output now is a real runtime option
+
+11.0.11
+ - added mpg123_getstate
+ - run-time tunable frame index
+ - officially configured with largefile support where available
+
+10.0.10
+ - new flag MPG123_FUZZY (along with the fuzzy seek functionality)
+
+9.0.9
+ - added mpg123_tell_stream
+
+8.0.8
+ - added mpg123_get_eq
+
+7.0.7
+ - added mpg123_set_filesize
+
+6.0.6
+ - added mpg123_icy2utf8
+
+5.0.5
+ - added mpg123_feed
+ - input buffers now const
+
+4.0.4
+ - extended mpg123_string api (mpg123_add_substring, mpg123_grow_string)
+
+3.0.3
+ - Initial floating point support as compile-time option.
+
+2.0.2
+ - New flag MPG123_SEEKBUFFER.
+
+1.0.1
+ - Added MPG123_RESYNC_LIMIT parameter.
+ - Added MPG123_OUT_OF_SYNC and MPG123_RESYNC_FAIL error codes.
+ - Fix for uninitialized framesize value in handle.
+
diff --git a/README b/README
new file mode 100644
index 0000000..cb96361
--- /dev/null
+++ b/README
@@ -0,0 +1,203 @@
+* * * * * * * * * * * * * * * * * * * * * * * * * * * *
+* mpg123 - MPEG 1.0/2.0/2.5 audio player *
+* README for version 1.x.y, dated at 14.06.2009 *
+* *
+* ...still the fastest MPEG audio player for UNIX ;) *
+* * * * * * * * * * * * * * * * * * * * * * * * * * * *
+(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.)
+
+
+0. Stuff
+
+For building/installation info see INSTALL.
+
+The mpg123 project was started by Michel Hipp and is now being maintained by Thomas Orgis and Nicholas J. Humfrey, who intitated the Sourceforge project.
+The source code contains contributions from quite a few people - see AUTHORS for more info.
+It is Open Source software licensed mostly under the LGPL with some parts restricted to GPL. See COPYING for details.
+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.
+
+Project's official website URL is
+
+ http://mpg123.org
+(or http://mpg123.orgis.org as fallback address if there is a problem with the DNS forwarding)
+
+for the traditional home page and
+
+ http://sourceforge.net/projects/mpg123
+
+for sourceforge.net based services like download mirrors, mailing lists and bug/feature trackers.
+Please use the sourceforge download mirrors when possible to minimize load on the mpg123.org server.
+
+
+1. Introduction
+
+This is a console based decoder/player for mono/stereo mpeg audio files, probably more familiar as MP3 or MP2 files.
+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.
+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).
+Most tested are Linux on x86 and Alpha/AXP and MacOSX on ppc as the environments the current developers work in.
+We are always thankful for user reports on success (and failure) on any platform!
+
+
+2. Contact
+
+short:
+
+ mpg123-devel@lists.sourceforge.net
+ mpg123-users@lists.sourceforge.net
+or
+ maintainer@mpg123.org
+
+long: see doc/CONTACT
+
+
+3. Interface/Usage
+
+Please consult the manpage mpg123(1). Some starter info follows.
+
+3.1 Simple Console Usage
+
+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
+
+ mpg123 --help
+
+or, for the full story,
+
+ mpg123 --longhelp
+
+on command line syntax/options. I encourage you to check out the --gapless and --rva-album/--rva-mix options:-)
+
+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.
+
+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).
+
+3.2 Advanced Console Usage
+
+You can specify the option -C to enable a terminal control interface enabling to influence playback on current title/playlist by pressing some key:
+
+ -= terminal control keys =-
+[s] or [ ] interrupt/restart playback (i.e. 'pause')
+[f] next track
+[d] previous track
+[b] back to beginning of track
+[p] pause while looping current sound chunk
+[.] forward
+[,] rewind
+[:] fast forward
+[;] fast rewind
+[>] fine forward
+[<] fine rewind
+[+] volume up
+[-] volume down
+[r] RVA switch
+[v] verbose switch
+[l] list current playlist, indicating current track there
+[t] display tag info (again)
+[m] print MPEG header info (again)
+[h] this help
+[q] quit
+
+You can change these bindings to key to your liking by modifying term.h .
+
+Note: This interface needs not to be available on _every_ platform/build.
+
+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.
+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.
+
+3.3 Control Interface for Frontends
+
+There used to be several interfaces for frontends left over from that past, but only one of them remains for the present and future:
+
+ The Generic Control Interface
+
+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.
+
+See doc/README.remote for usage.
+
+
+4. Speed
+
+mpg123 is fast. Any faster software player is probably based on some hacked mpg123;-)
+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.
+
+mpg123 includes the AltiVec optimization since version 0.61 and the SSE and 3DNowExt optimizations since 0.66 .
+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.
+
+Now mpg123 catched up with MPlayer's mp3lib concerning decoding speed on my Pentium M (which supports SSE):
+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 .
+
+Also, beginning with mpg123 1.8.0, there are fresh x86-64 SSE optimizations (provided by Taihei Monma) wich make mpg123 the fastest MPEG audio decoder in my knowledge also on current 64bit x86 systems.
+
+5. Accuracy
+
+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).
+Accuracy of 16bit output depends on specific optimization in use and compile-time choice about the rounding mode (which is performance relevant).
+
+The ISO test suite is incorporated in the mpg123 subversion repository under svn://orgis.org/mpg123/test, nighlty tests of a build (with high-quality 16bit rounding) are published on the mpg123 website.
+
+Dithered 16bit output is available as an option (the --cpu choices ending with _dither). See
+
+ http://dither123.dyndns.org
+
+on the whereabouts.
+
+7. History
+
+A looooong time ago (mid-90s), Michael Hipp wrote some initial mpg123 and made it _the_ Unix console mp3 player in the following years.
+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.
+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.
+In any case, that is a looooong time ago for a media player - especially for one that is still alive!
+
+This is the historic description:
+
+ This isn't a new player. It's a fully rewritten version originally based
+ on the mpegaudio (FHG-version) package. The DCT algorithm in the
+ synthesis filter is a rewritten version of the DCT first seen in the maplay
+ package, which was written by Tobias Bading (bading@cs.tu-berlin.de). The
+ rewrite was neccassary, because the GPL may not allow this copyright mix.
+ The mpegaudio package was written by various people from the MPEG/audio
+ software simulation group. The maplay is under GPL .. You can find the
+ original source code and the mpegaudio package on: ftp.tnt.uni-hannover.de.
+
+ Especially layer3.c common.c and mpg123.h is based on the dist10 package.
+ The code is fullly rewritten but I'm using sometimes the
+ same variable names or similar function names as in the
+ original package.
+
+ In the current layer3.c I'm using a DCT36 first seen in Jeff Tsay's
+ (ctsay@pasteur.eecs.berkeley.edu) maplay 1.2+ package. His code is
+ under GPL .. I also tried the enhancement from Mikko Tommila. His
+ code is also in layer3.c (but it's disabled at the moment, because
+ it was slightly slower than the unrolled 9 point DCT (at least on
+ _my_ system)). Theoretically it should be faster. You may try it on
+ your system.
+
+Well, that's how it started...
+Official development ceased due to the typical lack-of-time syndrome around 2002 and the free-floating patches began to seize the day.
+
+But before that, Michael wrote or rewrote the essential code; others contributed their bits.
+The main message is:
+
+Code is copyrighted by Michael Hipp, who made it free software under the terms of the LGPL 2.1.
+
+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.
+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.
+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.
+
+There has been quite some confusion about the licensing and "freeness" of mpg123 in the past.
+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.
+
+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.
+
+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.
+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.
+In the beginning of 2006, Thomas finally decided that he could work "officially" on mpg123 and contacted Michael Hipp for taking over maintainership.
+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.
+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.
+
+And there we are now...
+
+8. End
+
+Have fun!
+____________
+Thomas Orgis
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..706e3b4
--- /dev/null
+++ b/TODO
@@ -0,0 +1,15 @@
+Things that need to be done...
+
+1. mpg123 could pick up new sample rates suggested by the output modules (like a jack server fixed to 96kHz) and adapt to that.
+
+Though the practical rates for MPEG audio are up to 48kHz ... but one could easily upsample.
+Currently, we detect standard rates and resample when needed... but not new ones.
+
+4. Prevent ID3v2 tags from being parsed multiple times after seek.
+
+I need to carry a list of ID3v2 frame addresses that already have been parsed into the data structures.
+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.
+That being said, in the "normal" case, there is no leak.
+
+5. What's about SINGLE_MIX?
+Check what is _really_ happening there, make some test file...
diff --git a/aclocal.m4 b/aclocal.m4
new file mode 100644
index 0000000..ce25ca1
--- /dev/null
+++ b/aclocal.m4
@@ -0,0 +1,9013 @@
+# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
+[m4_warning([this file was generated for autoconf 2.63.
+You have another version of autoconf. It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically `autoreconf'.])])
+
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+m4_define([_LT_COPYING], [dnl
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+])
+
+# serial 56 LT_INIT
+
+
+# LT_PREREQ(VERSION)
+# ------------------
+# Complain and exit if this libtool version is less that VERSION.
+m4_defun([LT_PREREQ],
+[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
+ [m4_default([$3],
+ [m4_fatal([Libtool version $1 or higher is required],
+ 63)])],
+ [$2])])
+
+
+# _LT_CHECK_BUILDDIR
+# ------------------
+# Complain if the absolute build directory name contains unusual characters
+m4_defun([_LT_CHECK_BUILDDIR],
+[case `pwd` in
+ *\ * | *\ *)
+ AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
+esac
+])
+
+
+# LT_INIT([OPTIONS])
+# ------------------
+AC_DEFUN([LT_INIT],
+[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
+AC_BEFORE([$0], [LT_LANG])dnl
+AC_BEFORE([$0], [LT_OUTPUT])dnl
+AC_BEFORE([$0], [LTDL_INIT])dnl
+m4_require([_LT_CHECK_BUILDDIR])dnl
+
+dnl Autoconf doesn't catch unexpanded LT_ macros by default:
+m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
+m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
+dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
+dnl unless we require an AC_DEFUNed macro:
+AC_REQUIRE([LTOPTIONS_VERSION])dnl
+AC_REQUIRE([LTSUGAR_VERSION])dnl
+AC_REQUIRE([LTVERSION_VERSION])dnl
+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
+m4_require([_LT_PROG_LTMAIN])dnl
+
+dnl Parse OPTIONS
+_LT_SET_OPTIONS([$0], [$1])
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ltmain"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+_LT_SETUP
+
+# Only expand once:
+m4_define([LT_INIT])
+])# LT_INIT
+
+# Old names:
+AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
+AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
+dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
+
+
+# _LT_CC_BASENAME(CC)
+# -------------------
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
+m4_defun([_LT_CC_BASENAME],
+[for cc_temp in $1""; do
+ case $cc_temp in
+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
+])
+
+
+# _LT_FILEUTILS_DEFAULTS
+# ----------------------
+# It is okay to use these file commands and assume they have been set
+# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
+m4_defun([_LT_FILEUTILS_DEFAULTS],
+[: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+])# _LT_FILEUTILS_DEFAULTS
+
+
+# _LT_SETUP
+# ---------
+m4_defun([_LT_SETUP],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+_LT_DECL([], [host_alias], [0], [The host system])dnl
+_LT_DECL([], [host], [0])dnl
+_LT_DECL([], [host_os], [0])dnl
+dnl
+_LT_DECL([], [build_alias], [0], [The build system])dnl
+_LT_DECL([], [build], [0])dnl
+_LT_DECL([], [build_os], [0])dnl
+dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+dnl
+AC_REQUIRE([AC_PROG_LN_S])dnl
+test -z "$LN_S" && LN_S="ln -s"
+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
+dnl
+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
+dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
+m4_require([_LT_CMD_RELOAD])dnl
+m4_require([_LT_CHECK_MAGIC_METHOD])dnl
+m4_require([_LT_CMD_OLD_ARCHIVE])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+
+_LT_CONFIG_LIBTOOL_INIT([
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+])
+if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+_LT_CHECK_OBJDIR
+
+m4_require([_LT_TAG_COMPILER])dnl
+_LT_PROG_ECHO_BACKSLASH
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([["`\\]]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+_LT_CC_BASENAME([$compiler])
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ _LT_PATH_MAGIC
+ fi
+ ;;
+esac
+
+# Use C for the default configuration in the libtool script
+LT_SUPPORTED_TAG([CC])
+_LT_LANG_C_CONFIG
+_LT_LANG_DEFAULT_CONFIG
+_LT_CONFIG_COMMANDS
+])# _LT_SETUP
+
+
+# _LT_PROG_LTMAIN
+# ---------------
+# Note that this code is called both from `configure', and `config.status'
+# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
+# `config.status' has no value for ac_aux_dir unless we are using Automake,
+# so we pass a copy along to make sure it has a sensible value anyway.
+m4_defun([_LT_PROG_LTMAIN],
+[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
+_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
+ltmain="$ac_aux_dir/ltmain.sh"
+])# _LT_PROG_LTMAIN
+
+
+
+# So that we can recreate a full libtool script including additional
+# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
+# in macros and then make a single call at the end using the `libtool'
+# label.
+
+
+# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
+# ----------------------------------------
+# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL_INIT],
+[m4_ifval([$1],
+ [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
+ [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_INIT])
+
+
+# _LT_CONFIG_LIBTOOL([COMMANDS])
+# ------------------------------
+# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL],
+[m4_ifval([$1],
+ [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
+ [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
+
+
+# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
+# -----------------------------------------------------
+m4_defun([_LT_CONFIG_SAVE_COMMANDS],
+[_LT_CONFIG_LIBTOOL([$1])
+_LT_CONFIG_LIBTOOL_INIT([$2])
+])
+
+
+# _LT_FORMAT_COMMENT([COMMENT])
+# -----------------------------
+# Add leading comment marks to the start of each line, and a trailing
+# full-stop to the whole comment if one is not present already.
+m4_define([_LT_FORMAT_COMMENT],
+[m4_ifval([$1], [
+m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
+ [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
+)])
+
+
+
+
+
+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
+# -------------------------------------------------------------------
+# CONFIGNAME is the name given to the value in the libtool script.
+# VARNAME is the (base) name used in the configure script.
+# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
+# VARNAME. Any other value will be used directly.
+m4_define([_LT_DECL],
+[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
+ [m4_ifval([$1], [$1], [$2])])
+ lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
+ m4_ifval([$4],
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
+ lt_dict_add_subkey([lt_decl_dict], [$2],
+ [tagged?], [m4_ifval([$5], [yes], [no])])])
+])
+
+
+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
+# --------------------------------------------------------
+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
+
+
+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_tag_varnames],
+[_lt_decl_filter([tagged?], [yes], $@)])
+
+
+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
+# ---------------------------------------------------------
+m4_define([_lt_decl_filter],
+[m4_case([$#],
+ [0], [m4_fatal([$0: too few arguments: $#])],
+ [1], [m4_fatal([$0: too few arguments: $#: $1])],
+ [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
+ [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
+ [lt_dict_filter([lt_decl_dict], $@)])[]dnl
+])
+
+
+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
+# --------------------------------------------------
+m4_define([lt_decl_quote_varnames],
+[_lt_decl_filter([value], [1], $@)])
+
+
+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_dquote_varnames],
+[_lt_decl_filter([value], [2], $@)])
+
+
+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_varnames_tagged],
+[m4_assert([$# <= 2])dnl
+_$0(m4_quote(m4_default([$1], [[, ]])),
+ m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
+ m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
+m4_define([_lt_decl_varnames_tagged],
+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
+
+
+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_all_varnames],
+[_$0(m4_quote(m4_default([$1], [[, ]])),
+ m4_if([$2], [],
+ m4_quote(lt_decl_varnames),
+ m4_quote(m4_shift($@))))[]dnl
+])
+m4_define([_lt_decl_all_varnames],
+[lt_join($@, lt_decl_varnames_tagged([$1],
+ lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
+])
+
+
+# _LT_CONFIG_STATUS_DECLARE([VARNAME])
+# ------------------------------------
+# Quote a variable value, and forward it to `config.status' so that its
+# declaration there will have the same value as in `configure'. VARNAME
+# must have a single quote delimited value for this to work.
+m4_define([_LT_CONFIG_STATUS_DECLARE],
+[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
+
+
+# _LT_CONFIG_STATUS_DECLARATIONS
+# ------------------------------
+# We delimit libtool config variables with single quotes, so when
+# we write them to config.status, we have to be sure to quote all
+# embedded single quotes properly. In configure, this macro expands
+# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
+#
+# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
+m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
+ [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAGS
+# ----------------
+# Output comment and list of tags supported by the script
+m4_defun([_LT_LIBTOOL_TAGS],
+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
+available_tags="_LT_TAGS"dnl
+])
+
+
+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
+# -----------------------------------
+# Extract the dictionary values for VARNAME (optionally with TAG) and
+# expand to a commented shell variable setting:
+#
+# # Some comment about what VAR is for.
+# visible_name=$lt_internal_name
+m4_define([_LT_LIBTOOL_DECLARE],
+[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
+ [description])))[]dnl
+m4_pushdef([_libtool_name],
+ m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
+m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
+ [0], [_libtool_name=[$]$1],
+ [1], [_libtool_name=$lt_[]$1],
+ [2], [_libtool_name=$lt_[]$1],
+ [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
+m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
+])
+
+
+# _LT_LIBTOOL_CONFIG_VARS
+# -----------------------
+# Produce commented declarations of non-tagged libtool config variables
+# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
+# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
+# section) are produced by _LT_LIBTOOL_TAG_VARS.
+m4_defun([_LT_LIBTOOL_CONFIG_VARS],
+[m4_foreach([_lt_var],
+ m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAG_VARS(TAG)
+# -------------------------
+m4_define([_LT_LIBTOOL_TAG_VARS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
+
+
+# _LT_TAGVAR(VARNAME, [TAGNAME])
+# ------------------------------
+m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
+
+
+# _LT_CONFIG_COMMANDS
+# -------------------
+# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
+# variables for single and double quote escaping we saved from calls
+# to _LT_DECL, we can put quote escaped variables declarations
+# into `config.status', and then the shell code to quote escape them in
+# for loops in `config.status'. Finally, any additional code accumulated
+# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
+m4_defun([_LT_CONFIG_COMMANDS],
+[AC_PROVIDE_IFELSE([LT_OUTPUT],
+ dnl If the libtool generation code has been placed in $CONFIG_LT,
+ dnl instead of duplicating it all over again into config.status,
+ dnl then we will have config.status run $CONFIG_LT later, so it
+ dnl needs to know what name is stored there:
+ [AC_CONFIG_COMMANDS([libtool],
+ [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
+ dnl If the libtool generation code is destined for config.status,
+ dnl expand the accumulated commands and init code now:
+ [AC_CONFIG_COMMANDS([libtool],
+ [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
+])#_LT_CONFIG_COMMANDS
+
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
+[
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+_LT_CONFIG_STATUS_DECLARATIONS
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# Quote evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_quote_varnames); do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[[\\\\\\\`\\"\\\$]]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Double-quote double-evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_dquote_varnames); do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[[\\\\\\\`\\"\\\$]]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Fix-up fallback echo if it was mangled by the above quoting rules.
+case \$lt_ECHO in
+*'\\\[$]0 --fallback-echo"')dnl "
+ lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
+ ;;
+esac
+
+_LT_OUTPUT_LIBTOOL_INIT
+])
+
+
+# LT_OUTPUT
+# ---------
+# This macro allows early generation of the libtool script (before
+# AC_OUTPUT is called), incase it is used in configure for compilation
+# tests.
+AC_DEFUN([LT_OUTPUT],
+[: ${CONFIG_LT=./config.lt}
+AC_MSG_NOTICE([creating $CONFIG_LT])
+cat >"$CONFIG_LT" <<_LTEOF
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate a libtool stub with the current configuration.
+
+lt_cl_silent=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_LTEOF
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+AS_SHELL_SANITIZE
+_AS_PREPARE
+
+exec AS_MESSAGE_FD>&1
+exec AS_MESSAGE_LOG_FD>>config.log
+{
+ echo
+ AS_BOX([Running $as_me.])
+} >&AS_MESSAGE_LOG_FD
+
+lt_cl_help="\
+\`$as_me' creates a local libtool stub from the current configuration,
+for use in further configure time tests before the real libtool is
+generated.
+
+Usage: $[0] [[OPTIONS]]
+
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -q, --quiet do not print progress messages
+ -d, --debug don't remove temporary files
+
+Report bugs to <bug-libtool@gnu.org>."
+
+lt_cl_version="\
+m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
+m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
+configured by $[0], generated by m4_PACKAGE_STRING.
+
+Copyright (C) 2008 Free Software Foundation, Inc.
+This config.lt script is free software; the Free Software Foundation
+gives unlimited permision to copy, distribute and modify it."
+
+while test $[#] != 0
+do
+ case $[1] in
+ --version | --v* | -V )
+ echo "$lt_cl_version"; exit 0 ;;
+ --help | --h* | -h )
+ echo "$lt_cl_help"; exit 0 ;;
+ --debug | --d* | -d )
+ debug=: ;;
+ --quiet | --q* | --silent | --s* | -q )
+ lt_cl_silent=: ;;
+
+ -*) AC_MSG_ERROR([unrecognized option: $[1]
+Try \`$[0] --help' for more information.]) ;;
+
+ *) AC_MSG_ERROR([unrecognized argument: $[1]
+Try \`$[0] --help' for more information.]) ;;
+ esac
+ shift
+done
+
+if $lt_cl_silent; then
+ exec AS_MESSAGE_FD>/dev/null
+fi
+_LTEOF
+
+cat >>"$CONFIG_LT" <<_LTEOF
+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
+_LTEOF
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+AC_MSG_NOTICE([creating $ofile])
+_LT_OUTPUT_LIBTOOL_COMMANDS
+AS_EXIT(0)
+_LTEOF
+chmod +x "$CONFIG_LT"
+
+# configure is writing to config.log, but config.lt does its own redirection,
+# appending to config.log, which fails on DOS, as config.log is still kept
+# open by configure. Here we exec the FD to /dev/null, effectively closing
+# config.log, so it can be properly (re)opened and appended to by config.lt.
+if test "$no_create" != yes; then
+ lt_cl_success=:
+ test "$silent" = yes &&
+ lt_config_lt_args="$lt_config_lt_args --quiet"
+ exec AS_MESSAGE_LOG_FD>/dev/null
+ $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
+ exec AS_MESSAGE_LOG_FD>>config.log
+ $lt_cl_success || AS_EXIT(1)
+fi
+])# LT_OUTPUT
+
+
+# _LT_CONFIG(TAG)
+# ---------------
+# If TAG is the built-in tag, create an initial libtool script with a
+# default configuration from the untagged config vars. Otherwise add code
+# to config.status for appending the configuration named by TAG from the
+# matching tagged config vars.
+m4_defun([_LT_CONFIG],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_CONFIG_SAVE_COMMANDS([
+ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
+ m4_if(_LT_TAG, [C], [
+ # See if we are running on zsh, and set the options which allow our
+ # commands through without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+
+ cfgfile="${ofile}T"
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+ $RM "$cfgfile"
+
+ cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+_LT_COPYING
+_LT_LIBTOOL_TAGS
+
+# ### BEGIN LIBTOOL CONFIG
+_LT_LIBTOOL_CONFIG_VARS
+_LT_LIBTOOL_TAG_VARS
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+ case $host_os in
+ aix3*)
+ cat <<\_LT_EOF >> "$cfgfile"
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+_LT_EOF
+ ;;
+ esac
+
+ _LT_PROG_LTMAIN
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ _LT_PROG_XSI_SHELLFNS
+
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ mv -f "$cfgfile" "$ofile" ||
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+],
+[cat <<_LT_EOF >> "$ofile"
+
+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
+dnl in a comment (ie after a #).
+# ### BEGIN LIBTOOL TAG CONFIG: $1
+_LT_LIBTOOL_TAG_VARS(_LT_TAG)
+# ### END LIBTOOL TAG CONFIG: $1
+_LT_EOF
+])dnl /m4_if
+],
+[m4_if([$1], [], [
+ PACKAGE='$PACKAGE'
+ VERSION='$VERSION'
+ TIMESTAMP='$TIMESTAMP'
+ RM='$RM'
+ ofile='$ofile'], [])
+])dnl /_LT_CONFIG_SAVE_COMMANDS
+])# _LT_CONFIG
+
+
+# LT_SUPPORTED_TAG(TAG)
+# ---------------------
+# Trace this macro to discover what tags are supported by the libtool
+# --tag option, using:
+# autoconf --trace 'LT_SUPPORTED_TAG:$1'
+AC_DEFUN([LT_SUPPORTED_TAG], [])
+
+
+# C support is built-in for now
+m4_define([_LT_LANG_C_enabled], [])
+m4_define([_LT_TAGS], [])
+
+
+# LT_LANG(LANG)
+# -------------
+# Enable libtool support for the given language if not already enabled.
+AC_DEFUN([LT_LANG],
+[AC_BEFORE([$0], [LT_OUTPUT])dnl
+m4_case([$1],
+ [C], [_LT_LANG(C)],
+ [C++], [_LT_LANG(CXX)],
+ [Java], [_LT_LANG(GCJ)],
+ [Fortran 77], [_LT_LANG(F77)],
+ [Fortran], [_LT_LANG(FC)],
+ [Windows Resource], [_LT_LANG(RC)],
+ [m4_ifdef([_LT_LANG_]$1[_CONFIG],
+ [_LT_LANG($1)],
+ [m4_fatal([$0: unsupported language: "$1"])])])dnl
+])# LT_LANG
+
+
+# _LT_LANG(LANGNAME)
+# ------------------
+m4_defun([_LT_LANG],
+[m4_ifdef([_LT_LANG_]$1[_enabled], [],
+ [LT_SUPPORTED_TAG([$1])dnl
+ m4_append([_LT_TAGS], [$1 ])dnl
+ m4_define([_LT_LANG_]$1[_enabled], [])dnl
+ _LT_LANG_$1_CONFIG($1)])dnl
+])# _LT_LANG
+
+
+# _LT_LANG_DEFAULT_CONFIG
+# -----------------------
+m4_defun([_LT_LANG_DEFAULT_CONFIG],
+[AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [LT_LANG(CXX)],
+ [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_F77],
+ [LT_LANG(F77)],
+ [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_FC],
+ [LT_LANG(FC)],
+ [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
+
+dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
+dnl pulling things in needlessly.
+AC_PROVIDE_IFELSE([AC_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [m4_ifdef([AC_PROG_GCJ],
+ [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
+ m4_ifdef([A][M_PROG_GCJ],
+ [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
+ m4_ifdef([LT_PROG_GCJ],
+ [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
+
+AC_PROVIDE_IFELSE([LT_PROG_RC],
+ [LT_LANG(RC)],
+ [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
+])# _LT_LANG_DEFAULT_CONFIG
+
+# Obsolete macros:
+AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
+AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
+AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
+AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
+dnl AC_DEFUN([AC_LIBTOOL_F77], [])
+dnl AC_DEFUN([AC_LIBTOOL_FC], [])
+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
+
+
+# _LT_TAG_COMPILER
+# ----------------
+m4_defun([_LT_TAG_COMPILER],
+[AC_REQUIRE([AC_PROG_CC])dnl
+
+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+])# _LT_TAG_COMPILER
+
+
+# _LT_COMPILER_BOILERPLATE
+# ------------------------
+# Check for compiler boilerplate output or warnings with
+# the simple compiler test code.
+m4_defun([_LT_COMPILER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+])# _LT_COMPILER_BOILERPLATE
+
+
+# _LT_LINKER_BOILERPLATE
+# ----------------------
+# Check for linker boilerplate output or warnings with
+# the simple link test code.
+m4_defun([_LT_LINKER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+])# _LT_LINKER_BOILERPLATE
+
+# _LT_REQUIRED_DARWIN_CHECKS
+# -------------------------
+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
+ case $host_os in
+ rhapsody* | darwin*)
+ AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
+ AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
+ AC_CHECK_TOOL([LIPO], [lipo], [:])
+ AC_CHECK_TOOL([OTOOL], [otool], [:])
+ AC_CHECK_TOOL([OTOOL64], [otool64], [:])
+ _LT_DECL([], [DSYMUTIL], [1],
+ [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
+ _LT_DECL([], [NMEDIT], [1],
+ [Tool to change global to local symbols on Mac OS X])
+ _LT_DECL([], [LIPO], [1],
+ [Tool to manipulate fat objects and archives on Mac OS X])
+ _LT_DECL([], [OTOOL], [1],
+ [ldd/readelf like tool for Mach-O binaries on Mac OS X])
+ _LT_DECL([], [OTOOL64], [1],
+ [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
+
+ AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
+ [lt_cv_apple_cc_single_mod=no
+ if test -z "${LT_MULTI_MODULE}"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ rm -rf libconftest.dylib*
+ echo "int foo(void){return 1;}" > conftest.c
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+ _lt_result=$?
+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
+ lt_cv_apple_cc_single_mod=yes
+ else
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ fi
+ rm -rf libconftest.dylib*
+ rm -f conftest.*
+ fi])
+ AC_CACHE_CHECK([for -exported_symbols_list linker flag],
+ [lt_cv_ld_exported_symbols_list],
+ [lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [lt_cv_ld_exported_symbols_list=yes],
+ [lt_cv_ld_exported_symbols_list=no])
+ LDFLAGS="$save_LDFLAGS"
+ ])
+ case $host_os in
+ rhapsody* | darwin1.[[012]])
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ darwin*) # darwin 5.x on
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ 10.[[012]]*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+ else
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ fi
+ if test "$DSYMUTIL" != ":"; then
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+])
+
+
+# _LT_DARWIN_LINKER_FEATURES
+# --------------------------
+# Checks for linker and compiler features on darwin
+m4_defun([_LT_DARWIN_LINKER_FEATURES],
+[
+ m4_require([_LT_REQUIRED_DARWIN_CHECKS])
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_automatic, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=''
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
+ case $cc_basename in
+ ifort*) _lt_dar_can_shared=yes ;;
+ *) _lt_dar_can_shared=$GCC ;;
+ esac
+ if test "$_lt_dar_can_shared" = "yes"; then
+ output_verbose_link_cmd=echo
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+ m4_if([$1], [CXX],
+[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
+ fi
+],[])
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+])
+
+# _LT_SYS_MODULE_PATH_AIX
+# -----------------------
+# Links a minimal program and checks the executable
+# for the system default hardcoded library path. In most cases,
+# this is /usr/lib:/lib, but when the MPI compilers are used
+# the location of the communication and MPI libs are included too.
+# If we don't find anything, use the default library path according
+# to the aix ld manual.
+m4_defun([_LT_SYS_MODULE_PATH_AIX],
+[m4_require([_LT_DECL_SED])dnl
+AC_LINK_IFELSE(AC_LANG_PROGRAM,[
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi],[])
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+])# _LT_SYS_MODULE_PATH_AIX
+
+
+# _LT_SHELL_INIT(ARG)
+# -------------------
+m4_define([_LT_SHELL_INIT],
+[ifdef([AC_DIVERSION_NOTICE],
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
+ [AC_DIVERT_PUSH(NOTICE)])
+$1
+AC_DIVERT_POP
+])# _LT_SHELL_INIT
+
+
+# _LT_PROG_ECHO_BACKSLASH
+# -----------------------
+# Add some code to the start of the generated configure script which
+# will find an echo command which doesn't interpret backslashes.
+m4_defun([_LT_PROG_ECHO_BACKSLASH],
+[_LT_SHELL_INIT([
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$lt_ECHO in
+X*--fallback-echo)
+ # Remove one level of quotation (which was required for Make).
+ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
+ ;;
+esac
+
+ECHO=${lt_ECHO-echo}
+if test "X[$]1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X[$]1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
+ # Yippee, $ECHO works!
+ :
+else
+ # Restart under the correct shell.
+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
+fi
+
+if test "X[$]1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<_LT_EOF
+[$]*
+_LT_EOF
+ exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test -z "$lt_ECHO"; then
+ if test "X${echo_test_string+set}" != Xset; then
+ # find a string as large as possible, as long as the shell can cope with it
+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+ if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
+ then
+ break
+ fi
+ done
+ fi
+
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ :
+ else
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
+ # backslashes. This makes it impossible to quote backslashes using
+ # echo "$something" | sed 's/\\/\\\\/g'
+ #
+ # So, first we look for a working echo in the user's PATH.
+
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for dir in $PATH /usr/ucb; do
+ IFS="$lt_save_ifs"
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$dir/echo"
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+
+ if test "X$ECHO" = Xecho; then
+ # We didn't find a better echo, so look for alternatives.
+ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # This shell has a builtin print -r that does the trick.
+ ECHO='print -r'
+ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
+ # If we have ksh, try running configure again with it.
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ export ORIGINAL_CONFIG_SHELL
+ CONFIG_SHELL=/bin/ksh
+ export CONFIG_SHELL
+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
+ else
+ # Try using printf.
+ ECHO='printf %s\n'
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # Cool, printf works
+ :
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+ export CONFIG_SHELL
+ SHELL="$CONFIG_SHELL"
+ export SHELL
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
+ else
+ # maybe with a smaller string...
+ prev=:
+
+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
+ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
+ then
+ break
+ fi
+ prev="$cmd"
+ done
+
+ if test "$prev" != 'sed 50q "[$]0"'; then
+ echo_test_string=`eval $prev`
+ export echo_test_string
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
+ else
+ # Oops. We lost completely, so just stick with echo.
+ ECHO=echo
+ fi
+ fi
+ fi
+ fi
+ fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+lt_ECHO=$ECHO
+if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
+ lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
+fi
+
+AC_SUBST(lt_ECHO)
+])
+_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
+_LT_DECL([], [ECHO], [1],
+ [An echo program that does not interpret backslashes])
+])# _LT_PROG_ECHO_BACKSLASH
+
+
+# _LT_ENABLE_LOCK
+# ---------------
+m4_defun([_LT_ENABLE_LOCK],
+[AC_ARG_ENABLE([libtool-lock],
+ [AS_HELP_STRING([--disable-libtool-lock],
+ [avoid locking (might break parallel builds)])])
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*|s390*-*tpf*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
+ [AC_LANG_PUSH(C)
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+ AC_LANG_POP])
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+sparc*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+esac
+
+need_locks="$enable_libtool_lock"
+])# _LT_ENABLE_LOCK
+
+
+# _LT_CMD_OLD_ARCHIVE
+# -------------------
+m4_defun([_LT_CMD_OLD_ARCHIVE],
+[AC_CHECK_TOOL(AR, ar, false)
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+_LT_DECL([], [AR], [1], [The archiver])
+_LT_DECL([], [AR_FLAGS], [1])
+
+AC_CHECK_TOOL(STRIP, strip, :)
+test -z "$STRIP" && STRIP=:
+_LT_DECL([], [STRIP], [1], [A symbol stripping program])
+
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+test -z "$RANLIB" && RANLIB=:
+_LT_DECL([], [RANLIB], [1],
+ [Commands used to install an old-style archive])
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+_LT_DECL([], [old_postinstall_cmds], [2])
+_LT_DECL([], [old_postuninstall_cmds], [2])
+_LT_TAGDECL([], [old_archive_cmds], [2],
+ [Commands used to build an old-style archive])
+])# _LT_CMD_OLD_ARCHIVE
+
+
+# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------------------
+# Check whether the given compiler option works
+AC_DEFUN([_LT_COMPILER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$3"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ fi
+ $RM conftest*
+])
+
+if test x"[$]$2" = xyes; then
+ m4_if([$5], , :, [$5])
+else
+ m4_if([$6], , :, [$6])
+fi
+])# _LT_COMPILER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
+
+
+# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------
+# Check whether the given linker option works
+AC_DEFUN([_LT_LINKER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $3"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
+ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ else
+ $2=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+])
+
+if test x"[$]$2" = xyes; then
+ m4_if([$4], , :, [$4])
+else
+ m4_if([$5], , :, [$5])
+fi
+])# _LT_LINKER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
+
+
+# LT_CMD_MAX_LEN
+#---------------
+AC_DEFUN([LT_CMD_MAX_LEN],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+# find the maximum length of command line arguments
+AC_MSG_CHECKING([the maximum length of command line arguments])
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw* | cegcc*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ # Make teststring a little bigger before we do anything with it.
+ # a 1K string should be a reasonable start.
+ for i in 1 2 3 4 5 6 7 8 ; do
+ teststring=$teststring$teststring
+ done
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ # If test is not a shell built-in, we'll probably end up computing a
+ # maximum length that is only half of the actual maximum length, but
+ # we can't tell.
+ while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
+ = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ # Only check the string length outside the loop.
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on
+ # massive amounts of additional arguments before passing them to the
+ # linker. It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ fi
+ ;;
+ esac
+])
+if test -n $lt_cv_sys_max_cmd_len ; then
+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
+else
+ AC_MSG_RESULT(none)
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+_LT_DECL([], [max_cmd_len], [0],
+ [What is the maximum length of a command?])
+])# LT_CMD_MAX_LEN
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
+
+
+# _LT_HEADER_DLFCN
+# ----------------
+m4_defun([_LT_HEADER_DLFCN],
+[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
+])# _LT_HEADER_DLFCN
+
+
+# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
+# ----------------------------------------------------------------
+m4_defun([_LT_TRY_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test "$cross_compiling" = yes; then :
+ [$4]
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+[#line __oline__ "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}]
+_LT_EOF
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) $1 ;;
+ x$lt_dlneed_uscore) $2 ;;
+ x$lt_dlunknown|x*) $3 ;;
+ esac
+ else :
+ # compilation failed
+ $3
+ fi
+fi
+rm -fr conftest*
+])# _LT_TRY_DLOPEN_SELF
+
+
+# LT_SYS_DLOPEN_SELF
+# ------------------
+AC_DEFUN([LT_SYS_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32* | cegcc*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ])
+ ;;
+
+ *)
+ AC_CHECK_FUNC([shl_load],
+ [lt_cv_dlopen="shl_load"],
+ [AC_CHECK_LIB([dld], [shl_load],
+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
+ [AC_CHECK_FUNC([dlopen],
+ [lt_cv_dlopen="dlopen"],
+ [AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
+ [AC_CHECK_LIB([svld], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
+ [AC_CHECK_LIB([dld], [dld_link],
+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
+ ])
+ ])
+ ])
+ ])
+ ])
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
+ else
+ enable_dlopen=no
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ AC_CACHE_CHECK([whether a program can dlopen itself],
+ lt_cv_dlopen_self, [dnl
+ _LT_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
+ ])
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
+ lt_cv_dlopen_self_static, [dnl
+ _LT_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
+ ])
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+_LT_DECL([dlopen_support], [enable_dlopen], [0],
+ [Whether dlopen is supported])
+_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
+ [Whether dlopen of programs is supported])
+_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
+ [Whether dlopen of statically linked programs is supported])
+])# LT_SYS_DLOPEN_SELF
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
+
+
+# _LT_COMPILER_C_O([TAGNAME])
+# ---------------------------
+# Check to see if options -c and -o are simultaneously supported by compiler.
+# This macro does not hard code the compiler like AC_PROG_CC_C_O.
+m4_defun([_LT_COMPILER_C_O],
+[m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+ fi
+ fi
+ chmod u+w . 2>&AS_MESSAGE_LOG_FD
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+])
+_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
+ [Does compiler simultaneously support -c and -o options?])
+])# _LT_COMPILER_C_O
+
+
+# _LT_COMPILER_FILE_LOCKS([TAGNAME])
+# ----------------------------------
+# Check to see if we can do hard links to lock some files if needed
+m4_defun([_LT_COMPILER_FILE_LOCKS],
+[m4_require([_LT_ENABLE_LOCK])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_COMPILER_C_O([$1])
+
+hard_links="nottested"
+if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ AC_MSG_CHECKING([if we can lock with hard links])
+ hard_links=yes
+ $RM conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ AC_MSG_RESULT([$hard_links])
+ if test "$hard_links" = no; then
+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
+])# _LT_COMPILER_FILE_LOCKS
+
+
+# _LT_CHECK_OBJDIR
+# ----------------
+m4_defun([_LT_CHECK_OBJDIR],
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
+[rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null])
+objdir=$lt_cv_objdir
+_LT_DECL([], [objdir], [0],
+ [The name of the directory that contains temporary libtool files])dnl
+m4_pattern_allow([LT_OBJDIR])dnl
+AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
+ [Define to the sub-directory in which libtool stores uninstalled libraries.])
+])# _LT_CHECK_OBJDIR
+
+
+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
+# --------------------------------------
+# Check hardcoding attributes.
+m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
+_LT_TAGVAR(hardcode_action, $1)=
+if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
+ test -n "$_LT_TAGVAR(runpath_var, $1)" ||
+ test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
+
+ # We can hardcode non-existent directories.
+ if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
+ test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
+ # Linking always hardcodes the temporary library directory.
+ _LT_TAGVAR(hardcode_action, $1)=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ _LT_TAGVAR(hardcode_action, $1)=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ _LT_TAGVAR(hardcode_action, $1)=unsupported
+fi
+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
+
+if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
+ test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+_LT_TAGDECL([], [hardcode_action], [0],
+ [How to hardcode a shared library path into an executable])
+])# _LT_LINKER_HARDCODE_LIBPATH
+
+
+# _LT_CMD_STRIPLIB
+# ----------------
+m4_defun([_LT_CMD_STRIPLIB],
+[m4_require([_LT_DECL_EGREP])
+striplib=
+old_striplib=
+AC_MSG_CHECKING([whether stripping libraries is possible])
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ AC_MSG_RESULT([yes])
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ old_striplib="$STRIP -S"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+ esac
+fi
+_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
+_LT_DECL([], [striplib], [1])
+])# _LT_CMD_STRIPLIB
+
+
+# _LT_SYS_DYNAMIC_LINKER([TAG])
+# -----------------------------
+# PORTME Fill in your ld.so characteristics
+m4_defun([_LT_SYS_DYNAMIC_LINKER],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_OBJDUMP])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_MSG_CHECKING([dynamic linker characteristics])
+m4_if([$1],
+ [], [
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
+}'`
+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi])
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix[[4-9]]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[[01]] | aix4.[[01]].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ case $host_cpu in
+ powerpc)
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ ;;
+ m68k)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+ esac
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[[45]]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw* | cegcc*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ ;;
+
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+m4_if([$1], [],[
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[[123]]*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
+ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case $host_cpu in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+
+interix[[3-9]]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # Some binutils ld are patched to set DT_RUNPATH
+ save_LDFLAGS=$LDFLAGS
+ save_libdir=$libdir
+ eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
+ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
+ [shlibpath_overrides_runpath=yes])])
+ LDFLAGS=$save_LDFLAGS
+ libdir=$save_libdir
+
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+*nto* | *qnx*)
+ version_type=qnx
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='ldqnx.so'
+ ;;
+
+openbsd*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec="/usr/lib"
+ need_lib_prefix=no
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+ case $host_os in
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+ *) need_version=no ;;
+ esac
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[[89]] | openbsd2.[[89]].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=freebsd-elf
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ if test "$with_gnu_ld" = yes; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+tpf*)
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+AC_MSG_RESULT([$dynamic_linker])
+test "$dynamic_linker" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
+fi
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+fi
+
+_LT_DECL([], [variables_saved_for_relink], [1],
+ [Variables whose values should be saved in libtool wrapper scripts and
+ restored at link time])
+_LT_DECL([], [need_lib_prefix], [0],
+ [Do we need the "lib" prefix for modules?])
+_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
+_LT_DECL([], [version_type], [0], [Library versioning type])
+_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
+_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
+_LT_DECL([], [shlibpath_overrides_runpath], [0],
+ [Is shlibpath searched before the hard-coded library search path?])
+_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
+_LT_DECL([], [library_names_spec], [1],
+ [[List of archive names. First name is the real one, the rest are links.
+ The last name is the one that the linker finds with -lNAME]])
+_LT_DECL([], [soname_spec], [1],
+ [[The coded name of the library, if different from the real name]])
+_LT_DECL([], [postinstall_cmds], [2],
+ [Command to use after installation of a shared archive])
+_LT_DECL([], [postuninstall_cmds], [2],
+ [Command to use after uninstallation of a shared archive])
+_LT_DECL([], [finish_cmds], [2],
+ [Commands used to finish a libtool library installation in a directory])
+_LT_DECL([], [finish_eval], [1],
+ [[As "finish_cmds", except a single script fragment to be evaled but
+ not shown]])
+_LT_DECL([], [hardcode_into_libs], [0],
+ [Whether we should hardcode library paths into libraries])
+_LT_DECL([], [sys_lib_search_path_spec], [2],
+ [Compile-time system search path for libraries])
+_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
+ [Run-time system search path for libraries])
+])# _LT_SYS_DYNAMIC_LINKER
+
+
+# _LT_PATH_TOOL_PREFIX(TOOL)
+# --------------------------
+# find a file program which can recognize shared library
+AC_DEFUN([_LT_PATH_TOOL_PREFIX],
+[m4_require([_LT_DECL_EGREP])dnl
+AC_MSG_CHECKING([for $1])
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
+[case $MAGIC_CMD in
+[[\\/*] | ?:[\\/]*])
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+dnl $ac_dummy forces splitting on constant user-supplied paths.
+dnl POSIX.2 word splitting is done only on the output of word expansions,
+dnl not every word. This closes a longstanding sh security hole.
+ ac_dummy="m4_if([$2], , $PATH, [$2])"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$1; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac])
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ AC_MSG_RESULT($MAGIC_CMD)
+else
+ AC_MSG_RESULT(no)
+fi
+_LT_DECL([], [MAGIC_CMD], [0],
+ [Used to examine libraries when file_magic_cmd begins with "file"])dnl
+])# _LT_PATH_TOOL_PREFIX
+
+# Old name:
+AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
+
+
+# _LT_PATH_MAGIC
+# --------------
+# find a file program which can recognize a shared library
+m4_defun([_LT_PATH_MAGIC],
+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
+ else
+ MAGIC_CMD=:
+ fi
+fi
+])# _LT_PATH_MAGIC
+
+
+# LT_PATH_LD
+# ----------
+# find the pathname to the GNU or non-GNU linker
+AC_DEFUN([LT_PATH_LD],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+
+AC_ARG_WITH([gnu-ld],
+ [AS_HELP_STRING([--with-gnu-ld],
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
+ [test "$withval" = no || with_gnu_ld=yes],
+ [with_gnu_ld=no])dnl
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ AC_MSG_CHECKING([for ld used by $CC])
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [[\\/]]* | ?:[[\\/]]*)
+ re_direlt='/[[^/]][[^/]]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ AC_MSG_CHECKING([for GNU ld])
+else
+ AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(lt_cv_path_LD,
+[if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ AC_MSG_RESULT($LD)
+else
+ AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+_LT_PATH_LD_GNU
+AC_SUBST([LD])
+
+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
+])# LT_PATH_LD
+
+# Old names:
+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_LD], [])
+dnl AC_DEFUN([AC_PROG_LD], [])
+
+
+# _LT_PATH_LD_GNU
+#- --------------
+m4_defun([_LT_PATH_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])# _LT_PATH_LD_GNU
+
+
+# _LT_CMD_RELOAD
+# --------------
+# find reload flag for linker
+# -- PORTME Some linkers may need a different reload flag.
+m4_defun([_LT_CMD_RELOAD],
+[AC_CACHE_CHECK([for $LD option to reload object files],
+ lt_cv_ld_reload_flag,
+ [lt_cv_ld_reload_flag='-r'])
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
+_LT_DECL([], [reload_cmds], [2])dnl
+])# _LT_CMD_RELOAD
+
+
+# _LT_CHECK_MAGIC_METHOD
+# ----------------------
+# how to check for library dependencies
+# -- PORTME fill in with the dynamic library characteristics
+m4_defun([_LT_CHECK_MAGIC_METHOD],
+[m4_require([_LT_DECL_EGREP])
+m4_require([_LT_DECL_OBJDUMP])
+AC_CACHE_CHECK([how to recognize dependent libraries],
+lt_cv_deplibs_check_method,
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[[4-9]]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+bsdi[[45]]*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
+
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+cegcc)
+ # use the weaker test based on 'objdump'. See mingw*.
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ case $host_cpu in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+ esac
+ ;;
+
+interix[[3-9]]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+*nto* | *qnx*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ fi
+ ;;
+
+osf3* | osf4* | osf5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+tpf*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+])
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+_LT_DECL([], [deplibs_check_method], [1],
+ [Method to check whether dependent libraries are shared objects])
+_LT_DECL([], [file_magic_cmd], [1],
+ [Command to use when deplibs_check_method == "file_magic"])
+])# _LT_CHECK_MAGIC_METHOD
+
+
+# LT_PATH_NM
+# ----------
+# find the pathname to a BSD- or MS-compatible name lister
+AC_DEFUN([LT_PATH_NM],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
+[if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ lt_nm_to_check="${ac_tool_prefix}nm"
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm="$ac_dir/$lt_tmp_nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+ done
+ : ${lt_cv_path_NM=no}
+fi])
+if test "$lt_cv_path_NM" != "no"; then
+ NM="$lt_cv_path_NM"
+else
+ # Didn't find any BSD compatible name lister, look for dumpbin.
+ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
+ AC_SUBST([DUMPBIN])
+ if test "$DUMPBIN" != ":"; then
+ NM="$DUMPBIN"
+ fi
+fi
+test -z "$NM" && NM=nm
+AC_SUBST([NM])
+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
+
+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
+ [lt_cv_nm_interface="BSD nm"
+ echo "int some_variable = 0;" > conftest.$ac_ext
+ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$ac_compile" 2>conftest.err)
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
+ cat conftest.out >&AS_MESSAGE_LOG_FD
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+ lt_cv_nm_interface="MS dumpbin"
+ fi
+ rm -f conftest*])
+])# LT_PATH_NM
+
+# Old names:
+AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
+AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_NM], [])
+dnl AC_DEFUN([AC_PROG_NM], [])
+
+
+# LT_LIB_M
+# --------
+# check for math library
+AC_DEFUN([LT_LIB_M],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+LIBM=
+case $host in
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
+ # These system don't have libm, or don't need it
+ ;;
+*-ncr-sysv4.3*)
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
+ ;;
+*)
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
+ ;;
+esac
+AC_SUBST([LIBM])
+])# LT_LIB_M
+
+# Old name:
+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_CHECK_LIBM], [])
+
+
+# _LT_COMPILER_NO_RTTI([TAGNAME])
+# -------------------------------
+m4_defun([_LT_COMPILER_NO_RTTI],
+[m4_require([_LT_TAG_COMPILER])dnl
+
+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+
+if test "$GCC" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+
+ _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
+ lt_cv_prog_compiler_rtti_exceptions,
+ [-fno-rtti -fno-exceptions], [],
+ [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
+fi
+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
+ [Compiler flag to turn off builtin functions])
+])# _LT_COMPILER_NO_RTTI
+
+
+# _LT_CMD_GLOBAL_SYMBOLS
+# ----------------------
+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
+[
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[[BCDEGRST]]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[[BCDT]]'
+ ;;
+cygwin* | mingw* | pw32* | cegcc*)
+ symcode='[[ABCDGISTW]]'
+ ;;
+hpux*)
+ if test "$host_cpu" = ia64; then
+ symcode='[[ABCDEGRST]]'
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[[BCDEGRST]]'
+ ;;
+osf*)
+ symcode='[[BCDEGQRST]]'
+ ;;
+solaris*)
+ symcode='[[BDRT]]'
+ ;;
+sco3.2v5*)
+ symcode='[[DT]]'
+ ;;
+sysv4.2uw2*)
+ symcode='[[DT]]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[[ABDT]]'
+ ;;
+sysv4)
+ symcode='[[DFNSTU]]'
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[[ABCDGIRSTW]]' ;;
+esac
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ # Fake it for dumpbin and say T for any non-static function
+ # and D for any global variable.
+ # Also find C++ and __fastcall symbols from MSVC++,
+ # which start with @ or ?.
+ lt_cv_sys_global_symbol_pipe="$AWK ['"\
+" {last_section=section; section=\$ 3};"\
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+" \$ 0!~/External *\|/{next};"\
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+" {if(hide[section]) next};"\
+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
+" ' prfx=^$ac_symprfx]"
+ else
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+ fi
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+ if AC_TRY_EVAL(ac_compile); then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
+ fi
+
+ # Make sure that we snagged all the symbols we need.
+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<_LT_EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+ cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols. */
+const struct {
+ const char *name;
+ void *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[[]] =
+{
+ { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+ cat <<\_LT_EOF >> conftest.$ac_ext
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_save_LIBS="$LIBS"
+ lt_save_CFLAGS="$CFLAGS"
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS="$lt_save_LIBS"
+ CFLAGS="$lt_save_CFLAGS"
+ else
+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
+ cat conftest.$ac_ext >&5
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+])
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ AC_MSG_RESULT(failed)
+else
+ AC_MSG_RESULT(ok)
+fi
+
+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
+ [Take the output of nm and produce a listing of raw symbols and C names])
+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
+ [Transform the output of nm in a proper C declaration])
+_LT_DECL([global_symbol_to_c_name_address],
+ [lt_cv_sys_global_symbol_to_c_name_address], [1],
+ [Transform the output of nm in a C name address pair])
+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
+ [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
+ [Transform the output of nm in a C name address pair when lib prefix is needed])
+]) # _LT_CMD_GLOBAL_SYMBOLS
+
+
+# _LT_COMPILER_PIC([TAGNAME])
+# ---------------------------
+m4_defun([_LT_COMPILER_PIC],
+[m4_require([_LT_TAG_COMPILER])dnl
+_LT_TAGVAR(lt_prog_compiler_wl, $1)=
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+_LT_TAGVAR(lt_prog_compiler_static, $1)=
+
+AC_MSG_CHECKING([for $compiler option to produce PIC])
+m4_if([$1], [CXX], [
+ # C++ specific cases for pic, static, wl, etc.
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+ *djgpp*)
+ # DJGPP does not support shared libraries at all
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ else
+ case $host_os in
+ aix[[4-9]]*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ chorus*)
+ case $cc_basename in
+ cxch68*)
+ # Green Hills C++ Compiler
+ # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
+ ;;
+ esac
+ ;;
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ freebsd* | dragonfly*)
+ # FreeBSD uses GNU C++
+ ;;
+ hpux9* | hpux10* | hpux11*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ if test "$host_cpu" != ia64; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ fi
+ ;;
+ aCC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ interix*)
+ # This is c89, which is MS Visual C++ (no shared libs)
+ # Anyone wants to do a port?
+ ;;
+ irix5* | irix6* | nonstopux*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ # CC pic flag -KPIC is the default.
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ KCC*)
+ # KAI C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ ecpc* )
+ # old Intel C++ for x86_64 which still supported -KPIC.
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ icpc* )
+ # Intel C++, used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ cxx*)
+ # Compaq C++
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ xlc* | xlC*)
+ # IBM XL 8.0 on PPC
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ lynxos*)
+ ;;
+ m88k*)
+ ;;
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ netbsd*)
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ cxx*)
+ # Digital/Compaq C++
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ psos*)
+ ;;
+ solaris*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ lcc*)
+ # Lucid
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ esac
+ ;;
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ vxworks*)
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+],
+[
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ enable_shared=no
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC (with -KPIC) is the default.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ # old Intel for x86_64 which still supported -KPIC.
+ ecc*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ # icc used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ icc* | ifort*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ # Lahey Fortran 8.1.
+ lf95*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ ccc*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All Alpha code is PIC.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ xl*)
+ # IBM XL C 8.0/Fortran 10.1 on PPC
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ newsos6)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+
+ osf3* | osf4* | osf5*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All OSF/1 code is PIC.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ rdos*)
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ solaris*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ unicos*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+
+ uts4*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ *)
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+])
+case $host_os in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
+ ;;
+esac
+AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
+ [How to pass a linker flag through the compiler])
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
+ _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
+ [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
+ [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
+ "" | " "*) ;;
+ *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
+ esac],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
+fi
+_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
+ [Additional compiler flags for building library objects])
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
+_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
+ _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
+ $lt_tmp_static_flag,
+ [],
+ [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
+_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
+ [Compiler flag to prevent dynamic linking])
+])# _LT_COMPILER_PIC
+
+
+# _LT_LINKER_SHLIBS([TAGNAME])
+# ----------------------------
+# See if the linker supports building shared libraries.
+m4_defun([_LT_LINKER_SHLIBS],
+[AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+m4_if([$1], [CXX], [
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ case $host_os in
+ aix[[4-9]]*)
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ ;;
+ pw32*)
+ _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
+ ;;
+ cygwin* | mingw* | cegcc*)
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ *)
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ esac
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+], [
+ runpath_var=
+ _LT_TAGVAR(allow_undefined_flag, $1)=
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(archive_cmds, $1)=
+ _LT_TAGVAR(archive_expsym_cmds, $1)=
+ _LT_TAGVAR(compiler_needs_object, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ _LT_TAGVAR(hardcode_automatic, $1)=no
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ _LT_TAGVAR(hardcode_minus_L, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_TAGVAR(inherit_rpath, $1)=no
+ _LT_TAGVAR(link_all_deplibs, $1)=unknown
+ _LT_TAGVAR(module_cmds, $1)=
+ _LT_TAGVAR(module_expsym_cmds, $1)=
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)=
+ _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
+ _LT_TAGVAR(thread_safe_flag_spec, $1)=
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ _LT_TAGVAR(include_expsyms, $1)=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ # Exclude shared library initialization/finalization symbols.
+dnl Note also adjust exclude_expsyms for C++ above.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ esac
+
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ supports_anon_versioning=no
+ case `$LD -v 2>&1` in
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[[3-9]]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+_LT_EOF
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
+ ;;
+ m68k)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ interix[[3-9]]*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | tpf* | k*bsd*-gnu)
+ tmp_diet=no
+ if test "$host_os" = linux-dietlibc; then
+ case $cc_basename in
+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
+ esac
+ fi
+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+ && test "$tmp_diet" = no
+ then
+ tmp_addflag=
+ tmp_sharedflag='-shared'
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ lf95*) # Lahey Fortran 8.1
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ tmp_sharedflag='--shared' ;;
+ xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+ tmp_sharedflag='-qmkshrobj'
+ tmp_addflag= ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ esac
+ _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+
+ case $cc_basename in
+ xlf*)
+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ esac
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ # For security reasons, it is highly recommended that you always
+ # use absolute paths for naming shared libraries, and exclude the
+ # DT_RUNPATH tag from executables and libraries. But doing so
+ # requires that you compile everything twice, which is a pain.
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+
+ if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
+ runpath_var=
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ fi
+ ;;
+
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_TAGVAR(archive_cmds, $1)=''
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
+ ;;
+ m68k)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ ;;
+
+ bsdi[[45]]*)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
+ # FIXME: Should let the user specify the lib program.
+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
+ _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ ;;
+
+ darwin* | rhapsody*)
+ _LT_DARWIN_LINKER_FEATURES($1)
+ ;;
+
+ dgux*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ freebsd1*)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | dragonfly*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+
+ hpux10*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ fi
+ ;;
+
+ hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ # Try to use the -exported_symbol ld option, if it does not
+ # work, assume that -exports_file does not work either and
+ # implicitly export all symbols.
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
+ AC_LINK_IFELSE(int foo(void) {},
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
+ )
+ LDFLAGS="$save_LDFLAGS"
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(inherit_rpath, $1)=yes
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ newsos6)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *nto* | *qnx*)
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ else
+ case $host_os in
+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ os2*)
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ else
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ solaris*)
+ _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
+ if test "$GCC" = yes; then
+ wlarc='${wl}'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ else
+ case `$CC -V 2>&1` in
+ *"Compilers 5.0"*)
+ wlarc=''
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+ ;;
+ *)
+ wlarc='${wl}'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ ;;
+ esac
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ ;;
+ motorola)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4.3*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ fi
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ uts4*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+
+ if test x$host_vendor = xsni; then
+ case $host in
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
+ ;;
+ esac
+ fi
+ fi
+])
+AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
+
+_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
+_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
+_LT_DECL([], [extract_expsyms_cmds], [2],
+ [The commands to extract the exported symbol list from a shared archive])
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
+x|xyes)
+ # Assume -lc should be added
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $_LT_TAGVAR(archive_cmds, $1) in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ AC_MSG_CHECKING([whether -lc should be explicitly linked in])
+ $RM conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
+ pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
+ _LT_TAGVAR(allow_undefined_flag, $1)=
+ if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
+ then
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ else
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ fi
+ _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $RM conftest*
+ AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
+ [Whether or not to add -lc for building shared libraries])
+_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
+ [enable_shared_with_static_runtimes], [0],
+ [Whether or not to disallow shared libs when runtime libs are static])
+_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
+ [Compiler flag to allow reflexive dlopens])
+_LT_TAGDECL([], [whole_archive_flag_spec], [1],
+ [Compiler flag to generate shared objects directly from archives])
+_LT_TAGDECL([], [compiler_needs_object], [1],
+ [Whether the compiler copes with passing no objects directly])
+_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
+ [Create an old-style archive from a shared archive])
+_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
+ [Create a temporary old-style archive to link instead of a shared archive])
+_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
+_LT_TAGDECL([], [archive_expsym_cmds], [2])
+_LT_TAGDECL([], [module_cmds], [2],
+ [Commands used to build a loadable module if different from building
+ a shared archive.])
+_LT_TAGDECL([], [module_expsym_cmds], [2])
+_LT_TAGDECL([], [with_gnu_ld], [1],
+ [Whether we are building with GNU ld or not])
+_LT_TAGDECL([], [allow_undefined_flag], [1],
+ [Flag that allows shared libraries with undefined symbols to be built])
+_LT_TAGDECL([], [no_undefined_flag], [1],
+ [Flag that enforces no undefined symbols])
+_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
+ [Flag to hardcode $libdir into a binary during linking.
+ This must work even if $libdir does not exist])
+_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
+ [[If ld is used when linking, flag to hardcode $libdir into a binary
+ during linking. This must work even if $libdir does not exist]])
+_LT_TAGDECL([], [hardcode_libdir_separator], [1],
+ [Whether we need a single "-rpath" flag with a separated argument])
+_LT_TAGDECL([], [hardcode_direct], [0],
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
+ DIR into the resulting binary])
+_LT_TAGDECL([], [hardcode_direct_absolute], [0],
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
+ DIR into the resulting binary and the resulting library dependency is
+ "absolute", i.e impossible to change by setting ${shlibpath_var} if the
+ library is relocated])
+_LT_TAGDECL([], [hardcode_minus_L], [0],
+ [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+ into the resulting binary])
+_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
+ [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+ into the resulting binary])
+_LT_TAGDECL([], [hardcode_automatic], [0],
+ [Set to "yes" if building a shared library automatically hardcodes DIR
+ into the library and all subsequent libraries and executables linked
+ against it])
+_LT_TAGDECL([], [inherit_rpath], [0],
+ [Set to yes if linker adds runtime paths of dependent libraries
+ to runtime path list])
+_LT_TAGDECL([], [link_all_deplibs], [0],
+ [Whether libtool must link a program against all its dependency libraries])
+_LT_TAGDECL([], [fix_srcfile_path], [1],
+ [Fix the shell variable $srcfile for the compiler])
+_LT_TAGDECL([], [always_export_symbols], [0],
+ [Set to "yes" if exported symbols are required])
+_LT_TAGDECL([], [export_symbols_cmds], [2],
+ [The commands to list exported symbols])
+_LT_TAGDECL([], [exclude_expsyms], [1],
+ [Symbols that should not be listed in the preloaded symbols])
+_LT_TAGDECL([], [include_expsyms], [1],
+ [Symbols that must always be exported])
+_LT_TAGDECL([], [prelink_cmds], [2],
+ [Commands necessary for linking programs (against libraries) with templates])
+_LT_TAGDECL([], [file_list_spec], [1],
+ [Specify filename containing input files])
+dnl FIXME: Not yet implemented
+dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
+dnl [Compiler flag to generate thread safe objects])
+])# _LT_LINKER_SHLIBS
+
+
+# _LT_LANG_C_CONFIG([TAG])
+# ------------------------
+# Ensure that the configuration variables for a C compiler are suitably
+# defined. These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_C_CONFIG],
+[m4_require([_LT_DECL_EGREP])dnl
+lt_save_CC="$CC"
+AC_LANG_PUSH(C)
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+_LT_TAG_COMPILER
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+if test -n "$compiler"; then
+ _LT_COMPILER_NO_RTTI($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+ LT_SYS_DLOPEN_SELF
+ _LT_CMD_STRIPLIB
+
+ # Report which library types will actually be built
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_CONFIG($1)
+fi
+AC_LANG_POP
+CC="$lt_save_CC"
+])# _LT_LANG_C_CONFIG
+
+
+# _LT_PROG_CXX
+# ------------
+# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
+# compiler, we have our own version here.
+m4_defun([_LT_PROG_CXX],
+[
+pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
+AC_PROG_CXX
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
+ (test "X$CXX" != "Xg++"))) ; then
+ AC_PROG_CXXCPP
+else
+ _lt_caught_CXX_error=yes
+fi
+popdef([AC_MSG_ERROR])
+])# _LT_PROG_CXX
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([_LT_PROG_CXX], [])
+
+
+# _LT_LANG_CXX_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a C++ compiler are suitably
+# defined. These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_CXX_CONFIG],
+[AC_REQUIRE([_LT_PROG_CXX])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+
+AC_LANG_PUSH(C++)
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(compiler_needs_object, $1)=no
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the CXX compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_caught_CXX_error" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="int some_variable = 0;"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC=$CC
+ lt_save_LD=$LD
+ lt_save_GCC=$GCC
+ GCC=$GXX
+ lt_save_with_gnu_ld=$with_gnu_ld
+ lt_save_path_LD=$lt_cv_path_LD
+ if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+ else
+ $as_unset lt_cv_prog_gnu_ld
+ fi
+ if test -n "${lt_cv_path_LDCXX+set}"; then
+ lt_cv_path_LD=$lt_cv_path_LDCXX
+ else
+ $as_unset lt_cv_path_LD
+ fi
+ test -z "${LDCXX+set}" || LD=$LDCXX
+ CC=${CXX-"c++"}
+ compiler=$CC
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+
+ if test -n "$compiler"; then
+ # We don't want -fno-exception when compiling C++ code, so set the
+ # no_builtin_flag separately
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+ else
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+ fi
+
+ if test "$GXX" = yes; then
+ # Set up default GNU C++ configuration
+
+ LT_PATH_LD
+
+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
+ # archiving commands below assume that GNU ld is being used.
+ if test "$with_gnu_ld" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+ # investigate it a little bit more. (MM)
+ wlarc='${wl}'
+
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if eval "`$CC -print-prog-name=ld` --help 2>&1" |
+ $GREP 'no-whole-archive' > /dev/null; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ with_gnu_ld=no
+ wlarc=
+
+ # A generic and very simple default shared library creation
+ # command for GNU C++ for the case where it uses the native
+ # linker, instead of GNU ld. If possible, this setting should
+ # overridden to take advantage of the native linker features on
+ # the platform it is being used on.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ fi
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+
+ else
+ GXX=no
+ with_gnu_ld=no
+ wlarc=
+ fi
+
+ # PORTME: fill in a description of your system's C++ link characteristics
+ AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ case $host_os in
+ aix3*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ case $ld_flag in
+ *-brtl*)
+ aix_use_runtimelinking=yes
+ break
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_TAGVAR(archive_cmds, $1)=''
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
+
+ if test "$GXX" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to
+ # export.
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an empty
+ # executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared
+ # libraries.
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ chorus*)
+ case $cc_basename in
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ darwin* | rhapsody*)
+ _LT_DARWIN_LINKER_FEATURES($1)
+ ;;
+
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ freebsd[[12]]*)
+ # C++ shared libraries reported to be fairly broken before
+ # switch to ELF
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ freebsd-elf*)
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ ;;
+
+ freebsd* | dragonfly*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+
+ gnu*)
+ ;;
+
+ hpux9*)
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ hpux10*|hpux11*)
+ if test $with_gnu_ld = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ ;;
+ *)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+ esac
+ fi
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+ ;;
+ esac
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test $with_gnu_ld = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ fi
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ interix[[3-9]]*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+ irix5* | irix6*)
+ case $cc_basename in
+ CC*)
+ # SGI C++
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+
+ # Archives containing C++ object files must be created using
+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
+ fi
+ fi
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+ esac
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(inherit_rpath, $1)=yes
+ ;;
+
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # Archives containing C++ object files must be created using
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
+ ;;
+ icpc* | ecpc* )
+ # Intel C++
+ with_gnu_ld=yes
+ # version 8.0 and above of icpc choke on multiply defined symbols
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
+ # earlier do not add the objects themselves.
+ case `$CC -V 2>&1` in
+ *"Version 7."*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ *) # Version 8.0 or newer
+ tmp_idyn=
+ case $host_cpu in
+ ia64*) tmp_idyn=' -i_dynamic';;
+ esac
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ esac
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ case `$CC -V` in
+ *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
+ _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
+ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
+ _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
+ $RANLIB $oldlib'
+ _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+ ;;
+ *) # Version 6 will use weak symbols
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ ;;
+ cxx*)
+ # Compaq C++
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
+
+ runpath_var=LD_RUN_PATH
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ xl*)
+ # IBM XL 8.0 on PPC, with GNU ld
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
+
+ # Not sure whether something based on
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+ # would be better.
+ output_verbose_link_cmd='echo'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ lynxos*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ m88k*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+ wlarc=
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ fi
+ # Workaround some broken pre-1.5 toolchains
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
+ ;;
+
+ *nto* | *qnx*)
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+
+ openbsd2*)
+ # C++ shared libraries are fairly broken
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ fi
+ output_verbose_link_cmd=echo
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Archives containing C++ object files must be created using
+ # the KAI C++ compiler.
+ case $host in
+ osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
+ *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
+ esac
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ cxx*)
+ case $host in
+ osf3*)
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ ;;
+ *)
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
+ echo "-hidden">> $lib.exp~
+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
+ $RM $lib.exp'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ *)
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ case $host in
+ osf3*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ psos*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ lcc*)
+ # Lucid
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ solaris*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ ;;
+ esac
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+
+ output_verbose_link_cmd='echo'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+
+ # The C++ compiler must be used to create the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+ ;;
+ *)
+ # GNU C++ compiler with Solaris linker
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
+ if $CC --version | $GREP -v '^2\.7' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+ else
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
+ # platform.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+ fi
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ vxworks*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+
+ AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+ test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+ _LT_TAGVAR(GCC, $1)="$GXX"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_SYS_HIDDEN_LIBDEPS($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ CC=$lt_save_CC
+ LDCXX=$LD
+ LD=$lt_save_LD
+ GCC=$lt_save_GCC
+ with_gnu_ld=$lt_save_with_gnu_ld
+ lt_cv_path_LDCXX=$lt_cv_path_LD
+ lt_cv_path_LD=$lt_save_path_LD
+ lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+fi # test "$_lt_caught_CXX_error" != yes
+
+AC_LANG_POP
+])# _LT_LANG_CXX_CONFIG
+
+
+# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
+# ---------------------------------
+# Figure out "hidden" library dependencies from verbose
+# compiler output when linking a shared library.
+# Parse the compiler output and extract the necessary
+# objects, libraries and library flags.
+m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+# Dependencies to place before and after the object being linked:
+_LT_TAGVAR(predep_objects, $1)=
+_LT_TAGVAR(postdep_objects, $1)=
+_LT_TAGVAR(predeps, $1)=
+_LT_TAGVAR(postdeps, $1)=
+_LT_TAGVAR(compiler_lib_search_path, $1)=
+
+dnl we can't use the lt_simple_compile_test_code here,
+dnl because it contains code intended for an executable,
+dnl not a library. It's possible we should let each
+dnl tag define a new lt_????_link_test_code variable,
+dnl but it's only used here...
+m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
+int a;
+void foo (void) { a = 0; }
+_LT_EOF
+], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
+class Foo
+{
+public:
+ Foo (void) { a = 0; }
+private:
+ int a;
+};
+_LT_EOF
+], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
+ subroutine foo
+ implicit none
+ integer*4 a
+ a=0
+ return
+ end
+_LT_EOF
+], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
+ subroutine foo
+ implicit none
+ integer a
+ a=0
+ return
+ end
+_LT_EOF
+], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
+public class foo {
+ private int a;
+ public void bar (void) {
+ a = 0;
+ }
+};
+_LT_EOF
+])
+dnl Parse the compiler output and extract the necessary
+dnl objects, libraries and library flags.
+if AC_TRY_EVAL(ac_compile); then
+ # Parse the compiler output and extract the necessary
+ # objects, libraries and library flags.
+
+ # Sentinel used to keep track of whether or not we are before
+ # the conftest object file.
+ pre_test_object_deps_done=no
+
+ for p in `eval "$output_verbose_link_cmd"`; do
+ case $p in
+
+ -L* | -R* | -l*)
+ # Some compilers place space between "-{L,R}" and the path.
+ # Remove the space.
+ if test $p = "-L" ||
+ test $p = "-R"; then
+ prev=$p
+ continue
+ else
+ prev=
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ case $p in
+ -L* | -R*)
+ # Internal compiler library paths should come after those
+ # provided the user. The postdeps already come after the
+ # user supplied libs so there is no need to process them.
+ if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
+ else
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
+ fi
+ ;;
+ # The "-l" case would never come before the object being
+ # linked, so don't bother handling this case.
+ esac
+ else
+ if test -z "$_LT_TAGVAR(postdeps, $1)"; then
+ _LT_TAGVAR(postdeps, $1)="${prev}${p}"
+ else
+ _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
+ fi
+ fi
+ ;;
+
+ *.$objext)
+ # This assumes that the test object file only shows up
+ # once in the compiler output.
+ if test "$p" = "conftest.$objext"; then
+ pre_test_object_deps_done=yes
+ continue
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
+ _LT_TAGVAR(predep_objects, $1)="$p"
+ else
+ _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
+ fi
+ else
+ if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
+ _LT_TAGVAR(postdep_objects, $1)="$p"
+ else
+ _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
+ fi
+ fi
+ ;;
+
+ *) ;; # Ignore the rest.
+
+ esac
+ done
+
+ # Clean up.
+ rm -f a.out a.exe
+else
+ echo "libtool.m4: error: problem compiling $1 test program"
+fi
+
+$RM -f confest.$objext
+
+# PORTME: override above test on systems where it is broken
+m4_if([$1], [CXX],
+[case $host_os in
+interix[[3-9]]*)
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
+ # hack all around it, let's just trust "g++" to DTRT.
+ _LT_TAGVAR(predep_objects,$1)=
+ _LT_TAGVAR(postdep_objects,$1)=
+ _LT_TAGVAR(postdeps,$1)=
+ ;;
+
+linux*)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+
+solaris*)
+ case $cc_basename in
+ CC*)
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ # Adding this requires a known-good setup of shared libraries for
+ # Sun compiler versions before 5.6, else PIC objects from an old
+ # archive will be linked into the output, leading to subtle bugs.
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+esac
+])
+
+case " $_LT_TAGVAR(postdeps, $1) " in
+*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
+esac
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=
+if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
+fi
+_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
+ [The directories searched by this compiler when creating a shared library])
+_LT_TAGDECL([], [predep_objects], [1],
+ [Dependencies to place before and after the objects being linked to
+ create a shared library])
+_LT_TAGDECL([], [postdep_objects], [1])
+_LT_TAGDECL([], [predeps], [1])
+_LT_TAGDECL([], [postdeps], [1])
+_LT_TAGDECL([], [compiler_lib_search_path], [1],
+ [The library search path used internally by the compiler when linking
+ a shared library])
+])# _LT_SYS_HIDDEN_LIBDEPS
+
+
+# _LT_PROG_F77
+# ------------
+# Since AC_PROG_F77 is broken, in that it returns the empty string
+# if there is no fortran compiler, we have our own version here.
+m4_defun([_LT_PROG_F77],
+[
+pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
+AC_PROG_F77
+if test -z "$F77" || test "X$F77" = "Xno"; then
+ _lt_disable_F77=yes
+fi
+popdef([AC_MSG_ERROR])
+])# _LT_PROG_F77
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([_LT_PROG_F77], [])
+
+
+# _LT_LANG_F77_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a Fortran 77 compiler are
+# suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_F77_CONFIG],
+[AC_REQUIRE([_LT_PROG_F77])dnl
+AC_LANG_PUSH(Fortran 77)
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the F77 compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_disable_F77" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code="\
+ program t
+ end
+"
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC="$CC"
+ lt_save_GCC=$GCC
+ CC=${F77-"f77"}
+ compiler=$CC
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+ GCC=$G77
+ if test -n "$compiler"; then
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_TAGVAR(GCC, $1)="$G77"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ GCC=$lt_save_GCC
+ CC="$lt_save_CC"
+fi # test "$_lt_disable_F77" != yes
+
+AC_LANG_POP
+])# _LT_LANG_F77_CONFIG
+
+
+# _LT_PROG_FC
+# -----------
+# Since AC_PROG_FC is broken, in that it returns the empty string
+# if there is no fortran compiler, we have our own version here.
+m4_defun([_LT_PROG_FC],
+[
+pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
+AC_PROG_FC
+if test -z "$FC" || test "X$FC" = "Xno"; then
+ _lt_disable_FC=yes
+fi
+popdef([AC_MSG_ERROR])
+])# _LT_PROG_FC
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([_LT_PROG_FC], [])
+
+
+# _LT_LANG_FC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for a Fortran compiler are
+# suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_FC_CONFIG],
+[AC_REQUIRE([_LT_PROG_FC])dnl
+AC_LANG_PUSH(Fortran)
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for fc test sources.
+ac_ext=${ac_fc_srcext-f}
+
+# Object file extension for compiled fc test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the FC compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_disable_FC" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code="\
+ program t
+ end
+"
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC="$CC"
+ lt_save_GCC=$GCC
+ CC=${FC-"f95"}
+ compiler=$CC
+ GCC=$ac_cv_fc_compiler_gnu
+
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+
+ if test -n "$compiler"; then
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_SYS_HIDDEN_LIBDEPS($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ GCC=$lt_save_GCC
+ CC="$lt_save_CC"
+fi # test "$_lt_disable_FC" != yes
+
+AC_LANG_POP
+])# _LT_LANG_FC_CONFIG
+
+
+# _LT_LANG_GCJ_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for the GNU Java Compiler compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_GCJ_CONFIG],
+[AC_REQUIRE([LT_PROG_GCJ])dnl
+AC_LANG_SAVE
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="class foo {}"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+lt_save_GCC=$GCC
+GCC=yes
+CC=${GCJ-"gcj"}
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_TAGVAR(LD, $1)="$LD"
+_LT_CC_BASENAME([$compiler])
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+
+if test -n "$compiler"; then
+ _LT_COMPILER_NO_RTTI($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+fi
+
+AC_LANG_RESTORE
+
+GCC=$lt_save_GCC
+CC="$lt_save_CC"
+])# _LT_LANG_GCJ_CONFIG
+
+
+# _LT_LANG_RC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for the Windows resource compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_RC_CONFIG],
+[AC_REQUIRE([LT_PROG_RC])dnl
+AC_LANG_SAVE
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="$lt_simple_compile_test_code"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+lt_save_GCC=$GCC
+GCC=
+CC=${RC-"windres"}
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+
+if test -n "$compiler"; then
+ :
+ _LT_CONFIG($1)
+fi
+
+GCC=$lt_save_GCC
+AC_LANG_RESTORE
+CC="$lt_save_CC"
+])# _LT_LANG_RC_CONFIG
+
+
+# LT_PROG_GCJ
+# -----------
+AC_DEFUN([LT_PROG_GCJ],
+[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
+ [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
+ [AC_CHECK_TOOL(GCJ, gcj,)
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
+ AC_SUBST(GCJFLAGS)])])[]dnl
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
+
+
+# LT_PROG_RC
+# ----------
+AC_DEFUN([LT_PROG_RC],
+[AC_CHECK_TOOL(RC, windres,)
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_RC], [])
+
+
+# _LT_DECL_EGREP
+# --------------
+# If we don't have a new enough Autoconf to choose the best grep
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_EGREP],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_REQUIRE([AC_PROG_FGREP])dnl
+test -z "$GREP" && GREP=grep
+_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
+_LT_DECL([], [EGREP], [1], [An ERE matcher])
+_LT_DECL([], [FGREP], [1], [A literal string matcher])
+dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
+AC_SUBST([GREP])
+])
+
+
+# _LT_DECL_OBJDUMP
+# --------------
+# If we don't have a new enough Autoconf to choose the best objdump
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_OBJDUMP],
+[AC_CHECK_TOOL(OBJDUMP, objdump, false)
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
+AC_SUBST([OBJDUMP])
+])
+
+
+# _LT_DECL_SED
+# ------------
+# Check for a fully-functional sed program, that truncates
+# as few characters as possible. Prefer GNU sed if found.
+m4_defun([_LT_DECL_SED],
+[AC_PROG_SED
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
+_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
+ [Sed that helps us avoid accidentally triggering echo(1) options like -n])
+])# _LT_DECL_SED
+
+m4_ifndef([AC_PROG_SED], [
+# NOTE: This macro has been submitted for inclusion into #
+# GNU Autoconf as AC_PROG_SED. When it is available in #
+# a released version of Autoconf we should remove this #
+# macro and use it instead. #
+
+m4_defun([AC_PROG_SED],
+[AC_MSG_CHECKING([for a sed that does not truncate output])
+AC_CACHE_VAL(lt_cv_path_SED,
+[# Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for lt_ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
+ fi
+ done
+ done
+done
+IFS=$as_save_IFS
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+ test ! -f $lt_ac_sed && continue
+ cat /dev/null > conftest.in
+ lt_ac_count=0
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
+ # Check for GNU sed and select it if it is found.
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
+ lt_cv_path_SED=$lt_ac_sed
+ break
+ fi
+ while true; do
+ cat conftest.in conftest.in >conftest.tmp
+ mv conftest.tmp conftest.in
+ cp conftest.in conftest.nl
+ echo >>conftest.nl
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
+ cmp -s conftest.out conftest.nl || break
+ # 10000 chars as input seems more than enough
+ test $lt_ac_count -gt 10 && break
+ lt_ac_count=`expr $lt_ac_count + 1`
+ if test $lt_ac_count -gt $lt_ac_max; then
+ lt_ac_max=$lt_ac_count
+ lt_cv_path_SED=$lt_ac_sed
+ fi
+ done
+done
+])
+SED=$lt_cv_path_SED
+AC_SUBST([SED])
+AC_MSG_RESULT([$SED])
+])#AC_PROG_SED
+])#m4_ifndef
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_SED], [])
+
+
+# _LT_CHECK_SHELL_FEATURES
+# ------------------------
+# Find out whether the shell is Bourne or XSI compatible,
+# or has some other useful features.
+m4_defun([_LT_CHECK_SHELL_FEATURES],
+[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
+# Try some XSI features
+xsi_shell=no
+( _lt_dummy="a/b/c"
+ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
+ = c,a/b,, \
+ && eval 'test $(( 1 + 1 )) -eq 2 \
+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
+ && xsi_shell=yes
+AC_MSG_RESULT([$xsi_shell])
+_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
+
+AC_MSG_CHECKING([whether the shell understands "+="])
+lt_shell_append=no
+( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
+ >/dev/null 2>&1 \
+ && lt_shell_append=yes
+AC_MSG_RESULT([$lt_shell_append])
+_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
+
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ lt_unset=unset
+else
+ lt_unset=false
+fi
+_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ lt_SP2NL='tr \040 \012'
+ lt_NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ lt_SP2NL='tr \100 \n'
+ lt_NL2SP='tr \r\n \100\100'
+ ;;
+esac
+_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
+_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
+])# _LT_CHECK_SHELL_FEATURES
+
+
+# _LT_PROG_XSI_SHELLFNS
+# ---------------------
+# Bourne and XSI compatible variants of some useful shell functions.
+m4_defun([_LT_PROG_XSI_SHELLFNS],
+[case $xsi_shell in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result="${1##*/}"
+}
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+ func_basename_result="${1##*/}"
+}
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+func_stripname ()
+{
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
+ # positional parameters, so assign one to ordinary parameter first.
+ func_stripname_result=${3}
+ func_stripname_result=${func_stripname_result#"${1}"}
+ func_stripname_result=${func_stripname_result%"${2}"}
+}
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=${1%%=*}
+ func_opt_split_arg=${1#*=}
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ case ${1} in
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
+ *) func_lo2o_result=${1} ;;
+ esac
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=${1%.*}.lo
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=$(( $[*] ))
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=${#1}
+}
+
+_LT_EOF
+ ;;
+ *) # Bourne compatible functions.
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
+}
+
+dnl func_dirname_and_basename
+dnl A portable version of this function is already defined in general.m4sh
+dnl so there is no need for it here.
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+# func_strip_suffix prefix name
+func_stripname ()
+{
+ case ${2} in
+ .*) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
+ *) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
+ esac
+}
+
+# sed scripts:
+my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
+my_sed_long_arg='1s/^-[[^=]]*=//'
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
+ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=`expr "$[@]"`
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
+}
+
+_LT_EOF
+esac
+
+case $lt_shell_append in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$[1]+=\$[2]"
+}
+_LT_EOF
+ ;;
+ *)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$[1]=\$$[1]\$[2]"
+}
+
+_LT_EOF
+ ;;
+ esac
+])
+
+# Helper functions for option handling. -*- Autoconf -*-
+#
+# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gary V. Vaughan, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 6 ltoptions.m4
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
+
+
+# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
+# ------------------------------------------
+m4_define([_LT_MANGLE_OPTION],
+[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
+
+
+# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
+# ---------------------------------------
+# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
+# matching handler defined, dispatch to it. Other OPTION-NAMEs are
+# saved as a flag.
+m4_define([_LT_SET_OPTION],
+[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
+m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
+ _LT_MANGLE_DEFUN([$1], [$2]),
+ [m4_warning([Unknown $1 option `$2'])])[]dnl
+])
+
+
+# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
+# ------------------------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+m4_define([_LT_IF_OPTION],
+[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
+
+
+# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
+# -------------------------------------------------------
+# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
+# are set.
+m4_define([_LT_UNLESS_OPTIONS],
+[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
+ [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
+ [m4_define([$0_found])])])[]dnl
+m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
+])[]dnl
+])
+
+
+# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
+# ----------------------------------------
+# OPTION-LIST is a space-separated list of Libtool options associated
+# with MACRO-NAME. If any OPTION has a matching handler declared with
+# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
+# the unknown option and exit.
+m4_defun([_LT_SET_OPTIONS],
+[# Set options
+m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
+ [_LT_SET_OPTION([$1], _LT_Option)])
+
+m4_if([$1],[LT_INIT],[
+ dnl
+ dnl Simply set some default values (i.e off) if boolean options were not
+ dnl specified:
+ _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
+ ])
+ _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
+ ])
+ dnl
+ dnl If no reference was made to various pairs of opposing options, then
+ dnl we run the default mode handler for the pair. For example, if neither
+ dnl `shared' nor `disable-shared' was passed, we enable building of shared
+ dnl archives by default:
+ _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
+ _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
+ _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
+ _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
+ [_LT_ENABLE_FAST_INSTALL])
+ ])
+])# _LT_SET_OPTIONS
+
+
+
+# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
+# -----------------------------------------
+m4_define([_LT_MANGLE_DEFUN],
+[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
+
+
+# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
+# -----------------------------------------------
+m4_define([LT_OPTION_DEFINE],
+[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
+])# LT_OPTION_DEFINE
+
+
+# dlopen
+# ------
+LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
+])
+
+AU_DEFUN([AC_LIBTOOL_DLOPEN],
+[_LT_SET_OPTION([LT_INIT], [dlopen])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the `dlopen' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
+
+
+# win32-dll
+# ---------
+# Declare package support for building win32 dll's.
+LT_OPTION_DEFINE([LT_INIT], [win32-dll],
+[enable_win32_dll=yes
+
+case $host in
+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
+ AC_CHECK_TOOL(AS, as, false)
+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
+ ;;
+esac
+
+test -z "$AS" && AS=as
+_LT_DECL([], [AS], [0], [Assembler program])dnl
+
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
+])# win32-dll
+
+AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+_LT_SET_OPTION([LT_INIT], [win32-dll])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the `win32-dll' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
+
+
+# _LT_ENABLE_SHARED([DEFAULT])
+# ----------------------------
+# implement the --enable-shared flag, and supports the `shared' and
+# `disable-shared' LT_INIT options.
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+m4_define([_LT_ENABLE_SHARED],
+[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([shared],
+ [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
+ [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_shared=yes ;;
+ no) enable_shared=no ;;
+ *)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
+
+ _LT_DECL([build_libtool_libs], [enable_shared], [0],
+ [Whether or not to build shared libraries])
+])# _LT_ENABLE_SHARED
+
+LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
+
+# Old names:
+AC_DEFUN([AC_ENABLE_SHARED],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
+])
+
+AC_DEFUN([AC_DISABLE_SHARED],
+[_LT_SET_OPTION([LT_INIT], [disable-shared])
+])
+
+AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
+AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_ENABLE_SHARED], [])
+dnl AC_DEFUN([AM_DISABLE_SHARED], [])
+
+
+
+# _LT_ENABLE_STATIC([DEFAULT])
+# ----------------------------
+# implement the --enable-static flag, and support the `static' and
+# `disable-static' LT_INIT options.
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+m4_define([_LT_ENABLE_STATIC],
+[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([static],
+ [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
+ [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_static=yes ;;
+ no) enable_static=no ;;
+ *)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
+
+ _LT_DECL([build_old_libs], [enable_static], [0],
+ [Whether or not to build static libraries])
+])# _LT_ENABLE_STATIC
+
+LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
+
+# Old names:
+AC_DEFUN([AC_ENABLE_STATIC],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
+])
+
+AC_DEFUN([AC_DISABLE_STATIC],
+[_LT_SET_OPTION([LT_INIT], [disable-static])
+])
+
+AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
+AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_ENABLE_STATIC], [])
+dnl AC_DEFUN([AM_DISABLE_STATIC], [])
+
+
+
+# _LT_ENABLE_FAST_INSTALL([DEFAULT])
+# ----------------------------------
+# implement the --enable-fast-install flag, and support the `fast-install'
+# and `disable-fast-install' LT_INIT options.
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+m4_define([_LT_ENABLE_FAST_INSTALL],
+[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([fast-install],
+ [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
+ [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_fast_install=yes ;;
+ no) enable_fast_install=no ;;
+ *)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
+
+_LT_DECL([fast_install], [enable_fast_install], [0],
+ [Whether or not to optimize for fast installation])dnl
+])# _LT_ENABLE_FAST_INSTALL
+
+LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
+
+# Old names:
+AU_DEFUN([AC_ENABLE_FAST_INSTALL],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
+the `fast-install' option into LT_INIT's first parameter.])
+])
+
+AU_DEFUN([AC_DISABLE_FAST_INSTALL],
+[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
+the `disable-fast-install' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
+dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
+
+
+# _LT_WITH_PIC([MODE])
+# --------------------
+# implement the --with-pic flag, and support the `pic-only' and `no-pic'
+# LT_INIT options.
+# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
+m4_define([_LT_WITH_PIC],
+[AC_ARG_WITH([pic],
+ [AS_HELP_STRING([--with-pic],
+ [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
+ [pic_mode="$withval"],
+ [pic_mode=default])
+
+test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
+
+_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
+])# _LT_WITH_PIC
+
+LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
+LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
+
+# Old name:
+AU_DEFUN([AC_LIBTOOL_PICMODE],
+[_LT_SET_OPTION([LT_INIT], [pic-only])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the `pic-only' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
+
+
+m4_define([_LTDL_MODE], [])
+LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
+ [m4_define([_LTDL_MODE], [nonrecursive])])
+LT_OPTION_DEFINE([LTDL_INIT], [recursive],
+ [m4_define([_LTDL_MODE], [recursive])])
+LT_OPTION_DEFINE([LTDL_INIT], [subproject],
+ [m4_define([_LTDL_MODE], [subproject])])
+
+m4_define([_LTDL_TYPE], [])
+LT_OPTION_DEFINE([LTDL_INIT], [installable],
+ [m4_define([_LTDL_TYPE], [installable])])
+LT_OPTION_DEFINE([LTDL_INIT], [convenience],
+ [m4_define([_LTDL_TYPE], [convenience])])
+
+# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
+#
+# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gary V. Vaughan, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 6 ltsugar.m4
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
+
+
+# lt_join(SEP, ARG1, [ARG2...])
+# -----------------------------
+# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
+# associated separator.
+# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
+# versions in m4sugar had bugs.
+m4_define([lt_join],
+[m4_if([$#], [1], [],
+ [$#], [2], [[$2]],
+ [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
+m4_define([_lt_join],
+[m4_if([$#$2], [2], [],
+ [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
+
+
+# lt_car(LIST)
+# lt_cdr(LIST)
+# ------------
+# Manipulate m4 lists.
+# These macros are necessary as long as will still need to support
+# Autoconf-2.59 which quotes differently.
+m4_define([lt_car], [[$1]])
+m4_define([lt_cdr],
+[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
+ [$#], 1, [],
+ [m4_dquote(m4_shift($@))])])
+m4_define([lt_unquote], $1)
+
+
+# lt_append(MACRO-NAME, STRING, [SEPARATOR])
+# ------------------------------------------
+# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
+# Note that neither SEPARATOR nor STRING are expanded; they are appended
+# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
+# No SEPARATOR is output if MACRO-NAME was previously undefined (different
+# than defined and empty).
+#
+# This macro is needed until we can rely on Autoconf 2.62, since earlier
+# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
+m4_define([lt_append],
+[m4_define([$1],
+ m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
+
+
+
+# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
+# ----------------------------------------------------------
+# Produce a SEP delimited list of all paired combinations of elements of
+# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
+# has the form PREFIXmINFIXSUFFIXn.
+# Needed until we can rely on m4_combine added in Autoconf 2.62.
+m4_define([lt_combine],
+[m4_if(m4_eval([$# > 3]), [1],
+ [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
+[[m4_foreach([_Lt_prefix], [$2],
+ [m4_foreach([_Lt_suffix],
+ ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
+ [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
+
+
+# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
+# -----------------------------------------------------------------------
+# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
+# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
+m4_define([lt_if_append_uniq],
+[m4_ifdef([$1],
+ [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
+ [lt_append([$1], [$2], [$3])$4],
+ [$5])],
+ [lt_append([$1], [$2], [$3])$4])])
+
+
+# lt_dict_add(DICT, KEY, VALUE)
+# -----------------------------
+m4_define([lt_dict_add],
+[m4_define([$1($2)], [$3])])
+
+
+# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
+# --------------------------------------------
+m4_define([lt_dict_add_subkey],
+[m4_define([$1($2:$3)], [$4])])
+
+
+# lt_dict_fetch(DICT, KEY, [SUBKEY])
+# ----------------------------------
+m4_define([lt_dict_fetch],
+[m4_ifval([$3],
+ m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
+ m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
+
+
+# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
+# -----------------------------------------------------------------
+m4_define([lt_if_dict_fetch],
+[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
+ [$5],
+ [$6])])
+
+
+# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
+# --------------------------------------------------------------
+m4_define([lt_dict_filter],
+[m4_if([$5], [], [],
+ [lt_join(m4_quote(m4_default([$4], [[, ]])),
+ lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
+ [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
+])
+
+# ltversion.m4 -- version numbers -*- Autoconf -*-
+#
+# Copyright (C) 2004 Free Software Foundation, Inc.
+# Written by Scott James Remnant, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# Generated from ltversion.in.
+
+# serial 3012 ltversion.m4
+# This file is part of GNU Libtool
+
+m4_define([LT_PACKAGE_VERSION], [2.2.6])
+m4_define([LT_PACKAGE_REVISION], [1.3012])
+
+AC_DEFUN([LTVERSION_VERSION],
+[macro_version='2.2.6'
+macro_revision='1.3012'
+_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
+_LT_DECL(, macro_revision, 0)
+])
+
+# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
+#
+# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
+# Written by Scott James Remnant, 2004.
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 4 lt~obsolete.m4
+
+# These exist entirely to fool aclocal when bootstrapping libtool.
+#
+# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
+# which have later been changed to m4_define as they aren't part of the
+# exported API, or moved to Autoconf or Automake where they belong.
+#
+# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
+# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
+# using a macro with the same name in our local m4/libtool.m4 it'll
+# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
+# and doesn't know about Autoconf macros at all.)
+#
+# So we provide this file, which has a silly filename so it's always
+# included after everything else. This provides aclocal with the
+# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
+# because those macros already exist, or will be overwritten later.
+# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
+#
+# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
+# Yes, that means every name once taken will need to remain here until
+# we give up compatibility with versions before 1.7, at which point
+# we need to keep only those names which we still refer to.
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
+
+m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
+m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
+m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
+m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
+m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
+m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
+m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
+m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
+m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
+m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
+m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
+m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
+m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
+m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
+m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
+m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
+m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
+m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
+m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
+m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
+m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
+m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
+m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
+m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
+m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
+m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
+m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
+m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
+m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
+m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
+m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
+m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
+m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
+m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
+m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
+m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
+m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
+m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
+m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
+m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
+m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
+m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
+m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
+m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
+m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
+m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
+m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
+m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
+
+# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
+#
+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
+# ----------------------------------
+AC_DEFUN([PKG_PROG_PKG_CONFIG],
+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+ AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
+fi
+if test -n "$PKG_CONFIG"; then
+ _pkg_min_version=m4_default([$1], [0.9.0])
+ AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ PKG_CONFIG=""
+ fi
+
+fi[]dnl
+])# PKG_PROG_PKG_CONFIG
+
+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+#
+# Check to see whether a particular set of modules exists. Similar
+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
+#
+#
+# Similar to PKG_CHECK_MODULES, make sure that the first instance of
+# this or PKG_CHECK_MODULES is called, or make sure to call
+# PKG_CHECK_EXISTS manually
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_EXISTS],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+if test -n "$PKG_CONFIG" && \
+ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
+ m4_ifval([$2], [$2], [:])
+m4_ifvaln([$3], [else
+ $3])dnl
+fi])
+
+
+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
+# ---------------------------------------------
+m4_define([_PKG_CONFIG],
+[if test -n "$$1"; then
+ pkg_cv_[]$1="$$1"
+ elif test -n "$PKG_CONFIG"; then
+ PKG_CHECK_EXISTS([$3],
+ [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
+ [pkg_failed=yes])
+ else
+ pkg_failed=untried
+fi[]dnl
+])# _PKG_CONFIG
+
+# _PKG_SHORT_ERRORS_SUPPORTED
+# -----------------------------
+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi[]dnl
+])# _PKG_SHORT_ERRORS_SUPPORTED
+
+
+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
+# [ACTION-IF-NOT-FOUND])
+#
+#
+# Note that if there is a possibility the first call to
+# PKG_CHECK_MODULES might not happen, you should be sure to include an
+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
+#
+#
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_MODULES],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
+
+pkg_failed=no
+AC_MSG_CHECKING([for $1])
+
+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
+
+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
+and $1[]_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.])
+
+if test $pkg_failed = yes; then
+ _PKG_SHORT_ERRORS_SUPPORTED
+ if test $_pkg_short_errors_supported = yes; then
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
+ else
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
+
+ ifelse([$4], , [AC_MSG_ERROR(dnl
+[Package requirements ($2) were not met:
+
+$$1_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+_PKG_TEXT
+])],
+ [AC_MSG_RESULT([no])
+ $4])
+elif test $pkg_failed = untried; then
+ ifelse([$4], , [AC_MSG_FAILURE(dnl
+[The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+_PKG_TEXT
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
+ [$4])
+else
+ $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
+ $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
+ AC_MSG_RESULT([yes])
+ ifelse([$3], , :, [$3])
+fi[]dnl
+])# PKG_CHECK_MODULES
+
+# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.10'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version. Point them to the right macro.
+m4_if([$1], [1.10.2], [],
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too. Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.10.2])dnl
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
+
+# Figure out how to run the assembler. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# AM_PROG_AS
+# ----------
+AC_DEFUN([AM_PROG_AS],
+[# By default we simply use the C compiler to build assembly code.
+AC_REQUIRE([AC_PROG_CC])
+test "${CCAS+set}" = set || CCAS=$CC
+test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
+AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
+AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
+_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
+])
+
+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
+
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
+#
+# Of course, Automake must honor this variable whenever it calls a
+# tool from the auxiliary directory. The problem is that $srcdir (and
+# therefore $ac_aux_dir as well) can be either absolute or relative,
+# depending on how configure is run. This is pretty annoying, since
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+# source directory, any form will work fine, but in subdirectories a
+# relative path needs to be adjusted first.
+#
+# $ac_aux_dir/missing
+# fails when called from a subdirectory if $ac_aux_dir is relative
+# $top_srcdir/$ac_aux_dir/missing
+# fails if $ac_aux_dir is absolute,
+# fails when called from a subdirectory in a VPATH build with
+# a relative $ac_aux_dir
+#
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+# are both prefixed by $srcdir. In an in-source build this is usually
+# harmless because $srcdir is `.', but things will broke when you
+# start a VPATH build or use an absolute $srcdir.
+#
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
+# and then we would define $MISSING as
+# MISSING="\${SHELL} $am_aux_dir/missing"
+# This will work as long as MISSING is not called from configure, because
+# unfortunately $(top_srcdir) has no meaning in configure.
+# However there are other variables, like CC, which are often used in
+# configure, and could therefore not use this "fixed" $ac_aux_dir.
+#
+# Another solution, used here, is to always expand $ac_aux_dir to an
+# absolute PATH. The drawback is that using absolute paths prevent a
+# configured tree to be moved without reconfiguration.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[dnl Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])dnl
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+])
+
+# AM_CONDITIONAL -*- Autoconf -*-
+
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 8
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[AC_PREREQ(2.52)dnl
+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+AC_SUBST([$1_TRUE])dnl
+AC_SUBST([$1_FALSE])dnl
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+if $2; then
+ $1_TRUE=
+ $1_FALSE='#'
+else
+ $1_TRUE='#'
+ $1_FALSE=
+fi
+AC_CONFIG_COMMANDS_PRE(
+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
+ AC_MSG_ERROR([[conditional "$1" was never defined.
+Usually this means the macro was only invoked conditionally.]])
+fi])])
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 9
+
+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
+# written in clear, in which case automake, when reading aclocal.m4,
+# will think it sees a *use*, and therefore will trigger all it's
+# C support machinery. Also note that it means that autoscan, seeing
+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
+
+
+# _AM_DEPENDENCIES(NAME)
+# ----------------------
+# See how the compiler implements dependency checking.
+# NAME is "CC", "CXX", "GCJ", or "OBJC".
+# We try a few techniques and use that to set a single cache variable.
+#
+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+# dependency, and given that the user is not expected to run this macro,
+# just rely on AC_PROG_CC.
+AC_DEFUN([_AM_DEPENDENCIES],
+[AC_REQUIRE([AM_SET_DEPDIR])dnl
+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+AC_REQUIRE([AM_DEP_TRACK])dnl
+
+ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
+ [$1], CXX, [depcc="$CXX" am_compiler_list=],
+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
+ [$1], UPC, [depcc="$UPC" am_compiler_list=],
+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
+ [depcc="$$1" am_compiler_list=])
+
+AC_CACHE_CHECK([dependency style of $depcc],
+ [am_cv_$1_dependencies_compiler_type],
+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_$1_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
+ fi
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ case $depmode in
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ none) break ;;
+ esac
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this.
+ if depmode=$depmode \
+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_$1_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_$1_dependencies_compiler_type=none
+fi
+])
+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+AM_CONDITIONAL([am__fastdep$1], [
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
+])
+
+
+# AM_SET_DEPDIR
+# -------------
+# Choose a directory name for dependency files.
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
+AC_DEFUN([AM_SET_DEPDIR],
+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
+])
+
+
+# AM_DEP_TRACK
+# ------------
+AC_DEFUN([AM_DEP_TRACK],
+[AC_ARG_ENABLE(dependency-tracking,
+[ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors])
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+fi
+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
+AC_SUBST([AMDEPBACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+])
+
+# Generate code to set up dependency tracking. -*- Autoconf -*-
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+#serial 4
+
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
+# ------------------------------
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+[# Autoconf 2.62 quotes --file arguments for eval, but not when files
+# are listed without --file. Let's play safe and only enable the eval
+# if we detect the quoting.
+case $CONFIG_FILES in
+*\'*) eval set x "$CONFIG_FILES" ;;
+*) set x $CONFIG_FILES ;;
+esac
+shift
+for mf
+do
+ # Strip MF so we end up with the name of the file.
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile or not.
+ # We used to match only the files named `Makefile.in', but
+ # some people rename them; so instead we look at the file content.
+ # Grep'ing the first line is not enough: some people post-process
+ # each Makefile.in and add a new line on top of each file to say so.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+ dirpart=`AS_DIRNAME("$mf")`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
+ # simplest approach to changing $(DEPDIR) to its actual value in the
+ # expansion.
+ for file in `sed -n "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`AS_DIRNAME(["$file"])`
+ AS_MKDIR_P([$dirpart/$fdir])
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+done
+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+
+
+# AM_OUTPUT_DEPENDENCY_COMMANDS
+# -----------------------------
+# This macro should only be invoked once -- use via AC_REQUIRE.
+#
+# This code is only required when automatic dependency tracking
+# is enabled. FIXME. This creates each `.P' file that we will
+# need in order to bootstrap the dependency handling code.
+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+[AC_CONFIG_COMMANDS([depfiles],
+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
+])
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 8
+
+# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
+AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
+
+# Do all the work for Automake. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2008 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 13
+
+# This macro actually does too much. Some checks are only needed if
+# your package does certain things. But this isn't really a big deal.
+
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+# AM_INIT_AUTOMAKE([OPTIONS])
+# -----------------------------------------------
+# The call with PACKAGE and VERSION arguments is the old style
+# call (pre autoconf-2.50), which is being phased out. PACKAGE
+# and VERSION should now be passed to AC_INIT and removed from
+# the call to AM_INIT_AUTOMAKE.
+# We support both call styles for the transition. After
+# the next Automake release, Autoconf can make the AC_INIT
+# arguments mandatory, and then we can depend on a new Autoconf
+# release and drop the old call support.
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_PREREQ([2.60])dnl
+dnl Autoconf wants to disallow AM_ names. We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+AC_SUBST([CYGPATH_W])
+
+# Define the identity of the package.
+dnl Distinguish between old-style and new-style calls.
+m4_ifval([$2],
+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+ AC_SUBST([PACKAGE], [$1])dnl
+ AC_SUBST([VERSION], [$2])],
+[_AM_SET_OPTIONS([$1])dnl
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+
+_AM_IF_OPTION([no-define],,
+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
+
+# Some tools Automake needs.
+AC_REQUIRE([AM_SANITY_CHECK])dnl
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
+AM_MISSING_PROG(AUTOCONF, autoconf)
+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
+AM_MISSING_PROG(AUTOHEADER, autoheader)
+AM_MISSING_PROG(MAKEINFO, makeinfo)
+AM_PROG_INSTALL_SH
+AM_PROG_INSTALL_STRIP
+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+ [_AM_PROG_TAR([v7])])])
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
+ [_AM_DEPENDENCIES(CC)],
+ [define([AC_PROG_CC],
+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [_AM_DEPENDENCIES(CXX)],
+ [define([AC_PROG_CXX],
+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+ [_AM_DEPENDENCIES(OBJC)],
+ [define([AC_PROG_OBJC],
+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
+])
+])
+
+
+# When config.status generates a header, we must update the stamp-h file.
+# This file resides in the same directory as the config header
+# that is generated. The stamp files are numbered to have different names.
+
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+# loop where config.status creates the headers, so we can generate
+# our stamp files there.
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+[# Compute $1's index in $config_headers.
+_am_arg=$1
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
+
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
+AC_SUBST(install_sh)])
+
+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# Check whether the underlying file-system supports filenames
+# with a leading dot. For instance MS-DOS doesn't.
+AC_DEFUN([AM_SET_LEADING_DOT],
+[rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+AC_SUBST([am__leading_dot])])
+
+# Check to see how 'make' treats includes. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 3
+
+# AM_MAKE_INCLUDE()
+# -----------------
+# Check to see how make treats includes.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo done
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+AC_MSG_CHECKING([for style of include used by $am_make])
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually "gmake"), in which
+# case it prints its new name instead of `make'.
+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
+ am__include=include
+ am__quote=
+ _am_result=GNU
+fi
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ fi
+fi
+AC_SUBST([am__include])
+AC_SUBST([am__quote])
+AC_MSG_RESULT([$_am_result])
+rm -f confinc confmf
+])
+
+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
+
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# AM_MISSING_PROG(NAME, PROGRAM)
+# ------------------------------
+AC_DEFUN([AM_MISSING_PROG],
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
+$1=${$1-"${am_missing_run}$2"}
+AC_SUBST($1)])
+
+
+# AM_MISSING_HAS_RUN
+# ------------------
+# Define MISSING if not defined so far and test if it supports --run.
+# If it does, set am_missing_run to use it, otherwise, to nothing.
+AC_DEFUN([AM_MISSING_HAS_RUN],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([missing])dnl
+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ AC_MSG_WARN([`missing' script is too old or missing])
+fi
+])
+
+# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_MKDIR_P
+# ---------------
+# Check for `mkdir -p'.
+AC_DEFUN([AM_PROG_MKDIR_P],
+[AC_PREREQ([2.60])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
+dnl while keeping a definition of mkdir_p for backward compatibility.
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
+dnl adjustment using top_builddir (which is defined more often than
+dnl MKDIR_P).
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
+case $mkdir_p in
+ [[\\/$]]* | ?:[[\\/]]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+])
+
+# Helper functions for option handling. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 4
+
+# _AM_MANGLE_OPTION(NAME)
+# -----------------------
+AC_DEFUN([_AM_MANGLE_OPTION],
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+
+# _AM_SET_OPTION(NAME)
+# ------------------------------
+# Set option NAME. Presently that only means defining a flag for this option.
+AC_DEFUN([_AM_SET_OPTION],
+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
+
+# _AM_SET_OPTIONS(OPTIONS)
+# ----------------------------------
+# OPTIONS is a space-separated list of Automake options.
+AC_DEFUN([_AM_SET_OPTIONS],
+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+# -------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+AC_DEFUN([_AM_IF_OPTION],
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 4
+
+# AM_SANITY_CHECK
+# ---------------
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
+ if test "$[*]" = "X"; then
+ # -L didn't work.
+ set X `ls -t $srcdir/configure conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
+alias in your environment])
+ fi
+
+ test "$[2]" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+AC_MSG_RESULT(yes)])
+
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# One issue with vendor `install' (even GNU) is that you can't
+# specify the program used to strip binaries. This is especially
+# annoying in cross-compiling environments, where the build's strip
+# is unlikely to handle the host's binaries.
+# Fortunately install-sh will honor a STRIPPROG variable, so we
+# always use install-sh in `make install-strip', and initialize
+# STRIPPROG with the value of the STRIP variable (set by the user).
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
+if test "$cross_compiling" != no; then
+ AC_CHECK_TOOL([STRIP], [strip], :)
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Copyright (C) 2006 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+
+# Check how to create a tarball. -*- Autoconf -*-
+
+# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of `v7', `ustar', or `pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+# tardir=directory && $(am__tar) > result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+# $(am__untar) < result.tar
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility.
+AM_MISSING_PROG([AMTAR], [tar])
+m4_if([$1], [v7],
+ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
+ [m4_case([$1], [ustar],, [pax],,
+ [m4_fatal([Unknown tar format])])
+AC_MSG_CHECKING([how to create a $1 tar archive])
+# Loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
+# Do not fold the above two line into one, because Tru64 sh and
+# Solaris sh will not grok spaces in the rhs of `-'.
+for _am_tool in $_am_tools
+do
+ case $_am_tool in
+ gnutar)
+ for _am_tar in tar gnutar gtar;
+ do
+ AM_RUN_LOG([$_am_tar --version]) && break
+ done
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+ am__untar="$_am_tar -xf -"
+ ;;
+ plaintar)
+ # Must skip GNU tar: if it does not support --format= it doesn't create
+ # ustar tarball either.
+ (tar --version) >/dev/null 2>&1 && continue
+ am__tar='tar chf - "$$tardir"'
+ am__tar_='tar chf - "$tardir"'
+ am__untar='tar xf -'
+ ;;
+ pax)
+ am__tar='pax -L -x $1 -w "$$tardir"'
+ am__tar_='pax -L -x $1 -w "$tardir"'
+ am__untar='pax -r'
+ ;;
+ cpio)
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+ am__untar='cpio -i -H $1 -d'
+ ;;
+ none)
+ am__tar=false
+ am__tar_=false
+ am__untar=false
+ ;;
+ esac
+
+ # If the value was cached, stop now. We just wanted to have am__tar
+ # and am__untar set.
+ test -n "${am_cv_prog_tar_$1}" && break
+
+ # tar/untar a dummy directory, and stop if the command works
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ echo GrepMe > conftest.dir/file
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+ rm -rf conftest.dir
+ if test -s conftest.tar; then
+ AM_RUN_LOG([$am__untar <conftest.tar])
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+ fi
+done
+rm -rf conftest.dir
+
+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..55bb120
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,93 @@
+#!/bin/sh
+# autogen.sh: Run this to set up the build system: configure, makefiles, etc.
+
+# copyright by the mpg123 project - free software under the terms of the LGPL 2.1
+# see COPYING and AUTHORS files in distribution or http://mpg123.org
+# initially written by Nicholas J. Humfrey
+
+package="mpg123"
+
+
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+cd "$srcdir"
+DIE=0
+
+(autoheader --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile $package."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+}
+
+(autoconf --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have autoconf installed to compile $package."
+ echo "Download the appropriate package for your distribution,"
+ echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
+ DIE=1
+}
+
+(automake --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have automake installed to compile $package."
+ echo "Download the appropriate package for your system,"
+ echo "or get the source from one of the GNU ftp sites"
+ echo "listed in http://www.gnu.org/order/ftp.html"
+ DIE=1
+}
+
+(libtoolize --version) < /dev/null > /dev/null 2>&1 || {
+ echo
+ echo "You must have libtool installed to compile $package."
+ echo "Download the appropriate package for your system,"
+ echo "or get the source from one of the GNU ftp sites"
+ echo "listed in http://www.gnu.org/order/ftp.html"
+ DIE=1
+}
+
+
+if test "$DIE" -eq 1; then
+ exit 1
+fi
+
+
+
+echo "Generating configuration files for $package, please wait...."
+
+# Create the (empty) build directory if it doesn't exist
+# Note the avoidance of the ! operator -- it is not portable!
+if [ -d build ]; then
+ echo " build dir is there"
+else
+ echo " creating build directory"
+ mkdir build
+fi
+
+
+
+run_cmd() {
+ echo " running $* ..."
+ if $*; then
+ echo " fine"
+ else
+ echo failed!
+ exit 1
+ fi
+}
+
+
+run_cmd libtoolize --force --copy &&
+run_cmd aclocal
+run_cmd autoheader
+run_cmd automake --add-missing --copy
+run_cmd autoconf
+
+# Create mpg123.spec here... so that configure doesn't recreate it all the time.
+NAME=`perl -ne 'if(/^AC_INIT\(\[([^,]*)\]/) { print $1; exit; }' < configure.ac`
+VERSION=`perl -ne 'if(/^AC_INIT\([^,]*,\s*\[([^,]*)\]/){ print $1; exit; }' < configure.ac`
+perl -pe 's/\@PACKAGE_NAME\@/'$NAME'/; s/\@PACKAGE_VERSION\@/'$VERSION'/;' < mpg123.spec.in > mpg123.spec
+
+$srcdir/configure --enable-debug && echo
diff --git a/build/config.guess b/build/config.guess
new file mode 100755
index 0000000..7b24a87
--- /dev/null
+++ b/build/config.guess
@@ -0,0 +1,1542 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
+
+timestamp='2008-11-15'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Originally written by Per Bothner <per@bothner.com>.
+# Please send patches to <config-patches@gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub. If it succeeds, it prints the system name on stdout, and
+# exits with 0. Otherwise, it exits with 1.
+#
+# The plan is that this can be called by configure scripts if you
+# don't specify an explicit build system type.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
+ if test x"$CC_FOR_BUILD" = x ; then
+ CC_FOR_BUILD=no_compiler_found ;
+ fi
+ ;;
+ ,,*) CC_FOR_BUILD=$CC ;;
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi@noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:NetBSD:*:*)
+ # NetBSD (nbsd) targets should (where applicable) match one or
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+ # switched to ELF, *-*-netbsd* would select the old
+ # object file format. This provides both forward
+ # compatibility and a consistent mechanism for selecting the
+ # object file format.
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ esac
+ # The Operating System including object format, if it has switched
+ # to ELF recently, or will in the future.
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep __ELF__ >/dev/null
+ then
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ # Return netbsd for either. FIX?
+ os=netbsd
+ else
+ os=netbsdelf
+ fi
+ ;;
+ *)
+ os=netbsd
+ ;;
+ esac
+ # The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ # contains redundant information, the shorter form:
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ echo "${machine}-${os}${release}"
+ exit ;;
+ *:OpenBSD:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ alpha:OSF1:*:*)
+ case $UNAME_RELEASE in
+ *4.0)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
+ # A Vn.n version is a released version.
+ # A Tn.n version is a released field test version.
+ # A Xn.n version is an unreleased experimental baselevel.
+ # 1.2 uses "1.2" for uname -r.
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ exit ;;
+ Alpha\ *:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # Should we change UNAME_MACHINE based on the output of uname instead
+ # of the specific Alpha model?
+ echo alpha-pc-interix
+ exit ;;
+ 21064:Windows_NT:50:3)
+ echo alpha-dec-winnt3.5
+ exit ;;
+ Amiga*:UNIX_System_V:4.0:*)
+ echo m68k-unknown-sysv4
+ exit ;;
+ *:[Aa]miga[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-amigaos
+ exit ;;
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
+ exit ;;
+ *:OS/390:*:*)
+ echo i370-ibm-openedition
+ exit ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit ;;
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ echo arm-acorn-riscix${UNAME_RELEASE}
+ exit ;;
+ arm:riscos:*:*|arm:RISCOS:*:*)
+ echo arm-unknown-riscos
+ exit ;;
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ echo hppa1.1-hitachi-hiuxmpp
+ exit ;;
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ echo pyramid-pyramid-sysv3
+ else
+ echo pyramid-pyramid-bsd
+ fi
+ exit ;;
+ NILE*:*:*:dcosx)
+ echo pyramid-pyramid-svr4
+ exit ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7; exit ;;
+ esac ;;
+ sun4H:SunOS:5.*:*)
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:6*:*)
+ # According to config.sub, this is the proper way to canonicalize
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+ # it's likely to be more like Solaris than SunOS4.
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:*:*)
+ case "`/usr/bin/arch -k`" in
+ Series*|S4*)
+ UNAME_RELEASE=`uname -v`
+ ;;
+ esac
+ # Japanese Language versions have a version number like `4.1.3-JL'.
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ exit ;;
+ sun3*:SunOS:*:*)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ exit ;;
+ sun*:*:4.2BSD:*)
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ case "`/bin/arch`" in
+ sun3)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ ;;
+ sun4)
+ echo sparc-sun-sunos${UNAME_RELEASE}
+ ;;
+ esac
+ exit ;;
+ aushp:SunOS:*:*)
+ echo sparc-auspex-sunos${UNAME_RELEASE}
+ exit ;;
+ # The situation for MiNT is a little confusing. The machine name
+ # can be virtually everything (everything which is not
+ # "atarist" or "atariste" at least should have a processor
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+ # to the lowercase version "mint" (or "freemint"). Finally
+ # the system name "TOS" denotes a system which is actually not
+ # MiNT. But MiNT is downward compatible to TOS, so this should
+ # be no problem.
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
+ powerpc:machten:*:*)
+ echo powerpc-apple-machten${UNAME_RELEASE}
+ exit ;;
+ RISC*:Mach:*:*)
+ echo mips-dec-mach_bsd4.3
+ exit ;;
+ RISC*:ULTRIX:*:*)
+ echo mips-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ VAX*:ULTRIX*:*:*)
+ echo vax-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
+ echo clipper-intergraph-clix${UNAME_RELEASE}
+ exit ;;
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h> /* for printf() prototype */
+ int main (int argc, char *argv[]) {
+#else
+ int main (argc, argv) int argc; char *argv[]; {
+#endif
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+ SYSTEM_NAME=`$dummy $dummyarg` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo mips-mips-riscos${UNAME_RELEASE}
+ exit ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:Power_UNIX:*:*)
+ echo powerpc-harris-powerunix
+ exit ;;
+ m88k:CX/UX:7*:*)
+ echo m88k-harris-cxux7
+ exit ;;
+ m88k:*:4*:R4*)
+ echo m88k-motorola-sysv4
+ exit ;;
+ m88k:*:3*:R3*)
+ echo m88k-motorola-sysv3
+ exit ;;
+ AViiON:dgux:*:*)
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ then
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
+ then
+ echo m88k-dg-dgux${UNAME_RELEASE}
+ else
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ fi
+ else
+ echo i586-dg-dgux${UNAME_RELEASE}
+ fi
+ exit ;;
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+ echo m88k-dolphin-sysv3
+ exit ;;
+ M88*:*:R3*:*)
+ # Delta 88k system running SVR3
+ echo m88k-motorola-sysv3
+ exit ;;
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ echo m88k-tektronix-sysv3
+ exit ;;
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ echo m68k-tektronix-bsd
+ exit ;;
+ *:IRIX*:*:*)
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ exit ;;
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ i*86:AIX:*:*)
+ echo i386-ibm-aix
+ exit ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:2:3)
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <sys/systemcfg.h>
+
+ main()
+ {
+ if (!__power_pc())
+ exit(1);
+ puts("powerpc-ibm-aix3.2.5");
+ exit(0);
+ }
+EOF
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+ then
+ echo "$SYSTEM_NAME"
+ else
+ echo rs6000-ibm-aix3.2.5
+ fi
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ echo rs6000-ibm-aix3.2.4
+ else
+ echo rs6000-ibm-aix3.2
+ fi
+ exit ;;
+ *:AIX:*:[456])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ IBM_ARCH=rs6000
+ else
+ IBM_ARCH=powerpc
+ fi
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:*:*)
+ echo rs6000-ibm-aix
+ exit ;;
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ echo romp-ibm-bsd4.4
+ exit ;;
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+ exit ;; # report: romp-ibm BSD 4.3
+ *:BOSX:*:*)
+ echo rs6000-bull-bosx
+ exit ;;
+ DPX/2?00:B.O.S.:*:*)
+ echo m68k-bull-sysv3
+ exit ;;
+ 9000/[34]??:4.3bsd:1.*:*)
+ echo m68k-hp-bsd
+ exit ;;
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ echo m68k-hp-bsd4.4
+ exit ;;
+ 9000/[34678]??:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ case "${UNAME_MACHINE}" in
+ 9000/31? ) HP_ARCH=m68000 ;;
+ 9000/[34]?? ) HP_ARCH=m68k ;;
+ 9000/[678][0-9][0-9])
+ if [ -x /usr/bin/getconf ]; then
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ esac ;;
+ esac
+ fi
+ if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
+EOF
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
+ fi ;;
+ esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ eval $set_cc_for_build
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
+ # generating 64-bit code. GNU and HP use different nomenclature:
+ #
+ # $ CC_FOR_BUILD=cc ./config.guess
+ # => hppa2.0w-hp-hpux11.23
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+ # => hppa64-hp-hpux11.23
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ grep __LP64__ >/dev/null
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ exit ;;
+ ia64:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ echo ia64-hp-hpux${HPUX_REV}
+ exit ;;
+ 3050*:HI-UX:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <unistd.h>
+ int
+ main ()
+ {
+ long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
+ if (CPU_IS_PA_RISC (cpu))
+ {
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
+ }
+ }
+ else if (CPU_IS_HP_MC68K (cpu))
+ puts ("m68k-hitachi-hiuxwe2");
+ else puts ("unknown-hitachi-hiuxwe2");
+ exit (0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo unknown-hitachi-hiuxwe2
+ exit ;;
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ echo hppa1.1-hp-bsd
+ exit ;;
+ 9000/8??:4.3bsd:*:*)
+ echo hppa1.0-hp-bsd
+ exit ;;
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ echo hppa1.0-hp-mpeix
+ exit ;;
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ echo hppa1.1-hp-osf
+ exit ;;
+ hp8??:OSF1:*:*)
+ echo hppa1.0-hp-osf
+ exit ;;
+ i*86:OSF1:*:*)
+ if [ -x /usr/sbin/sysversion ] ; then
+ echo ${UNAME_MACHINE}-unknown-osf1mk
+ else
+ echo ${UNAME_MACHINE}-unknown-osf1
+ fi
+ exit ;;
+ parisc*:Lites*:*:*)
+ echo hppa1.1-hp-lites
+ exit ;;
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ echo c1-convex-bsd
+ exit ;;
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ echo c34-convex-bsd
+ exit ;;
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ echo c38-convex-bsd
+ exit ;;
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ echo c4-convex-bsd
+ exit ;;
+ CRAY*Y-MP:*:*:*)
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*[A-Z]90:*:*:*)
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*TS:*:*:*)
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*SV1:*:*:*)
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ exit ;;
+ sparc*:BSD/OS:*:*)
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:BSD/OS:*:*)
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:FreeBSD:*:*)
+ case ${UNAME_MACHINE} in
+ pc98)
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
+ exit ;;
+ i*:CYGWIN*:*)
+ echo ${UNAME_MACHINE}-pc-cygwin
+ exit ;;
+ *:MINGW*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit ;;
+ *:Interix*:[3456]*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ EM64T | authenticamd | genuineintel)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit ;;
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ # UNAME_MACHINE based on the output of uname instead of i386?
+ echo i586-pc-interix
+ exit ;;
+ i*:UWIN*:*)
+ echo ${UNAME_MACHINE}-pc-uwin
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
+ p*:CYGWIN*:*)
+ echo powerpcle-unknown-cygwin
+ exit ;;
+ prep*:SunOS:5.*:*)
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ *:GNU:*:*)
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit ;;
+ i*86:Minix:*:*)
+ echo ${UNAME_MACHINE}-pc-minix
+ exit ;;
+ arm*:Linux:*:*)
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ fi
+ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit ;;
+ crisv32:Linux:*:*)
+ echo crisv32-axis-linux-gnu
+ exit ;;
+ frv:Linux:*:*)
+ echo frv-unknown-linux-gnu
+ exit ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ mips:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips
+ #undef mipsel
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mipsel
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^CPU/{
+ s: ::g
+ p
+ }'`"
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef mips64
+ #undef mips64el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=mips64el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=mips64
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^CPU/{
+ s: ::g
+ p
+ }'`"
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ or32:Linux:*:*)
+ echo or32-unknown-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit ;;
+ padre:Linux:*:*)
+ echo sparc-unknown-linux-gnu
+ exit ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-gnu
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-gnu
+ exit ;;
+ x86_64:Linux:*:*)
+ echo x86_64-unknown-linux-gnu
+ exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ i*86:Linux:*:*)
+ # The BFD linker knows what the default object file format is, so
+ # first see if it will tell us. cd to the root directory to prevent
+ # problems with other programs or directories called `ld' in the path.
+ # Set LC_ALL=C to ensure ld outputs messages in English.
+ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
+ | sed -ne '/supported targets:/!d
+ s/[ ][ ]*/ /g
+ s/.*supported targets: *//
+ s/ .*//
+ p'`
+ case "$ld_supported_targets" in
+ elf32-i386)
+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
+ ;;
+ a.out-i386-linux)
+ echo "${UNAME_MACHINE}-pc-linux-gnuaout"
+ exit ;;
+ "")
+ # Either a pre-BFD a.out linker (linux-gnuoldld) or
+ # one that does not give us useful --help.
+ echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
+ exit ;;
+ esac
+ # Determine whether the default compiler is a.out or elf
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <features.h>
+ #ifdef __ELF__
+ # ifdef __GLIBC__
+ # if __GLIBC__ >= 2
+ LIBC=gnu
+ # else
+ LIBC=gnulibc1
+ # endif
+ # else
+ LIBC=gnulibc1
+ # endif
+ #else
+ #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+ LIBC=gnu
+ #else
+ LIBC=gnuaout
+ #endif
+ #endif
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^LIBC/{
+ s: ::g
+ p
+ }'`"
+ test x"${LIBC}" != x && {
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+ exit
+ }
+ test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
+ ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
+ echo i386-sequent-sysv4
+ exit ;;
+ i*86:UNIX_SV:4.2MP:2.*)
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
+ # I just have to hope. -- rms.
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ exit ;;
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ else
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ fi
+ exit ;;
+ i*86:*:5:[678]*)
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ exit ;;
+ i*86:*:3.2:*)
+ if test -f /usr/options/cb.name; then
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ && UNAME_MACHINE=i686
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ && UNAME_MACHINE=i686
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-pc-sysv32
+ fi
+ exit ;;
+ pc:*:*:*)
+ # Left here for compatibility:
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i386.
+ echo i386-pc-msdosdjgpp
+ exit ;;
+ Intel:Mach:3*:*)
+ echo i386-pc-mach3
+ exit ;;
+ paragon:*:*:*)
+ echo i860-intel-osf1
+ exit ;;
+ i860:*:4.*:*) # i860-SVR4
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ else # Add other i860-SVR4 vendors below as they are discovered.
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+ fi
+ exit ;;
+ mini*:CTIX:SYS*5:*)
+ # "miniframe"
+ echo m68010-convergent-sysv
+ exit ;;
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit ;;
+ M68*:*:R3V[5678]*:*)
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+ OS_REL=''
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ mc68030:UNIX_System_V:4.*:*)
+ echo m68k-atari-sysv4
+ exit ;;
+ TSUNAMI:LynxOS:2.*:*)
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ rs6000:LynxOS:2.*:*)
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ SM[BE]S:UNIX_SV:*:*)
+ echo mips-dde-sysv${UNAME_RELEASE}
+ exit ;;
+ RM*:ReliantUNIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ RM*:SINIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ *:SINIX-*:*:*)
+ if uname -p 2>/dev/null >/dev/null ; then
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ echo ${UNAME_MACHINE}-sni-sysv4
+ else
+ echo ns32k-sni-sysv
+ fi
+ exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <hewes@openmarket.com>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit ;;
+ *:*:*:FTX*)
+ # From seanf@swdc.stratus.com.
+ echo i860-stratus-sysv4
+ exit ;;
+ i*86:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
+ *:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo hppa1.1-stratus-vos
+ exit ;;
+ mc68*:A/UX:*:*)
+ echo m68k-apple-aux${UNAME_RELEASE}
+ exit ;;
+ news*:NEWS-OS:6*:*)
+ echo mips-sony-newsos6
+ exit ;;
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ if [ -d /usr/nec ]; then
+ echo mips-nec-sysv${UNAME_RELEASE}
+ else
+ echo mips-unknown-sysv${UNAME_RELEASE}
+ fi
+ exit ;;
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+ echo powerpc-be-beos
+ exit ;;
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+ echo powerpc-apple-beos
+ exit ;;
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+ echo i586-pc-beos
+ exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
+ SX-4:SUPER-UX:*:*)
+ echo sx4-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-5:SUPER-UX:*:*)
+ echo sx5-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Darwin:*:*)
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ case $UNAME_PROCESSOR in
+ unknown) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ exit ;;
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
+ UNAME_MACHINE=pc
+ fi
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit ;;
+ *:QNX:*:4*)
+ echo i386-pc-qnx
+ exit ;;
+ NSE-?:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ *:NonStop-UX:*:*)
+ echo mips-compaq-nonstopux
+ exit ;;
+ BS2000:POSIX*:*:*)
+ echo bs2000-siemens-sysv
+ exit ;;
+ DS/*:UNIX_System_V:*:*)
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ exit ;;
+ *:Plan9:*:*)
+ # "uname -m" is not consistent, so use $cputype instead. 386
+ # is converted to i386 for consistency with other x86
+ # operating systems.
+ if test "$cputype" = "386"; then
+ UNAME_MACHINE=i386
+ else
+ UNAME_MACHINE="$cputype"
+ fi
+ echo ${UNAME_MACHINE}-unknown-plan9
+ exit ;;
+ *:TOPS-10:*:*)
+ echo pdp10-unknown-tops10
+ exit ;;
+ *:TENEX:*:*)
+ echo pdp10-unknown-tenex
+ exit ;;
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ echo pdp10-dec-tops20
+ exit ;;
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ echo pdp10-xkl-tops20
+ exit ;;
+ *:TOPS-20:*:*)
+ echo pdp10-unknown-tops20
+ exit ;;
+ *:ITS:*:*)
+ echo pdp10-unknown-its
+ exit ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms ; exit ;;
+ I*) echo ia64-dec-vms ; exit ;;
+ V*) echo vax-dec-vms ; exit ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit ;;
+ i*86:skyos:*:*)
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ exit ;;
+ i*86:rdos:*:*)
+ echo ${UNAME_MACHINE}-pc-rdos
+ exit ;;
+esac
+
+#echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+
+eval $set_cc_for_build
+cat >$dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
+ I don't know.... */
+ printf ("mips-sony-bsd\n"); exit (0);
+#else
+#include <sys/param.h>
+ printf ("m68k-sony-newsos%s\n",
+#ifdef NEWSOS4
+ "4"
+#else
+ ""
+#endif
+ ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) && defined (__acorn) && defined (__unix)
+ printf ("arm-acorn-riscix\n"); exit (0);
+#endif
+
+#if defined (hp300) && !defined (hpux)
+ printf ("m68k-hp-bsd\n"); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ "m68k"
+#endif
+ int version;
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+ if (version < 4)
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+ else
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+ exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+ printf ("ns32k-encore-sysv\n"); exit (0);
+#else
+#if defined (CMU)
+ printf ("ns32k-encore-mach\n"); exit (0);
+#else
+ printf ("ns32k-encore-bsd\n"); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+ printf ("i386-pc-bsd\n"); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+ printf ("i386-sequent-dynix\n"); exit (0);
+#endif
+#if defined (ns32000)
+ printf ("ns32k-sequent-dynix\n"); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+# include <sys/param.h>
+# if defined (BSD)
+# if BSD == 43
+ printf ("vax-dec-bsd4.3\n"); exit (0);
+# else
+# if BSD == 199006
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# endif
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# else
+ printf ("vax-dec-ultrix\n"); exit (0);
+# endif
+#endif
+
+#if defined (alliant) && defined (i860)
+ printf ("i860-alliant-bsd\n"); exit (0);
+#endif
+
+ exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+ case `getsysinfo -f cpu_type` in
+ c1*)
+ echo c1-convex-bsd
+ exit ;;
+ c2*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ c34*)
+ echo c34-convex-bsd
+ exit ;;
+ c38*)
+ echo c38-convex-bsd
+ exit ;;
+ c4*)
+ echo c4-convex-bsd
+ exit ;;
+ esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+and
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches@gnu.org> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo = `(hostinfo) 2>/dev/null`
+/bin/universe = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/build/config.sub b/build/config.sub
new file mode 100755
index 0000000..053e738
--- /dev/null
+++ b/build/config.sub
@@ -0,0 +1,1677 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
+
+timestamp='2008-09-08'
+
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine. It does not imply ALL GNU software can.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Please send patches to <config-patches@gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support. The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+ $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help"
+ exit 1 ;;
+
+ *local*)
+ # First pass through any local machine types.
+ echo $1
+ exit ;;
+
+ * )
+ break ;;
+ esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+ exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+ exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
+ storm-chaos* | os2-emx* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
+ *)
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+ if [ $basic_machine != $1 ]
+ then os=`echo $1 | sed 's/.*-/-/'`
+ else os=; fi
+ ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work. We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+ -sun*os*)
+ # Prevent following clause from handling this invalid input.
+ ;;
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ -apple | -axis | -knuth | -cray)
+ os=
+ basic_machine=$1
+ ;;
+ -sim | -cisco | -oki | -wec | -winbond)
+ os=
+ basic_machine=$1
+ ;;
+ -scout)
+ ;;
+ -wrs)
+ os=-vxworks
+ basic_machine=$1
+ ;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
+ -hiux*)
+ os=-hiuxwe2
+ ;;
+ -sco6)
+ os=-sco5v6
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5)
+ os=-sco3.2v5
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco4)
+ os=-sco3.2v4
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2.[4-9]*)
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5v6*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco*)
+ os=-sco3.2v2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -udk*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -isc)
+ os=-isc2.2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -clix*)
+ basic_machine=clipper-intergraph
+ ;;
+ -isc*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -lynx*)
+ os=-lynxos
+ ;;
+ -ptx*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ ;;
+ -windowsnt*)
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ ;;
+ -psos*)
+ os=-psos
+ ;;
+ -mint | -mint[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+ # Recognize the basic CPU types without company name.
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | bfin \
+ | c4x | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | fido | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
+ | maxq | mb | microblaze | mcore | mep | metag \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64octeon | mips64octeonel \
+ | mips64orion | mips64orionel \
+ | mips64r5900 | mips64r5900el \
+ | mips64vr | mips64vrel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mips64vr5900 | mips64vr5900el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | mt \
+ | msp430 \
+ | nios | nios2 \
+ | ns16k | ns32k \
+ | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | pyramid \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | spu | strongarm \
+ | tahoe | thumb | tic4x | tic80 | tron \
+ | v850 | v850e \
+ | we32k \
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | z8k | z80)
+ basic_machine=$basic_machine-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12)
+ # Motorola 68HC11/12.
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+ ms1)
+ basic_machine=mt-unknown
+ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and
+ # (2) the word "unknown" tends to confuse beginning users.
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* | avr32-* \
+ | bfin-* | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* | iq2000-* \
+ | m32c-* | m32r-* | m32rle-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64octeon-* | mips64octeonel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64r5900-* | mips64r5900el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mips64vr5900-* | mips64vr5900el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | mt-* \
+ | msp430-* \
+ | nios-* | nios2-* \
+ | none-* | np1-* | ns16k-* | ns32k-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | pyramid-* \
+ | romp-* | rs6000-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
+ | tron-* \
+ | v850-* | v850e-* | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | xstormy16-* | xtensa*-* \
+ | ymp-* \
+ | z8k-* | z80-*)
+ ;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+ alliant | fx80)
+ basic_machine=fx80-alliant
+ ;;
+ altos | altos3068)
+ basic_machine=m68k-altos
+ ;;
+ am29k)
+ basic_machine=a29k-none
+ os=-bsd
+ ;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ amdahl)
+ basic_machine=580-amdahl
+ os=-sysv
+ ;;
+ amiga | amiga-*)
+ basic_machine=m68k-unknown
+ ;;
+ amigaos | amigados)
+ basic_machine=m68k-unknown
+ os=-amigaos
+ ;;
+ amigaunix | amix)
+ basic_machine=m68k-unknown
+ os=-sysv4
+ ;;
+ apollo68)
+ basic_machine=m68k-apollo
+ os=-sysv
+ ;;
+ apollo68bsd)
+ basic_machine=m68k-apollo
+ os=-bsd
+ ;;
+ aux)
+ basic_machine=m68k-apple
+ os=-aux
+ ;;
+ balance)
+ basic_machine=ns32k-sequent
+ os=-dynix
+ ;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ cegcc)
+ basic_machine=arm-unknown
+ os=-cegcc
+ ;;
+ convex-c1)
+ basic_machine=c1-convex
+ os=-bsd
+ ;;
+ convex-c2)
+ basic_machine=c2-convex
+ os=-bsd
+ ;;
+ convex-c32)
+ basic_machine=c32-convex
+ os=-bsd
+ ;;
+ convex-c34)
+ basic_machine=c34-convex
+ os=-bsd
+ ;;
+ convex-c38)
+ basic_machine=c38-convex
+ os=-bsd
+ ;;
+ cray | j90)
+ basic_machine=j90-cray
+ os=-unicos
+ ;;
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
+ ;;
+ cr16)
+ basic_machine=cr16-unknown
+ os=-elf
+ ;;
+ crds | unos)
+ basic_machine=m68k-crds
+ ;;
+ crisv32 | crisv32-* | etraxfs*)
+ basic_machine=crisv32-axis
+ ;;
+ cris | cris-* | etrax*)
+ basic_machine=cris-axis
+ ;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
+ da30 | da30-*)
+ basic_machine=m68k-da30
+ ;;
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ basic_machine=mips-dec
+ ;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
+ delta | 3300 | motorola-3300 | motorola-delta \
+ | 3300-motorola | delta-motorola)
+ basic_machine=m68k-motorola
+ ;;
+ delta88)
+ basic_machine=m88k-motorola
+ os=-sysv3
+ ;;
+ dicos)
+ basic_machine=i686-pc
+ os=-dicos
+ ;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
+ dpx20 | dpx20-*)
+ basic_machine=rs6000-bull
+ os=-bosx
+ ;;
+ dpx2* | dpx2*-bull)
+ basic_machine=m68k-bull
+ os=-sysv3
+ ;;
+ ebmon29k)
+ basic_machine=a29k-amd
+ os=-ebmon
+ ;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
+ encore | umax | mmax)
+ basic_machine=ns32k-encore
+ ;;
+ es1800 | OSE68k | ose68k | ose | OSE)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
+ genix)
+ basic_machine=ns32k-ns
+ ;;
+ gmicro)
+ basic_machine=tron-gmicro
+ os=-sysv
+ ;;
+ go32)
+ basic_machine=i386-pc
+ os=-go32
+ ;;
+ h3050r* | hiux*)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ h8300hms)
+ basic_machine=h8300-hitachi
+ os=-hms
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
+ ;;
+ h8500hms)
+ basic_machine=h8500-hitachi
+ os=-hms
+ ;;
+ harris)
+ basic_machine=m88k-harris
+ os=-sysv3
+ ;;
+ hp300-*)
+ basic_machine=m68k-hp
+ ;;
+ hp300bsd)
+ basic_machine=m68k-hp
+ os=-bsd
+ ;;
+ hp300hpux)
+ basic_machine=m68k-hp
+ os=-hpux
+ ;;
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k2[0-9][0-9] | hp9k31[0-9])
+ basic_machine=m68000-hp
+ ;;
+ hp9k3[2-9][0-9])
+ basic_machine=m68k-hp
+ ;;
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k78[0-9] | hp78[0-9])
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][13679] | hp8[0-9][13679])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hppa-next)
+ os=-nextstep3
+ ;;
+ hppaosf)
+ basic_machine=hppa1.1-hp
+ os=-osf
+ ;;
+ hppro)
+ basic_machine=hppa1.1-hp
+ os=-proelf
+ ;;
+ i370-ibm* | ibm*)
+ basic_machine=i370-ibm
+ ;;
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
+ i*86v32)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv32
+ ;;
+ i*86v4*)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv4
+ ;;
+ i*86v)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv
+ ;;
+ i*86sol2)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-solaris2
+ ;;
+ i386mach)
+ basic_machine=i386-mach
+ os=-mach
+ ;;
+ i386-vsta | vsta)
+ basic_machine=i386-unknown
+ os=-vsta
+ ;;
+ iris | iris4d)
+ basic_machine=mips-sgi
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
+ ;;
+ isi68 | isi)
+ basic_machine=m68k-isi
+ os=-sysv
+ ;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ m88k-omron*)
+ basic_machine=m88k-omron
+ ;;
+ magnum | m3230)
+ basic_machine=mips-mips
+ os=-sysv
+ ;;
+ merlin)
+ basic_machine=ns32k-utek
+ os=-sysv
+ ;;
+ mingw32)
+ basic_machine=i386-pc
+ os=-mingw32
+ ;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
+ miniframe)
+ basic_machine=m68000-convergent
+ ;;
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+ mips3*-*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ ;;
+ mips3*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ ;;
+ monitor)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ msdos)
+ basic_machine=i386-pc
+ os=-msdos
+ ;;
+ ms1-*)
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+ ;;
+ mvs)
+ basic_machine=i370-ibm
+ os=-mvs
+ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+ ;;
+ netbsd386)
+ basic_machine=i386-unknown
+ os=-netbsd
+ ;;
+ netwinder)
+ basic_machine=armv4l-rebel
+ os=-linux
+ ;;
+ news | news700 | news800 | news900)
+ basic_machine=m68k-sony
+ os=-newsos
+ ;;
+ news1000)
+ basic_machine=m68030-sony
+ os=-newsos
+ ;;
+ news-3600 | risc-news)
+ basic_machine=mips-sony
+ os=-newsos
+ ;;
+ necv70)
+ basic_machine=v70-nec
+ os=-sysv
+ ;;
+ next | m*-next )
+ basic_machine=m68k-next
+ case $os in
+ -nextstep* )
+ ;;
+ -ns2*)
+ os=-nextstep2
+ ;;
+ *)
+ os=-nextstep3
+ ;;
+ esac
+ ;;
+ nh3000)
+ basic_machine=m68k-harris
+ os=-cxux
+ ;;
+ nh[45]000)
+ basic_machine=m88k-harris
+ os=-cxux
+ ;;
+ nindy960)
+ basic_machine=i960-intel
+ os=-nindy
+ ;;
+ mon960)
+ basic_machine=i960-intel
+ os=-mon960
+ ;;
+ nonstopux)
+ basic_machine=mips-compaq
+ os=-nonstopux
+ ;;
+ np1)
+ basic_machine=np1-gould
+ ;;
+ nsr-tandem)
+ basic_machine=nsr-tandem
+ ;;
+ op50n-* | op60c-*)
+ basic_machine=hppa1.1-oki
+ os=-proelf
+ ;;
+ openrisc | openrisc-*)
+ basic_machine=or32-unknown
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
+ os68k)
+ basic_machine=m68k-none
+ os=-os68k
+ ;;
+ pa-hitachi)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ paragon)
+ basic_machine=i860-intel
+ os=-osf
+ ;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ pbd)
+ basic_machine=sparc-tti
+ ;;
+ pbb)
+ basic_machine=m68k-tti
+ ;;
+ pc532 | pc532-*)
+ basic_machine=ns32k-pc532
+ ;;
+ pc98)
+ basic_machine=i386-pc
+ ;;
+ pc98-*)
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
+ basic_machine=i586-pc
+ ;;
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ basic_machine=i686-pc
+ ;;
+ pentiumii | pentium2 | pentiumiii | pentium3)
+ basic_machine=i686-pc
+ ;;
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pn)
+ basic_machine=pn-gould
+ ;;
+ power) basic_machine=power-ibm
+ ;;
+ ppc) basic_machine=powerpc-unknown
+ ;;
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppcle | powerpclittle | ppc-le | powerpc-little)
+ basic_machine=powerpcle-unknown
+ ;;
+ ppcle-* | powerpclittle-*)
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ps2)
+ basic_machine=i386-ibm
+ ;;
+ pw32)
+ basic_machine=i586-unknown
+ os=-pw32
+ ;;
+ rdos)
+ basic_machine=i386-pc
+ os=-rdos
+ ;;
+ rom68k)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ rm[46]00)
+ basic_machine=mips-siemens
+ ;;
+ rtpc | rtpc-*)
+ basic_machine=romp-ibm
+ ;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
+ sequent)
+ basic_machine=i386-sequent
+ ;;
+ sh)
+ basic_machine=sh-hitachi
+ os=-hms
+ ;;
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparclite-wrs | simso-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sps7)
+ basic_machine=m68k-bull
+ os=-sysv2
+ ;;
+ spur)
+ basic_machine=spur-unknown
+ ;;
+ st2000)
+ basic_machine=m68k-tandem
+ ;;
+ stratus)
+ basic_machine=i860-stratus
+ os=-sysv4
+ ;;
+ sun2)
+ basic_machine=m68000-sun
+ ;;
+ sun2os3)
+ basic_machine=m68000-sun
+ os=-sunos3
+ ;;
+ sun2os4)
+ basic_machine=m68000-sun
+ os=-sunos4
+ ;;
+ sun3os3)
+ basic_machine=m68k-sun
+ os=-sunos3
+ ;;
+ sun3os4)
+ basic_machine=m68k-sun
+ os=-sunos4
+ ;;
+ sun4os3)
+ basic_machine=sparc-sun
+ os=-sunos3
+ ;;
+ sun4os4)
+ basic_machine=sparc-sun
+ os=-sunos4
+ ;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ sun3 | sun3-*)
+ basic_machine=m68k-sun
+ ;;
+ sun4)
+ basic_machine=sparc-sun
+ ;;
+ sun386 | sun386i | roadrunner)
+ basic_machine=i386-sun
+ ;;
+ sv1)
+ basic_machine=sv1-cray
+ os=-unicos
+ ;;
+ symmetry)
+ basic_machine=i386-sequent
+ os=-dynix
+ ;;
+ t3e)
+ basic_machine=alphaev5-cray
+ os=-unicos
+ ;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tic54x | c54x*)
+ basic_machine=tic54x-unknown
+ os=-coff
+ ;;
+ tic55x | c55x*)
+ basic_machine=tic55x-unknown
+ os=-coff
+ ;;
+ tic6x | c6x*)
+ basic_machine=tic6x-unknown
+ os=-coff
+ ;;
+ tile*)
+ basic_machine=tile-unknown
+ os=-linux-gnu
+ ;;
+ tx39)
+ basic_machine=mipstx39-unknown
+ ;;
+ tx39el)
+ basic_machine=mipstx39el-unknown
+ ;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
+ tower | tower-32)
+ basic_machine=m68k-ncr
+ ;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ ultra3)
+ basic_machine=a29k-nyu
+ os=-sym1
+ ;;
+ v810 | necv810)
+ basic_machine=v810-nec
+ os=-none
+ ;;
+ vaxv)
+ basic_machine=vax-dec
+ os=-sysv
+ ;;
+ vms)
+ basic_machine=vax-dec
+ os=-vms
+ ;;
+ vpp*|vx|vx-*)
+ basic_machine=f301-fujitsu
+ ;;
+ vxworks960)
+ basic_machine=i960-wrs
+ os=-vxworks
+ ;;
+ vxworks68)
+ basic_machine=m68k-wrs
+ os=-vxworks
+ ;;
+ vxworks29k)
+ basic_machine=a29k-wrs
+ os=-vxworks
+ ;;
+ w65*)
+ basic_machine=w65-wdc
+ os=-none
+ ;;
+ w89k-*)
+ basic_machine=hppa1.1-winbond
+ os=-proelf
+ ;;
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
+ ;;
+ xps | xps100)
+ basic_machine=xps100-honeywell
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
+ z8k-*-coff)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
+ z80-*-coff)
+ basic_machine=z80-unknown
+ os=-sim
+ ;;
+ none)
+ basic_machine=none-none
+ os=-none
+ ;;
+
+# Here we handle the default manufacturer of certain CPU types. It is in
+# some cases the only manufacturer, in others, it is the most popular.
+ w89k)
+ basic_machine=hppa1.1-winbond
+ ;;
+ op50n)
+ basic_machine=hppa1.1-oki
+ ;;
+ op60c)
+ basic_machine=hppa1.1-oki
+ ;;
+ romp)
+ basic_machine=romp-ibm
+ ;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
+ rs6000)
+ basic_machine=rs6000-ibm
+ ;;
+ vax)
+ basic_machine=vax-dec
+ ;;
+ pdp10)
+ # there are many clones, so DEC is not a safe bet
+ basic_machine=pdp10-unknown
+ ;;
+ pdp11)
+ basic_machine=pdp11-dec
+ ;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
+ sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
+ basic_machine=sh-unknown
+ ;;
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+ basic_machine=sparc-sun
+ ;;
+ cydra)
+ basic_machine=cydra-cydrome
+ ;;
+ orion)
+ basic_machine=orion-highlevel
+ ;;
+ orion105)
+ basic_machine=clipper-highlevel
+ ;;
+ mac | mpw | mac-mpw)
+ basic_machine=m68k-apple
+ ;;
+ pmac | pmac-mpw)
+ basic_machine=powerpc-apple
+ ;;
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
+ ;;
+ *)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+ *-digital*)
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ ;;
+ *-commodore*)
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ ;;
+ *)
+ ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+ # First match some system type aliases
+ # that might get confused with valid system types.
+ # -solaris* is a basic system type, with this one exception.
+ -solaris1 | -solaris1.*)
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ ;;
+ -solaris)
+ os=-solaris2
+ ;;
+ -svr4*)
+ os=-sysv4
+ ;;
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;
+ # First accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST END IN A *, to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ | -aos* \
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+ | -openbsd* | -solidbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* | -cegcc* \
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ ;;
+ *)
+ os=-nto$os
+ ;;
+ esac
+ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ ;;
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ ;;
+ -mac*)
+ os=`echo $os | sed -e 's|mac|macos|'`
+ ;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
+ -linux*)
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ ;;
+ -sunos5*)
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ ;;
+ -sunos6*)
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ ;;
+ -opened*)
+ os=-openedition
+ ;;
+ -os400*)
+ os=-os400
+ ;;
+ -wince*)
+ os=-wince
+ ;;
+ -osfrose*)
+ os=-osfrose
+ ;;
+ -osf*)
+ os=-osf
+ ;;
+ -utek*)
+ os=-bsd
+ ;;
+ -dynix*)
+ os=-bsd
+ ;;
+ -acis*)
+ os=-aos
+ ;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -syllable*)
+ os=-syllable
+ ;;
+ -386bsd)
+ os=-bsd
+ ;;
+ -ctix* | -uts*)
+ os=-sysv
+ ;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
+ -ns2 )
+ os=-nextstep2
+ ;;
+ -nsk*)
+ os=-nsk
+ ;;
+ # Preserve the version number of sinix5.
+ -sinix5.*)
+ os=`echo $os | sed -e 's|sinix|sysv|'`
+ ;;
+ -sinix*)
+ os=-sysv4
+ ;;
+ -tpf*)
+ os=-tpf
+ ;;
+ -triton*)
+ os=-sysv3
+ ;;
+ -oss*)
+ os=-sysv3
+ ;;
+ -svr4)
+ os=-sysv4
+ ;;
+ -svr3)
+ os=-sysv3
+ ;;
+ -sysvr4)
+ os=-sysv4
+ ;;
+ # This must come after -sysvr4.
+ -sysv*)
+ ;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
+ -xenix)
+ os=-xenix
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -zvmoe)
+ os=-zvmoe
+ ;;
+ -dicos*)
+ os=-dicos
+ ;;
+ -none)
+ ;;
+ *)
+ # Get rid of the `-' at the beginning of $os.
+ os=`echo $os | sed 's/[^-]*-//'`
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system. Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+ score-*)
+ os=-elf
+ ;;
+ spu-*)
+ os=-elf
+ ;;
+ *-acorn)
+ os=-riscix1.2
+ ;;
+ arm*-rebel)
+ os=-linux
+ ;;
+ arm*-semi)
+ os=-aout
+ ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
+ pdp10-*)
+ os=-tops20
+ ;;
+ pdp11-*)
+ os=-none
+ ;;
+ *-dec | vax-*)
+ os=-ultrix4.2
+ ;;
+ m68*-apollo)
+ os=-domain
+ ;;
+ i386-sun)
+ os=-sunos4.0.2
+ ;;
+ m68000-sun)
+ os=-sunos3
+ # This also exists in the configure program, but was not the
+ # default.
+ # os=-sunos4
+ ;;
+ m68*-cisco)
+ os=-aout
+ ;;
+ mep-*)
+ os=-elf
+ ;;
+ mips*-cisco)
+ os=-elf
+ ;;
+ mips*-*)
+ os=-elf
+ ;;
+ or32-*)
+ os=-coff
+ ;;
+ *-tti) # must be before sparc entry or we get the wrong os.
+ os=-sysv3
+ ;;
+ sparc-* | *-sun)
+ os=-sunos4.1.1
+ ;;
+ *-be)
+ os=-beos
+ ;;
+ *-haiku)
+ os=-haiku
+ ;;
+ *-ibm)
+ os=-aix
+ ;;
+ *-knuth)
+ os=-mmixware
+ ;;
+ *-wec)
+ os=-proelf
+ ;;
+ *-winbond)
+ os=-proelf
+ ;;
+ *-oki)
+ os=-proelf
+ ;;
+ *-hp)
+ os=-hpux
+ ;;
+ *-hitachi)
+ os=-hiux
+ ;;
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ os=-sysv
+ ;;
+ *-cbm)
+ os=-amigaos
+ ;;
+ *-dg)
+ os=-dgux
+ ;;
+ *-dolphin)
+ os=-sysv3
+ ;;
+ m68k-ccur)
+ os=-rtu
+ ;;
+ m88k-omron*)
+ os=-luna
+ ;;
+ *-next )
+ os=-nextstep
+ ;;
+ *-sequent)
+ os=-ptx
+ ;;
+ *-crds)
+ os=-unos
+ ;;
+ *-ns)
+ os=-genix
+ ;;
+ i370-*)
+ os=-mvs
+ ;;
+ *-next)
+ os=-nextstep3
+ ;;
+ *-gould)
+ os=-sysv
+ ;;
+ *-highlevel)
+ os=-bsd
+ ;;
+ *-encore)
+ os=-bsd
+ ;;
+ *-sgi)
+ os=-irix
+ ;;
+ *-siemens)
+ os=-sysv4
+ ;;
+ *-masscomp)
+ os=-rtu
+ ;;
+ f30[01]-fujitsu | f700-fujitsu)
+ os=-uxpv
+ ;;
+ *-rom68k)
+ os=-coff
+ ;;
+ *-*bug)
+ os=-coff
+ ;;
+ *-apple)
+ os=-macos
+ ;;
+ *-atari*)
+ os=-mint
+ ;;
+ *)
+ os=-none
+ ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer. We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+ *-unknown)
+ case $os in
+ -riscix*)
+ vendor=acorn
+ ;;
+ -sunos*)
+ vendor=sun
+ ;;
+ -aix*)
+ vendor=ibm
+ ;;
+ -beos*)
+ vendor=be
+ ;;
+ -hpux*)
+ vendor=hp
+ ;;
+ -mpeix*)
+ vendor=hp
+ ;;
+ -hiux*)
+ vendor=hitachi
+ ;;
+ -unos*)
+ vendor=crds
+ ;;
+ -dgux*)
+ vendor=dg
+ ;;
+ -luna*)
+ vendor=omron
+ ;;
+ -genix*)
+ vendor=ns
+ ;;
+ -mvs* | -opened*)
+ vendor=ibm
+ ;;
+ -os400*)
+ vendor=ibm
+ ;;
+ -ptx*)
+ vendor=sequent
+ ;;
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
+ vendor=wrs
+ ;;
+ -aux*)
+ vendor=apple
+ ;;
+ -hms*)
+ vendor=hitachi
+ ;;
+ -mpw* | -macos*)
+ vendor=apple
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
+ ;;
+ esac
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ ;;
+esac
+
+echo $basic_machine$os
+exit
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/build/depcomp b/build/depcomp
new file mode 100644
index 0000000..e5f9736
--- /dev/null
+++ b/build/depcomp
@@ -0,0 +1,589 @@
+#! /bin/sh
+# depcomp - compile a program generating dependencies as side-effects
+
+scriptversion=2007-03-29.01
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
+# Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
+
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
+
+Run PROGRAMS ARGS to compile a file, generating dependencies
+as side-effects.
+
+Environment variables:
+ depmode Dependency tracking mode.
+ source Source file read by `PROGRAMS ARGS'.
+ object Object file output by `PROGRAMS ARGS'.
+ DEPDIR directory where to store dependencies.
+ depfile Dependency file to output.
+ tmpdepfile Temporary file to use when outputing dependencies.
+ libtool Whether libtool is used (yes/no).
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "depcomp $scriptversion"
+ exit $?
+ ;;
+esac
+
+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
+ echo "depcomp: Variables source, object and depmode must be set" 1>&2
+ exit 1
+fi
+
+# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
+depfile=${depfile-`echo "$object" |
+ sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+
+rm -f "$tmpdepfile"
+
+# Some modes work just like other modes, but use different flags. We
+# parameterize here, but still list the modes in the big case below,
+# to make depend.m4 easier to write. Note that we *cannot* use a case
+# here, because this file can only contain one case statement.
+if test "$depmode" = hp; then
+ # HP compiler uses -M and no extra arg.
+ gccflag=-M
+ depmode=gcc
+fi
+
+if test "$depmode" = dashXmstdout; then
+ # This is just like dashmstdout with a different argument.
+ dashmflag=-xM
+ depmode=dashmstdout
+fi
+
+case "$depmode" in
+gcc3)
+## gcc 3 implements dependency tracking that does exactly what
+## we want. Yay! Note: for some reason libtool 1.4 doesn't like
+## it if -MD -MP comes after the -MF stuff. Hmm.
+## Unfortunately, FreeBSD c89 acceptance of flags depends upon
+## the command line argument order; so add the flags where they
+## appear in depend2.am. Note that the slowdown incurred here
+## affects only configure: in makefiles, %FASTDEP% shortcuts this.
+ for arg
+ do
+ case $arg in
+ -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
+ *) set fnord "$@" "$arg" ;;
+ esac
+ shift # fnord
+ shift # $arg
+ done
+ "$@"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ mv "$tmpdepfile" "$depfile"
+ ;;
+
+gcc)
+## There are various ways to get dependency output from gcc. Here's
+## why we pick this rather obscure method:
+## - Don't want to use -MD because we'd like the dependencies to end
+## up in a subdir. Having to rename by hand is ugly.
+## (We might end up doing this anyway to support other compilers.)
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
+## -MM, not -M (despite what the docs say).
+## - Using -M directly means running the compiler twice (even worse
+## than renaming).
+ if test -z "$gccflag"; then
+ gccflag=-MD,
+ fi
+ "$@" -Wp,"$gccflag$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
+## The second -e expression handles DOS-style file names with drive letters.
+ sed -e 's/^[^:]*: / /' \
+ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+## This next piece of magic avoids the `deleted header file' problem.
+## The problem is that when a header file which appears in a .P file
+## is deleted, the dependency causes make to die (because there is
+## typically no way to rebuild the header). We avoid this by adding
+## dummy dependencies for each header file. Too bad gcc doesn't do
+## this for us directly.
+ tr ' ' '
+' < "$tmpdepfile" |
+## Some versions of gcc put a space before the `:'. On the theory
+## that the space means something, we add a space to the output as
+## well.
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+sgi)
+ if test "$libtool" = yes; then
+ "$@" "-Wp,-MDupdate,$tmpdepfile"
+ else
+ "$@" -MDupdate "$tmpdepfile"
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+
+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
+ echo "$object : \\" > "$depfile"
+
+ # Clip off the initial element (the dependent). Don't try to be
+ # clever and replace this with sed code, as IRIX sed won't handle
+ # lines with more than a fixed number of characters (4096 in
+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
+ # the IRIX cc adds comments like `#:fec' to the end of the
+ # dependency line.
+ tr ' ' '
+' < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
+ tr '
+' ' ' >> $depfile
+ echo >> $depfile
+
+ # The second pass generates a dummy entry for each header file.
+ tr ' ' '
+' < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+ >> $depfile
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+aix)
+ # The C for AIX Compiler uses -M and outputs the dependencies
+ # in a .u file. In older versions, this file always lives in the
+ # current directory. Also, the AIX compiler puts `$object:' at the
+ # start of each line; $object doesn't have directory information.
+ # Version 6 uses the directory in both cases.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$base.u
+ tmpdepfile3=$dir.libs/$base.u
+ "$@" -Wc,-M
+ else
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$dir$base.u
+ tmpdepfile3=$dir$base.u
+ "$@" -M
+ fi
+ stat=$?
+
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ # Each line is of the form `foo.o: dependent.h'.
+ # Do two passes, one to just change these to
+ # `$object: dependent.h' and one to simply `dependent.h:'.
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ # That's a tab and a space in the [].
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+icc)
+ # Intel's C compiler understands `-MD -MF file'. However on
+ # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
+ # ICC 7.0 will fill foo.d with something like
+ # foo.o: sub/foo.c
+ # foo.o: sub/foo.h
+ # which is wrong. We want:
+ # sub/foo.o: sub/foo.c
+ # sub/foo.o: sub/foo.h
+ # sub/foo.c:
+ # sub/foo.h:
+ # ICC 7.1 will output
+ # foo.o: sub/foo.c sub/foo.h
+ # and will wrap long lines using \ :
+ # foo.o: sub/foo.c ... \
+ # sub/foo.h ... \
+ # ...
+
+ "$@" -MD -MF "$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ # Each line is of the form `foo.o: dependent.h',
+ # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
+ # Do two passes, one to just change these to
+ # `$object: dependent.h' and one to simply `dependent.h:'.
+ sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
+ # Some versions of the HPUX 10.20 sed can't process this invocation
+ # correctly. Breaking it into two sed invocations is a workaround.
+ sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
+ sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp2)
+ # The "hp" stanza above does not work with aCC (C++) and HP's ia64
+ # compilers, which have integrated preprocessors. The correct option
+ # to use with these is +Maked; it writes dependencies to a file named
+ # 'foo.d', which lands next to the object file, wherever that
+ # happens to be.
+ # Much of this is similar to the tru64 case; see comments there.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir.libs/$base.d
+ "$@" -Wc,+Maked
+ else
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir$base.d
+ "$@" +Maked
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
+ # Add `dependent.h:' lines.
+ sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile" "$tmpdepfile2"
+ ;;
+
+tru64)
+ # The Tru64 compiler uses -MD to generate dependencies as a side
+ # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+ # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
+ # dependencies in `foo.d' instead, so we check for that too.
+ # Subdirectories are respected.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+
+ if test "$libtool" = yes; then
+ # With Tru64 cc, shared objects can also be used to make a
+ # static library. This mechanism is used in libtool 1.4 series to
+ # handle both shared and static libraries in a single compilation.
+ # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
+ #
+ # With libtool 1.5 this exception was removed, and libtool now
+ # generates 2 separate objects for the 2 libraries. These two
+ # compilations output dependencies in $dir.libs/$base.o.d and
+ # in $dir$base.o.d. We have to check for both files, because
+ # one of the two compilations can be disabled. We should prefer
+ # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
+ # automatically cleaned when .libs/ is deleted, while ignoring
+ # the former would cause a distcleancheck panic.
+ tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
+ tmpdepfile2=$dir$base.o.d # libtool 1.5
+ tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
+ tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
+ "$@" -Wc,-MD
+ else
+ tmpdepfile1=$dir$base.o.d
+ tmpdepfile2=$dir$base.d
+ tmpdepfile3=$dir$base.d
+ tmpdepfile4=$dir$base.d
+ "$@" -MD
+ fi
+
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ # That's a tab and a space in the [].
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+#nosideeffect)
+ # This comment above is used by automake to tell side-effect
+ # dependency tracking mechanisms from slower ones.
+
+dashmstdout)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout, regardless of -o.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test $1 != '--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove `-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ test -z "$dashmflag" && dashmflag=-M
+ # Require at least two characters before searching for `:'
+ # in the target name. This is to cope with DOS-style filenames:
+ # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
+ "$@" $dashmflag |
+ sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
+ rm -f "$depfile"
+ cat < "$tmpdepfile" > "$depfile"
+ tr ' ' '
+' < "$tmpdepfile" | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+dashXmstdout)
+ # This case only exists to satisfy depend.m4. It is never actually
+ # run, as this mode is specially recognized in the preamble.
+ exit 1
+ ;;
+
+makedepend)
+ "$@" || exit $?
+ # Remove any Libtool call
+ if test "$libtool" = yes; then
+ while test $1 != '--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+ # X makedepend
+ shift
+ cleared=no
+ for arg in "$@"; do
+ case $cleared in
+ no)
+ set ""; shift
+ cleared=yes ;;
+ esac
+ case "$arg" in
+ -D*|-I*)
+ set fnord "$@" "$arg"; shift ;;
+ # Strip any option that makedepend may not understand. Remove
+ # the object too, otherwise makedepend will parse it as a source file.
+ -*|$object)
+ ;;
+ *)
+ set fnord "$@" "$arg"; shift ;;
+ esac
+ done
+ obj_suffix="`echo $object | sed 's/^.*\././'`"
+ touch "$tmpdepfile"
+ ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
+ rm -f "$depfile"
+ cat < "$tmpdepfile" > "$depfile"
+ sed '1,2d' "$tmpdepfile" | tr ' ' '
+' | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile" "$tmpdepfile".bak
+ ;;
+
+cpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test $1 != '--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove `-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ "$@" -E |
+ sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
+ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
+ sed '$ s: \\$::' > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ cat < "$tmpdepfile" >> "$depfile"
+ sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+msvisualcpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout, regardless of -o,
+ # because we must use -o when running libtool.
+ "$@" || exit $?
+ IFS=" "
+ for arg
+ do
+ case "$arg" in
+ "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+ set fnord "$@"
+ shift
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift
+ shift
+ ;;
+ esac
+ done
+ "$@" -E |
+ sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
+ echo " " >> "$depfile"
+ . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+none)
+ exec "$@"
+ ;;
+
+*)
+ echo "Unknown depmode $depmode" 1>&2
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
diff --git a/build/install-sh b/build/install-sh
new file mode 100644
index 0000000..a5897de
--- /dev/null
+++ b/build/install-sh
@@ -0,0 +1,519 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2006-12-25.00
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=" "" $nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=${DOITPROG-}
+if test -z "$doit"; then
+ doit_exec=exec
+else
+ doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+chgrpprog=${CHGRPPROG-chgrp}
+chmodprog=${CHMODPROG-chmod}
+chownprog=${CHOWNPROG-chown}
+cmpprog=${CMPPROG-cmp}
+cpprog=${CPPROG-cp}
+mkdirprog=${MKDIRPROG-mkdir}
+mvprog=${MVPROG-mv}
+rmprog=${RMPROG-rm}
+stripprog=${STRIPPROG-strip}
+
+posix_glob='?'
+initialize_posix_glob='
+ test "$posix_glob" != "?" || {
+ if (set -f) 2>/dev/null; then
+ posix_glob=
+ else
+ posix_glob=:
+ fi
+ }
+'
+
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chgrpcmd=
+chmodcmd=$chmodprog
+chowncmd=
+mvcmd=$mvprog
+rmcmd="$rmprog -f"
+stripcmd=
+
+src=
+dst=
+dir_arg=
+dst_arg=
+
+copy_on_change=false
+no_target_directory=
+
+usage="\
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+ or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+ --help display this help and exit.
+ --version display version info and exit.
+
+ -c (ignored)
+ -C install only if different (preserve the last data modification time)
+ -d create directories instead of installing files.
+ -g GROUP $chgrpprog installed files to GROUP.
+ -m MODE $chmodprog installed files to MODE.
+ -o USER $chownprog installed files to USER.
+ -s $stripprog installed files.
+ -t DIRECTORY install into DIRECTORY.
+ -T report an error if DSTFILE is a directory.
+
+Environment variables override the default commands:
+ CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
+ RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+ case $1 in
+ -c) ;;
+
+ -C) copy_on_change=true;;
+
+ -d) dir_arg=true;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift;;
+
+ --help) echo "$usage"; exit $?;;
+
+ -m) mode=$2
+ case $mode in
+ *' '* | *' '* | *'
+'* | *'*'* | *'?'* | *'['*)
+ echo "$0: invalid mode: $mode" >&2
+ exit 1;;
+ esac
+ shift;;
+
+ -o) chowncmd="$chownprog $2"
+ shift;;
+
+ -s) stripcmd=$stripprog;;
+
+ -t) dst_arg=$2
+ shift;;
+
+ -T) no_target_directory=true;;
+
+ --version) echo "$0 $scriptversion"; exit $?;;
+
+ --) shift
+ break;;
+
+ -*) echo "$0: invalid option: $1" >&2
+ exit 1;;
+
+ *) break;;
+ esac
+ shift
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
+ # When -d is used, all remaining arguments are directories to create.
+ # When -t is used, the destination is already specified.
+ # Otherwise, the last argument is the destination. Remove it from $@.
+ for arg
+ do
+ if test -n "$dst_arg"; then
+ # $@ is not empty: it contains at least $arg.
+ set fnord "$@" "$dst_arg"
+ shift # fnord
+ fi
+ shift # arg
+ dst_arg=$arg
+ done
+fi
+
+if test $# -eq 0; then
+ if test -z "$dir_arg"; then
+ echo "$0: no input file specified." >&2
+ exit 1
+ fi
+ # It's OK to call `install-sh -d' without argument.
+ # This can happen when creating conditional directories.
+ exit 0
+fi
+
+if test -z "$dir_arg"; then
+ trap '(exit $?); exit' 1 2 13 15
+
+ # Set umask so as not to create temps with too-generous modes.
+ # However, 'strip' requires both read and write access to temps.
+ case $mode in
+ # Optimize common cases.
+ *644) cp_umask=133;;
+ *755) cp_umask=22;;
+
+ *[0-7])
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw='% 200'
+ fi
+ cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+ *)
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw=,u+rw
+ fi
+ cp_umask=$mode$u_plus_rw;;
+ esac
+fi
+
+for src
+do
+ # Protect names starting with `-'.
+ case $src in
+ -*) src=./$src;;
+ esac
+
+ if test -n "$dir_arg"; then
+ dst=$src
+ dstdir=$dst
+ test -d "$dstdir"
+ dstdir_status=$?
+ else
+
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+ # might cause directories to be created, which would be especially bad
+ # if $src (and thus $dsttmp) contains '*'.
+ if test ! -f "$src" && test ! -d "$src"; then
+ echo "$0: $src does not exist." >&2
+ exit 1
+ fi
+
+ if test -z "$dst_arg"; then
+ echo "$0: no destination specified." >&2
+ exit 1
+ fi
+
+ dst=$dst_arg
+ # Protect names starting with `-'.
+ case $dst in
+ -*) dst=./$dst;;
+ esac
+
+ # If destination is a directory, append the input filename; won't work
+ # if double slashes aren't ignored.
+ if test -d "$dst"; then
+ if test -n "$no_target_directory"; then
+ echo "$0: $dst_arg: Is a directory" >&2
+ exit 1
+ fi
+ dstdir=$dst
+ dst=$dstdir/`basename "$src"`
+ dstdir_status=0
+ else
+ # Prefer dirname, but fall back on a substitute if dirname fails.
+ dstdir=`
+ (dirname "$dst") 2>/dev/null ||
+ expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$dst" : 'X\(//\)[^/]' \| \
+ X"$dst" : 'X\(//\)$' \| \
+ X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+ echo X"$dst" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'
+ `
+
+ test -d "$dstdir"
+ dstdir_status=$?
+ fi
+ fi
+
+ obsolete_mkdir_used=false
+
+ if test $dstdir_status != 0; then
+ case $posix_mkdir in
+ '')
+ # Create intermediate dirs using mode 755 as modified by the umask.
+ # This is like FreeBSD 'install' as of 1997-10-28.
+ umask=`umask`
+ case $stripcmd.$umask in
+ # Optimize common cases.
+ *[2367][2367]) mkdir_umask=$umask;;
+ .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+ *[0-7])
+ mkdir_umask=`expr $umask + 22 \
+ - $umask % 100 % 40 + $umask % 20 \
+ - $umask % 10 % 4 + $umask % 2
+ `;;
+ *) mkdir_umask=$umask,go-w;;
+ esac
+
+ # With -d, create the new directory with the user-specified mode.
+ # Otherwise, rely on $mkdir_umask.
+ if test -n "$dir_arg"; then
+ mkdir_mode=-m$mode
+ else
+ mkdir_mode=
+ fi
+
+ posix_mkdir=false
+ case $umask in
+ *[123567][0-7][0-7])
+ # POSIX mkdir -p sets u+wx bits regardless of umask, which
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+ ;;
+ *)
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+ if (umask $mkdir_umask &&
+ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+ then
+ if test -z "$dir_arg" || {
+ # Check for POSIX incompatibilities with -m.
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+ # other-writeable bit of parent directory when it shouldn't.
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+ ls_ld_tmpdir=`ls -ld "$tmpdir"`
+ case $ls_ld_tmpdir in
+ d????-?r-*) different_mode=700;;
+ d????-?--*) different_mode=755;;
+ *) false;;
+ esac &&
+ $mkdirprog -m$different_mode -p -- "$tmpdir" && {
+ ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
+ }
+ }
+ then posix_mkdir=:
+ fi
+ rmdir "$tmpdir/d" "$tmpdir"
+ else
+ # Remove any dirs left behind by ancient mkdir implementations.
+ rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
+ fi
+ trap '' 0;;
+ esac;;
+ esac
+
+ if
+ $posix_mkdir && (
+ umask $mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
+ )
+ then :
+ else
+
+ # The umask is ridiculous, or mkdir does not conform to POSIX,
+ # or it failed possibly due to a race condition. Create the
+ # directory the slow way, step by step, checking for races as we go.
+
+ case $dstdir in
+ /*) prefix='/';;
+ -*) prefix='./';;
+ *) prefix='';;
+ esac
+
+ eval "$initialize_posix_glob"
+
+ oIFS=$IFS
+ IFS=/
+ $posix_glob set -f
+ set fnord $dstdir
+ shift
+ $posix_glob set +f
+ IFS=$oIFS
+
+ prefixes=
+
+ for d
+ do
+ test -z "$d" && continue
+
+ prefix=$prefix$d
+ if test -d "$prefix"; then
+ prefixes=
+ else
+ if $posix_mkdir; then
+ (umask=$mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+ # Don't fail if two instances are running concurrently.
+ test -d "$prefix" || exit 1
+ else
+ case $prefix in
+ *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) qprefix=$prefix;;
+ esac
+ prefixes="$prefixes '$qprefix'"
+ fi
+ fi
+ prefix=$prefix/
+ done
+
+ if test -n "$prefixes"; then
+ # Don't fail if two instances are running concurrently.
+ (umask $mkdir_umask &&
+ eval "\$doit_exec \$mkdirprog $prefixes") ||
+ test -d "$dstdir" || exit 1
+ obsolete_mkdir_used=true
+ fi
+ fi
+ fi
+
+ if test -n "$dir_arg"; then
+ { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+ { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+ else
+
+ # Make a couple of temp file names in the proper directory.
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+ # Trap to clean up those temp files at exit.
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+ # Copy the file name to the temp name.
+ (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+
+ # and set any options; do chmod last to preserve setuid bits.
+ #
+ # If any of these fail, we abort the whole thing. If we want to
+ # ignore errors from any of these, just make sure not to ignore
+ # errors from the above "$doit $cpprog $src $dsttmp" command.
+ #
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
+ { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
+ { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+ # If -C, don't bother to copy if it wouldn't change the file.
+ if $copy_on_change &&
+ old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
+ new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
+
+ eval "$initialize_posix_glob" &&
+ $posix_glob set -f &&
+ set X $old && old=:$2:$4:$5:$6 &&
+ set X $new && new=:$2:$4:$5:$6 &&
+ $posix_glob set +f &&
+
+ test "$old" = "$new" &&
+ $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
+ then
+ rm -f "$dsttmp"
+ else
+ # Rename the file to the real destination.
+ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
+
+ # The rename failed, perhaps because mv can't rename something else
+ # to itself, or perhaps because mv is so ancient that it does not
+ # support -f.
+ {
+ # Now remove or move aside any old file at destination location.
+ # We try this two ways since rm can't unlink itself on some
+ # systems and the destination file might be busy for other
+ # reasons. In this case, the final cleanup might fail but the new
+ # file should still install successfully.
+ {
+ test ! -f "$dst" ||
+ $doit $rmcmd -f "$dst" 2>/dev/null ||
+ { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
+ { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
+ } ||
+ { echo "$0: cannot unlink or rename $dst" >&2
+ (exit 1); exit 1
+ }
+ } &&
+
+ # Now rename the file to the real destination.
+ $doit $mvcmd "$dsttmp" "$dst"
+ }
+ fi || exit 1
+
+ trap '' 0
+ fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
diff --git a/build/ltmain.sh b/build/ltmain.sh
new file mode 100755
index 0000000..4d590f1
--- /dev/null
+++ b/build/ltmain.sh
@@ -0,0 +1,8406 @@
+# Generated from ltmain.m4sh.
+
+# ltmain.sh (GNU libtool) 2.2.6
+# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions. There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# GNU Libtool is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# Usage: $progname [OPTION]... [MODE-ARG]...
+#
+# Provide generalized library-building support services.
+#
+# --config show all configuration variables
+# --debug enable verbose shell tracing
+# -n, --dry-run display commands without modifying any files
+# --features display basic configuration information and exit
+# --mode=MODE use operation mode MODE
+# --preserve-dup-deps don't remove duplicate dependency libraries
+# --quiet, --silent don't print informational messages
+# --tag=TAG use configuration variables from tag TAG
+# -v, --verbose print informational messages (default)
+# --version print version information
+# -h, --help print short or long help message
+#
+# MODE must be one of the following:
+#
+# clean remove files from the build directory
+# compile compile a source file into a libtool object
+# execute automatically set library path, then run a program
+# finish complete the installation of libtool libraries
+# install install libraries or executables
+# link create a library or an executable
+# uninstall remove libraries from an installed directory
+#
+# MODE-ARGS vary depending on the MODE.
+# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
+#
+# When reporting a bug, please describe a test case to reproduce it and
+# include the following information:
+#
+# host-triplet: $host
+# shell: $SHELL
+# compiler: $LTCC
+# compiler flags: $LTCFLAGS
+# linker: $LD (gnu? $with_gnu_ld)
+# $progname: (GNU libtool) 2.2.6
+# automake: $automake_version
+# autoconf: $autoconf_version
+#
+# Report bugs to <bug-libtool@gnu.org>.
+
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION=2.2.6
+TIMESTAMP=""
+package_revision=1.3012
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# NLS nuisances: We save the old values to restore during execute mode.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+lt_user_locale=
+lt_safe_locale=
+for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+do
+ eval "if test \"\${$lt_var+set}\" = set; then
+ save_$lt_var=\$$lt_var
+ $lt_var=C
+ export $lt_var
+ lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
+ lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
+ fi"
+done
+
+$lt_unset CDPATH
+
+
+
+
+
+: ${CP="cp -f"}
+: ${ECHO="echo"}
+: ${EGREP="/usr/bin/grep -E"}
+: ${FGREP="/usr/bin/grep -F"}
+: ${GREP="/usr/bin/grep"}
+: ${LN_S="ln -s"}
+: ${MAKE="make"}
+: ${MKDIR="mkdir"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+: ${SED="/opt/local/bin/gsed"}
+: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
+: ${Xsed="$SED -e 1s/^X//"}
+
+# Global variables:
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
+EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
+
+exit_status=$EXIT_SUCCESS
+
+# Make sure IFS has a sensible default
+lt_nl='
+'
+IFS=" $lt_nl"
+
+dirname="s,/[^/]*$,,"
+basename="s,^.*/,,"
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
+}
+
+# Generated shell functions inserted here.
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as "sh" and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath="$0"
+
+# The name of this program:
+# In the unlikely event $progname began with a '-', it would play havoc with
+# func_echo (imagine progname=-n), so we prepend ./ in that case:
+func_dirname_and_basename "$progpath"
+progname=$func_basename_result
+case $progname in
+ -*) progname=./$progname ;;
+esac
+
+# Make sure we have an absolute path for reexecution:
+case $progpath in
+ [\\/]*|[A-Za-z]:\\*) ;;
+ *[\\/]*)
+ progdir=$func_dirname_result
+ progdir=`cd "$progdir" && pwd`
+ progpath="$progdir/$progname"
+ ;;
+ *)
+ save_IFS="$IFS"
+ IFS=:
+ for progdir in $PATH; do
+ IFS="$save_IFS"
+ test -x "$progdir/$progname" && break
+ done
+ IFS="$save_IFS"
+ test -n "$progdir" || progdir=`pwd`
+ progpath="$progdir/$progname"
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed="${SED}"' -e 1s/^X//'
+sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Re-`\' parameter expansions in output of double_quote_subst that were
+# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
+# in input to double_quote_subst, that '$' was protected from expansion.
+# Since each input `\' is now two `\'s, look for any number of runs of
+# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
+bs='\\'
+bs2='\\\\'
+bs4='\\\\\\\\'
+dollar='\$'
+sed_double_backslash="\
+ s/$bs4/&\\
+/g
+ s/^$bs2$dollar/$bs&/
+ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
+ s/\n//g"
+
+# Standard options:
+opt_dry_run=false
+opt_help=false
+opt_quiet=false
+opt_verbose=false
+opt_warning=:
+
+# func_echo arg...
+# Echo program name prefixed message, along with the current mode
+# name if it has been set yet.
+func_echo ()
+{
+ $ECHO "$progname${mode+: }$mode: $*"
+}
+
+# func_verbose arg...
+# Echo program name prefixed message in verbose mode only.
+func_verbose ()
+{
+ $opt_verbose && func_echo ${1+"$@"}
+
+ # A bug in bash halts the script if the last line of a function
+ # fails when set -e is in force, so we need another command to
+ # work around that:
+ :
+}
+
+# func_error arg...
+# Echo program name prefixed message to standard error.
+func_error ()
+{
+ $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
+}
+
+# func_warning arg...
+# Echo program name prefixed warning message to standard error.
+func_warning ()
+{
+ $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
+
+ # bash bug again:
+ :
+}
+
+# func_fatal_error arg...
+# Echo program name prefixed message to standard error, and exit.
+func_fatal_error ()
+{
+ func_error ${1+"$@"}
+ exit $EXIT_FAILURE
+}
+
+# func_fatal_help arg...
+# Echo program name prefixed message to standard error, followed by
+# a help hint, and exit.
+func_fatal_help ()
+{
+ func_error ${1+"$@"}
+ func_fatal_error "$help"
+}
+help="Try \`$progname --help' for more information." ## default
+
+
+# func_grep expression filename
+# Check whether EXPRESSION matches any line of FILENAME, without output.
+func_grep ()
+{
+ $GREP "$1" "$2" >/dev/null 2>&1
+}
+
+
+# func_mkdir_p directory-path
+# Make sure the entire path to DIRECTORY-PATH is available.
+func_mkdir_p ()
+{
+ my_directory_path="$1"
+ my_dir_list=
+
+ if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
+
+ # Protect directory names starting with `-'
+ case $my_directory_path in
+ -*) my_directory_path="./$my_directory_path" ;;
+ esac
+
+ # While some portion of DIR does not yet exist...
+ while test ! -d "$my_directory_path"; do
+ # ...make a list in topmost first order. Use a colon delimited
+ # list incase some portion of path contains whitespace.
+ my_dir_list="$my_directory_path:$my_dir_list"
+
+ # If the last portion added has no slash in it, the list is done
+ case $my_directory_path in */*) ;; *) break ;; esac
+
+ # ...otherwise throw away the child directory and loop
+ my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
+ done
+ my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
+
+ save_mkdir_p_IFS="$IFS"; IFS=':'
+ for my_dir in $my_dir_list; do
+ IFS="$save_mkdir_p_IFS"
+ # mkdir can fail with a `File exist' error if two processes
+ # try to create one of the directories concurrently. Don't
+ # stop in that case!
+ $MKDIR "$my_dir" 2>/dev/null || :
+ done
+ IFS="$save_mkdir_p_IFS"
+
+ # Bail out if we (or some other process) failed to create a directory.
+ test -d "$my_directory_path" || \
+ func_fatal_error "Failed to create \`$1'"
+ fi
+}
+
+
+# func_mktempdir [string]
+# Make a temporary directory that won't clash with other running
+# libtool processes, and avoids race conditions if possible. If
+# given, STRING is the basename for that directory.
+func_mktempdir ()
+{
+ my_template="${TMPDIR-/tmp}/${1-$progname}"
+
+ if test "$opt_dry_run" = ":"; then
+ # Return a directory name, but don't create it in dry-run mode
+ my_tmpdir="${my_template}-$$"
+ else
+
+ # If mktemp works, use that first and foremost
+ my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
+
+ if test ! -d "$my_tmpdir"; then
+ # Failing that, at least try and use $RANDOM to avoid a race
+ my_tmpdir="${my_template}-${RANDOM-0}$$"
+
+ save_mktempdir_umask=`umask`
+ umask 0077
+ $MKDIR "$my_tmpdir"
+ umask $save_mktempdir_umask
+ fi
+
+ # If we're not in dry-run mode, bomb out on failure
+ test -d "$my_tmpdir" || \
+ func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
+ fi
+
+ $ECHO "X$my_tmpdir" | $Xsed
+}
+
+
+# func_quote_for_eval arg
+# Aesthetically quote ARG to be evaled later.
+# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
+# is double-quoted, suitable for a subsequent eval, whereas
+# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
+# which are still active within double quotes backslashified.
+func_quote_for_eval ()
+{
+ case $1 in
+ *[\\\`\"\$]*)
+ func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
+ *)
+ func_quote_for_eval_unquoted_result="$1" ;;
+ esac
+
+ case $func_quote_for_eval_unquoted_result in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting, command substitution and and variable
+ # expansion for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
+ ;;
+ *)
+ func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
+ esac
+}
+
+
+# func_quote_for_expand arg
+# Aesthetically quote ARG to be evaled later; same as above,
+# but do not quote variable references.
+func_quote_for_expand ()
+{
+ case $1 in
+ *[\\\`\"]*)
+ my_arg=`$ECHO "X$1" | $Xsed \
+ -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
+ *)
+ my_arg="$1" ;;
+ esac
+
+ case $my_arg in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting and command substitution for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ my_arg="\"$my_arg\""
+ ;;
+ esac
+
+ func_quote_for_expand_result="$my_arg"
+}
+
+
+# func_show_eval cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it.
+func_show_eval ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$my_cmd"
+ my_status=$?
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
+# func_show_eval_locale cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it. Use the saved locale for evaluation.
+func_show_eval_locale ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$lt_user_locale
+ $my_cmd"
+ my_status=$?
+ eval "$lt_safe_locale"
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
+
+
+
+# func_version
+# Echo version message to standard output and exit.
+func_version ()
+{
+ $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
+ s/^# //
+ s/^# *$//
+ s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
+ p
+ }' < "$progpath"
+ exit $?
+}
+
+# func_usage
+# Echo short help message to standard output and exit.
+func_usage ()
+{
+ $SED -n '/^# Usage:/,/# -h/ {
+ s/^# //
+ s/^# *$//
+ s/\$progname/'$progname'/
+ p
+ }' < "$progpath"
+ $ECHO
+ $ECHO "run \`$progname --help | more' for full usage"
+ exit $?
+}
+
+# func_help
+# Echo long help message to standard output and exit.
+func_help ()
+{
+ $SED -n '/^# Usage:/,/# Report bugs to/ {
+ s/^# //
+ s/^# *$//
+ s*\$progname*'$progname'*
+ s*\$host*'"$host"'*
+ s*\$SHELL*'"$SHELL"'*
+ s*\$LTCC*'"$LTCC"'*
+ s*\$LTCFLAGS*'"$LTCFLAGS"'*
+ s*\$LD*'"$LD"'*
+ s/\$with_gnu_ld/'"$with_gnu_ld"'/
+ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
+ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
+ p
+ }' < "$progpath"
+ exit $?
+}
+
+# func_missing_arg argname
+# Echo program name prefixed message to standard error and set global
+# exit_cmd.
+func_missing_arg ()
+{
+ func_error "missing argument for $1"
+ exit_cmd=exit
+}
+
+exit_cmd=:
+
+
+
+
+
+# Check that we have a working $ECHO.
+if test "X$1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X$1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
+ # Yippee, $ECHO works!
+ :
+else
+ # Restart under the correct shell, and then maybe $ECHO will work.
+ exec $SHELL "$progpath" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<EOF
+$*
+EOF
+ exit $EXIT_SUCCESS
+fi
+
+magic="%%%MAGIC variable%%%"
+magic_exe="%%%MAGIC EXE variable%%%"
+
+# Global variables.
+# $mode is unset
+nonopt=
+execute_dlfiles=
+preserve_args=
+lo2o="s/\\.lo\$/.${objext}/"
+o2lo="s/\\.${objext}\$/.lo/"
+extracted_archives=
+extracted_serial=0
+
+opt_dry_run=false
+opt_duplicate_deps=false
+opt_silent=false
+opt_debug=:
+
+# If this variable is set in any of the actions, the command in it
+# will be execed at the end. This prevents here-documents from being
+# left over by shells.
+exec_cmd=
+
+# func_fatal_configuration arg...
+# Echo program name prefixed message to standard error, followed by
+# a configuration failure hint, and exit.
+func_fatal_configuration ()
+{
+ func_error ${1+"$@"}
+ func_error "See the $PACKAGE documentation for more information."
+ func_fatal_error "Fatal configuration error."
+}
+
+
+# func_config
+# Display the configuration for all the tags in this script.
+func_config ()
+{
+ re_begincf='^# ### BEGIN LIBTOOL'
+ re_endcf='^# ### END LIBTOOL'
+
+ # Default configuration.
+ $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
+
+ # Now print the configurations for the tags.
+ for tagname in $taglist; do
+ $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
+ done
+
+ exit $?
+}
+
+# func_features
+# Display the features supported by this script.
+func_features ()
+{
+ $ECHO "host: $host"
+ if test "$build_libtool_libs" = yes; then
+ $ECHO "enable shared libraries"
+ else
+ $ECHO "disable shared libraries"
+ fi
+ if test "$build_old_libs" = yes; then
+ $ECHO "enable static libraries"
+ else
+ $ECHO "disable static libraries"
+ fi
+
+ exit $?
+}
+
+# func_enable_tag tagname
+# Verify that TAGNAME is valid, and either flag an error and exit, or
+# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
+# variable here.
+func_enable_tag ()
+{
+ # Global variable:
+ tagname="$1"
+
+ re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
+ re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
+ sed_extractcf="/$re_begincf/,/$re_endcf/p"
+
+ # Validate tagname.
+ case $tagname in
+ *[!-_A-Za-z0-9,/]*)
+ func_fatal_error "invalid tag name: $tagname"
+ ;;
+ esac
+
+ # Don't test for the "default" C tag, as we know it's
+ # there but not specially marked.
+ case $tagname in
+ CC) ;;
+ *)
+ if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
+ taglist="$taglist $tagname"
+
+ # Evaluate the configuration. Be careful to quote the path
+ # and the sed script, to avoid splitting on whitespace, but
+ # also don't use non-portable quotes within backquotes within
+ # quotes we have to do it in 2 steps:
+ extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
+ eval "$extractedcf"
+ else
+ func_error "ignoring unknown tag $tagname"
+ fi
+ ;;
+ esac
+}
+
+# Parse options once, thoroughly. This comes as soon as possible in
+# the script to make things like `libtool --version' happen quickly.
+{
+
+ # Shorthand for --mode=foo, only valid as the first argument
+ case $1 in
+ clean|clea|cle|cl)
+ shift; set dummy --mode clean ${1+"$@"}; shift
+ ;;
+ compile|compil|compi|comp|com|co|c)
+ shift; set dummy --mode compile ${1+"$@"}; shift
+ ;;
+ execute|execut|execu|exec|exe|ex|e)
+ shift; set dummy --mode execute ${1+"$@"}; shift
+ ;;
+ finish|finis|fini|fin|fi|f)
+ shift; set dummy --mode finish ${1+"$@"}; shift
+ ;;
+ install|instal|insta|inst|ins|in|i)
+ shift; set dummy --mode install ${1+"$@"}; shift
+ ;;
+ link|lin|li|l)
+ shift; set dummy --mode link ${1+"$@"}; shift
+ ;;
+ uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
+ shift; set dummy --mode uninstall ${1+"$@"}; shift
+ ;;
+ esac
+
+ # Parse non-mode specific arguments:
+ while test "$#" -gt 0; do
+ opt="$1"
+ shift
+
+ case $opt in
+ --config) func_config ;;
+
+ --debug) preserve_args="$preserve_args $opt"
+ func_echo "enabling shell trace mode"
+ opt_debug='set -x'
+ $opt_debug
+ ;;
+
+ -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ execute_dlfiles="$execute_dlfiles $1"
+ shift
+ ;;
+
+ --dry-run | -n) opt_dry_run=: ;;
+ --features) func_features ;;
+ --finish) mode="finish" ;;
+
+ --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ case $1 in
+ # Valid mode arguments:
+ clean) ;;
+ compile) ;;
+ execute) ;;
+ finish) ;;
+ install) ;;
+ link) ;;
+ relink) ;;
+ uninstall) ;;
+
+ # Catch anything else as an error
+ *) func_error "invalid argument for $opt"
+ exit_cmd=exit
+ break
+ ;;
+ esac
+
+ mode="$1"
+ shift
+ ;;
+
+ --preserve-dup-deps)
+ opt_duplicate_deps=: ;;
+
+ --quiet|--silent) preserve_args="$preserve_args $opt"
+ opt_silent=:
+ ;;
+
+ --verbose| -v) preserve_args="$preserve_args $opt"
+ opt_silent=false
+ ;;
+
+ --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ preserve_args="$preserve_args $opt $1"
+ func_enable_tag "$1" # tagname is set here
+ shift
+ ;;
+
+ # Separate optargs to long options:
+ -dlopen=*|--mode=*|--tag=*)
+ func_opt_split "$opt"
+ set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
+ shift
+ ;;
+
+ -\?|-h) func_usage ;;
+ --help) opt_help=: ;;
+ --version) func_version ;;
+
+ -*) func_fatal_help "unrecognized option \`$opt'" ;;
+
+ *) nonopt="$opt"
+ break
+ ;;
+ esac
+ done
+
+
+ case $host in
+ *cygwin* | *mingw* | *pw32* | *cegcc*)
+ # don't eliminate duplications in $postdeps and $predeps
+ opt_duplicate_compiler_generated_deps=:
+ ;;
+ *)
+ opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
+ ;;
+ esac
+
+ # Having warned about all mis-specified options, bail out if
+ # anything was wrong.
+ $exit_cmd $EXIT_FAILURE
+}
+
+# func_check_version_match
+# Ensure that we are using m4 macros, and libtool script from the same
+# release of libtool.
+func_check_version_match ()
+{
+ if test "$package_revision" != "$macro_revision"; then
+ if test "$VERSION" != "$macro_version"; then
+ if test -z "$macro_version"; then
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from an older release.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ fi
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
+$progname: of $PACKAGE $VERSION and run autoconf again.
+_LT_EOF
+ fi
+
+ exit $EXIT_MISMATCH
+ fi
+}
+
+
+## ----------- ##
+## Main. ##
+## ----------- ##
+
+$opt_help || {
+ # Sanity checks first:
+ func_check_version_match
+
+ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+ func_fatal_configuration "not configured to build any kind of library"
+ fi
+
+ test -z "$mode" && func_fatal_error "error: you must specify a MODE."
+
+
+ # Darwin sucks
+ eval std_shrext=\"$shrext_cmds\"
+
+
+ # Only execute mode is allowed to have -dlopen flags.
+ if test -n "$execute_dlfiles" && test "$mode" != execute; then
+ func_error "unrecognized option \`-dlopen'"
+ $ECHO "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Change the help message to a mode-specific one.
+ generic_help="$help"
+ help="Try \`$progname --help --mode=$mode' for more information."
+}
+
+
+# func_lalib_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_lalib_p ()
+{
+ test -f "$1" &&
+ $SED -e 4q "$1" 2>/dev/null \
+ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
+}
+
+# func_lalib_unsafe_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function implements the same check as func_lalib_p without
+# resorting to external programs. To this end, it redirects stdin and
+# closes it afterwards, without saving the original file descriptor.
+# As a safety measure, use it only where a negative result would be
+# fatal anyway. Works if `file' does not exist.
+func_lalib_unsafe_p ()
+{
+ lalib_p=no
+ if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
+ for lalib_p_l in 1 2 3 4
+ do
+ read lalib_p_line
+ case "$lalib_p_line" in
+ \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
+ esac
+ done
+ exec 0<&5 5<&-
+ fi
+ test "$lalib_p" = yes
+}
+
+# func_ltwrapper_script_p file
+# True iff FILE is a libtool wrapper script
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_script_p ()
+{
+ func_lalib_p "$1"
+}
+
+# func_ltwrapper_executable_p file
+# True iff FILE is a libtool wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_executable_p ()
+{
+ func_ltwrapper_exec_suffix=
+ case $1 in
+ *.exe) ;;
+ *) func_ltwrapper_exec_suffix=.exe ;;
+ esac
+ $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
+}
+
+# func_ltwrapper_scriptname file
+# Assumes file is an ltwrapper_executable
+# uses $file to determine the appropriate filename for a
+# temporary ltwrapper_script.
+func_ltwrapper_scriptname ()
+{
+ func_ltwrapper_scriptname_result=""
+ if func_ltwrapper_executable_p "$1"; then
+ func_dirname_and_basename "$1" "" "."
+ func_stripname '' '.exe' "$func_basename_result"
+ func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
+ fi
+}
+
+# func_ltwrapper_p file
+# True iff FILE is a libtool wrapper script or wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_p ()
+{
+ func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
+}
+
+
+# func_execute_cmds commands fail_cmd
+# Execute tilde-delimited COMMANDS.
+# If FAIL_CMD is given, eval that upon failure.
+# FAIL_CMD may read-access the current command in variable CMD!
+func_execute_cmds ()
+{
+ $opt_debug
+ save_ifs=$IFS; IFS='~'
+ for cmd in $1; do
+ IFS=$save_ifs
+ eval cmd=\"$cmd\"
+ func_show_eval "$cmd" "${2-:}"
+ done
+ IFS=$save_ifs
+}
+
+
+# func_source file
+# Source FILE, adding directory component if necessary.
+# Note that it is not necessary on cygwin/mingw to append a dot to
+# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
+# behavior happens only for exec(3), not for open(2)! Also, sourcing
+# `FILE.' does not work on cygwin managed mounts.
+func_source ()
+{
+ $opt_debug
+ case $1 in
+ */* | *\\*) . "$1" ;;
+ *) . "./$1" ;;
+ esac
+}
+
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag ()
+{
+ $opt_debug
+ if test -n "$available_tags" && test -z "$tagname"; then
+ CC_quoted=
+ for arg in $CC; do
+ func_quote_for_eval "$arg"
+ CC_quoted="$CC_quoted $func_quote_for_eval_result"
+ done
+ case $@ in
+ # Blanks in the command may have been stripped by the calling shell,
+ # but not from the CC environment variable when configure was run.
+ " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
+ # Blanks at the start of $base_compile will cause this to fail
+ # if we don't check for them as well.
+ *)
+ for z in $available_tags; do
+ if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
+ # Evaluate the configuration.
+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
+ CC_quoted=
+ for arg in $CC; do
+ # Double-quote args containing other shell metacharacters.
+ func_quote_for_eval "$arg"
+ CC_quoted="$CC_quoted $func_quote_for_eval_result"
+ done
+ case "$@ " in
+ " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
+ # The compiler in the base compile command matches
+ # the one in the tagged configuration.
+ # Assume this is the tagged configuration we want.
+ tagname=$z
+ break
+ ;;
+ esac
+ fi
+ done
+ # If $tagname still isn't set, then no tagged configuration
+ # was found and let the user know that the "--tag" command
+ # line option must be used.
+ if test -z "$tagname"; then
+ func_echo "unable to infer tagged configuration"
+ func_fatal_error "specify a tag with \`--tag'"
+# else
+# func_verbose "using $tagname tagged configuration"
+ fi
+ ;;
+ esac
+ fi
+}
+
+
+
+# func_write_libtool_object output_name pic_name nonpic_name
+# Create a libtool object file (analogous to a ".la" file),
+# but don't create it if we're doing a dry run.
+func_write_libtool_object ()
+{
+ write_libobj=${1}
+ if test "$build_libtool_libs" = yes; then
+ write_lobj=\'${2}\'
+ else
+ write_lobj=none
+ fi
+
+ if test "$build_old_libs" = yes; then
+ write_oldobj=\'${3}\'
+ else
+ write_oldobj=none
+ fi
+
+ $opt_dry_run || {
+ cat >${write_libobj}T <<EOF
+# $write_libobj - a libtool object file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object=$write_lobj
+
+# Name of the non-PIC object
+non_pic_object=$write_oldobj
+
+EOF
+ $MV "${write_libobj}T" "${write_libobj}"
+ }
+}
+
+# func_mode_compile arg...
+func_mode_compile ()
+{
+ $opt_debug
+ # Get the compilation command and the source file.
+ base_compile=
+ srcfile="$nonopt" # always keep a non-empty value in "srcfile"
+ suppress_opt=yes
+ suppress_output=
+ arg_mode=normal
+ libobj=
+ later=
+ pie_flag=
+
+ for arg
+ do
+ case $arg_mode in
+ arg )
+ # do not "continue". Instead, add this to base_compile
+ lastarg="$arg"
+ arg_mode=normal
+ ;;
+
+ target )
+ libobj="$arg"
+ arg_mode=normal
+ continue
+ ;;
+
+ normal )
+ # Accept any command-line options.
+ case $arg in
+ -o)
+ test -n "$libobj" && \
+ func_fatal_error "you cannot specify \`-o' more than once"
+ arg_mode=target
+ continue
+ ;;
+
+ -pie | -fpie | -fPIE)
+ pie_flag="$pie_flag $arg"
+ continue
+ ;;
+
+ -shared | -static | -prefer-pic | -prefer-non-pic)
+ later="$later $arg"
+ continue
+ ;;
+
+ -no-suppress)
+ suppress_opt=no
+ continue
+ ;;
+
+ -Xcompiler)
+ arg_mode=arg # the next one goes into the "base_compile" arg list
+ continue # The current "srcfile" will either be retained or
+ ;; # replaced later. I would guess that would be a bug.
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ lastarg=
+ save_ifs="$IFS"; IFS=','
+ for arg in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$arg"
+ lastarg="$lastarg $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$lastarg"
+ lastarg=$func_stripname_result
+
+ # Add the arguments to base_compile.
+ base_compile="$base_compile $lastarg"
+ continue
+ ;;
+
+ *)
+ # Accept the current argument as the source file.
+ # The previous "srcfile" becomes the current argument.
+ #
+ lastarg="$srcfile"
+ srcfile="$arg"
+ ;;
+ esac # case $arg
+ ;;
+ esac # case $arg_mode
+
+ # Aesthetically quote the previous argument.
+ func_quote_for_eval "$lastarg"
+ base_compile="$base_compile $func_quote_for_eval_result"
+ done # for arg
+
+ case $arg_mode in
+ arg)
+ func_fatal_error "you must specify an argument for -Xcompile"
+ ;;
+ target)
+ func_fatal_error "you must specify a target with \`-o'"
+ ;;
+ *)
+ # Get the name of the library object.
+ test -z "$libobj" && {
+ func_basename "$srcfile"
+ libobj="$func_basename_result"
+ }
+ ;;
+ esac
+
+ # Recognize several different file suffixes.
+ # If the user specifies -o file.o, it is replaced with file.lo
+ case $libobj in
+ *.[cCFSifmso] | \
+ *.ada | *.adb | *.ads | *.asm | \
+ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
+ *.[fF][09]? | *.for | *.java | *.obj | *.sx)
+ func_xform "$libobj"
+ libobj=$func_xform_result
+ ;;
+ esac
+
+ case $libobj in
+ *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
+ *)
+ func_fatal_error "cannot determine name of library object from \`$libobj'"
+ ;;
+ esac
+
+ func_infer_tag $base_compile
+
+ for arg in $later; do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ continue
+ ;;
+
+ -static)
+ build_libtool_libs=no
+ build_old_libs=yes
+ continue
+ ;;
+
+ -prefer-pic)
+ pic_mode=yes
+ continue
+ ;;
+
+ -prefer-non-pic)
+ pic_mode=no
+ continue
+ ;;
+ esac
+ done
+
+ func_quote_for_eval "$libobj"
+ test "X$libobj" != "X$func_quote_for_eval_result" \
+ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
+ && func_warning "libobj name \`$libobj' may not contain shell special characters."
+ func_dirname_and_basename "$obj" "/" ""
+ objname="$func_basename_result"
+ xdir="$func_dirname_result"
+ lobj=${xdir}$objdir/$objname
+
+ test -z "$base_compile" && \
+ func_fatal_help "you must specify a compilation command"
+
+ # Delete any leftover library objects.
+ if test "$build_old_libs" = yes; then
+ removelist="$obj $lobj $libobj ${libobj}T"
+ else
+ removelist="$lobj $libobj ${libobj}T"
+ fi
+
+ # On Cygwin there's no "real" PIC flag so we must build both object types
+ case $host_os in
+ cygwin* | mingw* | pw32* | os2* | cegcc*)
+ pic_mode=default
+ ;;
+ esac
+ if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
+ # non-PIC code in shared libraries is not supported
+ pic_mode=default
+ fi
+
+ # Calculate the filename of the output object if compiler does
+ # not support -o with -c
+ if test "$compiler_c_o" = no; then
+ output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
+ lockfile="$output_obj.lock"
+ else
+ output_obj=
+ need_locks=no
+ lockfile=
+ fi
+
+ # Lock this critical section if it is needed
+ # We use this script file to make the link, it avoids creating a new file
+ if test "$need_locks" = yes; then
+ until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
+ func_echo "Waiting for $lockfile to be removed"
+ sleep 2
+ done
+ elif test "$need_locks" = warn; then
+ if test -f "$lockfile"; then
+ $ECHO "\
+*** ERROR, $lockfile exists and contains:
+`cat $lockfile 2>/dev/null`
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+ removelist="$removelist $output_obj"
+ $ECHO "$srcfile" > "$lockfile"
+ fi
+
+ $opt_dry_run || $RM $removelist
+ removelist="$removelist $lockfile"
+ trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
+
+ if test -n "$fix_srcfile_path"; then
+ eval srcfile=\"$fix_srcfile_path\"
+ fi
+ func_quote_for_eval "$srcfile"
+ qsrcfile=$func_quote_for_eval_result
+
+ # Only build a PIC object if we are building libtool libraries.
+ if test "$build_libtool_libs" = yes; then
+ # Without this assignment, base_compile gets emptied.
+ fbsd_hideous_sh_bug=$base_compile
+
+ if test "$pic_mode" != no; then
+ command="$base_compile $qsrcfile $pic_flag"
+ else
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ fi
+
+ func_mkdir_p "$xdir$objdir"
+
+ if test -z "$output_obj"; then
+ # Place PIC objects in $objdir
+ command="$command -o $lobj"
+ fi
+
+ func_show_eval_locale "$command" \
+ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed, then go on to compile the next one
+ if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
+ func_show_eval '$MV "$output_obj" "$lobj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+
+ # Allow error messages only from the first compilation.
+ if test "$suppress_opt" = yes; then
+ suppress_output=' >/dev/null 2>&1'
+ fi
+ fi
+
+ # Only build a position-dependent object if we build old libraries.
+ if test "$build_old_libs" = yes; then
+ if test "$pic_mode" != yes; then
+ # Don't build PIC code
+ command="$base_compile $qsrcfile$pie_flag"
+ else
+ command="$base_compile $qsrcfile $pic_flag"
+ fi
+ if test "$compiler_c_o" = yes; then
+ command="$command -o $obj"
+ fi
+
+ # Suppress compiler output if we already did a PIC compilation.
+ command="$command$suppress_output"
+ func_show_eval_locale "$command" \
+ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed
+ if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
+ func_show_eval '$MV "$output_obj" "$obj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+ fi
+
+ $opt_dry_run || {
+ func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
+
+ # Unlock the critical section if it was locked
+ if test "$need_locks" != no; then
+ removelist=$lockfile
+ $RM "$lockfile"
+ fi
+ }
+
+ exit $EXIT_SUCCESS
+}
+
+$opt_help || {
+test "$mode" = compile && func_mode_compile ${1+"$@"}
+}
+
+func_mode_help ()
+{
+ # We need to display help for each of the modes.
+ case $mode in
+ "")
+ # Generic help is extracted from the usage comments
+ # at the start of this file.
+ func_help
+ ;;
+
+ clean)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
+
+Remove files from the build directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, object or program, all the files associated
+with it are deleted. Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ compile)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+
+Compile a source file into a libtool library object.
+
+This mode accepts the following additional options:
+
+ -o OUTPUT-FILE set the output file name to OUTPUT-FILE
+ -no-suppress do not suppress compiler output for multiple passes
+ -prefer-pic try to building PIC objects only
+ -prefer-non-pic try to building non-PIC objects only
+ -shared do not build a \`.o' file suitable for static linking
+ -static only build a \`.o' file suitable for static linking
+
+COMPILE-COMMAND is a command to be used in creating a \`standard' object file
+from the given SOURCEFILE.
+
+The output file name is determined by removing the directory component from
+SOURCEFILE, then substituting the C source code suffix \`.c' with the
+library object suffix, \`.lo'."
+ ;;
+
+ execute)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
+
+Automatically set library path, then run a program.
+
+This mode accepts the following additional options:
+
+ -dlopen FILE add the directory containing FILE to the library path
+
+This mode sets the library path environment variable according to \`-dlopen'
+flags.
+
+If any of the ARGS are libtool executable wrappers, then they are translated
+into their corresponding uninstalled binary, and any of their required library
+directories are added to the library path.
+
+Then, COMMAND is executed, with ARGS as arguments."
+ ;;
+
+ finish)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
+
+Complete the installation of libtool libraries.
+
+Each LIBDIR is a directory that contains libtool libraries.
+
+The commands that this mode executes may require superuser privileges. Use
+the \`--dry-run' option if you just want to see what would be executed."
+ ;;
+
+ install)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
+
+Install executables or libraries.
+
+INSTALL-COMMAND is the installation command. The first component should be
+either the \`install' or \`cp' program.
+
+The following components of INSTALL-COMMAND are treated specially:
+
+ -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
+
+The rest of the components are interpreted as arguments to that command (only
+BSD-compatible install options are recognized)."
+ ;;
+
+ link)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
+
+Link object files or libraries together to form another library, or to
+create an executable program.
+
+LINK-COMMAND is a command using the C compiler that you would use to create
+a program from several object files.
+
+The following components of LINK-COMMAND are treated specially:
+
+ -all-static do not do any dynamic linking at all
+ -avoid-version do not add a version suffix if possible
+ -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
+ -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
+ -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
+ -export-symbols SYMFILE
+ try to export only the symbols listed in SYMFILE
+ -export-symbols-regex REGEX
+ try to export only the symbols matching REGEX
+ -LLIBDIR search LIBDIR for required installed libraries
+ -lNAME OUTPUT-FILE requires the installed library libNAME
+ -module build a library that can dlopened
+ -no-fast-install disable the fast-install mode
+ -no-install link a not-installable executable
+ -no-undefined declare that a library does not refer to external symbols
+ -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
+ -objectlist FILE Use a list of object files found in FILE to specify objects
+ -precious-files-regex REGEX
+ don't remove output files matching REGEX
+ -release RELEASE specify package release information
+ -rpath LIBDIR the created library will eventually be installed in LIBDIR
+ -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
+ -shared only do dynamic linking of libtool libraries
+ -shrext SUFFIX override the standard shared library file extension
+ -static do not do any dynamic linking of uninstalled libtool libraries
+ -static-libtool-libs
+ do not do any dynamic linking of libtool libraries
+ -version-info CURRENT[:REVISION[:AGE]]
+ specify library version info [each variable defaults to 0]
+ -weak LIBNAME declare that the target provides the LIBNAME interface
+
+All other options (arguments beginning with \`-') are ignored.
+
+Every other argument is treated as a filename. Files ending in \`.la' are
+treated as uninstalled libtool libraries, other files are standard or library
+object files.
+
+If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
+only library objects (\`.lo' files) may be specified, and \`-rpath' is
+required, except when creating a convenience library.
+
+If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
+using \`ar' and \`ranlib', or on Windows using \`lib'.
+
+If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
+is created, otherwise an executable program is created."
+ ;;
+
+ uninstall)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
+
+Remove libraries from an installation directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, all the files associated with it are deleted.
+Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ *)
+ func_fatal_help "invalid operation mode \`$mode'"
+ ;;
+ esac
+
+ $ECHO
+ $ECHO "Try \`$progname --help' for more information about other modes."
+
+ exit $?
+}
+
+ # Now that we've collected a possible --mode arg, show help if necessary
+ $opt_help && func_mode_help
+
+
+# func_mode_execute arg...
+func_mode_execute ()
+{
+ $opt_debug
+ # The first argument is the command name.
+ cmd="$nonopt"
+ test -z "$cmd" && \
+ func_fatal_help "you must specify a COMMAND"
+
+ # Handle -dlopen flags immediately.
+ for file in $execute_dlfiles; do
+ test -f "$file" \
+ || func_fatal_help "\`$file' is not a file"
+
+ dir=
+ case $file in
+ *.la)
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$lib' is not a valid libtool archive"
+
+ # Read the libtool library.
+ dlname=
+ library_names=
+ func_source "$file"
+
+ # Skip this library if it cannot be dlopened.
+ if test -z "$dlname"; then
+ # Warn if it was a shared library.
+ test -n "$library_names" && \
+ func_warning "\`$file' was not linked with \`-export-dynamic'"
+ continue
+ fi
+
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+
+ if test -f "$dir/$objdir/$dlname"; then
+ dir="$dir/$objdir"
+ else
+ if test ! -f "$dir/$dlname"; then
+ func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
+ fi
+ fi
+ ;;
+
+ *.lo)
+ # Just add the directory containing the .lo file.
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ ;;
+
+ *)
+ func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
+ continue
+ ;;
+ esac
+
+ # Get the absolute pathname.
+ absdir=`cd "$dir" && pwd`
+ test -n "$absdir" && dir="$absdir"
+
+ # Now add the directory to shlibpath_var.
+ if eval "test -z \"\$$shlibpath_var\""; then
+ eval "$shlibpath_var=\"\$dir\""
+ else
+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
+ fi
+ done
+
+ # This variable tells wrapper scripts just to set shlibpath_var
+ # rather than running their programs.
+ libtool_execute_magic="$magic"
+
+ # Check if any of the arguments is a wrapper script.
+ args=
+ for file
+ do
+ case $file in
+ -*) ;;
+ *)
+ # Do a test to see if this is really a libtool program.
+ if func_ltwrapper_script_p "$file"; then
+ func_source "$file"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ elif func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ func_source "$func_ltwrapper_scriptname_result"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ fi
+ ;;
+ esac
+ # Quote arguments (to preserve shell metacharacters).
+ func_quote_for_eval "$file"
+ args="$args $func_quote_for_eval_result"
+ done
+
+ if test "X$opt_dry_run" = Xfalse; then
+ if test -n "$shlibpath_var"; then
+ # Export the shlibpath_var.
+ eval "export $shlibpath_var"
+ fi
+
+ # Restore saved environment variables
+ for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ do
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ else
+ $lt_unset $lt_var
+ fi"
+ done
+
+ # Now prepare to actually exec the command.
+ exec_cmd="\$cmd$args"
+ else
+ # Display what would be done.
+ if test -n "$shlibpath_var"; then
+ eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
+ $ECHO "export $shlibpath_var"
+ fi
+ $ECHO "$cmd$args"
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$mode" = execute && func_mode_execute ${1+"$@"}
+
+
+# func_mode_finish arg...
+func_mode_finish ()
+{
+ $opt_debug
+ libdirs="$nonopt"
+ admincmds=
+
+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+ for dir
+ do
+ libdirs="$libdirs $dir"
+ done
+
+ for libdir in $libdirs; do
+ if test -n "$finish_cmds"; then
+ # Do each command in the finish commands.
+ func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
+'"$cmd"'"'
+ fi
+ if test -n "$finish_eval"; then
+ # Do the single finish_eval.
+ eval cmds=\"$finish_eval\"
+ $opt_dry_run || eval "$cmds" || admincmds="$admincmds
+ $cmds"
+ fi
+ done
+ fi
+
+ # Exit here if they wanted silent mode.
+ $opt_silent && exit $EXIT_SUCCESS
+
+ $ECHO "X----------------------------------------------------------------------" | $Xsed
+ $ECHO "Libraries have been installed in:"
+ for libdir in $libdirs; do
+ $ECHO " $libdir"
+ done
+ $ECHO
+ $ECHO "If you ever happen to want to link against installed libraries"
+ $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
+ $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
+ $ECHO "flag during linking and do at least one of the following:"
+ if test -n "$shlibpath_var"; then
+ $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
+ $ECHO " during execution"
+ fi
+ if test -n "$runpath_var"; then
+ $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
+ $ECHO " during linking"
+ fi
+ if test -n "$hardcode_libdir_flag_spec"; then
+ libdir=LIBDIR
+ eval flag=\"$hardcode_libdir_flag_spec\"
+
+ $ECHO " - use the \`$flag' linker flag"
+ fi
+ if test -n "$admincmds"; then
+ $ECHO " - have your system administrator run these commands:$admincmds"
+ fi
+ if test -f /etc/ld.so.conf; then
+ $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
+ fi
+ $ECHO
+
+ $ECHO "See any operating system documentation about shared libraries for"
+ case $host in
+ solaris2.[6789]|solaris2.1[0-9])
+ $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
+ $ECHO "pages."
+ ;;
+ *)
+ $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
+ ;;
+ esac
+ $ECHO "X----------------------------------------------------------------------" | $Xsed
+ exit $EXIT_SUCCESS
+}
+
+test "$mode" = finish && func_mode_finish ${1+"$@"}
+
+
+# func_mode_install arg...
+func_mode_install ()
+{
+ $opt_debug
+ # There may be an optional sh(1) argument at the beginning of
+ # install_prog (especially on Windows NT).
+ if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
+ # Allow the use of GNU shtool's install command.
+ $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
+ # Aesthetically quote it.
+ func_quote_for_eval "$nonopt"
+ install_prog="$func_quote_for_eval_result "
+ arg=$1
+ shift
+ else
+ install_prog=
+ arg=$nonopt
+ fi
+
+ # The real first argument should be the name of the installation program.
+ # Aesthetically quote it.
+ func_quote_for_eval "$arg"
+ install_prog="$install_prog$func_quote_for_eval_result"
+
+ # We need to accept at least all the BSD install flags.
+ dest=
+ files=
+ opts=
+ prev=
+ install_type=
+ isdir=no
+ stripme=
+ for arg
+ do
+ if test -n "$dest"; then
+ files="$files $dest"
+ dest=$arg
+ continue
+ fi
+
+ case $arg in
+ -d) isdir=yes ;;
+ -f)
+ case " $install_prog " in
+ *[\\\ /]cp\ *) ;;
+ *) prev=$arg ;;
+ esac
+ ;;
+ -g | -m | -o)
+ prev=$arg
+ ;;
+ -s)
+ stripme=" -s"
+ continue
+ ;;
+ -*)
+ ;;
+ *)
+ # If the previous option needed an argument, then skip it.
+ if test -n "$prev"; then
+ prev=
+ else
+ dest=$arg
+ continue
+ fi
+ ;;
+ esac
+
+ # Aesthetically quote the argument.
+ func_quote_for_eval "$arg"
+ install_prog="$install_prog $func_quote_for_eval_result"
+ done
+
+ test -z "$install_prog" && \
+ func_fatal_help "you must specify an install program"
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prev' option requires an argument"
+
+ if test -z "$files"; then
+ if test -z "$dest"; then
+ func_fatal_help "no file or destination specified"
+ else
+ func_fatal_help "you must specify a destination"
+ fi
+ fi
+
+ # Strip any trailing slash from the destination.
+ func_stripname '' '/' "$dest"
+ dest=$func_stripname_result
+
+ # Check to see that the destination is a directory.
+ test -d "$dest" && isdir=yes
+ if test "$isdir" = yes; then
+ destdir="$dest"
+ destname=
+ else
+ func_dirname_and_basename "$dest" "" "."
+ destdir="$func_dirname_result"
+ destname="$func_basename_result"
+
+ # Not a directory, so check to see that there is only one file specified.
+ set dummy $files; shift
+ test "$#" -gt 1 && \
+ func_fatal_help "\`$dest' is not a directory"
+ fi
+ case $destdir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ for file in $files; do
+ case $file in
+ *.lo) ;;
+ *)
+ func_fatal_help "\`$destdir' must be an absolute directory name"
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ staticlibs=
+ future_libdirs=
+ current_libdirs=
+ for file in $files; do
+
+ # Do each installation.
+ case $file in
+ *.$libext)
+ # Do the static libraries later.
+ staticlibs="$staticlibs $file"
+ ;;
+
+ *.la)
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$file' is not a valid libtool archive"
+
+ library_names=
+ old_library=
+ relink_command=
+ func_source "$file"
+
+ # Add the libdir to current_libdirs if it is the destination.
+ if test "X$destdir" = "X$libdir"; then
+ case "$current_libdirs " in
+ *" $libdir "*) ;;
+ *) current_libdirs="$current_libdirs $libdir" ;;
+ esac
+ else
+ # Note the libdir as a future libdir.
+ case "$future_libdirs " in
+ *" $libdir "*) ;;
+ *) future_libdirs="$future_libdirs $libdir" ;;
+ esac
+ fi
+
+ func_dirname "$file" "/" ""
+ dir="$func_dirname_result"
+ dir="$dir$objdir"
+
+ if test -n "$relink_command"; then
+ # Determine the prefix the user has applied to our future dir.
+ inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
+
+ # Don't allow the user to place us outside of our expected
+ # location b/c this prevents finding dependent libraries that
+ # are installed to the same prefix.
+ # At present, this check doesn't affect windows .dll's that
+ # are installed into $libdir/../bin (currently, that works fine)
+ # but it's something to keep an eye on.
+ test "$inst_prefix_dir" = "$destdir" && \
+ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
+
+ if test -n "$inst_prefix_dir"; then
+ # Stick the inst_prefix_dir data into the link command.
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
+ else
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
+ fi
+
+ func_warning "relinking \`$file'"
+ func_show_eval "$relink_command" \
+ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
+ fi
+
+ # See the names of the shared library.
+ set dummy $library_names; shift
+ if test -n "$1"; then
+ realname="$1"
+ shift
+
+ srcname="$realname"
+ test -n "$relink_command" && srcname="$realname"T
+
+ # Install the shared library and build the symlinks.
+ func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
+ 'exit $?'
+ tstripme="$stripme"
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ case $realname in
+ *.dll.a)
+ tstripme=""
+ ;;
+ esac
+ ;;
+ esac
+ if test -n "$tstripme" && test -n "$striplib"; then
+ func_show_eval "$striplib $destdir/$realname" 'exit $?'
+ fi
+
+ if test "$#" -gt 0; then
+ # Delete the old symlinks, and create new ones.
+ # Try `ln -sf' first, because the `ln' binary might depend on
+ # the symlink we replace! Solaris /bin/ln does not understand -f,
+ # so we also need to try rm && ln -s.
+ for linkname
+ do
+ test "$linkname" != "$realname" \
+ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
+ done
+ fi
+
+ # Do each command in the postinstall commands.
+ lib="$destdir/$realname"
+ func_execute_cmds "$postinstall_cmds" 'exit $?'
+ fi
+
+ # Install the pseudo-library for information purposes.
+ func_basename "$file"
+ name="$func_basename_result"
+ instname="$dir/$name"i
+ func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
+ ;;
+
+ *.lo)
+ # Install (i.e. copy) a libtool object.
+
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # Deduce the name of the destination old-style object file.
+ case $destfile in
+ *.lo)
+ func_lo2o "$destfile"
+ staticdest=$func_lo2o_result
+ ;;
+ *.$objext)
+ staticdest="$destfile"
+ destfile=
+ ;;
+ *)
+ func_fatal_help "cannot copy a libtool object to \`$destfile'"
+ ;;
+ esac
+
+ # Install the libtool object if requested.
+ test -n "$destfile" && \
+ func_show_eval "$install_prog $file $destfile" 'exit $?'
+
+ # Install the old object if enabled.
+ if test "$build_old_libs" = yes; then
+ # Deduce the name of the old-style object file.
+ func_lo2o "$file"
+ staticobj=$func_lo2o_result
+ func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
+ fi
+ exit $EXIT_SUCCESS
+ ;;
+
+ *)
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # If the file is missing, and there is a .exe on the end, strip it
+ # because it is most likely a libtool script we actually want to
+ # install
+ stripped_ext=""
+ case $file in
+ *.exe)
+ if test ! -f "$file"; then
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ stripped_ext=".exe"
+ fi
+ ;;
+ esac
+
+ # Do a test to see if this is really a libtool program.
+ case $host in
+ *cygwin* | *mingw*)
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ wrapper=$func_ltwrapper_scriptname_result
+ else
+ func_stripname '' '.exe' "$file"
+ wrapper=$func_stripname_result
+ fi
+ ;;
+ *)
+ wrapper=$file
+ ;;
+ esac
+ if func_ltwrapper_script_p "$wrapper"; then
+ notinst_deplibs=
+ relink_command=
+
+ func_source "$wrapper"
+
+ # Check the variables that should have been set.
+ test -z "$generated_by_libtool_version" && \
+ func_fatal_error "invalid libtool wrapper script \`$wrapper'"
+
+ finalize=yes
+ for lib in $notinst_deplibs; do
+ # Check to see that each library is installed.
+ libdir=
+ if test -f "$lib"; then
+ func_source "$lib"
+ fi
+ libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
+ if test -n "$libdir" && test ! -f "$libfile"; then
+ func_warning "\`$lib' has not been installed in \`$libdir'"
+ finalize=no
+ fi
+ done
+
+ relink_command=
+ func_source "$wrapper"
+
+ outputname=
+ if test "$fast_install" = no && test -n "$relink_command"; then
+ $opt_dry_run || {
+ if test "$finalize" = yes; then
+ tmpdir=`func_mktempdir`
+ func_basename "$file$stripped_ext"
+ file="$func_basename_result"
+ outputname="$tmpdir/$file"
+ # Replace the output file specification.
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
+
+ $opt_silent || {
+ func_quote_for_expand "$relink_command"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ if eval "$relink_command"; then :
+ else
+ func_error "error: relink \`$file' with the above command before installing it"
+ $opt_dry_run || ${RM}r "$tmpdir"
+ continue
+ fi
+ file="$outputname"
+ else
+ func_warning "cannot relink \`$file'"
+ fi
+ }
+ else
+ # Install the binary that we compiled earlier.
+ file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
+ fi
+ fi
+
+ # remove .exe since cygwin /usr/bin/install will append another
+ # one anyway
+ case $install_prog,$host in
+ */usr/bin/install*,*cygwin*)
+ case $file:$destfile in
+ *.exe:*.exe)
+ # this is ok
+ ;;
+ *.exe:*)
+ destfile=$destfile.exe
+ ;;
+ *:*.exe)
+ func_stripname '' '.exe' "$destfile"
+ destfile=$func_stripname_result
+ ;;
+ esac
+ ;;
+ esac
+ func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
+ $opt_dry_run || if test -n "$outputname"; then
+ ${RM}r "$tmpdir"
+ fi
+ ;;
+ esac
+ done
+
+ for file in $staticlibs; do
+ func_basename "$file"
+ name="$func_basename_result"
+
+ # Set up the ranlib parameters.
+ oldlib="$destdir/$name"
+
+ func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
+
+ if test -n "$stripme" && test -n "$old_striplib"; then
+ func_show_eval "$old_striplib $oldlib" 'exit $?'
+ fi
+
+ # Do each command in the postinstall commands.
+ func_execute_cmds "$old_postinstall_cmds" 'exit $?'
+ done
+
+ test -n "$future_libdirs" && \
+ func_warning "remember to run \`$progname --finish$future_libdirs'"
+
+ if test -n "$current_libdirs"; then
+ # Maybe just do a dry run.
+ $opt_dry_run && current_libdirs=" -n$current_libdirs"
+ exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+ else
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$mode" = install && func_mode_install ${1+"$@"}
+
+
+# func_generate_dlsyms outputname originator pic_p
+# Extract symbols from dlprefiles and create ${outputname}S.o with
+# a dlpreopen symbol table.
+func_generate_dlsyms ()
+{
+ $opt_debug
+ my_outputname="$1"
+ my_originator="$2"
+ my_pic_p="${3-no}"
+ my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
+ my_dlsyms=
+
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ if test -n "$NM" && test -n "$global_symbol_pipe"; then
+ my_dlsyms="${my_outputname}S.c"
+ else
+ func_error "not configured to extract global symbols from dlpreopened files"
+ fi
+ fi
+
+ if test -n "$my_dlsyms"; then
+ case $my_dlsyms in
+ "") ;;
+ *.c)
+ # Discover the nlist of each of the dlfiles.
+ nlist="$output_objdir/${my_outputname}.nm"
+
+ func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
+
+ # Parse the name list into a source file.
+ func_verbose "creating $output_objdir/$my_dlsyms"
+
+ $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
+/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
+/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
+
+#ifdef __cplusplus
+extern \"C\" {
+#endif
+
+/* external symbol declarations for the compiler. */\
+"
+
+ if test "$dlself" = yes; then
+ func_verbose "generating symbol list for \`$output'"
+
+ $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
+
+ # Add our own program objects to the symbol list.
+ progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ for progfile in $progfiles; do
+ func_verbose "extracting global C symbols from \`$progfile'"
+ $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
+ done
+
+ if test -n "$exclude_expsyms"; then
+ $opt_dry_run || {
+ eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ if test -n "$export_symbols_regex"; then
+ $opt_dry_run || {
+ eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ export_symbols="$output_objdir/$outputname.exp"
+ $opt_dry_run || {
+ $RM $export_symbols
+ eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ else
+ $opt_dry_run || {
+ eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
+ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ case $host in
+ *cygwin | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ fi
+ fi
+
+ for dlprefile in $dlprefiles; do
+ func_verbose "extracting global C symbols from \`$dlprefile'"
+ func_basename "$dlprefile"
+ name="$func_basename_result"
+ $opt_dry_run || {
+ eval '$ECHO ": $name " >> "$nlist"'
+ eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
+ }
+ done
+
+ $opt_dry_run || {
+ # Make sure we have at least an empty file.
+ test -f "$nlist" || : > "$nlist"
+
+ if test -n "$exclude_expsyms"; then
+ $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+ $MV "$nlist"T "$nlist"
+ fi
+
+ # Try sorting and uniquifying the output.
+ if $GREP -v "^: " < "$nlist" |
+ if sort -k 3 </dev/null >/dev/null 2>&1; then
+ sort -k 3
+ else
+ sort +2
+ fi |
+ uniq > "$nlist"S; then
+ :
+ else
+ $GREP -v "^: " < "$nlist" > "$nlist"S
+ fi
+
+ if test -f "$nlist"S; then
+ eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
+ else
+ $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
+ fi
+
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+
+/* The mapping between symbol names and symbols. */
+typedef struct {
+ const char *name;
+ void *address;
+} lt_dlsymlist;
+"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+/* DATA imports from DLLs on WIN32 con't be const, because
+ runtime relocations are performed -- see ld's documentation
+ on pseudo-relocs. */"
+ lt_dlsym_const= ;;
+ *osf5*)
+ echo >> "$output_objdir/$my_dlsyms" "\
+/* This system does not cope well with relocations in const data */"
+ lt_dlsym_const= ;;
+ *)
+ lt_dlsym_const=const ;;
+ esac
+
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+extern $lt_dlsym_const lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[];
+$lt_dlsym_const lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[] =
+{\
+ { \"$my_originator\", (void *) 0 },"
+
+ case $need_lib_prefix in
+ no)
+ eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ *)
+ eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ esac
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt_${my_prefix}_LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif\
+"
+ } # !$opt_dry_run
+
+ pic_flag_for_symtable=
+ case "$compile_command " in
+ *" -static "*) ;;
+ *)
+ case $host in
+ # compiling the symbol table file with pic_flag works around
+ # a FreeBSD bug that causes programs to crash when -lm is
+ # linked before any other PIC object. But we must not use
+ # pic_flag when linking with -static. The problem exists in
+ # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
+ *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+ pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
+ *-*-hpux*)
+ pic_flag_for_symtable=" $pic_flag" ;;
+ *)
+ if test "X$my_pic_p" != Xno; then
+ pic_flag_for_symtable=" $pic_flag"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ symtab_cflags=
+ for arg in $LTCFLAGS; do
+ case $arg in
+ -pie | -fpie | -fPIE) ;;
+ *) symtab_cflags="$symtab_cflags $arg" ;;
+ esac
+ done
+
+ # Now compile the dynamic symbol file.
+ func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
+
+ # Clean up the generated files.
+ func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
+
+ # Transform the symbol file into the correct name.
+ symfileobj="$output_objdir/${my_outputname}S.$objext"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ if test -f "$output_objdir/$my_outputname.def"; then
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ else
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ fi
+ ;;
+ *)
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ ;;
+ esac
+ ;;
+ *)
+ func_fatal_error "unknown suffix for \`$my_dlsyms'"
+ ;;
+ esac
+ else
+ # We keep going just in case the user didn't refer to
+ # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
+ # really was required.
+
+ # Nullify the symbol file.
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
+ fi
+}
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+func_win32_libid ()
+{
+ $opt_debug
+ win32_libid_type="unknown"
+ win32_fileres=`file -L $1 2>/dev/null`
+ case $win32_fileres in
+ *ar\ archive\ import\ library*) # definitely import
+ win32_libid_type="x86 archive import"
+ ;;
+ *ar\ archive*) # could be an import, or static
+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
+ $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
+ win32_nmres=`eval $NM -f posix -A $1 |
+ $SED -n -e '
+ 1,100{
+ / I /{
+ s,.*,import,
+ p
+ q
+ }
+ }'`
+ case $win32_nmres in
+ import*) win32_libid_type="x86 archive import";;
+ *) win32_libid_type="x86 archive static";;
+ esac
+ fi
+ ;;
+ *DLL*)
+ win32_libid_type="x86 DLL"
+ ;;
+ *executable*) # but shell scripts are "executable" too...
+ case $win32_fileres in
+ *MS\ Windows\ PE\ Intel*)
+ win32_libid_type="x86 DLL"
+ ;;
+ esac
+ ;;
+ esac
+ $ECHO "$win32_libid_type"
+}
+
+
+
+# func_extract_an_archive dir oldlib
+func_extract_an_archive ()
+{
+ $opt_debug
+ f_ex_an_ar_dir="$1"; shift
+ f_ex_an_ar_oldlib="$1"
+ func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
+ if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
+ fi
+}
+
+
+# func_extract_archives gentop oldlib ...
+func_extract_archives ()
+{
+ $opt_debug
+ my_gentop="$1"; shift
+ my_oldlibs=${1+"$@"}
+ my_oldobjs=""
+ my_xlib=""
+ my_xabs=""
+ my_xdir=""
+
+ for my_xlib in $my_oldlibs; do
+ # Extract the objects.
+ case $my_xlib in
+ [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
+ *) my_xabs=`pwd`"/$my_xlib" ;;
+ esac
+ func_basename "$my_xlib"
+ my_xlib="$func_basename_result"
+ my_xlib_u=$my_xlib
+ while :; do
+ case " $extracted_archives " in
+ *" $my_xlib_u "*)
+ func_arith $extracted_serial + 1
+ extracted_serial=$func_arith_result
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
+ done
+ extracted_archives="$extracted_archives $my_xlib_u"
+ my_xdir="$my_gentop/$my_xlib_u"
+
+ func_mkdir_p "$my_xdir"
+
+ case $host in
+ *-darwin*)
+ func_verbose "Extracting $my_xabs"
+ # Do not bother doing anything if just a dry run
+ $opt_dry_run || {
+ darwin_orig_dir=`pwd`
+ cd $my_xdir || exit $?
+ darwin_archive=$my_xabs
+ darwin_curdir=`pwd`
+ darwin_base_archive=`basename "$darwin_archive"`
+ darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
+ if test -n "$darwin_arches"; then
+ darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
+ darwin_arch=
+ func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
+ for darwin_arch in $darwin_arches ; do
+ func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
+ cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ func_extract_an_archive "`pwd`" "${darwin_base_archive}"
+ cd "$darwin_curdir"
+ $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
+ done # $darwin_arches
+ ## Okay now we've a bunch of thin objects, gotta fatten them up :)
+ darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
+ darwin_file=
+ darwin_files=
+ for darwin_file in $darwin_filelist; do
+ darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
+ $LIPO -create -output "$darwin_file" $darwin_files
+ done # $darwin_filelist
+ $RM -rf unfat-$$
+ cd "$darwin_orig_dir"
+ else
+ cd $darwin_orig_dir
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ fi # $darwin_arches
+ } # !$opt_dry_run
+ ;;
+ *)
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ ;;
+ esac
+ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+ done
+
+ func_extract_archives_result="$my_oldobjs"
+}
+
+
+
+# func_emit_wrapper_part1 [arg=no]
+#
+# Emit the first part of a libtool wrapper script on stdout.
+# For more information, see the description associated with
+# func_emit_wrapper(), below.
+func_emit_wrapper_part1 ()
+{
+ func_emit_wrapper_part1_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_part1_arg1=$1
+ fi
+
+ $ECHO "\
+#! $SHELL
+
+# $output - temporary wrapper script for $objdir/$outputname
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# The $output program cannot be directly executed until all the libtool
+# libraries that it depends on are installed.
+#
+# This wrapper script should never be moved out of the build directory.
+# If it is, it will not operate correctly.
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='${SED} -e 1s/^X//'
+sed_quote_subst='$sed_quote_subst'
+
+# Be Bourne compatible
+if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+relink_command=\"$relink_command\"
+
+# This environment variable determines our operation mode.
+if test \"\$libtool_install_magic\" = \"$magic\"; then
+ # install mode needs the following variables:
+ generated_by_libtool_version='$macro_version'
+ notinst_deplibs='$notinst_deplibs'
+else
+ # When we are sourced in execute mode, \$file and \$ECHO are already set.
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ ECHO=\"$qecho\"
+ file=\"\$0\"
+ # Make sure echo works.
+ if test \"X\$1\" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+ elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
+ # Yippee, \$ECHO works!
+ :
+ else
+ # Restart under the correct shell, and then maybe \$ECHO will work.
+ exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
+ fi
+ fi\
+"
+ $ECHO "\
+
+ # Find the directory that this script lives in.
+ thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
+ test \"x\$thisdir\" = \"x\$file\" && thisdir=.
+
+ # Follow symbolic links until we get to the real thisdir.
+ file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
+ while test -n \"\$file\"; do
+ destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
+
+ # If there was a directory component, then change thisdir.
+ if test \"x\$destdir\" != \"x\$file\"; then
+ case \"\$destdir\" in
+ [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
+ *) thisdir=\"\$thisdir/\$destdir\" ;;
+ esac
+ fi
+
+ file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
+ file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
+ done
+"
+}
+# end: func_emit_wrapper_part1
+
+# func_emit_wrapper_part2 [arg=no]
+#
+# Emit the second part of a libtool wrapper script on stdout.
+# For more information, see the description associated with
+# func_emit_wrapper(), below.
+func_emit_wrapper_part2 ()
+{
+ func_emit_wrapper_part2_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_part2_arg1=$1
+ fi
+
+ $ECHO "\
+
+ # Usually 'no', except on cygwin/mingw when embedded into
+ # the cwrapper.
+ WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
+ if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
+ # special case for '.'
+ if test \"\$thisdir\" = \".\"; then
+ thisdir=\`pwd\`
+ fi
+ # remove .libs from thisdir
+ case \"\$thisdir\" in
+ *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
+ $objdir ) thisdir=. ;;
+ esac
+ fi
+
+ # Try to get the absolute directory name.
+ absdir=\`cd \"\$thisdir\" && pwd\`
+ test -n \"\$absdir\" && thisdir=\"\$absdir\"
+"
+
+ if test "$fast_install" = yes; then
+ $ECHO "\
+ program=lt-'$outputname'$exeext
+ progdir=\"\$thisdir/$objdir\"
+
+ if test ! -f \"\$progdir/\$program\" ||
+ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
+ test \"X\$file\" != \"X\$progdir/\$program\"; }; then
+
+ file=\"\$\$-\$program\"
+
+ if test ! -d \"\$progdir\"; then
+ $MKDIR \"\$progdir\"
+ else
+ $RM \"\$progdir/\$file\"
+ fi"
+
+ $ECHO "\
+
+ # relink executable if necessary
+ if test -n \"\$relink_command\"; then
+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
+ else
+ $ECHO \"\$relink_command_output\" >&2
+ $RM \"\$progdir/\$file\"
+ exit 1
+ fi
+ fi
+
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
+ { $RM \"\$progdir/\$program\";
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
+ $RM \"\$progdir/\$file\"
+ fi"
+ else
+ $ECHO "\
+ program='$outputname'
+ progdir=\"\$thisdir/$objdir\"
+"
+ fi
+
+ $ECHO "\
+
+ if test -f \"\$progdir/\$program\"; then"
+
+ # Export our shlibpath_var if we have one.
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ $ECHO "\
+ # Add our own library path to $shlibpath_var
+ $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
+
+ # Some systems cannot cope with colon-terminated $shlibpath_var
+ # The second colon is a workaround for a bug in BeOS R4 sed
+ $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
+
+ export $shlibpath_var
+"
+ fi
+
+ # fixup the dll searchpath if we need to.
+ if test -n "$dllsearchpath"; then
+ $ECHO "\
+ # Add the dll search path components to the executable PATH
+ PATH=$dllsearchpath:\$PATH
+"
+ fi
+
+ $ECHO "\
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ # Run the actual program with our arguments.
+"
+ case $host in
+ # Backslashes separate directories on plain windows
+ *-*-mingw | *-*-os2* | *-cegcc*)
+ $ECHO "\
+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
+"
+ ;;
+
+ *)
+ $ECHO "\
+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
+"
+ ;;
+ esac
+ $ECHO "\
+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
+ exit 1
+ fi
+ else
+ # The program doesn't exist.
+ \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
+ \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
+ $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
+ exit 1
+ fi
+fi\
+"
+}
+# end: func_emit_wrapper_part2
+
+
+# func_emit_wrapper [arg=no]
+#
+# Emit a libtool wrapper script on stdout.
+# Don't directly open a file because we may want to
+# incorporate the script contents within a cygwin/mingw
+# wrapper executable. Must ONLY be called from within
+# func_mode_link because it depends on a number of variables
+# set therein.
+#
+# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
+# variable will take. If 'yes', then the emitted script
+# will assume that the directory in which it is stored is
+# the $objdir directory. This is a cygwin/mingw-specific
+# behavior.
+func_emit_wrapper ()
+{
+ func_emit_wrapper_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_arg1=$1
+ fi
+
+ # split this up so that func_emit_cwrapperexe_src
+ # can call each part independently.
+ func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
+ func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
+}
+
+
+# func_to_host_path arg
+#
+# Convert paths to host format when used with build tools.
+# Intended for use with "native" mingw (where libtool itself
+# is running under the msys shell), or in the following cross-
+# build environments:
+# $build $host
+# mingw (msys) mingw [e.g. native]
+# cygwin mingw
+# *nix + wine mingw
+# where wine is equipped with the `winepath' executable.
+# In the native mingw case, the (msys) shell automatically
+# converts paths for any non-msys applications it launches,
+# but that facility isn't available from inside the cwrapper.
+# Similar accommodations are necessary for $host mingw and
+# $build cygwin. Calling this function does no harm for other
+# $host/$build combinations not listed above.
+#
+# ARG is the path (on $build) that should be converted to
+# the proper representation for $host. The result is stored
+# in $func_to_host_path_result.
+func_to_host_path ()
+{
+ func_to_host_path_result="$1"
+ if test -n "$1" ; then
+ case $host in
+ *mingw* )
+ lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+ case $build in
+ *mingw* ) # actually, msys
+ # awkward: cmd appends spaces to result
+ lt_sed_strip_trailing_spaces="s/[ ]*\$//"
+ func_to_host_path_tmp1=`( cmd //c echo "$1" |\
+ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ *cygwin* )
+ func_to_host_path_tmp1=`cygpath -w "$1"`
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ * )
+ # Unfortunately, winepath does not exit with a non-zero
+ # error code, so we are forced to check the contents of
+ # stdout. On the other hand, if the command is not
+ # found, the shell will set an exit code of 127 and print
+ # *an error message* to stdout. So we must check for both
+ # error code of zero AND non-empty stdout, which explains
+ # the odd construction:
+ func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
+ if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ else
+ # Allow warning below.
+ func_to_host_path_result=""
+ fi
+ ;;
+ esac
+ if test -z "$func_to_host_path_result" ; then
+ func_error "Could not determine host path corresponding to"
+ func_error " '$1'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback:
+ func_to_host_path_result="$1"
+ fi
+ ;;
+ esac
+ fi
+}
+# end: func_to_host_path
+
+# func_to_host_pathlist arg
+#
+# Convert pathlists to host format when used with build tools.
+# See func_to_host_path(), above. This function supports the
+# following $build/$host combinations (but does no harm for
+# combinations not listed here):
+# $build $host
+# mingw (msys) mingw [e.g. native]
+# cygwin mingw
+# *nix + wine mingw
+#
+# Path separators are also converted from $build format to
+# $host format. If ARG begins or ends with a path separator
+# character, it is preserved (but converted to $host format)
+# on output.
+#
+# ARG is a pathlist (on $build) that should be converted to
+# the proper representation on $host. The result is stored
+# in $func_to_host_pathlist_result.
+func_to_host_pathlist ()
+{
+ func_to_host_pathlist_result="$1"
+ if test -n "$1" ; then
+ case $host in
+ *mingw* )
+ lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+ # Remove leading and trailing path separator characters from
+ # ARG. msys behavior is inconsistent here, cygpath turns them
+ # into '.;' and ';.', and winepath ignores them completely.
+ func_to_host_pathlist_tmp2="$1"
+ # Once set for this call, this variable should not be
+ # reassigned. It is used in tha fallback case.
+ func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e 's|^:*||' -e 's|:*$||'`
+ case $build in
+ *mingw* ) # Actually, msys.
+ # Awkward: cmd appends spaces to result.
+ lt_sed_strip_trailing_spaces="s/[ ]*\$//"
+ func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
+ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ *cygwin* )
+ func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ * )
+ # unfortunately, winepath doesn't convert pathlists
+ func_to_host_pathlist_result=""
+ func_to_host_pathlist_oldIFS=$IFS
+ IFS=:
+ for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
+ IFS=$func_to_host_pathlist_oldIFS
+ if test -n "$func_to_host_pathlist_f" ; then
+ func_to_host_path "$func_to_host_pathlist_f"
+ if test -n "$func_to_host_path_result" ; then
+ if test -z "$func_to_host_pathlist_result" ; then
+ func_to_host_pathlist_result="$func_to_host_path_result"
+ else
+ func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
+ fi
+ fi
+ fi
+ IFS=:
+ done
+ IFS=$func_to_host_pathlist_oldIFS
+ ;;
+ esac
+ if test -z "$func_to_host_pathlist_result" ; then
+ func_error "Could not determine the host path(s) corresponding to"
+ func_error " '$1'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback. This may break if $1 contains DOS-style drive
+ # specifications. The fix is not to complicate the expression
+ # below, but for the user to provide a working wine installation
+ # with winepath so that path translation in the cross-to-mingw
+ # case works properly.
+ lt_replace_pathsep_nix_to_dos="s|:|;|g"
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
+ $SED -e "$lt_replace_pathsep_nix_to_dos"`
+ fi
+ # Now, add the leading and trailing path separators back
+ case "$1" in
+ :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
+ ;;
+ esac
+ case "$1" in
+ *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+}
+# end: func_to_host_pathlist
+
+# func_emit_cwrapperexe_src
+# emit the source code for a wrapper executable on stdout
+# Must ONLY be called from within func_mode_link because
+# it depends on a number of variable set therein.
+func_emit_cwrapperexe_src ()
+{
+ cat <<EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+ Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+
+ The $output program cannot be directly executed until all the libtool
+ libraries that it depends on are installed.
+
+ This wrapper executable should never be moved out of the build directory.
+ If it is, it will not operate correctly.
+
+ Currently, it simply execs the wrapper *script* "$SHELL $output",
+ but could eventually absorb all of the scripts functionality and
+ exec $objdir/$outputname directly.
+*/
+EOF
+ cat <<"EOF"
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef _MSC_VER
+# include <direct.h>
+# include <process.h>
+# include <io.h>
+# define setmode _setmode
+#else
+# include <unistd.h>
+# include <stdint.h>
+# ifdef __CYGWIN__
+# include <io.h>
+# define HAVE_SETENV
+# ifdef __STRICT_ANSI__
+char *realpath (const char *, char *);
+int putenv (char *);
+int setenv (const char *, const char *, int);
+# endif
+# endif
+#endif
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef S_IXOTH
+# define S_IXOTH 0
+#endif
+#ifndef S_IXGRP
+# define S_IXGRP 0
+#endif
+
+#ifdef _MSC_VER
+# define S_IXUSR _S_IEXEC
+# define stat _stat
+# ifndef _INTPTR_T_DEFINED
+# define intptr_t int
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR
+# define DIR_SEPARATOR '/'
+# define PATH_SEPARATOR ':'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+ defined (__OS2__)
+# define HAVE_DOS_BASED_FILE_SYSTEM
+# define FOPEN_WB "wb"
+# ifndef DIR_SEPARATOR_2
+# define DIR_SEPARATOR_2 '\\'
+# endif
+# ifndef PATH_SEPARATOR_2
+# define PATH_SEPARATOR_2 ';'
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#ifndef PATH_SEPARATOR_2
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
+#else /* PATH_SEPARATOR_2 */
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
+#endif /* PATH_SEPARATOR_2 */
+
+#ifdef __CYGWIN__
+# define FOPEN_WB "wb"
+#endif
+
+#ifndef FOPEN_WB
+# define FOPEN_WB "w"
+#endif
+#ifndef _O_BINARY
+# define _O_BINARY 0
+#endif
+
+#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+ if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+#undef LTWRAPPER_DEBUGPRINTF
+#if defined DEBUGWRAPPER
+# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
+static void
+ltwrapper_debugprintf (const char *fmt, ...)
+{
+ va_list args;
+ va_start (args, fmt);
+ (void) vfprintf (stderr, fmt, args);
+ va_end (args);
+}
+#else
+# define LTWRAPPER_DEBUGPRINTF(args)
+#endif
+
+const char *program_name = NULL;
+
+void *xmalloc (size_t num);
+char *xstrdup (const char *string);
+const char *base_name (const char *name);
+char *find_executable (const char *wrapper);
+char *chase_symlinks (const char *pathspec);
+int make_executable (const char *path);
+int check_executable (const char *path);
+char *strendzap (char *str, const char *pat);
+void lt_fatal (const char *message, ...);
+void lt_setenv (const char *name, const char *value);
+char *lt_extend_str (const char *orig_value, const char *add, int to_end);
+void lt_opt_process_env_set (const char *arg);
+void lt_opt_process_env_prepend (const char *arg);
+void lt_opt_process_env_append (const char *arg);
+int lt_split_name_value (const char *arg, char** name, char** value);
+void lt_update_exe_path (const char *name, const char *value);
+void lt_update_lib_path (const char *name, const char *value);
+
+static const char *script_text_part1 =
+EOF
+
+ func_emit_wrapper_part1 yes |
+ $SED -e 's/\([\\"]\)/\\\1/g' \
+ -e 's/^/ "/' -e 's/$/\\n"/'
+ echo ";"
+ cat <<EOF
+
+static const char *script_text_part2 =
+EOF
+ func_emit_wrapper_part2 yes |
+ $SED -e 's/\([\\"]\)/\\\1/g' \
+ -e 's/^/ "/' -e 's/$/\\n"/'
+ echo ";"
+
+ cat <<EOF
+const char * MAGIC_EXE = "$magic_exe";
+const char * LIB_PATH_VARNAME = "$shlibpath_var";
+EOF
+
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ func_to_host_pathlist "$temp_rpath"
+ cat <<EOF
+const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
+EOF
+ else
+ cat <<"EOF"
+const char * LIB_PATH_VALUE = "";
+EOF
+ fi
+
+ if test -n "$dllsearchpath"; then
+ func_to_host_pathlist "$dllsearchpath:"
+ cat <<EOF
+const char * EXE_PATH_VARNAME = "PATH";
+const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
+EOF
+ else
+ cat <<"EOF"
+const char * EXE_PATH_VARNAME = "";
+const char * EXE_PATH_VALUE = "";
+EOF
+ fi
+
+ if test "$fast_install" = yes; then
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
+EOF
+ else
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
+EOF
+ fi
+
+
+ cat <<"EOF"
+
+#define LTWRAPPER_OPTION_PREFIX "--lt-"
+#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
+
+static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
+static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
+
+static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
+
+static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
+static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
+ /* argument is putenv-style "foo=bar", value of foo is set to bar */
+
+static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
+static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
+ /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
+
+static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
+static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
+ /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
+
+int
+main (int argc, char *argv[])
+{
+ char **newargz;
+ int newargc;
+ char *tmp_pathspec;
+ char *actual_cwrapper_path;
+ char *actual_cwrapper_name;
+ char *target_name;
+ char *lt_argv_zero;
+ intptr_t rval = 127;
+
+ int i;
+
+ program_name = (char *) xstrdup (base_name (argv[0]));
+ LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
+ LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
+
+ /* very simple arg parsing; don't want to rely on getopt */
+ for (i = 1; i < argc; i++)
+ {
+ if (strcmp (argv[i], dumpscript_opt) == 0)
+ {
+EOF
+ case "$host" in
+ *mingw* | *cygwin* )
+ # make stdout use "unix" line endings
+ echo " setmode(1,_O_BINARY);"
+ ;;
+ esac
+
+ cat <<"EOF"
+ printf ("%s", script_text_part1);
+ printf ("%s", script_text_part2);
+ return 0;
+ }
+ }
+
+ newargz = XMALLOC (char *, argc + 1);
+ tmp_pathspec = find_executable (argv[0]);
+ if (tmp_pathspec == NULL)
+ lt_fatal ("Couldn't find %s", argv[0]);
+ LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
+ tmp_pathspec));
+
+ actual_cwrapper_path = chase_symlinks (tmp_pathspec);
+ LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
+ actual_cwrapper_path));
+ XFREE (tmp_pathspec);
+
+ actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
+ strendzap (actual_cwrapper_path, actual_cwrapper_name);
+
+ /* wrapper name transforms */
+ strendzap (actual_cwrapper_name, ".exe");
+ tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
+ XFREE (actual_cwrapper_name);
+ actual_cwrapper_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ /* target_name transforms -- use actual target program name; might have lt- prefix */
+ target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
+ strendzap (target_name, ".exe");
+ tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
+ XFREE (target_name);
+ target_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
+ target_name));
+EOF
+
+ cat <<EOF
+ newargz[0] =
+ XMALLOC (char, (strlen (actual_cwrapper_path) +
+ strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
+ strcpy (newargz[0], actual_cwrapper_path);
+ strcat (newargz[0], "$objdir");
+ strcat (newargz[0], "/");
+EOF
+
+ cat <<"EOF"
+ /* stop here, and copy so we don't have to do this twice */
+ tmp_pathspec = xstrdup (newargz[0]);
+
+ /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
+ strcat (newargz[0], actual_cwrapper_name);
+
+ /* DO want the lt- prefix here if it exists, so use target_name */
+ lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
+ XFREE (tmp_pathspec);
+ tmp_pathspec = NULL;
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ {
+ char* p;
+ while ((p = strchr (newargz[0], '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ while ((p = strchr (lt_argv_zero, '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ }
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+ XFREE (target_name);
+ XFREE (actual_cwrapper_path);
+ XFREE (actual_cwrapper_name);
+
+ lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
+ lt_setenv ("DUALCASE", "1"); /* for MSK sh */
+ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
+ lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
+
+ newargc=0;
+ for (i = 1; i < argc; i++)
+ {
+ if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
+ {
+ if (argv[i][env_set_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_set_opt_len + 1;
+ lt_opt_process_env_set (p);
+ }
+ else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_set (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_set_opt);
+ continue;
+ }
+ if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
+ {
+ if (argv[i][env_prepend_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_prepend_opt_len + 1;
+ lt_opt_process_env_prepend (p);
+ }
+ else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_prepend (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_prepend_opt);
+ continue;
+ }
+ if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
+ {
+ if (argv[i][env_append_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_append_opt_len + 1;
+ lt_opt_process_env_append (p);
+ }
+ else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_append (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_append_opt);
+ continue;
+ }
+ if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
+ {
+ /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
+ namespace, but it is not one of the ones we know about and
+ have already dealt with, above (inluding dump-script), then
+ report an error. Otherwise, targets might begin to believe
+ they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
+ namespace. The first time any user complains about this, we'll
+ need to make LTWRAPPER_OPTION_PREFIX a configure-time option
+ or a configure.ac-settable value.
+ */
+ lt_fatal ("Unrecognized option in %s namespace: '%s'",
+ ltwrapper_option_prefix, argv[i]);
+ }
+ /* otherwise ... */
+ newargz[++newargc] = xstrdup (argv[i]);
+ }
+ newargz[++newargc] = NULL;
+
+ LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
+ for (i = 0; i < newargc; i++)
+ {
+ LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
+ }
+
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ /* execv doesn't actually work on mingw as expected on unix */
+ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
+ if (rval == -1)
+ {
+ /* failed to start process */
+ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
+ return 127;
+ }
+ return rval;
+EOF
+ ;;
+ *)
+ cat <<"EOF"
+ execv (lt_argv_zero, newargz);
+ return rval; /* =127, but avoids unused variable warning */
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+}
+
+void *
+xmalloc (size_t num)
+{
+ void *p = (void *) malloc (num);
+ if (!p)
+ lt_fatal ("Memory exhausted");
+
+ return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+ return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
+ string) : NULL;
+}
+
+const char *
+base_name (const char *name)
+{
+ const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ /* Skip over the disk name in MSDOS pathnames. */
+ if (isalpha ((unsigned char) name[0]) && name[1] == ':')
+ name += 2;
+#endif
+
+ for (base = name; *name; name++)
+ if (IS_DIR_SEPARATOR (*name))
+ base = name + 1;
+ return base;
+}
+
+int
+check_executable (const char *path)
+{
+ struct stat st;
+
+ LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
+ path ? (*path ? path : "EMPTY!") : "NULL!"));
+ if ((!path) || (!*path))
+ return 0;
+
+ if ((stat (path, &st) >= 0)
+ && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
+ return 1;
+ else
+ return 0;
+}
+
+int
+make_executable (const char *path)
+{
+ int rval = 0;
+ struct stat st;
+
+ LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
+ path ? (*path ? path : "EMPTY!") : "NULL!"));
+ if ((!path) || (!*path))
+ return 0;
+
+ if (stat (path, &st) >= 0)
+ {
+ rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
+ }
+ return rval;
+}
+
+/* Searches for the full path of the wrapper. Returns
+ newly allocated full path name if found, NULL otherwise
+ Does not chase symlinks, even on platforms that support them.
+*/
+char *
+find_executable (const char *wrapper)
+{
+ int has_slash = 0;
+ const char *p;
+ const char *p_next;
+ /* static buffer for getcwd */
+ char tmp[LT_PATHMAX + 1];
+ int tmp_len;
+ char *concat_name;
+
+ LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
+ wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
+
+ if ((wrapper == NULL) || (*wrapper == '\0'))
+ return NULL;
+
+ /* Absolute path? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ else
+ {
+#endif
+ if (IS_DIR_SEPARATOR (wrapper[0]))
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ }
+#endif
+
+ for (p = wrapper; *p; p++)
+ if (*p == '/')
+ {
+ has_slash = 1;
+ break;
+ }
+ if (!has_slash)
+ {
+ /* no slashes; search PATH */
+ const char *path = getenv ("PATH");
+ if (path != NULL)
+ {
+ for (p = path; *p; p = p_next)
+ {
+ const char *q;
+ size_t p_len;
+ for (q = p; *q; q++)
+ if (IS_PATH_SEPARATOR (*q))
+ break;
+ p_len = q - p;
+ p_next = (*q == '\0' ? q : q + 1);
+ if (p_len == 0)
+ {
+ /* empty path: current directory */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen (tmp);
+ concat_name =
+ XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+ }
+ else
+ {
+ concat_name =
+ XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, p, p_len);
+ concat_name[p_len] = '/';
+ strcpy (concat_name + p_len + 1, wrapper);
+ }
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ }
+ /* not found in PATH; assume curdir */
+ }
+ /* Relative path | not found in path: prepend cwd */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen (tmp);
+ concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ return NULL;
+}
+
+char *
+chase_symlinks (const char *pathspec)
+{
+#ifndef S_ISLNK
+ return xstrdup (pathspec);
+#else
+ char buf[LT_PATHMAX];
+ struct stat s;
+ char *tmp_pathspec = xstrdup (pathspec);
+ char *p;
+ int has_symlinks = 0;
+ while (strlen (tmp_pathspec) && !has_symlinks)
+ {
+ LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
+ tmp_pathspec));
+ if (lstat (tmp_pathspec, &s) == 0)
+ {
+ if (S_ISLNK (s.st_mode) != 0)
+ {
+ has_symlinks = 1;
+ break;
+ }
+
+ /* search backwards for last DIR_SEPARATOR */
+ p = tmp_pathspec + strlen (tmp_pathspec) - 1;
+ while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ p--;
+ if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ {
+ /* no more DIR_SEPARATORS left */
+ break;
+ }
+ *p = '\0';
+ }
+ else
+ {
+ char *errstr = strerror (errno);
+ lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
+ }
+ }
+ XFREE (tmp_pathspec);
+
+ if (!has_symlinks)
+ {
+ return xstrdup (pathspec);
+ }
+
+ tmp_pathspec = realpath (pathspec, buf);
+ if (tmp_pathspec == 0)
+ {
+ lt_fatal ("Could not follow symlinks for %s", pathspec);
+ }
+ return xstrdup (tmp_pathspec);
+#endif
+}
+
+char *
+strendzap (char *str, const char *pat)
+{
+ size_t len, patlen;
+
+ assert (str != NULL);
+ assert (pat != NULL);
+
+ len = strlen (str);
+ patlen = strlen (pat);
+
+ if (patlen <= len)
+ {
+ str += len - patlen;
+ if (strcmp (str, pat) == 0)
+ *str = '\0';
+ }
+ return str;
+}
+
+static void
+lt_error_core (int exit_status, const char *mode,
+ const char *message, va_list ap)
+{
+ fprintf (stderr, "%s: %s: ", program_name, mode);
+ vfprintf (stderr, message, ap);
+ fprintf (stderr, ".\n");
+
+ if (exit_status >= 0)
+ exit (exit_status);
+}
+
+void
+lt_fatal (const char *message, ...)
+{
+ va_list ap;
+ va_start (ap, message);
+ lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
+ va_end (ap);
+}
+
+void
+lt_setenv (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+ {
+#ifdef HAVE_SETENV
+ /* always make a copy, for consistency with !HAVE_SETENV */
+ char *str = xstrdup (value);
+ setenv (name, str, 1);
+#else
+ int len = strlen (name) + 1 + strlen (value) + 1;
+ char *str = XMALLOC (char, len);
+ sprintf (str, "%s=%s", name, value);
+ if (putenv (str) != EXIT_SUCCESS)
+ {
+ XFREE (str);
+ }
+#endif
+ }
+}
+
+char *
+lt_extend_str (const char *orig_value, const char *add, int to_end)
+{
+ char *new_value;
+ if (orig_value && *orig_value)
+ {
+ int orig_value_len = strlen (orig_value);
+ int add_len = strlen (add);
+ new_value = XMALLOC (char, add_len + orig_value_len + 1);
+ if (to_end)
+ {
+ strcpy (new_value, orig_value);
+ strcpy (new_value + orig_value_len, add);
+ }
+ else
+ {
+ strcpy (new_value, add);
+ strcpy (new_value + add_len, orig_value);
+ }
+ }
+ else
+ {
+ new_value = xstrdup (add);
+ }
+ return new_value;
+}
+
+int
+lt_split_name_value (const char *arg, char** name, char** value)
+{
+ const char *p;
+ int len;
+ if (!arg || !*arg)
+ return 1;
+
+ p = strchr (arg, (int)'=');
+
+ if (!p)
+ return 1;
+
+ *value = xstrdup (++p);
+
+ len = strlen (arg) - strlen (*value);
+ *name = XMALLOC (char, len);
+ strncpy (*name, arg, len-1);
+ (*name)[len - 1] = '\0';
+
+ return 0;
+}
+
+void
+lt_opt_process_env_set (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
+ }
+
+ lt_setenv (name, value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_opt_process_env_prepend (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+ char *new_value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
+ }
+
+ new_value = lt_extend_str (getenv (name), value, 0);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_opt_process_env_append (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+ char *new_value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
+ }
+
+ new_value = lt_extend_str (getenv (name), value, 1);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_update_exe_path (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ /* some systems can't cope with a ':'-terminated path #' */
+ int len = strlen (new_value);
+ while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
+ {
+ new_value[len-1] = '\0';
+ }
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+void
+lt_update_lib_path (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+
+EOF
+}
+# end: func_emit_cwrapperexe_src
+
+# func_mode_link arg...
+func_mode_link ()
+{
+ $opt_debug
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ # It is impossible to link a dll without this setting, and
+ # we shouldn't force the makefile maintainer to figure out
+ # which system we are compiling for in order to pass an extra
+ # flag for every libtool invocation.
+ # allow_undefined=no
+
+ # FIXME: Unfortunately, there are problems with the above when trying
+ # to make a dll which has undefined symbols, in which case not
+ # even a static library is built. For now, we need to specify
+ # -no-undefined on the libtool link line when we can be certain
+ # that all symbols are satisfied, otherwise we get a static library.
+ allow_undefined=yes
+ ;;
+ *)
+ allow_undefined=yes
+ ;;
+ esac
+ libtool_args=$nonopt
+ base_compile="$nonopt $@"
+ compile_command=$nonopt
+ finalize_command=$nonopt
+
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
+ lib_search_path=`pwd`
+ inst_prefix_dir=
+ new_inherited_linker_flags=
+
+ avoid_version=no
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+ weak_libs=
+ single_module="${wl}-single_module"
+ func_infer_tag $base_compile
+
+ # We need to know -static, to get the right output filenames.
+ for arg
+ do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ break
+ ;;
+ -all-static | -static | -static-libtool-libs)
+ case $arg in
+ -all-static)
+ if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+ func_warning "complete static linking is impossible in this configuration"
+ fi
+ if test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ -static)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=built
+ ;;
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
+ build_libtool_libs=no
+ build_old_libs=yes
+ break
+ ;;
+ esac
+ done
+
+ # See if our shared archives depend on static archives.
+ test -n "$old_archive_from_new_cmds" && build_old_libs=yes
+
+ # Go through the arguments, transforming them on the way.
+ while test "$#" -gt 0; do
+ arg="$1"
+ shift
+ func_quote_for_eval "$arg"
+ qarg=$func_quote_for_eval_unquoted_result
+ func_append libtool_args " $func_quote_for_eval_result"
+
+ # If the previous option needs an argument, assign it.
+ if test -n "$prev"; then
+ case $prev in
+ output)
+ func_append compile_command " @OUTPUT@"
+ func_append finalize_command " @OUTPUT@"
+ ;;
+ esac
+
+ case $prev in
+ dlfiles|dlprefiles)
+ if test "$preload" = no; then
+ # Add the symbol object into the linking commands.
+ func_append compile_command " @SYMFILE@"
+ func_append finalize_command " @SYMFILE@"
+ preload=yes
+ fi
+ case $arg in
+ *.la | *.lo) ;; # We handle these cases below.
+ force)
+ if test "$dlself" = no; then
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ self)
+ if test "$prev" = dlprefiles; then
+ dlself=yes
+ elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
+ dlself=yes
+ else
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ *)
+ if test "$prev" = dlfiles; then
+ dlfiles="$dlfiles $arg"
+ else
+ dlprefiles="$dlprefiles $arg"
+ fi
+ prev=
+ continue
+ ;;
+ esac
+ ;;
+ expsyms)
+ export_symbols="$arg"
+ test -f "$arg" \
+ || func_fatal_error "symbol file \`$arg' does not exist"
+ prev=
+ continue
+ ;;
+ expsyms_regex)
+ export_symbols_regex="$arg"
+ prev=
+ continue
+ ;;
+ framework)
+ case $host in
+ *-*-darwin*)
+ case "$deplibs " in
+ *" $qarg.ltframework "*) ;;
+ *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
+ ;;
+ esac
+ ;;
+ esac
+ prev=
+ continue
+ ;;
+ inst_prefix)
+ inst_prefix_dir="$arg"
+ prev=
+ continue
+ ;;
+ objectlist)
+ if test -f "$arg"; then
+ save_arg=$arg
+ moreargs=
+ for fil in `cat "$save_arg"`
+ do
+# moreargs="$moreargs $fil"
+ arg=$fil
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ done
+ else
+ func_fatal_error "link input file \`$arg' does not exist"
+ fi
+ arg=$save_arg
+ prev=
+ continue
+ ;;
+ precious_regex)
+ precious_files_regex="$arg"
+ prev=
+ continue
+ ;;
+ release)
+ release="-$arg"
+ prev=
+ continue
+ ;;
+ rpath | xrpath)
+ # We need an absolute path.
+ case $arg in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ if test "$prev" = rpath; then
+ case "$rpath " in
+ *" $arg "*) ;;
+ *) rpath="$rpath $arg" ;;
+ esac
+ else
+ case "$xrpath " in
+ *" $arg "*) ;;
+ *) xrpath="$xrpath $arg" ;;
+ esac
+ fi
+ prev=
+ continue
+ ;;
+ shrext)
+ shrext_cmds="$arg"
+ prev=
+ continue
+ ;;
+ weak)
+ weak_libs="$weak_libs $arg"
+ prev=
+ continue
+ ;;
+ xcclinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xcompiler)
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xlinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $wl$qarg"
+ prev=
+ func_append compile_command " $wl$qarg"
+ func_append finalize_command " $wl$qarg"
+ continue
+ ;;
+ *)
+ eval "$prev=\"\$arg\""
+ prev=
+ continue
+ ;;
+ esac
+ fi # test -n "$prev"
+
+ prevarg="$arg"
+
+ case $arg in
+ -all-static)
+ if test -n "$link_static_flag"; then
+ # See comment for -static flag below, for more details.
+ func_append compile_command " $link_static_flag"
+ func_append finalize_command " $link_static_flag"
+ fi
+ continue
+ ;;
+
+ -allow-undefined)
+ # FIXME: remove this flag sometime in the future.
+ func_fatal_error "\`-allow-undefined' must not be used because it is the default"
+ ;;
+
+ -avoid-version)
+ avoid_version=yes
+ continue
+ ;;
+
+ -dlopen)
+ prev=dlfiles
+ continue
+ ;;
+
+ -dlpreopen)
+ prev=dlprefiles
+ continue
+ ;;
+
+ -export-dynamic)
+ export_dynamic=yes
+ continue
+ ;;
+
+ -export-symbols | -export-symbols-regex)
+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+ func_fatal_error "more than one -exported-symbols argument is not allowed"
+ fi
+ if test "X$arg" = "X-export-symbols"; then
+ prev=expsyms
+ else
+ prev=expsyms_regex
+ fi
+ continue
+ ;;
+
+ -framework)
+ prev=framework
+ continue
+ ;;
+
+ -inst-prefix-dir)
+ prev=inst_prefix
+ continue
+ ;;
+
+ # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+ # so, if we see these flags be careful not to treat them like -L
+ -L[A-Z][A-Z]*:*)
+ case $with_gcc/$host in
+ no/*-*-irix* | /*-*-irix*)
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ ;;
+ esac
+ continue
+ ;;
+
+ -L*)
+ func_stripname '-L' '' "$arg"
+ dir=$func_stripname_result
+ if test -z "$dir"; then
+ if test "$#" -gt 0; then
+ func_fatal_error "require no space between \`-L' and \`$1'"
+ else
+ func_fatal_error "need path for \`-L' option"
+ fi
+ fi
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ test -z "$absdir" && \
+ func_fatal_error "cannot determine absolute directory name of \`$dir'"
+ dir="$absdir"
+ ;;
+ esac
+ case "$deplibs " in
+ *" -L$dir "*) ;;
+ *)
+ deplibs="$deplibs -L$dir"
+ lib_search_path="$lib_search_path $dir"
+ ;;
+ esac
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$dir:"*) ;;
+ ::) dllsearchpath=$dir;;
+ *) dllsearchpath="$dllsearchpath:$dir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ continue
+ ;;
+
+ -l*)
+ if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
+ # These systems don't actually have a C or math library (as such)
+ continue
+ ;;
+ *-*-os2*)
+ # These systems don't actually have a C library (as such)
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C and math libraries are in the System framework
+ deplibs="$deplibs System.ltframework"
+ continue
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ test "X$arg" = "X-lc" && continue
+ ;;
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
+ fi
+ deplibs="$deplibs $arg"
+ continue
+ ;;
+
+ -module)
+ module=yes
+ continue
+ ;;
+
+ # Tru64 UNIX uses -model [arg] to determine the layout of C++
+ # classes, name mangling, and exception handling.
+ # Darwin uses the -arch flag to determine output architecture.
+ -model|-arch|-isysroot)
+ compiler_flags="$compiler_flags $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ prev=xcompiler
+ continue
+ ;;
+
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ compiler_flags="$compiler_flags $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ case "$new_inherited_linker_flags " in
+ *" $arg "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
+ esac
+ continue
+ ;;
+
+ -multi_module)
+ single_module="${wl}-multi_module"
+ continue
+ ;;
+
+ -no-fast-install)
+ fast_install=no
+ continue
+ ;;
+
+ -no-install)
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
+ # The PATH hackery in wrapper scripts is required on Windows
+ # and Darwin in order for the loader to find any dlls it needs.
+ func_warning "\`-no-install' is ignored for $host"
+ func_warning "assuming \`-no-fast-install' instead"
+ fast_install=no
+ ;;
+ *) no_install=yes ;;
+ esac
+ continue
+ ;;
+
+ -no-undefined)
+ allow_undefined=no
+ continue
+ ;;
+
+ -objectlist)
+ prev=objectlist
+ continue
+ ;;
+
+ -o) prev=output ;;
+
+ -precious-files-regex)
+ prev=precious_regex
+ continue
+ ;;
+
+ -release)
+ prev=release
+ continue
+ ;;
+
+ -rpath)
+ prev=rpath
+ continue
+ ;;
+
+ -R)
+ prev=xrpath
+ continue
+ ;;
+
+ -R*)
+ func_stripname '-R' '' "$arg"
+ dir=$func_stripname_result
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ continue
+ ;;
+
+ -shared)
+ # The effects of -shared are defined in a previous loop.
+ continue
+ ;;
+
+ -shrext)
+ prev=shrext
+ continue
+ ;;
+
+ -static | -static-libtool-libs)
+ # The effects of -static are defined in a previous loop.
+ # We used to do the same as -all-static on platforms that
+ # didn't have a PIC flag, but the assumption that the effects
+ # would be equivalent was wrong. It would break on at least
+ # Digital Unix and AIX.
+ continue
+ ;;
+
+ -thread-safe)
+ thread_safe=yes
+ continue
+ ;;
+
+ -version-info)
+ prev=vinfo
+ continue
+ ;;
+
+ -version-number)
+ prev=vinfo
+ vinfo_number=yes
+ continue
+ ;;
+
+ -weak)
+ prev=weak
+ continue
+ ;;
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ arg="$arg $wl$func_quote_for_eval_result"
+ compiler_flags="$compiler_flags $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Wl,*)
+ func_stripname '-Wl,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ arg="$arg $wl$func_quote_for_eval_result"
+ compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
+ linker_flags="$linker_flags $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Xcompiler)
+ prev=xcompiler
+ continue
+ ;;
+
+ -Xlinker)
+ prev=xlinker
+ continue
+ ;;
+
+ -XCClinker)
+ prev=xcclinker
+ continue
+ ;;
+
+ # -msg_* for osf cc
+ -msg_*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
+ # -r[0-9][0-9]* specifies the processor on the SGI compiler
+ # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
+ # +DA*, +DD* enable 64-bit mode on the HP compiler
+ # -q* pass through compiler args for the IBM compiler
+ # -m*, -t[45]*, -txscale* pass through architecture-specific
+ # compiler args for GCC
+ # -F/path gives path to uninstalled frameworks, gcc on darwin
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+ # @file GCC response files
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ compiler_flags="$compiler_flags $arg"
+ continue
+ ;;
+
+ # Some other compiler flag.
+ -* | +*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ *.$objext)
+ # A standard object.
+ objs="$objs $arg"
+ ;;
+
+ *.lo)
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ ;;
+
+ *.$libext)
+ # An archive.
+ deplibs="$deplibs $arg"
+ old_deplibs="$old_deplibs $arg"
+ continue
+ ;;
+
+ *.la)
+ # A libtool-controlled library.
+
+ if test "$prev" = dlfiles; then
+ # This library was specified with -dlopen.
+ dlfiles="$dlfiles $arg"
+ prev=
+ elif test "$prev" = dlprefiles; then
+ # The library was specified with -dlpreopen.
+ dlprefiles="$dlprefiles $arg"
+ prev=
+ else
+ deplibs="$deplibs $arg"
+ fi
+ continue
+ ;;
+
+ # Some other compiler argument.
+ *)
+ # Unknown arguments in both finalize_command and compile_command need
+ # to be aesthetically quoted because they are evaled later.
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+ esac # arg
+
+ # Now actually substitute the argument into the commands.
+ if test -n "$arg"; then
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+ done # argument parsing loop
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prevarg' option requires an argument"
+
+ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
+ eval arg=\"$export_dynamic_flag_spec\"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+
+ oldlibs=
+ # calculate the name of the file, without its directory
+ func_basename "$output"
+ outputname="$func_basename_result"
+ libobjs_save="$libobjs"
+
+ if test -n "$shlibpath_var"; then
+ # get the directories listed in $shlibpath_var
+ eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
+ else
+ shlib_search_path=
+ fi
+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
+
+ func_dirname "$output" "/" ""
+ output_objdir="$func_dirname_result$objdir"
+ # Create the object directory.
+ func_mkdir_p "$output_objdir"
+
+ # Determine the type of output
+ case $output in
+ "")
+ func_fatal_help "you must specify an output file"
+ ;;
+ *.$libext) linkmode=oldlib ;;
+ *.lo | *.$objext) linkmode=obj ;;
+ *.la) linkmode=lib ;;
+ *) linkmode=prog ;; # Anything else should be a program.
+ esac
+
+ specialdeplibs=
+
+ libs=
+ # Find all interdependent deplibs by searching for libraries
+ # that are linked more than once (e.g. -la -lb -la)
+ for deplib in $deplibs; do
+ if $opt_duplicate_deps ; then
+ case "$libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ libs="$libs $deplib"
+ done
+
+ if test "$linkmode" = lib; then
+ libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+ # Compute libraries that are listed more than once in $predeps
+ # $postdeps and mark them as special (i.e., whose duplicates are
+ # not to be eliminated).
+ pre_post_deps=
+ if $opt_duplicate_compiler_generated_deps; then
+ for pre_post_dep in $predeps $postdeps; do
+ case "$pre_post_deps " in
+ *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
+ esac
+ pre_post_deps="$pre_post_deps $pre_post_dep"
+ done
+ fi
+ pre_post_deps=
+ fi
+
+ deplibs=
+ newdependency_libs=
+ newlib_search_path=
+ need_relink=no # whether we're linking any uninstalled libtool libraries
+ notinst_deplibs= # not-installed libtool libraries
+ notinst_path= # paths that contain not-installed libtool libraries
+
+ case $linkmode in
+ lib)
+ passes="conv dlpreopen link"
+ for file in $dlfiles $dlprefiles; do
+ case $file in
+ *.la) ;;
+ *)
+ func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
+ ;;
+ esac
+ done
+ ;;
+ prog)
+ compile_deplibs=
+ finalize_deplibs=
+ alldeplibs=no
+ newdlfiles=
+ newdlprefiles=
+ passes="conv scan dlopen dlpreopen link"
+ ;;
+ *) passes="conv"
+ ;;
+ esac
+
+ for pass in $passes; do
+ # The preopen pass in lib mode reverses $deplibs; put it back here
+ # so that -L comes before libs that need it for instance...
+ if test "$linkmode,$pass" = "lib,link"; then
+ ## FIXME: Find the place where the list is rebuilt in the wrong
+ ## order, and fix it there properly
+ tmp_deplibs=
+ for deplib in $deplibs; do
+ tmp_deplibs="$deplib $tmp_deplibs"
+ done
+ deplibs="$tmp_deplibs"
+ fi
+
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan"; then
+ libs="$deplibs"
+ deplibs=
+ fi
+ if test "$linkmode" = prog; then
+ case $pass in
+ dlopen) libs="$dlfiles" ;;
+ dlpreopen) libs="$dlprefiles" ;;
+ link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
+ esac
+ fi
+ if test "$linkmode,$pass" = "lib,dlpreopen"; then
+ # Collect and forward deplibs of preopened libtool libs
+ for lib in $dlprefiles; do
+ # Ignore non-libtool-libs
+ dependency_libs=
+ case $lib in
+ *.la) func_source "$lib" ;;
+ esac
+
+ # Collect preopened libtool deplibs, except any this library
+ # has declared as weak libs
+ for deplib in $dependency_libs; do
+ deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
+ case " $weak_libs " in
+ *" $deplib_base "*) ;;
+ *) deplibs="$deplibs $deplib" ;;
+ esac
+ done
+ done
+ libs="$dlprefiles"
+ fi
+ if test "$pass" = dlopen; then
+ # Collect dlpreopened libraries
+ save_deplibs="$deplibs"
+ deplibs=
+ fi
+
+ for deplib in $libs; do
+ lib=
+ found=no
+ case $deplib in
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags $deplib"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -l*)
+ if test "$linkmode" != lib && test "$linkmode" != prog; then
+ func_warning "\`-l' is ignored for archives/objects"
+ continue
+ fi
+ func_stripname '-l' '' "$deplib"
+ name=$func_stripname_result
+ if test "$linkmode" = lib; then
+ searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
+ else
+ searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
+ fi
+ for searchdir in $searchdirs; do
+ for search_ext in .la $std_shrext .so .a; do
+ # Search the libtool library
+ lib="$searchdir/lib${name}${search_ext}"
+ if test -f "$lib"; then
+ if test "$search_ext" = ".la"; then
+ found=yes
+ else
+ found=no
+ fi
+ break 2
+ fi
+ done
+ done
+ if test "$found" != yes; then
+ # deplib doesn't seem to be a libtool library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ else # deplib is a libtool library
+ # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
+ # We need to do some special things here, and not later.
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $deplib "*)
+ if func_lalib_p "$lib"; then
+ library_names=
+ old_library=
+ func_source "$lib"
+ for l in $old_library $library_names; do
+ ll="$l"
+ done
+ if test "X$ll" = "X$old_library" ; then # only static version available
+ found=no
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+ lib=$ladir/$old_library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ fi
+ fi
+ ;;
+ *) ;;
+ esac
+ fi
+ fi
+ ;; # -l
+ *.ltframework)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -L*)
+ case $linkmode in
+ lib)
+ deplibs="$deplib $deplibs"
+ test "$pass" = conv && continue
+ newdependency_libs="$deplib $newdependency_libs"
+ func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ prog)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ if test "$pass" = scan; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ *)
+ func_warning "\`-L' is ignored for archives/objects"
+ ;;
+ esac # linkmode
+ continue
+ ;; # -L
+ -R*)
+ if test "$pass" = link; then
+ func_stripname '-R' '' "$deplib"
+ dir=$func_stripname_result
+ # Make sure the xrpath contains only unique directories.
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ fi
+ deplibs="$deplib $deplibs"
+ continue
+ ;;
+ *.la) lib="$deplib" ;;
+ *.$libext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ case $linkmode in
+ lib)
+ # Linking convenience modules into shared libraries is allowed,
+ # but linking other static libraries is non-portable.
+ case " $dlpreconveniencelibs " in
+ *" $deplib "*) ;;
+ *)
+ valid_a_lib=no
+ case $deplibs_check_method in
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ valid_a_lib=yes
+ fi
+ ;;
+ pass_all)
+ valid_a_lib=yes
+ ;;
+ esac
+ if test "$valid_a_lib" != yes; then
+ $ECHO
+ $ECHO "*** Warning: Trying to link with static lib archive $deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because the file extensions .$libext of this argument makes me believe"
+ $ECHO "*** that it is just a static archive that I should not use here."
+ else
+ $ECHO
+ $ECHO "*** Warning: Linking the shared library $output against the"
+ $ECHO "*** static library $deplib is not portable!"
+ deplibs="$deplib $deplibs"
+ fi
+ ;;
+ esac
+ continue
+ ;;
+ prog)
+ if test "$pass" != link; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ continue
+ ;;
+ esac # linkmode
+ ;; # *.$libext
+ *.lo | *.$objext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ elif test "$linkmode" = prog; then
+ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
+ # If there is no dlopen support or we're linking statically,
+ # we need to preload.
+ newdlprefiles="$newdlprefiles $deplib"
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ newdlfiles="$newdlfiles $deplib"
+ fi
+ fi
+ continue
+ ;;
+ %DEPLIBS%)
+ alldeplibs=yes
+ continue
+ ;;
+ esac # case $deplib
+
+ if test "$found" = yes || test -f "$lib"; then :
+ else
+ func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
+ fi
+
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$lib" \
+ || func_fatal_error "\`$lib' is not a valid libtool archive"
+
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ inherited_linker_flags=
+ # If the library was installed with an old release of libtool,
+ # it will not redefine variables installed, or shouldnotlink
+ installed=yes
+ shouldnotlink=no
+ avoidtemprpath=
+
+
+ # Read the .la file
+ func_source "$lib"
+
+ # Convert "-framework foo" to "foo.ltframework"
+ if test -n "$inherited_linker_flags"; then
+ tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
+ for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
+ case " $new_inherited_linker_flags " in
+ *" $tmp_inherited_linker_flag "*) ;;
+ *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
+ esac
+ done
+ fi
+ dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan" ||
+ { test "$linkmode" != prog && test "$linkmode" != lib; }; then
+ test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
+ test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
+ fi
+
+ if test "$pass" = conv; then
+ # Only check for convenience libraries
+ deplibs="$lib $deplibs"
+ if test -z "$libdir"; then
+ if test -z "$old_library"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+ # It is a libtool convenience library, so add in its objects.
+ convenience="$convenience $ladir/$objdir/$old_library"
+ old_convenience="$old_convenience $ladir/$objdir/$old_library"
+ elif test "$linkmode" != prog && test "$linkmode" != lib; then
+ func_fatal_error "\`$lib' is not a convenience library"
+ fi
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ deplibs="$deplib $deplibs"
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+ continue
+ fi # $pass = conv
+
+
+ # Get the name of the library we link against.
+ linklib=
+ for l in $old_library $library_names; do
+ linklib="$l"
+ done
+ if test -z "$linklib"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+
+ # This library was specified with -dlopen.
+ if test "$pass" = dlopen; then
+ if test -z "$libdir"; then
+ func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
+ fi
+ if test -z "$dlname" ||
+ test "$dlopen_support" != yes ||
+ test "$build_libtool_libs" = no; then
+ # If there is no dlname, no dlopen support or we're linking
+ # statically, we need to preload. We also need to preload any
+ # dependent libraries so libltdl's deplib preloader doesn't
+ # bomb out in the load deplibs phase.
+ dlprefiles="$dlprefiles $lib $dependency_libs"
+ else
+ newdlfiles="$newdlfiles $lib"
+ fi
+ continue
+ fi # $pass = dlopen
+
+ # We need an absolute path.
+ case $ladir in
+ [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
+ *)
+ abs_ladir=`cd "$ladir" && pwd`
+ if test -z "$abs_ladir"; then
+ func_warning "cannot determine absolute directory name of \`$ladir'"
+ func_warning "passing it literally to the linker, although it might fail"
+ abs_ladir="$ladir"
+ fi
+ ;;
+ esac
+ func_basename "$lib"
+ laname="$func_basename_result"
+
+ # Find the relevant object directory and library name.
+ if test "X$installed" = Xyes; then
+ if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ func_warning "library \`$lib' was moved."
+ dir="$ladir"
+ absdir="$abs_ladir"
+ libdir="$abs_ladir"
+ else
+ dir="$libdir"
+ absdir="$libdir"
+ fi
+ test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+ else
+ if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ dir="$ladir"
+ absdir="$abs_ladir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ else
+ dir="$ladir/$objdir"
+ absdir="$abs_ladir/$objdir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ fi
+ fi # $installed = yes
+ func_stripname 'lib' '.la' "$laname"
+ name=$func_stripname_result
+
+ # This library was specified with -dlpreopen.
+ if test "$pass" = dlpreopen; then
+ if test -z "$libdir" && test "$linkmode" = prog; then
+ func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
+ fi
+ # Prefer using a static library (so that no silly _DYNAMIC symbols
+ # are required to link).
+ if test -n "$old_library"; then
+ newdlprefiles="$newdlprefiles $dir/$old_library"
+ # Keep a list of preopened convenience libraries to check
+ # that they are being used correctly in the link pass.
+ test -z "$libdir" && \
+ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
+ # Otherwise, use the dlname, so that lt_dlopen finds it.
+ elif test -n "$dlname"; then
+ newdlprefiles="$newdlprefiles $dir/$dlname"
+ else
+ newdlprefiles="$newdlprefiles $dir/$linklib"
+ fi
+ fi # $pass = dlpreopen
+
+ if test -z "$libdir"; then
+ # Link the convenience library
+ if test "$linkmode" = lib; then
+ deplibs="$dir/$old_library $deplibs"
+ elif test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$dir/$old_library $compile_deplibs"
+ finalize_deplibs="$dir/$old_library $finalize_deplibs"
+ else
+ deplibs="$lib $deplibs" # used for prog,scan pass
+ fi
+ continue
+ fi
+
+
+ if test "$linkmode" = prog && test "$pass" != link; then
+ newlib_search_path="$newlib_search_path $ladir"
+ deplibs="$lib $deplibs"
+
+ linkalldeplibs=no
+ if test "$link_all_deplibs" != no || test -z "$library_names" ||
+ test "$build_libtool_libs" = no; then
+ linkalldeplibs=yes
+ fi
+
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ -L*) func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ esac
+ # Need to link against all dependency_libs?
+ if test "$linkalldeplibs" = yes; then
+ deplibs="$deplib $deplibs"
+ else
+ # Need to hardcode shared library paths
+ # or/and link against static libraries
+ newdependency_libs="$deplib $newdependency_libs"
+ fi
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done # for deplib
+ continue
+ fi # $linkmode = prog...
+
+ if test "$linkmode,$pass" = "prog,link"; then
+ if test -n "$library_names" &&
+ { { test "$prefer_static_libs" = no ||
+ test "$prefer_static_libs,$installed" = "built,yes"; } ||
+ test -z "$old_library"; }; then
+ # We need to hardcode the library path
+ if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
+ # Make sure the rpath contains only unique directories.
+ case "$temp_rpath:" in
+ *"$absdir:"*) ;;
+ *) temp_rpath="$temp_rpath$absdir:" ;;
+ esac
+ fi
+
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi # $linkmode,$pass = prog,link...
+
+ if test "$alldeplibs" = yes &&
+ { test "$deplibs_check_method" = pass_all ||
+ { test "$build_libtool_libs" = yes &&
+ test -n "$library_names"; }; }; then
+ # We only need to search for static libraries
+ continue
+ fi
+ fi
+
+ link_static=no # Whether the deplib will be linked statically
+ use_static_libs=$prefer_static_libs
+ if test "$use_static_libs" = built && test "$installed" = yes; then
+ use_static_libs=no
+ fi
+ if test -n "$library_names" &&
+ { test "$use_static_libs" = no || test -z "$old_library"; }; then
+ case $host in
+ *cygwin* | *mingw* | *cegcc*)
+ # No point in relinking DLLs because paths are not encoded
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=no
+ ;;
+ *)
+ if test "$installed" = no; then
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=yes
+ fi
+ ;;
+ esac
+ # This is a shared library
+
+ # Warn about portability, can't link against -module's on some
+ # systems (darwin). Don't bleat about dlopened modules though!
+ dlopenmodule=""
+ for dlpremoduletest in $dlprefiles; do
+ if test "X$dlpremoduletest" = "X$lib"; then
+ dlopenmodule="$dlpremoduletest"
+ break
+ fi
+ done
+ if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
+ $ECHO
+ if test "$linkmode" = prog; then
+ $ECHO "*** Warning: Linking the executable $output against the loadable module"
+ else
+ $ECHO "*** Warning: Linking the shared library $output against the loadable module"
+ fi
+ $ECHO "*** $linklib is not portable!"
+ fi
+ if test "$linkmode" = lib &&
+ test "$hardcode_into_libs" = yes; then
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi
+
+ if test -n "$old_archive_from_expsyms_cmds"; then
+ # figure out the soname
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ # use dlname if we got it. it's perfectly good, no?
+ if test -n "$dlname"; then
+ soname="$dlname"
+ elif test -n "$soname_spec"; then
+ # bleh windows
+ case $host in
+ *cygwin* | mingw* | *cegcc*)
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+ esac
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+
+ # Make a new name for the extract_expsyms_cmds to use
+ soroot="$soname"
+ func_basename "$soroot"
+ soname="$func_basename_result"
+ func_stripname 'lib' '.dll' "$soname"
+ newlib=libimp-$func_stripname_result.a
+
+ # If the library has no export list, then create one now
+ if test -f "$output_objdir/$soname-def"; then :
+ else
+ func_verbose "extracting exported symbol list from \`$soname'"
+ func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
+ fi
+
+ # Create $newlib
+ if test -f "$output_objdir/$newlib"; then :; else
+ func_verbose "generating import library for \`$soname'"
+ func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
+ fi
+ # make sure the library variables are pointing to the new library
+ dir=$output_objdir
+ linklib=$newlib
+ fi # test -n "$old_archive_from_expsyms_cmds"
+
+ if test "$linkmode" = prog || test "$mode" != relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ lib_linked=yes
+ case $hardcode_action in
+ immediate | unsupported)
+ if test "$hardcode_direct" = no; then
+ add="$dir/$linklib"
+ case $host in
+ *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
+ *-*-sysv4*uw2*) add_dir="-L$dir" ;;
+ *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
+ *-*-unixware7*) add_dir="-L$dir" ;;
+ *-*-darwin* )
+ # if the lib is a (non-dlopened) module then we can not
+ # link against it, someone is ignoring the earlier warnings
+ if /usr/bin/file -L $add 2> /dev/null |
+ $GREP ": [^:]* bundle" >/dev/null ; then
+ if test "X$dlopenmodule" != "X$lib"; then
+ $ECHO "*** Warning: lib $linklib is a module, not a shared library"
+ if test -z "$old_library" ; then
+ $ECHO
+ $ECHO "*** And there doesn't seem to be a static archive available"
+ $ECHO "*** The link will probably fail, sorry"
+ else
+ add="$dir/$old_library"
+ fi
+ elif test -n "$old_library"; then
+ add="$dir/$old_library"
+ fi
+ fi
+ esac
+ elif test "$hardcode_minus_L" = no; then
+ case $host in
+ *-*-sunos*) add_shlibpath="$dir" ;;
+ esac
+ add_dir="-L$dir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = no; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ relink)
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$dir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$dir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ *) lib_linked=no ;;
+ esac
+
+ if test "$lib_linked" != yes; then
+ func_fatal_configuration "unsupported hardcode properties"
+ fi
+
+ if test -n "$add_shlibpath"; then
+ case :$compile_shlibpath: in
+ *":$add_shlibpath:"*) ;;
+ *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
+ esac
+ fi
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
+ test -n "$add" && compile_deplibs="$add $compile_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ if test "$hardcode_direct" != yes &&
+ test "$hardcode_minus_L" != yes &&
+ test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ fi
+ fi
+ fi
+
+ if test "$linkmode" = prog || test "$mode" = relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ # Finalize command for both is simple: just hardcode it.
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$libdir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$libdir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ add="-l$name"
+ elif test "$hardcode_automatic" = yes; then
+ if test -n "$inst_prefix_dir" &&
+ test -f "$inst_prefix_dir$libdir/$linklib" ; then
+ add="$inst_prefix_dir$libdir/$linklib"
+ else
+ add="$libdir/$linklib"
+ fi
+ else
+ # We cannot seem to hardcode it, guess we'll fake it.
+ add_dir="-L$libdir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ fi
+
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
+ test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ fi
+ fi
+ elif test "$linkmode" = prog; then
+ # Here we assume that one of hardcode_direct or hardcode_minus_L
+ # is not unsupported. This is valid on all known static and
+ # shared platforms.
+ if test "$hardcode_direct" != unsupported; then
+ test -n "$old_library" && linklib="$old_library"
+ compile_deplibs="$dir/$linklib $compile_deplibs"
+ finalize_deplibs="$dir/$linklib $finalize_deplibs"
+ else
+ compile_deplibs="-l$name -L$dir $compile_deplibs"
+ finalize_deplibs="-l$name -L$dir $finalize_deplibs"
+ fi
+ elif test "$build_libtool_libs" = yes; then
+ # Not a shared library
+ if test "$deplibs_check_method" != pass_all; then
+ # We're trying link a shared library against a static one
+ # but the system doesn't support it.
+
+ # Just print a warning and add the library to dependency_libs so
+ # that the program can be linked against the static library.
+ $ECHO
+ $ECHO "*** Warning: This system can not link to static lib archive $lib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have."
+ if test "$module" = yes; then
+ $ECHO "*** But as you try to build a module library, libtool will still create "
+ $ECHO "*** a static module, that should work as long as the dlopening application"
+ $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
+ if test -z "$global_symbol_pipe"; then
+ $ECHO
+ $ECHO "*** However, this would only work if libtool was able to extract symbol"
+ $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $ECHO "*** not find such a program. So, this module is probably useless."
+ $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ else
+ deplibs="$dir/$old_library $deplibs"
+ link_static=yes
+ fi
+ fi # link shared/static library?
+
+ if test "$linkmode" = lib; then
+ if test -n "$dependency_libs" &&
+ { test "$hardcode_into_libs" != yes ||
+ test "$build_old_libs" = yes ||
+ test "$link_static" = yes; }; then
+ # Extract -R from dependency_libs
+ temp_deplibs=
+ for libdir in $dependency_libs; do
+ case $libdir in
+ -R*) func_stripname '-R' '' "$libdir"
+ temp_xrpath=$func_stripname_result
+ case " $xrpath " in
+ *" $temp_xrpath "*) ;;
+ *) xrpath="$xrpath $temp_xrpath";;
+ esac;;
+ *) temp_deplibs="$temp_deplibs $libdir";;
+ esac
+ done
+ dependency_libs="$temp_deplibs"
+ fi
+
+ newlib_search_path="$newlib_search_path $absdir"
+ # Link against this library
+ test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
+ # ... and its dependency_libs
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ newdependency_libs="$deplib $newdependency_libs"
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+
+ if test "$link_all_deplibs" != no; then
+ # Add the search paths of all dependency libraries
+ for deplib in $dependency_libs; do
+ case $deplib in
+ -L*) path="$deplib" ;;
+ *.la)
+ func_dirname "$deplib" "" "."
+ dir="$func_dirname_result"
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ if test -z "$absdir"; then
+ func_warning "cannot determine absolute directory name of \`$dir'"
+ absdir="$dir"
+ fi
+ ;;
+ esac
+ if $GREP "^installed=no" $deplib > /dev/null; then
+ case $host in
+ *-*-darwin*)
+ depdepl=
+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ if test -n "$deplibrary_names" ; then
+ for tmp in $deplibrary_names ; do
+ depdepl=$tmp
+ done
+ if test -f "$absdir/$objdir/$depdepl" ; then
+ depdepl="$absdir/$objdir/$depdepl"
+ darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ if test -z "$darwin_install_name"; then
+ darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ fi
+ compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
+ linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
+ path=
+ fi
+ fi
+ ;;
+ *)
+ path="-L$absdir/$objdir"
+ ;;
+ esac
+ else
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ test "$absdir" != "$libdir" && \
+ func_warning "\`$deplib' seems to be moved"
+
+ path="-L$absdir"
+ fi
+ ;;
+ esac
+ case " $deplibs " in
+ *" $path "*) ;;
+ *) deplibs="$path $deplibs" ;;
+ esac
+ done
+ fi # link_all_deplibs != no
+ fi # linkmode = lib
+ done # for deplib in $libs
+ if test "$pass" = link; then
+ if test "$linkmode" = "prog"; then
+ compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
+ finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ fi
+ fi
+ dependency_libs="$newdependency_libs"
+ if test "$pass" = dlpreopen; then
+ # Link the dlpreopened libraries before other libraries
+ for deplib in $save_deplibs; do
+ deplibs="$deplib $deplibs"
+ done
+ fi
+ if test "$pass" != dlopen; then
+ if test "$pass" != conv; then
+ # Make sure lib_search_path contains only unique directories.
+ lib_search_path=
+ for dir in $newlib_search_path; do
+ case "$lib_search_path " in
+ *" $dir "*) ;;
+ *) lib_search_path="$lib_search_path $dir" ;;
+ esac
+ done
+ newlib_search_path=
+ fi
+
+ if test "$linkmode,$pass" != "prog,link"; then
+ vars="deplibs"
+ else
+ vars="compile_deplibs finalize_deplibs"
+ fi
+ for var in $vars dependency_libs; do
+ # Add libraries to $var in reverse order
+ eval tmp_libs=\"\$$var\"
+ new_libs=
+ for deplib in $tmp_libs; do
+ # FIXME: Pedantically, this is the right thing to do, so
+ # that some nasty dependency loop isn't accidentally
+ # broken:
+ #new_libs="$deplib $new_libs"
+ # Pragmatically, this seems to cause very few problems in
+ # practice:
+ case $deplib in
+ -L*) new_libs="$deplib $new_libs" ;;
+ -R*) ;;
+ *)
+ # And here is the reason: when a library appears more
+ # than once as an explicit dependence of a library, or
+ # is implicitly linked in more than once by the
+ # compiler, it is considered special, and multiple
+ # occurrences thereof are not removed. Compare this
+ # with having the same library being listed as a
+ # dependency of multiple other libraries: in this case,
+ # we know (pedantically, we assume) the library does not
+ # need to be listed more than once, so we keep only the
+ # last copy. This is not always right, but it is rare
+ # enough that we require users that really mean to play
+ # such unportable linking tricks to link the library
+ # using -Wl,-lname, so that libtool does not consider it
+ # for duplicate removal.
+ case " $specialdeplibs " in
+ *" $deplib "*) new_libs="$deplib $new_libs" ;;
+ *)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$deplib $new_libs" ;;
+ esac
+ ;;
+ esac
+ ;;
+ esac
+ done
+ tmp_libs=
+ for deplib in $new_libs; do
+ case $deplib in
+ -L*)
+ case " $tmp_libs " in
+ *" $deplib "*) ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ done
+ eval $var=\"$tmp_libs\"
+ done # for var
+ fi
+ # Last step: remove runtime libs from dependency_libs
+ # (they stay in deplibs)
+ tmp_libs=
+ for i in $dependency_libs ; do
+ case " $predeps $postdeps $compiler_lib_search_path " in
+ *" $i "*)
+ i=""
+ ;;
+ esac
+ if test -n "$i" ; then
+ tmp_libs="$tmp_libs $i"
+ fi
+ done
+ dependency_libs=$tmp_libs
+ done # for pass
+ if test "$linkmode" = prog; then
+ dlfiles="$newdlfiles"
+ fi
+ if test "$linkmode" = prog || test "$linkmode" = lib; then
+ dlprefiles="$newdlprefiles"
+ fi
+
+ case $linkmode in
+ oldlib)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for archives"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for archives" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for archives"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for archives"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for archives"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for archives"
+
+ test -n "$export_symbols$export_symbols_regex" && \
+ func_warning "\`-export-symbols' is ignored for archives"
+
+ # Now set the variables for building old libraries.
+ build_libtool_libs=no
+ oldlibs="$output"
+ objs="$objs$old_deplibs"
+ ;;
+
+ lib)
+ # Make sure we only generate libraries of the form `libNAME.la'.
+ case $outputname in
+ lib*)
+ func_stripname 'lib' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ ;;
+ *)
+ test "$module" = no && \
+ func_fatal_help "libtool library \`$output' must begin with \`lib'"
+
+ if test "$need_lib_prefix" != no; then
+ # Add the "lib" prefix for modules if required
+ func_stripname '' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ else
+ func_stripname '' '.la' "$outputname"
+ libname=$func_stripname_result
+ fi
+ ;;
+ esac
+
+ if test -n "$objs"; then
+ if test "$deplibs_check_method" != pass_all; then
+ func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
+ else
+ $ECHO
+ $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
+ $ECHO "*** objects $objs is not portable!"
+ libobjs="$libobjs $objs"
+ fi
+ fi
+
+ test "$dlself" != no && \
+ func_warning "\`-dlopen self' is ignored for libtool libraries"
+
+ set dummy $rpath
+ shift
+ test "$#" -gt 1 && \
+ func_warning "ignoring multiple \`-rpath's for a libtool library"
+
+ install_libdir="$1"
+
+ oldlibs=
+ if test -z "$rpath"; then
+ if test "$build_libtool_libs" = yes; then
+ # Building a libtool convenience library.
+ # Some compilers have problems with a `.al' extension so
+ # convenience libraries should have the same extension an
+ # archive normally would.
+ oldlibs="$output_objdir/$libname.$libext $oldlibs"
+ build_libtool_libs=convenience
+ build_old_libs=yes
+ fi
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for convenience libraries"
+ else
+
+ # Parse the version information argument.
+ save_ifs="$IFS"; IFS=':'
+ set dummy $vinfo 0 0 0
+ shift
+ IFS="$save_ifs"
+
+ test -n "$7" && \
+ func_fatal_help "too many parameters to \`-version-info'"
+
+ # convert absolute version numbers to libtool ages
+ # this retains compatibility with .la files and attempts
+ # to make the code below a bit more comprehensible
+
+ case $vinfo_number in
+ yes)
+ number_major="$1"
+ number_minor="$2"
+ number_revision="$3"
+ #
+ # There are really only two kinds -- those that
+ # use the current revision as the major version
+ # and those that subtract age and use age as
+ # a minor version. But, then there is irix
+ # which has an extra 1 added just for fun
+ #
+ case $version_type in
+ darwin|linux|osf|windows|none)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_revision"
+ ;;
+ freebsd-aout|freebsd-elf|sunos)
+ current="$number_major"
+ revision="$number_minor"
+ age="0"
+ ;;
+ irix|nonstopux)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_minor"
+ lt_irix_increment=no
+ ;;
+ esac
+ ;;
+ no)
+ current="$1"
+ revision="$2"
+ age="$3"
+ ;;
+ esac
+
+ # Check that each of the things are valid numbers.
+ case $current in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "CURRENT \`$current' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $revision in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "REVISION \`$revision' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $age in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "AGE \`$age' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ if test "$age" -gt "$current"; then
+ func_error "AGE \`$age' is greater than the current interface number \`$current'"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ fi
+
+ # Calculate the version variables.
+ major=
+ versuffix=
+ verstring=
+ case $version_type in
+ none) ;;
+
+ darwin)
+ # Like Linux, but with the current version available in
+ # verstring for coding it into the library header
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ # Darwin ld doesn't like 0 for these options...
+ func_arith $current + 1
+ minor_current=$func_arith_result
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ ;;
+
+ freebsd-aout)
+ major=".$current"
+ versuffix=".$current.$revision";
+ ;;
+
+ freebsd-elf)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ irix | nonstopux)
+ if test "X$lt_irix_increment" = "Xno"; then
+ func_arith $current - $age
+ else
+ func_arith $current - $age + 1
+ fi
+ major=$func_arith_result
+
+ case $version_type in
+ nonstopux) verstring_prefix=nonstopux ;;
+ *) verstring_prefix=sgi ;;
+ esac
+ verstring="$verstring_prefix$major.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$revision
+ while test "$loop" -ne 0; do
+ func_arith $revision - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring_prefix$major.$iface:$verstring"
+ done
+
+ # Before this point, $major must not contain `.'.
+ major=.$major
+ versuffix="$major.$revision"
+ ;;
+
+ linux)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ ;;
+
+ osf)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix=".$current.$age.$revision"
+ verstring="$current.$age.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$age
+ while test "$loop" -ne 0; do
+ func_arith $current - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring:${iface}.0"
+ done
+
+ # Make executables depend on our current version.
+ verstring="$verstring:${current}.0"
+ ;;
+
+ qnx)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ sunos)
+ major=".$current"
+ versuffix=".$current.$revision"
+ ;;
+
+ windows)
+ # Use '-' rather than '.', since we only want one
+ # extension on DOS 8.3 filesystems.
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+
+ *)
+ func_fatal_configuration "unknown library version type \`$version_type'"
+ ;;
+ esac
+
+ # Clear the version info if we defaulted, and they specified a release.
+ if test -z "$vinfo" && test -n "$release"; then
+ major=
+ case $version_type in
+ darwin)
+ # we can't check for "0.0" in archive_cmds due to quoting
+ # problems, so we reset it completely
+ verstring=
+ ;;
+ *)
+ verstring="0.0"
+ ;;
+ esac
+ if test "$need_version" = no; then
+ versuffix=
+ else
+ versuffix=".0.0"
+ fi
+ fi
+
+ # Remove version info from name if versioning should be avoided
+ if test "$avoid_version" = yes && test "$need_version" = no; then
+ major=
+ versuffix=
+ verstring=""
+ fi
+
+ # Check to see if the archive will have undefined symbols.
+ if test "$allow_undefined" = yes; then
+ if test "$allow_undefined_flag" = unsupported; then
+ func_warning "undefined symbols not allowed in $host shared libraries"
+ build_libtool_libs=no
+ build_old_libs=yes
+ fi
+ else
+ # Don't allow undefined symbols.
+ allow_undefined_flag="$no_undefined_flag"
+ fi
+
+ fi
+
+ func_generate_dlsyms "$libname" "$libname" "yes"
+ libobjs="$libobjs $symfileobj"
+ test "X$libobjs" = "X " && libobjs=
+
+ if test "$mode" != relink; then
+ # Remove our outputs, but don't remove object files since they
+ # may have been created when compiling PIC objects.
+ removelist=
+ tempremovelist=`$ECHO "$output_objdir/*"`
+ for p in $tempremovelist; do
+ case $p in
+ *.$objext | *.gcno)
+ ;;
+ $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+ if test "X$precious_files_regex" != "X"; then
+ if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+ then
+ continue
+ fi
+ fi
+ removelist="$removelist $p"
+ ;;
+ *) ;;
+ esac
+ done
+ test -n "$removelist" && \
+ func_show_eval "${RM}r \$removelist"
+ fi
+
+ # Now set the variables for building old libraries.
+ if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
+ oldlibs="$oldlibs $output_objdir/$libname.$libext"
+
+ # Transform .lo files to .o files.
+ oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
+ fi
+
+ # Eliminate all temporary directories.
+ #for path in $notinst_path; do
+ # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
+ # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
+ # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
+ #done
+
+ if test -n "$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ temp_xrpath=
+ for libdir in $xrpath; do
+ temp_xrpath="$temp_xrpath -R$libdir"
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
+ dependency_libs="$temp_xrpath $dependency_libs"
+ fi
+ fi
+
+ # Make sure dlfiles contains only unique files that won't be dlpreopened
+ old_dlfiles="$dlfiles"
+ dlfiles=
+ for lib in $old_dlfiles; do
+ case " $dlprefiles $dlfiles " in
+ *" $lib "*) ;;
+ *) dlfiles="$dlfiles $lib" ;;
+ esac
+ done
+
+ # Make sure dlprefiles contains only unique files
+ old_dlprefiles="$dlprefiles"
+ dlprefiles=
+ for lib in $old_dlprefiles; do
+ case "$dlprefiles " in
+ *" $lib "*) ;;
+ *) dlprefiles="$dlprefiles $lib" ;;
+ esac
+ done
+
+ if test "$build_libtool_libs" = yes; then
+ if test -n "$rpath"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
+ # these systems don't actually have a c library (as such)!
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C library is in the System framework
+ deplibs="$deplibs System.ltframework"
+ ;;
+ *-*-netbsd*)
+ # Don't link with libc until the a.out ld.so is fixed.
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ ;;
+ *)
+ # Add libc to deplibs on all other systems if necessary.
+ if test "$build_libtool_need_lc" = "yes"; then
+ deplibs="$deplibs -lc"
+ fi
+ ;;
+ esac
+ fi
+
+ # Transform deplibs into only deplibs that can be linked in shared.
+ name_save=$name
+ libname_save=$libname
+ release_save=$release
+ versuffix_save=$versuffix
+ major_save=$major
+ # I'm not sure if I'm treating the release correctly. I think
+ # release should show up in the -l (ie -lgmp5) so we don't want to
+ # add it in twice. Is that correct?
+ release=""
+ versuffix=""
+ major=""
+ newdeplibs=
+ droppeddeps=no
+ case $deplibs_check_method in
+ pass_all)
+ # Don't check for shared/static. Everything works.
+ # This might be a little naive. We might want to check
+ # whether the library exists or not. But this is on
+ # osf3 & osf4 and I'm not really sure... Just
+ # implementing what was already the behavior.
+ newdeplibs=$deplibs
+ ;;
+ test_compile)
+ # This code stresses the "libraries are programs" paradigm to its
+ # limits. Maybe even breaks it. We compile a program, linking it
+ # against the deplibs as a proxy for the library. Then we can check
+ # whether they linked in statically or dynamically with ldd.
+ $opt_dry_run || $RM conftest.c
+ cat > conftest.c <<EOF
+ int main() { return 0; }
+EOF
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which I believe you do not have"
+ $ECHO "*** because a test_compile did reveal that the linker did not use it for"
+ $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
+ fi
+ fi
+ ;;
+ *)
+ newdeplibs="$newdeplibs $i"
+ ;;
+ esac
+ done
+ else
+ # Error occurred in the first compile. Let's try to salvage
+ # the situation: Compile a separate program for each library.
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
+ ldd_output=`ldd conftest`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because a test_compile did reveal that the linker did not use this one"
+ $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
+ fi
+ fi
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
+ $ECHO "*** make it link in! You will probably need to install it or some"
+ $ECHO "*** library that it depends on before this library will be fully"
+ $ECHO "*** functional. Installing it before continuing would be even better."
+ fi
+ ;;
+ *)
+ newdeplibs="$newdeplibs $i"
+ ;;
+ esac
+ done
+ fi
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method; shift
+ file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ # Follow soft links.
+ if ls -lLd "$potent_lib" 2>/dev/null |
+ $GREP " -> " >/dev/null; then
+ continue
+ fi
+ # The statement above tries to avoid entering an
+ # endless loop below, in case of cyclic links.
+ # We might still enter an endless loop, since a link
+ # loop can be closed while we follow links,
+ # but so what?
+ potlib="$potent_lib"
+ while test -h "$potlib" 2>/dev/null; do
+ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
+ case $potliblink in
+ [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+ *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
+ $SED -e 10q |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a file magic. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check above in file_magic test
+ if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
+ $EGREP "$match_pattern_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a regex pattern. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ none | unknown | *)
+ newdeplibs=""
+ tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
+ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ for i in $predeps $postdeps ; do
+ # can't use Xsed below, because $i might contain '/'
+ tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
+ done
+ fi
+ if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
+ $GREP . >/dev/null; then
+ $ECHO
+ if test "X$deplibs_check_method" = "Xnone"; then
+ $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
+ else
+ $ECHO "*** Warning: inter-library dependencies are not known to be supported."
+ fi
+ $ECHO "*** All declared inter-library dependencies are being dropped."
+ droppeddeps=yes
+ fi
+ ;;
+ esac
+ versuffix=$versuffix_save
+ major=$major_save
+ release=$release_save
+ libname=$libname_save
+ name=$name_save
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library with the System framework
+ newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ if test "$droppeddeps" = yes; then
+ if test "$module" = yes; then
+ $ECHO
+ $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
+ $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
+ $ECHO "*** a static module, that should work as long as the dlopening"
+ $ECHO "*** application is linked with the -dlopen flag."
+ if test -z "$global_symbol_pipe"; then
+ $ECHO
+ $ECHO "*** However, this would only work if libtool was able to extract symbol"
+ $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $ECHO "*** not find such a program. So, this module is probably useless."
+ $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ else
+ $ECHO "*** The inter-library dependencies that have been dropped here will be"
+ $ECHO "*** automatically added whenever a program is linked with this library"
+ $ECHO "*** or is declared to -dlopen it."
+
+ if test "$allow_undefined" = no; then
+ $ECHO
+ $ECHO "*** Since this library must not contain undefined symbols,"
+ $ECHO "*** because either the platform does not support them or"
+ $ECHO "*** it was explicitly requested with -no-undefined,"
+ $ECHO "*** libtool will only create a static version of it."
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ fi
+ fi
+ # Done checking deplibs!
+ deplibs=$newdeplibs
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ case $host in
+ *-*-darwin*)
+ newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ deplibs="$new_libs"
+
+ # All the library-specific variables (install_libdir is set above).
+ library_names=
+ old_library=
+ dlname=
+
+ # Test again, we may have decided not to build it any more
+ if test "$build_libtool_libs" = yes; then
+ if test "$hardcode_into_libs" = yes; then
+ # Hardcode the library paths
+ hardcode_libdirs=
+ dep_rpath=
+ rpath="$finalize_rpath"
+ test "$mode" != relink && rpath="$compile_rpath$rpath"
+ for libdir in $rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ dep_rpath="$dep_rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ if test -n "$hardcode_libdir_flag_spec_ld"; then
+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
+ else
+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+ fi
+ fi
+ if test -n "$runpath_var" && test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
+ fi
+ test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
+ fi
+
+ shlibpath="$finalize_shlibpath"
+ test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
+ if test -n "$shlibpath"; then
+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
+ fi
+
+ # Get the real and link names of the library.
+ eval shared_ext=\"$shrext_cmds\"
+ eval library_names=\"$library_names_spec\"
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+
+ if test -n "$soname_spec"; then
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+ if test -z "$dlname"; then
+ dlname=$soname
+ fi
+
+ lib="$output_objdir/$realname"
+ linknames=
+ for link
+ do
+ linknames="$linknames $link"
+ done
+
+ # Use standard objects if they are pic
+ test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ test "X$libobjs" = "X " && libobjs=
+
+ delfiles=
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
+ export_symbols="$output_objdir/$libname.uexp"
+ delfiles="$delfiles $export_symbols"
+ fi
+
+ orig_export_symbols=
+ case $host_os in
+ cygwin* | mingw* | cegcc*)
+ if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
+ # exporting using user supplied symfile
+ if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
+ # and it's NOT already a .def file. Must figure out
+ # which of the given symbols are data symbols and tag
+ # them as such. So, trigger use of export_symbols_cmds.
+ # export_symbols gets reassigned inside the "prepare
+ # the list of exported symbols" if statement, so the
+ # include_expsyms logic still works.
+ orig_export_symbols="$export_symbols"
+ export_symbols=
+ always_export_symbols=yes
+ fi
+ fi
+ ;;
+ esac
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ cmds=$export_symbols_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ func_len " $cmd"
+ len=$func_len_result
+ if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ func_show_eval "$cmd" 'exit $?'
+ skipped_export=false
+ else
+ # The command line is too long to execute in one step.
+ func_verbose "using reloadable object file for export list..."
+ skipped_export=:
+ # Break out early, otherwise skipped_export may be
+ # set to false by a later but shorter cmd.
+ break
+ fi
+ done
+ IFS="$save_ifs"
+ if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+ fi
+
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+
+ tmp_deplibs=
+ for test_deplib in $deplibs; do
+ case " $convenience " in
+ *" $test_deplib "*) ;;
+ *)
+ tmp_deplibs="$tmp_deplibs $test_deplib"
+ ;;
+ esac
+ done
+ deplibs="$tmp_deplibs"
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec" &&
+ test "$compiler_needs_object" = yes &&
+ test -z "$libobjs"; then
+ # extract the archives, so we have objects to list.
+ # TODO: could optimize this to just extract one archive.
+ whole_archive_flag_spec=
+ fi
+ if test -n "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ else
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ libobjs="$libobjs $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ fi
+
+ if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
+ eval flag=\"$thread_safe_flag_spec\"
+ linker_flags="$linker_flags $flag"
+ fi
+
+ # Make a backup of the uninstalled library when relinking
+ if test "$mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
+ fi
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ eval test_cmds=\"$module_expsym_cmds\"
+ cmds=$module_expsym_cmds
+ else
+ eval test_cmds=\"$module_cmds\"
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ eval test_cmds=\"$archive_expsym_cmds\"
+ cmds=$archive_expsym_cmds
+ else
+ eval test_cmds=\"$archive_cmds\"
+ cmds=$archive_cmds
+ fi
+ fi
+
+ if test "X$skipped_export" != "X:" &&
+ func_len " $test_cmds" &&
+ len=$func_len_result &&
+ test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ :
+ else
+ # The command line is too long to link in one step, link piecewise
+ # or, if using GNU ld and skipped_export is not :, use a linker
+ # script.
+
+ # Save the value of $output and $libobjs because we want to
+ # use them later. If we have whole_archive_flag_spec, we
+ # want to use save_libobjs as it was before
+ # whole_archive_flag_spec was expanded, because we can't
+ # assume the linker understands whole_archive_flag_spec.
+ # This may have to be revisited, in case too many
+ # convenience libraries get linked in and end up exceeding
+ # the spec.
+ if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ fi
+ save_output=$output
+ output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
+
+ # Clear the reloadable object creation command queue and
+ # initialize k to one.
+ test_cmds=
+ concat_cmds=
+ objlist=
+ last_robj=
+ k=1
+
+ if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
+ output=${output_objdir}/${output_la}.lnkscript
+ func_verbose "creating GNU ld script: $output"
+ $ECHO 'INPUT (' > $output
+ for obj in $save_libobjs
+ do
+ $ECHO "$obj" >> $output
+ done
+ $ECHO ')' >> $output
+ delfiles="$delfiles $output"
+ elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
+ output=${output_objdir}/${output_la}.lnk
+ func_verbose "creating linker input file list: $output"
+ : > $output
+ set x $save_libobjs
+ shift
+ firstobj=
+ if test "$compiler_needs_object" = yes; then
+ firstobj="$1 "
+ shift
+ fi
+ for obj
+ do
+ $ECHO "$obj" >> $output
+ done
+ delfiles="$delfiles $output"
+ output=$firstobj\"$file_list_spec$output\"
+ else
+ if test -n "$save_libobjs"; then
+ func_verbose "creating reloadable object files..."
+ output=$output_objdir/$output_la-${k}.$objext
+ eval test_cmds=\"$reload_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+
+ # Loop over the list of objects to be linked.
+ for obj in $save_libobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ if test "X$objlist" = X ||
+ test "$len" -lt "$max_cmd_len"; then
+ func_append objlist " $obj"
+ else
+ # The command $test_cmds is almost too long, add a
+ # command to the queue.
+ if test "$k" -eq 1 ; then
+ # The first file doesn't have a previous command to add.
+ eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
+ else
+ # All subsequent reloadable object files will link in
+ # the last one created.
+ eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
+ fi
+ last_robj=$output_objdir/$output_la-${k}.$objext
+ func_arith $k + 1
+ k=$func_arith_result
+ output=$output_objdir/$output_la-${k}.$objext
+ objlist=$obj
+ func_len " $last_robj"
+ func_arith $len0 + $func_len_result
+ len=$func_arith_result
+ fi
+ done
+ # Handle the remaining objects by creating one last
+ # reloadable object file. All subsequent reloadable object
+ # files will link in the last one created.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
+ fi
+ delfiles="$delfiles $output"
+
+ else
+ output=
+ fi
+
+ if ${skipped_export-false}; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ libobjs=$output
+ # Append the command to create the export file.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
+ fi
+ fi
+
+ test -n "$save_libobjs" &&
+ func_verbose "creating a temporary reloadable object file: $output"
+
+ # Loop through the commands generated above and execute them.
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $concat_cmds; do
+ IFS="$save_ifs"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ if test -n "$export_symbols_regex" && ${skipped_export-false}; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+
+ if ${skipped_export-false}; then
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+ fi
+
+ libobjs=$output
+ # Restore the value of output.
+ output=$save_output
+
+ if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ # Expand the library linking commands again to reset the
+ # value of $libobjs for piecewise linking.
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ cmds=$module_expsym_cmds
+ else
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ cmds=$archive_expsym_cmds
+ else
+ cmds=$archive_cmds
+ fi
+ fi
+ fi
+
+ if test -n "$delfiles"; then
+ # Append the command to remove temporary files to $cmds.
+ eval cmds=\"\$cmds~\$RM $delfiles\"
+ fi
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ libobjs="$libobjs $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
+
+ if test -n "$convenience"; then
+ if test -z "$whole_archive_flag_spec"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ # Create links to the real library.
+ for linkname in $linknames; do
+ if test "$realname" != "$linkname"; then
+ func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
+ fi
+ done
+
+ # If -module or -export-dynamic was specified, set the dlname.
+ if test "$module" = yes || test "$export_dynamic" = yes; then
+ # On all known operating systems, these are identical.
+ dlname="$soname"
+ fi
+ fi
+ ;;
+
+ obj)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for objects"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for objects" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for objects"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for objects"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for objects"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for objects"
+
+ case $output in
+ *.lo)
+ test -n "$objs$old_deplibs" && \
+ func_fatal_error "cannot build library object \`$output' from non-libtool objects"
+
+ libobj=$output
+ func_lo2o "$libobj"
+ obj=$func_lo2o_result
+ ;;
+ *)
+ libobj=
+ obj="$output"
+ ;;
+ esac
+
+ # Delete the old objects.
+ $opt_dry_run || $RM $obj $libobj
+
+ # Objects from convenience libraries. This assumes
+ # single-version convenience libraries. Whenever we create
+ # different ones for PIC/non-PIC, this we'll have to duplicate
+ # the extraction.
+ reload_conv_objs=
+ gentop=
+ # reload_cmds runs $LD directly, so let us get rid of
+ # -Wl from whole_archive_flag_spec and hope we can get by with
+ # turning comma into space..
+ wl=
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec"; then
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+ reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
+ else
+ gentop="$output_objdir/${obj}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ reload_conv_objs="$reload_objs $func_extract_archives_result"
+ fi
+ fi
+
+ # Create the old-style object.
+ reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
+
+ output="$obj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+
+ # Exit if we aren't doing a library object file.
+ if test -z "$libobj"; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$build_libtool_libs" != yes; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ # Create an invalid libtool object if no PIC, so that we don't
+ # accidentally link it into a program.
+ # $show "echo timestamp > $libobj"
+ # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
+ exit $EXIT_SUCCESS
+ fi
+
+ if test -n "$pic_flag" || test "$pic_mode" != default; then
+ # Only do commands if we really have different PIC objects.
+ reload_objs="$libobjs $reload_conv_objs"
+ output="$libobj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+ fi
+
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ ;;
+
+ prog)
+ case $host in
+ *cygwin*) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result.exe;;
+ esac
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for programs"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for programs"
+
+ test "$preload" = yes \
+ && test "$dlopen_support" = unknown \
+ && test "$dlopen_self" = unknown \
+ && test "$dlopen_self_static" = unknown && \
+ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library is the System framework
+ compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ case $host in
+ *-*-darwin*)
+ # Don't allow lazy linking, it breaks C++ global constructors
+ # But is supposedly fixed on 10.4 or later (yay!).
+ if test "$tagname" = CXX ; then
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
+ 10.[0123])
+ compile_command="$compile_command ${wl}-bind_at_load"
+ finalize_command="$finalize_command ${wl}-bind_at_load"
+ ;;
+ esac
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $compile_deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $compile_deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ compile_deplibs="$new_libs"
+
+
+ compile_command="$compile_command $compile_deplibs"
+ finalize_command="$finalize_command $finalize_deplibs"
+
+ if test -n "$rpath$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ for libdir in $rpath $xrpath; do
+ # This is the magic to use -rpath.
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ fi
+
+ # Now hardcode the library paths
+ rpath=
+ hardcode_libdirs=
+ for libdir in $compile_rpath $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$libdir:"*) ;;
+ ::) dllsearchpath=$libdir;;
+ *) dllsearchpath="$dllsearchpath:$libdir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ compile_rpath="$rpath"
+
+ rpath=
+ hardcode_libdirs=
+ for libdir in $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$finalize_perm_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ finalize_rpath="$rpath"
+
+ if test -n "$libobjs" && test "$build_old_libs" = yes; then
+ # Transform all the library objects into standard objects.
+ compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ fi
+
+ func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
+
+ # template prelinking step
+ if test -n "$prelink_cmds"; then
+ func_execute_cmds "$prelink_cmds" 'exit $?'
+ fi
+
+ wrappers_required=yes
+ case $host in
+ *cygwin* | *mingw* )
+ if test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ *cegcc)
+ # Disable wrappers for cegcc, we are cross compiling anyway.
+ wrappers_required=no
+ ;;
+ *)
+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ esac
+ if test "$wrappers_required" = no; then
+ # Replace the output file specification.
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+ link_command="$compile_command$compile_rpath"
+
+ # We have no uninstalled library dependencies, so finalize right now.
+ exit_status=0
+ func_show_eval "$link_command" 'exit_status=$?'
+
+ # Delete the generated files.
+ if test -f "$output_objdir/${outputname}S.${objext}"; then
+ func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
+ fi
+
+ exit $exit_status
+ fi
+
+ if test -n "$compile_shlibpath$finalize_shlibpath"; then
+ compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
+ fi
+ if test -n "$finalize_shlibpath"; then
+ finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
+ fi
+
+ compile_var=
+ finalize_var=
+ if test -n "$runpath_var"; then
+ if test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ if test -n "$finalize_perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $finalize_perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ fi
+
+ if test "$no_install" = yes; then
+ # We don't need to create a wrapper script.
+ link_command="$compile_var$compile_command$compile_rpath"
+ # Replace the output file specification.
+ link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+ # Delete the old output file.
+ $opt_dry_run || $RM $output
+ # Link the executable and exit
+ func_show_eval "$link_command" 'exit $?'
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$hardcode_action" = relink; then
+ # Fast installation is not supported
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+
+ func_warning "this platform does not like uninstalled shared libraries"
+ func_warning "\`$output' will be relinked during installation"
+ else
+ if test "$fast_install" != no; then
+ link_command="$finalize_var$compile_command$finalize_rpath"
+ if test "$fast_install" = yes; then
+ relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
+ else
+ # fast_install is set to needless
+ relink_command=
+ fi
+ else
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+ fi
+ fi
+
+ # Replace the output file specification.
+ link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
+
+ # Delete the old output files.
+ $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
+
+ func_show_eval "$link_command" 'exit $?'
+
+ # Now create the wrapper script.
+ func_verbose "creating $output"
+
+ # Quote the relink command for shipping.
+ if test -n "$relink_command"; then
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ relink_command="(cd `pwd`; $relink_command)"
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+ fi
+
+ # Quote $ECHO for shipping.
+ if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
+ case $progpath in
+ [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
+ *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
+ esac
+ qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
+ else
+ qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
+ fi
+
+ # Only actually do things if not in dry run mode.
+ $opt_dry_run || {
+ # win32 will think the script is a binary if it has
+ # a .exe suffix, so we strip it off here.
+ case $output in
+ *.exe) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result ;;
+ esac
+ # test for cygwin because mv fails w/o .exe extensions
+ case $host in
+ *cygwin*)
+ exeext=.exe
+ func_stripname '' '.exe' "$outputname"
+ outputname=$func_stripname_result ;;
+ *) exeext= ;;
+ esac
+ case $host in
+ *cygwin* | *mingw* )
+ func_dirname_and_basename "$output" "" "."
+ output_name=$func_basename_result
+ output_path=$func_dirname_result
+ cwrappersource="$output_path/$objdir/lt-$output_name.c"
+ cwrapper="$output_path/$output_name.exe"
+ $RM $cwrappersource $cwrapper
+ trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_cwrapperexe_src > $cwrappersource
+
+ # The wrapper executable is built using the $host compiler,
+ # because it contains $host paths and files. If cross-
+ # compiling, it, like the target executable, must be
+ # executed on the $host or under an emulation environment.
+ $opt_dry_run || {
+ $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
+ $STRIP $cwrapper
+ }
+
+ # Now, create the wrapper script for func_source use:
+ func_ltwrapper_scriptname $cwrapper
+ $RM $func_ltwrapper_scriptname_result
+ trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
+ $opt_dry_run || {
+ # note: this script will not be executed, so do not chmod.
+ if test "x$build" = "x$host" ; then
+ $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
+ else
+ func_emit_wrapper no > $func_ltwrapper_scriptname_result
+ fi
+ }
+ ;;
+ * )
+ $RM $output
+ trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_wrapper no > $output
+ chmod +x $output
+ ;;
+ esac
+ }
+ exit $EXIT_SUCCESS
+ ;;
+ esac
+
+ # See if we need to build an old-fashioned archive.
+ for oldlib in $oldlibs; do
+
+ if test "$build_libtool_libs" = convenience; then
+ oldobjs="$libobjs_save $symfileobj"
+ addlibs="$convenience"
+ build_libtool_libs=no
+ else
+ if test "$build_libtool_libs" = module; then
+ oldobjs="$libobjs_save"
+ build_libtool_libs=no
+ else
+ oldobjs="$old_deplibs $non_pic_objects"
+ if test "$preload" = yes && test -f "$symfileobj"; then
+ oldobjs="$oldobjs $symfileobj"
+ fi
+ fi
+ addlibs="$old_convenience"
+ fi
+
+ if test -n "$addlibs"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $addlibs
+ oldobjs="$oldobjs $func_extract_archives_result"
+ fi
+
+ # Do each command in the archive commands.
+ if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
+ cmds=$old_archive_from_new_cmds
+ else
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ oldobjs="$oldobjs $func_extract_archives_result"
+ fi
+
+ # POSIX demands no paths to be encoded in archives. We have
+ # to avoid creating archives with duplicate basenames if we
+ # might have to extract them afterwards, e.g., when creating a
+ # static archive out of a convenience library, or when linking
+ # the entirety of a libtool archive into another (currently
+ # not supported by libtool).
+ if (for obj in $oldobjs
+ do
+ func_basename "$obj"
+ $ECHO "$func_basename_result"
+ done | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ $ECHO "copying selected object files to avoid basename conflicts..."
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+ func_mkdir_p "$gentop"
+ save_oldobjs=$oldobjs
+ oldobjs=
+ counter=1
+ for obj in $save_oldobjs
+ do
+ func_basename "$obj"
+ objbase="$func_basename_result"
+ case " $oldobjs " in
+ " ") oldobjs=$obj ;;
+ *[\ /]"$objbase "*)
+ while :; do
+ # Make sure we don't pick an alternate name that also
+ # overlaps.
+ newobj=lt$counter-$objbase
+ func_arith $counter + 1
+ counter=$func_arith_result
+ case " $oldobjs " in
+ *[\ /]"$newobj "*) ;;
+ *) if test ! -f "$gentop/$newobj"; then break; fi ;;
+ esac
+ done
+ func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
+ oldobjs="$oldobjs $gentop/$newobj"
+ ;;
+ *) oldobjs="$oldobjs $obj" ;;
+ esac
+ done
+ fi
+ eval cmds=\"$old_archive_cmds\"
+
+ func_len " $cmds"
+ len=$func_len_result
+ if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ cmds=$old_archive_cmds
+ else
+ # the command line is too long to link in one step, link in parts
+ func_verbose "using piecewise archive linking..."
+ save_RANLIB=$RANLIB
+ RANLIB=:
+ objlist=
+ concat_cmds=
+ save_oldobjs=$oldobjs
+ oldobjs=
+ # Is there a better way of finding the last object in the list?
+ for obj in $save_oldobjs
+ do
+ last_oldobj=$obj
+ done
+ eval test_cmds=\"$old_archive_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+ for obj in $save_oldobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ func_append objlist " $obj"
+ if test "$len" -lt "$max_cmd_len"; then
+ :
+ else
+ # the above command should be used before it gets too long
+ oldobjs=$objlist
+ if test "$obj" = "$last_oldobj" ; then
+ RANLIB=$save_RANLIB
+ fi
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
+ objlist=
+ len=$len0
+ fi
+ done
+ RANLIB=$save_RANLIB
+ oldobjs=$objlist
+ if test "X$oldobjs" = "X" ; then
+ eval cmds=\"\$concat_cmds\"
+ else
+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
+ fi
+ fi
+ fi
+ func_execute_cmds "$cmds" 'exit $?'
+ done
+
+ test -n "$generated" && \
+ func_show_eval "${RM}r$generated"
+
+ # Now create the libtool archive.
+ case $output in
+ *.la)
+ old_library=
+ test "$build_old_libs" = yes && old_library="$libname.$libext"
+ func_verbose "creating $output"
+
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ # Quote the link command for shipping.
+ relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+ if test "$hardcode_automatic" = yes ; then
+ relink_command=
+ fi
+
+ # Only create the output if not a dry run.
+ $opt_dry_run || {
+ for installed in no yes; do
+ if test "$installed" = yes; then
+ if test -z "$install_libdir"; then
+ break
+ fi
+ output="$output_objdir/$outputname"i
+ # Replace all uninstalled libtool libraries with the installed ones
+ newdependency_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ *.la)
+ func_basename "$deplib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ newdependency_libs="$newdependency_libs $libdir/$name"
+ ;;
+ *) newdependency_libs="$newdependency_libs $deplib" ;;
+ esac
+ done
+ dependency_libs="$newdependency_libs"
+ newdlfiles=
+
+ for lib in $dlfiles; do
+ case $lib in
+ *.la)
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ newdlfiles="$newdlfiles $libdir/$name"
+ ;;
+ *) newdlfiles="$newdlfiles $lib" ;;
+ esac
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ *.la)
+ # Only pass preopened files to the pseudo-archive (for
+ # eventual linking with the app. that links it) if we
+ # didn't already link the preopened objects directly into
+ # the library:
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ newdlprefiles="$newdlprefiles $libdir/$name"
+ ;;
+ esac
+ done
+ dlprefiles="$newdlprefiles"
+ else
+ newdlfiles=
+ for lib in $dlfiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlfiles="$newdlfiles $abs"
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlprefiles="$newdlprefiles $abs"
+ done
+ dlprefiles="$newdlprefiles"
+ fi
+ $RM $output
+ # place dlname in correct position for cygwin
+ tdlname=$dlname
+ case $host,$output,$installed,$module,$dlname in
+ *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+ esac
+ $ECHO > $output "\
+# $outputname - a libtool library file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='$tdlname'
+
+# Names of this library.
+library_names='$library_names'
+
+# The name of the static archive.
+old_library='$old_library'
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags='$new_inherited_linker_flags'
+
+# Libraries that this one depends upon.
+dependency_libs='$dependency_libs'
+
+# Names of additional weak libraries provided by this library
+weak_library_names='$weak_libs'
+
+# Version information for $libname.
+current=$current
+age=$age
+revision=$revision
+
+# Is this an already installed library?
+installed=$installed
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
+# Files to dlopen/dlpreopen
+dlopen='$dlfiles'
+dlpreopen='$dlprefiles'
+
+# Directory that this library needs to be installed in:
+libdir='$install_libdir'"
+ if test "$installed" = no && test "$need_relink" = yes; then
+ $ECHO >> $output "\
+relink_command=\"$relink_command\""
+ fi
+ done
+ }
+
+ # Do a symbolic link so that the libtool archive can be found in
+ # LD_LIBRARY_PATH before the program is installed.
+ func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
+ ;;
+ esac
+ exit $EXIT_SUCCESS
+}
+
+{ test "$mode" = link || test "$mode" = relink; } &&
+ func_mode_link ${1+"$@"}
+
+
+# func_mode_uninstall arg...
+func_mode_uninstall ()
+{
+ $opt_debug
+ RM="$nonopt"
+ files=
+ rmforce=
+ exit_status=0
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ for arg
+ do
+ case $arg in
+ -f) RM="$RM $arg"; rmforce=yes ;;
+ -*) RM="$RM $arg" ;;
+ *) files="$files $arg" ;;
+ esac
+ done
+
+ test -z "$RM" && \
+ func_fatal_help "you must specify an RM program"
+
+ rmdirs=
+
+ origobjdir="$objdir"
+ for file in $files; do
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ if test "X$dir" = X.; then
+ objdir="$origobjdir"
+ else
+ objdir="$dir/$origobjdir"
+ fi
+ func_basename "$file"
+ name="$func_basename_result"
+ test "$mode" = uninstall && objdir="$dir"
+
+ # Remember objdir for removal later, being careful to avoid duplicates
+ if test "$mode" = clean; then
+ case " $rmdirs " in
+ *" $objdir "*) ;;
+ *) rmdirs="$rmdirs $objdir" ;;
+ esac
+ fi
+
+ # Don't error if the file doesn't exist and rm -f was used.
+ if { test -L "$file"; } >/dev/null 2>&1 ||
+ { test -h "$file"; } >/dev/null 2>&1 ||
+ test -f "$file"; then
+ :
+ elif test -d "$file"; then
+ exit_status=1
+ continue
+ elif test "$rmforce" = yes; then
+ continue
+ fi
+
+ rmfiles="$file"
+
+ case $name in
+ *.la)
+ # Possibly a libtool archive, so verify it.
+ if func_lalib_p "$file"; then
+ func_source $dir/$name
+
+ # Delete the libtool libraries and symlinks.
+ for n in $library_names; do
+ rmfiles="$rmfiles $objdir/$n"
+ done
+ test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
+
+ case "$mode" in
+ clean)
+ case " $library_names " in
+ # " " in the beginning catches empty $dlname
+ *" $dlname "*) ;;
+ *) rmfiles="$rmfiles $objdir/$dlname" ;;
+ esac
+ test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+ ;;
+ uninstall)
+ if test -n "$library_names"; then
+ # Do each command in the postuninstall commands.
+ func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+
+ if test -n "$old_library"; then
+ # Do each command in the old_postuninstall commands.
+ func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+ # FIXME: should reinstall the best remaining shared library.
+ ;;
+ esac
+ fi
+ ;;
+
+ *.lo)
+ # Possibly a libtool object, so verify it.
+ if func_lalib_p "$file"; then
+
+ # Read the .lo file
+ func_source $dir/$name
+
+ # Add PIC object to the list of files to remove.
+ if test -n "$pic_object" &&
+ test "$pic_object" != none; then
+ rmfiles="$rmfiles $dir/$pic_object"
+ fi
+
+ # Add non-PIC object to the list of files to remove.
+ if test -n "$non_pic_object" &&
+ test "$non_pic_object" != none; then
+ rmfiles="$rmfiles $dir/$non_pic_object"
+ fi
+ fi
+ ;;
+
+ *)
+ if test "$mode" = clean ; then
+ noexename=$name
+ case $file in
+ *.exe)
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ func_stripname '' '.exe' "$name"
+ noexename=$func_stripname_result
+ # $file with .exe has already been added to rmfiles,
+ # add $file without .exe
+ rmfiles="$rmfiles $file"
+ ;;
+ esac
+ # Do a test to see if this is a libtool program.
+ if func_ltwrapper_p "$file"; then
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ relink_command=
+ func_source $func_ltwrapper_scriptname_result
+ rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
+ else
+ relink_command=
+ func_source $dir/$noexename
+ fi
+
+ # note $name still contains .exe if it was in $file originally
+ # as does the version of $file that was added into $rmfiles
+ rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
+ if test "$fast_install" = yes && test -n "$relink_command"; then
+ rmfiles="$rmfiles $objdir/lt-$name"
+ fi
+ if test "X$noexename" != "X$name" ; then
+ rmfiles="$rmfiles $objdir/lt-${noexename}.c"
+ fi
+ fi
+ fi
+ ;;
+ esac
+ func_show_eval "$RM $rmfiles" 'exit_status=1'
+ done
+ objdir="$origobjdir"
+
+ # Try to remove the ${objdir}s in the directories where we deleted files
+ for dir in $rmdirs; do
+ if test -d "$dir"; then
+ func_show_eval "rmdir $dir >/dev/null 2>&1"
+ fi
+ done
+
+ exit $exit_status
+}
+
+{ test "$mode" = uninstall || test "$mode" = clean; } &&
+ func_mode_uninstall ${1+"$@"}
+
+test -z "$mode" && {
+ help="$generic_help"
+ func_fatal_help "you must specify a MODE"
+}
+
+test -z "$exec_cmd" && \
+ func_fatal_help "invalid operation mode \`$mode'"
+
+if test -n "$exec_cmd"; then
+ eval exec "$exec_cmd"
+ exit $EXIT_FAILURE
+fi
+
+exit $exit_status
+
+
+# The TAGs below are defined such that we never get into a situation
+# in which we disable both kinds of libraries. Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them. This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration. But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+build_libtool_libs=no
+build_old_libs=yes
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
+# ### END LIBTOOL TAG CONFIG: disable-static
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
+# vi:sw=2
+
diff --git a/build/missing b/build/missing
new file mode 100644
index 0000000..1c8ff70
--- /dev/null
+++ b/build/missing
@@ -0,0 +1,367 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2006-05-10.23
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
+# Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+fi
+
+run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+ configure_ac=configure.ac
+else
+ configure_ac=configure.in
+fi
+
+msg="missing on your system"
+
+case $1 in
+--run)
+ # Try to run requested program, and just exit if it succeeds.
+ run=
+ shift
+ "$@" && exit 0
+ # Exit code 63 means version mismatch. This often happens
+ # when the user try to use an ancient version of a tool on
+ # a file that requires a minimum version. In this case we
+ # we should proceed has if the program had been absent, or
+ # if --run hadn't been passed.
+ if test $? = 63; then
+ run=:
+ msg="probably too old"
+ fi
+ ;;
+
+ -h|--h|--he|--hel|--help)
+ echo "\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+ -h, --help display this help and exit
+ -v, --version output version information and exit
+ --run try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+ aclocal touch file \`aclocal.m4'
+ autoconf touch file \`configure'
+ autoheader touch file \`config.h.in'
+ autom4te touch the output file, or create a stub one
+ automake touch all \`Makefile.in' files
+ bison create \`y.tab.[ch]', if possible, from existing .[ch]
+ flex create \`lex.yy.c', if possible, from existing .c
+ help2man touch the output file
+ lex create \`lex.yy.c', if possible, from existing .c
+ makeinfo touch the output file
+ tar try tar, gnutar, gtar, then tar without non-portable flags
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Send bug reports to <bug-automake@gnu.org>."
+ exit $?
+ ;;
+
+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+ echo "missing $scriptversion (GNU Automake)"
+ exit $?
+ ;;
+
+ -*)
+ echo 1>&2 "$0: Unknown \`$1' option"
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+ ;;
+
+esac
+
+# Now exit if we have it, but it failed. Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program).
+case $1 in
+ lex|yacc)
+ # Not GNU programs, they don't have --version.
+ ;;
+
+ tar)
+ if test -n "$run"; then
+ echo 1>&2 "ERROR: \`tar' requires --run"
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ exit 1
+ fi
+ ;;
+
+ *)
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+ # We have it, but it failed.
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ # Could not run --version or --help. This is probably someone
+ # running `$TOOL --version' or `$TOOL --help' to check whether
+ # $TOOL exists and not knowing $TOOL uses missing.
+ exit 1
+ fi
+ ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case $1 in
+ aclocal*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
+ to install the \`Automake' and \`Perl' packages. Grab them from
+ any GNU archive site."
+ touch aclocal.m4
+ ;;
+
+ autoconf)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`${configure_ac}'. You might want to install the
+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
+ archive site."
+ touch configure
+ ;;
+
+ autoheader)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
+ to install the \`Autoconf' and \`GNU m4' packages. Grab them
+ from any GNU archive site."
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+ test -z "$files" && files="config.h"
+ touch_files=
+ for f in $files; do
+ case $f in
+ *:*) touch_files="$touch_files "`echo "$f" |
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+ *) touch_files="$touch_files $f.in";;
+ esac
+ done
+ touch $touch_files
+ ;;
+
+ automake*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+ You might want to install the \`Automake' and \`Perl' packages.
+ Grab them from any GNU archive site."
+ find . -type f -name Makefile.am -print |
+ sed 's/\.am$/.in/' |
+ while read f; do touch "$f"; done
+ ;;
+
+ autom4te)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, but is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them.
+ You can get \`$1' as part of \`Autoconf' from any GNU
+ archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo "#! /bin/sh"
+ echo "# Created by GNU Automake missing as a replacement of"
+ echo "# $ $@"
+ echo "exit 0"
+ chmod +x $file
+ exit 1
+ fi
+ ;;
+
+ bison|yacc)
+ echo 1>&2 "\
+WARNING: \`$1' $msg. You should only need it if
+ you modified a \`.y' file. You may need the \`Bison' package
+ in order for those modifications to take effect. You can get
+ \`Bison' from any GNU archive site."
+ rm -f y.tab.c y.tab.h
+ if test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.y)
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.c
+ fi
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.h
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f y.tab.h; then
+ echo >y.tab.h
+ fi
+ if test ! -f y.tab.c; then
+ echo 'main() { return 0; }' >y.tab.c
+ fi
+ ;;
+
+ lex|flex)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.l' file. You may need the \`Flex' package
+ in order for those modifications to take effect. You can get
+ \`Flex' from any GNU archive site."
+ rm -f lex.yy.c
+ if test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.l)
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" lex.yy.c
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f lex.yy.c; then
+ echo 'main() { return 0; }' >lex.yy.c
+ fi
+ ;;
+
+ help2man)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a dependency of a manual page. You may need the
+ \`Help2man' package in order for those modifications to take
+ effect. You can get \`Help2man' from any GNU archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo ".ab help2man is required to generate this page"
+ exit 1
+ fi
+ ;;
+
+ makeinfo)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.texi' or \`.texinfo' file, or any other file
+ indirectly affecting the aspect of the manual. The spurious
+ call might also be the consequence of using a buggy \`make' (AIX,
+ DU, IRIX). You might want to install the \`Texinfo' package or
+ the \`GNU make' package. Grab either from any GNU archive site."
+ # The file to touch is that specified with -o ...
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -z "$file"; then
+ # ... or it is the one specified with @setfilename ...
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '
+ /^@setfilename/{
+ s/.* \([^ ]*\) *$/\1/
+ p
+ q
+ }' $infile`
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+ fi
+ # If the file does not exist, the user really needs makeinfo;
+ # let's fail without touching anything.
+ test -f $file || exit 1
+ touch $file
+ ;;
+
+ tar)
+ shift
+
+ # We have already tried tar in the generic part.
+ # Look for gnutar/gtar before invocation to avoid ugly error
+ # messages.
+ if (gnutar --version > /dev/null 2>&1); then
+ gnutar "$@" && exit 0
+ fi
+ if (gtar --version > /dev/null 2>&1); then
+ gtar "$@" && exit 0
+ fi
+ firstarg="$1"
+ if shift; then
+ case $firstarg in
+ *o*)
+ firstarg=`echo "$firstarg" | sed s/o//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ case $firstarg in
+ *h*)
+ firstarg=`echo "$firstarg" | sed s/h//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ fi
+
+ echo 1>&2 "\
+WARNING: I can't seem to be able to run \`tar' with the given arguments.
+ You may want to install GNU tar or Free paxutils, or check the
+ command line arguments."
+ exit 1
+ ;;
+
+ *)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, and is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them. Check the \`README' file,
+ it often tells you about the needed prerequisites for installing
+ this package. You may also peek at any GNU archive site, in case
+ some other package would contain this missing \`$1' program."
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-end: "$"
+# End:
diff --git a/configure b/configure
new file mode 100755
index 0000000..acc5241
--- /dev/null
+++ b/configure
@@ -0,0 +1,25949 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.63 for mpg123 1.8.1.
+#
+# Report bugs to <mpg123-devel@lists.sourceforge.net>.
+#
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+case $0 in
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+if test "x$CONFIG_SHELL" = x; then
+ if (eval ":") 2>/dev/null; then
+ as_have_required=yes
+else
+ as_have_required=no
+fi
+
+ if test $as_have_required = yes && (eval ":
+(as_func_return () {
+ (exit \$1)
+}
+as_func_success () {
+ as_func_return 0
+}
+as_func_failure () {
+ as_func_return 1
+}
+as_func_ret_success () {
+ return 0
+}
+as_func_ret_failure () {
+ return 1
+}
+
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
+
+if as_func_failure; then
+ exitcode=1
+ echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+ :
+else
+ exitcode=1
+ echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+ exitcode=1
+ echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
+ :
+else
+ exitcode=1
+ echo positional parameters were not saved.
+fi
+
+test \$exitcode = 0) || { (exit 1); exit 1; }
+
+(
+ as_lineno_1=\$LINENO
+ as_lineno_2=\$LINENO
+ test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
+ test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
+") 2> /dev/null; then
+ :
+else
+ as_candidate_shells=
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ case $as_dir in
+ /*)
+ for as_base in sh bash ksh sh5; do
+ as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
+ done;;
+ esac
+done
+IFS=$as_save_IFS
+
+
+ for as_shell in $as_candidate_shells $SHELL; do
+ # Try only shells that exist, to save several forks.
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ { ("$as_shell") 2> /dev/null <<\_ASEOF
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+:
+_ASEOF
+}; then
+ CONFIG_SHELL=$as_shell
+ as_have_required=yes
+ if { "$as_shell" 2> /dev/null <<\_ASEOF
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+:
+(as_func_return () {
+ (exit $1)
+}
+as_func_success () {
+ as_func_return 0
+}
+as_func_failure () {
+ as_func_return 1
+}
+as_func_ret_success () {
+ return 0
+}
+as_func_ret_failure () {
+ return 1
+}
+
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
+
+if as_func_failure; then
+ exitcode=1
+ echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+ :
+else
+ exitcode=1
+ echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+ exitcode=1
+ echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = "$1" ); then
+ :
+else
+ exitcode=1
+ echo positional parameters were not saved.
+fi
+
+test $exitcode = 0) || { (exit 1); exit 1; }
+
+(
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
+
+_ASEOF
+}; then
+ break
+fi
+
+fi
+
+ done
+
+ if test "x$CONFIG_SHELL" != x; then
+ for as_var in BASH_ENV ENV
+ do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+ done
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
+fi
+
+
+ if test $as_have_required = no; then
+ echo This script requires a shell more modern than all the
+ echo shells that I found on your system. Please install a
+ echo modern shell, or manually run the script under such a
+ echo shell if you do have one.
+ { (exit 1); exit 1; }
+fi
+
+
+fi
+
+fi
+
+
+
+(eval "as_func_return () {
+ (exit \$1)
+}
+as_func_success () {
+ as_func_return 0
+}
+as_func_failure () {
+ as_func_return 1
+}
+as_func_ret_success () {
+ return 0
+}
+as_func_ret_failure () {
+ return 1
+}
+
+exitcode=0
+if as_func_success; then
+ :
+else
+ exitcode=1
+ echo as_func_success failed.
+fi
+
+if as_func_failure; then
+ exitcode=1
+ echo as_func_failure succeeded.
+fi
+
+if as_func_ret_success; then
+ :
+else
+ exitcode=1
+ echo as_func_ret_success failed.
+fi
+
+if as_func_ret_failure; then
+ exitcode=1
+ echo as_func_ret_failure succeeded.
+fi
+
+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
+ :
+else
+ exitcode=1
+ echo positional parameters were not saved.
+fi
+
+test \$exitcode = 0") || {
+ echo No shell found that supports shell functions.
+ echo Please tell bug-autoconf@gnu.org about your system,
+ echo including any error possibly output before this message.
+ echo This can help us improve future autoconf versions.
+ echo Configuration will now proceed without shell functions.
+}
+
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+ # uniformly replaced by the line number. The first 'sed' inserts a
+ # line-number line after each line using $LINENO; the second 'sed'
+ # does the real work. The second script uses 'N' to pair each
+ # line-number line with the line containing $LINENO, and appends
+ # trailing '-' during substitution so that $LINENO is not a special
+ # case at line end.
+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+ # scripts with optimization help from Paolo Bonzini. Blame Lee
+ # E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+ { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+ case `echo 'x\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ *) ECHO_C='\c';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p=:
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+
+
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$lt_ECHO in
+X*--fallback-echo)
+ # Remove one level of quotation (which was required for Make).
+ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
+ ;;
+esac
+
+ECHO=${lt_ECHO-echo}
+if test "X$1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X$1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
+ # Yippee, $ECHO works!
+ :
+else
+ # Restart under the correct shell.
+ exec $SHELL "$0" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<_LT_EOF
+$*
+_LT_EOF
+ exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test -z "$lt_ECHO"; then
+ if test "X${echo_test_string+set}" != Xset; then
+ # find a string as large as possible, as long as the shell can cope with it
+ for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+ if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
+ then
+ break
+ fi
+ done
+ fi
+
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ :
+ else
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
+ # backslashes. This makes it impossible to quote backslashes using
+ # echo "$something" | sed 's/\\/\\\\/g'
+ #
+ # So, first we look for a working echo in the user's PATH.
+
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for dir in $PATH /usr/ucb; do
+ IFS="$lt_save_ifs"
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$dir/echo"
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+
+ if test "X$ECHO" = Xecho; then
+ # We didn't find a better echo, so look for alternatives.
+ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # This shell has a builtin print -r that does the trick.
+ ECHO='print -r'
+ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
+ # If we have ksh, try running configure again with it.
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ export ORIGINAL_CONFIG_SHELL
+ CONFIG_SHELL=/bin/ksh
+ export CONFIG_SHELL
+ exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
+ else
+ # Try using printf.
+ ECHO='printf %s\n'
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # Cool, printf works
+ :
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+ export CONFIG_SHELL
+ SHELL="$CONFIG_SHELL"
+ export SHELL
+ ECHO="$CONFIG_SHELL $0 --fallback-echo"
+ elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$CONFIG_SHELL $0 --fallback-echo"
+ else
+ # maybe with a smaller string...
+ prev=:
+
+ for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
+ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
+ then
+ break
+ fi
+ prev="$cmd"
+ done
+
+ if test "$prev" != 'sed 50q "$0"'; then
+ echo_test_string=`eval $prev`
+ export echo_test_string
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
+ else
+ # Oops. We lost completely, so just stick with echo.
+ ECHO=echo
+ fi
+ fi
+ fi
+ fi
+ fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+lt_ECHO=$ECHO
+if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
+ lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
+fi
+
+
+
+
+exec 7<&0 </dev/null 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Identity of this package.
+PACKAGE_NAME='mpg123'
+PACKAGE_TARNAME='mpg123'
+PACKAGE_VERSION='1.8.1'
+PACKAGE_STRING='mpg123 1.8.1'
+PACKAGE_BUGREPORT='mpg123-devel@lists.sourceforge.net'
+
+ac_unique_file="src/mpg123.c"
+ac_unique_file="doc"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+# include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='LTLIBOBJS
+LIBOBJS
+OUTPUT_LDFLAGS
+OUTPUT_LIBS
+OUTPUT_CFLAGS
+OUTPUT_MOD
+OUTPUT_OBJ
+HAVE_DUMMY_FALSE
+HAVE_DUMMY_TRUE
+DUMMY_CFLAGS
+DUMMY_LDFLAGS
+DUMMY_LIBS
+HAVE_MINT_FALSE
+HAVE_MINT_TRUE
+MINT_CFLAGS
+MINT_LDFLAGS
+MINT_LIBS
+HAVE_SGI_FALSE
+HAVE_SGI_TRUE
+SGI_CFLAGS
+SGI_LDFLAGS
+SGI_LIBS
+HAVE_OS2_FALSE
+HAVE_OS2_TRUE
+OS2_CFLAGS
+OS2_LDFLAGS
+OS2_LIBS
+HAVE_HP_FALSE
+HAVE_HP_TRUE
+HP_CFLAGS
+HP_LDFLAGS
+HP_LIBS
+HAVE_ARTS_FALSE
+HAVE_ARTS_TRUE
+ARTS_CFLAGS
+ARTS_LDFLAGS
+ARTS_LIBS
+HAVE_ALIB_FALSE
+HAVE_ALIB_TRUE
+ALIB_CFLAGS
+ALIB_LDFLAGS
+ALIB_LIBS
+HAVE_AIX_FALSE
+HAVE_AIX_TRUE
+AIX_CFLAGS
+AIX_LDFLAGS
+AIX_LIBS
+HAVE_NAS_FALSE
+HAVE_NAS_TRUE
+NAS_CFLAGS
+NAS_LDFLAGS
+NAS_LIBS
+HAVE_SDL_FALSE
+HAVE_SDL_TRUE
+SDL_LDFLAGS
+HAVE_PULSE_FALSE
+HAVE_PULSE_TRUE
+PULSE_LDFLAGS
+HAVE_PORTAUDIO_FALSE
+HAVE_PORTAUDIO_TRUE
+PORTAUDIO_CFLAGS
+PORTAUDIO_LDFLAGS
+PORTAUDIO_LIBS
+HAVE_JACK_FALSE
+HAVE_JACK_TRUE
+JACK_LDFLAGS
+HAVE_ESD_FALSE
+HAVE_ESD_TRUE
+ESD_LDFLAGS
+HAVE_WIN32_FALSE
+HAVE_WIN32_TRUE
+WIN32_CFLAGS
+WIN32_LDFLAGS
+WIN32_LIBS
+HAVE_SUN_FALSE
+HAVE_SUN_TRUE
+SUN_CFLAGS
+SUN_LDFLAGS
+SUN_LIBS
+HAVE_SNDIO_FALSE
+HAVE_SNDIO_TRUE
+SNDIO_CFLAGS
+SNDIO_LDFLAGS
+SNDIO_LIBS
+HAVE_COREAUDIO_FALSE
+HAVE_COREAUDIO_TRUE
+COREAUDIO_CFLAGS
+COREAUDIO_LDFLAGS
+COREAUDIO_LIBS
+HAVE_OSS_FALSE
+HAVE_OSS_TRUE
+OSS_CFLAGS
+OSS_LDFLAGS
+OSS_LIBS
+HAVE_ALSA_FALSE
+HAVE_ALSA_TRUE
+ALSA_CFLAGS
+ALSA_LDFLAGS
+ALSA_LIBS
+SDL_LIBS
+SDL_CFLAGS
+ESD_LIBS
+ESD_CFLAGS
+PULSE_LIBS
+PULSE_CFLAGS
+JACK_LIBS
+JACK_CFLAGS
+PKG_CONFIG
+DECODER_LOBJ
+DECODER_OBJ
+INCLUDE_SYS_TYPE_H
+INCLUDE_STDLIB_H
+INCLUDE_STDIO_H
+LARGEFILE_SWITCH
+LARGEFILE_SUFFIX
+LARGEFILE_BITS
+LT_LDFLAGS
+MODULE_OBJ
+HAVE_MODULES_FALSE
+HAVE_MODULES_TRUE
+OTOOL64
+OTOOL
+LIPO
+NMEDIT
+DSYMUTIL
+lt_ECHO
+RANLIB
+AR
+LN_S
+NM
+ac_ct_DUMPBIN
+DUMPBIN
+LD
+FGREP
+SED
+LIBTOOL
+OBJDUMP
+DLLTOOL
+AS
+EGREP
+GREP
+CPP
+am__fastdepCCAS_FALSE
+am__fastdepCCAS_TRUE
+CCASDEPMODE
+CCASFLAGS
+CCAS
+am__fastdepCC_FALSE
+am__fastdepCC_TRUE
+CCDEPMODE
+AMDEPBACKSLASH
+AMDEP_FALSE
+AMDEP_TRUE
+am__quote
+am__include
+DEPDIR
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+am__untar
+am__tar
+AMTAR
+am__leading_dot
+SET_MAKE
+AWK
+mkdir_p
+MKDIR_P
+INSTALL_STRIP_PROGRAM
+STRIP
+install_sh
+MAKEINFO
+AUTOHEADER
+AUTOMAKE
+AUTOCONF
+ACLOCAL
+VERSION
+PACKAGE
+CYGPATH_W
+am__isrc
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+target_os
+target_vendor
+target_cpu
+target
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
+LIBMPG123_VERSION
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+enable_dependency_tracking
+enable_modules
+enable_static
+enable_shared
+with_pic
+enable_fast_install
+with_gnu_ld
+enable_libtool_lock
+enable_debug
+enable_nagging
+enable_aligncheck
+enable_gapless
+enable_fifo
+enable_ipv6
+enable_network
+enable_id3v2
+enable_string
+enable_icy
+enable_ntom
+enable_downsample
+enable_feeder
+enable_messages
+enable_int_quality
+enable_16bit
+enable_8bit
+enable_32bit
+enable_real
+with_cpu
+enable_buffer
+enable_layer1
+enable_layer2
+enable_layer3
+with_audio
+with_default_audio
+with_optimization
+with_seektable
+enable_largefile
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CCAS
+CCASFLAGS
+CPP
+PKG_CONFIG
+JACK_CFLAGS
+JACK_LIBS
+PULSE_CFLAGS
+PULSE_LIBS
+ESD_CFLAGS
+ESD_LIBS
+SDL_CFLAGS
+SDL_LIBS'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval $ac_prev=\$ac_option
+ ac_prev=
+ continue
+ fi
+
+ case $ac_option in
+ *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
+ { (exit 1); exit 1; }; }
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=no ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -enable-* | --enable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
+ { (exit 1); exit 1; }; }
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=\$ac_optarg ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
+ { (exit 1); exit 1; }; }
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=\$ac_optarg ;;
+
+ -without-* | --without-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
+ { (exit 1); exit 1; }; }
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
+Try \`$0 --help' for more information." >&2
+ { (exit 1); exit 1; }; }
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
+ { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
+ { (exit 1); exit 1; }; }
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ { $as_echo "$as_me: error: missing argument to $ac_option" >&2
+ { (exit 1); exit 1; }; }
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
+ { (exit 1); exit 1; }; } ;;
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+ esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir
+do
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+ { (exit 1); exit 1; }; }
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
+ If a cross compiler is detected then cross compile mode will be used." >&2
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ { $as_echo "$as_me: error: working directory cannot be determined" >&2
+ { (exit 1); exit 1; }; }
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
+ { (exit 1); exit 1; }; }
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_myself" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r "$srcdir/$ac_unique_file"; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+ { (exit 1); exit 1; }; }
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
+ { (exit 1); exit 1; }; }
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures mpg123 1.8.1 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root [DATAROOTDIR/doc/mpg123]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+
+Program names:
+ --program-prefix=PREFIX prepend PREFIX to installed program names
+ --program-suffix=SUFFIX append SUFFIX to installed program names
+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names
+
+System types:
+ --build=BUILD configure for building on BUILD [guessed]
+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
+ --target=TARGET configure for building compilers for TARGET [HOST]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of mpg123 1.8.1:";;
+ esac
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors
+ --enable-modules=no/yes dynamically loadable output modules
+ --enable-static[=PKGS] build static libraries [default=no]
+ --enable-shared[=PKGS] build shared libraries [default=yes]
+ --enable-fast-install[=PKGS]
+ optimize for fast installation [default=yes]
+ --disable-libtool-lock avoid locking (might break parallel builds)
+ --enable-debug=no/yes turn on debugging
+ --enable-nagging=no/yes turn on GCC's pedantic nagging with error on warnings, also enables debugging
+ --enable-aligncheck=no/yes turn on checks for stack alignment in the API if compiler supports alignment attributes, default is enabled
+ --enable-gapless=no/yes turn on gapless (enabled per default)
+ --enable-fifo=no/yes FIFO support for control interface (auto-enabled on linux)
+ --enable-ipv6=no/yes IPv6 support (actually any protocol your libc does with getaddrinfo)
+ --enable-network=no/yes network support (http streams / webradio)
+ --disable-id3v2=no/yes no ID3v2 parsing
+ --disable-string=no/yes no string API (this will disable ID3v2; main mpg123 won't build anymore)
+ --disable-icy=no/yes no ICY metainfo parsing/conversion (main mpg123 won't build!)
+ --disable-ntom=no/yes no flexible resampling
+ --disable-downsample=no/yes no downsampled decoding
+ --disable-feeder=no/yes no feeder decoding, no buffered readers
+ --disable-messages=no/yes no error/warning messages on the console
+ --enable-int-quality=yes/no use rounding instead of fast truncation for integer output, where possible
+ --disable-16bit=no/yes no 16 bit integer output
+ --disable-8bit=no/yes no 8 bit integer output
+ --disable-32bit=no/yes no 32 bit integer output
+ --disable-real=no/yes no real (floating point) output
+ --enable-buffer=yes/no disable audio buffer code (default uses system whitelist... proper checks later)
+ --disable-layer1=no/yes no layer I decoding
+ --disable-layer2=no/yes no layer II decoding
+ --disable-layer3=no/yes no layer III decoding
+ --disable-largefile omit support for large files
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-pic try to use only PIC/non-PIC objects [default=use
+ both]
+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
+
+ --with-cpu=generic_fpu Use generic processor code with floating point arithmetic
+ --with-cpu=generic_float Plain alias to generic_fpu now... float output is a normal runtime option!
+ --with-cpu=generic_nofpu Use generic processor code with fixed point arithmetic (p.ex. ARM, experimental)
+ --with-cpu=generic_dither Use generic processor code with floating point arithmetic and dithering for 1to1 16bit decoding.
+ --with-cpu=i386_fpu Use code optimized for i386 processors with floating point arithmetic
+ --with-cpu=i386_nofpu Use code optimized for i386 processors with fixed point arithmetic (experimental)
+ --with-cpu=i486 Use code optimized for i486 processors (only usable alone!)
+ --with-cpu=i586 Use code optimized for i586 processors
+ --with-cpu=i586_dither Use code optimized for i586 processors with dithering (noise shaping), adds 256K to binary size
+ --with-cpu=3dnow Use code optimized for 3DNow processors
+ --with-cpu=3dnowext Use code optimized for 3DNowExt processors (K6-3+, Athlon)
+ --with-cpu=3dnowext_alone Really only 3DNowExt decoder, without 3DNow fallback for flexible rate
+ --with-cpu=mmx Use code optimized for MMX processors
+ --with-cpu=mmx_alone Really only MMX decoder, without i586 fallback for flexible rate
+ --with-cpu=sse Use code optimized for SSE processors
+ --with-cpu=sse_alone Really only SSE decoder, without i586 fallback for flexible rate
+ --with-cpu=x86 Pack all x86 opts into one binary (excluding i486 and dither)
+ --with-cpu=x86_dither Pack all x86 opts into one binary (excluding i486, including dither)
+ --with-cpu=x86-64 Use code optimized for x86-64 processors (AMD64 and Intel64)
+ --with-cpu=x86-64_dither x86-64 code together with generic dithering (runtime selection)
+ --with-cpu=altivec Use code optimized for Altivec processors (PowerPC G4 and G5)
+
+
+ --with-audio=<list of modules> Select a list (or only one) of audio output modules (comma or space separated list).
+
+
+ --with-default-audio=aix Use AIX as default audio output sub-system
+ --with-default-audio=alib Use Alib as default audio output sub-system (for HPUX)
+ --with-default-audio=alsa Use ALSA as default audio output sub-system
+ --with-default-audio=arts Use aRts as default audio output sub-system (KDE sound server)
+ --with-default-audio=dummy Use dummy as default audio (when no sound card is available)
+ --with-default-audio=esd Use ESoundD as default audio output sub-system
+ --with-default-audio=hp Use HP as default audio output sub-system
+ --with-default-audio=jack Use JACK as default low-latency audio server
+ --with-default-audio=coreaudio Use Mac OS X as default audio output sub-system (CoreAudio)
+ --with-default-audio=mint Use MinT as default audio output sub-system (Atari)
+ --with-default-audio=nas Use NAS as default audio output (Network Audio System)
+ --with-default-audio=os2 Use OS2 as default audio output sub-system
+ --with-default-audio=oss Use OSS as default audio output sub-system (/dev/dsp)
+ --with-default-audio=portaudio Use PortAudio as default audio output sub-system
+ --with-default-audio=pulse Use Pulse audio server as default audio output sub-system
+ --with-default-audio=sdl Use SDL as default audio output sub-system (Simple DirectMedia Layer)
+ --with-default-audio=sgi Use SGI as default audio output sub-system (IRIX)
+ --with-default-audio=sndio Use OpenBSD's sndio as default audio output sub-system
+ --with-default-audio=sun Use Sun as default audio output sub-system (/dev/audio)
+ --with-default-audio=win32 Use Win32 audio as default audio output sub-system
+
+
+ --with-optimization=0 No Optimization
+ --with-optimization=1 Limited Optimization (-O) (for gcc)
+ --with-optimization=2 Default Optimization (-O2 ...) (for gcc)
+ --with-optimization=3 More Optimize than default (-O3 ...) (for gcc)
+ --with-optimization=4 Optimize yet more (-O4 ...) (for gcc)
+
+
+ --with-seektable=<size> choose size of seek index table (0 disables it), default 1000
+
+
+Some influential environment variables:
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ CCAS assembler compiler command (defaults to CC)
+ CCASFLAGS assembler compiler flags (defaults to CFLAGS)
+ CPP C preprocessor
+ PKG_CONFIG path to pkg-config utility
+ JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
+ JACK_LIBS linker flags for JACK, overriding pkg-config
+ PULSE_CFLAGS
+ C compiler flags for PULSE, overriding pkg-config
+ PULSE_LIBS linker flags for PULSE, overriding pkg-config
+ ESD_CFLAGS C compiler flags for ESD, overriding pkg-config
+ ESD_LIBS linker flags for ESD, overriding pkg-config
+ SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
+ SDL_LIBS linker flags for SDL, overriding pkg-config
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <mpg123-devel@lists.sourceforge.net>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for guested configure.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+ elif test -f "$ac_srcdir/configure"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure" --help=recursive
+ else
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+mpg123 configure 1.8.1
+generated by GNU Autoconf 2.63
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+ exit
+fi
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by mpg123 $as_me 1.8.1, which was
+generated by GNU Autoconf 2.63. Invocation command line was
+
+ $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ $as_echo "PATH: $as_dir"
+done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *\'*)
+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
+ 2)
+ ac_configure_args1="$ac_configure_args1 '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ ac_must_keep_next=false # Got value, back to normal.
+ else
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+ esac
+ ;;
+ -* ) ac_must_keep_next=true ;;
+ esac
+ fi
+ ac_configure_args="$ac_configure_args '$ac_arg'"
+ ;;
+ esac
+ done
+done
+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+
+ cat <<\_ASBOX
+## ---------------- ##
+## Cache variables. ##
+## ---------------- ##
+_ASBOX
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) $as_unset $ac_var ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ cat <<\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ cat <<\_ASBOX
+## ------------------- ##
+## File substitutions. ##
+## ------------------- ##
+_ASBOX
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ $as_echo "$as_me: caught signal $ac_signal"
+ $as_echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
+if test -n "$CONFIG_SITE"; then
+ ac_site_file1=$CONFIG_SITE
+elif test "x$prefix" != xNONE; then
+ ac_site_file1=$prefix/share/config.site
+ ac_site_file2=$prefix/etc/config.site
+else
+ ac_site_file1=$ac_default_prefix/share/config.site
+ ac_site_file2=$ac_default_prefix/etc/config.site
+fi
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
+do
+ test "x$ac_site_file" = xNONE && continue
+ if test -r "$ac_site_file"; then
+ { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file"
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special
+ # files actually), so we avoid doing that.
+ if test -f "$cache_file"; then
+ { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
+$as_echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
+else
+ { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
+$as_echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
+ { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
+$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+LIBMPG123_VERSION=18:12:18
+
+
+
+ac_aux_dir=
+for ac_dir in build "$srcdir"/build; do
+ if test -f "$ac_dir/install-sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f "$ac_dir/install.sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f "$ac_dir/shtool"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
+$as_echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+ { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
+$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
+ { (exit 1); exit 1; }; }
+
+{ $as_echo "$as_me:$LINENO: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if test "${ac_cv_build+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+ { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
+$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
+ { (exit 1); exit 1; }; }
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+ { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
+$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
+$as_echo "$as_me: error: invalid value of canonical build" >&2;}
+ { (exit 1); exit 1; }; };;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:$LINENO: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if test "${ac_cv_host+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+ { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
+$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
+$as_echo "$as_me: error: invalid value of canonical host" >&2;}
+ { (exit 1); exit 1; }; };;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:$LINENO: checking target system type" >&5
+$as_echo_n "checking target system type... " >&6; }
+if test "${ac_cv_target+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$target_alias" = x; then
+ ac_cv_target=$ac_cv_host
+else
+ ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
+ { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
+$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
+$as_echo "$ac_cv_target" >&6; }
+case $ac_cv_target in
+*-*-*) ;;
+*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
+$as_echo "$as_me: error: invalid value of canonical target" >&2;}
+ { (exit 1); exit 1; }; };;
+esac
+target=$ac_cv_target
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_target
+shift
+target_cpu=$1
+target_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+target_os=$*
+IFS=$ac_save_IFS
+case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
+
+
+# The aliases save the names the user supplied, while $host etc.
+# will get canonicalized.
+test -n "$target_alias" &&
+ test "$program_prefix$program_suffix$program_transform_name" = \
+ NONENONEs,x,x, &&
+ program_prefix=${target_alias}-
+
+am__api_version='1.10'
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+ ./ | .// | /cC/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
+$as_echo_n "checking whether build environment is sane... " >&6; }
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
+ if test "$*" = "X"; then
+ # -L didn't work.
+ set X `ls -t $srcdir/configure conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$*" != "X $srcdir/configure conftest.file" \
+ && test "$*" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
+alias in your environment" >&5
+$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
+alias in your environment" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+
+ test "$2" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
+Check your system clock" >&5
+$as_echo "$as_me: error: newly created file is older than distributed files!
+Check your system clock" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+{ $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+test "$program_prefix" != NONE &&
+ program_transform_name="s&^&$program_prefix&;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+ program_transform_name="s&\$&$program_suffix&;$program_transform_name"
+# Double any \ or $.
+# By default was `s,x,x', remove it if useless.
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
+
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+
+test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
+$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
+$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir (GNU coreutils) '* | \
+ 'mkdir (coreutils) '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+done
+IFS=$as_save_IFS
+
+fi
+
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ test -d ./--version && rmdir ./--version
+ MKDIR_P="$ac_install_sh -d"
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
+$as_echo "$MKDIR_P" >&6; }
+
+mkdir_p="$MKDIR_P"
+case $mkdir_p in
+ [\\/$]* | ?:[\\/]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+
+for ac_prog in gawk mawk nawk awk
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_AWK+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AWK"; then
+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AWK="$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+ { $as_echo "$as_me:$LINENO: result: $AWK" >&5
+$as_echo "$AWK" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$AWK" && break
+done
+
+{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ SET_MAKE=
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ am__isrc=' -I$(srcdir)'
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
+$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+
+
+# Define the identity of the package.
+ PACKAGE='mpg123'
+ VERSION='1.8.1'
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define VERSION "$VERSION"
+_ACEOF
+
+# Some tools Automake needs.
+
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
+
+
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
+
+
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
+
+
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
+
+
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
+
+install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
+
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+if test "$cross_compiling" != no; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_STRIP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+# Always define AMTAR for backward compatibility.
+
+AMTAR=${AMTAR-"${am_missing_run}tar"}
+
+am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
+
+
+
+
+
+ac_config_headers="$ac_config_headers src/config.h"
+
+
+
+# You get strange symptoms like jack module build failing because the AC_C_CONST failed to detect the working const support.
+# In that case, the test failed because -Werror, not because no const there...
+# After looking again, there are possibly more tests being obscured by false failures.
+{ $as_echo "$as_me:$LINENO: checking for -Werror in CFLAGS (It breaks tests)" >&5
+$as_echo_n "checking for -Werror in CFLAGS (It breaks tests)... " >&6; }
+if echo "$CFLAGS" | grep Werror; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ { { $as_echo "$as_me:$LINENO: error: I refuse to run with -Werror in CFLAGS. That breaks tests and makes this configure bogus.
+If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
+Also note that you shall not run make distcheck after configuring with --enable-nagging.
+distcheck uses the generated CFLAGS..." >&5
+$as_echo "$as_me: error: I refuse to run with -Werror in CFLAGS. That breaks tests and makes this configure bogus.
+If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
+Also note that you shall not run make distcheck after configuring with --enable-nagging.
+distcheck uses the generated CFLAGS..." >&2;}
+ { (exit 1); exit 1; }; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+buffer=enabled # try to build with buffer by default
+
+
+LT_LDFLAGS=-export-dynamic
+be_static=no
+all_static=no
+{ $as_echo "$as_me:$LINENO: checking if you are up to something totally static with LDFLAGS/CFLAGS" >&5
+$as_echo_n "checking if you are up to something totally static with LDFLAGS/CFLAGS... " >&6; }
+for f in $LDFLAGS $CFLAGS
+do
+ case "$f" in
+ -all-static)
+ be_static=yes
+ all_static=yes
+ ;;
+ -static)
+ be_static=yes
+ ;;
+ esac
+done
+if test "x$be_static" = xyes; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ LT_LDFLAGS=-all-static
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+if test "x$all_static" = xyes; then
+ { $as_echo "$as_me:$LINENO: WARNING: Use -static in LDFLAGS for all-static linking! Your compiler may blow up on that -all-static. " >&5
+$as_echo "$as_me: WARNING: Use -static in LDFLAGS for all-static linking! Your compiler may blow up on that -all-static. " >&2;}
+fi
+
+DEPDIR="${am__leading_dot}deps"
+
+ac_config_commands="$ac_config_commands depfiles"
+
+
+am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo done
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
+$as_echo_n "checking for style of include used by $am_make... " >&6; }
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# We grep out `Entering directory' and `Leaving directory'
+# messages which can occur if `w' ends up in MAKEFLAGS.
+# In particular we don't look at `^make:' because GNU make might
+# be invoked under some other name (usually "gmake"), in which
+# case it prints its new name instead of `make'.
+if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
+ am__include=include
+ am__quote=
+ _am_result=GNU
+fi
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ fi
+fi
+
+
+{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
+$as_echo "$_am_result" >&6; }
+rm -f confinc confmf
+
+# Check whether --enable-dependency-tracking was given.
+if test "${enable_dependency_tracking+set}" = set; then
+ enableval=$enable_dependency_tracking;
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+fi
+ if test "x$enable_dependency_tracking" != xno; then
+ AMDEP_TRUE=
+ AMDEP_FALSE='#'
+else
+ AMDEP_TRUE='#'
+ AMDEP_FALSE=
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl.exe
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl.exe
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+fi
+
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+{ (ac_try="$ac_compiler --version >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compiler --version >&5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -v >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compiler -v >&5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -V >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compiler -V >&5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
+$as_echo_n "checking for C compiler default output file name... " >&6; }
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
+
+if { (ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link_default") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile. We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
+ then :; else
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ fi
+ # We set ac_cv_exeext here because the later test for it is not
+ # safe: cross compilers may not add the suffix if given an `-o'
+ # argument, so we may need to know it at that point already.
+ # Even if this section looks crufty: it has the advantage of
+ # actually working.
+ break;;
+ * )
+ break;;
+ esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else
+ ac_file=''
+fi
+
+{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
+if test -z "$ac_file"; then
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: C compiler cannot create executables
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+fi
+
+ac_exeext=$ac_cv_exeext
+
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
+$as_echo_n "checking whether the C compiler works... " >&6; }
+# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
+# If not cross compiling, check that we can run a simple program.
+if test "$cross_compiling" != yes; then
+ if { ac_try='./$ac_file'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+ fi
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
+$as_echo_n "checking for suffix of executables... " >&6; }
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ break;;
+ * ) break;;
+ esac
+done
+else
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+fi
+
+rm -f conftest$ac_cv_exeext
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
+$as_echo "$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
+$as_echo_n "checking for suffix of object files... " >&6; }
+if test "${ac_cv_objext+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ for ac_file in conftest.o conftest.obj conftest.*; do
+ test -f "$ac_file" || continue;
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+fi
+
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
+$as_echo "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_compiler_gnu=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_compiler_gnu=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
+else
+ GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if test "${ac_cv_prog_cc_g+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_g=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ CFLAGS=""
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_g=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if test "${ac_cv_prog_cc_c89+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
+ array size at least. It's necessary to write '\x00'==0 to get something
+ that's true only with -std. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_c89=$ac_arg
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+ x)
+ { $as_echo "$as_me:$LINENO: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:$LINENO: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c89"
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+depcc="$CC" am_compiler_list=
+
+{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CC_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ case $depmode in
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ none) break ;;
+ esac
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this.
+ if depmode=$depmode \
+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_CC_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+ am__fastdepCC_TRUE=
+ am__fastdepCC_FALSE='#'
+else
+ am__fastdepCC_TRUE='#'
+ am__fastdepCC_FALSE=
+fi
+
+
+# By default we simply use the C compiler to build assembly code.
+
+test "${CCAS+set}" = set || CCAS=$CC
+test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
+
+
+
+depcc="$CCAS" am_compiler_list=
+
+{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CCAS_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ case $depmode in
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ none) break ;;
+ esac
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this.
+ if depmode=$depmode \
+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_CCAS_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_CCAS_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
+CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
+
+ if
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
+ am__fastdepCCAS_TRUE=
+ am__fastdepCCAS_FALSE='#'
+else
+ am__fastdepCCAS_TRUE='#'
+ am__fastdepCCAS_FALSE=
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl.exe
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:$LINENO: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl.exe
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+fi
+
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+{ (ac_try="$ac_compiler --version >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compiler --version >&5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -v >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compiler -v >&5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+{ (ac_try="$ac_compiler -V >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compiler -V >&5") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+
+{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if test "${ac_cv_c_compiler_gnu+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_compiler_gnu=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_compiler_gnu=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
+else
+ GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if test "${ac_cv_prog_cc_g+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_g=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ CFLAGS=""
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_g=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if test "${ac_cv_prog_cc_c89+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
+ array size at least. It's necessary to write '\x00'==0 to get something
+ that's true only with -std. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_prog_cc_c89=$ac_arg
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+ x)
+ { $as_echo "$as_me:$LINENO: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:$LINENO: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c89"
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+depcc="$CC" am_compiler_list=
+
+{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CC_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ case $depmode in
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ none) break ;;
+ esac
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this.
+ if depmode=$depmode \
+ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_CC_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+ am__fastdepCC_TRUE=
+ am__fastdepCC_FALSE='#'
+else
+ am__fastdepCC_TRUE='#'
+ am__fastdepCC_FALSE=
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
+$as_echo_n "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if test "${ac_cv_prog_CPP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ # Double quotes because CPP needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ # Broken: success on invalid input.
+continue
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
+$as_echo "$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Broken: fails on valid input.
+continue
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ # Broken: success on invalid input.
+continue
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+
+rm -f conftest.err conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then
+ :
+else
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details." >&2;}
+ { (exit 1); exit 1; }; }; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in
+ ./ | .// | /cC/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
+if test "${ac_cv_path_GREP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$GREP"; then
+ ac_path_GREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in grep ggrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'GREP' >> "conftest.nl"
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ ac_count=`expr $ac_count + 1`
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_GREP="$ac_path_GREP"
+ ac_path_GREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_GREP_found && break 3
+ done
+ done
+done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_GREP"; then
+ { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
+$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+else
+ ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
+$as_echo "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
+$as_echo_n "checking for egrep... " >&6; }
+if test "${ac_cv_path_EGREP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ ac_path_EGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in egrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ ac_count=`expr $ac_count + 1`
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_EGREP_found && break 3
+ done
+ done
+done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_EGREP"; then
+ { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
+$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
+$as_echo "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+
+{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
+$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
+if test "${ac_cv_c_const+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+/* FIXME: Include the comments suggested by Paul. */
+#ifndef __cplusplus
+ /* Ultrix mips cc rejects this. */
+ typedef int charset[2];
+ const charset cs;
+ /* SunOS 4.1.1 cc rejects this. */
+ char const *const *pcpcc;
+ char **ppc;
+ /* NEC SVR4.0.2 mips cc rejects this. */
+ struct point {int x, y;};
+ static struct point const zero = {0,0};
+ /* AIX XL C 1.02.0.0 rejects this.
+ It does not let you subtract one const X* pointer from another in
+ an arm of an if-expression whose if-part is not a constant
+ expression */
+ const char *g = "string";
+ pcpcc = &g + (g ? g-g : 0);
+ /* HPUX 7.0 cc rejects these. */
+ ++pcpcc;
+ ppc = (char**) pcpcc;
+ pcpcc = (char const *const *) ppc;
+ { /* SCO 3.2v4 cc rejects this. */
+ char *t;
+ char const *s = 0 ? (char *) 0 : (char const *) 0;
+
+ *t++ = 0;
+ if (s) return 0;
+ }
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
+ int x[] = {25, 17};
+ const int *foo = &x[0];
+ ++foo;
+ }
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+ typedef const int *iptr;
+ iptr p = 0;
+ ++p;
+ }
+ { /* AIX XL C 1.02.0.0 rejects this saying
+ "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+ struct s { int j; const int *ap[3]; };
+ struct s *b; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+ const int foo = 10;
+ if (!foo) return 0;
+ }
+ return !cs[0] && !zero.x;
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_c_const=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_c_const=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
+$as_echo "$ac_cv_c_const" >&6; }
+if test $ac_cv_c_const = no; then
+
+cat >>confdefs.h <<\_ACEOF
+#define const /**/
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for inline" >&5
+$as_echo_n "checking for inline... " >&6; }
+if test "${ac_cv_c_inline+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_c_inline=no
+for ac_kw in inline __inline__ __inline; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#ifndef __cplusplus
+typedef int foo_t;
+static $ac_kw foo_t static_foo () {return 0; }
+$ac_kw foo_t foo () {return 0; }
+#endif
+
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_c_inline=$ac_kw
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ test "$ac_cv_c_inline" != no && break
+done
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
+$as_echo "$ac_cv_c_inline" >&6; }
+
+
+case $ac_cv_c_inline in
+ inline | yes) ;;
+ *)
+ case $ac_cv_c_inline in
+ no) ac_val=;;
+ *) ac_val=$ac_cv_c_inline;;
+ esac
+ cat >>confdefs.h <<_ACEOF
+#ifndef __cplusplus
+#define inline $ac_val
+#endif
+_ACEOF
+ ;;
+esac
+
+
+
+
+modules=auto
+OUTPUT_OBJ="module.\$(OBJEXT)"
+# Check whether --enable-modules was given.
+if test "${enable_modules+set}" = set; then
+ enableval=$enable_modules;
+ if test "x$enableval" = xyes
+ then
+ modules=enabled
+ else
+ modules=disabled
+ fi
+
+else
+
+ if test "x$be_static" = "xyes"; then
+ modules=disabled
+ else
+ modules=auto
+ fi
+
+fi
+
+
+# Check whether --enable-static was given.
+if test "${enable_static+set}" = set; then
+ enableval=$enable_static; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_static=yes ;;
+ no) enable_static=no ;;
+ *)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_static=no
+fi
+
+
+
+
+
+
+
+
+
+# Check whether --enable-shared was given.
+if test "${enable_shared+set}" = set; then
+ enableval=$enable_shared; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_shared=yes ;;
+ no) enable_shared=no ;;
+ *)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_shared=yes
+fi
+
+
+
+
+
+
+
+
+
+
+if test x"$enable_shared" = xno; then
+ modules=disabled
+ LT_LDFLAGS=
+else
+
+cat >>confdefs.h <<\_ACEOF
+#define DYNAMIC_BUILD 1
+_ACEOF
+
+fi
+
+if test x"$modules" = xdisabled
+then
+ echo "Modules disabled, not checking for libltdl."
+else
+ have_ltdl=no
+
+{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if test "${ac_cv_header_stdc+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_header_stdc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_header_stdc=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then
+ :
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ return 2;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define STDC_HEADERS 1
+_ACEOF
+
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+
+
+
+
+
+
+
+
+
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+ inttypes.h stdint.h unistd.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ eval "$as_ac_Header=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Header=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+{ $as_echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
+$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
+if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lltdl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char lt_dlinit ();
+int
+main ()
+{
+return lt_dlinit ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_ltdl_lt_dlinit=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_ltdl_lt_dlinit=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
+$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
+if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then
+ if test "${ac_cv_header_ltdl_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
+$as_echo_n "checking for ltdl.h... " >&6; }
+if test "${ac_cv_header_ltdl_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
+$as_echo "$ac_cv_header_ltdl_h" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking ltdl.h usability" >&5
+$as_echo_n "checking ltdl.h usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <ltdl.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking ltdl.h presence" >&5
+$as_echo_n "checking ltdl.h presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ltdl.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: ltdl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: ltdl.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: ltdl.h: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: ltdl.h: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: ltdl.h: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: ltdl.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: ltdl.h: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: ltdl.h: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: ltdl.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
+$as_echo_n "checking for ltdl.h... " >&6; }
+if test "${ac_cv_header_ltdl_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_header_ltdl_h=$ac_header_preproc
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
+$as_echo "$ac_cv_header_ltdl_h" >&6; }
+
+fi
+if test "x$ac_cv_header_ltdl_h" = x""yes; then
+
+ have_ltdl=yes
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_LTDL 1
+_ACEOF
+
+
+else
+
+ { $as_echo "$as_me:$LINENO: WARNING: Found ltdl library but NOT the header file on your system" >&5
+$as_echo "$as_me: WARNING: Found ltdl library but NOT the header file on your system" >&2;}
+
+fi
+
+
+
+else
+
+ { $as_echo "$as_me:$LINENO: WARNING: ltdl library not found" >&5
+$as_echo "$as_me: WARNING: ltdl library not found" >&2;}
+
+
+fi
+
+ if test x"$modules" = xenabled -a x"$have_ltdl" = xno; then
+ { { $as_echo "$as_me:$LINENO: error: Modules enabled but no libltdl found! This will not work..." >&5
+$as_echo "$as_me: error: Modules enabled but no libltdl found! This will not work..." >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ if test x"$modules" = xauto; then
+ if test x"$have_ltdl" = xyes; then
+ modules=enabled
+ echo "We found libltdl: Modules enabled."
+ else
+ echo "We did not find libltdl: Modules disabled."
+ modules=disabled
+ fi
+ fi
+fi
+
+if test x"$modules" = xdisabled
+then
+ echo "Modules disabled."
+else
+# Enable module support in source code
+
+cat >>confdefs.h <<\_ACEOF
+#define USE_MODULES 1
+_ACEOF
+
+fi
+
+
+enable_win32_dll=yes
+
+case $host in
+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
+set dummy ${ac_tool_prefix}as; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_AS+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AS"; then
+ ac_cv_prog_AS="$AS" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AS="${ac_tool_prefix}as"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+AS=$ac_cv_prog_AS
+if test -n "$AS"; then
+ { $as_echo "$as_me:$LINENO: result: $AS" >&5
+$as_echo "$AS" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_AS"; then
+ ac_ct_AS=$AS
+ # Extract the first word of "as", so it can be a program name with args.
+set dummy as; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_AS"; then
+ ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_AS="as"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AS=$ac_cv_prog_ac_ct_AS
+if test -n "$ac_ct_AS"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
+$as_echo "$ac_ct_AS" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_AS" = x; then
+ AS="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AS=$ac_ct_AS
+ fi
+else
+ AS="$ac_cv_prog_AS"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_DLLTOOL+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$DLLTOOL"; then
+ ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+DLLTOOL=$ac_cv_prog_DLLTOOL
+if test -n "$DLLTOOL"; then
+ { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
+$as_echo "$DLLTOOL" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_DLLTOOL"; then
+ ac_ct_DLLTOOL=$DLLTOOL
+ # Extract the first word of "dlltool", so it can be a program name with args.
+set dummy dlltool; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_DLLTOOL"; then
+ ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_DLLTOOL="dlltool"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
+if test -n "$ac_ct_DLLTOOL"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
+$as_echo "$ac_ct_DLLTOOL" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_DLLTOOL" = x; then
+ DLLTOOL="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DLLTOOL=$ac_ct_DLLTOOL
+ fi
+else
+ DLLTOOL="$ac_cv_prog_DLLTOOL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
+set dummy ${ac_tool_prefix}objdump; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_OBJDUMP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OBJDUMP"; then
+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+OBJDUMP=$ac_cv_prog_OBJDUMP
+if test -n "$OBJDUMP"; then
+ { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
+$as_echo "$OBJDUMP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OBJDUMP"; then
+ ac_ct_OBJDUMP=$OBJDUMP
+ # Extract the first word of "objdump", so it can be a program name with args.
+set dummy objdump; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OBJDUMP"; then
+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
+if test -n "$ac_ct_OBJDUMP"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
+$as_echo "$ac_ct_OBJDUMP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OBJDUMP" = x; then
+ OBJDUMP="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OBJDUMP=$ac_ct_OBJDUMP
+ fi
+else
+ OBJDUMP="$ac_cv_prog_OBJDUMP"
+fi
+
+ ;;
+esac
+
+test -z "$AS" && AS=as
+
+
+
+
+
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+
+
+
+
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+
+
+
+
+
+
+
+case `pwd` in
+ *\ * | *\ *)
+ { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
+$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
+esac
+
+
+
+macro_version='2.2.6'
+macro_revision='1.3012'
+
+
+
+
+
+
+
+
+
+
+
+
+
+ltmain="$ac_aux_dir/ltmain.sh"
+
+{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
+$as_echo_n "checking for a sed that does not truncate output... " >&6; }
+if test "${ac_cv_path_SED+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
+ for ac_i in 1 2 3 4 5 6 7; do
+ ac_script="$ac_script$as_nl$ac_script"
+ done
+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
+ $as_unset ac_script || ac_script=
+ if test -z "$SED"; then
+ ac_path_SED_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
+# Check for GNU ac_path_SED and select it if it is found.
+ # Check for GNU $ac_path_SED
+case `"$ac_path_SED" --version 2>&1` in
+*GNU*)
+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo '' >> "conftest.nl"
+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ ac_count=`expr $ac_count + 1`
+ if test $ac_count -gt ${ac_path_SED_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_SED="$ac_path_SED"
+ ac_path_SED_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_SED_found && break 3
+ done
+ done
+done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_SED"; then
+ { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
+$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+else
+ ac_cv_path_SED=$SED
+fi
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
+$as_echo "$ac_cv_path_SED" >&6; }
+ SED="$ac_cv_path_SED"
+ rm -f conftest.sed
+
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
+$as_echo_n "checking for fgrep... " >&6; }
+if test "${ac_cv_path_FGREP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
+ then ac_cv_path_FGREP="$GREP -F"
+ else
+ if test -z "$FGREP"; then
+ ac_path_FGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in fgrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
+# Check for GNU ac_path_FGREP and select it if it is found.
+ # Check for GNU $ac_path_FGREP
+case `"$ac_path_FGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'FGREP' >> "conftest.nl"
+ "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ ac_count=`expr $ac_count + 1`
+ if test $ac_count -gt ${ac_path_FGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_FGREP="$ac_path_FGREP"
+ ac_path_FGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_FGREP_found && break 3
+ done
+ done
+done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_FGREP"; then
+ { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
+$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+else
+ ac_cv_path_FGREP=$FGREP
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
+$as_echo "$ac_cv_path_FGREP" >&6; }
+ FGREP="$ac_cv_path_FGREP"
+
+
+test -z "$GREP" && GREP=grep
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then
+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
+else
+ with_gnu_ld=no
+fi
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
+$as_echo_n "checking for ld used by $CC... " >&6; }
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [\\/]* | ?:[\\/]*)
+ re_direlt='/[^/][^/]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
+$as_echo_n "checking for GNU ld... " >&6; }
+else
+ { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
+$as_echo_n "checking for non-GNU ld... " >&6; }
+fi
+if test "${lt_cv_path_LD+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
+
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ { $as_echo "$as_me:$LINENO: result: $LD" >&5
+$as_echo "$LD" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
+$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
+ { (exit 1); exit 1; }; }
+{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
+if test "${lt_cv_prog_gnu_ld+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ # I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
+$as_echo "$lt_cv_prog_gnu_ld" >&6; }
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
+$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
+if test "${lt_cv_path_NM+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ lt_nm_to_check="${ac_tool_prefix}nm"
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm="$ac_dir/$lt_tmp_nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+ done
+ : ${lt_cv_path_NM=no}
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
+$as_echo "$lt_cv_path_NM" >&6; }
+if test "$lt_cv_path_NM" != "no"; then
+ NM="$lt_cv_path_NM"
+else
+ # Didn't find any BSD compatible name lister, look for dumpbin.
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in "dumpbin -symbols" "link -dump -symbols"
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_DUMPBIN+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$DUMPBIN"; then
+ ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+DUMPBIN=$ac_cv_prog_DUMPBIN
+if test -n "$DUMPBIN"; then
+ { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
+$as_echo "$DUMPBIN" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$DUMPBIN" && break
+ done
+fi
+if test -z "$DUMPBIN"; then
+ ac_ct_DUMPBIN=$DUMPBIN
+ for ac_prog in "dumpbin -symbols" "link -dump -symbols"
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_DUMPBIN"; then
+ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
+if test -n "$ac_ct_DUMPBIN"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
+$as_echo "$ac_ct_DUMPBIN" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_DUMPBIN" && break
+done
+
+ if test "x$ac_ct_DUMPBIN" = x; then
+ DUMPBIN=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DUMPBIN=$ac_ct_DUMPBIN
+ fi
+fi
+
+
+ if test "$DUMPBIN" != ":"; then
+ NM="$DUMPBIN"
+ fi
+fi
+test -z "$NM" && NM=nm
+
+
+
+
+
+
+{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
+$as_echo_n "checking the name lister ($NM) interface... " >&6; }
+if test "${lt_cv_nm_interface+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_nm_interface="BSD nm"
+ echo "int some_variable = 0;" > conftest.$ac_ext
+ (eval echo "\"\$as_me:7015: $ac_compile\"" >&5)
+ (eval "$ac_compile" 2>conftest.err)
+ cat conftest.err >&5
+ (eval echo "\"\$as_me:7018: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+ cat conftest.err >&5
+ (eval echo "\"\$as_me:7021: output\"" >&5)
+ cat conftest.out >&5
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+ lt_cv_nm_interface="MS dumpbin"
+ fi
+ rm -f conftest*
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
+$as_echo "$lt_cv_nm_interface" >&6; }
+
+{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
+$as_echo_n "checking whether ln -s works... " >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
+$as_echo "no, using $LN_S" >&6; }
+fi
+
+# find the maximum length of command line arguments
+{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
+$as_echo_n "checking the maximum length of command line arguments... " >&6; }
+if test "${lt_cv_sys_max_cmd_len+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw* | cegcc*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ # Make teststring a little bigger before we do anything with it.
+ # a 1K string should be a reasonable start.
+ for i in 1 2 3 4 5 6 7 8 ; do
+ teststring=$teststring$teststring
+ done
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ # If test is not a shell built-in, we'll probably end up computing a
+ # maximum length that is only half of the actual maximum length, but
+ # we can't tell.
+ while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
+ = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ # Only check the string length outside the loop.
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on
+ # massive amounts of additional arguments before passing them to the
+ # linker. It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ fi
+ ;;
+ esac
+
+fi
+
+if test -n $lt_cv_sys_max_cmd_len ; then
+ { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
+$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: none" >&5
+$as_echo "none" >&6; }
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+
+
+
+
+
+: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+
+{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
+$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
+# Try some XSI features
+xsi_shell=no
+( _lt_dummy="a/b/c"
+ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
+ = c,a/b,, \
+ && eval 'test $(( 1 + 1 )) -eq 2 \
+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
+ && xsi_shell=yes
+{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
+$as_echo "$xsi_shell" >&6; }
+
+
+{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
+$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
+lt_shell_append=no
+( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
+ >/dev/null 2>&1 \
+ && lt_shell_append=yes
+{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
+$as_echo "$lt_shell_append" >&6; }
+
+
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ lt_unset=unset
+else
+ lt_unset=false
+fi
+
+
+
+
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ lt_SP2NL='tr \040 \012'
+ lt_NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ lt_SP2NL='tr \100 \n'
+ lt_NL2SP='tr \r\n \100\100'
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
+$as_echo_n "checking for $LD option to reload object files... " >&6; }
+if test "${lt_cv_ld_reload_flag+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_reload_flag='-r'
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
+$as_echo "$lt_cv_ld_reload_flag" >&6; }
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
+set dummy ${ac_tool_prefix}objdump; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_OBJDUMP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OBJDUMP"; then
+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+OBJDUMP=$ac_cv_prog_OBJDUMP
+if test -n "$OBJDUMP"; then
+ { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
+$as_echo "$OBJDUMP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OBJDUMP"; then
+ ac_ct_OBJDUMP=$OBJDUMP
+ # Extract the first word of "objdump", so it can be a program name with args.
+set dummy objdump; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OBJDUMP"; then
+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
+if test -n "$ac_ct_OBJDUMP"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
+$as_echo "$ac_ct_OBJDUMP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OBJDUMP" = x; then
+ OBJDUMP="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OBJDUMP=$ac_ct_OBJDUMP
+ fi
+else
+ OBJDUMP="$ac_cv_prog_OBJDUMP"
+fi
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+
+
+
+
+
+
+{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
+$as_echo_n "checking how to recognize dependent libraries... " >&6; }
+if test "${lt_cv_deplibs_check_method+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[4-9]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+bsdi[45]*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
+
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+cegcc)
+ # use the weaker test based on 'objdump'. See mingw*.
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ case $host_cpu in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+ esac
+ ;;
+
+interix[3-9]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+*nto* | *qnx*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+ fi
+ ;;
+
+osf3* | osf4* | osf5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+tpf*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
+$as_echo "$lt_cv_deplibs_check_method" >&6; }
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+
+
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ar; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_AR+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AR"; then
+ ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AR="${ac_tool_prefix}ar"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+ { $as_echo "$as_me:$LINENO: result: $AR" >&5
+$as_echo "$AR" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_AR"; then
+ ac_ct_AR=$AR
+ # Extract the first word of "ar", so it can be a program name with args.
+set dummy ar; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_AR"; then
+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_AR="ar"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
+$as_echo "$ac_ct_AR" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_AR" = x; then
+ AR="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AR=$ac_ct_AR
+ fi
+else
+ AR="$ac_cv_prog_AR"
+fi
+
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+
+
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_STRIP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+test -z "$STRIP" && STRIP=:
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_RANLIB+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+ { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
+$as_echo "$RANLIB" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+ ac_ct_RANLIB=$RANLIB
+ # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_RANLIB"; then
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
+$as_echo "$ac_ct_RANLIB" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_RANLIB" = x; then
+ RANLIB=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ RANLIB=$ac_ct_RANLIB
+ fi
+else
+ RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+test -z "$RANLIB" && RANLIB=:
+
+
+
+
+
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
+$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
+if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[BCDEGRST]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[BCDT]'
+ ;;
+cygwin* | mingw* | pw32* | cegcc*)
+ symcode='[ABCDGISTW]'
+ ;;
+hpux*)
+ if test "$host_cpu" = ia64; then
+ symcode='[ABCDEGRST]'
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[BCDEGRST]'
+ ;;
+osf*)
+ symcode='[BCDEGQRST]'
+ ;;
+solaris*)
+ symcode='[BDRT]'
+ ;;
+sco3.2v5*)
+ symcode='[DT]'
+ ;;
+sysv4.2uw2*)
+ symcode='[DT]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[ABDT]'
+ ;;
+sysv4)
+ symcode='[DFNSTU]'
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[ABCDGIRSTW]' ;;
+esac
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ # Fake it for dumpbin and say T for any non-static function
+ # and D for any global variable.
+ # Also find C++ and __fastcall symbols from MSVC++,
+ # which start with @ or ?.
+ lt_cv_sys_global_symbol_pipe="$AWK '"\
+" {last_section=section; section=\$ 3};"\
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+" \$ 0!~/External *\|/{next};"\
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+" {if(hide[section]) next};"\
+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
+" ' prfx=^$ac_symprfx"
+ else
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+ fi
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
+ (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
+ fi
+
+ # Make sure that we snagged all the symbols we need.
+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<_LT_EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+ cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols. */
+const struct {
+ const char *name;
+ void *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[] =
+{
+ { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+ cat <<\_LT_EOF >> conftest.$ac_ext
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_save_LIBS="$LIBS"
+ lt_save_CFLAGS="$CFLAGS"
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS="$lt_save_LIBS"
+ CFLAGS="$lt_save_CFLAGS"
+ else
+ echo "cannot find nm_test_func in $nlist" >&5
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&5
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
+ fi
+ else
+ echo "$progname: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+
+fi
+
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ { $as_echo "$as_me:$LINENO: result: failed" >&5
+$as_echo "failed" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: ok" >&5
+$as_echo "ok" >&6; }
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --enable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then
+ enableval=$enable_libtool_lock;
+fi
+
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '#line 8223 "configure"' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*|s390*-*tpf*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
+$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
+if test "${lt_cv_cc_needs_belf+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ lt_cv_cc_needs_belf=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ lt_cv_cc_needs_belf=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
+$as_echo "$lt_cv_cc_needs_belf" >&6; }
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+sparc*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+esac
+
+need_locks="$enable_libtool_lock"
+
+
+ case $host_os in
+ rhapsody* | darwin*)
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$DSYMUTIL"; then
+ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+DSYMUTIL=$ac_cv_prog_DSYMUTIL
+if test -n "$DSYMUTIL"; then
+ { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
+$as_echo "$DSYMUTIL" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_DSYMUTIL"; then
+ ac_ct_DSYMUTIL=$DSYMUTIL
+ # Extract the first word of "dsymutil", so it can be a program name with args.
+set dummy dsymutil; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_DSYMUTIL"; then
+ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
+if test -n "$ac_ct_DSYMUTIL"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
+$as_echo "$ac_ct_DSYMUTIL" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_DSYMUTIL" = x; then
+ DSYMUTIL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DSYMUTIL=$ac_ct_DSYMUTIL
+ fi
+else
+ DSYMUTIL="$ac_cv_prog_DSYMUTIL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
+set dummy ${ac_tool_prefix}nmedit; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_NMEDIT+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NMEDIT"; then
+ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+NMEDIT=$ac_cv_prog_NMEDIT
+if test -n "$NMEDIT"; then
+ { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
+$as_echo "$NMEDIT" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_NMEDIT"; then
+ ac_ct_NMEDIT=$NMEDIT
+ # Extract the first word of "nmedit", so it can be a program name with args.
+set dummy nmedit; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_NMEDIT"; then
+ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_NMEDIT="nmedit"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
+if test -n "$ac_ct_NMEDIT"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
+$as_echo "$ac_ct_NMEDIT" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_NMEDIT" = x; then
+ NMEDIT=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ NMEDIT=$ac_ct_NMEDIT
+ fi
+else
+ NMEDIT="$ac_cv_prog_NMEDIT"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
+set dummy ${ac_tool_prefix}lipo; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_LIPO+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$LIPO"; then
+ ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+LIPO=$ac_cv_prog_LIPO
+if test -n "$LIPO"; then
+ { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
+$as_echo "$LIPO" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_LIPO"; then
+ ac_ct_LIPO=$LIPO
+ # Extract the first word of "lipo", so it can be a program name with args.
+set dummy lipo; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_LIPO"; then
+ ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_LIPO="lipo"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
+if test -n "$ac_ct_LIPO"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
+$as_echo "$ac_ct_LIPO" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_LIPO" = x; then
+ LIPO=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ LIPO=$ac_ct_LIPO
+ fi
+else
+ LIPO="$ac_cv_prog_LIPO"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_OTOOL+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OTOOL"; then
+ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL=$ac_cv_prog_OTOOL
+if test -n "$OTOOL"; then
+ { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
+$as_echo "$OTOOL" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL"; then
+ ac_ct_OTOOL=$OTOOL
+ # Extract the first word of "otool", so it can be a program name with args.
+set dummy otool; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OTOOL"; then
+ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_OTOOL="otool"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
+if test -n "$ac_ct_OTOOL"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
+$as_echo "$ac_ct_OTOOL" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OTOOL" = x; then
+ OTOOL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OTOOL=$ac_ct_OTOOL
+ fi
+else
+ OTOOL="$ac_cv_prog_OTOOL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool64; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_OTOOL64+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OTOOL64"; then
+ ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL64=$ac_cv_prog_OTOOL64
+if test -n "$OTOOL64"; then
+ { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
+$as_echo "$OTOOL64" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL64"; then
+ ac_ct_OTOOL64=$OTOOL64
+ # Extract the first word of "otool64", so it can be a program name with args.
+set dummy otool64; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OTOOL64"; then
+ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_OTOOL64="otool64"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
+if test -n "$ac_ct_OTOOL64"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
+$as_echo "$ac_ct_OTOOL64" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OTOOL64" = x; then
+ OTOOL64=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OTOOL64=$ac_ct_OTOOL64
+ fi
+else
+ OTOOL64="$ac_cv_prog_OTOOL64"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
+$as_echo_n "checking for -single_module linker flag... " >&6; }
+if test "${lt_cv_apple_cc_single_mod+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_apple_cc_single_mod=no
+ if test -z "${LT_MULTI_MODULE}"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ rm -rf libconftest.dylib*
+ echo "int foo(void){return 1;}" > conftest.c
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&5
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+ _lt_result=$?
+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
+ lt_cv_apple_cc_single_mod=yes
+ else
+ cat conftest.err >&5
+ fi
+ rm -rf libconftest.dylib*
+ rm -f conftest.*
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
+$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
+ { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
+$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
+if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ lt_cv_ld_exported_symbols_list=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ lt_cv_ld_exported_symbols_list=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="$save_LDFLAGS"
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
+$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
+ case $host_os in
+ rhapsody* | darwin1.[012])
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ darwin*) # darwin 5.x on
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ 10.[012]*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+ else
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ fi
+ if test "$DSYMUTIL" != ":"; then
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+
+
+for ac_header in dlfcn.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ eval "$as_ac_Header=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_Header=no"
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+# Set options
+
+
+
+ enable_dlopen=no
+
+
+
+
+
+
+# Check whether --with-pic was given.
+if test "${with_pic+set}" = set; then
+ withval=$with_pic; pic_mode="$withval"
+else
+ pic_mode=default
+fi
+
+
+test -z "$pic_mode" && pic_mode=default
+
+
+
+
+
+
+
+ # Check whether --enable-fast-install was given.
+if test "${enable_fast_install+set}" = set; then
+ enableval=$enable_fast_install; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_fast_install=yes ;;
+ no) enable_fast_install=no ;;
+ *)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_fast_install=yes
+fi
+
+
+
+
+
+
+
+
+
+
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ltmain"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+test -z "$LN_S" && LN_S="ln -s"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
+$as_echo_n "checking for objdir... " >&6; }
+if test "${lt_cv_objdir+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
+$as_echo "$lt_cv_objdir" >&6; }
+objdir=$lt_cv_objdir
+
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define LT_OBJDIR "$lt_cv_objdir/"
+_ACEOF
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+for cc_temp in $compiler""; do
+ case $cc_temp in
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
+
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
+$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/${ac_tool_prefix}file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ { $as_echo "$as_me:$LINENO: checking for file" >&5
+$as_echo_n "checking for file... " >&6; }
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ else
+ MAGIC_CMD=:
+ fi
+fi
+
+ fi
+ ;;
+esac
+
+# Use C for the default configuration in the libtool script
+
+lt_save_CC="$CC"
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+objext=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+
+
+if test -n "$compiler"; then
+
+lt_prog_compiler_no_builtin_flag=
+
+if test "$GCC" = yes; then
+ lt_prog_compiler_no_builtin_flag=' -fno-builtin'
+
+ { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
+$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
+if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_rtti_exceptions=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="-fno-rtti -fno-exceptions"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:9526: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:9530: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_rtti_exceptions=yes
+ fi
+ fi
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
+$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
+
+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
+else
+ :
+fi
+
+fi
+
+
+
+
+
+
+ lt_prog_compiler_wl=
+lt_prog_compiler_pic=
+lt_prog_compiler_static=
+
+{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
+
+ if test "$GCC" = yes; then
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_static='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ lt_prog_compiler_pic='-fno-common'
+ ;;
+
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+ ;;
+
+ interix[3-9]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ lt_prog_compiler_can_build_shared=no
+ enable_shared=no
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic='-fPIC -shared'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic=-Kconform_pic
+ fi
+ ;;
+
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ lt_prog_compiler_wl='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ else
+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ lt_prog_compiler_wl='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ lt_prog_compiler_static='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ lt_prog_compiler_wl='-Wl,'
+ # PIC (with -KPIC) is the default.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ linux* | k*bsd*-gnu)
+ case $cc_basename in
+ # old Intel for x86_64 which still supported -KPIC.
+ ecc*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ # icc used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ icc* | ifort*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ # Lahey Fortran 8.1.
+ lf95*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='--shared'
+ lt_prog_compiler_static='--static'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fpic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ ccc*)
+ lt_prog_compiler_wl='-Wl,'
+ # All Alpha code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+ xl*)
+ # IBM XL C 8.0/Fortran 10.1 on PPC
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-qpic'
+ lt_prog_compiler_static='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ newsos6)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic='-fPIC -shared'
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ rdos*)
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ solaris*)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95*)
+ lt_prog_compiler_wl='-Qoption ld ';;
+ *)
+ lt_prog_compiler_wl='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ lt_prog_compiler_wl='-Qoption ld '
+ lt_prog_compiler_pic='-PIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ lt_prog_compiler_pic='-Kconform_pic'
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ unicos*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_can_build_shared=no
+ ;;
+
+ uts4*)
+ lt_prog_compiler_pic='-pic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ *)
+ lt_prog_compiler_can_build_shared=no
+ ;;
+ esac
+ fi
+
+case $host_os in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ lt_prog_compiler_pic=
+ ;;
+ *)
+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
+$as_echo "$lt_prog_compiler_pic" >&6; }
+
+
+
+
+
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic"; then
+ { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
+$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
+if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_pic_works=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:9865: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:9869: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_pic_works=yes
+ fi
+ fi
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
+$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
+
+if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
+ case $lt_prog_compiler_pic in
+ "" | " "*) ;;
+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
+ esac
+else
+ lt_prog_compiler_pic=
+ lt_prog_compiler_can_build_shared=no
+fi
+
+fi
+
+
+
+
+
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
+{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
+$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
+if test "${lt_cv_prog_compiler_static_works+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_static_works=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&5
+ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ else
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
+$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
+
+if test x"$lt_cv_prog_compiler_static_works" = xyes; then
+ :
+else
+ lt_prog_compiler_static=
+fi
+
+
+
+
+
+
+
+ { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if test "${lt_cv_prog_compiler_c_o+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_c_o=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:9970: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:9974: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+
+
+ { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if test "${lt_cv_prog_compiler_c_o+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_c_o=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:10025: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:10029: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+hard_links="nottested"
+if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
+$as_echo_n "checking if we can lock with hard links... " >&6; }
+ hard_links=yes
+ $RM conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
+$as_echo "$hard_links" >&6; }
+ if test "$hard_links" = no; then
+ { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
+$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+
+
+
+
+
+
+ { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+
+ runpath_var=
+ allow_undefined_flag=
+ always_export_symbols=no
+ archive_cmds=
+ archive_expsym_cmds=
+ compiler_needs_object=no
+ enable_shared_with_static_runtimes=no
+ export_dynamic_flag_spec=
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ hardcode_automatic=no
+ hardcode_direct=no
+ hardcode_direct_absolute=no
+ hardcode_libdir_flag_spec=
+ hardcode_libdir_flag_spec_ld=
+ hardcode_libdir_separator=
+ hardcode_minus_L=no
+ hardcode_shlibpath_var=unsupported
+ inherit_rpath=no
+ link_all_deplibs=unknown
+ module_cmds=
+ module_expsym_cmds=
+ old_archive_from_new_cmds=
+ old_archive_from_expsyms_cmds=
+ thread_safe_flag_spec=
+ whole_archive_flag_spec=
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ include_expsyms=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ # Exclude shared library initialization/finalization symbols.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ esac
+
+ ld_shlibs=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ export_dynamic_flag_spec='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ whole_archive_flag_spec=
+ fi
+ supports_anon_versioning=no
+ case `$LD -v 2>&1` in
+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[3-9]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+_LT_EOF
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds=''
+ ;;
+ m68k)
+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ ;;
+ esac
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ allow_undefined_flag=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec='-L$libdir'
+ allow_undefined_flag=unsupported
+ always_export_symbols=no
+ enable_shared_with_static_runtimes=yes
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ interix[3-9]*)
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | tpf* | k*bsd*-gnu)
+ tmp_diet=no
+ if test "$host_os" = linux-dietlibc; then
+ case $cc_basename in
+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
+ esac
+ fi
+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+ && test "$tmp_diet" = no
+ then
+ tmp_addflag=
+ tmp_sharedflag='-shared'
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ lf95*) # Lahey Fortran 8.1
+ whole_archive_flag_spec=
+ tmp_sharedflag='--shared' ;;
+ xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+ tmp_sharedflag='-qmkshrobj'
+ tmp_addflag= ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ compiler_needs_object=yes
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ esac
+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+ if test "x$supports_anon_versioning" = xyes; then
+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+
+ case $cc_basename in
+ xlf*)
+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
+ hardcode_libdir_flag_spec=
+ hardcode_libdir_flag_spec_ld='-rpath $libdir'
+ archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ esac
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ # For security reasons, it is highly recommended that you always
+ # use absolute paths for naming shared libraries, and exclude the
+ # DT_RUNPATH tag from executables and libraries. But doing so
+ # requires that you compile everything twice, which is a pain.
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+ ;;
+
+ sunos4*)
+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+
+ if test "$ld_shlibs" = no; then
+ runpath_var=
+ hardcode_libdir_flag_spec=
+ export_dynamic_flag_spec=
+ whole_archive_flag_spec=
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ allow_undefined_flag=unsupported
+ always_export_symbols=yes
+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ hardcode_minus_L=yes
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ hardcode_direct=unsupported
+ fi
+ ;;
+
+ aix[4-9]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ archive_cmds=''
+ hardcode_direct=yes
+ hardcode_direct_absolute=yes
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+ file_list_spec='${wl}-f,'
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[012]|aix4.[012].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ hardcode_direct=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ hardcode_minus_L=yes
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_libdir_separator=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ export_dynamic_flag_spec='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ always_export_symbols=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ allow_undefined_flag='-berok'
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+ allow_undefined_flag="-z nodefs"
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ no_undefined_flag=' ${wl}-bernotok'
+ allow_undefined_flag=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec='$convenience'
+ archive_cmds_need_lc=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds=''
+ ;;
+ m68k)
+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ ;;
+ esac
+ ;;
+
+ bsdi[45]*)
+ export_dynamic_flag_spec=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ hardcode_libdir_flag_spec=' '
+ allow_undefined_flag=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ old_archive_from_new_cmds='true'
+ # FIXME: Should let the user specify the lib program.
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
+ fix_srcfile_path='`cygpath -w "$srcfile"`'
+ enable_shared_with_static_runtimes=yes
+ ;;
+
+ darwin* | rhapsody*)
+
+
+ archive_cmds_need_lc=no
+ hardcode_direct=no
+ hardcode_automatic=yes
+ hardcode_shlibpath_var=unsupported
+ whole_archive_flag_spec=''
+ link_all_deplibs=yes
+ allow_undefined_flag="$_lt_dar_allow_undefined"
+ case $cc_basename in
+ ifort*) _lt_dar_can_shared=yes ;;
+ *) _lt_dar_can_shared=$GCC ;;
+ esac
+ if test "$_lt_dar_can_shared" = "yes"; then
+ output_verbose_link_cmd=echo
+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+
+ else
+ ld_shlibs=no
+ fi
+
+ ;;
+
+ dgux*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+
+ freebsd1*)
+ ld_shlibs=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | dragonfly*)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ export_dynamic_flag_spec='${wl}-E'
+ ;;
+
+ hpux10*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test "$with_gnu_ld" = no; then
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_flag_spec_ld='+b $libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+ hardcode_direct_absolute=yes
+ export_dynamic_flag_spec='${wl}-E'
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ fi
+ ;;
+
+ hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ ;;
+ *)
+ hardcode_direct=yes
+ hardcode_direct_absolute=yes
+ export_dynamic_flag_spec='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ # Try to use the -exported_symbol ld option, if it does not
+ # work, assume that -exports_file does not work either and
+ # implicitly export all symbols.
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
+ cat >conftest.$ac_ext <<_ACEOF
+int foo(void) {}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
+
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="$save_LDFLAGS"
+ else
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ inherit_rpath=yes
+ link_all_deplibs=yes
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ newsos6)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_shlibpath_var=no
+ ;;
+
+ *nto* | *qnx*)
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ hardcode_direct_absolute=yes
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ else
+ case $host_os in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ os2*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ allow_undefined_flag=unsupported
+ archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ hardcode_libdir_flag_spec='-rpath $libdir'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_separator=:
+ ;;
+
+ solaris*)
+ no_undefined_flag=' -z defs'
+ if test "$GCC" = yes; then
+ wlarc='${wl}'
+ archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ else
+ case `$CC -V 2>&1` in
+ *"Compilers 5.0"*)
+ wlarc=''
+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+ ;;
+ *)
+ wlarc='${wl}'
+ archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ ;;
+ esac
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_shlibpath_var=no
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ link_all_deplibs=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ reload_cmds='$CC -r -o $output$reload_objs'
+ hardcode_direct=no
+ ;;
+ motorola)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv4.3*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ export_dynamic_flag_spec='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ld_shlibs=yes
+ fi
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
+ no_undefined_flag='${wl}-z,text'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ no_undefined_flag='${wl}-z,text'
+ allow_undefined_flag='${wl}-z,nodefs'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='${wl}-R,$libdir'
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+ export_dynamic_flag_spec='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ uts4*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+
+ *)
+ ld_shlibs=no
+ ;;
+ esac
+
+ if test x$host_vendor = xsni; then
+ case $host in
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
+ ;;
+ esac
+ fi
+ fi
+
+{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
+$as_echo "$ld_shlibs" >&6; }
+test "$ld_shlibs" = no && can_build_shared=no
+
+with_gnu_ld=$with_gnu_ld
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc" in
+x|xyes)
+ # Assume -lc should be added
+ archive_cmds_need_lc=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $archive_cmds in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
+$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
+ $RM conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl
+ pic_flag=$lt_prog_compiler_pic
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$allow_undefined_flag
+ allow_undefined_flag=
+ if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
+ (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ then
+ archive_cmds_need_lc=no
+ else
+ archive_cmds_need_lc=yes
+ fi
+ allow_undefined_flag=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $RM conftest*
+ { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
+$as_echo "$archive_cmds_need_lc" >&6; }
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
+$as_echo_n "checking dynamic linker characteristics... " >&6; }
+
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[lt_foo]++; }
+ if (lt_freq[lt_foo] == 1) { print lt_foo; }
+}'`
+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix[4-9]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[01] | aix4.[01].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ case $host_cpu in
+ powerpc)
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ ;;
+ m68k)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+ esac
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[45]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw* | cegcc*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ ;;
+
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[123]*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[01]* | freebsdelf3.[01]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case $host_cpu in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+
+interix[3-9]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # Some binutils ld are patched to set DT_RUNPATH
+ save_LDFLAGS=$LDFLAGS
+ save_libdir=$libdir
+ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
+ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
+ shlibpath_overrides_runpath=yes
+fi
+
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$save_LDFLAGS
+ libdir=$save_libdir
+
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+*nto* | *qnx*)
+ version_type=qnx
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='ldqnx.so'
+ ;;
+
+openbsd*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec="/usr/lib"
+ need_lib_prefix=no
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+ case $host_os in
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+ *) need_version=no ;;
+ esac
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=freebsd-elf
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ if test "$with_gnu_ld" = yes; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+tpf*)
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
+$as_echo "$dynamic_linker" >&6; }
+test "$dynamic_linker" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
+fi
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
+$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
+hardcode_action=
+if test -n "$hardcode_libdir_flag_spec" ||
+ test -n "$runpath_var" ||
+ test "X$hardcode_automatic" = "Xyes" ; then
+
+ # We can hardcode non-existent directories.
+ if test "$hardcode_direct" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
+ test "$hardcode_minus_L" != no; then
+ # Linking always hardcodes the temporary library directory.
+ hardcode_action=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ hardcode_action=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ hardcode_action=unsupported
+fi
+{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
+$as_echo "$hardcode_action" >&6; }
+
+if test "$hardcode_action" = relink ||
+ test "$inherit_rpath" = yes; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+
+
+
+
+
+
+ if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32* | cegcc*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dl_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+
+fi
+
+ ;;
+
+ *)
+ { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
+$as_echo_n "checking for shl_load... " >&6; }
+if test "${ac_cv_func_shl_load+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define shl_load innocuous_shl_load
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char shl_load (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef shl_load
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shl_load ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_shl_load || defined __stub___shl_load
+choke me
+#endif
+
+int
+main ()
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_func_shl_load=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_shl_load=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
+$as_echo "$ac_cv_func_shl_load" >&6; }
+if test "x$ac_cv_func_shl_load" = x""yes; then
+ lt_cv_dlopen="shl_load"
+else
+ { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
+$as_echo_n "checking for shl_load in -ldld... " >&6; }
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shl_load ();
+int
+main ()
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dld_shl_load=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dld_shl_load=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
+$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
+if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
+else
+ { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
+$as_echo_n "checking for dlopen... " >&6; }
+if test "${ac_cv_func_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define dlopen innocuous_dlopen
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char dlopen (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef dlopen
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_dlopen || defined __stub___dlopen
+choke me
+#endif
+
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_func_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_func_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
+$as_echo "$ac_cv_func_dlopen" >&6; }
+if test "x$ac_cv_func_dlopen" = x""yes; then
+ lt_cv_dlopen="dlopen"
+else
+ { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dl_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dl_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+ { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
+$as_echo_n "checking for dlopen in -lsvld... " >&6; }
+if test "${ac_cv_lib_svld_dlopen+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_svld_dlopen=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_svld_dlopen=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
+$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
+if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
+else
+ { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
+$as_echo_n "checking for dld_link in -ldld... " >&6; }
+if test "${ac_cv_lib_dld_dld_link+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dld_link ();
+int
+main ()
+{
+return dld_link ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_dld_dld_link=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_dld_dld_link=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
+$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
+if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
+ else
+ enable_dlopen=no
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
+$as_echo_n "checking whether a program can dlopen itself... " >&6; }
+if test "${lt_cv_dlopen_self+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+#line 12825 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}
+_LT_EOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&5 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
+$as_echo "$lt_cv_dlopen_self" >&6; }
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
+$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
+if test "${lt_cv_dlopen_self_static+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self_static=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+#line 12921 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}
+_LT_EOF
+ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&5 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self_static=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
+$as_echo "$lt_cv_dlopen_self_static" >&6; }
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+striplib=
+old_striplib=
+{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
+$as_echo_n "checking whether stripping libraries is possible... " >&6; }
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ old_striplib="$STRIP -S"
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ ;;
+ *)
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ ;;
+ esac
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+ # Report which library types will actually be built
+ { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
+$as_echo_n "checking if libtool supports shared libraries... " >&6; }
+ { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
+$as_echo "$can_build_shared" >&6; }
+
+ { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
+$as_echo_n "checking whether to build shared libraries... " >&6; }
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+ aix[4-9]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
+$as_echo "$enable_shared" >&6; }
+
+ { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
+$as_echo_n "checking whether to build static libraries... " >&6; }
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
+$as_echo "$enable_static" >&6; }
+
+
+
+
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC="$lt_save_CC"
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ac_config_commands="$ac_config_commands libtool"
+
+
+
+
+# Only expand once:
+
+
+
+if test x"$modules" = xdisabled
+then
+ echo "Modules still disabled..."
+ MODULE_OBJ="legacy_module.\$(OBJEXT)"
+else
+ MODULE_OBJ="module.\$(OBJEXT)"
+fi
+
+ if test "x$modules" = xenabled ; then
+ HAVE_MODULES_TRUE=
+ HAVE_MODULES_FALSE='#'
+else
+ HAVE_MODULES_TRUE='#'
+ HAVE_MODULES_FALSE=
+fi
+
+
+
+
+
+
+# Check whether --enable-debug was given.
+if test "${enable_debug+set}" = set; then
+ enableval=$enable_debug;
+ if test "x$enableval" = xyes
+ then
+ debugging="enabled"
+ else
+ debugging="disabled"
+ fi
+
+else
+ debugging="disabled"
+
+fi
+
+
+# Check whether --enable-nagging was given.
+if test "${enable_nagging+set}" = set; then
+ enableval=$enable_nagging;
+ if test "x$enableval" = xyes
+ then
+ nagging="enabled"
+ debugging="enabled"
+ else
+ nagging="disabled"
+ fi
+
+else
+ nagging="disabled"
+
+fi
+
+
+# Check whether --enable-aligncheck was given.
+if test "${enable_aligncheck+set}" = set; then
+ enableval=$enable_aligncheck;
+ if test "x$enableval" = xyes
+ then
+ aligncheck="enabled"
+
+cat >>confdefs.h <<\_ACEOF
+#define CHECK_ALIGN 1
+_ACEOF
+
+ else
+ aligncheck="disabled"
+ fi
+
+else
+
+ aligncheck="enabled"
+
+cat >>confdefs.h <<\_ACEOF
+#define CHECK_ALIGN 1
+_ACEOF
+
+
+
+fi
+
+
+if test x"$debugging" = xenabled; then
+
+cat >>confdefs.h <<\_ACEOF
+#define DEBUG 1
+_ACEOF
+
+fi
+
+# Check whether --enable-gapless was given.
+if test "${enable_gapless+set}" = set; then
+ enableval=$enable_gapless;
+ if test "x$enableval" = xyes
+ then
+ gapless="enabled"
+
+cat >>confdefs.h <<\_ACEOF
+#define GAPLESS 1
+_ACEOF
+
+ else
+ gapless="disabled"
+ fi
+
+else
+
+ gapless="enabled"
+
+cat >>confdefs.h <<\_ACEOF
+#define GAPLESS 1
+_ACEOF
+
+
+
+fi
+
+
+# Check whether --enable-fifo was given.
+if test "${enable_fifo+set}" = set; then
+ enableval=$enable_fifo;
+ if test "x$enableval" = xyes
+ then
+ fifo="enabled"
+ else
+ fifo="disabled"
+ fi
+
+else
+
+ fifo="auto"
+
+
+fi
+
+
+# Check whether --enable-ipv6 was given.
+if test "${enable_ipv6+set}" = set; then
+ enableval=$enable_ipv6;
+ if test "x$enableval" = xyes
+ then
+ ipv6="enabled"
+ else
+ ipv6="disabled"
+ fi
+
+else
+
+ ipv6="auto"
+
+
+fi
+
+
+# Check whether --enable-network was given.
+if test "${enable_network+set}" = set; then
+ enableval=$enable_network;
+ if test "x$enableval" = xyes
+ then
+ network="enabled"
+ else
+ network="disabled"
+ fi
+
+else
+
+ network="auto"
+
+
+fi
+
+
+s_fpu=
+DECODER_OBJ=
+DECODER_LOBJ=
+
+
+id3v2=enabled
+# Check whether --enable-id3v2 was given.
+if test "${enable_id3v2+set}" = set; then
+ enableval=$enable_id3v2;
+ if test "x$enableval" = xno; then
+ id3v2="disabled"
+ fi
+
+fi
+
+
+# id3v2 depends on strings... so check that in between.
+string=enabled
+# Check whether --enable-string was given.
+if test "${enable_string+set}" = set; then
+ enableval=$enable_string;
+ if test "x$enableval" = xno; then
+ string="disabled"
+ fi
+
+fi
+
+
+if test "x$string" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_STRING 1
+_ACEOF
+
+ id3v2=disabled
+ { $as_echo "$as_me:$LINENO: WARNING: ID3v2 support disabled because of string API being disabled." >&5
+$as_echo "$as_me: WARNING: ID3v2 support disabled because of string API being disabled." >&2;}
+else
+ DECODER_OBJ="$DECODER_OBJ stringbuf.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ stringbuf.lo"
+fi
+
+if test "x$id3v2" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_ID3V2 1
+_ACEOF
+
+fi
+
+icy=enabled
+# Check whether --enable-icy was given.
+if test "${enable_icy+set}" = set; then
+ enableval=$enable_icy;
+ if test "x$enableval" = xno; then
+ icy="disabled"
+ fi
+
+fi
+
+
+if test "x$icy" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_ICY 1
+_ACEOF
+
+else
+ DECODER_OBJ="$DECODER_OBJ icy.\$(OBJEXT) icy2utf8.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ icy.lo icy2utf8.lo"
+fi
+
+ntom=enabled
+# Check whether --enable-ntom was given.
+if test "${enable_ntom+set}" = set; then
+ enableval=$enable_ntom;
+ if test "x$enableval" = xno; then
+ ntom="disabled"
+ fi
+
+fi
+
+
+if test "x$ntom" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_NTOM 1
+_ACEOF
+
+else
+ DECODER_OBJ="$DECODER_OBJ ntom.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ ntom.lo"
+fi
+
+downsample=enabled
+# Check whether --enable-downsample was given.
+if test "${enable_downsample+set}" = set; then
+ enableval=$enable_downsample;
+ if test "x$enableval" = xno; then
+ downsample="disabled"
+ fi
+
+fi
+
+
+if test "x$downsample" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_DOWNSAMPLE 1
+_ACEOF
+
+fi
+
+feeder=enabled
+# Check whether --enable-feeder was given.
+if test "${enable_feeder+set}" = set; then
+ enableval=$enable_feeder;
+ if test "x$enableval" = xno; then
+ feeder="disabled"
+ fi
+
+fi
+
+
+if test "x$feeder" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_FEEDER 1
+_ACEOF
+
+fi
+
+messages=enabled
+# Check whether --enable-messages was given.
+if test "${enable_messages+set}" = set; then
+ enableval=$enable_messages;
+ if test "x$enableval" = xno; then
+ messages="disabled"
+ fi
+
+fi
+
+
+if test "x$messages" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_WARNING 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_ERROR 1
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_ERETURN 1
+_ACEOF
+
+fi
+
+integers=fast
+# Check whether --enable-int-quality was given.
+if test "${enable_int_quality+set}" = set; then
+ enableval=$enable_int_quality;
+ if test "x$enableval" = xyes; then
+ integers=quality
+
+cat >>confdefs.h <<\_ACEOF
+#define ACCURATE_ROUNDING 1
+_ACEOF
+
+ fi
+
+fi
+
+
+int16=enabled
+# Check whether --enable-16bit was given.
+if test "${enable_16bit+set}" = set; then
+ enableval=$enable_16bit;
+ if test "x$enableval" = xno; then
+ int16="disabled"
+ fi
+
+fi
+
+
+int8=enabled
+# Check whether --enable-8bit was given.
+if test "${enable_8bit+set}" = set; then
+ enableval=$enable_8bit;
+ if test "x$enableval" = xno; then
+ int8="disabled"
+ fi
+
+fi
+
+
+int32=enabled
+# Check whether --enable-32bit was given.
+if test "${enable_32bit+set}" = set; then
+ enableval=$enable_32bit;
+ if test "x$enableval" = xno; then
+ int32="disabled"
+ fi
+
+fi
+
+
+real=enabled
+# Check whether --enable-real was given.
+if test "${enable_real+set}" = set; then
+ enableval=$enable_real;
+ if test "x$enableval" = xno; then
+ real="disabled"
+ fi
+
+fi
+
+
+
+# Check whether --with-cpu was given.
+if test "${with_cpu+set}" = set; then
+ withval=$with_cpu;
+fi
+
+
+
+# opt-in for IEEE754 floating point action
+# We want to make sure not to apply hacks relying on IEEE754 storage format on platforms where we did not make sure that this actually is valid.
+# It _should_ be fine for about all computers still out there, but we play safe.
+ieee=no
+case $target in
+ i?86-*|x86_64-*|powerpc*|sparc*)
+ ieee=yes
+ ;;
+esac
+if test "x$ieee" = xyes; then
+ echo "We assume IEEE754 floating point format."
+
+cat >>confdefs.h <<\_ACEOF
+#define IEEE_FLOAT 1
+_ACEOF
+
+fi
+
+
+case $target in
+ arm-*-linux*)
+ # check that... perhaps we are better off on arm with kernel math emulation
+ cpu_type="generic_nofpu"
+ ;;
+ i386-*-linux*|i386-*-kfreebsd*-gnu)
+ cpu_type="i386_fpu"
+ ;;
+ i486-*-linux*|i486-*-kfreebsd*-gnu)
+ cpu_type="i486"
+ ;;
+ i586-*-linux*|i586-*-kfreebsd*-gnu)
+ cpu_type="x86"
+ ;;
+ i686-*-linux*|i686-*-kfreebsd*-gnu)
+ cpu_type="x86"
+ ;;
+ x86_64-*-linux*|x86_64-*-kfreebsd*-gnu)
+ cpu_type="x86-64"
+ ;;
+ *-*-linux*|*-*-kfreebsd*-gnu)
+ cpu_type="generic_fpu"
+ ;;
+ i386-apple-darwin*)
+ cpu_type="x86"
+ ;;
+ x86_64-apple-darwin*)
+ cpu_type="x86-64"
+ ;;
+ *-apple-darwin*)
+ { $as_echo "$as_me:$LINENO: checking if CPU type supports AltiVec" >&5
+$as_echo_n "checking if CPU type supports AltiVec... " >&6; }
+ case `machine` in
+ ppc7400 | ppc7450 | ppc970)
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ cpu_type="altivec"
+ ;;
+ *)
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ cpu_type="generic_fpu"
+ ;;
+ esac
+ ;;
+ i?86-*-dragonfly* | i?86-*-freebsd* | i?86-*-midnightbsd* | i?86-*-mirbsd* | i?86-*-netbsd* | i?86-*-openbsd*)
+ cpu_type="x86"
+ ;;
+ x86_64-*-dragonfly* | x86_64-*-freebsd* | x86_64-*-midnightbsd* | x86_64-*-mirbsd* | x86_64-*-netbsd* | x86_64-*-openbsd*)
+ cpu_type="x86-64"
+ ;;
+ *-*-dragonfly* | *-*-freebsd* | *-*-midnightbsd* | *-*-mirbsd* | *-*-netbsd* | *-*-openbsd*)
+ cpu_type="generic_fpu"
+ ;;
+ *-*-solaris*)
+ cpu_type="generic_fpu"
+ ;;
+ *-dec-osf*)
+ cpu_type="generic_fpu"
+ ;;
+ x86_64-pc-cygwin*)
+ cpu_type="x86-64"
+ ;;
+ i686-pc-cygwin*)
+ cpu_type="x86"
+ ;;
+ i586-pc-cygwin*)
+ cpu_type="x86"
+ ;;
+ i486-pc-cygwin*)
+ cpu_type="i486"
+ ;;
+ i386-pc-cygwin*)
+ cpu_type="i386"
+ ;;
+ *-pc-cygwin*)
+ cpu_type="generic_fpu"
+ ;;
+ *-*-mingw32)
+ LIBS="$LIBS"
+ buffer=disabled
+ cpu_type="x86"
+ ;;
+ i386-*)
+ { $as_echo "$as_me:$LINENO: WARNING: Unknown target operating system" >&5
+$as_echo "$as_me: WARNING: Unknown target operating system" >&2;}
+ cpu_type="i386"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ i486-*)
+ { $as_echo "$as_me:$LINENO: WARNING: Unknown target operating system" >&5
+$as_echo "$as_me: WARNING: Unknown target operating system" >&2;}
+ cpu_type="i486"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ i586-*)
+ { $as_echo "$as_me:$LINENO: WARNING: Unknown target operating system" >&5
+$as_echo "$as_me: WARNING: Unknown target operating system" >&2;}
+ cpu_type="i586"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ i686-*)
+ { $as_echo "$as_me:$LINENO: WARNING: Unknown target operating system" >&5
+$as_echo "$as_me: WARNING: Unknown target operating system" >&2;}
+ cpu_type="x86"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ x86_64-*)
+ { $as_echo "$as_me:$LINENO: WARNING: Unknown target operating system" >&5
+$as_echo "$as_me: WARNING: Unknown target operating system" >&2;}
+ cpu_type="x86-64"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ *)
+ { $as_echo "$as_me:$LINENO: WARNING: Unknown target operating system" >&5
+$as_echo "$as_me: WARNING: Unknown target operating system" >&2;}
+ cpu_type="generic_fpu"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+esac
+
+# Check whether --enable-buffer was given.
+if test "${enable_buffer+set}" = set; then
+ enableval=$enable_buffer;
+ if test "x$enableval" = xyes
+ then
+ echo "Note: Enabling buffer per request... perhaps it will not build anyway."
+ buffer="enabled"
+ else
+ echo "Note: Disabling buffer per request."
+ buffer="disabled"
+ fi
+
+
+fi
+
+
+if test "x$with_cpu" != "x"; then
+ cpu_type=$with_cpu
+fi
+
+if test "x$cpu_type" = "xgeneric_nofpu"; then
+ real=disabled
+ int32=disabled
+fi
+
+if test "x$cpu_type" = "xi386_nofpu"; then
+ real=disabled
+ int32=disabled
+fi
+
+if test "x$int16" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_16BIT 1
+_ACEOF
+
+else
+ DECODER_OBJ="$DECODER_OBJ synth.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ synth.lo"
+fi
+
+# 8bit works only through 16bit
+if test "x$int16" = "xdisabled"; then
+ int8=disabled
+fi
+if test "x$int8" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_8BIT 1
+_ACEOF
+
+else
+ DECODER_OBJ="$DECODER_OBJ synth_8bit.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ synth_8bit.lo"
+fi
+
+if test "x$int32" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_32BIT 1
+_ACEOF
+
+else
+ s_fpu="$s_fpu synth_s32"
+fi
+
+if test "x$real" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_REAL 1
+_ACEOF
+
+else
+ s_fpu="$s_fpu synth_real"
+fi
+
+
+
+layer1=enabled
+# Check whether --enable-layer1 was given.
+if test "${enable_layer1+set}" = set; then
+ enableval=$enable_layer1;
+ if test "x$enableval" = xno; then
+ layer1="disabled"
+ fi
+
+fi
+
+
+if test "x$layer1" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_LAYER1 1
+_ACEOF
+
+else
+ # layer1 needs code in layer2
+ DECODER_OBJ="$DECODER_OBJ layer1.\$(OBJEXT) layer2.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ layer1.lo layer2.lo"
+fi
+
+layer2=enabled
+# Check whether --enable-layer2 was given.
+if test "${enable_layer2+set}" = set; then
+ enableval=$enable_layer2;
+ if test "x$enableval" = xno; then
+ layer2="disabled"
+ fi
+
+fi
+
+
+if test "x$layer2" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_LAYER2 1
+_ACEOF
+
+else
+ # layer1 may have added the objects already
+ if test "x$layer1" = "xdisabled"; then
+ DECODER_OBJ="$DECODER_OBJ layer2.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ layer2.lo"
+ fi
+fi
+
+layer3=enabled
+# Check whether --enable-layer3 was given.
+if test "${enable_layer3+set}" = set; then
+ enableval=$enable_layer3;
+ if test "x$enableval" = xno; then
+ layer3="disabled"
+ fi
+
+fi
+
+
+if test "x$layer3" = "xdisabled"; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NO_LAYER3 1
+_ACEOF
+
+else
+ DECODER_OBJ="$DECODER_OBJ layer3.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ layer3.lo"
+fi
+
+
+# Check whether --with-audio was given.
+if test "${with_audio+set}" = set; then
+ withval=$with_audio;
+fi
+
+
+# Check whether --with-default-audio was given.
+if test "${with_default_audio+set}" = set; then
+ withval=$with_default_audio;
+fi
+
+
+
+# Check whether --with-optimization was given.
+if test "${with_optimization+set}" = set; then
+ withval=$with_optimization;
+fi
+
+
+
+# Check whether --with-seektable was given.
+if test "${with_seektable+set}" = set; then
+ withval=$with_seektable;
+fi
+
+
+
+
+# Dummy audio output module is always supported
+output_modules="dummy"
+
+
+# based on posting from John Dalgliesh <johnd@defyne.org> on ffmpeg (LGPL) mailing list
+# find if .align arg is power-of-two or not
+asmalign_exp="unknown"
+if test x"$asmalign_exp" = xunknown; then
+ { $as_echo "$as_me:$LINENO: checking if .align takes 2-exponent" >&5
+$as_echo_n "checking if .align takes 2-exponent... " >&6; }
+ asmalign_exp="no"
+ echo '.align 3' > conftest.s
+ if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
+ asmalign_exp="yes"
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ rm -f conftest.o conftest.s
+fi
+if test x"$asmalign_exp" = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define ASMALIGN_EXP 1
+_ACEOF
+
+fi
+
+ccalign="unknown"
+if test x"$ccalign" = xunknown; then
+ { $as_echo "$as_me:$LINENO: checking __attribute__((aligned(16)))" >&5
+$as_echo_n "checking __attribute__((aligned(16)))... " >&6; }
+ ccalign="no"
+ echo '__attribute__((aligned(16))) float var;' > conftest.c
+ if $CC -c -o conftest.o conftest.c >/dev/null 2>&1; then
+ ccalign="yes"
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ rm -f conftest.o conftest.c
+fi
+
+
+
+{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if test "${ac_cv_header_stdc+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_header_stdc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_header_stdc=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then
+ :
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then
+ :
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ return 2;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ :
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_header_stdc=no
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define STDC_HEADERS 1
+_ACEOF
+
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+for ac_header in stdio.h stdlib.h string.h unistd.h sched.h sys/ioctl.h sys/types.h stdint.h limits.h inttypes.h sys/time.h sys/wait.h sys/resource.h sys/signal.h signal.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+# Check whether --enable-largefile was given.
+if test "${enable_largefile+set}" = set; then
+ enableval=$enable_largefile;
+fi
+
+if test "$enable_largefile" != no; then
+
+ { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
+$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
+if test "${ac_cv_sys_largefile_CC+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_sys_largefile_CC=no
+ if test "$GCC" != yes; then
+ ac_save_CC=$CC
+ while :; do
+ # IRIX 6.2 and later do not support large files by default,
+ # so use the C compiler's -n32 option if that helps.
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext
+ CC="$CC -n32"
+ rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_sys_largefile_CC=' -n32'; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext
+ break
+ done
+ CC=$ac_save_CC
+ rm -f conftest.$ac_ext
+ fi
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
+$as_echo "$ac_cv_sys_largefile_CC" >&6; }
+ if test "$ac_cv_sys_largefile_CC" != no; then
+ CC=$CC$ac_cv_sys_largefile_CC
+ fi
+
+ { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
+$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
+if test "${ac_cv_sys_file_offset_bits+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_sys_file_offset_bits=no; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#define _FILE_OFFSET_BITS 64
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_sys_file_offset_bits=64; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_cv_sys_file_offset_bits=unknown
+ break
+done
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
+$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
+case $ac_cv_sys_file_offset_bits in #(
+ no | unknown) ;;
+ *)
+cat >>confdefs.h <<_ACEOF
+#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
+_ACEOF
+;;
+esac
+rm -rf conftest*
+ if test $ac_cv_sys_file_offset_bits = unknown; then
+ { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
+$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
+if test "${ac_cv_sys_large_files+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_sys_large_files=no; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#define _LARGE_FILES 1
+#include <sys/types.h>
+ /* Check that off_t can represent 2**63 - 1 correctly.
+ We can't simply define LARGE_OFF_T to be 9223372036854775807,
+ since some C++ compilers masquerading as C compilers
+ incorrectly reject 9223372036854775807. */
+#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
+ && LARGE_OFF_T % 2147483647 == 1)
+ ? 1 : -1];
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_cv_sys_large_files=1; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_cv_sys_large_files=unknown
+ break
+done
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
+$as_echo "$ac_cv_sys_large_files" >&6; }
+case $ac_cv_sys_large_files in #(
+ no | unknown) ;;
+ *)
+cat >>confdefs.h <<_ACEOF
+#define _LARGE_FILES $ac_cv_sys_large_files
+_ACEOF
+;;
+esac
+rm -rf conftest*
+ fi
+fi
+
+if test "x$ac_cv_sys_file_offset_bits" = x || echo "$ac_cv_sys_file_offset_bits" | grep -q '[^0-9]'; then
+ LARGEFILE_BITS=
+ LARGEFILE_SUFFIX=
+ LARGEFILE_SWITCH=0
+else
+ LARGEFILE_BITS="$ac_cv_sys_file_offset_bits"
+ LARGEFILE_SUFFIX="_$ac_cv_sys_file_offset_bits"
+ LARGEFILE_SWITCH=1
+fi
+
+
+
+
+
+# Using the lower level macros instead of AC_TYPE_* for compatibility with not freshest autoconf.
+{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
+$as_echo_n "checking for size_t... " >&6; }
+if test "${ac_cv_type_size_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_type_size_t=no
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof (size_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof ((size_t)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_size_t=yes
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
+$as_echo "$ac_cv_type_size_t" >&6; }
+if test "x$ac_cv_type_size_t" = x""yes; then
+ :
+else
+
+cat >>confdefs.h <<_ACEOF
+#define size_t unsigned long
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
+$as_echo_n "checking for ssize_t... " >&6; }
+if test "${ac_cv_type_ssize_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_type_ssize_t=no
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof (ssize_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof ((ssize_t)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_ssize_t=yes
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
+$as_echo "$ac_cv_type_ssize_t" >&6; }
+if test "x$ac_cv_type_ssize_t" = x""yes; then
+ :
+else
+
+cat >>confdefs.h <<_ACEOF
+#define ssize_t long
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
+$as_echo_n "checking for off_t... " >&6; }
+if test "${ac_cv_type_off_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_type_off_t=no
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof (off_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof ((off_t)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_off_t=yes
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
+$as_echo "$ac_cv_type_off_t" >&6; }
+if test "x$ac_cv_type_off_t" = x""yes; then
+ :
+else
+
+cat >>confdefs.h <<_ACEOF
+#define off_t long int
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
+$as_echo_n "checking for int32_t... " >&6; }
+if test "${ac_cv_type_int32_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_type_int32_t=no
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof (int32_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof ((int32_t)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_int32_t=yes
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
+$as_echo "$ac_cv_type_int32_t" >&6; }
+if test "x$ac_cv_type_int32_t" = x""yes; then
+ :
+else
+
+cat >>confdefs.h <<_ACEOF
+#define int32_t int
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
+$as_echo_n "checking for uint32_t... " >&6; }
+if test "${ac_cv_type_uint32_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_type_uint32_t=no
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof (uint32_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof ((uint32_t)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_uint32_t=yes
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
+$as_echo "$ac_cv_type_uint32_t" >&6; }
+if test "x$ac_cv_type_uint32_t" = x""yes; then
+ :
+else
+
+cat >>confdefs.h <<_ACEOF
+#define uint32_t unsigned int
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
+$as_echo_n "checking for int16_t... " >&6; }
+if test "${ac_cv_type_int16_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_type_int16_t=no
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof (int16_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof ((int16_t)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_int16_t=yes
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
+$as_echo "$ac_cv_type_int16_t" >&6; }
+if test "x$ac_cv_type_int16_t" = x""yes; then
+ :
+else
+
+cat >>confdefs.h <<_ACEOF
+#define int16_t short
+_ACEOF
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
+$as_echo_n "checking for uint16_t... " >&6; }
+if test "${ac_cv_type_uint16_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_type_uint16_t=no
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof (uint16_t))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+if (sizeof ((uint16_t)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ :
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_type_uint16_t=yes
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
+$as_echo "$ac_cv_type_uint16_t" >&6; }
+if test "x$ac_cv_type_uint16_t" = x""yes; then
+ :
+else
+
+cat >>confdefs.h <<_ACEOF
+#define uint16_t unsigned short
+_ACEOF
+
+fi
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
+$as_echo_n "checking size of size_t... " >&6; }
+if test "${ac_cv_sizeof_size_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo= ac_hi=
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_size_t=$ac_lo;;
+'') if test "$ac_cv_type_size_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (size_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_size_t=0
+ fi ;;
+esac
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+static long int longval () { return (long int) (sizeof (size_t)); }
+static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (((long int) (sizeof (size_t))) < 0)
+ {
+ long int i = longval ();
+ if (i != ((long int) (sizeof (size_t))))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ((long int) (sizeof (size_t))))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_size_t=`cat conftest.val`
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+if test "$ac_cv_type_size_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (size_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_size_t=0
+ fi
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.val
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
+$as_echo "$ac_cv_sizeof_size_t" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
+_ACEOF
+
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:$LINENO: checking size of ssize_t" >&5
+$as_echo_n "checking size of ssize_t... " >&6; }
+if test "${ac_cv_sizeof_ssize_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) < 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo= ac_hi=
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (ssize_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_ssize_t=$ac_lo;;
+'') if test "$ac_cv_type_ssize_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (ssize_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_ssize_t=0
+ fi ;;
+esac
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+static long int longval () { return (long int) (sizeof (ssize_t)); }
+static unsigned long int ulongval () { return (long int) (sizeof (ssize_t)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (((long int) (sizeof (ssize_t))) < 0)
+ {
+ long int i = longval ();
+ if (i != ((long int) (sizeof (ssize_t))))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ((long int) (sizeof (ssize_t))))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_ssize_t=`cat conftest.val`
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+if test "$ac_cv_type_ssize_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (ssize_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_ssize_t=0
+ fi
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.val
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
+$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
+_ACEOF
+
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
+$as_echo_n "checking size of off_t... " >&6; }
+if test "${ac_cv_sizeof_off_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo= ac_hi=
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_off_t=$ac_lo;;
+'') if test "$ac_cv_type_off_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (off_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_off_t=0
+ fi ;;
+esac
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+static long int longval () { return (long int) (sizeof (off_t)); }
+static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (((long int) (sizeof (off_t))) < 0)
+ {
+ long int i = longval ();
+ if (i != ((long int) (sizeof (off_t))))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ((long int) (sizeof (off_t))))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_off_t=`cat conftest.val`
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+if test "$ac_cv_type_off_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (off_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_off_t=0
+ fi
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.val
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
+$as_echo "$ac_cv_sizeof_off_t" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
+_ACEOF
+
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:$LINENO: checking size of int32_t" >&5
+$as_echo_n "checking size of int32_t... " >&6; }
+if test "${ac_cv_sizeof_int32_t+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int32_t))) >= 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int32_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int32_t))) < 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int32_t))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo= ac_hi=
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (int32_t))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_int32_t=$ac_lo;;
+'') if test "$ac_cv_type_int32_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (int32_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_int32_t=0
+ fi ;;
+esac
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+static long int longval () { return (long int) (sizeof (int32_t)); }
+static unsigned long int ulongval () { return (long int) (sizeof (int32_t)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (((long int) (sizeof (int32_t))) < 0)
+ {
+ long int i = longval ();
+ if (i != ((long int) (sizeof (int32_t))))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ((long int) (sizeof (int32_t))))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_int32_t=`cat conftest.val`
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+if test "$ac_cv_type_int32_t" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (int32_t)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_int32_t=0
+ fi
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.val
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int32_t" >&5
+$as_echo "$ac_cv_sizeof_int32_t" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
+_ACEOF
+
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:$LINENO: checking size of long" >&5
+$as_echo_n "checking size of long... " >&6; }
+if test "${ac_cv_sizeof_long+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr $ac_mid + 1`
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_lo=$ac_mid; break
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_hi=`expr '(' $ac_mid ')' - 1`
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ ac_mid=`expr 2 '*' $ac_mid`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo= ac_hi=
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
+test_array [0] = 0
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_hi=$ac_mid
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_lo=`expr '(' $ac_mid ')' + 1`
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in
+?*) ac_cv_sizeof_long=$ac_lo;;
+'') if test "$ac_cv_type_long" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (long)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_long=0
+ fi ;;
+esac
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+static long int longval () { return (long int) (sizeof (long)); }
+static unsigned long int ulongval () { return (long int) (sizeof (long)); }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (((long int) (sizeof (long))) < 0)
+ {
+ long int i = longval ();
+ if (i != ((long int) (sizeof (long))))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ((long int) (sizeof (long))))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_sizeof_long=`cat conftest.val`
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+if test "$ac_cv_type_long" = yes; then
+ { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
+See \`config.log' for more details." >&5
+$as_echo "$as_me: error: cannot compute sizeof (long)
+See \`config.log' for more details." >&2;}
+ { (exit 77); exit 77; }; }; }
+ else
+ ac_cv_sizeof_long=0
+ fi
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f conftest.val
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
+$as_echo "$ac_cv_sizeof_long" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define SIZEOF_LONG $ac_cv_sizeof_long
+_ACEOF
+
+
+
+
+
+
+for ac_header in stdlib.h unistd.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+for ac_func in getpagesize
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
+$as_echo_n "checking for working mmap... " >&6; }
+if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then
+ ac_cv_func_mmap_fixed_mapped=no
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+/* malloc might have been renamed as rpl_malloc. */
+#undef malloc
+
+/* Thanks to Mike Haertel and Jim Avera for this test.
+ Here is a matrix of mmap possibilities:
+ mmap private not fixed
+ mmap private fixed at somewhere currently unmapped
+ mmap private fixed at somewhere already mapped
+ mmap shared not fixed
+ mmap shared fixed at somewhere currently unmapped
+ mmap shared fixed at somewhere already mapped
+ For private mappings, we should verify that changes cannot be read()
+ back from the file, nor mmap's back from the file at a different
+ address. (There have been systems where private was not correctly
+ implemented like the infamous i386 svr4.0, and systems where the
+ VM page cache was not coherent with the file system buffer cache
+ like early versions of FreeBSD and possibly contemporary NetBSD.)
+ For shared mappings, we should conversely verify that changes get
+ propagated back to all the places they're supposed to be.
+
+ Grep wants private fixed already mapped.
+ The main things grep needs to know about mmap are:
+ * does it exist and is it safe to write into the mmap'd area
+ * how to use it (BSD variants) */
+
+#include <fcntl.h>
+#include <sys/mman.h>
+
+#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
+char *malloc ();
+#endif
+
+/* This mess was copied from the GNU getpagesize.h. */
+#ifndef HAVE_GETPAGESIZE
+/* Assume that all systems that can run configure have sys/param.h. */
+# ifndef HAVE_SYS_PARAM_H
+# define HAVE_SYS_PARAM_H 1
+# endif
+
+# ifdef _SC_PAGESIZE
+# define getpagesize() sysconf(_SC_PAGESIZE)
+# else /* no _SC_PAGESIZE */
+# ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+# ifdef EXEC_PAGESIZE
+# define getpagesize() EXEC_PAGESIZE
+# else /* no EXEC_PAGESIZE */
+# ifdef NBPG
+# define getpagesize() NBPG * CLSIZE
+# ifndef CLSIZE
+# define CLSIZE 1
+# endif /* no CLSIZE */
+# else /* no NBPG */
+# ifdef NBPC
+# define getpagesize() NBPC
+# else /* no NBPC */
+# ifdef PAGESIZE
+# define getpagesize() PAGESIZE
+# endif /* PAGESIZE */
+# endif /* no NBPC */
+# endif /* no NBPG */
+# endif /* no EXEC_PAGESIZE */
+# else /* no HAVE_SYS_PARAM_H */
+# define getpagesize() 8192 /* punt totally */
+# endif /* no HAVE_SYS_PARAM_H */
+# endif /* no _SC_PAGESIZE */
+
+#endif /* no HAVE_GETPAGESIZE */
+
+int
+main ()
+{
+ char *data, *data2, *data3;
+ int i, pagesize;
+ int fd;
+
+ pagesize = getpagesize ();
+
+ /* First, make a file with some known garbage in it. */
+ data = (char *) malloc (pagesize);
+ if (!data)
+ return 1;
+ for (i = 0; i < pagesize; ++i)
+ *(data + i) = rand ();
+ umask (0);
+ fd = creat ("conftest.mmap", 0600);
+ if (fd < 0)
+ return 1;
+ if (write (fd, data, pagesize) != pagesize)
+ return 1;
+ close (fd);
+
+ /* Next, try to mmap the file at a fixed address which already has
+ something else allocated at it. If we can, also make sure that
+ we see the same garbage. */
+ fd = open ("conftest.mmap", O_RDWR);
+ if (fd < 0)
+ return 1;
+ data2 = (char *) malloc (2 * pagesize);
+ if (!data2)
+ return 1;
+ data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
+ if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
+ MAP_PRIVATE | MAP_FIXED, fd, 0L))
+ return 1;
+ for (i = 0; i < pagesize; ++i)
+ if (*(data + i) != *(data2 + i))
+ return 1;
+
+ /* Finally, make sure that changes to the mapped area do not
+ percolate back to the file as seen by read(). (This is a bug on
+ some variants of i386 svr4.0.) */
+ for (i = 0; i < pagesize; ++i)
+ *(data2 + i) = *(data2 + i) + 1;
+ data3 = (char *) malloc (pagesize);
+ if (!data3)
+ return 1;
+ if (read (fd, data3, pagesize) != pagesize)
+ return 1;
+ for (i = 0; i < pagesize; ++i)
+ if (*(data + i) != *(data3 + i))
+ return 1;
+ close (fd);
+ return 0;
+}
+_ACEOF
+rm -f conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
+ { (case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_func_mmap_fixed_mapped=yes
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+( exit $ac_status )
+ac_cv_func_mmap_fixed_mapped=no
+fi
+rm -rf conftest.dSYM
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+fi
+
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
+$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
+if test $ac_cv_func_mmap_fixed_mapped = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_MMAP 1
+_ACEOF
+
+fi
+rm -f conftest.mmap
+
+
+# Check if system supports termios
+{ $as_echo "$as_me:$LINENO: checking POSIX termios" >&5
+$as_echo_n "checking POSIX termios... " >&6; }
+if test "${ac_cv_sys_posix_termios+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/types.h>
+#include <unistd.h>
+#include <termios.h>
+
+int
+main ()
+{
+/* SunOS 4.0.3 has termios.h but not the library calls. */
+ tcgetattr(0, 0);
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_sys_posix_termios=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_sys_posix_termios=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
+$as_echo "$ac_cv_sys_posix_termios" >&6; }
+
+if test "x$ac_cv_sys_posix_termios" = "xyes"; then
+
+cat >>confdefs.h <<_ACEOF
+#define HAVE_TERMIOS 1
+_ACEOF
+
+fi
+
+
+for ac_func in random
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+# Check for sched_setscheduler
+
+
+
+for ac_func in sched_setscheduler setuid getuid
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+# Check for setpriority
+
+for ac_func in setpriority
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+for ac_func in strerror
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+
+for ac_func in setlocale nl_langinfo
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+for ac_func in strdup
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+for ac_func in atoll
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+
+
+for ac_func in mkfifo
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+ have_mkfifo=yes
+else
+ have_mkfifo=no
+fi
+done
+
+
+if test x"$fifo" = xauto; then
+ if test x"$have_mkfifo" = xyes; then
+ fifo=enabled
+ else
+ fifo=disabled
+ fi
+fi
+if test x"$fifo" = xenabled; then
+
+cat >>confdefs.h <<\_ACEOF
+#define FIFO 1
+_ACEOF
+
+ if test x"$have_mkfifo" = xno; then
+ { $as_echo "$as_me:$LINENO: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&5
+$as_echo "$as_me: WARNING: You forced FIFO code while I think there is no mkfifo() available! " >&2;}
+ fi
+fi
+
+
+for ac_func in getaddrinfo
+do
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
+$as_echo_n "checking for $ac_func... " >&6; }
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $ac_func innocuous_$ac_func
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $ac_func (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $ac_func
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $ac_func ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$ac_func || defined __stub___$ac_func
+choke me
+#endif
+
+int
+main ()
+{
+return $ac_func ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ eval "$as_ac_var=yes"
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ eval "$as_ac_var=no"
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+ac_res=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+as_val=`eval 'as_val=${'$as_ac_var'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+ have_ipv6=yes
+else
+ have_ipv6=no
+fi
+done
+
+if test x"$ipv6" = xauto; then
+ if test x"$have_ipv6" = xyes; then
+ ipv6=enabled
+ else
+ ipv6=disabled
+ fi
+fi
+if test x"$ipv6" = xenabled; then
+
+cat >>confdefs.h <<\_ACEOF
+#define IPV6 1
+_ACEOF
+
+ if test x"$have_ipv6" = xno; then
+ { $as_echo "$as_me:$LINENO: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&5
+$as_echo "$as_me: WARNING: You forced IPv6 code while I think there is no getaddrinfo() available! " >&2;}
+ fi
+fi
+
+
+# locale headers
+
+
+for ac_header in locale.h langinfo.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+# Headers for network (http) stuff
+
+
+
+
+
+for ac_header in netdb.h sys/param.h sys/socket.h netinet/in.h arpa/inet.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+if test "x$ac_cv_header_netdb_h" = "xyes" &&
+ test "x$ac_cv_header_sys_param_h" = "xyes" &&
+ test "x$ac_cv_header_sys_socket_h" = "xyes" &&
+ test "x$ac_cv_header_netinet_in_h" = "xyes" &&
+ test "x$ac_cv_header_arpa_inet_h" = "xyes"; then
+ have_network=yes
+else
+ have_network=no
+fi
+
+if test x"$network" = xauto; then
+ if test x"$have_network" = xyes; then
+ network=enabled
+ else
+ network=disabled
+ fi
+fi
+if test x"$network" = xenabled; then
+
+cat >>confdefs.h <<\_ACEOF
+#define NETWORK 1
+_ACEOF
+
+ if test x"$have_network" = xno; then
+ { $as_echo "$as_me:$LINENO: WARNING: You forced network code while I think there is support missing! " >&5
+$as_echo "$as_me: WARNING: You forced network code while I think there is support missing! " >&2;}
+ fi
+fi
+
+# Substitutions for the installable mpg123.h header
+if test "x$ac_cv_header_stdio_h" = "xyes"; then
+ INCLUDE_STDIO_H="#include <stdio.h>"
+else
+ INCLUDE_STDIO_H="/* #include <stdio.h> is not available on this system */"
+fi
+
+
+if test "x$ac_cv_header_stdlib_h" = "xyes"; then
+ INCLUDE_STDLIB_H="#include <stdlib.h>"
+else
+ INCLUDE_STDLIB_H="/* #include <stdlib.h> is not available on this system */"
+fi
+
+
+if test "x$ac_cv_header_sys_types_h" = "xyes"; then
+ INCLUDE_SYS_TYPE_H="#include <sys/types.h>"
+else
+ INCLUDE_SYS_TYPE_H="/* #include <sys/types.h> is not available on this system */"
+fi
+
+
+
+# Checks for maths libraries.
+
+{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
+$as_echo_n "checking for sqrt in -lm... " >&6; }
+if test "${ac_cv_lib_m_sqrt+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lm $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char sqrt ();
+int
+main ()
+{
+return sqrt ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_m_sqrt=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_m_sqrt=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
+$as_echo "$ac_cv_lib_m_sqrt" >&6; }
+if test "x$ac_cv_lib_m_sqrt" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBM 1
+_ACEOF
+
+ LIBS="-lm $LIBS"
+
+fi
+
+
+{ $as_echo "$as_me:$LINENO: checking for powf in -lmx" >&5
+$as_echo_n "checking for powf in -lmx... " >&6; }
+if test "${ac_cv_lib_mx_powf+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lmx $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char powf ();
+int
+main ()
+{
+return powf ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_mx_powf=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_mx_powf=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mx_powf" >&5
+$as_echo "$ac_cv_lib_mx_powf" >&6; }
+if test "x$ac_cv_lib_mx_powf" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_LIBMX 1
+_ACEOF
+
+ LIBS="-lmx $LIBS"
+
+fi
+
+
+# attempt to make the signal stuff work... also with GENERIC - later
+#if test x"$ac_cv_header_sys_signal_h" = xyes; then
+# AC_CHECK_FUNCS( sigemptyset sigaddset sigprocmask sigaction )
+# if test x"$ac_cv_func_sigemptyset" = xyes &&
+# test x"$ac_cv_func_sigaddset" = xyes &&
+# test x"$ac_cv_func_sigprocmask" = xyes &&
+# test x"$ac_cv_func_sigaction" = xyes; then
+# AC_DEFINE(
+#fi
+
+
+# do not assume gcc here, so no flags by default
+ADD_CFLAGS=""
+ADD_CPPFLAGS=""
+ADD_LDFLAGS=""
+LIBS="$LIBS"
+
+if test "${ac_cv_header_os2_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for os2.h" >&5
+$as_echo_n "checking for os2.h... " >&6; }
+if test "${ac_cv_header_os2_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_os2_h" >&5
+$as_echo "$ac_cv_header_os2_h" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking os2.h usability" >&5
+$as_echo_n "checking os2.h usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <os2.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking os2.h presence" >&5
+$as_echo_n "checking os2.h presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <os2.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: os2.h: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: os2.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: os2.h: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: os2.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: os2.h: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: os2.h: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: os2.h: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: os2.h: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: os2.h: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: os2.h: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: os2.h: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: os2.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: os2.h: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: os2.h: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: os2.h: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: os2.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for os2.h" >&5
+$as_echo_n "checking for os2.h... " >&6; }
+if test "${ac_cv_header_os2_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_header_os2_h=$ac_header_preproc
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_os2_h" >&5
+$as_echo "$ac_cv_header_os2_h" >&6; }
+
+fi
+if test "x$ac_cv_header_os2_h" = x""yes; then
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOS2"
+fi
+
+
+
+# If debugging is enabled then make warnings errors
+if test x"$debugging" = xenabled; then
+ ADD_CFLAGS="-g"
+ # gcc specific...
+ if test x"$GCC" = xyes; then
+ ADD_CFLAGS="$ADD_CFLAGS -Wall -fno-strict-aliasing"
+ if test x"$nagging" = xenabled; then
+ ADD_CFLAGS="$ADD_CFLAGS -Werror -pedantic -DPLAIN_C89"
+ fi
+ fi
+fi
+
+case $target in
+ i?86-*)
+
+cat >>confdefs.h <<\_ACEOF
+#define ABI_ALIGN_FUN 1
+_ACEOF
+
+ ;;
+esac
+
+{ $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
+$as_echo_n "checking for library containing gethostbyname... " >&6; }
+if test "${ac_cv_search_gethostbyname+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char gethostbyname ();
+int
+main ()
+{
+return gethostbyname ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' nsl socket ws2_32 wsock32; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_search_gethostbyname=$ac_res
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext
+ if test "${ac_cv_search_gethostbyname+set}" = set; then
+ break
+fi
+done
+if test "${ac_cv_search_gethostbyname+set}" = set; then
+ :
+else
+ ac_cv_search_gethostbyname=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
+$as_echo "$ac_cv_search_gethostbyname" >&6; }
+ac_res=$ac_cv_search_gethostbyname
+if test "$ac_res" != no; then
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+{ $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
+$as_echo_n "checking for library containing socket... " >&6; }
+if test "${ac_cv_search_socket+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char socket ();
+int
+main ()
+{
+return socket ();
+ ;
+ return 0;
+}
+_ACEOF
+for ac_lib in '' socket ws2_32 wsock32; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
+ else
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ fi
+ rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_search_socket=$ac_res
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext
+ if test "${ac_cv_search_socket+set}" = set; then
+ break
+fi
+done
+if test "${ac_cv_search_socket+set}" = set; then
+ :
+else
+ ac_cv_search_socket=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
+$as_echo "$ac_cv_search_socket" >&6; }
+ac_res=$ac_cv_search_socket
+if test "$ac_res" != no; then
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+fi
+
+
+s_altivec="synth_altivec dct64_altivec"
+s_i386="dct64_i386"
+s_i486="$s_i386 synth_i486 dct64_i486"
+s_i586="$s_i386 synth_i586"
+s_i586d="$s_i386 synth_i586_dither"
+s_dither="dnoise"
+s_3dnow="$s_i386 synth_3dnow dct64_3dnow equalizer_3dnow"
+s_3dnowext="$s_i386 dct64_3dnowext dct64_mmx tabinit_mmx synth_3dnowext"
+if test "x$layer3" = "xenabled"; then
+ s_3dnow="$s_3dnow dct36_3dnow"
+ s_3dnowext="$s_3dnowext dct36_3dnowext"
+fi
+s_mmx="$s_i386 dct64_mmx tabinit_mmx synth_mmx"
+s_sse="$s_i386 dct64_mmx tabinit_mmx dct64_sse dct64_sse_float synth_sse_float synth_stereo_sse_float synth_sse_s32 synth_stereo_sse_s32 "
+s_x86_64="dct64_x86_64 dct64_x86_64_float synth_x86_64_float synth_x86_64_s32 synth_stereo_x86_64_float synth_stereo_x86_64_s32"
+s_x86multi="getcpuflags"
+
+# choose optimized 16bit decoder for SSE, quality or fast
+# note: supporting deactivation of output formats for these decoders would need more logic here
+if test "x$integers" = "xquality"; then
+ s_sse="$s_sse synth_sse_accurate synth_stereo_sse_accurate"
+ s_x86_64="$s_x86_64 synth_x86_64_accurate synth_stereo_x86_64_accurate"
+else
+ s_sse="$s_sse synth_sse" # no stereo
+ s_x86_64="$s_x86_64 synth_x86_64 synth_stereo_x86_64"
+fi
+
+case $cpu_type in
+ generic)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
+ more_sources="$s_fpu"
+ ccalign=no
+ ;;
+ generic_dither)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_dither"
+ ccalign=no
+ ;;
+ generic_fpu | generic_float)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
+ more_sources="$s_fpu"
+ ccalign=no
+ ;;
+ generic_nofpu)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FIXED"
+ more_sources=
+ ccalign=no
+ ;;
+ altivec)
+ ADD_CFLAGS="$ADD_CFLAGS -maltivec -faltivec"
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DREAL_IS_FLOAT -DOPT_ALTIVEC"
+ more_sources="$s_altivec $s_fpu"
+ ;;
+ i386)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i386"
+ ccalign=no
+ ;;
+ i386_fpu)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i386"
+ ccalign=no
+ ;;
+ i386_nofpu)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FIXED"
+ more_sources="$s_i386"
+ ccalign=no
+ ;;
+ i486)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I486 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i486"
+ ccalign=no
+ ;;
+ i586)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i586"
+ ;;
+ i586_dither)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586_DITHER -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i586d $s_dither"
+ ;;
+ 3dnow)
+ # legacy 3dnow had the 3dnow paired with i586...
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_I586 -DOPT_3DNOW -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i586 $s_3dnow $s_x86multi "
+ ;;
+ 3dnow_alone)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOW -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_3dnow"
+ ;;
+ 3dnowext_alone)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_3dnowext"
+ ;;
+ 3dnowext)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_3DNOW -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_3dnowext $s_3dnow $s_x86multi"
+ ;;
+ mmx_alone|mmx)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MMX -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_mmx"
+ ;;
+ sse_alone|sse)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_SSE -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_sse"
+ ;;
+ x86)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_I386 -DOPT_I586 -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOWEXT -DOPT_SSE -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i386 $s_i586 $s_mmx $s_3dnow $s_3dnowext $s_sse $s_x86multi"
+ ;;
+ x86_dither)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_I386 -DOPT_I586 -DOPT_I586_DITHER -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOWEXT -DOPT_SSE -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i386 $s_i586 $s_i586d $s_dither $s_mmx $s_3dnow $s_3dnowext $s_sse $s_x86multi"
+ ;;
+ x86-64)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_X86_64 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_x86_64"
+ ;;
+ x86-64_dither)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_X86_64 -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_dither $s_x86_64"
+ ;;
+ x86-64_all) # for direct comparison... undocumented actually very similar to the above because of generic code being there in the hidden anyway
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_X86_64 -DOPT_GENERIC -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_dither $s_x86_64"
+ ;;
+ *)
+ { { $as_echo "$as_me:$LINENO: error: Unknown CPU type '$cpu_type'" >&5
+$as_echo "$as_me: error: Unknown CPU type '$cpu_type'" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+esac
+
+# Mac OS X specific linker flags
+case $cpu_type in
+ 3dnow|3dnow_alone|3dnowext|3dnowext_alone|mmx|mmx_alone|sse|sse_alone|x86|x86_dither)
+ case $target in
+ i386-apple-darwin8*)
+ ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-read_only_relocs,suppress"
+ ;;
+ i386-apple-darwin9*)
+ ADD_CFLAGS="$ADD_CFLAGS -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
+ ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -Wl,-classic_linker -Wl,-read_only_relocs,suppress"
+ ;;
+ esac
+ ;;
+esac
+
+for i in $more_sources
+do
+ DECODER_OBJ="$DECODER_OBJ $i.\$(OBJEXT)"
+ echo $DECODER_LOBJ | grep -q $i.lo || DECODER_LOBJ="$DECODER_LOBJ $i.lo"
+done
+
+
+
+
+if test x"$ccalign" = xyes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define CCALIGN 1
+_ACEOF
+
+fi
+
+
+
+# The full list of supported modules to check, first come, first serve.
+check_modules="alsa oss coreaudio sndio sun win32 esd jack portaudio pulse sdl nas arts dummy"
+# The final list.
+output_modules=
+
+check_forced=no
+check_failed=no
+if test "x$with_audio" != "x"; then
+ check_modules="`echo $with_audio|tr , ' '` dummy"
+ echo "Limiting outputs to build according to your preference: $check_modules"
+ check_forced=yes
+fi
+
+
+
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+ { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
+$as_echo "$PKG_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_path_PKG_CONFIG"; then
+ ac_pt_PKG_CONFIG=$PKG_CONFIG
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ case $ac_pt_PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
+if test -n "$ac_pt_PKG_CONFIG"; then
+ { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
+$as_echo "$ac_pt_PKG_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_pt_PKG_CONFIG" = x; then
+ PKG_CONFIG=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ PKG_CONFIG=$ac_pt_PKG_CONFIG
+ fi
+else
+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
+fi
+
+fi
+if test -n "$PKG_CONFIG"; then
+ _pkg_min_version=0.9.0
+ { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
+$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ PKG_CONFIG=""
+ fi
+
+fi
+
+# Now go through the modules to check and do the chores.
+for m in $check_modules
+do
+ case "$m" in
+ dummy)
+ { $as_echo "$as_me:$LINENO: checking if you are too dumbing dumb for the dummy" >&5
+$as_echo_n "checking if you are too dumbing dumb for the dummy... " >&6; }
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ output_modules="$output_modules dummy"
+ HAVE_DUMMY=yes
+ ;;
+ oss)
+
+
+
+for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+ if test "x${ac_cv_header_sys_soundcard_h}" = "xyes" \
+ -o "x${ac_cv_header_linux_soundcard_h}" = "xyes" \
+ -o "x${ac_cv_header_machine_soundcard_h}" = "xyes";
+ then
+ output_modules="$output_modules oss"
+ HAVE_OSS="yes"
+ else
+ check_failed=yes
+ fi
+ ;;
+ alsa)
+ ALSA_LIBS="-lasound"
+ # Check for ALSA
+ { $as_echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
+$as_echo_n "checking for snd_pcm_open in -lasound... " >&6; }
+if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lasound $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char snd_pcm_open ();
+int
+main ()
+{
+return snd_pcm_open ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_asound_snd_pcm_open=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_asound_snd_pcm_open=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
+$as_echo "$ac_cv_lib_asound_snd_pcm_open" >&6; }
+if test "x$ac_cv_lib_asound_snd_pcm_open" = x""yes; then
+ if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
+$as_echo_n "checking for alsa/asoundlib.h... " >&6; }
+if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
+$as_echo "$ac_cv_header_alsa_asoundlib_h" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking alsa/asoundlib.h usability" >&5
+$as_echo_n "checking alsa/asoundlib.h usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <alsa/asoundlib.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking alsa/asoundlib.h presence" >&5
+$as_echo_n "checking alsa/asoundlib.h presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <alsa/asoundlib.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: alsa/asoundlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: alsa/asoundlib.h: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: alsa/asoundlib.h: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: alsa/asoundlib.h: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: alsa/asoundlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: alsa/asoundlib.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for alsa/asoundlib.h" >&5
+$as_echo_n "checking for alsa/asoundlib.h... " >&6; }
+if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_alsa_asoundlib_h" >&5
+$as_echo "$ac_cv_header_alsa_asoundlib_h" >&6; }
+
+fi
+if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then
+ output_modules="$output_modules alsa" HAVE_ALSA="yes"
+else
+ { $as_echo "$as_me:$LINENO: WARNING: Found ALSA library but NOT header files on your system" >&5
+$as_echo "$as_me: WARNING: Found ALSA library but NOT header files on your system" >&2;}
+fi
+
+
+
+
+fi
+
+ if test "x$HAVE_ALSA" != xyes; then
+ check_failed=yes
+ fi
+ ;;
+ jack)
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for JACK" >&5
+$as_echo_n "checking for JACK... " >&6; }
+
+if test -n "$JACK_CFLAGS"; then
+ pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5
+ ($PKG_CONFIG --exists --print-errors "jack") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$JACK_LIBS"; then
+ pkg_cv_JACK_LIBS="$JACK_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5
+ ($PKG_CONFIG --exists --print-errors "jack") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "jack" 2>&1`
+ else
+ JACK_PKG_ERRORS=`$PKG_CONFIG --print-errors "jack" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$JACK_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ HAVE_JACK="no" check_failed=yes
+elif test $pkg_failed = untried; then
+ HAVE_JACK="no" check_failed=yes
+else
+ JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
+ JACK_LIBS=$pkg_cv_JACK_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ output_modules="$output_modules jack" HAVE_JACK="yes"
+fi
+ ;;
+ pulse)
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for PULSE" >&5
+$as_echo_n "checking for PULSE... " >&6; }
+
+if test -n "$PULSE_CFLAGS"; then
+ pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
+ ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$PULSE_LIBS"; then
+ pkg_cv_PULSE_LIBS="$PULSE_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
+ ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
+ else
+ PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$PULSE_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ HAVE_PULSE="no" check_failed=yes
+elif test $pkg_failed = untried; then
+ HAVE_PULSE="no" check_failed=yes
+else
+ PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
+ PULSE_LIBS=$pkg_cv_PULSE_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ output_modules="$output_modules pulse" HAVE_PULSE="yes"
+fi
+ ;;
+ esd)
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for ESD" >&5
+$as_echo_n "checking for ESD... " >&6; }
+
+if test -n "$ESD_CFLAGS"; then
+ pkg_cv_ESD_CFLAGS="$ESD_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
+ ($PKG_CONFIG --exists --print-errors "esound") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_ESD_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$ESD_LIBS"; then
+ pkg_cv_ESD_LIBS="$ESD_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
+ ($PKG_CONFIG --exists --print-errors "esound") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_ESD_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ ESD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
+ else
+ ESD_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$ESD_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ HAVE_ESD="no" check_failed=yes
+elif test $pkg_failed = untried; then
+ HAVE_ESD="no" check_failed=yes
+else
+ ESD_CFLAGS=$pkg_cv_ESD_CFLAGS
+ ESD_LIBS=$pkg_cv_ESD_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ output_modules="$output_modules esd" HAVE_ESD="yes"
+fi
+ ;;
+ portaudio)
+ # Remember: This looks only insane because you chose an insane tab width!
+ PORTAUDIO_LIBS="-lportaudio"
+ PORTAUDIO_CFLAGS=
+ case $target in
+ *-*-mingw32)
+ # We tested portaudio with MME
+ if test "x$HAVE_PORTAUDIO" != "xyes"; then
+ { $as_echo "$as_me:$LINENO: checking for Pa_Initialize in -lportaudio" >&5
+$as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
+if test "${ac_cv_lib_portaudio_Pa_Initialize+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lportaudio -lwinmm
+ $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char Pa_Initialize ();
+int
+main ()
+{
+return Pa_Initialize ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_portaudio_Pa_Initialize=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_portaudio_Pa_Initialize=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
+$as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
+if test "x$ac_cv_lib_portaudio_Pa_Initialize" = x""yes; then
+ if test "${ac_cv_header_portaudio_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for portaudio.h" >&5
+$as_echo_n "checking for portaudio.h... " >&6; }
+if test "${ac_cv_header_portaudio_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
+$as_echo "$ac_cv_header_portaudio_h" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking portaudio.h usability" >&5
+$as_echo_n "checking portaudio.h usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <portaudio.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking portaudio.h presence" >&5
+$as_echo_n "checking portaudio.h presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <portaudio.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for portaudio.h" >&5
+$as_echo_n "checking for portaudio.h... " >&6; }
+if test "${ac_cv_header_portaudio_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_header_portaudio_h=$ac_header_preproc
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
+$as_echo "$ac_cv_header_portaudio_h" >&6; }
+
+fi
+if test "x$ac_cv_header_portaudio_h" = x""yes; then
+ output_modules="$output_modules portaudio" HAVE_PORTAUDIO_WINMM="yes" HAVE_PORTAUDIO="yes"
+else
+ { $as_echo "$as_me:$LINENO: WARNING: Found PortAudio library but NOT header files on your system" >&5
+$as_echo "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
+fi
+
+
+ PORTAUDIO_LIBS="$PORTAUDIO_LIBS -lwinmm"
+
+else
+ HAVE_PORTAUDIO="no"
+fi
+
+ fi
+ ;;
+ *)
+ { $as_echo "$as_me:$LINENO: checking for Pa_Initialize in -lportaudio" >&5
+$as_echo_n "checking for Pa_Initialize in -lportaudio... " >&6; }
+if test "${ac_cv_lib_portaudio_Pa_Initialize+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lportaudio $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char Pa_Initialize ();
+int
+main ()
+{
+return Pa_Initialize ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_portaudio_Pa_Initialize=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_portaudio_Pa_Initialize=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
+$as_echo "$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
+if test "x$ac_cv_lib_portaudio_Pa_Initialize" = x""yes; then
+ if test "${ac_cv_header_portaudio_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for portaudio.h" >&5
+$as_echo_n "checking for portaudio.h... " >&6; }
+if test "${ac_cv_header_portaudio_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
+$as_echo "$ac_cv_header_portaudio_h" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking portaudio.h usability" >&5
+$as_echo_n "checking portaudio.h usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <portaudio.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking portaudio.h presence" >&5
+$as_echo_n "checking portaudio.h presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <portaudio.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: portaudio.h: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: portaudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for portaudio.h" >&5
+$as_echo_n "checking for portaudio.h... " >&6; }
+if test "${ac_cv_header_portaudio_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_header_portaudio_h=$ac_header_preproc
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
+$as_echo "$ac_cv_header_portaudio_h" >&6; }
+
+fi
+if test "x$ac_cv_header_portaudio_h" = x""yes; then
+ output_modules="$output_modules portaudio" HAVE_PORTAUDIO="yes"
+else
+ { $as_echo "$as_me:$LINENO: WARNING: Found PortAudio library but NOT header files on your system" >&5
+$as_echo "$as_me: WARNING: Found PortAudio library but NOT header files on your system" >&2;}
+fi
+
+
+
+
+fi
+
+ ;;
+ esac
+ if test "x$HAVE_PORTAUDIO" != xyes; then
+ check_failed=yes
+ else
+ # See if we have v19 or v18
+ { $as_echo "$as_me:$LINENO: checking for Pa_GetVersion in -lportaudio" >&5
+$as_echo_n "checking for Pa_GetVersion in -lportaudio... " >&6; }
+if test "${ac_cv_lib_portaudio_Pa_GetVersion+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lportaudio $PORTAUDIO_LIBS $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char Pa_GetVersion ();
+int
+main ()
+{
+return Pa_GetVersion ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_portaudio_Pa_GetVersion=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_portaudio_Pa_GetVersion=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_Pa_GetVersion" >&5
+$as_echo "$ac_cv_lib_portaudio_Pa_GetVersion" >&6; }
+if test "x$ac_cv_lib_portaudio_Pa_GetVersion" = x""yes; then
+ :
+else
+
+cat >>confdefs.h <<\_ACEOF
+#define PORTAUDIO18 1
+_ACEOF
+
+fi
+
+ fi
+ ;;
+ sdl)
+
+pkg_failed=no
+{ $as_echo "$as_me:$LINENO: checking for SDL" >&5
+$as_echo_n "checking for SDL... " >&6; }
+
+if test -n "$SDL_CFLAGS"; then
+ pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
+ ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$SDL_LIBS"; then
+ pkg_cv_SDL_LIBS="$SDL_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
+ ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; then
+ pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
+ else
+ SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$SDL_PKG_ERRORS" >&5
+
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ HAVE_SDL="no" check_failed=yes
+elif test $pkg_failed = untried; then
+ HAVE_SDL="no" check_failed=yes
+else
+ SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
+ SDL_LIBS=$pkg_cv_SDL_LIBS
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ output_modules="$output_modules sdl" HAVE_SDL="yes"
+fi
+ ;;
+ nas)
+ NAS_LIBS=-laudio
+ { $as_echo "$as_me:$LINENO: checking for AuOpenServer in -laudio" >&5
+$as_echo_n "checking for AuOpenServer in -laudio... " >&6; }
+if test "${ac_cv_lib_audio_AuOpenServer+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-laudio $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char AuOpenServer ();
+int
+main ()
+{
+return AuOpenServer ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_audio_AuOpenServer=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_audio_AuOpenServer=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuOpenServer" >&5
+$as_echo "$ac_cv_lib_audio_AuOpenServer" >&6; }
+if test "x$ac_cv_lib_audio_AuOpenServer" = x""yes; then
+ if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
+$as_echo_n "checking for audio/audiolib.h... " >&6; }
+if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
+$as_echo "$ac_cv_header_audio_audiolib_h" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking audio/audiolib.h usability" >&5
+$as_echo_n "checking audio/audiolib.h usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <audio/audiolib.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking audio/audiolib.h presence" >&5
+$as_echo_n "checking audio/audiolib.h presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <audio/audiolib.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: audio/audiolib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: audio/audiolib.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: audio/audiolib.h: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: audio/audiolib.h: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: audio/audiolib.h: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: audio/audiolib.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: audio/audiolib.h: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: audio/audiolib.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for audio/audiolib.h" >&5
+$as_echo_n "checking for audio/audiolib.h... " >&6; }
+if test "${ac_cv_header_audio_audiolib_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_header_audio_audiolib_h=$ac_header_preproc
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_audio_audiolib_h" >&5
+$as_echo "$ac_cv_header_audio_audiolib_h" >&6; }
+
+fi
+if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then
+ output_modules="$output_modules nas" HAVE_NAS="yes"
+else
+ { $as_echo "$as_me:$LINENO: WARNING: Found NAS library but NOT header files on your system" >&5
+$as_echo "$as_me: WARNING: Found NAS library but NOT header files on your system" >&2;}
+fi
+
+
+
+
+fi
+
+ if test "x$HAVE_NAS" != xyes; then
+ check_failed=yes
+ fi
+ ;;
+ win32)
+ # Check for windows ... and win32 audio
+ # Does not work... instead just check for header
+ # AC_CHECK_LIB( [winmm], [waveOutOpen] )
+ WIN32_LIBS=-lwinmm
+
+for ac_header in windows.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+ output_modules="$output_modules win32" HAVE_WIN32=yes
+else
+ HAVE_WIN32=no check_failed=yes
+fi
+
+done
+
+ ;;
+ sndio)
+ SNDIO_LIBS=-lsndio
+ { $as_echo "$as_me:$LINENO: checking for sio_open in -lsndio" >&5
+$as_echo_n "checking for sio_open in -lsndio... " >&6; }
+if test "${ac_cv_lib_sndio_sio_open+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsndio $LIBS"
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char sio_open ();
+int
+main ()
+{
+return sio_open ();
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_link") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then
+ ac_cv_lib_sndio_sio_open=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_cv_lib_sndio_sio_open=no
+fi
+
+rm -rf conftest.dSYM
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sndio_sio_open" >&5
+$as_echo "$ac_cv_lib_sndio_sio_open" >&6; }
+if test "x$ac_cv_lib_sndio_sio_open" = x""yes; then
+
+for ac_header in sndio.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+ output_modules="$output_modules sndio" HAVE_SNDIO="yes"
+fi
+
+done
+
+
+
+fi
+
+ if test "x$HAVE_SNDIO" != xyes; then
+ check_failed=yes
+ fi
+ ;;
+ sun)
+
+
+
+
+for ac_header in sun/audioio.h sys/audioio.h asm/audioio.h sys/audio.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+ if test "x${ac_cv_header_sun_audioio_h}" = "xyes" \
+ -o "x${ac_cv_header_sys_audioio_h}" = "xyes" \
+ -o "x${ac_cv_header_asm_audioio_h}" = "xyes";
+ then
+ output_modules="$output_modules sun"
+ HAVE_SUN="yes"
+ else
+ check_failed=yes
+ fi
+ ;;
+ coreaudio)
+ COREAUDIO_LIBS="-framework AudioToolbox -framework AudioUnit -framework CoreServices"
+
+
+
+for ac_header in AudioUnit/AudioUnit.h CoreServices/CoreServices.h AudioToolbox/AudioToolbox.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+ if test "x${ac_cv_header_AudioUnit_AudioUnit_h}" = "xyes" \
+ -a "x${ac_cv_header_CoreServices_CoreServices_h}" = "xyes" \
+ -a "x${ac_cv_header_AudioToolbox_AudioToolbox_h}" = "xyes";
+ then
+ if test x"$modules" = xdisabled; then
+ { $as_echo "$as_me:$LINENO: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&5
+$as_echo "$as_me: WARNING: Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer." >&2;}
+ buffer=disabled
+ fi
+ output_modules="$output_modules coreaudio"
+ HAVE_COREAUDIO="yes"
+ else
+ check_failed=yes
+ fi
+ ;;
+ arts)
+ { $as_echo "$as_me:$LINENO: checking for artsc" >&5
+$as_echo_n "checking for artsc... " >&6; }
+ if artsc-config; then
+ { $as_echo "$as_me:$LINENO: result: yes" >&5
+$as_echo "yes" >&6; }
+ output_modules="$output_modules arts"
+ HAVE_ARTS=yes
+ ARTS_LIBS=`artsc-config --libs`
+ ARTS_CFLAGS=`artsc-config --cflags`
+ else
+ { $as_echo "$as_me:$LINENO: result: no" >&5
+$as_echo "no" >&6; }
+ check_failed=yes
+ fi
+ ;;
+# from here on only forced tests, untested code
+ hp)
+ # What's the deal with that and alib?
+ UNSUPPORTED_AUDIO=yes
+ if test "${ac_cv_header_sys_audio_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for sys/audio.h" >&5
+$as_echo_n "checking for sys/audio.h... " >&6; }
+if test "${ac_cv_header_sys_audio_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_audio_h" >&5
+$as_echo "$ac_cv_header_sys_audio_h" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking sys/audio.h usability" >&5
+$as_echo_n "checking sys/audio.h usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <sys/audio.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking sys/audio.h presence" >&5
+$as_echo_n "checking sys/audio.h presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <sys/audio.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: sys/audio.h: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: sys/audio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: sys/audio.h: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: sys/audio.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: sys/audio.h: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: sys/audio.h: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: sys/audio.h: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: sys/audio.h: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: sys/audio.h: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: sys/audio.h: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: sys/audio.h: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: sys/audio.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: sys/audio.h: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: sys/audio.h: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: sys/audio.h: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: sys/audio.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for sys/audio.h" >&5
+$as_echo_n "checking for sys/audio.h... " >&6; }
+if test "${ac_cv_header_sys_audio_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_header_sys_audio_h=$ac_header_preproc
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_audio_h" >&5
+$as_echo "$ac_cv_header_sys_audio_h" >&6; }
+
+fi
+if test "x$ac_cv_header_sys_audio_h" = x""yes; then
+ output_modules="$output_modules hp" HAVE_HP=yes
+else
+ check_failed=yes
+fi
+
+
+ ;;
+ alib)
+ UNSUPPORTED_AUDIO=yes
+ # ALIB_CFLAGS="-I/opt/audio/include"
+ ALIB_LIBS=-lAlib
+ # These headers may not be all about audio but they are used.
+
+
+
+
+
+for ac_header in Alib.h CUlib.h netdb.h netinet/in.h netinet/tcp.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+ if test "x${ac_cv_header_Alib_h}" = xyes \
+ -a "x${ac_cv_header_CUlib_h}" = xyes \
+ -a "x${ac_cv_header_netdb_h}" = xyes \
+ -a "x${ac_cv_header_netinet_in_h}" = xyes \
+ -a "x${ac_cv_header_netinet_tcp_h}" = xyes
+ then
+ output_modules="$output_modules alib"
+ HAVE_ALIB=yes
+ else
+ check_failed=yes
+ fi
+ ;;
+ mint)
+ UNSUPPORTED_AUDIO=yes
+
+for ac_header in audios.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+ output_modules="$output_modules mint" HAVE_MINT=yes
+else
+ check_failes=yes
+fi
+
+done
+
+ ;;
+ aix)
+ UNSUPPORTED_AUDIO=yes
+
+for ac_header in sys/audio.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+ output_modules="$output_modules aix" HAVE_AIX=yes
+else
+ check_failed=yes
+fi
+
+done
+
+ ;;
+ os2)
+ UNSUPPORTED_AUDIO=yes
+ OS2_LIBS="-los2me -lsocket"
+
+
+for ac_header in os2.h os2me.h
+do
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
+$as_echo_n "checking $ac_header usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <$ac_header>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
+$as_echo_n "checking $ac_header presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <$ac_header>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
+$as_echo_n "checking for $ac_header... " >&6; }
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
+ $as_echo_n "(cached) " >&6
+else
+ eval "$as_ac_Header=\$ac_header_preproc"
+fi
+ac_res=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+
+fi
+as_val=`eval 'as_val=${'$as_ac_Header'}
+ $as_echo "$as_val"'`
+ if test "x$as_val" = x""yes; then
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+ if test "x${ac_cv_header_os2_h}" = xyes \
+ -a "x${ac_cv_header_os2me_h}" = xyes
+ then
+ output_modules="$output_modules os2"
+ HAVE_OS2=yes
+ else
+ check_failed=yes
+ fi
+ ;;
+ sgi)
+ UNSUPPORTED_AUDIO=yes
+ SGI_LIBS=-laudio
+ if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
+ { $as_echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
+$as_echo_n "checking for dmedia/audio.h... " >&6; }
+if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
+$as_echo "$ac_cv_header_dmedia_audio_h" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:$LINENO: checking dmedia/audio.h usability" >&5
+$as_echo_n "checking dmedia/audio.h usability... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+$ac_includes_default
+#include <dmedia/audio.h>
+_ACEOF
+rm -f conftest.$ac_objext
+if { (ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_compile") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then
+ ac_header_compiler=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_compiler=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:$LINENO: checking dmedia/audio.h presence" >&5
+$as_echo_n "checking dmedia/audio.h presence... " >&6; }
+cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+#include <dmedia/audio.h>
+_ACEOF
+if { (ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
+$as_echo "$ac_try_echo") >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } >/dev/null && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then
+ ac_header_preproc=yes
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_header_preproc=no
+fi
+
+rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
+ yes:no: )
+ { $as_echo "$as_me:$LINENO: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&2;}
+ ac_header_preproc=yes
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:$LINENO: WARNING: dmedia/audio.h: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: dmedia/audio.h: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: dmedia/audio.h: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: dmedia/audio.h: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: dmedia/audio.h: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: dmedia/audio.h: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: dmedia/audio.h: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: dmedia/audio.h: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&5
+$as_echo "$as_me: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&2;}
+ { $as_echo "$as_me:$LINENO: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&5
+$as_echo "$as_me: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&2;}
+ ( cat <<\_ASBOX
+## ------------------------------------------------- ##
+## Report this to mpg123-devel@lists.sourceforge.net ##
+## ------------------------------------------------- ##
+_ASBOX
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+{ $as_echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
+$as_echo_n "checking for dmedia/audio.h... " >&6; }
+if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_header_dmedia_audio_h=$ac_header_preproc
+fi
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
+$as_echo "$ac_cv_header_dmedia_audio_h" >&6; }
+
+fi
+if test "x$ac_cv_header_dmedia_audio_h" = x""yes; then
+ output_modules="$output_modules sgi" HAVE_SGI=yes
+else
+ check_failed=yes
+fi
+
+
+ ;;
+ *)
+ { { $as_echo "$as_me:$LINENO: error: Unsupported/-known output '$m' demanded!" >&5
+$as_echo "$as_me: error: Unsupported/-known output '$m' demanded!" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ esac
+done
+
+if test "x$check_forced" = xyes -a "x$UNSUPPORTED_AUDIO" = xyes; then
+ { $as_echo "$as_me:$LINENO: WARNING: You requested bulding of an unsupported audio module. Be prepared for happy hacking and please tell us about your experience!" >&5
+$as_echo "$as_me: WARNING: You requested bulding of an unsupported audio module. Be prepared for happy hacking and please tell us about your experience!" >&2;}
+fi
+
+if test "x$check_forced" = xyes -a "x$check_failed" = "xyes"; then
+ { { $as_echo "$as_me:$LINENO: error: One/some of your requested audio modules failed the test!" >&5
+$as_echo "$as_me: error: One/some of your requested audio modules failed the test!" >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+# When you extend check_modules, you should extend this:
+#for i in alsa oss coreaudio sndio sun win32 esd jack portaudio pulse sdl nas aix alib arts hp os2 sgi mint dummy; do echo $i; done |
+#perl -ne 'chomp; $big = uc($_); print <<EOT;
+#AC_SUBST(${big}_LIBS)
+#AC_SUBST(${big}_LDFLAGS)
+#AC_SUBST(${big}_CFLAGS)
+#AM_CONDITIONAL( [HAVE_$big], [test "x\$HAVE_$big" = xyes] )
+#EOT
+#'
+
+
+
+ if test "x$HAVE_ALSA" = xyes ; then
+ HAVE_ALSA_TRUE=
+ HAVE_ALSA_FALSE='#'
+else
+ HAVE_ALSA_TRUE='#'
+ HAVE_ALSA_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_OSS" = xyes ; then
+ HAVE_OSS_TRUE=
+ HAVE_OSS_FALSE='#'
+else
+ HAVE_OSS_TRUE='#'
+ HAVE_OSS_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_COREAUDIO" = xyes ; then
+ HAVE_COREAUDIO_TRUE=
+ HAVE_COREAUDIO_FALSE='#'
+else
+ HAVE_COREAUDIO_TRUE='#'
+ HAVE_COREAUDIO_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_SNDIO" = xyes ; then
+ HAVE_SNDIO_TRUE=
+ HAVE_SNDIO_FALSE='#'
+else
+ HAVE_SNDIO_TRUE='#'
+ HAVE_SNDIO_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_SUN" = xyes ; then
+ HAVE_SUN_TRUE=
+ HAVE_SUN_FALSE='#'
+else
+ HAVE_SUN_TRUE='#'
+ HAVE_SUN_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_WIN32" = xyes ; then
+ HAVE_WIN32_TRUE=
+ HAVE_WIN32_FALSE='#'
+else
+ HAVE_WIN32_TRUE='#'
+ HAVE_WIN32_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_ESD" = xyes ; then
+ HAVE_ESD_TRUE=
+ HAVE_ESD_FALSE='#'
+else
+ HAVE_ESD_TRUE='#'
+ HAVE_ESD_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_JACK" = xyes ; then
+ HAVE_JACK_TRUE=
+ HAVE_JACK_FALSE='#'
+else
+ HAVE_JACK_TRUE='#'
+ HAVE_JACK_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_PORTAUDIO" = xyes ; then
+ HAVE_PORTAUDIO_TRUE=
+ HAVE_PORTAUDIO_FALSE='#'
+else
+ HAVE_PORTAUDIO_TRUE='#'
+ HAVE_PORTAUDIO_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_PULSE" = xyes ; then
+ HAVE_PULSE_TRUE=
+ HAVE_PULSE_FALSE='#'
+else
+ HAVE_PULSE_TRUE='#'
+ HAVE_PULSE_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_SDL" = xyes ; then
+ HAVE_SDL_TRUE=
+ HAVE_SDL_FALSE='#'
+else
+ HAVE_SDL_TRUE='#'
+ HAVE_SDL_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_NAS" = xyes ; then
+ HAVE_NAS_TRUE=
+ HAVE_NAS_FALSE='#'
+else
+ HAVE_NAS_TRUE='#'
+ HAVE_NAS_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_AIX" = xyes ; then
+ HAVE_AIX_TRUE=
+ HAVE_AIX_FALSE='#'
+else
+ HAVE_AIX_TRUE='#'
+ HAVE_AIX_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_ALIB" = xyes ; then
+ HAVE_ALIB_TRUE=
+ HAVE_ALIB_FALSE='#'
+else
+ HAVE_ALIB_TRUE='#'
+ HAVE_ALIB_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_ARTS" = xyes ; then
+ HAVE_ARTS_TRUE=
+ HAVE_ARTS_FALSE='#'
+else
+ HAVE_ARTS_TRUE='#'
+ HAVE_ARTS_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_HP" = xyes ; then
+ HAVE_HP_TRUE=
+ HAVE_HP_FALSE='#'
+else
+ HAVE_HP_TRUE='#'
+ HAVE_HP_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_OS2" = xyes ; then
+ HAVE_OS2_TRUE=
+ HAVE_OS2_FALSE='#'
+else
+ HAVE_OS2_TRUE='#'
+ HAVE_OS2_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_SGI" = xyes ; then
+ HAVE_SGI_TRUE=
+ HAVE_SGI_FALSE='#'
+else
+ HAVE_SGI_TRUE='#'
+ HAVE_SGI_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_MINT" = xyes ; then
+ HAVE_MINT_TRUE=
+ HAVE_MINT_FALSE='#'
+else
+ HAVE_MINT_TRUE='#'
+ HAVE_MINT_FALSE=
+fi
+
+
+
+
+ if test "x$HAVE_DUMMY" = xyes ; then
+ HAVE_DUMMY_TRUE=
+ HAVE_DUMMY_FALSE='#'
+else
+ HAVE_DUMMY_TRUE='#'
+ HAVE_DUMMY_FALSE=
+fi
+
+
+# Did user choose default audio subsystem ?
+if test "x$with_default_audio" != "x"; then
+ default_output_module=$with_default_audio
+else
+ default_output_module=`echo "$output_modules" | $AWK '{ print $1 }'`
+fi
+
+# That's (beginning of) the list for mpg123's internal default.
+default_output_modules=$default_output_module
+
+OUTPUT_OBJ=
+OUTPUT_MOD=
+OUTPUT_CFLAGS=
+OUTPUT_LIBS=
+OUTPUT_LDFLAGS=
+
+# Setup the static build.
+if test "x$modules" = xdisabled
+then
+ echo "Preparing static output $default_output_module"
+ OUTPUT_MOD="$default_output_module"
+ OUTPUT_OBJ="output/$default_output_module.\$(OBJEXT)"
+ OUTPUT_CFLAGS=
+ OUTPUT_LIBS=
+ # That feels stupid... what about hashed arrays?
+ case $OUTPUT_MOD in
+ # Here's a script for that tedious list, perhaps to be outsourced together with the one in src/output/Makefile.am
+#for i in alsa coreaudio esd jack nas oss portaudio pulse sdl sndio sun win32 aix alib arts hp os2 sgi mint; do echo $i; done |
+#perl -ne 'chomp; $big = uc($_); print <<EOT;
+# $_)
+# OUTPUT_LIBS="\$${big}_LIBS"
+# OUTPUT_LDFLAGS="\$${big}_LDFLAGS"
+# OUTPUT_CFLAGS="\$${big}_CFLAGS"
+# ;;
+#EOT
+#'
+ alsa)
+ OUTPUT_LIBS="$ALSA_LIBS"
+ OUTPUT_LDFLAGS="$ALSA_LDFLAGS"
+ OUTPUT_CFLAGS="$ALSA_CFLAGS"
+ ;;
+ coreaudio)
+ OUTPUT_LIBS="$COREAUDIO_LIBS"
+ OUTPUT_LDFLAGS="$COREAUDIO_LDFLAGS"
+ OUTPUT_CFLAGS="$COREAUDIO_CFLAGS"
+ ;;
+ esd)
+ OUTPUT_LIBS="$ESD_LIBS"
+ OUTPUT_LDFLAGS="$ESD_LDFLAGS"
+ OUTPUT_CFLAGS="$ESD_CFLAGS"
+ ;;
+ jack)
+ OUTPUT_LIBS="$JACK_LIBS"
+ OUTPUT_LDFLAGS="$JACK_LDFLAGS"
+ OUTPUT_CFLAGS="$JACK_CFLAGS"
+ ;;
+ nas)
+ OUTPUT_LIBS="$NAS_LIBS"
+ OUTPUT_LDFLAGS="$NAS_LDFLAGS"
+ OUTPUT_CFLAGS="$NAS_CFLAGS"
+ ;;
+ oss)
+ OUTPUT_LIBS="$OSS_LIBS"
+ OUTPUT_LDFLAGS="$OSS_LDFLAGS"
+ OUTPUT_CFLAGS="$OSS_CFLAGS"
+ ;;
+ portaudio)
+ OUTPUT_LIBS="$PORTAUDIO_LIBS"
+ OUTPUT_LDFLAGS="$PORTAUDIO_LDFLAGS"
+ OUTPUT_CFLAGS="$PORTAUDIO_CFLAGS"
+ ;;
+ pulse)
+ OUTPUT_LIBS="$PULSE_LIBS"
+ OUTPUT_LDFLAGS="$PULSE_LDFLAGS"
+ OUTPUT_CFLAGS="$PULSE_CFLAGS"
+ ;;
+ sdl)
+ OUTPUT_LIBS="$SDL_LIBS"
+ OUTPUT_LDFLAGS="$SDL_LDFLAGS"
+ OUTPUT_CFLAGS="$SDL_CFLAGS"
+ ;;
+ sndio)
+ OUTPUT_LIBS="$SNDIO_LIBS"
+ OUTPUT_LDFLAGS="$SNDIO_LDFLAGS"
+ OUTPUT_CFLAGS="$SNDIO_CFLAGS"
+ ;;
+ sun)
+ OUTPUT_LIBS="$SUN_LIBS"
+ OUTPUT_LDFLAGS="$SUN_LDFLAGS"
+ OUTPUT_CFLAGS="$SUN_CFLAGS"
+ ;;
+ win32)
+ OUTPUT_LIBS="$WIN32_LIBS"
+ OUTPUT_LDFLAGS="$WIN32_LDFLAGS"
+ OUTPUT_CFLAGS="$WIN32_CFLAGS"
+ ;;
+ aix)
+ OUTPUT_LIBS="$AIX_LIBS"
+ OUTPUT_LDFLAGS="$AIX_LDFLAGS"
+ OUTPUT_CFLAGS="$AIX_CFLAGS"
+ ;;
+ alib)
+ OUTPUT_LIBS="$ALIB_LIBS"
+ OUTPUT_LDFLAGS="$ALIB_LDFLAGS"
+ OUTPUT_CFLAGS="$ALIB_CFLAGS"
+ ;;
+ arts)
+ OUTPUT_LIBS="$ARTS_LIBS"
+ OUTPUT_LDFLAGS="$ARTS_LDFLAGS"
+ OUTPUT_CFLAGS="$ARTS_CFLAGS"
+ ;;
+ hp)
+ OUTPUT_LIBS="$HP_LIBS"
+ OUTPUT_LDFLAGS="$HP_LDFLAGS"
+ OUTPUT_CFLAGS="$HP_CFLAGS"
+ ;;
+ os2)
+ OUTPUT_LIBS="$OS2_LIBS"
+ OUTPUT_LDFLAGS="$OS2_LDFLAGS"
+ OUTPUT_CFLAGS="$OS2_CFLAGS"
+ ;;
+ sgi)
+ OUTPUT_LIBS="$SGI_LIBS"
+ OUTPUT_LDFLAGS="$SGI_LDFLAGS"
+ OUTPUT_CFLAGS="$SGI_CFLAGS"
+ ;;
+ mint)
+ OUTPUT_LIBS="$MINT_LIBS"
+ OUTPUT_LDFLAGS="$MINT_LDFLAGS"
+ OUTPUT_CFLAGS="$MINT_CFLAGS"
+ ;;
+ esac
+else
+ # Now make a comma-separated list again... eliminating the possible duplicate and dummy.
+ for i in $output_modules
+ do
+ if test $i != $default_output_module && test $i != dummy; then
+ default_output_modules=$default_output_modules,$i
+ fi
+ done
+fi
+
+
+cat >>confdefs.h <<_ACEOF
+#define DEFAULT_OUTPUT_MODULE "$default_output_modules"
+_ACEOF
+
+
+
+
+
+
+
+
+
+
+CFLAGS="$ADD_CFLAGS $CFLAGS"
+if test x"$buffer" = xdisabled; then
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DNOXFERMEM"
+fi
+CPPFLAGS="$ADD_CPPFLAGS $CPPFLAGS"
+LDFLAGS="$ADD_LDFLAGS $LDFLAGS"
+
+# None chosen?
+if test "x$with_optimization" = "x"; then
+ if test x"$debugging" = xenabled; then
+ with_optimization="0"
+ else
+ # enable (gcc specific) default opts only with gcc
+ if test "x$GCC" = xyes; then
+ with_optimization="2"
+ else
+ with_optimization="0"
+ fi
+ fi
+fi
+
+case $with_optimization in
+ 0)
+ # No Optimizations
+ CFLAGS="$CFLAGS"
+ ;;
+ 1)
+ CFLAGS="-O $CFLAGS"
+ ;;
+ 2)
+ CFLAGS="-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
+ ;;
+ 3)
+ CFLAGS="-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
+ ;;
+ 4)
+ CFLAGS="-O4 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
+ ;;
+ *)
+ { { $as_echo "$as_me:$LINENO: error: Unknown optimizations level '$with_optimization'" >&5
+$as_echo "$as_me: error: Unknown optimizations level '$with_optimization'" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+esac
+
+if test "x$GCC" = xyes && echo "$CFLAGS" | grep -q 'mpreferred-stack-boundary='; then
+ case $cpu_type in
+ x86 | i586* | mmx | sse | 3dnow* | altivec)
+ { $as_echo "$as_me:$LINENO: WARNING: You are trying to mess with stack alignment. I know better. " >&5
+$as_echo "$as_me: WARNING: You are trying to mess with stack alignment. I know better. " >&2;}
+ CFLAGS="$CFLAGS -mpreferred-stack-boundary=4"
+ ;;
+ esac
+fi
+
+
+if test "x$with_seektable" = "x"; then
+ seektable=1000
+else
+ seektable=$with_seektable
+fi
+
+if test "$seektable" -gt 0; then
+
+cat >>confdefs.h <<\_ACEOF
+#define FRAME_INDEX 1
+_ACEOF
+
+fi
+# Define that always... also without frame index enabled.
+
+cat >>confdefs.h <<_ACEOF
+#define INDEX_SIZE $seektable
+_ACEOF
+
+
+
+# Do that here to prevent the above tests usign -lltdl...
+if test "x$modules" = xenabled; then
+ LIBS="-lltdl $LIBS"
+fi
+
+ac_config_files="$ac_config_files Makefile libmpg123.pc doc/Makefile src/Makefile src/output/Makefile src/libmpg123/Makefile src/libmpg123/mpg123.h src/libmpg123/libmpg123.sym"
+
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) $as_unset $ac_var ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `set' does not quote correctly, so add quotes (double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \).
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ test "x$cache_file" != "x/dev/null" &&
+ { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ cat confcache >$cache_file
+ else
+ { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_MODULES_TRUE}" && test -z "${HAVE_MODULES_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MODULES\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_MODULES\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_ALSA_TRUE}" && test -z "${HAVE_ALSA_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ALSA\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_ALSA\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_OSS_TRUE}" && test -z "${HAVE_OSS_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_OSS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_OSS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_COREAUDIO_TRUE}" && test -z "${HAVE_COREAUDIO_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_COREAUDIO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_COREAUDIO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_SNDIO_TRUE}" && test -z "${HAVE_SNDIO_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SNDIO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_SNDIO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_SUN_TRUE}" && test -z "${HAVE_SUN_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SUN\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_SUN\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_WIN32\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_WIN32\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_ESD_TRUE}" && test -z "${HAVE_ESD_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ESD\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_ESD\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_JACK_TRUE}" && test -z "${HAVE_JACK_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_JACK\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_JACK\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_PORTAUDIO_TRUE}" && test -z "${HAVE_PORTAUDIO_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PORTAUDIO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_PORTAUDIO\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_PULSE_TRUE}" && test -z "${HAVE_PULSE_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PULSE\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_PULSE\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SDL\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_SDL\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_NAS_TRUE}" && test -z "${HAVE_NAS_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NAS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_NAS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_AIX_TRUE}" && test -z "${HAVE_AIX_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AIX\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_AIX\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_ALIB_TRUE}" && test -z "${HAVE_ALIB_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ALIB\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_ALIB\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_ARTS_TRUE}" && test -z "${HAVE_ARTS_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ARTS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_ARTS\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_HP_TRUE}" && test -z "${HAVE_HP_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_HP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_HP\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_OS2_TRUE}" && test -z "${HAVE_OS2_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_OS2\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_OS2\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_SGI_TRUE}" && test -z "${HAVE_SGI_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SGI\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_SGI\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_MINT_TRUE}" && test -z "${HAVE_MINT_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_MINT\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_MINT\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+if test -z "${HAVE_DUMMY_TRUE}" && test -z "${HAVE_DUMMY_FALSE}"; then
+ { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DUMMY\" was never defined.
+Usually this means the macro was only invoked conditionally." >&5
+$as_echo "$as_me: error: conditional \"HAVE_DUMMY\" was never defined.
+Usually this means the macro was only invoked conditionally." >&2;}
+ { (exit 1); exit 1; }; }
+fi
+
+: ${CONFIG_STATUS=./config.status}
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
+cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+## --------------------- ##
+## M4sh Initialization. ##
+## --------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+esac
+
+fi
+
+
+
+
+# PATH needs CR
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ as_unset=unset
+else
+ as_unset=false
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+case $0 in
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ { (exit 1); exit 1; }
+fi
+
+# Work around bugs in pre-3.0 UWIN ksh.
+for as_var in ENV MAIL MAILPATH
+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+
+# Name of the executable.
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# CDPATH.
+$as_unset CDPATH
+
+
+
+ as_lineno_1=$LINENO
+ as_lineno_2=$LINENO
+ test "x$as_lineno_1" != "x$as_lineno_2" &&
+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
+
+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
+ # uniformly replaced by the line number. The first 'sed' inserts a
+ # line-number line after each line using $LINENO; the second 'sed'
+ # does the real work. The second script uses 'N' to pair each
+ # line-number line with the line containing $LINENO, and appends
+ # trailing '-' during substitution so that $LINENO is not a special
+ # case at line end.
+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
+ # scripts with optimization help from Paolo Bonzini. Blame Lee
+ # E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
+ { (exit 1); exit 1; }; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in
+-n*)
+ case `echo 'x\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ *) ECHO_C='\c';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p=:
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+
+# Save the log message, to keep $[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by mpg123 $as_me 1.8.1, which was
+generated by GNU Autoconf 2.63. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_commands="$ac_config_commands"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files from templates according to the
+current configuration.
+
+Usage: $0 [OPTION]... [FILE]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+ --header=FILE[:TEMPLATE]
+ instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Configuration commands:
+$config_commands
+
+Report bugs to <bug-autoconf@gnu.org>."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_version="\\
+mpg123 config.status 1.8.1
+configured by $0, generated by GNU Autoconf 2.63,
+ with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright (C) 2008 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+AWK='$AWK'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h)
+ # Conflict between --help and --header
+ { $as_echo "$as_me: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&2
+ { (exit 1); exit 1; }; };;
+ --help | --hel | -h )
+ $as_echo "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) { $as_echo "$as_me: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&2
+ { (exit 1); exit 1; }; } ;;
+
+ *) ac_config_targets="$ac_config_targets $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ $as_echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+#
+# INIT-COMMANDS
+#
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
+
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
+enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
+AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
+DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
+OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
+macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
+macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
+pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
+enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
+host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
+host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
+host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
+build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
+build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
+build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
+SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
+Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
+GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
+EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
+FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
+LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
+NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
+LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
+max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
+ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
+exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
+lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
+lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
+lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
+reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
+reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
+file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
+AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
+AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
+STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
+RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
+old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
+CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
+compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
+GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
+objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
+SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
+ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
+MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
+lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
+lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
+lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
+lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
+need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
+DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
+NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
+LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
+OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
+OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
+libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
+shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
+enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
+export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
+whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
+compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
+old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
+allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
+no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
+inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
+link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
+fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
+always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
+export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
+include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
+prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
+variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
+need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
+need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
+version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
+runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
+shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
+shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
+libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
+library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
+soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
+postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
+sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
+sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
+enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
+enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
+enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
+old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
+striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
+
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# Quote evaled strings.
+for var in SED \
+GREP \
+EGREP \
+FGREP \
+LD \
+NM \
+LN_S \
+lt_SP2NL \
+lt_NL2SP \
+reload_flag \
+deplibs_check_method \
+file_magic_cmd \
+AR \
+AR_FLAGS \
+STRIP \
+RANLIB \
+CC \
+CFLAGS \
+compiler \
+lt_cv_sys_global_symbol_pipe \
+lt_cv_sys_global_symbol_to_cdecl \
+lt_cv_sys_global_symbol_to_c_name_address \
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
+SHELL \
+ECHO \
+lt_prog_compiler_no_builtin_flag \
+lt_prog_compiler_wl \
+lt_prog_compiler_pic \
+lt_prog_compiler_static \
+lt_cv_prog_compiler_c_o \
+need_locks \
+DSYMUTIL \
+NMEDIT \
+LIPO \
+OTOOL \
+OTOOL64 \
+shrext_cmds \
+export_dynamic_flag_spec \
+whole_archive_flag_spec \
+compiler_needs_object \
+with_gnu_ld \
+allow_undefined_flag \
+no_undefined_flag \
+hardcode_libdir_flag_spec \
+hardcode_libdir_flag_spec_ld \
+hardcode_libdir_separator \
+fix_srcfile_path \
+exclude_expsyms \
+include_expsyms \
+file_list_spec \
+variables_saved_for_relink \
+libname_spec \
+library_names_spec \
+soname_spec \
+finish_eval \
+old_striplib \
+striplib; do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Double-quote double-evaled strings.
+for var in reload_cmds \
+old_postinstall_cmds \
+old_postuninstall_cmds \
+old_archive_cmds \
+extract_expsyms_cmds \
+old_archive_from_new_cmds \
+old_archive_from_expsyms_cmds \
+archive_cmds \
+archive_expsym_cmds \
+module_cmds \
+module_expsym_cmds \
+export_symbols_cmds \
+prelink_cmds \
+postinstall_cmds \
+postuninstall_cmds \
+finish_cmds \
+sys_lib_search_path_spec \
+sys_lib_dlsearch_path_spec; do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Fix-up fallback echo if it was mangled by the above quoting rules.
+case \$lt_ECHO in
+*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
+ ;;
+esac
+
+ac_aux_dir='$ac_aux_dir'
+xsi_shell='$xsi_shell'
+lt_shell_append='$lt_shell_append'
+
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+
+ PACKAGE='$PACKAGE'
+ VERSION='$VERSION'
+ TIMESTAMP='$TIMESTAMP'
+ RM='$RM'
+ ofile='$ofile'
+
+
+
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "libmpg123.pc") CONFIG_FILES="$CONFIG_FILES libmpg123.pc" ;;
+ "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+ "src/output/Makefile") CONFIG_FILES="$CONFIG_FILES src/output/Makefile" ;;
+ "src/libmpg123/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmpg123/Makefile" ;;
+ "src/libmpg123/mpg123.h") CONFIG_FILES="$CONFIG_FILES src/libmpg123/mpg123.h" ;;
+ "src/libmpg123/libmpg123.sym") CONFIG_FILES="$CONFIG_FILES src/libmpg123/libmpg123.sym" ;;
+
+ *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
+$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
+ { (exit 1); exit 1; }; };;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp=
+ trap 'exit_status=$?
+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
+' 0
+ trap '{ (exit 1); exit 1; }' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} ||
+{
+ $as_echo "$as_me: cannot create a temporary directory in ." >&2
+ { (exit 1); exit 1; }
+}
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=' '
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
+$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\).*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\).*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = ""
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
+ || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
+$as_echo "$as_me: error: could not setup config files machinery" >&2;}
+ { (exit 1); exit 1; }; }
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove $(srcdir),
+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=/{
+s/:*\$(srcdir):*/:/
+s/:*\${srcdir}:*/:/
+s/:*@srcdir@:*/:/
+s/^\([^=]*=[ ]*\):*/\1/
+s/:*$//
+s/^[^=]*=[ ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+_ACEOF
+
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+ ac_t=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_t"; then
+ break
+ elif $ac_last_try; then
+ { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
+$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
+ { (exit 1); exit 1; }; }
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any. Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[ ]*#[ ]*define[ ][ ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ for (key in D) D_is_set[key] = 1
+ FS = ""
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+ line = \$ 0
+ split(line, arg, " ")
+ if (arg[1] == "#") {
+ defundef = arg[2]
+ mac1 = arg[3]
+ } else {
+ defundef = substr(arg[1], 2)
+ mac1 = arg[2]
+ }
+ split(mac1, mac2, "(") #)
+ macro = mac2[1]
+ prefix = substr(line, 1, index(line, defundef) - 1)
+ if (D_is_set[macro]) {
+ # Preserve the white space surrounding the "#".
+ print prefix "define", macro P[macro] D[macro]
+ next
+ } else {
+ # Replace #undef with comments. This is necessary, for example,
+ # in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ if (defundef == "undef") {
+ print "/*", prefix defundef, macro, "*/"
+ next
+ }
+ }
+}
+{ print }
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
+$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
+ { (exit 1); exit 1; }; }
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
+$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
+ { (exit 1); exit 1; }; };;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
+$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
+ { (exit 1); exit 1; }; };;
+ esac
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ ac_file_inputs="$ac_file_inputs '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`$as_echo "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$tmp/stdin" \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; } ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ { as_dir="$ac_dir"
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
+ { (exit 1); exit 1; }; }; }
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p
+'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; }
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined." >&2;}
+
+ rm -f "$tmp/stdin"
+ case $ac_file in
+ -) cat "$tmp/out" && rm -f "$tmp/out";;
+ *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
+ esac \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; }
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+ if test x"$ac_file" != x-; then
+ {
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
+ } >"$tmp/config.h" \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; }
+ if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
+ { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
+ else
+ rm -f "$ac_file"
+ mv "$tmp/config.h" "$ac_file" \
+ || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
+$as_echo "$as_me: error: could not create $ac_file" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+ else
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
+ || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
+$as_echo "$as_me: error: could not create -" >&2;}
+ { (exit 1); exit 1; }; }
+ fi
+# Compute "$ac_file"'s index in $config_headers.
+_am_arg="$ac_file"
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
+$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$_am_arg" : 'X\(//\)[^/]' \| \
+ X"$_am_arg" : 'X\(//\)$' \| \
+ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$_am_arg" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`/stamp-h$_am_stamp_count
+ ;;
+
+ :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
+$as_echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+ esac
+
+
+ case $ac_file$ac_mode in
+ "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
+# are listed without --file. Let's play safe and only enable the eval
+# if we detect the quoting.
+case $CONFIG_FILES in
+*\'*) eval set x "$CONFIG_FILES" ;;
+*) set x $CONFIG_FILES ;;
+esac
+shift
+for mf
+do
+ # Strip MF so we end up with the name of the file.
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile or not.
+ # We used to match only the files named `Makefile.in', but
+ # some people rename them; so instead we look at the file content.
+ # Grep'ing the first line is not enough: some people post-process
+ # each Makefile.in and add a new line on top of each file to say so.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+ dirpart=`$as_dirname -- "$mf" ||
+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$mf" : 'X\(//\)[^/]' \| \
+ X"$mf" : 'X\(//\)$' \| \
+ X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$mf" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
+ # simplest approach to changing $(DEPDIR) to its actual value in the
+ # expansion.
+ for file in `sed -n "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`$as_dirname -- "$file" ||
+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$file" : 'X\(//\)[^/]' \| \
+ X"$file" : 'X\(//\)$' \| \
+ X"$file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ { as_dir=$dirpart/$fdir
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
+$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
+ { (exit 1); exit 1; }; }; }
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+done
+ ;;
+ "libtool":C)
+
+ # See if we are running on zsh, and set the options which allow our
+ # commands through without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+
+ cfgfile="${ofile}T"
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+ $RM "$cfgfile"
+
+ cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+# The names of the tagged configurations supported by this script.
+available_tags=""
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# Assembler program.
+AS=$AS
+
+# DLL creation program.
+DLLTOOL=$DLLTOOL
+
+# Object dumper program.
+OBJDUMP=$OBJDUMP
+
+# Which release of libtool.m4 was used?
+macro_version=$macro_version
+macro_revision=$macro_revision
+
+# What type of objects to build.
+pic_mode=$pic_mode
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# A sed program that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="\$SED -e 1s/^X//"
+
+# A grep program that handles long lines.
+GREP=$lt_GREP
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# A literal string matcher.
+FGREP=$lt_FGREP
+
+# A BSD- or MS-compatible name lister.
+NM=$lt_NM
+
+# Whether we need soft or hard links.
+LN_S=$lt_LN_S
+
+# What is the maximum length of a command?
+max_cmd_len=$max_cmd_len
+
+# Object file suffix (normally "o").
+objext=$ac_objext
+
+# Executable file suffix (normally "").
+exeext=$exeext
+
+# whether the shell understands "unset".
+lt_unset=$lt_unset
+
+# turn spaces into newlines.
+SP2NL=$lt_lt_SP2NL
+
+# turn newlines into spaces.
+NL2SP=$lt_lt_NL2SP
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == "file_magic".
+file_magic_cmd=$lt_file_magic_cmd
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A symbol stripping program.
+STRIP=$lt_STRIP
+
+# Commands used to install an old-style archive.
+RANLIB=$lt_RANLIB
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# A C compiler.
+LTCC=$lt_CC
+
+# LTCC compiler flags.
+LTCFLAGS=$lt_CFLAGS
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration.
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair.
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# Transform the output of nm in a C name address pair when lib prefix is needed.
+global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# An echo program that does not interpret backslashes.
+ECHO=$lt_ECHO
+
+# Used to examine libraries when file_magic_cmd begins with "file".
+MAGIC_CMD=$MAGIC_CMD
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
+DSYMUTIL=$lt_DSYMUTIL
+
+# Tool to change global to local symbols on Mac OS X.
+NMEDIT=$lt_NMEDIT
+
+# Tool to manipulate fat objects and archives on Mac OS X.
+LIPO=$lt_LIPO
+
+# ldd/readelf like tool for Mach-O binaries on Mac OS X.
+OTOOL=$lt_OTOOL
+
+# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
+OTOOL64=$lt_OTOOL64
+
+# Old archive suffix (normally "a").
+libext=$libext
+
+# Shared library suffix (normally ".so").
+shrext_cmds=$lt_shrext_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at link time.
+variables_saved_for_relink=$lt_variables_saved_for_relink
+
+# Do we need the "lib" prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Library versioning type.
+version_type=$version_type
+
+# Shared library runtime path variable.
+runpath_var=$runpath_var
+
+# Shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Command to use after installation of a shared archive.
+postinstall_cmds=$lt_postinstall_cmds
+
+# Command to use after uninstallation of a shared archive.
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# As "finish_cmds", except a single script fragment to be evaled but
+# not shown.
+finish_eval=$lt_finish_eval
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Compile-time system search path for libraries.
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries.
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# Commands used to build an old-style archive.
+old_archive_cmds=$lt_old_archive_cmds
+
+# A language specific compiler.
+CC=$lt_compiler
+
+# Is the compiler the GNU compiler?
+with_gcc=$GCC
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc
+
+# Whether or not to disallow shared libs when runtime libs are static.
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec
+
+# Whether the compiler copes with passing no objects directly.
+compiler_needs_object=$lt_compiler_needs_object
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+
+# Commands used to build a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+
+# Commands used to build a loadable module if different from building
+# a shared archive.
+module_cmds=$lt_module_cmds
+module_expsym_cmds=$lt_module_expsym_cmds
+
+# Whether we are building with GNU ld or not.
+with_gnu_ld=$lt_with_gnu_ld
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that enforces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+
+# If ld is used when linking, flag to hardcode \$libdir into a binary
+# during linking. This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
+
+# Whether we need a single "-rpath" flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator
+
+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
+# DIR into the resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
+# DIR into the resulting binary and the resulting library dependency is
+# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
+# library is relocated.
+hardcode_direct_absolute=$hardcode_direct_absolute
+
+# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+# into the resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+# into the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Set to "yes" if building a shared library automatically hardcodes DIR
+# into the library and all subsequent libraries and executables linked
+# against it.
+hardcode_automatic=$hardcode_automatic
+
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$inherit_rpath
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=$lt_fix_srcfile_path
+
+# Set to "yes" if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms
+
+# Commands necessary for linking programs (against libraries) with templates.
+prelink_cmds=$lt_prelink_cmds
+
+# Specify filename containing input files.
+file_list_spec=$lt_file_list_spec
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+ case $host_os in
+ aix3*)
+ cat <<\_LT_EOF >> "$cfgfile"
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+_LT_EOF
+ ;;
+ esac
+
+
+ltmain="$ac_aux_dir/ltmain.sh"
+
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ case $xsi_shell in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result="${1##*/}"
+}
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+ func_basename_result="${1##*/}"
+}
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+func_stripname ()
+{
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
+ # positional parameters, so assign one to ordinary parameter first.
+ func_stripname_result=${3}
+ func_stripname_result=${func_stripname_result#"${1}"}
+ func_stripname_result=${func_stripname_result%"${2}"}
+}
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=${1%%=*}
+ func_opt_split_arg=${1#*=}
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ case ${1} in
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
+ *) func_lo2o_result=${1} ;;
+ esac
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=${1%.*}.lo
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=$(( $* ))
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=${#1}
+}
+
+_LT_EOF
+ ;;
+ *) # Bourne compatible functions.
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
+}
+
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+# func_strip_suffix prefix name
+func_stripname ()
+{
+ case ${2} in
+ .*) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
+ *) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
+ esac
+}
+
+# sed scripts:
+my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
+my_sed_long_arg='1s/^-[^=]*=//'
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
+ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=`expr "$@"`
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
+}
+
+_LT_EOF
+esac
+
+case $lt_shell_append in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$1+=\$2"
+}
+_LT_EOF
+ ;;
+ *)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$1=\$$1\$2"
+}
+
+_LT_EOF
+ ;;
+ esac
+
+
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ mv -f "$cfgfile" "$ofile" ||
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+
+ ;;
+
+ esac
+done # for ac_tag
+
+
+{ (exit 0); exit 0; }
+_ACEOF
+chmod +x $CONFIG_STATUS
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+ { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
+ { (exit 1); exit 1; }; }
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = yes &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || { (exit 1); exit 1; }
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
+
+
+
+
+echo "
+ $PACKAGE_NAME $PACKAGE_VERSION
+
+ Install path ............ $prefix
+ CPU Optimisation......... $cpu_type
+ Compiler Optimization ... $with_optimization
+ Gapless Support ......... $gapless
+ Debugging ............... $debugging
+ Seek table size ......... $seektable
+ FIFO support ............ $fifo
+ Buffer .................. $buffer
+ Network (http streams) .. $network
+ IPv6 (getaddrinfo) ...... $ipv6
+ File offset (if needed) . $ac_cv_sys_file_offset_bits
+ Alignment checks ........ $aligncheck"
+if test x"$aligncheck" = xenabled; then
+ if test x"$ccalign" != xyes; then
+ echo " (without effect since special alignment is not employed)"
+ fi
+ if test x"$GCC" = xyes; then
+ echo " (note that newer gcc 4.x versions do not use/need the align check)"
+ fi
+fi
+echo -n "
+ Core libmpg123 features:
+ Integer conversion ...... $integers
+ Layer I ................. $layer1
+ Layer II ................ $layer2
+ Layer III ............... $layer3
+ NtoM resampling ......... $ntom
+ downsampled decoding .... $downsample
+ Feeder/buffered input ... $feeder
+ ID3v2 parsing ........... $id3v2
+ String API .............. $string
+ ICY parsing/conversion .. $icy
+ Error/warning messages .. $messages
+ Output formats (nofpu will disable all but 16 or 8 bit!):
+ 8 bit integer ........... $int8
+ 16 bit integer .......... $int16
+ 32 bit integer .......... $int32
+ real (32 bit float) ..... $real
+"
+# just an empty line
+echo
+
+echo " Modules ................. $modules"
+echo " Checked audio modules ... $check_modules
+ Detected audio support ..$output_modules
+ Default output module ... $default_output_module
+"
+if test x"$modules" = xdisabled; then
+echo "The _single_ active output module is being statically linked in.
+"
+fi
+if test x"$with_optimization" = x0; then
+ echo "No optimization flags chosen, make sure you have something basic in your CFLAGS at least...
+"
+fi
+if test x"$debugging" = xenabled; then
+ echo "CFLAGS='$CFLAGS'"
+ echo "LIBS='$LIBS'"
+else
+ echo "Next type 'make' and then 'make install'."
+fi
diff --git a/configure.ac b/configure.ac
new file mode 100755
index 0000000..354b741
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,1800 @@
+dnl configure.ac: source for the configure script
+
+dnl copyright by the mpg123 project - free software under the terms of the LGPL 2.1
+dnl see COPYING and AUTHORS files in distribution or http://mpg123.org
+dnl initially written by Nicholas J. Humfrey
+
+dnl Require autoconf version >= 2.57
+AC_PREREQ(2.57)
+
+
+dnl ############# Initialisation
+
+AC_INIT([mpg123], [1.8.1], [mpg123-devel@lists.sourceforge.net])
+LIBMPG123_VERSION=18:12:18
+AC_SUBST(LIBMPG123_VERSION)
+
+AC_CONFIG_SRCDIR(src/mpg123.c)
+AC_CONFIG_AUX_DIR(build)
+AC_CONFIG_SRCDIR(doc)
+AC_CANONICAL_TARGET
+
+dnl Version 1.7 of automake is recommended
+AM_INIT_AUTOMAKE(1.7)
+AM_CONFIG_HEADER(src/config.h)
+
+
+# You get strange symptoms like jack module build failing because the AC_C_CONST failed to detect the working const support.
+# In that case, the test failed because -Werror, not because no const there...
+# After looking again, there are possibly more tests being obscured by false failures.
+AC_MSG_CHECKING([for -Werror in CFLAGS (It breaks tests)])
+if echo "$CFLAGS" | grep Werror; then
+ AC_MSG_RESULT([yes])
+ AC_MSG_ERROR([I refuse to run with -Werror in CFLAGS. That breaks tests and makes this configure bogus.
+If you want paranoid compilation, use --enable-nagging option, which adds -Werror for gcc.
+Also note that you shall not run make distcheck after configuring with --enable-nagging.
+distcheck uses the generated CFLAGS...])
+else
+ AC_MSG_RESULT([no])
+fi
+
+buffer=enabled # try to build with buffer by default
+
+dnl ############# Compiler and tools Checks
+
+LT_LDFLAGS=-export-dynamic
+be_static=no
+all_static=no
+AC_MSG_CHECKING([if you are up to something totally static with LDFLAGS/CFLAGS])
+for f in $LDFLAGS $CFLAGS
+do
+ case "$f" in
+ -all-static)
+ be_static=yes
+ all_static=yes
+ ;;
+ -static)
+ be_static=yes
+ ;;
+ esac
+done
+if test "x$be_static" = xyes; then
+ AC_MSG_RESULT([yes])
+ LT_LDFLAGS=-all-static
+else
+ AC_MSG_RESULT([no])
+fi
+if test "x$all_static" = xyes; then
+ AC_MSG_WARN( Use -static in LDFLAGS for all-static linking! Your compiler may blow up on that -all-static. )
+fi
+
+AM_PROG_AS
+AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_INSTALL
+dnl "Checking for egrep is broken after removal of libltdl stuff... checks use $EGREP, so searching it here."
+AC_PROG_EGREP
+AC_C_CONST
+AC_INLINE
+
+
+dnl ############# Use Libtool for dynamic module loading
+
+modules=auto
+OUTPUT_OBJ="module.\$(OBJEXT)"
+AC_ARG_ENABLE(modules,
+[ --enable-modules=[no/yes] dynamically loadable output modules],
+[
+ if test "x$enableval" = xyes
+ then
+ modules=enabled
+ else
+ modules=disabled
+ fi
+],
+[
+ if test "x$be_static" = "xyes"; then
+ modules=disabled
+ else
+ modules=auto
+ fi
+])
+
+dnl We only want shared libraries by default
+AC_DISABLE_STATIC
+AC_ENABLE_SHARED
+
+if test x"$enable_shared" = xno; then
+ modules=disabled
+ LT_LDFLAGS=
+else
+ AC_DEFINE(DYNAMIC_BUILD, 1, [ Define if building with dynamcally linked libmpg123])
+fi
+
+if test x"$modules" = xdisabled
+then
+ echo "Modules disabled, not checking for libltdl."
+else
+ have_ltdl=no
+ AC_CHECK_LIB( [ltdl], [lt_dlinit],
+ [ AC_CHECK_HEADER( [ltdl.h],
+ [
+ have_ltdl=yes
+ AC_DEFINE(HAVE_LTDL, 1, [ Define if libltdl is available ])
+ ],
+ [
+ AC_MSG_WARN([Found ltdl library but NOT the header file on your system])
+ ] )
+ ],
+ [
+ AC_MSG_WARN([ltdl library not found])
+ ]
+ )
+ if test x"$modules" = xenabled -a x"$have_ltdl" = xno; then
+ AC_MSG_ERROR([Modules enabled but no libltdl found! This will not work...])
+ fi
+ if test x"$modules" = xauto; then
+ if test x"$have_ltdl" = xyes; then
+ modules=enabled
+ echo "We found libltdl: Modules enabled."
+ else
+ echo "We did not find libltdl: Modules disabled."
+ modules=disabled
+ fi
+ fi
+fi
+
+if test x"$modules" = xdisabled
+then
+ echo "Modules disabled."
+else
+# Enable module support in source code
+AC_DEFINE( USE_MODULES, 1, [Define if modules are enabled] )
+fi
+
+dnl Configure libtool
+
+AC_LIBTOOL_WIN32_DLL
+AM_PROG_LIBTOOL
+
+if test x"$modules" = xdisabled
+then
+ echo "Modules still disabled..."
+ MODULE_OBJ="legacy_module.\$(OBJEXT)"
+else
+ MODULE_OBJ="module.\$(OBJEXT)"
+fi
+
+AM_CONDITIONAL( [HAVE_MODULES], [test "x$modules" = xenabled] )
+
+AC_SUBST(MODULE_OBJ)
+AC_SUBST(LT_LDFLAGS)
+
+dnl ############## Configurable Options
+
+AC_ARG_ENABLE(debug,
+ [ --enable-debug=[no/yes] turn on debugging],
+ [
+ if test "x$enableval" = xyes
+ then
+ debugging="enabled"
+ else
+ debugging="disabled"
+ fi
+ ],
+ [ debugging="disabled" ]
+)
+
+AC_ARG_ENABLE(nagging,
+ [ --enable-nagging=[no/yes] turn on GCC's pedantic nagging with error on warnings, also enables debugging ],
+ [
+ if test "x$enableval" = xyes
+ then
+ nagging="enabled"
+ debugging="enabled"
+ else
+ nagging="disabled"
+ fi
+ ],
+ [ nagging="disabled" ]
+)
+
+AC_ARG_ENABLE(aligncheck,
+ [ --enable-aligncheck=[no/yes] turn on checks for stack alignment in the API if compiler supports alignment attributes, default is enabled],
+ [
+ if test "x$enableval" = xyes
+ then
+ aligncheck="enabled"
+ AC_DEFINE(CHECK_ALIGN, 1, [ Define if checking of stack alignment is wanted. ])
+ else
+ aligncheck="disabled"
+ fi
+ ],
+ [
+ aligncheck="enabled"
+ AC_DEFINE(CHECK_ALIGN, 1, [ Define if checking of stack alignment is wanted. ])
+ ]
+)
+
+if test x"$debugging" = xenabled; then
+ AC_DEFINE(DEBUG, 1, [ Define if debugging is enabled. ])
+fi
+
+AC_ARG_ENABLE(gapless,
+ [ --enable-gapless=[no/yes] turn on gapless (enabled per default)],
+ [
+ if test "x$enableval" = xyes
+ then
+ gapless="enabled"
+ AC_DEFINE(GAPLESS, 1, [ Define if gapless is enabled. ])
+ else
+ gapless="disabled"
+ fi
+ ],
+ [
+ gapless="enabled"
+ AC_DEFINE(GAPLESS, 1, [ Define if gapless is enabled. ])
+ ]
+)
+
+AC_ARG_ENABLE(fifo,
+ [ --enable-fifo=[no/yes] FIFO support for control interface (auto-enabled on linux) ],
+ [
+ if test "x$enableval" = xyes
+ then
+ fifo="enabled"
+ else
+ fifo="disabled"
+ fi
+ ],
+ [
+ fifo="auto"
+ ]
+)
+
+AC_ARG_ENABLE(ipv6,
+ [ --enable-ipv6=[no/yes] IPv6 support (actually any protocol your libc does with getaddrinfo) ],
+ [
+ if test "x$enableval" = xyes
+ then
+ ipv6="enabled"
+ else
+ ipv6="disabled"
+ fi
+ ],
+ [
+ ipv6="auto"
+ ]
+)
+
+AC_ARG_ENABLE(network,
+ [ --enable-network=[no/yes] network support (http streams / webradio) ],
+ [
+ if test "x$enableval" = xyes
+ then
+ network="enabled"
+ else
+ network="disabled"
+ fi
+ ],
+ [
+ network="auto"
+ ]
+)
+
+dnl Optional objects list, depends on decoder choice and core feature selection.
+dnl Not just for specific decoders anymore...
+s_fpu=
+DECODER_OBJ=
+DECODER_LOBJ=
+
+dnl Core features that can be disabled to reduce binary size.
+
+id3v2=enabled
+AC_ARG_ENABLE(id3v2,
+ [ --disable-id3v2=[no/yes] no ID3v2 parsing ],
+ [
+ if test "x$enableval" = xno; then
+ id3v2="disabled"
+ fi
+ ], [])
+
+# id3v2 depends on strings... so check that in between.
+string=enabled
+AC_ARG_ENABLE(string,
+ [ --disable-string=[no/yes] no string API (this will disable ID3v2; main mpg123 won't build anymore) ],
+ [
+ if test "x$enableval" = xno; then
+ string="disabled"
+ fi
+ ], [])
+
+if test "x$string" = "xdisabled"; then
+ AC_DEFINE(NO_STRING, 1, [ Define to disable string functions. ])
+ id3v2=disabled
+ AC_MSG_WARN([ID3v2 support disabled because of string API being disabled.])
+else
+ DECODER_OBJ="$DECODER_OBJ stringbuf.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ stringbuf.lo"
+fi
+
+if test "x$id3v2" = "xdisabled"; then
+ AC_DEFINE(NO_ID3V2, 1, [ Define to disable ID3v2 parsing. ])
+fi
+
+icy=enabled
+AC_ARG_ENABLE(icy,
+ [ --disable-icy=[no/yes] no ICY metainfo parsing/conversion (main mpg123 won't build!) ],
+ [
+ if test "x$enableval" = xno; then
+ icy="disabled"
+ fi
+ ], [])
+
+if test "x$icy" = "xdisabled"; then
+ AC_DEFINE(NO_ICY, 1, [ Define to disable ICY handling. ])
+else
+ DECODER_OBJ="$DECODER_OBJ icy.\$(OBJEXT) icy2utf8.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ icy.lo icy2utf8.lo"
+fi
+
+ntom=enabled
+AC_ARG_ENABLE(ntom,
+ [ --disable-ntom=[no/yes] no flexible resampling ],
+ [
+ if test "x$enableval" = xno; then
+ ntom="disabled"
+ fi
+ ], [])
+
+if test "x$ntom" = "xdisabled"; then
+ AC_DEFINE(NO_NTOM, 1, [ Define to disable ntom resampling. ])
+else
+ DECODER_OBJ="$DECODER_OBJ ntom.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ ntom.lo"
+fi
+
+downsample=enabled
+AC_ARG_ENABLE(downsample,
+ [ --disable-downsample=[no/yes] no downsampled decoding ],
+ [
+ if test "x$enableval" = xno; then
+ downsample="disabled"
+ fi
+ ], [])
+
+if test "x$downsample" = "xdisabled"; then
+ AC_DEFINE(NO_DOWNSAMPLE, 1, [ Define to disable downsampled decoding. ])
+fi
+
+feeder=enabled
+AC_ARG_ENABLE(feeder,
+ [ --disable-feeder=[no/yes] no feeder decoding, no buffered readers ],
+ [
+ if test "x$enableval" = xno; then
+ feeder="disabled"
+ fi
+ ], [])
+
+if test "x$feeder" = "xdisabled"; then
+ AC_DEFINE(NO_FEEDER, 1, [ Define to disable feeder and buffered readers. ])
+fi
+
+messages=enabled
+AC_ARG_ENABLE(messages,
+ [ --disable-messages=[no/yes] no error/warning messages on the console ],
+ [
+ if test "x$enableval" = xno; then
+ messages="disabled"
+ fi
+ ], [])
+
+if test "x$messages" = "xdisabled"; then
+ AC_DEFINE(NO_WARNING, 1, [ Define to disable warning messages. ])
+ AC_DEFINE(NO_ERROR, 1, [ Define to disable error messages. ])
+ AC_DEFINE(NO_ERETURN, 1, [ Define to disable error messages in combination with a return value (the return is left intact). ])
+fi
+
+integers=fast
+AC_ARG_ENABLE(int-quality,
+[ --enable-int-quality=[yes/no] use rounding instead of fast truncation for integer output, where possible ],
+[
+ if test "x$enableval" = xyes; then
+ integers=quality
+ AC_DEFINE(ACCURATE_ROUNDING, 1, [ Define to use proper rounding. ])
+ fi
+], [])
+
+int16=enabled
+AC_ARG_ENABLE(16bit,
+ [ --disable-16bit=[no/yes] no 16 bit integer output ],
+ [
+ if test "x$enableval" = xno; then
+ int16="disabled"
+ fi
+ ], [])
+
+int8=enabled
+AC_ARG_ENABLE(8bit,
+ [ --disable-8bit=[no/yes] no 8 bit integer output ],
+ [
+ if test "x$enableval" = xno; then
+ int8="disabled"
+ fi
+ ], [])
+
+int32=enabled
+AC_ARG_ENABLE(32bit,
+ [ --disable-32bit=[no/yes] no 32 bit integer output ],
+ [
+ if test "x$enableval" = xno; then
+ int32="disabled"
+ fi
+ ], [])
+
+real=enabled
+AC_ARG_ENABLE(real,
+ [ --disable-real=[no/yes] no real (floating point) output ],
+ [
+ if test "x$enableval" = xno; then
+ real="disabled"
+ fi
+ ], [])
+
+AC_ARG_WITH([cpu], [
+ --with-cpu=generic[_fpu] Use generic processor code with floating point arithmetic
+ --with-cpu=generic_float Plain alias to generic_fpu now... float output is a normal runtime option!
+ --with-cpu=generic_nofpu Use generic processor code with fixed point arithmetic (p.ex. ARM, experimental)
+ --with-cpu=generic_dither Use generic processor code with floating point arithmetic and dithering for 1to1 16bit decoding.
+ --with-cpu=i386[_fpu] Use code optimized for i386 processors with floating point arithmetic
+ --with-cpu=i386_nofpu Use code optimized for i386 processors with fixed point arithmetic (experimental)
+ --with-cpu=i486 Use code optimized for i486 processors (only usable alone!)
+ --with-cpu=i586 Use code optimized for i586 processors
+ --with-cpu=i586_dither Use code optimized for i586 processors with dithering (noise shaping), adds 256K to binary size
+ --with-cpu=3dnow Use code optimized for 3DNow processors
+ --with-cpu=3dnowext Use code optimized for 3DNowExt processors (K6-3+, Athlon)
+ --with-cpu=3dnowext_alone Really only 3DNowExt decoder, without 3DNow fallback for flexible rate
+ --with-cpu=mmx Use code optimized for MMX processors
+ --with-cpu=mmx_alone Really only MMX decoder, without i586 fallback for flexible rate
+ --with-cpu=sse Use code optimized for SSE processors
+ --with-cpu=sse_alone Really only SSE decoder, without i586 fallback for flexible rate
+ --with-cpu=x86 Pack all x86 opts into one binary (excluding i486 and dither)
+ --with-cpu=x86_dither Pack all x86 opts into one binary (excluding i486, including dither)
+ --with-cpu=x86-64 Use code optimized for x86-64 processors (AMD64 and Intel64)
+ --with-cpu=x86-64_dither x86-64 code together with generic dithering (runtime selection)
+ --with-cpu=altivec Use code optimized for Altivec processors (PowerPC G4 and G5)
+])
+
+
+# opt-in for IEEE754 floating point action
+# We want to make sure not to apply hacks relying on IEEE754 storage format on platforms where we did not make sure that this actually is valid.
+# It _should_ be fine for about all computers still out there, but we play safe.
+ieee=no
+case $target in
+ i?86-*|x86_64-*|powerpc*|sparc*)
+ ieee=yes
+ ;;
+esac
+if test "x$ieee" = xyes; then
+ echo "We assume IEEE754 floating point format."
+ AC_DEFINE(IEEE_FLOAT, 1, [ Define to indicate that float storage follows IEEE754. ])
+fi
+
+
+case $target in
+ arm-*-linux*)
+ # check that... perhaps we are better off on arm with kernel math emulation
+ cpu_type="generic_nofpu"
+ ;;
+ i386-*-linux*|i386-*-kfreebsd*-gnu)
+ cpu_type="i386_fpu"
+ ;;
+ i486-*-linux*|i486-*-kfreebsd*-gnu)
+ cpu_type="i486"
+ ;;
+ i586-*-linux*|i586-*-kfreebsd*-gnu)
+ cpu_type="x86"
+ ;;
+ i686-*-linux*|i686-*-kfreebsd*-gnu)
+ cpu_type="x86"
+ ;;
+ x86_64-*-linux*|x86_64-*-kfreebsd*-gnu)
+ cpu_type="x86-64"
+ ;;
+ *-*-linux*|*-*-kfreebsd*-gnu)
+ cpu_type="generic_fpu"
+ ;;
+ i386-apple-darwin*)
+ cpu_type="x86"
+ ;;
+ x86_64-apple-darwin*)
+ cpu_type="x86-64"
+ ;;
+ *-apple-darwin*)
+ AC_MSG_CHECKING([if CPU type supports AltiVec])
+ case `machine` in
+ ppc7400 | ppc7450 | ppc970)
+ AC_MSG_RESULT([yes])
+ cpu_type="altivec"
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ cpu_type="generic_fpu"
+ ;;
+ esac
+ ;;
+ i?86-*-dragonfly* | i?86-*-freebsd* | i?86-*-midnightbsd* | i?86-*-mirbsd* | i?86-*-netbsd* | i?86-*-openbsd*)
+ cpu_type="x86"
+ ;;
+ x86_64-*-dragonfly* | x86_64-*-freebsd* | x86_64-*-midnightbsd* | x86_64-*-mirbsd* | x86_64-*-netbsd* | x86_64-*-openbsd*)
+ cpu_type="x86-64"
+ ;;
+ *-*-dragonfly* | *-*-freebsd* | *-*-midnightbsd* | *-*-mirbsd* | *-*-netbsd* | *-*-openbsd*)
+ cpu_type="generic_fpu"
+ ;;
+ *-*-solaris*)
+ cpu_type="generic_fpu"
+ ;;
+ *-dec-osf*)
+ cpu_type="generic_fpu"
+ ;;
+ x86_64-pc-cygwin*)
+ cpu_type="x86-64"
+ ;;
+ i686-pc-cygwin*)
+ cpu_type="x86"
+ ;;
+ i586-pc-cygwin*)
+ cpu_type="x86"
+ ;;
+ i486-pc-cygwin*)
+ cpu_type="i486"
+ ;;
+ i386-pc-cygwin*)
+ cpu_type="i386"
+ ;;
+ *-pc-cygwin*)
+ cpu_type="generic_fpu"
+ ;;
+ *-*-mingw32)
+ LIBS="$LIBS"
+ buffer=disabled
+ cpu_type="x86"
+ ;;
+ i386-*)
+ AC_MSG_WARN([Unknown target operating system])
+ cpu_type="i386"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ i486-*)
+ AC_MSG_WARN([Unknown target operating system])
+ cpu_type="i486"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ i586-*)
+ AC_MSG_WARN([Unknown target operating system])
+ cpu_type="i586"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ i686-*)
+ AC_MSG_WARN([Unknown target operating system])
+ cpu_type="x86"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ x86_64-*)
+ AC_MSG_WARN([Unknown target operating system])
+ cpu_type="x86-64"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+ *)
+ AC_MSG_WARN([Unknown target operating system])
+ cpu_type="generic_fpu"
+ buffer=disabled
+ ADD_CPPFLAGS="-DGENERIC $ADD_CPPFLAGS"
+ ;;
+esac
+
+AC_ARG_ENABLE(buffer,
+ [ --enable-buffer=[yes/no] disable audio buffer code (default uses system whitelist... proper checks later) ],
+ [
+ if test "x$enableval" = xyes
+ then
+ echo "Note: Enabling buffer per request... perhaps it will not build anyway."
+ buffer="enabled"
+ else
+ echo "Note: Disabling buffer per request."
+ buffer="disabled"
+ fi
+ ]
+)
+
+dnl Did user choose other CPU type ?
+if test "x$with_cpu" != "x"; then
+ cpu_type=$with_cpu
+fi
+
+if test "x$cpu_type" = "xgeneric_nofpu"; then
+ real=disabled
+ int32=disabled
+fi
+
+if test "x$cpu_type" = "xi386_nofpu"; then
+ real=disabled
+ int32=disabled
+fi
+
+if test "x$int16" = "xdisabled"; then
+ AC_DEFINE(NO_16BIT, 1, [ Define to disable 16 bit integer output. ])
+else
+ DECODER_OBJ="$DECODER_OBJ synth.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ synth.lo"
+fi
+
+# 8bit works only through 16bit
+if test "x$int16" = "xdisabled"; then
+ int8=disabled
+fi
+if test "x$int8" = "xdisabled"; then
+ AC_DEFINE(NO_8BIT, 1, [ Define to disable 8 bit integer output. ])
+else
+ DECODER_OBJ="$DECODER_OBJ synth_8bit.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ synth_8bit.lo"
+fi
+
+if test "x$int32" = "xdisabled"; then
+ AC_DEFINE(NO_32BIT, 1, [ Define to disable 32 bit integer output. ])
+else
+ s_fpu="$s_fpu synth_s32"
+fi
+
+if test "x$real" = "xdisabled"; then
+ AC_DEFINE(NO_REAL, 1, [ Define to disable real output. ])
+else
+ s_fpu="$s_fpu synth_real"
+fi
+
+
+
+layer1=enabled
+AC_ARG_ENABLE(layer1,
+ [ --disable-layer1=[no/yes] no layer I decoding ],
+ [
+ if test "x$enableval" = xno; then
+ layer1="disabled"
+ fi
+ ], [])
+
+if test "x$layer1" = "xdisabled"; then
+ AC_DEFINE(NO_LAYER1, 1, [ Define to disable layer I. ])
+else
+ # layer1 needs code in layer2
+ DECODER_OBJ="$DECODER_OBJ layer1.\$(OBJEXT) layer2.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ layer1.lo layer2.lo"
+fi
+
+layer2=enabled
+AC_ARG_ENABLE(layer2,
+ [ --disable-layer2=[no/yes] no layer II decoding ],
+ [
+ if test "x$enableval" = xno; then
+ layer2="disabled"
+ fi
+ ], [])
+
+if test "x$layer2" = "xdisabled"; then
+ AC_DEFINE(NO_LAYER2, 1, [ Define to disable layer II. ])
+else
+ # layer1 may have added the objects already
+ if test "x$layer1" = "xdisabled"; then
+ DECODER_OBJ="$DECODER_OBJ layer2.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ layer2.lo"
+ fi
+fi
+
+layer3=enabled
+AC_ARG_ENABLE(layer3,
+ [ --disable-layer3=[no/yes] no layer III decoding ],
+ [
+ if test "x$enableval" = xno; then
+ layer3="disabled"
+ fi
+ ], [])
+
+if test "x$layer3" = "xdisabled"; then
+ AC_DEFINE(NO_LAYER3, 1, [ Define to disable layer III. ])
+else
+ DECODER_OBJ="$DECODER_OBJ layer3.\$(OBJEXT)"
+ DECODER_LOBJ="$DECODER_LOBJ layer3.lo"
+fi
+
+AC_ARG_WITH([audio], [
+ --with-audio=<list of modules> Select a list (or only one) of audio output modules (comma or space separated list).
+])
+AC_ARG_WITH([default-audio], [
+ --with-default-audio=aix Use AIX as default audio output sub-system
+ --with-default-audio=alib Use Alib as default audio output sub-system (for HPUX)
+ --with-default-audio=alsa Use ALSA as default audio output sub-system
+ --with-default-audio=arts Use aRts as default audio output sub-system (KDE sound server)
+ --with-default-audio=dummy Use dummy as default audio (when no sound card is available)
+ --with-default-audio=esd Use ESoundD as default audio output sub-system
+ --with-default-audio=hp Use HP as default audio output sub-system
+ --with-default-audio=jack Use JACK as default low-latency audio server
+ --with-default-audio=coreaudio Use Mac OS X as default audio output sub-system (CoreAudio)
+ --with-default-audio=mint Use MinT as default audio output sub-system (Atari)
+ --with-default-audio=nas Use NAS as default audio output (Network Audio System)
+ --with-default-audio=os2 Use OS2 as default audio output sub-system
+ --with-default-audio=oss Use OSS as default audio output sub-system (/dev/dsp)
+ --with-default-audio=portaudio Use PortAudio as default audio output sub-system
+ --with-default-audio=pulse Use Pulse audio server as default audio output sub-system
+ --with-default-audio=sdl Use SDL as default audio output sub-system (Simple DirectMedia Layer)
+ --with-default-audio=sgi Use SGI as default audio output sub-system (IRIX)
+ --with-default-audio=sndio Use OpenBSD's sndio as default audio output sub-system
+ --with-default-audio=sun Use Sun as default audio output sub-system (/dev/audio)
+ --with-default-audio=win32 Use Win32 audio as default audio output sub-system
+])
+
+AC_ARG_WITH([optimization], [
+ --with-optimization=0 No Optimization
+ --with-optimization=1 Limited Optimization (-O) (for gcc)
+ --with-optimization=2 Default Optimization (-O2 ...) (for gcc)
+ --with-optimization=3 More Optimize than default (-O3 ...) (for gcc)
+ --with-optimization=4 Optimize yet more (-O4 ...) (for gcc)
+])
+
+AC_ARG_WITH([seektable], [
+ --with-seektable=<size> choose size of seek index table (0 disables it), default 1000
+])
+
+
+dnl ############## Modules
+
+# Dummy audio output module is always supported
+output_modules="dummy"
+
+dnl ############## Assembler, compiler properties
+
+# based on posting from John Dalgliesh <johnd@defyne.org> on ffmpeg (LGPL) mailing list
+# find if .align arg is power-of-two or not
+asmalign_exp="unknown"
+if test x"$asmalign_exp" = xunknown; then
+ AC_MSG_CHECKING([if .align takes 2-exponent])
+ asmalign_exp="no"
+ echo '.align 3' > conftest.s
+ if $CCAS -c -o conftest.o conftest.s 1>/dev/null 2>&1; then
+ asmalign_exp="yes"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ rm -f conftest.o conftest.s
+fi
+if test x"$asmalign_exp" = xyes; then
+ AC_DEFINE(ASMALIGN_EXP, 1, [ Define if .align takes 3 for alignment of 2^3=8 bytes instead of 8. ])
+fi
+
+ccalign="unknown"
+if test x"$ccalign" = xunknown; then
+ AC_MSG_CHECKING([__attribute__((aligned(16)))])
+ ccalign="no"
+ echo '__attribute__((aligned(16))) float var;' > conftest.c
+ if $CC -c -o conftest.o conftest.c >/dev/null 2>&1; then
+ ccalign="yes"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ rm -f conftest.o conftest.c
+fi
+
+dnl We apply alignment hints only to cpus that need it.
+dnl See further below for the definition of CCALIGN
+
+dnl ############## Really basic headers, needed for other checks.
+
+AC_HEADER_STDC
+dnl Is it too paranoid to specifically check for stdint.h and limits.h?
+AC_CHECK_HEADERS([stdio.h stdlib.h string.h unistd.h sched.h sys/ioctl.h sys/types.h stdint.h limits.h inttypes.h sys/time.h sys/wait.h sys/resource.h sys/signal.h signal.h])
+
+dnl ############## Types
+
+dnl Detect large file support, enable switches if needed.
+AC_SYS_LARGEFILE
+dnl If we do have a switch for large files, rename off_t-aware API calls.
+dnl Using the file_offset_bits variable here is fine for linux (possibly Solaris),
+dnl Others... we'll have to see.
+dnl Note: I started writing this with with multiline replacements.
+dnl Does not work. Automake insists on putting these into Makefiles where they break things.
+if test "x$ac_cv_sys_file_offset_bits" = x || echo "$ac_cv_sys_file_offset_bits" | grep -q '@<:@^0-9@:>@'; then
+ dnl if it has non-numeric chars or is empty... ignore...
+ LARGEFILE_BITS=
+ LARGEFILE_SUFFIX=
+ LARGEFILE_SWITCH=0
+else
+ LARGEFILE_BITS="$ac_cv_sys_file_offset_bits"
+ LARGEFILE_SUFFIX="_$ac_cv_sys_file_offset_bits"
+ LARGEFILE_SWITCH=1
+fi
+
+dnl Insert the function name redefinitions and export symbols as needed.
+dnl ...based on these two variables and manual work in src/libmpg123/mpg123.h.in
+dnl as well as src/libmpg123/libmpg123.sym.in .
+AC_SUBST(LARGEFILE_BITS)
+AC_SUBST(LARGEFILE_SUFFIX)
+AC_SUBST(LARGEFILE_SWITCH)
+
+# Using the lower level macros instead of AC_TYPE_* for compatibility with not freshest autoconf.
+AC_CHECK_TYPE(size_t, unsigned long)
+AC_CHECK_TYPE(ssize_t, long)
+AC_CHECK_TYPE(off_t, long int)
+AC_CHECK_TYPE(int32_t, int)
+AC_CHECK_TYPE(uint32_t, unsigned int)
+AC_CHECK_TYPE(int16_t, short)
+AC_CHECK_TYPE(uint16_t, unsigned short)
+AC_CHECK_SIZEOF(size_t,4)
+AC_CHECK_SIZEOF(ssize_t,4)
+AC_CHECK_SIZEOF(off_t,4)
+AC_CHECK_SIZEOF(int32_t)
+AC_CHECK_SIZEOF(long,4)
+
+dnl ############## Function Checks
+
+AC_FUNC_MMAP
+
+# Check if system supports termios
+AC_SYS_POSIX_TERMIOS
+if test "x$ac_cv_sys_posix_termios" = "xyes"; then
+ AC_DEFINE_UNQUOTED([HAVE_TERMIOS], 1,
+ [Define this if you have the POSIX termios library])
+fi
+
+AC_CHECK_FUNCS( random )
+
+# Check for sched_setscheduler
+AC_CHECK_FUNCS( sched_setscheduler setuid getuid)
+
+# Check for setpriority
+AC_CHECK_FUNCS( setpriority )
+
+AC_CHECK_FUNCS( strerror )
+
+AC_CHECK_FUNCS( setlocale nl_langinfo )
+
+AC_CHECK_FUNCS( strdup )
+
+AC_CHECK_FUNCS( atoll )
+
+AC_CHECK_FUNCS( mkfifo, [ have_mkfifo=yes ], [ have_mkfifo=no ] )
+
+if test x"$fifo" = xauto; then
+ if test x"$have_mkfifo" = xyes; then
+ fifo=enabled
+ else
+ fifo=disabled
+ fi
+fi
+if test x"$fifo" = xenabled; then
+ AC_DEFINE(FIFO, 1, [ Define if FIFO support is enabled. ])
+ if test x"$have_mkfifo" = xno; then
+ AC_MSG_WARN( [ You forced FIFO code while I think there is no mkfifo() available! ] )
+ fi
+fi
+
+AC_CHECK_FUNCS( getaddrinfo, [ have_ipv6=yes ], [ have_ipv6=no ] )
+if test x"$ipv6" = xauto; then
+ if test x"$have_ipv6" = xyes; then
+ ipv6=enabled
+ else
+ ipv6=disabled
+ fi
+fi
+if test x"$ipv6" = xenabled; then
+ AC_DEFINE(IPV6, 1, [ Define if IPV6 support is enabled. ])
+ if test x"$have_ipv6" = xno; then
+ AC_MSG_WARN( [ You forced IPv6 code while I think there is no getaddrinfo() available! ] )
+ fi
+fi
+
+dnl ############## Header and Library Checks
+
+# locale headers
+AC_CHECK_HEADERS([locale.h langinfo.h])
+# Headers for network (http) stuff
+AC_CHECK_HEADERS([netdb.h sys/param.h sys/socket.h netinet/in.h arpa/inet.h])
+if test "x$ac_cv_header_netdb_h" = "xyes" &&
+ test "x$ac_cv_header_sys_param_h" = "xyes" &&
+ test "x$ac_cv_header_sys_socket_h" = "xyes" &&
+ test "x$ac_cv_header_netinet_in_h" = "xyes" &&
+ test "x$ac_cv_header_arpa_inet_h" = "xyes"; then
+ have_network=yes
+else
+ have_network=no
+fi
+
+if test x"$network" = xauto; then
+ if test x"$have_network" = xyes; then
+ network=enabled
+ else
+ network=disabled
+ fi
+fi
+if test x"$network" = xenabled; then
+ AC_DEFINE(NETWORK, 1, [ Define if network support is enabled. ])
+ if test x"$have_network" = xno; then
+ AC_MSG_WARN( [ You forced network code while I think there is support missing! ] )
+ fi
+fi
+
+# Substitutions for the installable mpg123.h header
+if test "x$ac_cv_header_stdio_h" = "xyes"; then
+ INCLUDE_STDIO_H="#include <stdio.h>"
+else
+ INCLUDE_STDIO_H="/* #include <stdio.h> is not available on this system */"
+fi
+AC_SUBST(INCLUDE_STDIO_H)
+
+if test "x$ac_cv_header_stdlib_h" = "xyes"; then
+ INCLUDE_STDLIB_H="#include <stdlib.h>"
+else
+ INCLUDE_STDLIB_H="/* #include <stdlib.h> is not available on this system */"
+fi
+AC_SUBST(INCLUDE_STDLIB_H)
+
+if test "x$ac_cv_header_sys_types_h" = "xyes"; then
+ INCLUDE_SYS_TYPE_H="#include <sys/types.h>"
+else
+ INCLUDE_SYS_TYPE_H="/* #include <sys/types.h> is not available on this system */"
+fi
+AC_SUBST(INCLUDE_SYS_TYPE_H)
+
+
+# Checks for maths libraries.
+AC_CHECK_LIB([m], [sqrt])
+AC_CHECK_LIB([mx], [powf])
+
+# attempt to make the signal stuff work... also with GENERIC - later
+#if test x"$ac_cv_header_sys_signal_h" = xyes; then
+# AC_CHECK_FUNCS( sigemptyset sigaddset sigprocmask sigaction )
+# if test x"$ac_cv_func_sigemptyset" = xyes &&
+# test x"$ac_cv_func_sigaddset" = xyes &&
+# test x"$ac_cv_func_sigprocmask" = xyes &&
+# test x"$ac_cv_func_sigaction" = xyes; then
+# AC_DEFINE(
+#fi
+
+dnl ############## Choose compiler flags and CPU
+
+# do not assume gcc here, so no flags by default
+ADD_CFLAGS=""
+ADD_CPPFLAGS=""
+ADD_LDFLAGS=""
+LIBS="$LIBS"
+
+AC_CHECK_HEADER([os2.h], [ADD_CPPFLAGS="$ADD_CPPFLAGS -DOS2"])
+
+# If debugging is enabled then make warnings errors
+if test x"$debugging" = xenabled; then
+ ADD_CFLAGS="-g"
+ # gcc specific...
+ if test x"$GCC" = xyes; then
+ ADD_CFLAGS="$ADD_CFLAGS -Wall -fno-strict-aliasing"
+ if test x"$nagging" = xenabled; then
+ ADD_CFLAGS="$ADD_CFLAGS -Werror -pedantic -DPLAIN_C89"
+ fi
+ fi
+fi
+
+dnl Only try the attribute_align_arg mumbo-jumbo on x86, x86-64 warns/errors out on that attribute.
+dnl ...dunno even what about other architectures.
+case $target in
+ i?86-*)
+ AC_DEFINE(ABI_ALIGN_FUN, 1, [ Define if your architecture wants/needs/can use attribute_align_arg and alignment checks. It's for 32bit x86... ])
+ ;;
+esac
+
+dnl trying to get that socket lib settled in one line
+AC_SEARCH_LIBS(gethostbyname, nsl socket ws2_32 wsock32)
+dnl OK, two lines... Solaris needs -lnsl -lsocket
+AC_SEARCH_LIBS(socket, socket ws2_32 wsock32)
+
+s_altivec="synth_altivec dct64_altivec"
+s_i386="dct64_i386"
+s_i486="$s_i386 synth_i486 dct64_i486"
+s_i586="$s_i386 synth_i586"
+s_i586d="$s_i386 synth_i586_dither"
+s_dither="dnoise"
+s_3dnow="$s_i386 synth_3dnow dct64_3dnow equalizer_3dnow"
+s_3dnowext="$s_i386 dct64_3dnowext dct64_mmx tabinit_mmx synth_3dnowext"
+if test "x$layer3" = "xenabled"; then
+ s_3dnow="$s_3dnow dct36_3dnow"
+ s_3dnowext="$s_3dnowext dct36_3dnowext"
+fi
+s_mmx="$s_i386 dct64_mmx tabinit_mmx synth_mmx"
+s_sse="$s_i386 dct64_mmx tabinit_mmx dct64_sse dct64_sse_float synth_sse_float synth_stereo_sse_float synth_sse_s32 synth_stereo_sse_s32 "
+s_x86_64="dct64_x86_64 dct64_x86_64_float synth_x86_64_float synth_x86_64_s32 synth_stereo_x86_64_float synth_stereo_x86_64_s32"
+s_x86multi="getcpuflags"
+
+# choose optimized 16bit decoder for SSE, quality or fast
+# note: supporting deactivation of output formats for these decoders would need more logic here
+if test "x$integers" = "xquality"; then
+ s_sse="$s_sse synth_sse_accurate synth_stereo_sse_accurate"
+ s_x86_64="$s_x86_64 synth_x86_64_accurate synth_stereo_x86_64_accurate"
+else
+ s_sse="$s_sse synth_sse" # no stereo
+ s_x86_64="$s_x86_64 synth_x86_64 synth_stereo_x86_64"
+fi
+
+dnl CPU specific compiler flags and sources
+case $cpu_type in
+ generic)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
+ more_sources="$s_fpu"
+ ccalign=no
+ ;;
+ generic_dither)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_dither"
+ ccalign=no
+ ;;
+dnl Not disabling buffer for float mode... check that this is OK now!
+ generic_fpu | generic_float)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FLOAT"
+ more_sources="$s_fpu"
+ ccalign=no
+ ;;
+ generic_nofpu)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_GENERIC -DREAL_IS_FIXED"
+ more_sources=
+ ccalign=no
+ ;;
+ altivec)
+ ADD_CFLAGS="$ADD_CFLAGS -maltivec -faltivec"
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DREAL_IS_FLOAT -DOPT_ALTIVEC"
+ more_sources="$s_altivec $s_fpu"
+ ;;
+ i386)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i386"
+ ccalign=no
+ ;;
+ i386_fpu)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i386"
+ ccalign=no
+ ;;
+ i386_nofpu)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I386 -DREAL_IS_FIXED"
+ more_sources="$s_i386"
+ ccalign=no
+ ;;
+ i486)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I486 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i486"
+ ccalign=no
+ ;;
+ i586)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i586"
+ ;;
+ i586_dither)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_I586_DITHER -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i586d $s_dither"
+ ;;
+ 3dnow)
+ # legacy 3dnow had the 3dnow paired with i586...
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_I586 -DOPT_3DNOW -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i586 $s_3dnow $s_x86multi "
+ ;;
+ 3dnow_alone)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOW -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_3dnow"
+ ;;
+ 3dnowext_alone)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_3dnowext"
+ ;;
+ 3dnowext)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_3DNOW -DOPT_3DNOWEXT -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_3dnowext $s_3dnow $s_x86multi"
+ ;;
+ mmx_alone|mmx)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MMX -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_mmx"
+ ;;
+ sse_alone|sse)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_SSE -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_sse"
+ ;;
+ x86)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_I386 -DOPT_I586 -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOWEXT -DOPT_SSE -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i386 $s_i586 $s_mmx $s_3dnow $s_3dnowext $s_sse $s_x86multi"
+ ;;
+ x86_dither)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_GENERIC -DOPT_GENERIC_DITHER -DOPT_I386 -DOPT_I586 -DOPT_I586_DITHER -DOPT_MMX -DOPT_3DNOW -DOPT_3DNOWEXT -DOPT_SSE -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_i386 $s_i586 $s_i586d $s_dither $s_mmx $s_3dnow $s_3dnowext $s_sse $s_x86multi"
+ ;;
+ x86-64)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_X86_64 -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_x86_64"
+ ;;
+ x86-64_dither)
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_X86_64 -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_dither $s_x86_64"
+ ;;
+ x86-64_all) # for direct comparison... undocumented actually very similar to the above because of generic code being there in the hidden anyway
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DOPT_MULTI -DOPT_X86_64 -DOPT_GENERIC -DOPT_GENERIC_DITHER -DREAL_IS_FLOAT"
+ more_sources="$s_fpu $s_dither $s_x86_64"
+ ;;
+ *)
+ AC_MSG_ERROR([Unknown CPU type '$cpu_type'])
+ ;;
+esac
+
+# Mac OS X specific linker flags
+case $cpu_type in
+ 3dnow|3dnow_alone|3dnowext|3dnowext_alone|mmx|mmx_alone|sse|sse_alone|x86|x86_dither)
+ case $target in
+ i386-apple-darwin8*)
+ ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-read_only_relocs,suppress"
+ ;;
+ i386-apple-darwin9*)
+ ADD_CFLAGS="$ADD_CFLAGS -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
+ ADD_LDFLAGS="$ADD_LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -Wl,-classic_linker -Wl,-read_only_relocs,suppress"
+ ;;
+ esac
+ ;;
+esac
+
+for i in $more_sources
+do
+ DECODER_OBJ="$DECODER_OBJ $i.\$(OBJEXT)"
+ echo $DECODER_LOBJ | grep -q $i.lo || DECODER_LOBJ="$DECODER_LOBJ $i.lo"
+done
+
+AC_SUBST(DECODER_OBJ)
+AC_SUBST(DECODER_LOBJ)
+
+dnl Finally insert the code switch for alignment, above cpu selection having possibly changed the setting.
+if test x"$ccalign" = xyes; then
+ AC_DEFINE(CCALIGN, 1, [ Define if __attribute__((aligned(16))) shall be used ])
+fi
+
+
+dnl ############## Output module choice
+
+# The full list of supported modules to check, first come, first serve.
+check_modules="alsa oss coreaudio sndio sun win32 esd jack portaudio pulse sdl nas arts dummy"
+# The final list.
+output_modules=
+
+check_forced=no
+check_failed=no
+if test "x$with_audio" != "x"; then
+ check_modules="`echo $with_audio|tr , ' '` dummy"
+ echo "Limiting outputs to build according to your preference: $check_modules"
+ check_forced=yes
+fi
+
+PKG_PROG_PKG_CONFIG([])
+
+# Now go through the modules to check and do the chores.
+for m in $check_modules
+do
+ case "$m" in
+ dummy)
+ AC_MSG_CHECKING([if you are too dumbing dumb for the dummy])
+ AC_MSG_RESULT([no])
+ output_modules="$output_modules dummy"
+ HAVE_DUMMY=yes
+ ;;
+ oss)
+ AC_CHECK_HEADERS([sys/soundcard.h linux/soundcard.h machine/soundcard.h])
+ if test "x${ac_cv_header_sys_soundcard_h}" = "xyes" \
+ -o "x${ac_cv_header_linux_soundcard_h}" = "xyes" \
+ -o "x${ac_cv_header_machine_soundcard_h}" = "xyes";
+ then
+ output_modules="$output_modules oss"
+ HAVE_OSS="yes"
+ else
+ check_failed=yes
+ fi
+ ;;
+ alsa)
+ ALSA_LIBS="-lasound"
+ # Check for ALSA
+ AC_CHECK_LIB( [asound], [snd_pcm_open],
+ [ AC_CHECK_HEADER( [alsa/asoundlib.h],
+ [ output_modules="$output_modules alsa" HAVE_ALSA="yes"],
+ [ AC_MSG_WARN([Found ALSA library but NOT header files on your system]) ] )
+ ]
+ )
+ if test "x$HAVE_ALSA" != xyes; then
+ check_failed=yes
+ fi
+ ;;
+ jack)
+ PKG_CHECK_MODULES(JACK, jack, output_modules="$output_modules jack" HAVE_JACK="yes", HAVE_JACK="no" check_failed=yes)
+ ;;
+ pulse)
+ PKG_CHECK_MODULES(PULSE, libpulse-simple, output_modules="$output_modules pulse" HAVE_PULSE="yes", HAVE_PULSE="no" check_failed=yes)
+ ;;
+ esd)
+ PKG_CHECK_MODULES(ESD, esound, output_modules="$output_modules esd" HAVE_ESD="yes", HAVE_ESD="no" check_failed=yes)
+ ;;
+ portaudio)
+ # Remember: This looks only insane because you chose an insane tab width!
+ PORTAUDIO_LIBS="-lportaudio"
+ PORTAUDIO_CFLAGS=
+ case $target in
+ *-*-mingw32)
+ # We tested portaudio with MME
+ if test "x$HAVE_PORTAUDIO" != "xyes"; then
+ AC_CHECK_LIB( [portaudio], [Pa_Initialize],
+ [ AC_CHECK_HEADER( [portaudio.h],
+ [ output_modules="$output_modules portaudio" HAVE_PORTAUDIO_WINMM="yes" HAVE_PORTAUDIO="yes" ],
+ [ AC_MSG_WARN([Found PortAudio library but NOT header files on your system]) ] )
+ PORTAUDIO_LIBS="$PORTAUDIO_LIBS -lwinmm"
+ ],
+ [ HAVE_PORTAUDIO="no"],
+ [ -lwinmm ]
+ )
+ fi
+ ;;
+ *)
+ AC_CHECK_LIB( [portaudio], [Pa_Initialize],
+ [ AC_CHECK_HEADER( [portaudio.h],
+ [ output_modules="$output_modules portaudio" HAVE_PORTAUDIO="yes" ],
+ [ AC_MSG_WARN([Found PortAudio library but NOT header files on your system]) ] )
+ ]
+ )
+ ;;
+ esac
+ if test "x$HAVE_PORTAUDIO" != xyes; then
+ check_failed=yes
+ else
+ # See if we have v19 or v18
+ AC_CHECK_LIB( [portaudio], [Pa_GetVersion], [:], [AC_DEFINE( [PORTAUDIO18], 1, [Define if portaudio v18 API is wanted.]) ], [$PORTAUDIO_LIBS] )
+ fi
+ ;;
+ sdl)
+ PKG_CHECK_MODULES(SDL, sdl, output_modules="$output_modules sdl" HAVE_SDL="yes", HAVE_SDL="no" check_failed=yes)
+ ;;
+ nas)
+ NAS_LIBS=-laudio
+ AC_CHECK_LIB( [audio], [AuOpenServer],
+ [ AC_CHECK_HEADER( [audio/audiolib.h],
+ [ output_modules="$output_modules nas" HAVE_NAS="yes"],
+ [ AC_MSG_WARN([Found NAS library but NOT header files on your system]) ] )
+ ]
+ )
+ if test "x$HAVE_NAS" != xyes; then
+ check_failed=yes
+ fi
+ ;;
+ win32)
+ # Check for windows ... and win32 audio
+ # Does not work... instead just check for header
+ # AC_CHECK_LIB( [winmm], [waveOutOpen] )
+ WIN32_LIBS=-lwinmm
+ AC_CHECK_HEADERS([windows.h], output_modules="$output_modules win32" HAVE_WIN32=yes, HAVE_WIN32=no check_failed=yes)
+ ;;
+ sndio)
+ SNDIO_LIBS=-lsndio
+ AC_CHECK_LIB([sndio], [sio_open],
+ [AC_CHECK_HEADERS([sndio.h],
+ [output_modules="$output_modules sndio" HAVE_SNDIO="yes"])
+ ]
+ )
+ if test "x$HAVE_SNDIO" != xyes; then
+ check_failed=yes
+ fi
+ ;;
+ sun)
+ AC_CHECK_HEADERS([sun/audioio.h sys/audioio.h asm/audioio.h sys/audio.h])
+ if test "x${ac_cv_header_sun_audioio_h}" = "xyes" \
+ -o "x${ac_cv_header_sys_audioio_h}" = "xyes" \
+ -o "x${ac_cv_header_asm_audioio_h}" = "xyes";
+ then
+ output_modules="$output_modules sun"
+ HAVE_SUN="yes"
+ else
+ check_failed=yes
+ fi
+ ;;
+ coreaudio)
+ COREAUDIO_LIBS="-framework AudioToolbox -framework AudioUnit -framework CoreServices"
+ AC_CHECK_HEADERS([AudioUnit/AudioUnit.h CoreServices/CoreServices.h AudioToolbox/AudioToolbox.h])
+ if test "x${ac_cv_header_AudioUnit_AudioUnit_h}" = "xyes" \
+ -a "x${ac_cv_header_CoreServices_CoreServices_h}" = "xyes" \
+ -a "x${ac_cv_header_AudioToolbox_AudioToolbox_h}" = "xyes";
+ then
+ if test x"$modules" = xdisabled; then
+ AC_MSG_WARN([Disabling buffer because of directly linked CoreAudio! Use the module if you need the buffer.])
+ buffer=disabled
+ fi
+ output_modules="$output_modules coreaudio"
+ HAVE_COREAUDIO="yes"
+ else
+ check_failed=yes
+ fi
+ ;;
+ arts)
+ AC_MSG_CHECKING([for artsc])
+ if artsc-config; then
+ AC_MSG_RESULT([yes])
+ output_modules="$output_modules arts"
+ HAVE_ARTS=yes
+ ARTS_LIBS=`artsc-config --libs`
+ ARTS_CFLAGS=`artsc-config --cflags`
+ else
+ AC_MSG_RESULT([no])
+ check_failed=yes
+ fi
+ ;;
+# from here on only forced tests, untested code
+ hp)
+ # What's the deal with that and alib?
+ UNSUPPORTED_AUDIO=yes
+ AC_CHECK_HEADER([sys/audio.h], [output_modules="$output_modules hp" HAVE_HP=yes], [check_failed=yes])
+ ;;
+ alib)
+ UNSUPPORTED_AUDIO=yes
+ # ALIB_CFLAGS="-I/opt/audio/include"
+ ALIB_LIBS=-lAlib
+ # These headers may not be all about audio but they are used.
+ AC_CHECK_HEADERS([ Alib.h CUlib.h netdb.h netinet/in.h netinet/tcp.h])
+ if test "x${ac_cv_header_Alib_h}" = xyes \
+ -a "x${ac_cv_header_CUlib_h}" = xyes \
+ -a "x${ac_cv_header_netdb_h}" = xyes \
+ -a "x${ac_cv_header_netinet_in_h}" = xyes \
+ -a "x${ac_cv_header_netinet_tcp_h}" = xyes
+ then
+ output_modules="$output_modules alib"
+ HAVE_ALIB=yes
+ else
+ check_failed=yes
+ fi
+ ;;
+ mint)
+ UNSUPPORTED_AUDIO=yes
+ AC_CHECK_HEADERS([audios.h], [output_modules="$output_modules mint" HAVE_MINT=yes], [check_failes=yes])
+ ;;
+ aix)
+ UNSUPPORTED_AUDIO=yes
+ AC_CHECK_HEADERS([sys/audio.h], [output_modules="$output_modules aix" HAVE_AIX=yes], [check_failed=yes])
+ ;;
+ os2)
+ UNSUPPORTED_AUDIO=yes
+ OS2_LIBS="-los2me -lsocket"
+ AC_CHECK_HEADERS([os2.h os2me.h])
+ if test "x${ac_cv_header_os2_h}" = xyes \
+ -a "x${ac_cv_header_os2me_h}" = xyes
+ then
+ output_modules="$output_modules os2"
+ HAVE_OS2=yes
+ else
+ check_failed=yes
+ fi
+ ;;
+ sgi)
+ UNSUPPORTED_AUDIO=yes
+ SGI_LIBS=-laudio
+ AC_CHECK_HEADER([dmedia/audio.h], [output_modules="$output_modules sgi" HAVE_SGI=yes], [check_failed=yes])
+ ;;
+ *)
+ AC_MSG_ERROR([Unsupported/-known output '$m' demanded!])
+ ;;
+ esac
+done
+
+if test "x$check_forced" = xyes -a "x$UNSUPPORTED_AUDIO" = xyes; then
+ AC_MSG_WARN([You requested bulding of an unsupported audio module. Be prepared for happy hacking and please tell us about your experience!])
+fi
+
+if test "x$check_forced" = xyes -a "x$check_failed" = "xyes"; then
+ AC_MSG_ERROR([One/some of your requested audio modules failed the test!])
+fi
+
+# When you extend check_modules, you should extend this:
+#for i in alsa oss coreaudio sndio sun win32 esd jack portaudio pulse sdl nas aix alib arts hp os2 sgi mint dummy; do echo $i; done |
+#perl -ne 'chomp; $big = uc($_); print <<EOT;
+#AC_SUBST(${big}_LIBS)
+#AC_SUBST(${big}_LDFLAGS)
+#AC_SUBST(${big}_CFLAGS)
+#AM_CONDITIONAL( [HAVE_$big], [test "x\$HAVE_$big" = xyes] )
+#EOT
+#'
+AC_SUBST(ALSA_LIBS)
+AC_SUBST(ALSA_LDFLAGS)
+AC_SUBST(ALSA_CFLAGS)
+AM_CONDITIONAL( [HAVE_ALSA], [test "x$HAVE_ALSA" = xyes] )
+AC_SUBST(OSS_LIBS)
+AC_SUBST(OSS_LDFLAGS)
+AC_SUBST(OSS_CFLAGS)
+AM_CONDITIONAL( [HAVE_OSS], [test "x$HAVE_OSS" = xyes] )
+AC_SUBST(COREAUDIO_LIBS)
+AC_SUBST(COREAUDIO_LDFLAGS)
+AC_SUBST(COREAUDIO_CFLAGS)
+AM_CONDITIONAL( [HAVE_COREAUDIO], [test "x$HAVE_COREAUDIO" = xyes] )
+AC_SUBST(SNDIO_LIBS)
+AC_SUBST(SNDIO_LDFLAGS)
+AC_SUBST(SNDIO_CFLAGS)
+AM_CONDITIONAL( [HAVE_SNDIO], [test "x$HAVE_SNDIO" = xyes] )
+AC_SUBST(SUN_LIBS)
+AC_SUBST(SUN_LDFLAGS)
+AC_SUBST(SUN_CFLAGS)
+AM_CONDITIONAL( [HAVE_SUN], [test "x$HAVE_SUN" = xyes] )
+AC_SUBST(WIN32_LIBS)
+AC_SUBST(WIN32_LDFLAGS)
+AC_SUBST(WIN32_CFLAGS)
+AM_CONDITIONAL( [HAVE_WIN32], [test "x$HAVE_WIN32" = xyes] )
+AC_SUBST(ESD_LIBS)
+AC_SUBST(ESD_LDFLAGS)
+AC_SUBST(ESD_CFLAGS)
+AM_CONDITIONAL( [HAVE_ESD], [test "x$HAVE_ESD" = xyes] )
+AC_SUBST(JACK_LIBS)
+AC_SUBST(JACK_LDFLAGS)
+AC_SUBST(JACK_CFLAGS)
+AM_CONDITIONAL( [HAVE_JACK], [test "x$HAVE_JACK" = xyes] )
+AC_SUBST(PORTAUDIO_LIBS)
+AC_SUBST(PORTAUDIO_LDFLAGS)
+AC_SUBST(PORTAUDIO_CFLAGS)
+AM_CONDITIONAL( [HAVE_PORTAUDIO], [test "x$HAVE_PORTAUDIO" = xyes] )
+AC_SUBST(PULSE_LIBS)
+AC_SUBST(PULSE_LDFLAGS)
+AC_SUBST(PULSE_CFLAGS)
+AM_CONDITIONAL( [HAVE_PULSE], [test "x$HAVE_PULSE" = xyes] )
+AC_SUBST(SDL_LIBS)
+AC_SUBST(SDL_LDFLAGS)
+AC_SUBST(SDL_CFLAGS)
+AM_CONDITIONAL( [HAVE_SDL], [test "x$HAVE_SDL" = xyes] )
+AC_SUBST(NAS_LIBS)
+AC_SUBST(NAS_LDFLAGS)
+AC_SUBST(NAS_CFLAGS)
+AM_CONDITIONAL( [HAVE_NAS], [test "x$HAVE_NAS" = xyes] )
+AC_SUBST(AIX_LIBS)
+AC_SUBST(AIX_LDFLAGS)
+AC_SUBST(AIX_CFLAGS)
+AM_CONDITIONAL( [HAVE_AIX], [test "x$HAVE_AIX" = xyes] )
+AC_SUBST(ALIB_LIBS)
+AC_SUBST(ALIB_LDFLAGS)
+AC_SUBST(ALIB_CFLAGS)
+AM_CONDITIONAL( [HAVE_ALIB], [test "x$HAVE_ALIB" = xyes] )
+AC_SUBST(ARTS_LIBS)
+AC_SUBST(ARTS_LDFLAGS)
+AC_SUBST(ARTS_CFLAGS)
+AM_CONDITIONAL( [HAVE_ARTS], [test "x$HAVE_ARTS" = xyes] )
+AC_SUBST(HP_LIBS)
+AC_SUBST(HP_LDFLAGS)
+AC_SUBST(HP_CFLAGS)
+AM_CONDITIONAL( [HAVE_HP], [test "x$HAVE_HP" = xyes] )
+AC_SUBST(OS2_LIBS)
+AC_SUBST(OS2_LDFLAGS)
+AC_SUBST(OS2_CFLAGS)
+AM_CONDITIONAL( [HAVE_OS2], [test "x$HAVE_OS2" = xyes] )
+AC_SUBST(SGI_LIBS)
+AC_SUBST(SGI_LDFLAGS)
+AC_SUBST(SGI_CFLAGS)
+AM_CONDITIONAL( [HAVE_SGI], [test "x$HAVE_SGI" = xyes] )
+AC_SUBST(MINT_LIBS)
+AC_SUBST(MINT_LDFLAGS)
+AC_SUBST(MINT_CFLAGS)
+AM_CONDITIONAL( [HAVE_MINT], [test "x$HAVE_MINT" = xyes] )
+AC_SUBST(DUMMY_LIBS)
+AC_SUBST(DUMMY_LDFLAGS)
+AC_SUBST(DUMMY_CFLAGS)
+AM_CONDITIONAL( [HAVE_DUMMY], [test "x$HAVE_DUMMY" = xyes] )
+
+# Did user choose default audio subsystem ?
+if test "x$with_default_audio" != "x"; then
+ default_output_module=$with_default_audio
+else
+ default_output_module=`echo "$output_modules" | $AWK '{ print $1 }'`
+fi
+
+# That's (beginning of) the list for mpg123's internal default.
+default_output_modules=$default_output_module
+
+OUTPUT_OBJ=
+OUTPUT_MOD=
+OUTPUT_CFLAGS=
+OUTPUT_LIBS=
+OUTPUT_LDFLAGS=
+
+# Setup the static build.
+if test "x$modules" = xdisabled
+then
+ echo "Preparing static output $default_output_module"
+ OUTPUT_MOD="$default_output_module"
+ OUTPUT_OBJ="output/$default_output_module.\$(OBJEXT)"
+ OUTPUT_CFLAGS=
+ OUTPUT_LIBS=
+ # That feels stupid... what about hashed arrays?
+ case $OUTPUT_MOD in
+ # Here's a script for that tedious list, perhaps to be outsourced together with the one in src/output/Makefile.am
+#for i in alsa coreaudio esd jack nas oss portaudio pulse sdl sndio sun win32 aix alib arts hp os2 sgi mint; do echo $i; done |
+#perl -ne 'chomp; $big = uc($_); print <<EOT;
+# $_)
+# OUTPUT_LIBS="\$${big}_LIBS"
+# OUTPUT_LDFLAGS="\$${big}_LDFLAGS"
+# OUTPUT_CFLAGS="\$${big}_CFLAGS"
+# ;;
+#EOT
+#'
+ alsa)
+ OUTPUT_LIBS="$ALSA_LIBS"
+ OUTPUT_LDFLAGS="$ALSA_LDFLAGS"
+ OUTPUT_CFLAGS="$ALSA_CFLAGS"
+ ;;
+ coreaudio)
+ OUTPUT_LIBS="$COREAUDIO_LIBS"
+ OUTPUT_LDFLAGS="$COREAUDIO_LDFLAGS"
+ OUTPUT_CFLAGS="$COREAUDIO_CFLAGS"
+ ;;
+ esd)
+ OUTPUT_LIBS="$ESD_LIBS"
+ OUTPUT_LDFLAGS="$ESD_LDFLAGS"
+ OUTPUT_CFLAGS="$ESD_CFLAGS"
+ ;;
+ jack)
+ OUTPUT_LIBS="$JACK_LIBS"
+ OUTPUT_LDFLAGS="$JACK_LDFLAGS"
+ OUTPUT_CFLAGS="$JACK_CFLAGS"
+ ;;
+ nas)
+ OUTPUT_LIBS="$NAS_LIBS"
+ OUTPUT_LDFLAGS="$NAS_LDFLAGS"
+ OUTPUT_CFLAGS="$NAS_CFLAGS"
+ ;;
+ oss)
+ OUTPUT_LIBS="$OSS_LIBS"
+ OUTPUT_LDFLAGS="$OSS_LDFLAGS"
+ OUTPUT_CFLAGS="$OSS_CFLAGS"
+ ;;
+ portaudio)
+ OUTPUT_LIBS="$PORTAUDIO_LIBS"
+ OUTPUT_LDFLAGS="$PORTAUDIO_LDFLAGS"
+ OUTPUT_CFLAGS="$PORTAUDIO_CFLAGS"
+ ;;
+ pulse)
+ OUTPUT_LIBS="$PULSE_LIBS"
+ OUTPUT_LDFLAGS="$PULSE_LDFLAGS"
+ OUTPUT_CFLAGS="$PULSE_CFLAGS"
+ ;;
+ sdl)
+ OUTPUT_LIBS="$SDL_LIBS"
+ OUTPUT_LDFLAGS="$SDL_LDFLAGS"
+ OUTPUT_CFLAGS="$SDL_CFLAGS"
+ ;;
+ sndio)
+ OUTPUT_LIBS="$SNDIO_LIBS"
+ OUTPUT_LDFLAGS="$SNDIO_LDFLAGS"
+ OUTPUT_CFLAGS="$SNDIO_CFLAGS"
+ ;;
+ sun)
+ OUTPUT_LIBS="$SUN_LIBS"
+ OUTPUT_LDFLAGS="$SUN_LDFLAGS"
+ OUTPUT_CFLAGS="$SUN_CFLAGS"
+ ;;
+ win32)
+ OUTPUT_LIBS="$WIN32_LIBS"
+ OUTPUT_LDFLAGS="$WIN32_LDFLAGS"
+ OUTPUT_CFLAGS="$WIN32_CFLAGS"
+ ;;
+ aix)
+ OUTPUT_LIBS="$AIX_LIBS"
+ OUTPUT_LDFLAGS="$AIX_LDFLAGS"
+ OUTPUT_CFLAGS="$AIX_CFLAGS"
+ ;;
+ alib)
+ OUTPUT_LIBS="$ALIB_LIBS"
+ OUTPUT_LDFLAGS="$ALIB_LDFLAGS"
+ OUTPUT_CFLAGS="$ALIB_CFLAGS"
+ ;;
+ arts)
+ OUTPUT_LIBS="$ARTS_LIBS"
+ OUTPUT_LDFLAGS="$ARTS_LDFLAGS"
+ OUTPUT_CFLAGS="$ARTS_CFLAGS"
+ ;;
+ hp)
+ OUTPUT_LIBS="$HP_LIBS"
+ OUTPUT_LDFLAGS="$HP_LDFLAGS"
+ OUTPUT_CFLAGS="$HP_CFLAGS"
+ ;;
+ os2)
+ OUTPUT_LIBS="$OS2_LIBS"
+ OUTPUT_LDFLAGS="$OS2_LDFLAGS"
+ OUTPUT_CFLAGS="$OS2_CFLAGS"
+ ;;
+ sgi)
+ OUTPUT_LIBS="$SGI_LIBS"
+ OUTPUT_LDFLAGS="$SGI_LDFLAGS"
+ OUTPUT_CFLAGS="$SGI_CFLAGS"
+ ;;
+ mint)
+ OUTPUT_LIBS="$MINT_LIBS"
+ OUTPUT_LDFLAGS="$MINT_LDFLAGS"
+ OUTPUT_CFLAGS="$MINT_CFLAGS"
+ ;;
+ esac
+else
+ # Now make a comma-separated list again... eliminating the possible duplicate and dummy.
+ for i in $output_modules
+ do
+ if test $i != $default_output_module && test $i != dummy; then
+ default_output_modules=$default_output_modules,$i
+ fi
+ done
+fi
+
+AC_DEFINE_UNQUOTED( DEFAULT_OUTPUT_MODULE, "$default_output_modules", [The default audio output module(s) to use] )
+
+
+AC_SUBST(OUTPUT_OBJ)
+AC_SUBST(OUTPUT_MOD)
+AC_SUBST(OUTPUT_CFLAGS)
+AC_SUBST(OUTPUT_LIBS)
+AC_SUBST(OUTPUT_LDFLAGS)
+
+dnl ############## Compiler Optimizations
+
+CFLAGS="$ADD_CFLAGS $CFLAGS"
+if test x"$buffer" = xdisabled; then
+ ADD_CPPFLAGS="$ADD_CPPFLAGS -DNOXFERMEM"
+fi
+CPPFLAGS="$ADD_CPPFLAGS $CPPFLAGS"
+LDFLAGS="$ADD_LDFLAGS $LDFLAGS"
+
+# None chosen?
+if test "x$with_optimization" = "x"; then
+ if test x"$debugging" = xenabled; then
+ with_optimization="0"
+ else
+ # enable (gcc specific) default opts only with gcc
+ if test "x$GCC" = xyes; then
+ with_optimization="2"
+ else
+ with_optimization="0"
+ fi
+ fi
+fi
+
+case $with_optimization in
+ 0)
+ # No Optimizations
+ CFLAGS="$CFLAGS"
+ ;;
+ 1)
+ CFLAGS="-O $CFLAGS"
+ ;;
+ 2)
+ CFLAGS="-O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
+ ;;
+ 3)
+ CFLAGS="-O3 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
+ ;;
+ 4)
+ CFLAGS="-O4 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $CFLAGS"
+ ;;
+ *)
+ AC_MSG_ERROR([Unknown optimizations level '$with_optimization'])
+ ;;
+esac
+
+dnl If using gcc, prevent a bad alignment option from breaking things.
+dnl Let's default to safe 16-byte alignment for any special x86 or altivec stuff.
+if test "x$GCC" = xyes && echo "$CFLAGS" | grep -q 'mpreferred-stack-boundary='; then
+ case $cpu_type in
+ x86 | i586* | mmx | sse | 3dnow* | altivec)
+ AC_MSG_WARN( [ You are trying to mess with stack alignment. I know better. ] )
+ CFLAGS="$CFLAGS -mpreferred-stack-boundary=4"
+ ;;
+ esac
+fi
+
+dnl ############## Seektable size
+
+if test "x$with_seektable" = "x"; then
+ seektable=1000
+else
+ seektable=$with_seektable
+fi
+
+if test "$seektable" -gt 0; then
+ AC_DEFINE(FRAME_INDEX, 1, [ Define if frame index should be used. ])
+fi
+# Define that always... also without frame index enabled.
+AC_DEFINE_UNQUOTED(INDEX_SIZE, $seektable, [size of the frame index seek table])
+
+dnl ############## Final Output
+
+# Do that here to prevent the above tests usign -lltdl...
+if test "x$modules" = xenabled; then
+ LIBS="-lltdl $LIBS"
+fi
+
+AC_CONFIG_FILES([
+ Makefile
+ libmpg123.pc
+ doc/Makefile
+ src/Makefile
+ src/output/Makefile
+ src/libmpg123/Makefile
+ src/libmpg123/mpg123.h
+ src/libmpg123/libmpg123.sym
+])
+
+AC_OUTPUT
+
+
+
+dnl ############## Display Message
+
+echo "
+ $PACKAGE_NAME $PACKAGE_VERSION
+
+ Install path ............ $prefix
+ CPU Optimisation......... $cpu_type
+ Compiler Optimization ... $with_optimization
+ Gapless Support ......... $gapless
+ Debugging ............... $debugging
+ Seek table size ......... $seektable
+ FIFO support ............ $fifo
+ Buffer .................. $buffer
+ Network (http streams) .. $network
+ IPv6 (getaddrinfo) ...... $ipv6
+ File offset (if needed) . $ac_cv_sys_file_offset_bits
+ Alignment checks ........ $aligncheck"
+if test x"$aligncheck" = xenabled; then
+ if test x"$ccalign" != xyes; then
+ echo " (without effect since special alignment is not employed)"
+ fi
+ if test x"$GCC" = xyes; then
+ echo " (note that newer gcc 4.x versions do not use/need the align check)"
+ fi
+fi
+echo -n "
+ Core libmpg123 features:
+ Integer conversion ...... $integers
+ Layer I ................. $layer1
+ Layer II ................ $layer2
+ Layer III ............... $layer3
+ NtoM resampling ......... $ntom
+ downsampled decoding .... $downsample
+ Feeder/buffered input ... $feeder
+ ID3v2 parsing ........... $id3v2
+ String API .............. $string
+ ICY parsing/conversion .. $icy
+ Error/warning messages .. $messages
+ Output formats (nofpu will disable all but 16 or 8 bit!):
+ 8 bit integer ........... $int8
+ 16 bit integer .......... $int16
+ 32 bit integer .......... $int32
+ real (32 bit float) ..... $real
+"
+# just an empty line
+echo
+
+echo " Modules ................. $modules"
+echo " Checked audio modules ... $check_modules
+ Detected audio support ..$output_modules
+ Default output module ... $default_output_module
+"
+if test x"$modules" = xdisabled; then
+echo "The _single_ active output module is being statically linked in.
+"
+fi
+if test x"$with_optimization" = x0; then
+ echo "No optimization flags chosen, make sure you have something basic in your CFLAGS at least...
+"
+fi
+if test x"$debugging" = xenabled; then
+ echo "CFLAGS='$CFLAGS'"
+ echo "LIBS='$LIBS'"
+else
+ echo "Next type 'make' and then 'make install'."
+fi
diff --git a/doc/ACCURACY b/doc/ACCURACY
new file mode 100644
index 0000000..cd84833
--- /dev/null
+++ b/doc/ACCURACY
@@ -0,0 +1,2 @@
+We do regular testing of ISO MPEG compliant decoder accuracy, automatic with snapshot generation each night at least, with results shown on the front page of http://mpg123.org .
+Since version 1.8.0, mpg123 really looks fine in that area... it's fast and sounds good;-)
diff --git a/doc/BENCHMARKING b/doc/BENCHMARKING
new file mode 100644
index 0000000..cf080eb
--- /dev/null
+++ b/doc/BENCHMARKING
@@ -0,0 +1,110 @@
+O-tone Michael Hipp: The mp3 benchmarking lie?
+----------------------------------------------
+
+Let's write a few notes about benchmarking the different mp3 decoders,
+which are available. 'top' is NOT a benchmark, it's a simple check
+how a program performs. The sad thing with 'top' is, that it has some
+problems with the measurement of threaded programs of programs only
+requesting short chunks of processor time. So, the only real test is
+probably decoding a stream without threads with 100% CPU time and
+measure the time how long your machine needs for it.
+You can do this with mpg123 by doing a
+ time mpg123 -t mp3stream.mp3
+or
+ time mpg123 -s mp3stream.mp3 > /dev/null
+if you additionally want to measure the I/O time.
+
+If you find a player, which claims to be 10 or even more times faster than the
+current players: just don't believe it. A factor of 2 MAY BE possible.
+
+
+Thomas's mpg123 decision process
+--------------------------------
+
+I made some tests back then when I wondered if there is a point in using another "modern" mp3 decoder for my mixing daemon. This was around Dec. 2004 till Feb. 2005 with current versions (0.59r-thorX in the case of mpg123). What follows is a copy of the DECODERS file in the dermixd distribution:
+
+What decoder should one use?
+
+-----
+ MP3
+-----
+
+mpg123 is the old-fashioned way, uncertain license, may have some problems with extraordinary files (huge id3v2 tags, other specialities?), but fast. Has EQ control; interactive frontend interface (in parts hacked by me...).
+
+mpg321: is popular these days... interface? speed?
+
+madplay: is becoming popular these days, handles RVA2 by itself... can't provide an interface nor EQ
+
+
+speed:
+
+decoding Dirty Guitar with NULL output, pentium-optimized (not more):
+
+decoder user time/s
+mpg123 23
+madplay(hq) 46
+madplay(speed) 34
+mpg321(hq) 62
+mpg321(speed) 49
+
+
+So, there is still a strong technical point in using mpg123... even when my 366MHz-Laptop can easily handle several decoders at once with either of the programs, every percent cpu usage drags on the battery... and takes the cpu time from the real work
+
+-----
+ OGG
+-----
+
+7,9M /tmp/dirty_guitar-q3.ogg
+11M /tmp/dirty_guitar-q5.ogg
+13M /tmp/dirty_guitar-q6.ogg
+15M /tmp/dirty_guitar-q7.ogg
+22M /tmp/dirty_guitar-q9.ogg
+29M /tmp/dirty_guitar-q10.ogg
+14M /tmp/dirty_guitar-std.mp3
+101M /tmp/dirty_guitar.wav
+
+speed of ogg123:
+
+quality user time/s
+3 31
+5 36
+6 38
+7 39
+10 55
+
+So, with similar care as mpg123 concerning some (assembler?) optimization, ogg could well come close to "fast" mp3 decoding.
+Does ist sound better, then?
+
+
+A review from the new maintainer
+--------------------------------
+
+Now it's 2006, 23th of July. Still the same laptop, still the same mp3 file.
+I just want to update the number for current mpg123 with the mmx optimization.
+I should also see if competition (well, ogg, at least?) improved in the year that passed... but looking only at mp3, that reduces to the question if mpg123 got faster or slower.
+Neither on the mpg321 site or the MAD site (ftp dir) did I find any new version. MAD is still 0.15.1b (0.15.2b for madplay), mpg321 still 0.2.10 .
+Well, I can look at mplayer's mpg123 spawn called mp3lib that has been taken care for over the time.
+But apart from that, will mpg123 stand alone on the field of console mp3 engines that are actively maintained???
+To have at least some twist, I now measured the output of raw data to stdout (to /dev/null) instead of decoding alone. The hardware and largely the software is still the same (now kernel 2.6.11 instead of 2.6.?).
+I've only used the "high quality" mad players - the earlier measurements give a hint about the difference to the "speed" variant.
+
+mpg123-0.60-beta1, underworld_@_dirty_guitar.mp3
+
+gcc-3.3.3
+CFLAGS=-O2 -finline-functions -march=pentium2
+built with the new autoconf/make system
+machine in X11 running fluxbox, no active load (like a year ago)
+measuring second run (with cached file)
+
+time for -s > /dev/null decode...
+pentium: 24s
+pentium, MMX: 19s
+pentium, MMX, gapless (runtime-disabled): 19s
+pentium, MMX, gapless (also runtime-enabled): 19s
+mpg321 0.2.10, high quality: 64s
+madplay 0.15.2b, high quality: 56s
+
+With the file length being m:s 9:58 (598s), for mpg123 that makes theoretical realtime cpu 3-4% for the PII-366.
+Incidentally, `top` agrees there: it shows 3.0-3.3% CPU usage for the MMX/gapless binary during normal OSS playback.
+
+I feel unable to benchmark the mp3 playback of mplayer - I don't see an option to make it decode audio as fast as possible (I only know -benhcmark and -noaudio; with esp. the latter not helping me there).
diff --git a/doc/BUGS b/doc/BUGS
new file mode 100644
index 0000000..22139c8
--- /dev/null
+++ b/doc/BUGS
@@ -0,0 +1,3 @@
+If you find a bug, please check for and report it in the sourceforge bug tracking system:
+
+ http://sourceforge.net/tracker/?atid=733194&group_id=135704&func=browse
diff --git a/doc/CONTACT b/doc/CONTACT
new file mode 100644
index 0000000..3bfc2cd
--- /dev/null
+++ b/doc/CONTACT
@@ -0,0 +1,17 @@
+If you have a problem with some mp3 file or with your platform that should be supported by mpg123, please post on the mpg123 user mailing list
+
+ mpg123-users@lists.sourceforge.net
+
+Any ideas for feature improvements or any other suggestions concerning development may be better placed at
+
+ mpg123-devel@lists.sourceforge.net
+
+If you don't want to subscribe to these, you can also drop a note to
+
+ maintainer@mpg123.org
+
+But if you want to subscribe and participate in the open discussion or just browse the mailing list archives, see
+
+ http://sourceforge.net/mail/?group_id=135704
+
+(or just http://sourceforge.net/projects/mpg123 and click through).
diff --git a/doc/LICENSE b/doc/LICENSE
new file mode 100644
index 0000000..0ede421
--- /dev/null
+++ b/doc/LICENSE
@@ -0,0 +1,22 @@
+GNU says that the license terms go into a file called COPYING.
+Go over to COPYING to read the license, then.
+
+Or...
+
+You stay a bit with me here and read some not really important text.
+You could imagine that there was some important text here, though.
+You could also imagine that you were not sitting
+ in your office / living room / bathroom
+ in front of one of these evil electronic brains
+ (you didn't _print_ this file, did you?)
+ but being at some happy place, far, far away.
+You could also imagine being at some unhappy place.
+If you indeed are at such an unhappy place, imagine you were sitting
+ in your office / living room / bathroom
+ in front of this shiny, though evil, electronic brain.
+ Reading this pointless text.
+ Wondering about what you could have achieved in the past moments
+ if you wouldn't have continued reading this pointless text.
+ Wondering if anything is worth being achieved at all.
+ Or if it all is just...
+pointless.
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..da0dac7
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,31 @@
+## Makefile.am: produce Makefile.in from this
+
+## copyright by the mpg123 project - free software under the terms of the LGPL 2.1
+## see COPYING and AUTHORS files in distribution or http://mpg123.org
+## initially written by Nicholas J. Humfrey
+
+
+EXTRA_DIST = \
+ BENCHMARKING \
+ BUGS \
+ CONTACT \
+ PATENTS \
+ README.3DNOW \
+ README.gain \
+ README.remote \
+ ROAD_TO_LGPL \
+ TODO \
+ LICENSE \
+ THANKS \
+ ACCURACY \
+ libmpg123_speed.txt \
+ doxyhead.xhtml \
+ doxy_examples.c \
+ doxygen.conf \
+ examples/mpg123_to_wav.c \
+ examples/scan.c \
+ examples/mpglib.c \
+ examples/id3dump.c \
+ examples/feedseek.c \
+ examples/dumb_decoder.c \
+ examples/Makefile
diff --git a/doc/Makefile.in b/doc/Makefile.in
new file mode 100644
index 0000000..49c1929
--- /dev/null
+++ b/doc/Makefile.in
@@ -0,0 +1,436 @@
+# Makefile.in generated by automake 1.10.2 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+subdir = doc
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in THANKS TODO
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/src/config.h
+CONFIG_CLEAN_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AIX_CFLAGS = @AIX_CFLAGS@
+AIX_LDFLAGS = @AIX_LDFLAGS@
+AIX_LIBS = @AIX_LIBS@
+ALIB_CFLAGS = @ALIB_CFLAGS@
+ALIB_LDFLAGS = @ALIB_LDFLAGS@
+ALIB_LIBS = @ALIB_LIBS@
+ALSA_CFLAGS = @ALSA_CFLAGS@
+ALSA_LDFLAGS = @ALSA_LDFLAGS@
+ALSA_LIBS = @ALSA_LIBS@
+AMTAR = @AMTAR@
+AR = @AR@
+ARTS_CFLAGS = @ARTS_CFLAGS@
+ARTS_LDFLAGS = @ARTS_LDFLAGS@
+ARTS_LIBS = @ARTS_LIBS@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
+CCASFLAGS = @CCASFLAGS@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+COREAUDIO_CFLAGS = @COREAUDIO_CFLAGS@
+COREAUDIO_LDFLAGS = @COREAUDIO_LDFLAGS@
+COREAUDIO_LIBS = @COREAUDIO_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DECODER_LOBJ = @DECODER_LOBJ@
+DECODER_OBJ = @DECODER_OBJ@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMMY_CFLAGS = @DUMMY_CFLAGS@
+DUMMY_LDFLAGS = @DUMMY_LDFLAGS@
+DUMMY_LIBS = @DUMMY_LIBS@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_LDFLAGS = @ESD_LDFLAGS@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GREP = @GREP@
+HP_CFLAGS = @HP_CFLAGS@
+HP_LDFLAGS = @HP_LDFLAGS@
+HP_LIBS = @HP_LIBS@
+INCLUDE_STDIO_H = @INCLUDE_STDIO_H@
+INCLUDE_STDLIB_H = @INCLUDE_STDLIB_H@
+INCLUDE_SYS_TYPE_H = @INCLUDE_SYS_TYPE_H@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+JACK_CFLAGS = @JACK_CFLAGS@
+JACK_LDFLAGS = @JACK_LDFLAGS@
+JACK_LIBS = @JACK_LIBS@
+LARGEFILE_BITS = @LARGEFILE_BITS@
+LARGEFILE_SUFFIX = @LARGEFILE_SUFFIX@
+LARGEFILE_SWITCH = @LARGEFILE_SWITCH@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBMPG123_VERSION = @LIBMPG123_VERSION@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_LDFLAGS = @LT_LDFLAGS@
+MAKEINFO = @MAKEINFO@
+MINT_CFLAGS = @MINT_CFLAGS@
+MINT_LDFLAGS = @MINT_LDFLAGS@
+MINT_LIBS = @MINT_LIBS@
+MKDIR_P = @MKDIR_P@
+MODULE_OBJ = @MODULE_OBJ@
+NAS_CFLAGS = @NAS_CFLAGS@
+NAS_LDFLAGS = @NAS_LDFLAGS@
+NAS_LIBS = @NAS_LIBS@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OS2_CFLAGS = @OS2_CFLAGS@
+OS2_LDFLAGS = @OS2_LDFLAGS@
+OS2_LIBS = @OS2_LIBS@
+OSS_CFLAGS = @OSS_CFLAGS@
+OSS_LDFLAGS = @OSS_LDFLAGS@
+OSS_LIBS = @OSS_LIBS@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+OUTPUT_CFLAGS = @OUTPUT_CFLAGS@
+OUTPUT_LDFLAGS = @OUTPUT_LDFLAGS@
+OUTPUT_LIBS = @OUTPUT_LIBS@
+OUTPUT_MOD = @OUTPUT_MOD@
+OUTPUT_OBJ = @OUTPUT_OBJ@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@
+PORTAUDIO_LDFLAGS = @PORTAUDIO_LDFLAGS@
+PORTAUDIO_LIBS = @PORTAUDIO_LIBS@
+PULSE_CFLAGS = @PULSE_CFLAGS@
+PULSE_LDFLAGS = @PULSE_LDFLAGS@
+PULSE_LIBS = @PULSE_LIBS@
+RANLIB = @RANLIB@
+SDL_CFLAGS = @SDL_CFLAGS@
+SDL_LDFLAGS = @SDL_LDFLAGS@
+SDL_LIBS = @SDL_LIBS@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SGI_CFLAGS = @SGI_CFLAGS@
+SGI_LDFLAGS = @SGI_LDFLAGS@
+SGI_LIBS = @SGI_LIBS@
+SHELL = @SHELL@
+SNDIO_CFLAGS = @SNDIO_CFLAGS@
+SNDIO_LDFLAGS = @SNDIO_LDFLAGS@
+SNDIO_LIBS = @SNDIO_LIBS@
+STRIP = @STRIP@
+SUN_CFLAGS = @SUN_CFLAGS@
+SUN_LDFLAGS = @SUN_LDFLAGS@
+SUN_LIBS = @SUN_LIBS@
+VERSION = @VERSION@
+WIN32_CFLAGS = @WIN32_CFLAGS@
+WIN32_LDFLAGS = @WIN32_LDFLAGS@
+WIN32_LIBS = @WIN32_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+EXTRA_DIST = \
+ BENCHMARKING \
+ BUGS \
+ CONTACT \
+ PATENTS \
+ README.3DNOW \
+ README.gain \
+ README.remote \
+ ROAD_TO_LGPL \
+ TODO \
+ LICENSE \
+ THANKS \
+ ACCURACY \
+ libmpg123_speed.txt \
+ doxyhead.xhtml \
+ doxy_examples.c \
+ doxygen.conf \
+ examples/mpg123_to_wav.c \
+ examples/scan.c \
+ examples/mpglib.c \
+ examples/id3dump.c \
+ examples/feedseek.c \
+ examples/dumb_decoder.c \
+ examples/Makefile
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu doc/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ distclean distclean-generic distclean-libtool distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-dvi install-dvi-am \
+ install-exec install-exec-am install-html install-html-am \
+ install-info install-info-am install-man install-pdf \
+ install-pdf-am install-ps install-ps-am install-strip \
+ installcheck installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic \
+ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/doc/PATENTS b/doc/PATENTS
new file mode 100644
index 0000000..7197e09
--- /dev/null
+++ b/doc/PATENTS
@@ -0,0 +1,39 @@
+Some notes about patents and mpg123 by Thomas Orgis
+---------------------------------------------------
+
+There has been a lot of confusion over mp3 (or more generic mpeg audio) patents and licensing issues due to the patents held by Fraunhofer and marketed by Thomson.
+So, yes, there are patents held by Fraunhofer that are claimed to cover mpeg audio technology. There are also claims that they cover any similar technology (like OGG).
+You may argue if these patents are valid at all (being illegal software patents, or being preceeded by known scientific publications), but they are internationally accepted by patent authorities and if you want to use mp3 commercially you should check
+
+ http://www.mp3licensing.org
+
+for the Fraunhofer/Thomson opinion and their terms.
+
+Since mpg123 is only a mpeg audio player, a good deal of patents that describe the encoding process (the tricky part) will not apply.
+Also, statements from the patent holders up to now always allowed the non-commercial distribution of mpeg audio decoders without any fee.
+They want you to pay for a license when you want to make money by selling a decoder, though. We don't sell mpg123.
+Additionally, one should not forget the fact that the ideas are getting old; the basic (funded by government, btw.) research was somewhen back around the 80s and many patents are going to expire soon, best example in Germany:
+
+P/DE 35 06 912 Method of transmission of an audio signal using grouping of amplitude values
+
+Application was 22.02.1986 in Germany (and around Europe in the same time Jan/Feb 1986).
+German patents last 20 years... now we have 24.07.2006. Time has come...
+
+The idea of a patent is to make the inventor open the invention to the public by giving him some safe time to turn this invention into economical benefit.
+People using (and improving!) the technology freely after that time is _the_ most important aspect of that idea.
+
+Oh, I should mention the "core" mp3 patent (from http://gauss.ffii.org/PatentView/EP287578):
+
+DE 3629434 / EP287578 Digital coding process
+
+Application date in Germany was 29.08.1986 - that means that in a month from now (remember: 24.07.2006) this patent finds its natural end.
+
+Then, there are other patents listed on the Fraunhofer/Thomson website that came very late... The one about join stereo coding was aplied for in Feb 1995. Did mpg123 implement that already back then? History is a bit blurry there...
+There is a patent applied for in 1997, but probably covering encoding only. Still, even if that weren't the case - the basic decoding functionality of mpg123 didn't change that much after 1997; and they couldn't have patented existing functionality.
+In general, few patents seem to cover decoders at all. Of course, with me being no lawyer, that statement is not trustworthy...
+
+Bottom line is:
+
+While Fraunhofer/Thomson don't want to charge free software players - they said that a long time ago, the time for they being able to place such charges is expiring or has already expired. One should really think before adding mp3pro/surround support to mpg123, though, since there are for sure more recent patents for that.
+
+And don't forget: The progress bar is covered by a patent, too.
diff --git a/doc/README.3DNOW b/doc/README.3DNOW
new file mode 100644
index 0000000..98aae5a
--- /dev/null
+++ b/doc/README.3DNOW
@@ -0,0 +1,56 @@
+************************************************************************
+* 3DNow! support by KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp> *
+* <kim@comtec.co.jp> *
+* (http://hannah.ipc.miyakyo-u.ac.jp/kim/) *
+* Syuuhei Kashiyama <squash@mb.kcom.ne.jp> *
+* (http://user.ecc.u-tokyo.ac.jp/~g810370/)*
+************************************************************************
+
+-----------------------------
+What's new in patch for 0.59r
+-----------------------------
+- 3DNow! optimized decode routine (decode_3dnow.s,dct36_3dnow.s ;
+ these code based Syuuhei Kashiyama's 3DNow! patch for mpg123-0.59o)
+- 3DNow! optimized equalizer (equalizer_3dnow.s ; do_equalizer() only)
+- target "linux-3dnow-alsa" "linux-3dnow-esd" added (untested)
+- automatic detect 3DNow! support CPU from CPUFLAGS (getcpuflags.s)
+ (i.e. use floating-pointer decode routine if your CPU isn't support
+ 3DNow! or MMX instructions)
+
+-------------
+Added options
+-------------
+"--test-3dnow" : display result of autodetect and exit
+"--force-3dnow" : force use of 3DNow! optimized decoder
+ (it will cause SIGILL if your CPU isn't support 3DNow! or MMX
+ instructions)
+"--no-3dnow" : force use of floating-pointer decoder
+
+-----------
+How to make
+-----------
+[1] To make 3DNow! optimized mpg123,you need binutils-2.9.1.0.15 or later.
+ You can find the most recent binutils (2.9.1.0.25 until 23.Jun.1999) at
+ - kernel.org (and mirrors) : /pub/linux/devel/gcc/
+ - http://hannah.ipc.miyakyo-u.ac.jp/kim/Linux/binutils/
+ (Takuhiro's local copy)
+ etc.
+[2] Type "make linux-3dnow" (OSS)
+ or "make linux-3dnow-alsa" (ALSA).
+[3] Enjoy!
+
+------------------
+Precompiled binary
+------------------
+You can get precompiled binary of mpg123 (with 3DNow! support) from
+ http://hannah.ipc.miyakyo-u.ac.jp/kim/Linux/mpg123/
+
+----------
+References
+----------
+Useful sources of information on optimizing 3DNow! code include:
+- AMD 3DNow! Technology Manual (Publication #21928)
+ English: http://www.amd.com/K6/k6docs/pdf/21928d.pdf
+ (Japanese: http://www.amd.com/japan/K6/k6docs/j21928c.pdf)
+- AMD-K6-2 Processor Code Optimization Application Note (Publication #21924)
+ English: http://www.amd.com/K6/k6docs/pdf/21924b.pdf
diff --git a/doc/README.gain b/doc/README.gain
new file mode 100644
index 0000000..e12fc5a
--- /dev/null
+++ b/doc/README.gain
@@ -0,0 +1,171 @@
+Thomas Orgis on RVA, Gain and Pain
+
+
+Ok, so I'm going to add RVA/ReplayGain support... the problem there is not to read these valus from ID3 or Lame, not even to do the adjustment itself.
+The problem is more to figure out how to interpret the dB values one gets there.
+
+Main players in the field of relative volume adjustment / soft gain (without modifying actual audio data):
+
+http://www1.cs.columbia.edu/~cvaill/normalize/
+ ...writing RVA2 ID3v2tags for dB offset to user target amplitude, default being -12dB(FS)
+http://www.replaygain.org/
+ ...store the difference to reference of 83dB(SPL) ... somewhere
+
+Both calculate some running RMS and do statistics with this - the main difference is the potentially different target level.
+Also both know two basic types of adjustment: Per track to make all tracks sound at the same sevel (track / radio) and the one with default meaning to keep the loudness relations over albums (batch / audiophile).
+
+dB can mean many things and also the raw value of a PCM sample doesn't equal directly to loudness (power of a wave != amplitude).
+
+So that says the ReplayGain about applying the adjustment:
+
+ scale=10.^(replay_gain/20);
+
+luckily, this is the same that I worked out on my own for the normalize RVA values in my mixplayer script:
+
+ return 10**($s/20);
+
+I'll take that interpretaion of dB -> linear scale factor for samples for granted, then.
+
+The replay_gain value is meant in the standard to represent the offset to 83dB(SPL - depending on your amplifier...), having in mind that actual most wanted average playback level should be 83dB(SPL) (defined by movie ppl as the loudness of a -20dB(FS) signal, leaving room for louder stuff).
+But then there is the proposal to add 6dB preamp for pop music - am I judging music types with mpg123??
+These 6dB are in fact the real world since lots of programs use 89dB(SPL...) as reference.
+Thus, lame since 3.95.1 (according to MADplay's Rob Leslie who discussed with Lame ppl, verified in 3.96 source) stores the adjustment to 89dB.
+To make that all sound the same, one should add 6bB to lame <3.95.1 ReplayGain values and use later ones verbatim - achieving 89dB everytime, whatever that may mean in reality out of my speakers (my Marantz' volume knob doesn't have a scale at all - be it dB or percent;-).
+
+A funny aspect of this 6dB issue is to tell lame 3.95.1 from lame 3.95
+
+As for normalize... the desired playback level is essentially undefined. Ignoring that and realizing that mpg123 has no way to determine real world sound power anyway, one has to just take the provided dB values and apply with the formula above.
+The user is responsible for providing files with his desired settings... for that reason I also won't follow the ReplayGain demand/suggestion that a player should apply an average of gains of previous tracks if the current one lacks a setting.
+
+So, well. Considering that ReplayGain (at least the radio one) being stored by current lame on encoding, I suppose that if there are RVA2 values in ID3v2 tags, these were added by a conscious user act and are overriding the ReplayGain ones.
+
+I already read ReplayGain entries in Lame tag... should add ID3v2 parsing. Especially since the lame tag is ambignous because of the 6dB issue... I cannot distinguish 3.95.1 from 3.95 by reading the tag - frick!
+But wait... 6dB?
+
+[thomas@thorvas /home/thomas-data/mpg123-neu/lame-3.96.1]$ frontend/lame --cbr -T /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3 ../testfiles/happy_man_lame-3.96.1.mp3
+ID3v2 found. Be aware that the ID3 tag is currently lost when transcoding.
+LAME version 3.96.1 (http://lame.sourceforge.net/)
+Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
+Encoding /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3
+ to ../testfiles/happy_man_lame-3.96.1.mp3
+Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3
+ Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
+ 6371/6374 (100%)| 1:41/ 1:41| 1:47/ 1:47| 1.6353x| 0:00
+average: 128.0 kbps LR: 754 (11.83%) MS: 5620 (88.17%)
+
+Writing LAME Tag...done
+ReplayGain: -7.4dB
+revmethod = 1
+encoder padding: 1728
+
+[thomas@thorvas /home/thomas-data/mpg123-neu/lame-3.95.1]$ frontend/lame --cbr -T /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3 ../testfiles/happy_man.mp3
+ID3v2 found. Be aware that the ID3 tag is currently lost when transcoding.
+LAME version 3.95 (http://www.mp3dev.org/)
+Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
+Encoding /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3
+ to ../testfiles/happy_man.mp3
+Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3
+ Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
+ 6371/6374 (100%)| 1:36/ 1:36| 1:48/ 1:48| 1.7289x| 0:00
+average: 128.0 kbps LR: 759 (11.91%) MS: 5615 (88.09%)
+
+Writing LAME Tag...done
+ReplayGain: -7.4dB
+
+[thomas@thorvas /home/thomas-data/mpg123-neu/lame-3.95]$ frontend/lame --cbr -T /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3 ../testfiles/happy_man_lame-3.95.mp3
+ID3v2 found. Be aware that the ID3 tag is currently lost when transcoding.
+LAME version 3.95 (http://www.mp3dev.org/)
+Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz
+Encoding /mnt/knecht_mp3/music/covenant/2006_skyshaper/03-happy_man.mp3
+ to ../testfiles/happy_man_lame-3.95.mp3
+Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3
+ Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
+ 6371/6374 (100%)| 1:37/ 1:37| 1:43/ 1:43| 1.7041x| 0:00
+average: 128.0 kbps LR: 759 (11.91%) MS: 5615 (88.09%)
+
+Writing LAME Tag...done
+ReplayGain: -13.4dB
+
+
+Together with the gain values read from tags:
+
+3.96.1: -1.0dB (claimed -7.4dB)
+3.95: -1.0dB (claimed -7.4dB)
+3.95: -0.6dB (claimed -13.4dB)
+
+So, the difference of 6dB shows in the values lame prints on the command line... but the lame tags only have 0.4dB difference and are much lower anyway - do I parse them correctly?
+
+Opinion of normalize of these files: -2dB. Great. I guess the -1 is what lame really meant, then...
+
+
+Storage places
+==============
+
+Points 1, 2 and 4 implemented to some respect.
+
+
+1. Lame/Info tag
+
+supposedly in format according to the proposed standard - but I yet have to verify if Lame really does this.
+see http://gabriel.mp3-tech.org/mp3infotag.html
+
+
+2. ID3v2 RVA2 frame(s)
+
+Normalize does that. Rare is the software reading that.
+I've never seen those frames since id3v2 -l doesn't know them.
+
+
+3. APE tags
+
+Gah, another Tag format. Foobar2000 uses this as default.
+It's getting real-hy messy folks
+
+
+4. Per convention in ID3 tags
+
+Well, I myself once used the ID3v1 comment field for storing the mix rva value (textual) ... but that is a tad too unspecific.
+I then also used user-defined ID3v2 comments like that:
+
+[thomas@thorvas /home/thomas-data/mpg123-neu/svn/trunk]$ id3v2 -l /mnt/knecht_mp3/music/underworld/second_toughest_in_the_infants/02-banstyle_sappys_curry.mp3
+id3v1 tag info for /mnt/knecht_mp3/music/underworld/second_toughest_in_the_infants/02-banstyle_sappys_curry.mp3:
+Title : banstyle sappys curry Artist: underworld
+Album : second toughest in the infants Year: 0 , Genre: Other (12)
+Comment: Created by Grip Track: 2
+id3v2 tag info for /mnt/knecht_mp3/music/underworld/second_toughest_in_the_infants/02-banstyle_sappys_curry.mp3:
+TYER (Year): 0
+TRCK (Track number/Position in set): 2
+COMM (Comments): (ID3v1 Comment)[XXX]: Created by Grip
+TCON (Content type): Other (12)
+TPE1 (Lead performer(s)/Soloist(s)): underworld
+TALB (Album/Movie/Show title): second toughest in the infants
+TIT2 (Title/songname/content description): banstyle sappys curry
+COMM (Comments): (RVA)[]: 4.3291
+COMM (Comments): (RVA_ALBUM)[]: 3.666101
+
+That still doesn't look like a bad Idea to me. Not bothering with byte ordering and whatnot. Just atof(id3v2_comm_rva).
+One could still add dB, though.
+
+Another convention is (rockbox mailinglist, not checked myself) used by Foobar:
+
+TXXX (User defined text information): (replaygain_track_gain): -7.17 dB
+TXXX (User defined text information): (replaygain_track_peak): 1.057122
+TXXX (User defined text information): (replaygain_album_gain): -6.53 dB
+TXXX (User defined text information): (replaygain_album_peak): 1.107456
+
+So what are custom comment fields for when there are also custom text fields? They look very similar to me.
+
+
+5. Leave the haunted music file alone and store metadata externally.
+
+That's the only sane way for stuff like album art... and it's the way I do it in my music archive. the wrapper script reads the adjustment values and then sets an adjusted volume.
+That's fine for my mixing daemon that manupulates the pcm data anyway, but it would be nice to have this functionality in the minimalist console mode. too.
+Even more since it can be done without additional cpu power during decoding (well, one-time set up of the decode tables is needed for every track) similar to the equalizer.
+I could simply start with text files with lines like
+
+RVA_MIX: 3.4dB
+RVA_ALBUM: 1.7dB
+
+Prob here is that the effort to open and parse that extra file may hinder gapless decoding between tracks...
+Well, one could parse all metadata files for a list of tracks before playback starts.
+But all this won't work for streams via stdin (hm, one could argue if the stream needs RVA at all).
diff --git a/doc/README.remote b/doc/README.remote
new file mode 100644
index 0000000..52d2f11
--- /dev/null
+++ b/doc/README.remote
@@ -0,0 +1,200 @@
+Control interface to generic frontends
+
+The generic remote interface allows frontends to easily control
+mpg123 by commands through stdin/stdout. To start the generic
+remote interface, start mpg123 with parameter -R.
+
+In case of a frontend that starts mpg123 with the -s option to read the audio from stdout, the --remote-err option is automatically activated to send responses to stderr so that stdout stays clean for audio.
+
+(Still the case?)
+As an example it's used by IRMP3, a tool that allows you to
+control mpg123 with a standard infrared remote control. See
+http://www.fasta.fh-dortmund.de/users/andy/irmp3/ for more
+information.
+
+You can also specify --fifo <path> to create a named pipe at <path> and listen on that for commands instead stdin.
+That way, you can deliberately control mpg123 by echoing into the named pipe from any terminal / program.
+The command respones are still sent to standard out or standard error (depending on -s or --remote-err switches).
+
+
+COMMAND CODES
+-------------
+
+You can get this info via the control command "help".
+
+
+HELP/H: command listing (LONG/SHORT forms), command case insensitve
+
+LOAD/L <trackname>: load and start playing resource <trackname>
+
+LOADPAUSED/LP <trackname>: load but do not start playing resource <trackname>
+
+PAUSE/P: pause playback
+
+STOP/S: stop playback (closes file)
+
+JUMP/J <frame>|<+offset>|<-offset>|<[+|-]seconds>s: jump to mpeg frame <frame> or change position by offset, same in seconds if number followed by "s"
+
+VOLUME/V <percent>: set volume in % (0..100...); float value
+
+RVA off|(mix|radio)|(album|audiophile): set rva mode
+
+EQ/E <channel> <band> <value>: set equalizer value for frequency band 0 to 31 on channel 1 (left) or 2 (right) or 3 (both)
+
+EQFILE <filename>: load EQ settings from a file
+
+SHOWEQ: show all equalizer settings (as <channel> <band> <value> lines in a SHOWEQ block (like TAG))
+
+SEEK/K <sample>|<+offset>|<-offset>: jump to output sample position <samples> or change position by offset
+
+SCAN: scan through the file, building seek index
+
+SAMPLE: print out the sample position and total number of samples
+
+SEQ <bass> <mid> <treble>: simple eq setting...
+
+SILENCE: be silent during playback (meaning silence in text form)
+
+TAG/T: Print all available (ID3) tag info, for ID3v2 that gives output of all collected text fields, using the ID3v2.3/4 4-character names.
+ The output is multiple lines, begin marked by "@T {", end by "@T }".
+ ID3v1 data is like in the @I info lines (see below), just with "@T" in front.
+ An ID3v2 data field is introduced via ([ ... ] means optional):
+ @T ID3v2.<NAME>[ [lang(<LANG>)] desc(<description>)]:
+ The lines of data follow with "=" prefixed:
+ @T =<one line of content in UTF-8 encoding>
+
+
+RESPONSE CODES
+--------------
+
+Note: mpg123 returns errors on stderr, so your frontend should
+ look not only at stdout but also at stderr for responses.
+ It is a good idea to use --remote-err and just look at stderr.
+
+@R MPG123 (ThOr) v4
+ Startup version message. Everything after MPG123 is auxilliary information about behaviour and command support, ID3v2 tag support is new in v3.
+
+@I ID3:<a><b><c>
+ Status message after loading a song (ID3 song info)
+ a = title (exactly 30 chars)
+ b = artist (exactly 30 chars)
+ c = album (exactly 30 chars)
+ d = year (exactly 4 chars)
+ e = comment (exactly 30 chars)
+ f = genre (string)
+
+@I ID3.genre:<number>
+@I ID3.track:<number>
+ Optional lines with additional ID3v1 info (if present): Genre ID and track number in set.
+
+@I ID3v2.title:<text>
+ After loading a track with ID3v2 info, such lines occur for every line of the "title" data field and likewise for other fields (author, album, etc).
+
+@I <a>
+ Status message after loading a song (no ID3 song info)
+ a = filename without path and extension
+
+@S <a> <b> ...
+ Stream info at beginning of playback, meaning
+ S <mpeg-version> <layer> <sampling freq> <mode(stereo/mono/...)> <mode_ext> <framesize> <stereo> <copyright> <error_protected> <emphasis> <bitrate> <extension> <vbr(0/1=yes/no)>
+
+@S <a> <b> <c> <d> <e> <f> <g> <h> <i> <j> <k> <l>
+ Status message after loading a song (stream info)
+ a = mpeg type (string)
+ b = layer (int)
+ c = sampling frequency (int)
+ d = mode (string)
+ e = mode extension (int)
+ f = framesize (int)
+ g = stereo (int)
+ h = copyright (int)
+ i = error protection (int)
+ j = emphasis (int)
+ k = bitrate (int)
+ l = extension (int)
+
+@F <a> <b> <c> <d>
+ Status message during playing (frame info)
+ a = framecount (int)
+ b = frames left this song (int)
+ c = seconds (float)
+ d = seconds left (float)
+
+@P <a>
+ Playing status
+ a = 0: playing stopped
+ a = 1: playing paused
+ a = 2: playing unpaused
+
+@E <a>
+ An error occured
+ Errors may be also reported by mpg123 through
+ stderr (without @E)
+ a = error message (string)
+
+@J <n>
+ Jumped to frame n.
+
+@RVA <mode>
+ Switched to specified RVA mode.
+
+@V <volume>%
+ Set volume to specified value (float, percent).
+
+@<x> : <y> : <z>
+ Set equalizer value z for band y of channel x.
+
+@bass: <b> mid: <m> treble: <t>
+ Set simple equalizer control for bass, mid, treble.
+
+@T <response from TAG command>
+ The output is multiple lines, begin marked by "@T {", end by "@T }".
+ ID3v1 data is like in the @I info lines, just with "@T" in front.
+ An ID3v2 data field is introduced via ([ ... ] means optional):
+ @T ID3v2.<NAME>[ [lang(<LANG>)] desc(<description>)]:
+ The lines of data follow with "=" prefixed:
+ @T =<one line of content in UTF-8 encoding>
+
+
+EQUALIZER CONTROL (History)
+---------------------------
+
+WARNING: The interpretation of the command arguments changed. The channel is either 1 or 2 or 3 (left, right, both).
+It used to be 0 or 1 for left or right but the change slipped through during libmpg123 work and now it is a fact.
+Sorry.
+
+Cold Feet Audio Patch for MPG123
+
+10.07.2002
+
+This is a dirty little hack to enable the equalizer in mpg123's
+generic_control interface. It works like this, there are two
+different channels on the equalizer and 32 frequencys.
+
+The hack just enables mpg123's built in equalizer to run real-time.
+We haven't built in any capability to save the eq, you're frontend
+will have to handle that part, and init the eq on the startup of
+mpg123.
+
+K, it works like this:
+
+#./mpg123 -R - <---- This command will start mpg123 in 'frontend' mode.
+
+If you want to send it some eq values you'd send it:
+eq X Y V[ENTER]
+
+X = The channel. It can be either 0 or 1. I haven't put any error checking
+ in, so it probably wouldn't be a good idea to go out of bounds. (integer)
+Y = This is the frequency, it can be 0 to 31. 0 being closer to treble and
+ 31 being closer to bass. (integer)
+V = The raw value of your equalizer setting. I've found that the values work
+ best between 0.00 and 3.00. When mpg123 starts up, all of them are set
+ to 1.00.
+
+OK, have fun! If you have any questions or found some bugs, please contact
+nutcase@dtmf.org
+
+Thanks,
+nut
+
+Note by Thomas Orgis: The contact appears to be dead.
diff --git a/doc/ROAD_TO_LGPL b/doc/ROAD_TO_LGPL
new file mode 100644
index 0000000..3f3e8fe
--- /dev/null
+++ b/doc/ROAD_TO_LGPL
@@ -0,0 +1,270 @@
+The License of mpg123
+=====================
+
+ by Thomas Orgis <thomas@orgis.org>
+
+1. Story: The Odyssey, The Decision
+-----------------------------------
+
+This is the 17th of July in the year 2006, after half a year of preparation and the contributor email campaign running for over 3 months, I'm going to draw a conclusion about the licensing of mpg123 project.
+
+
+The license conditions of mpg123 have been subject to dispute and rejection by parts of the free software world in the past...
+We want to have it straight now.
+Michael doesn't have much freetime to maintain the code and bother with requests by companies wanting to use mpglib.
+So, he already decided to place mpglib under LGPL and mpg123 under GPL in the past.
+Now, after I applied for taking over maintainership we decided on placing as much code of the whole project as possible under LGPL to ease future code migration and merging between mpg123 and mpglib.
+
+That decision was followed by a lot of work to track down as many contributors to both Michael's development tree and my -thor one as possible to ask them for explicit LGPL support statements.
+I wrote to every Name/eMail address I could track down (including internet search for new addresses), regardless of the question if there indeed is some code left by that person.
+I asked them to utter any problem they may have with LGPL license as well as contacting me if there are _no_ issues.
+
+Of course, without having to ask again, supporters of LGPL are the initial author and the two current maintainers:
+
+ Michael Hipp
+ Nicholas J. Humfrey
+ Thomas Orgis
+
+Also, new stuff was included with explicit LGPL permission from
+
+ Adrian Bacon
+ Romain Dolbeau
+ Guillaume Outters
+
+Plus there is stuff pending with permission from
+
+ Zuxy Meng
+
+Now for the folks having made suggestions and contributions over the years...
+In the first round starting in March 2006 I wrote the initial mail to anyone I could get. That resulted in some positive responses - examples:
+
+ "I don't remember what I did, but LGPL is fine by me."
+
+ "No problem for me."
+
+ "Any code I may have contributed to the mpg123 project at any time in the
+past are hereby licensed to you under the GNU Lesser General Public"
+
+ "it's fine with me if mpg123 goes LGPL.
+ However, my contribution to mpg123 was very minor, and I'm not even sure if
+ any of my code is still in the current version."
+
+A good number of eMail addresses is just broken (years have passed...) and another good number of addresses are either totally unknown or not known to be good or bad since no response (not even bounce - thanks, spam!) came back in over 3 months.
+
+Some statistics for the first run: 86 total , 15 positive, 37 broken email, 34 unknown
+
+Positive:
+ Andreas Neuhaus
+ Chris Butler
+ Colin Watson
+ Daniel Kobras
+ Daniel O'Connor
+ Daniel Skarda
+ Erik B. Andersen
+ Helge Deller
+ Juergen Schoew
+ Martin Denn
+ Munechika SUMIKAWA
+ Oliver Fromme
+ Petr Stehlik
+ Robert Bihlmeyer
+ Samuel Audet
+ Shane Wegner
+ Stefan Bieschewski
+ Steven Schultz
+ Tillmann Steinbrecher
+ Tomas Oegren
+ Tommi Virtanen
+
+Then, an investigation of the code revealed a core of people having actually left traces in the code.
+Some more effort was put in tracking them down, with the partial success of having found some new, working email addresses and thus having some more positive responses .
+But also, it showed that the main number of people is not reachable anymore.
+
+Creators (of a whole file, driver...): 16 total, 5 positive, 2 broken email, 9 unknown
+
+Positive:
+ Andreas Neuhaus
+ Juergen Schoew
+ Oliver Fromme
+ Petr Stehlik
+ Samuel Audet
+
+Modders: 7 total, 1 positive, 2 broken mail, 4 unknown
+
+Positive:
+ Tomas Oegren
+
+
+That shows two things:
+
+ 1. It's impossible to get a response from everyone having contributed in some way.
+ 2. Everyone who I reached supports the license change to LGPL
+
+
+So, for the sake of getting a reasonable step forward, I'm going to close the case.
+There are three categories of code:
+
+1. written by Michael or some other contributor who explicitly supports LGPL
+
+ Clear case: LGPL
+
+2. contributed years ago without license notice
+
+ The grounded assumption of can be made that the contributor accepted Michael's conditions, esp. the part about the software being available without cost.
+ Furthermore they gave the code into Michael's hands or placed patches in the internet without any claims concerning commercial uses - wich were not covered by the old COPYING file.
+ Based on the assumption of acceptance for the mpg123 COPYING file and the included rule of Michael's decision for any further use, this code is to be placed under LGPL by Michael's decision.
+
+3. contributed with notice
+
+ Some code includes a note about it being GPL. Well, one has to respect that.
+
+
+That results in the bulk of mpg123 being LGPL and possibly some parts GPL only.
+
+
+2. The Inventory
+----------------
+
+I will now examine the files of the mpg123 svn trunk as of 17.07.2006 with their respective legal status:
+
+Stuff added by current maintainers, thus being LGPL:
+
+ scripts/debugdef.pl
+ AUTHORS
+ autogen.sh
+ configure.ac
+ Makefile.am
+ MakeLegacy.sh
+ src/audio_jack.c
+ src/audio_libao.c
+ src/Makefile.am
+ src/audio_alsa09.c
+ src/config.h.legacy
+ src/debug.h
+ src/layer3.h
+
+Non-Code files from Michael, maintainers or just trivial content (safely LGPL, then):
+
+ BENCHMARKING
+ BUGS
+ CHANGES
+ equalize.dat
+ INSTALL
+ mpg123.1
+ COPYING
+ TODO
+ README
+ README.3DNOW
+ README.cfa
+ README.new
+ README.remote
+ README.thor
+ README.WIN32
+ test.pl
+ BENCHMARKING.thor
+ CONTACT
+
+sources under LGPLv2.1:
+
+by Michael:
+
+ audio.c
+ audio_dummy.c
+ audio.h
+ audio_hp.c
+ audio_oss.c
+ audio_sun.c
+ common.c
+ common.h
+ dct64.c
+ dct64_i386.c
+ decode_2to1.c
+ decode_4to1.c
+ decode.c
+ decode_i386.c
+ decode_ntom.c
+ Makefile.legacy
+ equalizer.c
+ getbits.c
+ getbits.h
+ huffman.h
+ l2tables.h
+ layer1.c
+ layer2.c
+ layer3.c
+ mpg123.c
+ mpg123.h
+ readers.c
+ system.c
+ tabinit.c
+ term.c
+ term.h
+
+by contributors:
+
+ audio_aix.c: Juergen Schoew, Tomas Oegren, Niklas Edmundsson
+ audio_alib.c: Erwan Ducroquet
+ audio_esd.c: Eric B. Mitchell
+ audio_macosx.c: Guillaume Outters
+ audio_mint.c: Petr Stehlik
+ audio_nas.c: Martin Denn
+ audio_os2.c: Samuel Audet
+ audio_sgi.c: Thomas Woerner
+ audio_win32.c: Tony Million
+ buffer.c: Oliver Fromme
+ buffer.h: Daniel Kobras / Oliver Fromme
+ control_generic.c: Andreas Neuhaus, Michael Hipp, Thomas Orgis
+ dct36_3dnow.s: Syuuhei Kashiyama
+ dct64_3dnow.s: Syuuhei Kashiyama
+ dct64_altivec.c: Romain Dolbeau
+ dct64_i486.c: Fabrice Bellard
+ decode_3dnow.s: Syuuhei Kashiyama
+ decode_i486.c: Fabrice Bellard
+ decode_i586_dither.s: Stefan Bieschewski, Adrian Bacon
+ decode_i586.s: Stefan Bieschewski
+ decode_MMX.s: higway
+ dct64_MMX.s: higway
+ tabinit_MMX.s: higway
+ equalizer_3dnow.s: KIMURA Takuhiro
+ genre.h: Shane Wegner
+ getcpuflags.s: KIMURA Takuhiro
+ getlopt.c: Oliver Fromme
+ getlopt.h: Oliver Fromme
+ httpget.c: Oliver Fromme
+ wav.c: Samuel Audet
+ xfermem.c: Oliver Fromme
+ xfermem.h: Oliver Fromme
+ Makefile.win32: Michael Hipp / Tony Million
+
+GPLv2
+
+ audio_alsa.c: by Anders Semb Hermansen, Jaroslav Kysela, Ville Syrjala
+
+
+To be removed from distribution and thus not licensed in any special way:
+
+precompiled/
+tools/
+
+The mpglib source is not part of the core mpg123 distribution anymore - it's written by Michael, it's LGPL, it shall become a real library with own distribution and be married to mpg123 again.
+
+
+3. Conclusion
+-------------
+
+The decoder core Michael's work and under LGPL without question.
+Oliver Fromme is more of a co-author than "just" a project contributor, but he explicitly agreed to LGPL anyway.
+So, the core functionality is really safe without doubt.
+
+Contributors added mainly output drivers (perhaps coming from some freely available reference implementation) and CPU optimizations.
+Having explicit permission from a good deal of major contributors, the LGPL is quite comfortable here, too.
+I won't hide that there are explicit statements missing for MMX and 3DNow! optimizations (and the i486 opt, for that matter) due to unreachable authors.
+But I feel safe to make it LGPL there, too, because of the argument of them having given the code to Michael to incorporate it into mpg123 - without any own terms, implying that they agree to Michael's terms.
+
+There is one file left that carries an explicit GPL (_no_ LGPL) statement: the old alsa output. This file won't work on current Linux systems, anyway.
+Alsa is available through libao. There will probably be a new alsa output.
+So, even that one GPL exception may vanish in future, but I'll keep it for now as there may be someone who still has an alsa installation for that it works.
+
+For now that means mpg123 is LGPL with the exception of one file that is GPL only.
+
+End.
diff --git a/doc/THANKS b/doc/THANKS
new file mode 100644
index 0000000..b01b668
--- /dev/null
+++ b/doc/THANKS
@@ -0,0 +1,13 @@
+There are authors who write code and there are people who point us to what code to write, show us our errors and generally are trying hard to compensate the time the developers spent coding and not actually using the software.
+These people are very valuable, indeed - let's thank our
+
+Testers (alphapetical):
+
+- Gabor Z. Papp
+- "Gates Fan"
+- JonY
+- Serge Simon and the R.O.M. 106.5 FM Team (http://www.rom.lu/)
+ who motivated the --loop and --timeout modes and furthermore supported the maintainer with a donation on sf.net and a real bottle of wine from Luxembourg!
+- Willy Tarreau
+
+Heck, let's thank all of you who contributed bug reports, suggestions... those who took mpg123 source and compiled it on uncommon platforms.
diff --git a/doc/TODO b/doc/TODO
new file mode 100644
index 0000000..63653a7
--- /dev/null
+++ b/doc/TODO
@@ -0,0 +1,63 @@
+We badly need:
+ - header reorganization (lots of stuff don't belong to mpg123.h)
+ - integer type safety - STOP using ints where size_t or at least long would be appropriate (expecially stream readers)
+ - sprintf -> snprintf (maybe with switch to support ancient libc; or replacement by us)
+ - rewrite httpget.c; that thing has been a can of bugs for years and I understand why when I look at it (way too many cooks)
+ - really parse ID3V2 tags instead of skipping; done for RVA values... using the string info (just?) needs some Unicode/Locale handling
+ - check support for fixed point arithmentic; generic_nofpu seems wo work generally, but resampling does not sound nice
+
+From Nicholas:
+ - Seperate out MPEG Audio decoder (only) into seperate library
+ - Allow choice of audio output at runtime, rather than compile time
+ - Choose processor optimization at runtime, rather than compile time?
+
+From Michael (some time after/around pre-0.59s):
+
+- add CRC check.
+- add 'free format stream' support.
+- optimize layer2.c:
+ step_two: fraction as pointer ..
+ process first channel 0 than channel 1
+ copy channel 0 to channel 1 for: i >= jsbound
+- better frame reader .. especially for layer 3 - DONE by a good deal by Thomas
+- MPEG system stream decoder
+- check again layer1 !! (Layer-1 support not heavily tested ..)
+ Problems with Layer1 fl7 reference stream
+- Write a special (optimized) 'single channel' decode.
+- optimized dct64 for down sampling modes
+- native audio support for AIX and DEC
+- update manpage
+- optimizations for downsampling modes on layer2 and layer1
+
+MORE TODO: (partially done)
+---------------------------
+
+A few notes on how mpg123 tries to select a 'good'
+audio encoding and frequency. (not full implemented yet!!)
+
+- mpg123 tries to set the settings you specify on the command line
+ in the order of its appearence (exclusiv .. no fallback then)
+ (-r <rate>, --mono, --stereo, --8bit, etc )
+
+- after this, mpg123 tries to set
+ 1. the number of channels (or fallback to mono if stereo isn't possible)
+ 2. the audioformat to 16 bit (or fallback to 8bit)
+ 3. the "best" frequency: (in this order)
+ - the exact stream frequency or fallback to
+ - 2:1 frequency or fallback to
+ - 4:1 frequency or try the
+ - nearest frequency lower than the frequency of your stream
+ mpg123 automagically converts the rate.
+
+So, if you think (or even know), that your hardware supports a higher
+frequency only with eg. mono,8bit you must force mpg123 to play mono
+and 8bit. ("--8bit -m") etc....
+
+If you wanna a constant format eg to output the data to stdout you
+must explicit force it with eg: '-r 44100 --stereo'
+Else the format will be the format of the mpeg stream.
+
+
+
+
+
diff --git a/doc/doxy_examples.c b/doc/doxy_examples.c
new file mode 100644
index 0000000..b7c16a1
--- /dev/null
+++ b/doc/doxy_examples.c
@@ -0,0 +1,17 @@
+/** \defgroup mpg123_examples example programs using libmpg123
+ @{ */
+
+/** \file mpg123_to_wav.c A simple MPEG audio to WAV converter using libmpg123 (read) and libsndfile (write).
+ ...an excersize on two simple APIs. */
+
+/** \file mpglib.c Example program mimicking the old mpglib test program.
+ It takes an MPEG bitstream from standard input and writes raw audio to standard output.
+ This is an use case of the mpg123_decode() in and out function in the feeder mode.
+*/
+
+/** \file scan.c Example program that examines the exact length of an MPEG file.
+ It opens a list of files and does mpg123_scan() on each and reporting the mpg123_length() before and after that. */
+
+/** \file id3dump.c Parse ID3 info and print to standard output. */
+
+/* @} */
diff --git a/doc/doxygen.conf b/doc/doxygen.conf
new file mode 100644
index 0000000..6972b9c
--- /dev/null
+++ b/doc/doxygen.conf
@@ -0,0 +1,41 @@
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+
+PROJECT_NAME = "libmpg123"
+OUTPUT_DIRECTORY = .
+CREATE_SUBDIRS = NO
+OUTPUT_LANGUAGE = English
+FULL_PATH_NAMES = NO
+
+INPUT = doxy_examples.c examples/mpg123_to_wav.c examples/mpglib.c examples/scan.c examples/id3dump.c ../src/libmpg123/mpg123.h
+OPTIMIZE_OUTPUT_FOR_C = YES
+EXTRACT_ALL = NO
+HIDE_UNDOC_MEMBERS = NO
+QUIET = YES
+WARNINGS = YES
+SOURCE_BROWSER = YES
+
+GENERATE_HTML = YES
+HTML_OUTPUT = html
+DISABLE_INDEX = YES
+SORT_MEMBER_DOCS = NO
+SORT_BRIEF_DOCS = NO
+ENUM_VALUES_PER_LINE = 2
+
+
+ENABLE_PREPROCESSING = YES
+MACRO_EXPANSION = YES
+EXPAND_ONLY_PREDEF = YES
+PREDEFINED = EXPORT=
+
+GENERATE_HTML = YES
+GENERATE_LATEX = NO
+GENERATE_RTF = NO
+GENERATE_MAN = YES
+MAN_LINKS = YES
+GENERATE_XML = NO
+
+HTML_HEADER = doxyhead.xhtml
+HTML_FILE_EXTENSION = .shtml
diff --git a/doc/doxyhead.xhtml b/doc/doxyhead.xhtml
new file mode 100644
index 0000000..87186f3
--- /dev/null
+++ b/doc/doxyhead.xhtml
@@ -0,0 +1,12 @@
+<!--#include virtual="../header.html" -->
+<title>$title</title>
+<link href="/doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<!--#include virtual="../linkbar.html" -->
+<div style="padding:1em;">
+ <strong>Note:</strong>
+ This API doc is automatically generated from the current development version that you can get via Subversion or as a daily snapshot from <a href="http://mpg123.org/snapshot">http://mpg123.org/snapshot</a>.
+ There may be differences (additions) compared to the latest stable release. See <a href="http://mpg123.org/cgi-bin/viewvc.cgi/trunk/NEWS.libmpg123?view=markup">NEWS.libmpg123</a> and the overall <a href="http://mpg123.org/cgi-bin/viewvc.cgi/trunk/NEWS?view=markup">NEWS</a> file on libmpg123 versions and important changes between them.<br />
+ Let me emphasize that the policy for libmpg123 is to always stay backwards compatible -- only <em>additions</em> are planned (and it's not yet planned to change the plans;-).
+</div>
diff --git a/doc/examples/Makefile b/doc/examples/Makefile
new file mode 100644
index 0000000..f4b50e3
--- /dev/null
+++ b/doc/examples/Makefile
@@ -0,0 +1,29 @@
+targets = feedseek mpg123_to_wav scan id3dump mpglib
+
+all: $(targets)
+
+MPG123_CFLAGS := $(shell pkg-config --cflags libmpg123)
+MPG123_LDFLAGS := $(shell pkg-config --libs libmpg123)
+SND_CFLAGS := $(shell pkg-config --cflags sndfile)
+SND_LDFLAGS := $(shell pkg-config --libs sndfile)
+
+# Oder of libs not that important here...
+compile = $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(MPG123_CFLAGS) $(MPG123_LDFLAGS)
+
+mpg123_to_wav: mpg123_to_wav.c
+ $(compile) $(SND_CFLAGS) $(SND_LDFLAGS) -o mpg123_to_wav mpg123_to_wav.c
+
+feedseek: feedseek.c
+ $(compile) -o feedseek feedseek.c
+
+scan: scan.c
+ $(compile) -o scan scan.c
+
+id3dump:id3dump.c
+ $(compile) -o id3dump id3dump.c
+
+mpglib: mpglib.c
+ $(compile) -o mpglib mpglib.c
+
+clean:
+ rm -vf $(targets)
diff --git a/doc/examples/dumb_decoder.c b/doc/examples/dumb_decoder.c
new file mode 100644
index 0000000..35ea996
--- /dev/null
+++ b/doc/examples/dumb_decoder.c
@@ -0,0 +1,58 @@
+/*
+ A simple and dumb decoder that does not even query the mpg123 output format.
+ It shall get MPG123_NEW_FORMAT once, but after that data!
+
+ Beware: It writes raw audio to standard out!
+*/
+
+#include <stdlib.h>
+#include <unistd.h>
+#include <stdio.h>
+#include <mpg123.h>
+
+void decode_track(mpg123_handle *mh);
+
+int main(int argc, char **argv)
+{
+ int i;
+ int err;
+ mpg123_handle* mh;
+ mpg123_init();
+ mh = mpg123_new(NULL, NULL);
+ for(i=1; i<argc; ++i)
+ {
+ fprintf(stderr, "Working on %s\n", argv[i]);
+
+ err = mpg123_open(mh, argv[i]);
+ if(err == MPG123_OK)
+ {
+ decode_track(mh);
+ mpg123_close(mh);
+ }
+ else fprintf(stderr, "Failed to open file: %s\n", mpg123_strerror(mh));
+ }
+ mpg123_exit();
+}
+
+void decode_track(mpg123_handle *mh)
+{
+ unsigned char buf[16*1024];
+ size_t fill;
+ off_t sum = 0;
+ int ret;
+ while( (ret = mpg123_read(mh, buf, sizeof(buf), &fill)) != MPG123_DONE)
+ {
+ if(fill == MPG123_ERR)
+ {
+ fprintf(stderr, "error decoding: %s\n", mpg123_strerror(mh));
+ return;
+ }
+ fprintf(stderr, "read returned: %i\n", ret);
+ if(fill > 0)
+ {
+ sum += fill;
+ write(STDOUT_FILENO, buf, fill);
+ }
+ }
+ fprintf(stderr, "decoded bytes: %lli\n", (long long)sum);
+}
diff --git a/doc/examples/feedseek.c b/doc/examples/feedseek.c
new file mode 100644
index 0000000..319355c
--- /dev/null
+++ b/doc/examples/feedseek.c
@@ -0,0 +1,229 @@
+/*
+ feedseek: test program for libmpg123, showing how to use fuzzy seeking in feeder mode
+ copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+*/
+
+#include <mpg123.h>
+#include <stdio.h>
+
+#define INBUFF 16384 * 2 * 2
+#define WAVE_FORMAT_PCM 0x0001
+#define WAVE_FORMAT_IEEE_FLOAT 0x0003
+
+FILE *out;
+size_t totaloffset, dataoffset;
+long rate;
+int channels, enc;
+unsigned short bitspersample, wavformat;
+
+// write wav header
+void initwav()
+{
+ unsigned int tmp32 = 0;
+ unsigned short tmp16 = 0;
+
+ fwrite("RIFF", 1, 4, out);
+ totaloffset = ftell(out);
+
+ fwrite(&tmp32, 1, 4, out); // total size
+ fwrite("WAVE", 1, 4, out);
+ fwrite("fmt ", 1, 4, out);
+ tmp32 = 16;
+ fwrite(&tmp32, 1, 4, out); // format length
+ tmp16 = wavformat;
+ fwrite(&tmp16, 1, 2, out); // format
+ tmp16 = channels;
+ fwrite(&tmp16, 1, 2, out); // channels
+ tmp32 = rate;
+ fwrite(&tmp32, 1, 4, out); // sample rate
+ tmp32 = rate * bitspersample/8 * channels;
+ fwrite(&tmp32, 1, 4, out); // bytes / second
+ tmp16 = bitspersample/8 * channels; // float 16 or signed int 16
+ fwrite(&tmp16, 1, 2, out); // block align
+ tmp16 = bitspersample;
+ fwrite(&tmp16, 1, 2, out); // bits per sample
+ fwrite("data ", 1, 4, out);
+ tmp32 = 0;
+ dataoffset = ftell(out);
+ fwrite(&tmp32, 1, 4, out); // data length
+}
+
+// rewrite wav header with final length infos
+void closewav()
+{
+ unsigned int tmp32 = 0;
+ unsigned short tmp16 = 0;
+
+ long total = ftell(out);
+ fseek(out, totaloffset, SEEK_SET);
+ tmp32 = total - (totaloffset + 4);
+ fwrite(&tmp32, 1, 4, out);
+ fseek(out, dataoffset, SEEK_SET);
+ tmp32 = total - (dataoffset + 4);
+
+ fwrite(&tmp32, 1, 4, out);
+}
+
+// determine correct wav format and bits per sample
+// from mpg123 enc value
+void initwavformat()
+{
+ if(enc & MPG123_ENC_FLOAT_64)
+ {
+ bitspersample = 64;
+ wavformat = WAVE_FORMAT_IEEE_FLOAT;
+ }
+ else if(enc & MPG123_ENC_FLOAT_32)
+ {
+ bitspersample = 32;
+ wavformat = WAVE_FORMAT_IEEE_FLOAT;
+ }
+ else if(enc & MPG123_ENC_16)
+ {
+ bitspersample = 16;
+ wavformat = WAVE_FORMAT_PCM;
+ }
+ else
+ {
+ bitspersample = 8;
+ wavformat = WAVE_FORMAT_PCM;
+ }
+}
+
+int main(int argc, char **argv)
+{
+ unsigned char buf[INBUFF];
+ unsigned char *audio;
+ FILE *in;
+ mpg123_handle *m;
+ int ret, state;
+ size_t inc, outc;
+ off_t len, num;
+ size_t bytes;
+ off_t inoffset;
+ inc = outc = 0;
+
+ if(argc < 3)
+ {
+ fprintf(stderr,"Please supply in and out filenames\n");
+ return -1;
+ }
+
+ mpg123_init();
+
+ m = mpg123_new(NULL, &ret);
+ if(m == NULL)
+ {
+ fprintf(stderr,"Unable to create mpg123 handle: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ mpg123_param(m, MPG123_VERBOSE, 2, 0);
+
+ ret = mpg123_param(m, MPG123_FLAGS, MPG123_FUZZY | MPG123_SEEKBUFFER | MPG123_GAPLESS, 0);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable to set library options: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ // Let the seek index auto-grow and contain an entry for every frame
+ ret = mpg123_param(m, MPG123_INDEX_SIZE, -1, 0);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable to set index size: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ ret = mpg123_format_none(m);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable to disable all output formats: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ // Use float output
+ ret = mpg123_format(m, 44100, MPG123_MONO | MPG123_STEREO, MPG123_ENC_FLOAT_32);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable to set float output formats: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ ret = mpg123_open_feed(m);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable open feed: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ in = fopen(argv[1], "rb");
+ if(in == NULL)
+ {
+ fprintf(stderr,"Unable to open input file %s\n", argv[1]);
+ return -1;
+ }
+
+ out = fopen(argv[2], "wb");
+ if(out == NULL)
+ {
+ fprintf(stderr,"Unable to open output file %s\n", argv[2]);
+ return -1;
+ }
+
+ while(ret = mpg123_feedseek(m, 95000, SEEK_SET, &inoffset) == MPG123_NEED_MORE)
+ {
+ len = fread(buf, sizeof(unsigned char), INBUFF, in);
+ if(len <= 0)
+ break;
+ inc += len;
+
+ state = mpg123_feed(m, buf, len);
+ if(state == MPG123_ERR)
+ {
+ fprintf(stderr, "Error: %s", mpg123_strerror(m));
+ return -1;
+ }
+ }
+
+ fseek(in, inoffset, SEEK_SET);
+
+ while(1)
+ {
+ len = fread(buf, sizeof(unsigned char), INBUFF, in);
+ if(len <= 0)
+ break;
+ inc += len;
+ ret = mpg123_feed(m, buf, len);
+
+ while(ret != MPG123_ERR && ret != MPG123_NEED_MORE)
+ {
+ ret = mpg123_decode_frame(m, &num, &audio, &bytes);
+ if(ret == MPG123_NEW_FORMAT)
+ {
+ mpg123_getformat(m, &rate, &channels, &enc);
+ initwavformat();
+ initwav();
+ fprintf(stderr, "New format: %li Hz, %i channels, encoding value %i\n", rate, channels, enc);
+ }
+ fwrite(audio, sizeof(unsigned char), bytes, out);
+ outc += bytes;
+ }
+
+ if(ret == MPG123_ERR)
+ {
+ fprintf(stderr, "Error: %s", mpg123_strerror(m));
+ break;
+ }
+ }
+
+ fprintf(stderr, "Finished\n", (unsigned long)inc, (unsigned long)outc);
+
+ closewav();
+ fclose(out);
+ fclose(in);
+ mpg123_delete(m);
+ mpg123_exit();
+ return 0;
+}
diff --git a/doc/examples/id3dump.c b/doc/examples/id3dump.c
new file mode 100644
index 0000000..2953491
--- /dev/null
+++ b/doc/examples/id3dump.c
@@ -0,0 +1,172 @@
+/*
+ id3dump: Print ID3 tags of files, scanned using libmpg123.
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include "mpg123.h"
+#include <string.h>
+#include "stdio.h"
+#include "sys/types.h"
+
+/* Helper for v1 printing, get these strings their zero byte. */
+void safe_print(char* name, char *data, size_t size)
+{
+ char safe[31];
+ if(size>30) return;
+
+ memcpy(safe, data, size);
+ safe[size] = 0;
+ printf("%s: %s\n", name, safe);
+}
+
+/* Print out ID3v1 info. */
+void print_v1(mpg123_id3v1 *v1)
+{
+ safe_print("Title", v1->title, sizeof(v1->title));
+ safe_print("Artist", v1->artist, sizeof(v1->artist));
+ safe_print("Album", v1->album, sizeof(v1->album));
+ safe_print("Year", v1->year, sizeof(v1->year));
+ safe_print("Comment", v1->comment, sizeof(v1->comment));
+ printf("Genre: %i", v1->genre);
+}
+
+/* Split up a number of lines separated by \n, \r, both or just zero byte
+ and print out each line with specified prefix. */
+void print_lines(const char* prefix, mpg123_string *inlines)
+{
+ size_t i;
+ int hadcr = 0, hadlf = 0;
+ char *lines = NULL;
+ char *line = NULL;
+ size_t len = 0;
+
+ if(inlines != NULL && inlines->fill)
+ {
+ lines = inlines->p;
+ len = inlines->fill;
+ }
+ else return;
+
+ line = lines;
+ for(i=0; i<len; ++i)
+ {
+ if(lines[i] == '\n' || lines[i] == '\r' || lines[i] == 0)
+ {
+ char save = lines[i]; /* saving, changing, restoring a byte in the data */
+ if(save == '\n') ++hadlf;
+ if(save == '\r') ++hadcr;
+ if((hadcr || hadlf) && hadlf % 2 == 0 && hadcr % 2 == 0) line = "";
+
+ if(line)
+ {
+ lines[i] = 0;
+ printf("%s%s\n", prefix, line);
+ line = NULL;
+ lines[i] = save;
+ }
+ }
+ else
+ {
+ hadlf = hadcr = 0;
+ if(line == NULL) line = lines+i;
+ }
+ }
+}
+
+/* Print out the named ID3v2 fields. */
+void print_v2(mpg123_id3v2 *v2)
+{
+ print_lines("Title: ", v2->title);
+ print_lines("Artist: ", v2->artist);
+ print_lines("Album: ", v2->album);
+ print_lines("Year: ", v2->year);
+ print_lines("Comment: ", v2->comment);
+ print_lines("Genre: ", v2->genre);
+}
+
+/* Print out all stored ID3v2 fields with their 4-character IDs. */
+void print_raw_v2(mpg123_id3v2 *v2)
+{
+ size_t i;
+ for(i=0; i<v2->texts; ++i)
+ {
+ char id[5];
+ memcpy(id, v2->text[i].id, 4);
+ id[4] = 0;
+ printf("%s\n", id);
+ print_lines(" ", &v2->text[i].text);
+ }
+ for(i=0; i<v2->extras; ++i)
+ {
+ char id[5];
+ memcpy(id, v2->extra[i].id, 4);
+ id[4] = 0;
+ printf( "%s description(%s)\n",
+ id,
+ v2->extra[i].description.fill ? v2->extra[i].description.p : "" );
+ print_lines(" ", &v2->extra[i].text);
+ }
+ for(i=0; i<v2->comments; ++i)
+ {
+ char id[5];
+ char lang[4];
+ memcpy(id, v2->comment_list[i].id, 4);
+ id[4] = 0;
+ memcpy(lang, v2->comment_list[i].lang, 3);
+ lang[3] = 0;
+ printf( "%s description(%s) language(%s): \n",
+ id,
+ v2->comment_list[i].description.fill ? v2->comment_list[i].description.p : "",
+ lang );
+ print_lines(" ", &v2->comment_list[i].text);
+ }
+}
+
+int main(int argc, char **argv)
+{
+ int i;
+ mpg123_handle* m;
+ if(argc < 2)
+ {
+ fprintf(stderr, "\nI will print some ID3 tag fields of MPEG audio files.\n");
+ fprintf(stderr, "\nUsage: %s <mpeg audio file list>\n\n", argv[0]);
+ return -1;
+ }
+ mpg123_init();
+ m = mpg123_new(NULL, NULL);
+
+ for(i=1; i < argc; ++i)
+ {
+ mpg123_id3v1 *v1;
+ mpg123_id3v2 *v2;
+ int meta;
+ if(mpg123_open(m, argv[i]) != MPG123_OK)
+ {
+ fprintf(stderr, "Cannot open %s: %s\n", argv[i], mpg123_strerror(m));
+ continue;
+ }
+ mpg123_scan(m);
+ meta = mpg123_meta_check(m);
+ if(meta & MPG123_ID3 && mpg123_id3(m, &v1, &v2) == MPG123_OK)
+ {
+ printf("Tag data on %s:\n", argv[i]);
+ printf("\n==== ID3v1 ====\n");
+ if(v1 != NULL) print_v1(v1);
+
+ printf("\n==== ID3v2 ====\n");
+ if(v2 != NULL) print_v2(v2);
+
+ printf("\n==== ID3v2 Raw frames ====\n");
+ if(v2 != NULL) print_raw_v2(v2);
+ }
+ else printf("Nothing found for %s.\n", argv[i]);
+
+ mpg123_close(m);
+ }
+ mpg123_delete(m);
+ mpg123_exit();
+ return 0;
+}
diff --git a/doc/examples/mpg123_to_wav.c b/doc/examples/mpg123_to_wav.c
new file mode 100644
index 0000000..c68cb23
--- /dev/null
+++ b/doc/examples/mpg123_to_wav.c
@@ -0,0 +1,103 @@
+/*
+ mpg123_to_wav.c
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Nicholas Humfrey
+*/
+
+#include <stdio.h>
+#include <strings.h>
+#include <mpg123.h>
+#include <sndfile.h>
+
+
+void usage()
+{
+ printf("Usage: mpg123_to_wav <input> <output>\n");
+ exit(99);
+}
+
+void cleanup(mpg123_handle *mh)
+{
+ /* It's really to late for error checks here;-) */
+ mpg123_close(mh);
+ mpg123_delete(mh);
+ mpg123_exit();
+}
+
+int main(int argc, char *argv[])
+{
+ SNDFILE* sndfile = NULL;
+ SF_INFO sfinfo;
+ mpg123_handle *mh = NULL;
+ unsigned char* buffer = NULL;
+ size_t buffer_size = 0;
+ size_t done = 0;
+ int channels = 0, encoding = 0;
+ long rate = 0;
+ int err = MPG123_OK;
+ off_t samples = 0;
+
+ if (argc!=3) usage();
+ printf( "Input file: %s\n", argv[1]);
+ printf( "Output file: %s\n", argv[2]);
+
+ err = mpg123_init();
+ if( err != MPG123_OK || (mh = mpg123_new(NULL, &err)) == NULL
+ /* Let mpg123 work with the file, that excludes MPG123_NEED_MORE messages. */
+ || mpg123_open(mh, argv[1]) != MPG123_OK
+ /* Peek into track and get first output format. */
+ || mpg123_getformat(mh, &rate, &channels, &encoding) != MPG123_OK )
+ {
+ fprintf( stderr, "Trouble with mpg123: %s\n",
+ mh==NULL ? mpg123_plain_strerror(err) : mpg123_strerror(mh) );
+ cleanup(mh);
+ return -1;
+ }
+
+ if(encoding != MPG123_ENC_SIGNED_16)
+ { /* Signed 16 is the default output format anyways; it would actually by only different if we forced it.
+ So this check is here just for this explanation. */
+ cleanup(mh);
+ fprintf(stderr, "Bad encoding: 0x%x!\n", encoding);
+ return -2;
+ }
+ /* Ensure that this output format will not change (it could, when we allow it). */
+ mpg123_format_none(mh);
+ mpg123_format(mh, rate, channels, encoding);
+
+ /* Buffer could be almost any size here, mpg123_outblock() is just some recommendation.
+ Important, especially for sndfile writing, is that the size is a multiple of sample size. */
+ buffer_size = mpg123_outblock( mh );
+ buffer = malloc( buffer_size );
+
+ bzero(&sfinfo, sizeof(sfinfo) );
+ sfinfo.samplerate = rate;
+ sfinfo.channels = channels;
+ sfinfo.format = SF_FORMAT_WAV|SF_FORMAT_PCM_16;
+ printf("Creating 16bit WAV with %i channels and %liHz.\n", channels, rate);
+
+ sndfile = sf_open(argv[2], SFM_WRITE, &sfinfo);
+ if(sndfile == NULL){ fprintf(stderr, "Cannot open output file!\n"); cleanup(mh); return -2; }
+
+ do
+ {
+ err = mpg123_read( mh, buffer, buffer_size, &done );
+ sf_write_short( sndfile, (short*)buffer, done/sizeof(short) );
+ samples += done/sizeof(short);
+ /* We are not in feeder mode, so MPG123_OK, MPG123_ERR and MPG123_NEW_FORMAT are the only possibilities.
+ We do not handle a new format, MPG123_DONE is the end... so abort on anything not MPG123_OK. */
+ } while (err==MPG123_OK);
+
+ if(err != MPG123_DONE)
+ fprintf( stderr, "Warning: Decoding ended prematurely because: %s\n",
+ err == MPG123_ERR ? mpg123_strerror(mh) : mpg123_plain_strerror(err) );
+
+ sf_close( sndfile );
+
+ samples /= channels;
+ printf("%li samples written.\n", (long)samples);
+ cleanup(mh);
+ return 0;
+}
diff --git a/doc/examples/mpglib.c b/doc/examples/mpglib.c
new file mode 100644
index 0000000..bf3a30e
--- /dev/null
+++ b/doc/examples/mpglib.c
@@ -0,0 +1,83 @@
+/*
+ mpglib: test program for libmpg123, in the style of the legacy mpglib test program
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include <mpg123.h>
+
+/* unistd.h is not available under MSVC,
+ io.h defines the read and write functions */
+#ifndef _MSC_VER
+#include <unistd.h>
+#else
+#include <io.h>
+#endif
+
+#include <stdio.h>
+
+#define INBUFF 16384
+#define OUTBUFF 32768
+
+int main(int argc, char **argv)
+{
+ size_t size;
+ unsigned char buf[INBUFF]; /* input buffer */
+ unsigned char out[OUTBUFF]; /* output buffer */
+ ssize_t len;
+ int ret;
+ size_t in = 0, outc = 0;
+ mpg123_handle *m;
+
+ mpg123_init();
+ m = mpg123_new(argc > 1 ? argv[1] : NULL, &ret);
+ if(m == NULL)
+ {
+ fprintf(stderr,"Unable to create mpg123 handle: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+ mpg123_param(m, MPG123_VERBOSE, 2, 0); /* Brabble a bit about the parsing/decoding. */
+
+ /* Now mpg123 is being prepared for feeding. The main loop will read chunks from stdin and feed them to mpg123;
+ then take decoded data as available to write to stdout. */
+ mpg123_open_feed(m);
+ if(m == NULL) return -1;
+
+ fprintf(stderr, "Feed me some MPEG audio to stdin, I will decode to stdout.\n");
+ while(1) /* Read and write until everything is through. */
+ {
+ len = read(0,buf,INBUFF);
+ if(len <= 0)
+ {
+ fprintf(stderr, "input data end\n");
+ break;
+ }
+ in += len;
+ /* Feed input chunk and get first chunk of decoded audio. */
+ ret = mpg123_decode(m,buf,len,out,OUTBUFF,&size);
+ if(ret == MPG123_NEW_FORMAT)
+ {
+ long rate;
+ int channels, enc;
+ mpg123_getformat(m, &rate, &channels, &enc);
+ fprintf(stderr, "New format: %li Hz, %i channels, encoding value %i\n", rate, channels, enc);
+ }
+ write(1,out,size);
+ outc += size;
+ while(ret != MPG123_ERR && ret != MPG123_NEED_MORE)
+ { /* Get all decoded audio that is available now before feeding more input. */
+ ret = mpg123_decode(m,NULL,0,out,OUTBUFF,&size);
+ write(1,out,size);
+ outc += size;
+ }
+ if(ret == MPG123_ERR){ fprintf(stderr, "some error: %s", mpg123_strerror(m)); break; }
+ }
+ fprintf(stderr, "%lu bytes in, %lu bytes out\n", (unsigned long)in, (unsigned long)outc);
+
+ /* Done decoding, now just clean up and leave. */
+ mpg123_delete(m);
+ mpg123_exit();
+ return 0;
+}
diff --git a/doc/examples/scan.c b/doc/examples/scan.c
new file mode 100644
index 0000000..df9b999
--- /dev/null
+++ b/doc/examples/scan.c
@@ -0,0 +1,47 @@
+/*
+ scan: Estimate length (sample count) of a mpeg file and compare to length from exact scan.
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+/* Note the lack of error checking here.
+ While it would be nicer to inform the user about troubles, libmpg123 is designed _not_ to bite you on operations with invalid handles , etc.
+ You just jet invalid results on invalid operations... */
+
+#include <mpg123.h>
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+ mpg123_handle *m;
+ int i;
+ if(argc < 2)
+ {
+ fprintf(stderr, "\nI will give you the estimated and exact sample lengths of MPEG audio files.\n");
+ fprintf(stderr, "\nUsage: %s <mpeg audio file list>\n\n", argv[0]);
+ return -1;
+ }
+ mpg123_init();
+ m = mpg123_new(NULL, NULL);
+ mpg123_param(m, MPG123_RESYNC_LIMIT, -1, 0); /* New in library version 0.0.1 . */
+ for(i = 1; i < argc; ++i)
+ {
+ off_t a, b;
+
+ mpg123_open(m, argv[i]);
+
+ a = mpg123_length(m);
+ mpg123_scan(m);
+ b = mpg123_length(m);
+
+ mpg123_close(m);
+
+ printf("File %i: estimated %li vs. scanned %li\n", i, (long)a, (long)b);
+ }
+
+ mpg123_delete(m);
+ mpg123_exit();
+ return 0;
+}
diff --git a/doc/libmpg123_speed.txt b/doc/libmpg123_speed.txt
new file mode 100644
index 0000000..3ff7f8e
--- /dev/null
+++ b/doc/libmpg123_speed.txt
@@ -0,0 +1,74 @@
+This is historic... one should make a new investigation.
+What I can say that a quick test of pre0.59s versus 1.7.3 with generic decoder on my x86-64 GNU/Linux box is not able to call a winner (or looser, for that matter).
+Though, 1.8.0 will make the new libmpg123 a winner, because there is new optimization code going on!
+
+The move to libmpg123 means some more code separation / interfacing and especially the move of any local static variables into the mpg123_handle to make multiple stream handling possible.
+That may very well have an impact on performance of the mpg123 decoder.
+I made some tests, even using gcc's -pg option and gprof, with mixed result: SSE and MMX on my Thinkpad X31 are slower, especially the asm synth funtion, while the generic code is fine.
+On the other hand, on a K6-3+ using the same gcc version 4.1.2, the library based mpg123 is _faster_ for MMX and 3DNowExt.
+Epecially the mmx synth is faster... while the 3DNowExt synth is slower, too (it's the same code as SSE synth, just calling different dct64) - but speedups in other regions still make 3DNowExt of the library mpg123 more efficient.
+
+What I can clearly say is that dropping the multi-cpu support via ./configure --with-cpu does help in for both monolithic and library mpg123, but that is no wonder as it removes indirection.
+The main point stays, though: On my Thinkpad the library is slow, on the K6-3+ it's fast.
+
+What's the point to get here? I am not sure. We're depending on the compiler optimization (btw: Intel Compiler doesn't change the relation for the Thinkpad; not tested on the K6).
+I guess that for my Thinkpad another gcc version could invert the picture again...
+Also, I am not sure how far I should trust the gprof analysis... but it can be right; even when there is no apparent cause for the speed difference in the code itself, it could be some effect of cache and memory access.
+Some reordering of instructions and data... for sure that happened.
+
+I'll need further numbers to conclude anything about the (positive/negative) impact my code changes have.
+
+OK, ran the test of trunk against branches/mpg123lib on my media box with AMD Geode (AthlonXP, actually):
+
+thomas@kiste:~$ for i in mpg123-lib mpg123-trunk; do for cpu in mmx 3dnowext sse; do echo $i $cpu; time $i/src/mpg123 --cpu $cpu -q -t /thorma/var/music/metallica/ride_the_lightning/*.mp3; done; done
+mpg123-lib mmx
+
+real 0m25.949s
+user 0m25.395s
+sys 0m0.534s
+mpg123-lib 3dnowext
+
+real 0m25.442s
+user 0m24.863s
+sys 0m0.558s
+mpg123-lib sse
+
+real 0m25.794s
+user 0m25.214s
+sys 0m0.562s
+mpg123-trunk mmx
+
+real 0m26.650s
+user 0m26.004s
+sys 0m0.626s
+mpg123-trunk 3dnowext
+
+real 0m25.886s
+user 0m25.262s
+sys 0m0.600s
+mpg123-trunk sse
+
+real 0m25.695s
+user 0m25.136s
+sys 0m0.539s
+thomas@kiste:~$ for i in mpg123-lib mpg123-trunk; do for cpu in 3dnow; do echo $i $cpu; time $i/src/mpg123 --cpu $cpu -q -t /thorma/var/music/metallica/ride_the_lightning/*.mp3; done; done
+mpg123-lib 3dnow
+
+real 0m33.011s
+user 0m32.365s
+sys 0m0.621s
+mpg123-trunk 3dnow
+
+real 0m32.830s
+user 0m32.192s
+sys 0m0.619s
+
+
+You can't really make a decision there. It's tight.
+What worries me a bit is the total loose of 3DNow against MMX - should it be that drastic?
+Well, it's higher quality, at least.
+
+
+--
+Thomas.
+
diff --git a/equalize.dat b/equalize.dat
new file mode 100644
index 0000000..8cefb34
--- /dev/null
+++ b/equalize.dat
@@ -0,0 +1,37 @@
+# in every line, there are two values. One for the left
+# and one for the right cahnnel.
+# the first line is the multiplicator for the lowest frequency band
+# the 32th line for the highest freq. band
+#
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
+1.0 1.0
diff --git a/libmpg123.pc.in b/libmpg123.pc.in
new file mode 100644
index 0000000..198ff70
--- /dev/null
+++ b/libmpg123.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: libmpg123
+Description: An optimised MPEG Audio decoder
+Requires:
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -lmpg123
+Cflags: -I${includedir}
diff --git a/libmpg123.xcodeproj/project.pbxproj b/libmpg123.xcodeproj/project.pbxproj
new file mode 100644
index 0000000..66d0e97
--- /dev/null
+++ b/libmpg123.xcodeproj/project.pbxproj
@@ -0,0 +1,366 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 45;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ D7CA774B1124E4A5005186B5 /* config.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77251124E4A5005186B5 /* config.h */; };
+ D7CA774C1124E4A5005186B5 /* compat.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77261124E4A5005186B5 /* compat.c */; };
+ D7CA774D1124E4A5005186B5 /* compat.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77271124E4A5005186B5 /* compat.h */; };
+ D7CA774E1124E4A5005186B5 /* dct64.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77281124E4A5005186B5 /* dct64.c */; };
+ D7CA774F1124E4A5005186B5 /* equalizer.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77291124E4A5005186B5 /* equalizer.c */; };
+ D7CA77501124E4A5005186B5 /* format.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA772A1124E4A5005186B5 /* format.c */; };
+ D7CA77511124E4A5005186B5 /* frame.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA772B1124E4A5005186B5 /* frame.c */; };
+ D7CA77521124E4A5005186B5 /* frame.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA772C1124E4A5005186B5 /* frame.h */; };
+ D7CA77531124E4A5005186B5 /* icy.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA772D1124E4A5005186B5 /* icy.c */; };
+ D7CA77541124E4A5005186B5 /* icy.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA772E1124E4A5005186B5 /* icy.h */; };
+ D7CA77551124E4A5005186B5 /* icy2utf8.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA772F1124E4A5005186B5 /* icy2utf8.c */; };
+ D7CA77561124E4A5005186B5 /* icy2utf8.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77301124E4A5005186B5 /* icy2utf8.h */; };
+ D7CA77571124E4A5005186B5 /* id3.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77311124E4A5005186B5 /* id3.c */; };
+ D7CA77581124E4A5005186B5 /* id3.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77321124E4A5005186B5 /* id3.h */; };
+ D7CA77591124E4A5005186B5 /* index.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77331124E4A5005186B5 /* index.c */; };
+ D7CA775A1124E4A5005186B5 /* index.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77341124E4A5005186B5 /* index.h */; };
+ D7CA775B1124E4A5005186B5 /* layer1.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77351124E4A5005186B5 /* layer1.c */; };
+ D7CA775C1124E4A5005186B5 /* layer2.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77361124E4A5005186B5 /* layer2.c */; };
+ D7CA775D1124E4A5005186B5 /* layer3.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77371124E4A5005186B5 /* layer3.c */; };
+ D7CA775E1124E4A5005186B5 /* libmpg123.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77381124E4A5005186B5 /* libmpg123.c */; };
+ D7CA775F1124E4A5005186B5 /* mpg123.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77391124E4A5005186B5 /* mpg123.h */; };
+ D7CA77601124E4A5005186B5 /* mpg123lib_intern.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA773A1124E4A5005186B5 /* mpg123lib_intern.h */; };
+ D7CA77611124E4A5005186B5 /* ntom.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA773B1124E4A5005186B5 /* ntom.c */; };
+ D7CA77621124E4A5005186B5 /* optimize.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA773C1124E4A5005186B5 /* optimize.c */; };
+ D7CA77631124E4A5005186B5 /* optimize.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA773D1124E4A5005186B5 /* optimize.h */; };
+ D7CA77641124E4A5005186B5 /* parse.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA773E1124E4A5005186B5 /* parse.c */; };
+ D7CA77651124E4A5005186B5 /* parse.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA773F1124E4A5005186B5 /* parse.h */; };
+ D7CA77661124E4A5005186B5 /* reader.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77401124E4A5005186B5 /* reader.h */; };
+ D7CA77671124E4A5005186B5 /* readers.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77411124E4A5005186B5 /* readers.c */; };
+ D7CA77681124E4A5005186B5 /* sample.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77421124E4A5005186B5 /* sample.h */; };
+ D7CA77691124E4A5005186B5 /* stringbuf.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77431124E4A5005186B5 /* stringbuf.c */; };
+ D7CA776A1124E4A5005186B5 /* synth.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77441124E4A5005186B5 /* synth.c */; };
+ D7CA776B1124E4A5005186B5 /* synth.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77451124E4A5005186B5 /* synth.h */; };
+ D7CA776C1124E4A5005186B5 /* synth_8bit.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77461124E4A5005186B5 /* synth_8bit.c */; };
+ D7CA776D1124E4A5005186B5 /* synth_8bit.h in Headers */ = {isa = PBXBuildFile; fileRef = D7CA77471124E4A5005186B5 /* synth_8bit.h */; };
+ D7CA776E1124E4A5005186B5 /* synth_real.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77481124E4A5005186B5 /* synth_real.c */; };
+ D7CA776F1124E4A5005186B5 /* synth_s32.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA77491124E4A5005186B5 /* synth_s32.c */; };
+ D7CA77701124E4A5005186B5 /* tabinit.c in Sources */ = {isa = PBXBuildFile; fileRef = D7CA774A1124E4A5005186B5 /* tabinit.c */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ D2AAC0630554660B00DB518D /* libmpgdec.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libmpgdec.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
+ D71350461124D56600E2C1DA /* MacConfigExternalDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = MacConfigExternalDebug.xcconfig; path = ../MacConfigExternalDebug.xcconfig; sourceTree = SOURCE_ROOT; };
+ D71350471124D56600E2C1DA /* MacConfigExternalRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = MacConfigExternalRelease.xcconfig; path = ../MacConfigExternalRelease.xcconfig; sourceTree = SOURCE_ROOT; };
+ D7CA77251124E4A5005186B5 /* config.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = config.h; path = src/config.h; sourceTree = SOURCE_ROOT; };
+ D7CA77261124E4A5005186B5 /* compat.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = compat.c; path = src/libmpg123/compat.c; sourceTree = SOURCE_ROOT; };
+ D7CA77271124E4A5005186B5 /* compat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = compat.h; path = src/libmpg123/compat.h; sourceTree = SOURCE_ROOT; };
+ D7CA77281124E4A5005186B5 /* dct64.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = dct64.c; path = src/libmpg123/dct64.c; sourceTree = SOURCE_ROOT; };
+ D7CA77291124E4A5005186B5 /* equalizer.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = equalizer.c; path = src/libmpg123/equalizer.c; sourceTree = SOURCE_ROOT; };
+ D7CA772A1124E4A5005186B5 /* format.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = format.c; path = src/libmpg123/format.c; sourceTree = SOURCE_ROOT; };
+ D7CA772B1124E4A5005186B5 /* frame.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = frame.c; path = src/libmpg123/frame.c; sourceTree = SOURCE_ROOT; };
+ D7CA772C1124E4A5005186B5 /* frame.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = frame.h; path = src/libmpg123/frame.h; sourceTree = SOURCE_ROOT; };
+ D7CA772D1124E4A5005186B5 /* icy.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = icy.c; path = src/libmpg123/icy.c; sourceTree = SOURCE_ROOT; };
+ D7CA772E1124E4A5005186B5 /* icy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = icy.h; path = src/libmpg123/icy.h; sourceTree = SOURCE_ROOT; };
+ D7CA772F1124E4A5005186B5 /* icy2utf8.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = icy2utf8.c; path = src/libmpg123/icy2utf8.c; sourceTree = SOURCE_ROOT; };
+ D7CA77301124E4A5005186B5 /* icy2utf8.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = icy2utf8.h; path = src/libmpg123/icy2utf8.h; sourceTree = SOURCE_ROOT; };
+ D7CA77311124E4A5005186B5 /* id3.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = id3.c; path = src/libmpg123/id3.c; sourceTree = SOURCE_ROOT; };
+ D7CA77321124E4A5005186B5 /* id3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = id3.h; path = src/libmpg123/id3.h; sourceTree = SOURCE_ROOT; };
+ D7CA77331124E4A5005186B5 /* index.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = index.c; path = src/libmpg123/index.c; sourceTree = SOURCE_ROOT; };
+ D7CA77341124E4A5005186B5 /* index.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = index.h; path = src/libmpg123/index.h; sourceTree = SOURCE_ROOT; };
+ D7CA77351124E4A5005186B5 /* layer1.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = layer1.c; path = src/libmpg123/layer1.c; sourceTree = SOURCE_ROOT; };
+ D7CA77361124E4A5005186B5 /* layer2.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = layer2.c; path = src/libmpg123/layer2.c; sourceTree = SOURCE_ROOT; };
+ D7CA77371124E4A5005186B5 /* layer3.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = layer3.c; path = src/libmpg123/layer3.c; sourceTree = SOURCE_ROOT; };
+ D7CA77381124E4A5005186B5 /* libmpg123.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = libmpg123.c; path = src/libmpg123/libmpg123.c; sourceTree = SOURCE_ROOT; };
+ D7CA77391124E4A5005186B5 /* mpg123.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = mpg123.h; path = src/libmpg123/mpg123.h; sourceTree = SOURCE_ROOT; };
+ D7CA773A1124E4A5005186B5 /* mpg123lib_intern.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = mpg123lib_intern.h; path = src/libmpg123/mpg123lib_intern.h; sourceTree = SOURCE_ROOT; };
+ D7CA773B1124E4A5005186B5 /* ntom.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = ntom.c; path = src/libmpg123/ntom.c; sourceTree = SOURCE_ROOT; };
+ D7CA773C1124E4A5005186B5 /* optimize.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = optimize.c; path = src/libmpg123/optimize.c; sourceTree = SOURCE_ROOT; };
+ D7CA773D1124E4A5005186B5 /* optimize.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = optimize.h; path = src/libmpg123/optimize.h; sourceTree = SOURCE_ROOT; };
+ D7CA773E1124E4A5005186B5 /* parse.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = parse.c; path = src/libmpg123/parse.c; sourceTree = SOURCE_ROOT; };
+ D7CA773F1124E4A5005186B5 /* parse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = parse.h; path = src/libmpg123/parse.h; sourceTree = SOURCE_ROOT; };
+ D7CA77401124E4A5005186B5 /* reader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = reader.h; path = src/libmpg123/reader.h; sourceTree = SOURCE_ROOT; };
+ D7CA77411124E4A5005186B5 /* readers.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = readers.c; path = src/libmpg123/readers.c; sourceTree = SOURCE_ROOT; };
+ D7CA77421124E4A5005186B5 /* sample.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = sample.h; path = src/libmpg123/sample.h; sourceTree = SOURCE_ROOT; };
+ D7CA77431124E4A5005186B5 /* stringbuf.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = stringbuf.c; path = src/libmpg123/stringbuf.c; sourceTree = SOURCE_ROOT; };
+ D7CA77441124E4A5005186B5 /* synth.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = synth.c; path = src/libmpg123/synth.c; sourceTree = SOURCE_ROOT; };
+ D7CA77451124E4A5005186B5 /* synth.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = synth.h; path = src/libmpg123/synth.h; sourceTree = SOURCE_ROOT; };
+ D7CA77461124E4A5005186B5 /* synth_8bit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = synth_8bit.c; path = src/libmpg123/synth_8bit.c; sourceTree = SOURCE_ROOT; };
+ D7CA77471124E4A5005186B5 /* synth_8bit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = synth_8bit.h; path = src/libmpg123/synth_8bit.h; sourceTree = SOURCE_ROOT; };
+ D7CA77481124E4A5005186B5 /* synth_real.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = synth_real.c; path = src/libmpg123/synth_real.c; sourceTree = SOURCE_ROOT; };
+ D7CA77491124E4A5005186B5 /* synth_s32.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = synth_s32.c; path = src/libmpg123/synth_s32.c; sourceTree = SOURCE_ROOT; };
+ D7CA774A1124E4A5005186B5 /* tabinit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = tabinit.c; path = src/libmpg123/tabinit.c; sourceTree = SOURCE_ROOT; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ D289988505E68E00004EDB86 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 08FB7794FE84155DC02AAC07 /* libmpg123 */ = {
+ isa = PBXGroup;
+ children = (
+ D71350461124D56600E2C1DA /* MacConfigExternalDebug.xcconfig */,
+ D71350471124D56600E2C1DA /* MacConfigExternalRelease.xcconfig */,
+ 08FB7795FE84155DC02AAC07 /* Source */,
+ 1AB674ADFE9D54B511CA2CBB /* Products */,
+ );
+ name = libmpg123;
+ sourceTree = "<group>";
+ };
+ 08FB7795FE84155DC02AAC07 /* Source */ = {
+ isa = PBXGroup;
+ children = (
+ D7CA77251124E4A5005186B5 /* config.h */,
+ D7CA77261124E4A5005186B5 /* compat.c */,
+ D7CA77271124E4A5005186B5 /* compat.h */,
+ D7CA77281124E4A5005186B5 /* dct64.c */,
+ D7CA77291124E4A5005186B5 /* equalizer.c */,
+ D7CA772A1124E4A5005186B5 /* format.c */,
+ D7CA772B1124E4A5005186B5 /* frame.c */,
+ D7CA772C1124E4A5005186B5 /* frame.h */,
+ D7CA772D1124E4A5005186B5 /* icy.c */,
+ D7CA772E1124E4A5005186B5 /* icy.h */,
+ D7CA772F1124E4A5005186B5 /* icy2utf8.c */,
+ D7CA77301124E4A5005186B5 /* icy2utf8.h */,
+ D7CA77311124E4A5005186B5 /* id3.c */,
+ D7CA77321124E4A5005186B5 /* id3.h */,
+ D7CA77331124E4A5005186B5 /* index.c */,
+ D7CA77341124E4A5005186B5 /* index.h */,
+ D7CA77351124E4A5005186B5 /* layer1.c */,
+ D7CA77361124E4A5005186B5 /* layer2.c */,
+ D7CA77371124E4A5005186B5 /* layer3.c */,
+ D7CA77381124E4A5005186B5 /* libmpg123.c */,
+ D7CA77391124E4A5005186B5 /* mpg123.h */,
+ D7CA773A1124E4A5005186B5 /* mpg123lib_intern.h */,
+ D7CA773B1124E4A5005186B5 /* ntom.c */,
+ D7CA773C1124E4A5005186B5 /* optimize.c */,
+ D7CA773D1124E4A5005186B5 /* optimize.h */,
+ D7CA773E1124E4A5005186B5 /* parse.c */,
+ D7CA773F1124E4A5005186B5 /* parse.h */,
+ D7CA77401124E4A5005186B5 /* reader.h */,
+ D7CA77411124E4A5005186B5 /* readers.c */,
+ D7CA77421124E4A5005186B5 /* sample.h */,
+ D7CA77431124E4A5005186B5 /* stringbuf.c */,
+ D7CA77441124E4A5005186B5 /* synth.c */,
+ D7CA77451124E4A5005186B5 /* synth.h */,
+ D7CA77461124E4A5005186B5 /* synth_8bit.c */,
+ D7CA77471124E4A5005186B5 /* synth_8bit.h */,
+ D7CA77481124E4A5005186B5 /* synth_real.c */,
+ D7CA77491124E4A5005186B5 /* synth_s32.c */,
+ D7CA774A1124E4A5005186B5 /* tabinit.c */,
+ );
+ name = Source;
+ sourceTree = "<group>";
+ };
+ 1AB674ADFE9D54B511CA2CBB /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ D2AAC0630554660B00DB518D /* libmpgdec.dylib */,
+ );
+ name = Products;
+ sourceTree = "<group>";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXHeadersBuildPhase section */
+ D2AAC0600554660B00DB518D /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ D7CA774B1124E4A5005186B5 /* config.h in Headers */,
+ D7CA774D1124E4A5005186B5 /* compat.h in Headers */,
+ D7CA77521124E4A5005186B5 /* frame.h in Headers */,
+ D7CA77541124E4A5005186B5 /* icy.h in Headers */,
+ D7CA77561124E4A5005186B5 /* icy2utf8.h in Headers */,
+ D7CA77581124E4A5005186B5 /* id3.h in Headers */,
+ D7CA775A1124E4A5005186B5 /* index.h in Headers */,
+ D7CA775F1124E4A5005186B5 /* mpg123.h in Headers */,
+ D7CA77601124E4A5005186B5 /* mpg123lib_intern.h in Headers */,
+ D7CA77631124E4A5005186B5 /* optimize.h in Headers */,
+ D7CA77651124E4A5005186B5 /* parse.h in Headers */,
+ D7CA77661124E4A5005186B5 /* reader.h in Headers */,
+ D7CA77681124E4A5005186B5 /* sample.h in Headers */,
+ D7CA776B1124E4A5005186B5 /* synth.h in Headers */,
+ D7CA776D1124E4A5005186B5 /* synth_8bit.h in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXHeadersBuildPhase section */
+
+/* Begin PBXNativeTarget section */
+ D2AAC0620554660B00DB518D /* libmpg123 */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 1DEB914A08733D8E0010E9CD /* Build configuration list for PBXNativeTarget "libmpg123" */;
+ buildPhases = (
+ D7DC831D1124E70A001D291A /* ShellScript */,
+ D2AAC0600554660B00DB518D /* Headers */,
+ D2AAC0610554660B00DB518D /* Sources */,
+ D289988505E68E00004EDB86 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = libmpg123;
+ productName = libmpg123;
+ productReference = D2AAC0630554660B00DB518D /* libmpgdec.dylib */;
+ productType = "com.apple.product-type.library.dynamic";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 08FB7793FE84155DC02AAC07 /* Project object */ = {
+ isa = PBXProject;
+ buildConfigurationList = 1DEB914E08733D8E0010E9CD /* Build configuration list for PBXProject "libmpg123" */;
+ compatibilityVersion = "Xcode 3.1";
+ hasScannedForEncodings = 1;
+ mainGroup = 08FB7794FE84155DC02AAC07 /* libmpg123 */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ D2AAC0620554660B00DB518D /* libmpg123 */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ D7DC831D1124E70A001D291A /* ShellScript */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 12;
+ files = (
+ );
+ inputPaths = (
+ "$(SRCROOT)/src/Mac.config.h",
+ "$(SRCROOT)/src/libmpg123/Mac.mpg123.h",
+ );
+ outputPaths = (
+ "$(SRCROOT)/src/config.h",
+ "$(SRCROOT)/src/libmpg123/mpg123.h",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "cp $SRCROOT/src/Mac.config.h $SRCROOT/src/config.h \ncp $SRCROOT/src/libmpg123/Mac.mpg123.h $SRCROOT/src/libmpg123/mpg123.h\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ D2AAC0610554660B00DB518D /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ D7CA774C1124E4A5005186B5 /* compat.c in Sources */,
+ D7CA774E1124E4A5005186B5 /* dct64.c in Sources */,
+ D7CA774F1124E4A5005186B5 /* equalizer.c in Sources */,
+ D7CA77501124E4A5005186B5 /* format.c in Sources */,
+ D7CA77511124E4A5005186B5 /* frame.c in Sources */,
+ D7CA77531124E4A5005186B5 /* icy.c in Sources */,
+ D7CA77551124E4A5005186B5 /* icy2utf8.c in Sources */,
+ D7CA77571124E4A5005186B5 /* id3.c in Sources */,
+ D7CA77591124E4A5005186B5 /* index.c in Sources */,
+ D7CA775B1124E4A5005186B5 /* layer1.c in Sources */,
+ D7CA775C1124E4A5005186B5 /* layer2.c in Sources */,
+ D7CA775D1124E4A5005186B5 /* layer3.c in Sources */,
+ D7CA775E1124E4A5005186B5 /* libmpg123.c in Sources */,
+ D7CA77611124E4A5005186B5 /* ntom.c in Sources */,
+ D7CA77621124E4A5005186B5 /* optimize.c in Sources */,
+ D7CA77641124E4A5005186B5 /* parse.c in Sources */,
+ D7CA77671124E4A5005186B5 /* readers.c in Sources */,
+ D7CA77691124E4A5005186B5 /* stringbuf.c in Sources */,
+ D7CA776A1124E4A5005186B5 /* synth.c in Sources */,
+ D7CA776C1124E4A5005186B5 /* synth_8bit.c in Sources */,
+ D7CA776E1124E4A5005186B5 /* synth_real.c in Sources */,
+ D7CA776F1124E4A5005186B5 /* synth_s32.c in Sources */,
+ D7CA77701124E4A5005186B5 /* tabinit.c in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin XCBuildConfiguration section */
+ 1DEB914B08733D8E0010E9CD /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ EXECUTABLE_PREFIX = lib;
+ PRODUCT_NAME = mpgdec;
+ };
+ name = Debug;
+ };
+ 1DEB914C08733D8E0010E9CD /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ EXECUTABLE_PREFIX = lib;
+ PRODUCT_NAME = mpgdec;
+ };
+ name = Release;
+ };
+ 1DEB914F08733D8E0010E9CD /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = D71350461124D56600E2C1DA /* MacConfigExternalDebug.xcconfig */;
+ buildSettings = {
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ OTHER_CFLAGS = (
+ "$(inherited)",
+ "-DHAVE_CONFIG_H",
+ "-DOPT_GENERIC",
+ "-DREAL_IS_FLOAT",
+ "-DNOXFERMEM",
+ "-fomit-frame-pointer",
+ "-funroll-all-loops",
+ "-finline-functions",
+ "-ffast-math",
+ );
+ USER_HEADER_SEARCH_PATHS = ". ./src ./src/libmpg123";
+ };
+ name = Debug;
+ };
+ 1DEB915008733D8E0010E9CD /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = D71350471124D56600E2C1DA /* MacConfigExternalRelease.xcconfig */;
+ buildSettings = {
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ OTHER_CFLAGS = (
+ "$(inherited)",
+ "-DHAVE_CONFIG_H",
+ "-DOPT_GENERIC",
+ "-DREAL_IS_FLOAT",
+ "-DNOXFERMEM",
+ "-fomit-frame-pointer",
+ "-funroll-all-loops",
+ "-finline-functions",
+ "-ffast-math",
+ );
+ USER_HEADER_SEARCH_PATHS = ". ./src ./src/libmpg123";
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 1DEB914A08733D8E0010E9CD /* Build configuration list for PBXNativeTarget "libmpg123" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 1DEB914B08733D8E0010E9CD /* Debug */,
+ 1DEB914C08733D8E0010E9CD /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 1DEB914E08733D8E0010E9CD /* Build configuration list for PBXProject "libmpg123" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 1DEB914F08733D8E0010E9CD /* Debug */,
+ 1DEB915008733D8E0010E9CD /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
+}
diff --git a/makedll.sh b/makedll.sh
new file mode 100755
index 0000000..2fe9ef6
--- /dev/null
+++ b/makedll.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+if test -e Makefile; then
+ make clean
+fi
+options="$@"
+echo "using options: $options"
+CFLAGS="-march=i686" ./configure --disable-modules --with-cpu=x86_dither $options &&
+cd src/libmpg123 &&
+make &&
+cp .libs/libmpg123-0.dll ../../ &&
+cp .libs/libmpg123-0.dll.def ../../libmpg123-0.def
+cd ../../ &&
+echo "Now run that lib tool... perhaps you want to strip, too.
+Hints:
+ strip --strip-unneeded libmpg123-0.dll
+ lib /machine:i386 /def:libmpg123-0.def" ||
+echo You got some trouble.
+
+
diff --git a/man1/mpg123.1 b/man1/mpg123.1
new file mode 100644
index 0000000..f5a88c9
--- /dev/null
+++ b/man1/mpg123.1
@@ -0,0 +1,504 @@
+.TH mpg123 1 "31 Jan 2008"
+.SH NAME
+mpg123 \- play audio MPEG 1.0/2.0/2.5 stream (layers 1, 2 and 3)
+.SH SYNOPSIS
+.B mpg123
+[
+.B options
+]
+.IR file " ... | " URL " ... | "
+.B \-
+.SH DESCRIPTION
+.B mpg123
+reads one or more
+.IR file\^ s
+(or standard input if ``\-'' is specified) or
+.IR URL\^ s
+and plays them on the audio device (default) or
+outputs them to stdout.
+.IR file\^ / URL
+is assumed to be an MPEG audio bit stream.
+.SH OPERANDS
+The following operands are supported:
+.TP 8
+.IR file (s)
+The path name(s) of one or more input files. They must be
+valid MPEG-1.0/2.0/2.5 audio layer 1, 2 or 3 bit streams.
+If a dash ``\-'' is specified, MPEG data will
+be read from the standard input. Furthermore, any name
+starting with ``http://'' is recognized as
+.I URL
+(see next section).
+.SH OPTIONS
+.B mpg123
+options may be either the traditional POSIX one letter options,
+or the GNU style long options. POSIX style options start with a
+single ``\-'', while GNU long options start with ``\-\^\-''.
+Option arguments (if needed) follow separated by whitespace (not ``='').
+Note that some options can be absent from your installation when disabled in the build process.
+.SH INPUT OPTIONS
+.TP
+\fB\-k \fInum\fR, \fB\-\^\-skip \fInum
+Skip first
+.I num
+frames. By default the decoding starts at the first frame.
+.TP
+\fB\-n \fInum\fR, \fB\-\^\-frames \fInum
+Decode only
+.I num
+frames. By default the complete stream is decoded.
+.TP
+.BR \-\-fuzzy
+Enable fuzzy seeks (guessing byte offsets or using approximate seek points from Xing TOC).
+Without that, seeks need a first scan through the file before they can jump at positions.
+You can decide here: sample-accurate operation with gapless features or faster (fuzzy) seeking.
+.TP
+.BR \-y ", " \-\^\-no\-resync
+Do NOT try to resync and continue decoding if an error occurs in
+the input file. Normally,
+.B mpg123
+tries to keep the playback alive at all costs, including skipping invalid material and searching new header when something goes wrong.
+With this switch you can make it bail out on data errors
+(and perhaps spare your ears a bad time). Note that this switch has been renamed from \-\-resync.
+The old name still works, but is not advertised or recommened to use (subject to removal in future).
+.TP
+\fB\-\^-resync\-limit \fIbytes\fR
+Set number of bytes to search for valid MPEG data; <0 means search whole stream.
+If you know there are huge chunks of invalid data in your files... here is your hammer.
+.TP
+\fB\-p \fIURL \fR| \fBnone\fR, \fB\-\^\-proxy \fIURL \fR| \fBnone
+The specified
+.I proxy
+will be used for HTTP requests. It
+should be specified as full URL (``http://host.domain:port/''),
+but the ``http://'' prefix, the port number and the trailing
+slash are optional (the default port is 80). Specifying
+.B none
+means not to use any proxy, and to retrieve files directly
+from the respective servers. See also the
+``HTTP SUPPORT'' section.
+.TP
+\fB\-u \fIauth\fR, \fB\-\^\-auth \fIauth
+HTTP authentication to use when recieving files via HTTP.
+The format used is user:password.
+.TP
+\fB\-@ \fIfile\fR, \fB\-\^\-list \fIfile
+Read filenames and/or URLs of MPEG audio streams from the specified
+.I file
+in addition to the ones specified on the command line (if any).
+Note that
+.I file
+can be either an ordinary file, a dash ``\-'' to indicate that
+a list of filenames/URLs is to be read from the standard input,
+or an URL pointing to a an appropriate list file. Note: only
+one
+.B \-@
+option can be used (if more than one is specified, only the
+last one will be recognized).
+.TP
+\fB\-l \fIn\fR, \fB\-\^\-listentry \fIn
+Of the playlist, play specified entry only.
+.I n
+is the number of entry starting at 1. A value of 0 is the default and means playling the whole list, a negative value means showing of the list of titles with their numbers...
+.TP
+\fB\-\-loop \fItimes\fR
+for looping track(s) a certain number of times, < 0 means infinite loop (not with --random!).
+.TP
+.BR \-\-keep\-open
+For remote control mode: Keep loaded file open after reaching end.
+.TP
+\fB\-\-timeout \fIseconds\fR
+Timeout in (integer) seconds before declaring a stream dead (if <= 0, wait forever).
+.TP
+.BR \-z ", " \-\^\-shuffle
+Shuffle play. Randomly shuffles the order of files specified on the command
+line, or in the list file.
+.TP
+.BR \-Z ", " \-\-random
+Continuous random play. Keeps picking a random file from the command line
+or the play list. Unlike shuffle play above, random play never ends, and
+plays individual songs more than once.
+.TP
+\fB\-\^\-no\-icy\-meta
+Do not accept ICY meta data.
+.TP
+\fB\-i, \-\^-\index
+Index / scan through the track before playback.
+This fills the index table for seeking (if enabled in libmpg123) and may make the operating system cache the file contents for smoother operating on playback.
+.TP
+\fB\-\-index\-size \fIsize\fR
+Set the number of entries in the seek frame index table.
+.TP
+\fB\-\-preframes \fInum\fR
+Set the number of frames to be read as lead-in before a seeked-to position.
+This serves to fill the layer 3 bit reservoir, which is needed to faithfully reproduce a certain sample at a certain position.
+Note that for layer 3, a minimum of 1 is enforced (because of frame overlap), and for layer 1 and 2, this is limited to 2 (no bit reservoir in that case, but engine spin-up anyway).
+
+.SH OUTPUT and PROCESSING OPTIONS
+.TP
+\fB\-o \fImodule\fR, \-\^\-output \fImodule\fR
+Select audio output module. You can provide a comma-separated list to use the first one that works.
+.TP
+\fB\-\^\-list\-modules
+List the available modules.
+.TP
+\fB\-a \fIdev\fR, \fB\-\^\-audiodevice \fIdev
+Specify the audio device to use. The default is
+system-dependent (usually /dev/audio or /dev/dsp).
+Use this option if you have multiple audio devices and
+the default is not what you want.
+.TP
+.BR \-s ", " \-\^\-stdout
+The decoded audio samples are written to standard output,
+instead of playing them through the audio device. This
+option must be used if your audio hardware is not supported
+by
+.BR mpg123 .
+The output format per default is raw (headerless) linear PCM audio data,
+16 bit, stereo, host byte order (you can force mono or 8bit).
+.TP
+\fB\-O \fIfile\fR, \fB\-\^\-outfile
+Write raw output into a file (instead of simply redirecting standard output to a file with the shell).
+.TP
+\fB\-w \fIfile\fR, \fB\-\^\-wav
+Write output as WAV file. This will cause the MPEG stream to be decoded
+and saved as file
+.I file
+, or standard output if
+.I -
+is used as file name. You can also use
+.I --au
+and
+.I --cdr
+for AU and CDR format, respectively.
+.TP
+\fB\-\^\-au \fIfile
+Does not play the MPEG file but writes it to
+.I file
+in SUN audio format. If \- is used as the filename, the AU file is
+written to stdout.
+.TP
+\fB\-\^\-cdr \fIfile
+Does not play the MPEG file but writes it to
+.I file
+as a CDR file. If \- is used as the filename, the CDR file is written
+to stdout.
+.TP
+.BR \-\-reopen
+Forces reopen of the audiodevice after ever song
+.TP
+.BR \-\-cpu\ \fIdecoder\-type
+Selects a certain decoder (optimized for specific CPU), for example i586 or MMX.
+The list of available decoders can vary; depending on the build and what your CPU supports.
+This options is only availabe when the build actually includes several optimized decoders.
+.TP
+.BR \-\-test\-cpu
+Tests your CPU and prints a list of possible choices for \-\-cpu.
+.TP
+.BR \-\-list\-cpu
+Lists all available decoder choices, regardless of support by your CPU.
+.TP
+\fB\-g \fIgain\fR, \fB\-\^\-gain \fIgain
+[DEPRECATED] Set audio hardware output gain (default: don't change). The unit of the gain value is hardware and output module dependent.
+(This parameter is only provided for backwards compatibility and may be removed in the future without prior notice. Use the audio player for playing and a mixer app for mixing, UNIX style!)
+.TP
+\fB\-f \fIfactor\fR, \fB\-\^\-scale \fIfactor
+Change scale factor (default: 32768).
+.TP
+.BR \-\-rva-mix,\ \-\-rva-radio
+Enable RVA (relative volume adjustment) using the values stored for ReplayGain radio mode / mix mode with all tracks roughly equal loudness.
+The first valid information found in ID3V2 Tags (Comment named RVA or the RVA2 frame) or ReplayGain header in Lame/Info Tag is used.
+.TP
+.BR \-\-rva-album,\ \-\-rva-audiophile
+Enable RVA (relative volume adjustment) using the values stored for ReplayGain audiophile mode / album mode with usually the effect of adjusting album loudness but keeping relative loudness inside album.
+The first valid information found in ID3V2 Tags (Comment named RVA_ALBUM or the RVA2 frame) or ReplayGain header in Lame/Info Tag is used.
+.TP
+.BR \-0 ", " \-\^\-single0 "; " \-1 ", " \-\^\-single1
+Decode only channel 0 (left) or channel 1 (right),
+respectively. These options are available for
+stereo MPEG streams only.
+.TP
+.BR \-m ", " \-\^\-mono ", " \-\^\-mix ", " \-\^\-singlemix
+Mix both channels / decode mono. It takes less
+CPU time than full stereo decoding.
+.TP
+.BR \-\-stereo
+Force stereo output
+.TP
+\fB\-r \fIrate\fR, \fB\-\^\-rate \fIrate
+Set sample rate (default: automatic). You may want to
+change this if you need a constant bitrate independed of
+the mpeg stream rate. mpg123 automagically converts the
+rate. You should then combine this with \-\-stereo or \-\-mono.
+.TP
+.BR \-2 ", " \-\^\-2to1 "; " \-4 ", " \-\^\-4to1
+Performs a downsampling of ratio 2:1 (22 kHz) or 4:1 (11 kHz)
+on the output stream, respectively. Saves some CPU cycles, but
+at least the 4:1 ratio sounds ugly.
+.TP
+.BR \-\-pitch\ \fIvalue
+Set hardware pitch (speedup/down, 0 is neutral; 0.05 is 5%). This changes the output sampling rate, so it only works in the range your audio system/hardware supports.
+.TP
+.BR \-\-8bit
+Forces 8bit output
+.TP
+\fB\-d \fIn\fR, \fB\-\^\-doublespeed \fIn
+Only play every
+.IR n 'th
+frame. This will cause the MPEG stream
+to be played
+.I n
+times faster, which can be used for special
+effects. Can also be combined with the
+.B \-\^\-halfspeed
+option to play 3 out of 4 frames etc. Don't expect great
+sound quality when using this option.
+.TP
+\fB\-h \fIn\fR, \fB\-\^\-halfspeed \fIn
+Play each frame
+.I n
+times. This will cause the MPEG stream
+to be played at
+.IR 1 / n 'th
+speed (n times slower), which can be
+used for special effects. Can also be combined with the
+.B \-\^\-doublespeed
+option to double every third frame or things like that.
+Don't expect great sound quality when using this option.
+.TP
+\fB\-E \fIfile\fR, \fB\-\^\-equalizer
+Enables equalization, taken from
+.IR file .
+The file needs to contain 32 lines of data, additional comment lines may
+be prefixed with
+.IR # .
+Each data line consists of two floating-point entries, separated by
+whitespace. They specify the multipliers for left and right channel of
+a certain frequency band, respectively. The first line corresponds to the
+lowest, the 32nd to the highest frequency band.
+Note that you can control the equalizer interactively with the generic control interface.
+.TP
+\fB\-\^\-gapless
+Enable code that cuts (junk) samples at beginning and end of tracks, enabling gapless transitions between MPEG files when encoder padding and codec delays would prevent it.
+This is enabled per default beginning with mpg123 version 1.0.0 .
+.TP
+\fB\-\^\-no\-gapless
+Disable the gapless code. That gives you MP3 decodings that include encoder delay and padding plus mpg123's decoder delay.
+.TP
+\fB\-D \fIn\fR, \fB\-\-delay \fIn
+Insert a delay of \fIn\fR seconds before each track.
+.TP
+.BR "\-o h" ", " \-\^\-headphones
+Direct audio output to the headphone connector (some hardware only; AIX, HP, SUN).
+.TP
+.BR "\-o s" ", " \-\^\-speaker
+Direct audio output to the speaker (some hardware only; AIX, HP, SUN).
+.TP
+.BR "\-o l" ", " \-\^\-lineout
+Direct audio output to the line-out connector (some hardware only; AIX, HP, SUN).
+.TP
+\fB\-b \fIsize\fR, \fB\-\^\-buffer \fIsize
+Use an audio output buffer of
+.I size
+Kbytes. This is useful to bypass short periods of heavy
+system activity, which would normally cause the audio output
+to be interrupted.
+You should specify a buffer size of at least 1024
+(i.e. 1 Mb, which equals about 6 seconds of audio data) or more;
+less than about 300 does not make much sense. The default is 0,
+which turns buffering off.
+.TP
+\fB\-\^\-preload \fIfraction
+Wait for the buffer to be filled to
+.I fraction
+before starting playback (fraction between 0 and 1). You can tune this prebuffering to either get faster sound to your ears or safer uninterrupted web radio.
+Default is 1 (wait for full buffer before playback).
+.TP
+\fB\-\^\-smooth
+Keep buffer over track boundaries -- meaning, do not empty the buffer between tracks for possibly some added smoothness.
+
+.SH MISC OPTIONS
+
+.TP
+.BR \-t ", " \-\^\-test
+Test mode. The audio stream is decoded, but no output occurs.
+.TP
+.BR \-c ", " \-\^\-check
+Check for filter range violations (clipping), and report them for each frame
+if any occur.
+.TP
+.BR \-v ", " \-\^\-verbose
+Increase the verbosity level. For example, displays the frame
+numbers during decoding.
+.TP
+.BR \-q ", " \-\^\-quiet
+Quiet. Suppress diagnostic messages.
+.TP
+.BR \-C ", " \-\^\-control
+Enable terminal control keys. By default use 's' or the space bar to stop/restart (pause, unpause) playback, 'f' to jump forward to the next song, 'b' to jump back to the
+beginning of the song, ',' to rewind, '.' to fast forward, and 'q' to quit.
+Type 'h' for a full list of available controls.
+.TP
+\fB\-\^\-title
+In an xterm, or rxvt (compatible, TERM environment variable is examined), change the window's title to the name of song currently
+playing.
+.TP
+\fB\-\^\-long\-tag
+Display ID3 tag info always in long format with one line per item (artist, title, ...)
+.TP
+.BR \-\-utf8
+Regardless of environment, print metadata in UTF-8 (otherwise, when not using UTF-8 locale, you'll get ASCII stripdown).
+.TP
+.BR \-R ", " \-\^\-remote
+Activate generic control interface.
+.B mpg123
+will then read and execute commands from stdin. Basic usage is ``load <filename> '' to play some file and the obvious ``pause'', ``command.
+``jump <frame>'' will jump/seek to a given point (MPEG frame number).
+Issue ``help'' to get a full list of commands and syntax.
+.TP
+.BR \-\^\-remote\-err
+Print responses for generic control mode to standard error, not standard out.
+This is automatically triggered when using
+.B -s
+\fN.
+.TP
+\fB\-\-fifo \fIpath
+Create a fifo / named pipe on the given path and use that for reading commands instead of standard input.
+.TP
+\fB\-\^\-aggressive
+Tries to get higher priority
+.TP
+.BR \-T ", " \-\-realtime
+Tries to gain realtime priority. This option usually requires root
+privileges to have any effect.
+.TP
+.BR \-? ", " \-\^\-help
+Shows short usage instructions.
+.TP
+.BR \-\^\-longhelp
+Shows long usage instructions.
+.TP
+.BR \-\^\-version
+Print the version string.
+.SH HTTP SUPPORT
+In addition to reading MPEG audio streams from ordinary
+files and from the standard input,
+.B mpg123
+supports retrieval of MPEG audio files or playlists via the HTTP protocol,
+which is used in the World Wide Web (WWW). Such files are
+specified using a so-called URL, which starts with ``http://''. When a file with
+that prefix is encountered,
+.B mpg123
+attempts to open an HTTP connection to the server in order to
+retrieve that file to decode and play it.
+.P
+It is often useful to retrieve files through a WWW cache or
+so-called proxy. To accomplish this,
+.B mpg123
+examines the environment for variables named
+.BR MP3_HTTP_PROXY ", " http_proxy " and " HTTP_PROXY ,
+in this order. The value of the first one that is set will
+be used as proxy specification. To override this, you can
+use the
+.B \-p
+command line option (see the ``OPTIONS'' section). Specifying
+.B "\-p none"
+will enforce contacting the server directly without using
+any proxy, even if one of the above environment variables
+is set.
+.P
+Note that, in order to play MPEG audio files from a WWW
+server, it is necessary that the connection to that server
+is fast enough. For example, a 128 kbit/s MPEG file
+requires the network connection to be at least 128 kbit/s
+(16 kbyte/s) plus protocol overhead. If you suffer from
+short network outages, you should try the
+.B \-b
+option (buffer) to bypass such outages. If your network
+connection is generally not fast enough to retrieve MPEG
+audio files in realtime, you can first download the files
+to your local harddisk (e.g. using
+.BR wget (1))
+and then play them from there.
+.P
+If authentication is needed to access the file it can be
+specified with the
+.BR "\-u user:pass".
+.SH INTERRUPT
+When in terminal control mode, you can quit via pressing the q key,
+while any time you can abort
+.B mpg123
+by pressing Ctrl-C. If not in terminal control mode, this will
+skip to the next file (if any). If you want to abort playing immediately
+in that case, press Ctrl-C twice in short succession (within about one second).
+.P
+Note that the result of quitting
+.B mpg123
+pressing Ctrl-C might not be audible
+immediately, due to audio data buffering in the audio device.
+This delay is system dependent, but it is usually not more
+than one or two seconds.
+.SH "SEE ALSO"
+.BR wget (1),
+.BR sox (1),
+.SH NOTES
+MPEG audio decoding requires a good deal of CPU performance,
+especially layer-3. To decode it in realtime, you should
+have at least an i486DX4, Pentium, Alpha, SuperSparc or equivalent
+processor. You can also use the
+.B -m
+option to decode mono only, which reduces the CPU load
+somewhat for layer-3 streams. See also the
+.BR \-2 " and " \-4
+options.
+.P
+If everything else fails, use the
+.B \-s
+option to decode to standard output, direct it into a file
+and then use an appropriate utility to play that file.
+You might have to use a tool such as
+.BR sox (1)
+to convert the output to an audio format suitable for
+your audio player.
+.P
+If your system is generally fast enough to decode in
+realtime, but there are sometimes periods of heavy
+system load (such as cronjobs, users logging in remotely,
+starting of ``big'' programs etc.) causing the
+audio output to be interrupted, then you should use
+the
+.B \-b
+option to use a buffer of reasonable size (at least 1000 Kbytes).
+.SH BUGS
+.P
+Mostly MPEG-1 layer 2 and 3 are tested in real life.
+Please report any issues and provide test files to help fixing them.
+.P
+Free format streams are not supported, but they could be (there is some code).
+.P
+No CRC error checking is performed.
+.P
+Some platforms lack audio hardware support; you may be able to use the
+.B -s
+switch to feed the decoded data to a program that can play it on your audio device.
+Notably, this includes Tru64 with MME, but you should be able to install and use OSS there (it perhaps will perform better as MME would anyway).
+.SH AUTHORS
+.TP
+Maintainers:
+.br
+Thomas Orgis <maintainer@mpg123.org>, <thomas@orgis.org>
+.br
+Nicholas J. Humfrey
+.TP
+Creator:
+.br
+Michael Hipp
+.TP
+Uses code or ideas from various people, see the AUTHORS file accompanying the source code.
+.SH LICENSE
+.B mpg123
+is licensed under the GNU Lesser/Library General Public License, LGPL, version 2.1 .
+.SH WEBSITE
+http://www.mpg123.org
+.br
+http://sourceforge.net/projects/mpg123
diff --git a/mpg123.spec b/mpg123.spec
new file mode 100644
index 0000000..6273f5e
--- /dev/null
+++ b/mpg123.spec
@@ -0,0 +1,68 @@
+# This is a generic spec file that should "just work" with rpmbuild on any distro.
+# Make sure you have appropriate -devel packes installed:
+# - the package providing libltdl.so and .la (libtool or libtool-devel)
+# - devel packages for alsa, sdl, etc... to build the respective output modules.
+Summary: The fast console mpeg audio decoder/player.
+Name: mpg123
+Version: 1.8.1
+Release: 1
+URL: http://www.mpg123.org/
+License: GPL
+Group: Applications/Multimedia
+Packager: Michael Ryzhykh <mclroy@gmail.com>
+Source: http://www.mpg123.org/download/mpg123-%{version}.tar.bz2
+BuildRoot: %_tmppath/%name-%version
+Prefix: /usr
+# That is specific to fedora 4 already.
+#BuildPrereq: libtool-ltdl-devel
+
+%description
+This is a console based decoder/player for mono/stereo mpeg audio files,
+probably more familiar as MP3 or MP2 files. It's focus is speed.
+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.
+
+%package devel
+Summary: Files needed for development with mpg123
+Group: Development/Libraries
+
+%description devel
+Libraries and header files for development with mpg123.
+
+%prep
+%setup -q -n %name-%version
+
+%build
+%configure --with-cpu=x86_dither --enable-shared --enable-static --disable-ltdl-install
+make
+
+%install
+%{__rm} -rf %{buildroot}
+%makeinstall
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(755,root,root)
+%{_bindir}/*
+%defattr(644,root,root)
+%doc %{_mandir}/*/mpg123.1.gz
+%{_libdir}/libmpg123.so.*
+%{_libdir}/mpg123/output_*.la
+%{_libdir}/mpg123/output_*.so
+
+%files devel
+%defattr(644,root,root)
+%{_libdir}/pkgconfig/libmpg123.pc
+%{_includedir}/*.h
+%{_libdir}/libmpg123.a
+%{_libdir}/libmpg123.la
+%{_libdir}/libmpg123.so
+%exclude %{_libdir}/mpg123/output_*.a
+
+%changelog
+* Tue Jan 1 2008 Michael Ryzhykh <mclroy@gmail.com>
+- Initial Version.
+
diff --git a/mpg123.spec.in b/mpg123.spec.in
new file mode 100644
index 0000000..754b0c8
--- /dev/null
+++ b/mpg123.spec.in
@@ -0,0 +1,68 @@
+# This is a generic spec file that should "just work" with rpmbuild on any distro.
+# Make sure you have appropriate -devel packes installed:
+# - the package providing libltdl.so and .la (libtool or libtool-devel)
+# - devel packages for alsa, sdl, etc... to build the respective output modules.
+Summary: The fast console mpeg audio decoder/player.
+Name: @PACKAGE_NAME@
+Version: @PACKAGE_VERSION@
+Release: 1
+URL: http://www.mpg123.org/
+License: GPL
+Group: Applications/Multimedia
+Packager: Michael Ryzhykh <mclroy@gmail.com>
+Source: http://www.mpg123.org/download/mpg123-%{version}.tar.bz2
+BuildRoot: %_tmppath/%name-%version
+Prefix: /usr
+# That is specific to fedora 4 already.
+#BuildPrereq: libtool-ltdl-devel
+
+%description
+This is a console based decoder/player for mono/stereo mpeg audio files,
+probably more familiar as MP3 or MP2 files. It's focus is speed.
+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.
+
+%package devel
+Summary: Files needed for development with mpg123
+Group: Development/Libraries
+
+%description devel
+Libraries and header files for development with mpg123.
+
+%prep
+%setup -q -n %name-%version
+
+%build
+%configure --with-cpu=x86_dither --enable-shared --enable-static --disable-ltdl-install
+make
+
+%install
+%{__rm} -rf %{buildroot}
+%makeinstall
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(755,root,root)
+%{_bindir}/*
+%defattr(644,root,root)
+%doc %{_mandir}/*/mpg123.1.gz
+%{_libdir}/libmpg123.so.*
+%{_libdir}/mpg123/output_*.la
+%{_libdir}/mpg123/output_*.so
+
+%files devel
+%defattr(644,root,root)
+%{_libdir}/pkgconfig/libmpg123.pc
+%{_includedir}/*.h
+%{_libdir}/libmpg123.a
+%{_libdir}/libmpg123.la
+%{_libdir}/libmpg123.so
+%exclude %{_libdir}/mpg123/output_*.a
+
+%changelog
+* Tue Jan 1 2008 Michael Ryzhykh <mclroy@gmail.com>
+- Initial Version.
+
diff --git a/ports/MSVC++/2005/libmpg123/libmpg123.vcproj b/ports/MSVC++/2005/libmpg123/libmpg123.vcproj
new file mode 100644
index 0000000..89f3b46
--- /dev/null
+++ b/ports/MSVC++/2005/libmpg123/libmpg123.vcproj
@@ -0,0 +1,751 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="8,00"
+ Name="libmpg123"
+ ProjectGUID="{5ABE9A83-CA20-4321-878B-BF71EFDE3A6D}"
+ RootNamespace="libmpg123"
+ Keyword="Win32Proj"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug_Generic|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_GENERIC;_DEBUG;_LIB"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="false"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_Generic|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_GENERIC;NDEBUG;_LIB"
+ ExceptionHandling="0"
+ RuntimeLibrary="2"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="false"
+ DebugInformationFormat="0"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_i386|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_I386;NDEBUG;_LIB"
+ ExceptionHandling="0"
+ RuntimeLibrary="2"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="false"
+ DebugInformationFormat="0"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_i486|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_I486;NDEBUG;_LIB"
+ ExceptionHandling="0"
+ RuntimeLibrary="2"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="false"
+ DebugInformationFormat="0"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_i386|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;REAL_IS_FLOAT;OPT_I386;_DEBUG;_LIB"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="false"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_i486|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I486;REAL_IS_FLOAT;_DEBUG;_LIB"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="3"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="false"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\compat.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\compat.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\config.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64.c"
+ >
+ <FileConfiguration
+ Name="Release_i386|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i486|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i386|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i486|Win32"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_i386.c"
+ >
+ <FileConfiguration
+ Name="Debug_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_i486.c"
+ >
+ <FileConfiguration
+ Name="Debug_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i386|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i486|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i386|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\debug.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\decode.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\equalizer.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\format.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\frame.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\frame.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\getbits.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\huffman.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\icy.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\icy.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\icy2utf8.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\icy2utf8.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\id3.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\id3.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\index.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\index.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\l2tables.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\layer1.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\layer2.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\layer3.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\libmpg123.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\mpg123.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\mpg123lib_intern.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\msvc.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\ntom.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\optimize.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\optimize.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\parse.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\parse.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\reader.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\readers.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\stringbuf.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\sample.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_8bit.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_i486.c"
+ >
+ <FileConfiguration
+ Name="Debug_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i386|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i386|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_real.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_s32.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\tabinit.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\true.h"
+ >
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/ports/MSVC++/2008/feedseek/feedseek.vcproj b/ports/MSVC++/2008/feedseek/feedseek.vcproj
new file mode 100644
index 0000000..64b043d
--- /dev/null
+++ b/ports/MSVC++/2008/feedseek/feedseek.vcproj
@@ -0,0 +1,195 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="feedseek"
+ ProjectGUID="{472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}"
+ RootNamespace="feedseek"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="1"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ ExceptionHandling="0"
+ RuntimeLibrary="2"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="0"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ <ProjectReference
+ ReferencedProjectIdentifier="{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
+ RelativePathToProject=".\libmpg123\libmpg123.vcproj"
+ />
+ </References>
+ <Files>
+ <File
+ RelativePath="..\..\examples\feedseek.c"
+ >
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/ports/MSVC++/2008/libmpg123/libmpg123.vcproj b/ports/MSVC++/2008/libmpg123/libmpg123.vcproj
new file mode 100644
index 0000000..667669e
--- /dev/null
+++ b/ports/MSVC++/2008/libmpg123/libmpg123.vcproj
@@ -0,0 +1,2994 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="libmpg123"
+ ProjectGUID="{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
+ RootNamespace="libmpg123"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug_i386_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I386;_DEBUG;BUILD_MPG123_DLL"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_i386_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I386;BUILD_MPG123_DLL"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_i386|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I386;_DEBUG"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_Generic|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_GENERIC;_DEBUG"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ RuntimeLibrary="1"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_i386|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I386"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_Generic|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_GENERIC"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_Generic_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_GENERIC;_DEBUG;BUILD_MPG123_DLL"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ WarnAsError="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_Generic_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_GENERIC;BUILD_MPG123_DLL"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ WarnAsError="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_MMX_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ CommandLine=""
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MMX;BUILD_MPG123_DLL"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ WarnAsError="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ CommandLine=""
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_SSE_Dll|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ CommandLine=""
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_SSE;BUILD_MPG123_DLL"
+ ExceptionHandling="0"
+ RuntimeLibrary="2"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ WarnAsError="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_s32.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="synth_sse.o dct64_sse.o tabinit_mmx.o dct64_mmx.o synth_stereo_sse_float.o dct64_sse_float.o synth_sse_float.o synth_sse_accurate.o synth_sse_s32.o synth_stereo_sse_accurate.o synth_stereo_sse_s32.o"
+ OutputFile="$(SolutionDir)..\..\build\products\Release\libmpgdec.dll"
+ AdditionalLibraryDirectories="$(ProjectDir)..\libmpg123\$(ConfigurationName)"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ CommandLine=""
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_SSE_Dll|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="2"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_SSE;_DEBUG;BUILD_MPG123_DLL"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ RuntimeLibrary="3"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ WarnAsError="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\dct64_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_sse_s32.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\$(ConfigurationName)\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ AdditionalDependencies="synth_sse.o dct64_sse.o tabinit_mmx.o dct64_mmx.o synth_stereo_sse_float.o dct64_sse_float.o synth_sse_float.o synth_sse_accurate.o synth_sse_s32.o synth_stereo_sse_accurate.o synth_stereo_sse_s32.o"
+ OutputFile="$(SolutionDir)..\..\build\products\Debug\libmpgdec.dll"
+ AdditionalLibraryDirectories="$(ProjectDir)..\libmpg123\$(ConfigurationName)"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_i586_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I586;_DEBUG;BUILD_MPG123_DLL"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_i586.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_i586_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I586;BUILD_MPG123_DLL"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_i586.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_i586|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I586;_DEBUG"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_i586.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="synth_i586.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Debug&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_i586|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_I586"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_i586.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="synth_i586.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Release&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_SSE|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ WholeProgramOptimization="false"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_SSE;_DEBUG"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ RuntimeLibrary="1"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="mkdir $(ProjectDir)..\libmpg123\Debug&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_s32.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="dct64_mmx.o tabinit_mmx.o dct64_sse.o synth_sse.o synth_stereo_sse_float.o dct64_sse_float.o synth_sse_float.o synth_sse_accurate.o synth_sse_s32.o synth_stereo_sse_accurate.o synth_stereo_sse_s32.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Debug&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_SSE|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_SSE"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="mkdir $(ProjectDir)..\libmpg123\Release&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_s32.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="dct64_mmx.o tabinit_mmx.o dct64_sse.o synth_sse.o synth_stereo_sse_float.o dct64_sse_float.o synth_sse_float.o synth_sse_accurate.o synth_sse_s32.o synth_stereo_sse_accurate.o synth_stereo_sse_s32.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Release&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_MMX|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MMX"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="dct64_mmx.o synth_mmx.o tabinit_mmx.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Release&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_MMX|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MMX;_DEBUG"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="dct64_mmx.o synth_mmx.o tabinit_mmx.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Debug&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_MMX_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MMX;_DEBUG;BUILD_MPG123_DLL"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ WarnAsError="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_3dNow|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_3DNOW;_DEBUG"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\equalizer_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="dct36_3dnow.o getcpuflags.o synth_3dnow.o dct64_3dnow.o equalizer_3dnow.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Debug&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_3dNowExt|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_3DNOWEXT;_DEBUG"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="getcpuflags.o dct36_3dnowext.o tabinit_mmx.o synth_3dnowext.o dct64_3dnowext.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Debug&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_3dNow_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_3DNOW;_DEBUG;BUILD_MPG123_DLL"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\equalizer_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_3dNowExt_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_3DNOWEXT;_DEBUG;BUILD_MPG123_DLL"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_3dNow|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_3DNOW"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\equalizer_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="dct36_3dnow.o getcpuflags.o synth_3dnow.o dct64_3dnow.o equalizer_3dnow.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Release&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_3dNow_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_3DNOW;BUILD_MPG123_DLL"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\equalizer_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_3dNowExt|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_3DNOWEXT"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="getcpuflags.o dct36_3dnowext.o tabinit_mmx.o synth_3dnowext.o dct64_3dnowext.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Release&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_3dNowExt_Dll|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_3DNOWEXT;BUILD_MPG123_DLL"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_x86|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\equalizer_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_i586.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_s32.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="dct36_3dnow.o dct36_3dnowext.o dct64_3dnow.o dct64_3dnowext.o dct64_mmx.o dct64_sse.o dct64_sse_float.o equalizer_3dnow.o getcpuflags.o synth_3dnow.o synth_3dnowext.o synth_i586.o synth_mmx.o synth_sse.o synth_sse_float.o synth_stereo_sse_float.o tabinit_mmx.o synth_sse_accurate.o synth_sse_s32.o synth_stereo_sse_accurate.o synth_stereo_sse_s32.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Debug&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_x86|Win32"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\equalizer_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_i586.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_s32.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ AdditionalDependencies="dct36_3dnow.o dct36_3dnowext.o dct64_3dnow.o dct64_3dnowext.o dct64_mmx.o dct64_sse.o dct64_sse_float.o equalizer_3dnow.o getcpuflags.o synth_3dnow.o synth_3dnowext.o synth_i586.o synth_mmx.o synth_sse.o synth_sse_float.o synth_stereo_sse_float.o tabinit_mmx.o synth_sse_accurate.o synth_sse_s32.o synth_stereo_sse_accurate.o synth_stereo_sse_s32.o"
+ AdditionalLibraryDirectories="&quot;$(ProjectDir)\Release&quot;"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Debug_x86_Dll|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="4"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;_DEBUG;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ EnableEnhancedInstructionSet="1"
+ RuntimeTypeInfo="false"
+ WarnAsError="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct36_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\dct64_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\equalizer_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\equalizer_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_i586.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_i586.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_s32.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release_x86_Dll|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="4"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ CommandLine=""
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_CRT_SECURE_NO_WARNINGS;BUILD_MPG123_DLL;OPT_MULTI;OPT_GENERIC;OPT_I386;OPT_I586;OPT_MMX;OPT_3DNOW;OPT_3DNOWEXT;OPT_SSE"
+ ExceptionHandling="0"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ WarnAsError="false"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ CommandLine="cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct36_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct36_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\dct64_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\dct64_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\equalizer_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\equalizer_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\getcpuflags.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\getcpuflags.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnow.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnow.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_3dnowext.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_3dnowext.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_i586.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_i586.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_float.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_float.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_float.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\tabinit_mmx.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\tabinit_mmx.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Debug\synth_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_sse_s32.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_accurate.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_accurate.asm&quot;&#x0D;&#x0A;&#x0D;&#x0A;cl /I &quot;..\..&quot; /EP /TC &quot;$(ProjectDir)..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S&quot; /nologo &gt; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;$(SolutionDir)..\..\tools\yasm-0.8.0-win32\yasm -a x86 -p gas -r raw -f win32 -g null -m x86 -o &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_s32.o&quot; &quot;$(ProjectDir)..\libmpg123\Release\synth_stereo_sse_s32.asm&quot;&#x0D;&#x0A;"
+ />
+ <Tool
+ Name="VCLibrarianTool"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ CommandLine=""
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\compat.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\compat.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\config.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct36_3dnow.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct36_3dnowext.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_3dnow.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_3dnowext.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_i386.c"
+ >
+ <FileConfiguration
+ Name="Debug_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_Generic_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Generic_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_i486.c"
+ >
+ <FileConfiguration
+ Name="Debug_i386_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i386_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i386|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i386|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_Generic_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Generic_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_MMX_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_SSE_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_SSE_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i586_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i586_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i586|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i586|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_SSE|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_SSE|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_MMX|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_MMX|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_MMX_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_3dNow|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_3dNowExt|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_3dNow_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_3dNowExt_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_3dNow|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_3dNow_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_3dNowExt|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_3dNowExt_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_x86|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_x86|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_x86_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_x86_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_mmx.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_sse.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_sse_float.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_x86_64.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\dct64_x86_64_float.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\debug.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\decode.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\equalizer.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\equalizer_3dnow.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\format.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\frame.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\frame.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\getbits.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\getcpuflags.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\getcpuflags.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\huffman.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\icy.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\icy.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\icy2utf8.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\icy2utf8.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\id3.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\id3.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\index.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\index.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\l2tables.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\layer1.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\layer2.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\layer3.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\libmpg123.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\mangle.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\mpg123.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\mpg123.h.in"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\mpg123lib_intern.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\msvc.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\ntom.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\optimize.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\optimize.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\parse.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\parse.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\reader.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\readers.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\sample.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\stringbuf.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth.h"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_3dnow.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_3dnowext.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_8bit.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_i486.c"
+ >
+ <FileConfiguration
+ Name="Debug_i386_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i386_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i386|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i386|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Generic|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_Generic_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_Generic_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_MMX_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_SSE_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_SSE_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i586_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i586_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_i586|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_i586|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_SSE|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_SSE|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_MMX|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_MMX|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_MMX_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_3dNow|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_3dNowExt|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_3dNow_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_3dNowExt_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_3dNow|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_3dNow_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_3dNowExt|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_3dNowExt_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_x86|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_x86|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Debug_x86_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ <FileConfiguration
+ Name="Release_x86_Dll|Win32"
+ ExcludedFromBuild="true"
+ >
+ <Tool
+ Name="VCCLCompilerTool"
+ />
+ </FileConfiguration>
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_i586.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_i586_dither.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_mmx.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_real.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_s32.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_sse.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_sse_accurate.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_sse_float.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_sse_s32.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_stereo_sse_accurate.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_stereo_sse_float.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_stereo_sse_s32.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_stereo_x86_64.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_stereo_x86_64_accurate.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_stereo_x86_64_float.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_stereo_x86_64_s32.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_x86_64.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_x86_64_accurate.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_x86_64_float.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\synth_x86_64_s32.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\tabinit.c"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\tabinit_mmx.S"
+ >
+ </File>
+ <File
+ RelativePath="..\..\..\..\src\libmpg123\true.h"
+ >
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/ports/MSVC++/2008/mpg123.sln b/ports/MSVC++/2008/mpg123.sln
new file mode 100644
index 0000000..df31beb
--- /dev/null
+++ b/ports/MSVC++/2008/mpg123.sln
@@ -0,0 +1,38 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmpg123", "libmpg123\libmpg123.vcproj", "{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mpglib", "mpglib\mpglib.vcproj", "{9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "feedseek", "feedseek\feedseek.vcproj", "{472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}"
+EndProject
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "scan", "scan\scan.vcproj", "{245C2785-2FA9-4A6B-8558-35BB8473AEA1}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Win32 = Debug|Win32
+ Release|Win32 = Release|Win32
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {67CAA87B-7CF1-4F93-BB67-21C513F40803}.Debug|Win32.ActiveCfg = Debug_Generic_Dll|Win32
+ {67CAA87B-7CF1-4F93-BB67-21C513F40803}.Debug|Win32.Build.0 = Debug_Generic_Dll|Win32
+ {67CAA87B-7CF1-4F93-BB67-21C513F40803}.Release|Win32.ActiveCfg = Release_Generic_Dll|Win32
+ {67CAA87B-7CF1-4F93-BB67-21C513F40803}.Release|Win32.Build.0 = Release_Generic_Dll|Win32
+ {9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}.Debug|Win32.ActiveCfg = Debug|Win32
+ {9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}.Debug|Win32.Build.0 = Debug|Win32
+ {9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}.Release|Win32.ActiveCfg = Release|Win32
+ {9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}.Release|Win32.Build.0 = Release|Win32
+ {472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}.Debug|Win32.ActiveCfg = Debug|Win32
+ {472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}.Debug|Win32.Build.0 = Debug|Win32
+ {472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}.Release|Win32.ActiveCfg = Release|Win32
+ {472481BF-11B6-41A9-BF6A-8BE16A7F8FD6}.Release|Win32.Build.0 = Release|Win32
+ {245C2785-2FA9-4A6B-8558-35BB8473AEA1}.Debug|Win32.ActiveCfg = Debug|Win32
+ {245C2785-2FA9-4A6B-8558-35BB8473AEA1}.Debug|Win32.Build.0 = Debug|Win32
+ {245C2785-2FA9-4A6B-8558-35BB8473AEA1}.Release|Win32.ActiveCfg = Release|Win32
+ {245C2785-2FA9-4A6B-8558-35BB8473AEA1}.Release|Win32.Build.0 = Release|Win32
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/ports/MSVC++/2008/mpglib/mpglib.vcproj b/ports/MSVC++/2008/mpglib/mpglib.vcproj
new file mode 100644
index 0000000..a14dac7
--- /dev/null
+++ b/ports/MSVC++/2008/mpglib/mpglib.vcproj
@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="mpglib"
+ ProjectGUID="{9FB32EE1-C45A-4CCD-9AC8-112C43AF80A7}"
+ RootNamespace="mpglib"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="1"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ ExceptionHandling="0"
+ RuntimeLibrary="2"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="0"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ <ProjectReference
+ ReferencedProjectIdentifier="{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
+ RelativePathToProject=".\libmpg123\libmpg123.vcproj"
+ />
+ </References>
+ <Files>
+ <File
+ RelativePath="..\..\..\..\doc\examples\mpglib.c"
+ >
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/ports/MSVC++/2008/scan/scan.vcproj b/ports/MSVC++/2008/scan/scan.vcproj
new file mode 100644
index 0000000..25c292c
--- /dev/null
+++ b/ports/MSVC++/2008/scan/scan.vcproj
@@ -0,0 +1,195 @@
+<?xml version="1.0" encoding="Windows-1252"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="9.00"
+ Name="scan"
+ ProjectGUID="{245C2785-2FA9-4A6B-8558-35BB8473AEA1}"
+ RootNamespace="scan"
+ Keyword="Win32Proj"
+ TargetFrameworkVersion="196613"
+ >
+ <Platforms>
+ <Platform
+ Name="Win32"
+ />
+ </Platforms>
+ <ToolFiles>
+ </ToolFiles>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
+ MinimalRebuild="false"
+ ExceptionHandling="0"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="1"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="3"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="2"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+ IntermediateDirectory="$(ConfigurationName)"
+ ConfigurationType="1"
+ CharacterSet="1"
+ WholeProgramOptimization="1"
+ >
+ <Tool
+ Name="VCPreBuildEventTool"
+ />
+ <Tool
+ Name="VCCustomBuildTool"
+ />
+ <Tool
+ Name="VCXMLDataGeneratorTool"
+ />
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"
+ />
+ <Tool
+ Name="VCMIDLTool"
+ />
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="2"
+ InlineFunctionExpansion="2"
+ EnableIntrinsicFunctions="true"
+ FavorSizeOrSpeed="1"
+ OmitFramePointers="true"
+ AdditionalIncludeDirectories="../..;../../../../src/libmpg123"
+ PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
+ ExceptionHandling="0"
+ RuntimeLibrary="2"
+ BufferSecurityCheck="false"
+ EnableFunctionLevelLinking="true"
+ EnableEnhancedInstructionSet="1"
+ FloatingPointModel="2"
+ RuntimeTypeInfo="false"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ DebugInformationFormat="0"
+ CompileAs="1"
+ DisableSpecificWarnings="4996"
+ />
+ <Tool
+ Name="VCManagedResourceCompilerTool"
+ />
+ <Tool
+ Name="VCResourceCompilerTool"
+ />
+ <Tool
+ Name="VCPreLinkEventTool"
+ />
+ <Tool
+ Name="VCLinkerTool"
+ LinkIncremental="1"
+ GenerateDebugInformation="true"
+ SubSystem="1"
+ OptimizeReferences="2"
+ EnableCOMDATFolding="2"
+ TargetMachine="1"
+ />
+ <Tool
+ Name="VCALinkTool"
+ />
+ <Tool
+ Name="VCManifestTool"
+ />
+ <Tool
+ Name="VCXDCMakeTool"
+ />
+ <Tool
+ Name="VCBscMakeTool"
+ />
+ <Tool
+ Name="VCFxCopTool"
+ />
+ <Tool
+ Name="VCAppVerifierTool"
+ />
+ <Tool
+ Name="VCPostBuildEventTool"
+ />
+ </Configuration>
+ </Configurations>
+ <References>
+ <ProjectReference
+ ReferencedProjectIdentifier="{67CAA87B-7CF1-4F93-BB67-21C513F40803}"
+ RelativePathToProject=".\libmpg123\libmpg123.vcproj"
+ />
+ </References>
+ <Files>
+ <File
+ RelativePath="..\..\examples\scan.c"
+ >
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/ports/MSVC++/CMP3Stream/INCLUDE/CORE/CORE_FileIn.H b/ports/MSVC++/CMP3Stream/INCLUDE/CORE/CORE_FileIn.H
new file mode 100644
index 0000000..448a0cc
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/INCLUDE/CORE/CORE_FileIn.H
@@ -0,0 +1,15 @@
+// ------------------------------------------------------------------------------------------------
+
+#pragma once
+
+// ------------------------------------------------------------------------------------------------
+
+protected:
+
+::FILE *m_pFile;
+
+PBYTE m_pucMemData;
+DWORD m_dwLength;
+DWORD m_dwReadPos;
+
+// ------------------------------------------------------------------------------------------------
diff --git a/ports/MSVC++/CMP3Stream/INCLUDE/CORE/SourceFilter_MP3.H b/ports/MSVC++/CMP3Stream/INCLUDE/CORE/SourceFilter_MP3.H
new file mode 100644
index 0000000..429984e
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/INCLUDE/CORE/SourceFilter_MP3.H
@@ -0,0 +1,139 @@
+// ------------------------------------------------------------------------------------------------
+
+#pragma once
+
+// ------------------------------------------------------------------------------------------------
+
+#ifdef _DEBUG
+#pragma comment(lib, "libMPG123_d.lib")
+#else
+#pragma comment(lib, "libMPG123.lib")
+#endif
+
+// ------------------------------------------------------------------------------------------------
+
+#include "../DShowBase/streams.h"
+
+#include <CORE/SourceFilter_AsyncIO.H>
+#include <CORE/SourceFilter_AsyncReader.H>
+
+#include "../../libMPG123/MPG123.H"
+
+#include <IIEP_FileIn.H>
+
+// ------------------------------------------------------------------------------------------------
+
+#define WAVE_HEADER_LENGTH 44
+
+// ------------------------------------------------------------------------------------------------
+
+#define MP3_DECODE_LEN 0x4000
+
+#define MP3_DECODE_BUF_LEN 0x8000
+
+// ------------------------------------------------------------------------------------------------
+
+namespace IIEP
+{
+ class CMP3Stream : public CAsyncStream
+ {
+ public:
+
+ CMP3Stream(void);
+ ~CMP3Stream(void);
+
+ void SetSeekFlag(void);
+
+ bool Open(const WORD *pcwsFileName, CMediaType &coMT, DWORD dwKBPerSec = INFINITE);
+ void Close(void);
+
+ HRESULT SetPointer(LONGLONG llPos);
+ HRESULT Read(PBYTE pucBuffer,
+ DWORD dwBytesToRead,
+ BOOL bAlign,
+ LPDWORD pdwBytesRead);
+
+ LONGLONG Size(LONGLONG *pSizeAvailable);
+
+ DWORD Alignment(void);
+
+ void Lock (void);
+ void Unlock(void);
+
+ bool DecodeFrame(void);
+
+ //
+
+ bool OpenFile(const WORD *pcwsFileName);
+
+ DWORD ReadFile(PVOID pBuf , DWORD dwLen );
+ long SeekFile(long nOffset, int iOrigin);
+
+ //
+
+ private:
+
+ CCritSec m_csLock;
+
+ DWORD m_dwKBPerSec;
+ DWORD m_dwTimeStart;
+
+ mpg123_handle *m_pcoMH;
+
+ DWORD m_dwTotalBlocks;
+ DWORD m_dwAlignment;
+
+ DWORD m_dwLength;
+ DWORD m_dwPosition;
+
+ BYTE m_ucHeader[WAVE_HEADER_LENGTH];
+
+ //
+
+ DWORD m_dwDataBufPos;
+ DWORD m_dwDataBufLen;
+ BYTE m_ucDataBuffer[MP3_DECODE_BUF_LEN];
+
+ //
+
+ bool m_bSeekFlag;
+
+ //
+
+ IIEP::CFileIn m_coFileIn;
+ long m_nDataBegin;
+ long m_nDataTotal;
+ };
+
+ // ----------------------------------------------------------------------------------------------
+
+ class CMP3Reader : public CAsyncReader
+ {
+ public:
+
+ // We're not going to be CoCreate'd so we don't need registration stuff etc
+
+ STDMETHODIMP Register(void)
+ {
+ return S_OK;
+ }
+
+ STDMETHODIMP Unregister(void)
+ {
+ return S_OK;
+ }
+
+ CMP3Reader(CMP3Stream *pcoStream,
+ CMediaType *pcoMT,
+ HRESULT *phr) :
+ CAsyncReader(NAME("MP3 Reader\0"),
+ NULL,
+ pcoStream,
+ phr)
+ {
+ m_coMT = *pcoMT;
+ }
+ };
+}
+
+// ------------------------------------------------------------------------------------------------ \ No newline at end of file
diff --git a/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_Def.H b/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_Def.H
new file mode 100644
index 0000000..d1146fe
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_Def.H
@@ -0,0 +1,206 @@
+//
+// __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
+// /_//_//_//_/\ /_//_//_//_/\ /_//_//_//_/\ /_//_//_//_/\
+// \_/_//_/\\_\/ \_/_//_/\\_\//_/\\_\\_\\_\//_/\\_\\_/_/\/
+// /_//_/\/ /_//_/\/ /_/\/ __ /_/\/ __ /_/\/
+// /_//_/\/ /_//_/\/ /_//_//_/\ /_//_//_//_/\/
+// /_//_/\/ /_//_/\/ /_/\\_\\_\/ /_/\\_\\_\\_\/
+// __ /_//_/\/ __ /_//_/\/ /_/\/ __ __ /_/\/
+// /_//_//_//_/\ /_//_//_//_/\ /_//_//_//_/\ /_/\/
+// \_\\_\\_\\_\/ \_\\_\\_\\_\/ \_\\_\\_\\_\/ \_\/
+//
+//
+// ..:: Interactive Internet Entertainment Platform ::..
+//
+// (C) 2000-2006, FAN YI PENG. ALL RIGHTS RESERVED
+//
+// ________________________________________________________________________________________________
+//
+/// @file IIEP_Def.H
+/// @brief »ù±¾¶¨Òå
+// ________________________________________________________________________________________________
+//
+//
+// _____________________________________
+// | |
+// | DATA |
+// _____________________________|_____________________________________|____________________________
+//
+// __________
+// __________________________________________| CONFIG |__________________________________________
+
+#pragma once
+
+#ifdef _DEBUG
+ #pragma comment(lib, "IIEP_DBG.LIB")
+#else
+ #pragma comment(lib, "IIEP.LIB")
+#endif
+
+// ____________________________________________ CONFIG ____________________________________________
+//
+// __________
+// __________________________________________| DEFINE |__________________________________________
+//
+// _____________
+// ____/ Data Type \_____________________________________________________________________________
+
+typedef unsigned char BYTE;
+typedef unsigned short WORD;
+typedef unsigned long DWORD;
+typedef __int64 QWORD;
+
+typedef BYTE *PBYTE;
+typedef WORD *PWORD;
+typedef DWORD *PDWORD;
+typedef QWORD *PQWORD;
+
+typedef void *PVOID;
+
+// ______ Data Type _______________________________________________________________________________
+//
+// ___________
+// ____/ Release \_______________________________________________________________________________
+
+#define SAFE_DELETE(p) if (p) { delete (p); (p) = 0; }
+#define SAFE_DELETE_ARRAY(p) if (p) { delete[] (p); (p) = 0; }
+#define SAFE_RELEASE(p) if (p) { (p) -> Release(); (p) = 0; }
+
+// ______ Release _________________________________________________________________________________
+//
+// __________
+// ____/ Assert \________________________________________________________________________________
+
+#ifndef ASSERT
+ #ifdef _DEBUG
+ namespace IIEP { bool AssertFunction(bool, long, const char *, const char *); }
+ #define ASSERT(expression) \
+ if (IIEP::AssertFunction((bool) (expression), __LINE__, __FILE__, __FUNCTION__)) {_asm {int 3}}
+ #else
+ #define ASSERT(expression)
+ #endif
+#endif
+
+// ______ Assert __________________________________________________________________________________
+//
+// _______
+// ____/ LOG \___________________________________________________________________________________
+
+namespace IIEP
+{
+ void DebugLog(const char *pcszFormat, ...);
+ void DebugLog(const WORD *pcwsFormat, ...);
+
+ void WriteLog(const char *pcszFormat, ...);
+ void WriteLog(const WORD *pcwsFormat, ...);
+}
+
+// ______ LOG _____________________________________________________________________________________
+//
+// ________
+// ____/ TODO \__________________________________________________________________________________
+
+#ifdef _DEBUG
+ #define TODO \
+ IIEP::DebugLog("\n[TODO] %d: \"%s\"- %s()\n~~~~~~\n", __LINE__, __FILE__, __FUNCTION__);
+ #define ToDo(x) \
+ IIEP::DebugLog("\n[TODO] %d: \"%s\"- %s(): %s\n~~~~~~\n", __LINE__, __FILE__, __FUNCTION__, (x));
+#else
+ #define TODO
+ #define ToDo(x)
+#endif
+
+// ______ TODO ____________________________________________________________________________________
+//
+// ________
+// ____/ Path \__________________________________________________________________________________
+
+namespace IIEP
+{
+ void ResetToExePath(void);
+}
+
+// ______ Path ____________________________________________________________________________________
+//
+// __________
+// ____/ CMutex \________________________________________________________________________________
+
+namespace IIEP
+{
+ class CMutex
+ {
+ public:
+
+ CMutex(void) { m_bLocked = false; }
+ ~CMutex(void) {}
+
+ void Lock(void);
+ void Unlock(void) { m_bLocked = false; }
+ void Set(void) { m_bLocked = true; }
+ void Wait(void);
+
+ bool IsLock(void) const { return m_bLocked; }
+
+ private:
+
+ volatile bool m_bLocked;
+ };
+}
+
+// ______ CMutex __________________________________________________________________________________
+//
+// _________
+// ____/ SRect \_________________________________________________________________________________
+
+namespace IIEP
+{
+ /// @brief ¾ØÐνṹ
+
+ struct SRect
+ {
+ SRect(void) {}
+
+ SRect(long nX, long nY, long nWidth, long nHeight)
+ {
+ m_nX = nX;
+ m_nY = nY;
+ m_nWidth = nWidth;
+ m_nHeight = nHeight;
+ }
+
+ // -------------------------------------------------------------------------------------------
+
+ void Set(long nX, long nY, long nWidth, long nHeight)
+ {
+ m_nX = nX;
+ m_nY = nY;
+ m_nWidth = nWidth;
+ m_nHeight = nHeight;
+ }
+
+ // -------------------------------------------------------------------------------------------
+
+ long m_nX; ///< ¾ØÐÎ×óÉÏ½Ç X Öá×ø±ê
+ long m_nY; ///< ¾ØÐÎ×óÉÏ½Ç Y Öá×ø±ê
+ long m_nWidth; ///< ¾ØÐοí¶È
+ long m_nHeight; ///< ¾ØÐθ߶È
+ };
+}
+
+// ______ SRect ___________________________________________________________________________________
+//
+// ___________________________
+// ____/ Sample Grabber CallBack \_______________________________________________________________
+
+namespace IIEP
+{
+ typedef void (*CALLBACK_SampleGrabberBuffer) (PVOID, DWORD);
+}
+
+// ______ Sample Grabber CallBack _________________________________________________________________
+//
+// ____________________________________________ DEFINE ____________________________________________
+//
+// ____________________________________________________________________________________ DATA ______
+//
+// ___________________________________________ FILE END ___________________________________________ \ No newline at end of file
diff --git a/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_FileIn.H b/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_FileIn.H
new file mode 100644
index 0000000..423c033
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/INCLUDE/IIEP_FileIn.H
@@ -0,0 +1,167 @@
+//
+// __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __
+// /_//_//_//_/\ /_//_//_//_/\ /_//_//_//_/\ /_//_//_//_/\
+// \_/_//_/\\_\/ \_/_//_/\\_\//_/\\_\\_\\_\//_/\\_\\_/_/\/
+// /_//_/\/ /_//_/\/ /_/\/ __ /_/\/ __ /_/\/
+// /_//_/\/ /_//_/\/ /_//_//_/\ /_//_//_//_/\/
+// /_//_/\/ /_//_/\/ /_/\\_\\_\/ /_/\\_\\_\\_\/
+// __ /_//_/\/ __ /_//_/\/ /_/\/ __ __ /_/\/
+// /_//_//_//_/\ /_//_//_//_/\ /_//_//_//_/\ /_/\/
+// \_\\_\\_\\_\/ \_\\_\\_\\_\/ \_\\_\\_\\_\/ \_\/
+//
+//
+// ..:: Interactive Internet Entertainment Platform ::..
+//
+// (C) 2000-2005, FAN YI PENG. ALL RIGHTS RESERVED
+//
+// ________________________________________________________________________________________________
+//
+/// @file IIEP_FileIn.H
+/// @brief ÎļþÊäÈë½Ó¿ÚÀà
+// ________________________________________________________________________________________________
+//
+//
+// _____________________________________
+// | |
+// | DATA |
+// _____________________________|_____________________________________|____________________________
+//
+// __________
+// __________________________________________| CONFIG |__________________________________________
+
+#pragma once
+
+// ____________________________________________ CONFIG ____________________________________________
+//
+// __________
+// __________________________________________| HEADER |__________________________________________
+
+#include <stdio.h>
+#include <string>
+
+#include <IIEP_Def.H>
+
+// ____________________________________________ HEADER ____________________________________________
+//
+// __________
+// __________________________________________| DEFINE |__________________________________________
+//
+// ___________
+// ____/ CFileIn \_______________________________________________________________________________
+
+namespace IIEP
+{
+ /// @brief ÎļþÊäÈë½Ó¿ÚÀà
+
+ class CFileIn
+ {
+ public:
+
+ CFileIn(void);
+ ~CFileIn(void);
+
+ bool Open(const char *pcszFileName);
+ bool Open(const WORD *pcwsFileName);
+
+ void Close(void);
+
+ DWORD GetFileSize(void) const;
+ DWORD GetReadPosition(void) const;
+
+ bool Seek(long nOffset, long nOrigin = 0); // SEEK_SET = 0 SEEK_CUR = 1 SEEK_END = 2
+
+ bool Skip(long nOffset) { return Seek(nOffset, 1); }
+
+ DWORD Read(PVOID pDataBuffer, DWORD dwReadSize);
+
+ bool ReadB(BYTE &ucData)
+ {
+ return (1 == Read(&ucData, 1));
+ }
+
+ bool ReadW(WORD &wData)
+ {
+ return (2 == Read(&wData, 2));
+ }
+
+ bool ReadDW(DWORD &dwData)
+ {
+ return (4 == Read(&dwData, 4));
+ }
+
+ bool ReadInverseW(WORD &wData)
+ {
+ if (2 == Read(&wData, 2))
+ {
+ _asm
+ {
+ MOV ECX, wData
+ MOV AX, [ECX]
+ XCHG AH, AL
+ MOV [ECX], AX
+ }
+
+ return true;
+ }
+
+ return false;
+ }
+
+ bool ReadInverseDW(DWORD &dwData)
+ {
+ if (4 == Read(&dwData, 4))
+ {
+ _asm
+ {
+ MOV ECX, dwData
+ MOV EAX, [ECX]
+ BSWAP EAX
+ MOV [ECX], EAX
+ }
+
+ return true;
+ }
+
+ return false;
+ }
+
+ // --------------------------------------------------------------------------------------------
+
+ bool ReadAnsiLine(std::string &strLine);
+ bool ReadUnicodeLine(std::wstring &wstrLine, bool bBigEndian);
+
+ bool ReadAnsiString (char *pszBuffer, DWORD dwBufferLength);
+ bool ReadUnicodeString(WORD *pwzBuffer, DWORD dwBufferLength);
+
+ // --------------------------------------------------------------------------------------------
+
+ private:
+
+ CFileIn(const CFileIn &); // forbidden
+ CFileIn & operator = (const CFileIn &); // forbidden
+
+ #include <CORE/CORE_FileIn.H>
+ };
+}
+
+// ______ CFileIn _________________________________________________________________________________
+//
+// _______________
+// ____/ Memory File \___________________________________________________________________________
+
+namespace IIEP
+{
+ bool CreateMemoryFile(PVOID pMemory, DWORD dwLength, const char *pcszFileName);
+ bool CreateMemoryFile(PVOID pMemory, DWORD dwLength, const WORD *pcwsFileName);
+ bool RemoveMemoryFile(const char *pcszFileName);
+ bool RemoveMemoryFile(const WORD *pcwsFileName);
+ void RemoveMemoryFile(void);
+}
+
+// ______ Memory File _____________________________________________________________________________
+//
+// ____________________________________________ DEFINE ____________________________________________
+//
+// ____________________________________________________________________________________ DATA ______
+//
+// ___________________________________________ FILE END ___________________________________________ \ No newline at end of file
diff --git a/ports/MSVC++/CMP3Stream/README b/ports/MSVC++/CMP3Stream/README
new file mode 100644
index 0000000..df7a9aa
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/README
@@ -0,0 +1,4 @@
+This is a MS Visual C++ project plus wrapper class for libmpg123, contributed by "Gates Fan" <gatesfan@gmail.com>.
+You need to copy the stuff from mgp123-x.y.z/src/libmpg123 to the libMPG123 directory and also ensure that you produce a valid mpg123.h from the mpg123.h.in (replace the @BLABLA@ with the appropriate #includes).
+
+Thomas.
diff --git a/ports/MSVC++/CMP3Stream/SOURCE/CORE_FileIn.CPP b/ports/MSVC++/CMP3Stream/SOURCE/CORE_FileIn.CPP
new file mode 100644
index 0000000..aa0445e
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/SOURCE/CORE_FileIn.CPP
@@ -0,0 +1,462 @@
+// ------------------------------------------------------------------------------------------------
+
+#include <windows.h>
+
+#include <string>
+#include <vector>
+
+#include <IIEP_FileIn.H>
+#include <IIEP_Hash.H>
+#include <IIEP_String.H>
+
+// ------------------------------------------------------------------------------------------------
+
+struct MEM_FILE_IDX
+{
+ MEM_FILE_IDX(void)
+ {
+ m_dwID = 0;
+ m_dwLength = 0;
+ m_pucData = 0;
+ }
+
+ DWORD m_dwID; // hash ID of filename
+ DWORD m_dwLength; // file length
+ PBYTE m_pucData; // memory pointer
+};
+
+static std::vector <MEM_FILE_IDX> s_vecMemFile;
+
+// ------------------------------------------------------------------------------------------------
+// name: SearchMemFile()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+static std::vector <MEM_FILE_IDX> :: iterator SearchMemFile(PCWSTR pcwsFileName)
+{
+ DWORD dwID = IIEP::HashFNV_1a(pcwsFileName);
+
+ std::vector <MEM_FILE_IDX>::iterator it;
+
+ for (it = s_vecMemFile.begin(); it < s_vecMemFile.end(); it ++)
+ {
+ if (it -> m_dwID == dwID) return it;
+ }
+
+ return s_vecMemFile.end();
+}
+
+// ------------------------------------------------------------------------------------------------
+
+static std::vector <MEM_FILE_IDX> :: iterator SearchMemFile(const char *pcszFileName)
+{
+ WORD wzNameBuffer[0x1000];
+
+ wzNameBuffer[0] = 0;
+
+ IIEP::StringFromANSI(pcszFileName, wzNameBuffer, 0x1000);
+
+ return SearchMemFile(wzNameBuffer);
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: CreateMemoryFile()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CreateMemoryFile(PVOID pMemory, DWORD dwLength, PCWSTR pcwsFileName)
+{
+ if (0 == pcwsFileName || 0 == *pcwsFileName) return false;
+
+ RemoveMemoryFile(pcwsFileName);
+
+ DWORD dwID = IIEP::HashFNV_1a(pcwsFileName);
+
+ MEM_FILE_IDX soIDX;
+
+ soIDX.m_dwID = dwID;
+ soIDX.m_dwLength = dwLength;
+ soIDX.m_pucData = (PBYTE) pMemory;
+
+ s_vecMemFile.push_back(soIDX);
+
+ return true;
+}
+
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CreateMemoryFile(PVOID pMemory, DWORD dwLength, const char *pcszFileName)
+{
+ WORD wzNameBuffer[0x1000];
+
+ wzNameBuffer[0] = 0;
+
+ StringFromANSI(pcszFileName, wzNameBuffer, 0x1000);
+
+ return CreateMemoryFile(pMemory, dwLength, wzNameBuffer);
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: RemoveMemoryFile()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::RemoveMemoryFile(PCWSTR pcwsFileName)
+{
+ if (0 == pcwsFileName || 0 == *pcwsFileName) return false;
+
+ std::vector <MEM_FILE_IDX>::iterator it = SearchMemFile(pcwsFileName);
+
+ if (it == s_vecMemFile.end()) return false;
+
+ s_vecMemFile.erase(it);
+
+ return true;
+}
+
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::RemoveMemoryFile(const char *pcszFileName)
+{
+ WORD wzNameBuffer[0x1000];
+
+ wzNameBuffer[0] = 0;
+
+ StringFromANSI(pcszFileName, wzNameBuffer, 0x1000);
+
+ return RemoveMemoryFile(wzNameBuffer);
+}
+
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::RemoveMemoryFile(void)
+{
+ s_vecMemFile.clear();
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: CFileIn()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+IIEP::CFileIn::CFileIn(void)
+{
+ m_pFile = 0;
+ m_pucMemData = 0;
+ m_dwLength = 0;
+ m_dwReadPos = 0;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: ~CFileIn()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+IIEP::CFileIn::~CFileIn(void)
+{
+ Close();
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Open()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CFileIn::Open(const char *pcszFileName)
+{
+ WORD wzNameBuffer[0x1000];
+
+ wzNameBuffer[0] = 0;
+
+ StringFromANSI(pcszFileName, wzNameBuffer, 0x1000);
+
+ return Open(wzNameBuffer);
+}
+
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CFileIn::Open(const WORD *pcwsFileName)
+{
+ Close();
+
+ if (0 == pcwsFileName || 0 == *pcwsFileName) return false;
+
+ std::vector <MEM_FILE_IDX>::iterator it = SearchMemFile(pcwsFileName);
+
+ if (it == s_vecMemFile.end()) // not found in memory
+ {
+ m_pFile = _wfopen(pcwsFileName, L"rb");
+
+ if (m_pFile)
+ {
+ return true; // found DOS file
+ }
+
+ return false;
+ }
+
+ if (s_vecMemFile.empty()) return false;
+
+ m_pucMemData = it -> m_pucData;
+ m_dwLength = it -> m_dwLength;
+
+ return true;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Close()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::CFileIn::Close(void)
+{
+ if (m_pFile)
+ {
+ fclose(m_pFile);
+
+ m_pFile = 0;
+ }
+
+ m_pucMemData = 0;
+ m_dwLength = 0;
+ m_dwReadPos = 0;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: GetFileSize()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+DWORD IIEP::CFileIn::GetFileSize(void) const
+{
+ if (m_pFile)
+ {
+ DWORD dwPostion = ftell(m_pFile);
+
+ fseek(m_pFile, 0, SEEK_END);
+
+ DWORD dwFileSize = ftell(m_pFile);
+
+ fseek(m_pFile, dwPostion, SEEK_SET);
+
+ return dwFileSize;
+ }
+
+ return m_dwLength;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: GetReadPosition()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+DWORD IIEP::CFileIn::GetReadPosition(void) const
+{
+ if (m_pFile)
+ {
+ return ftell(m_pFile);
+ }
+
+ return m_dwReadPos;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Seek()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CFileIn::Seek(long nOffset, long nOrigin)
+{
+ if (m_pFile)
+ {
+ return (0 == fseek(m_pFile, nOffset, nOrigin));
+ }
+
+ if (m_pucMemData)
+ {
+ switch (nOrigin)
+ {
+ case SEEK_SET:
+ if (nOffset < 0 || nOffset >= (long) m_dwLength) return false;
+ m_dwReadPos = nOffset;
+ return true;
+
+ case SEEK_CUR:
+ nOffset += m_dwReadPos;
+ if (nOffset < 0 || nOffset >= (long) m_dwLength) return false;
+ m_dwReadPos = nOffset;
+ return true;
+
+ case SEEK_END:
+ ASSERT(nOffset <= 0); // Õâ¸ö±ØÐëÊǸºÊý
+ nOffset = m_dwLength - 1 + nOffset;
+ if (nOffset < 0 || nOffset >= (long) m_dwLength) return false;
+ m_dwReadPos = nOffset;
+ return true;
+ }
+ }
+
+ return false;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Read()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+DWORD IIEP::CFileIn::Read(PVOID pDataBuffer, DWORD dwReadSize)
+{
+ if (m_pFile)
+ {
+ return (DWORD) fread(pDataBuffer, 1, dwReadSize, m_pFile);
+ }
+
+ if (m_pucMemData)
+ {
+ if (m_dwReadPos + dwReadSize > m_dwLength) dwReadSize = m_dwLength - m_dwReadPos;
+
+ memcpy(pDataBuffer, m_pucMemData + m_dwReadPos, dwReadSize);
+
+ m_dwReadPos += dwReadSize;
+
+ return dwReadSize;
+ }
+
+ return 0;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: ReadAnsiLine()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CFileIn::ReadAnsiLine(std::string &strLine)
+{
+ BYTE ucChar = 0;
+
+ strLine.clear();
+
+ while (ReadB(ucChar))
+ {
+ if (0x0D == ucChar)
+ {
+ }
+ else
+ if (0x0A == ucChar)
+ {
+ return true;
+ }
+ else
+ {
+ strLine.push_back(ucChar);
+ }
+ }
+
+ if (strLine.empty()) return false;
+
+ return true;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: ReadUnicodeLine()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CFileIn::ReadUnicodeLine(std::wstring &wstrLine, bool bBigEndian)
+{
+ WORD wChar = 0;
+
+ wstrLine.clear();
+
+ while (bBigEndian ? ReadInverseW(wChar) : ReadW(wChar))
+ {
+ if (0x000D == wChar)
+ {
+ }
+ else
+ if (0x000A == wChar)
+ {
+ return true;
+ }
+ else
+ {
+ wstrLine.push_back(wChar);
+ }
+ }
+
+ if (wstrLine.empty()) return false;
+
+ return true;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: ReadAnsiString()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CFileIn::ReadAnsiString(char *pszBuffer, DWORD dwBufferLength)
+{
+ DWORD dwIndex = 0;
+ BYTE ucChar;
+
+ while (ReadB(ucChar))
+ {
+ if (dwIndex >= dwBufferLength) return true;
+
+ pszBuffer[dwIndex ++] = ucChar;
+
+ if (0 == ucChar)
+ {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: ReadUnicodeString()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CFileIn::ReadUnicodeString(WORD *pwzBuffer, DWORD dwBufferLength)
+{
+ DWORD dwIndex = 0;
+ WORD wChar;
+
+ ReadInverseW(wChar);
+
+ if (wChar == 0xFFFE) // Unicode
+ {
+ while (ReadW(wChar))
+ {
+ if (dwIndex >= dwBufferLength) return true;
+
+ pwzBuffer[dwIndex ++] = wChar;
+
+ if (0 == wChar)
+ {
+ return true;
+ }
+ }
+ }
+ else
+ if (wChar == 0xFEFF) // Unicode big endian
+ {
+ while (ReadInverseW(wChar))
+ {
+ if (dwIndex >= dwBufferLength) return true;
+
+ pwzBuffer[dwIndex ++] = wChar;
+
+ if (0 == wChar)
+ {
+ return true;
+ }
+ }
+ }
+
+ return false;
+}
+
+// ------------------------------------------------------------------------------------------------ \ No newline at end of file
diff --git a/ports/MSVC++/CMP3Stream/SOURCE/CORE_Log.CPP b/ports/MSVC++/CMP3Stream/SOURCE/CORE_Log.CPP
new file mode 100644
index 0000000..60b4621
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/SOURCE/CORE_Log.CPP
@@ -0,0 +1,122 @@
+// ------------------------------------------------------------------------------------------------
+
+#include <stdarg.h>
+#include <stdio.h>
+
+#include <windows.h>
+
+#include <IIEP_Def.H>
+
+// ------------------------------------------------------------------------------------------------
+
+static bool s_bLogFileOpened = false;
+
+// ------------------------------------------------------------------------------------------------
+// name: DebugLog()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::DebugLog(const char *pcszFormat, ...)
+{
+#ifdef _DEBUG
+ char cBuffer[0x8000];
+
+ va_list pcArg;
+
+ va_start(pcArg, pcszFormat);
+ _vsnprintf(cBuffer, 0x8000, pcszFormat, pcArg);
+ va_end(pcArg);
+
+ ::OutputDebugStringA(cBuffer);
+#endif
+}
+
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::DebugLog(const WORD *pcwsFormat, ...)
+{
+#ifdef _DEBUG
+ WCHAR wcBuffer[0x8000];
+
+ va_list pcArg;
+
+ va_start(pcArg, pcwsFormat);
+ _vsnwprintf(wcBuffer, 0x8000, pcwsFormat, pcArg);
+ va_end(pcArg);
+
+ ::OutputDebugStringW(wcBuffer);
+#endif
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: WriteLog()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::WriteLog(const char *pcszFormat, ...)
+{
+ char cBuffer[0x8000];
+
+ va_list pcArg;
+
+ va_start(pcArg, pcszFormat);
+ _vsnprintf(cBuffer, 0x8000, pcszFormat, pcArg);
+ va_end(pcArg);
+
+ FILE *phFile;
+
+ #define LOG_FILE "C:\\IIEP.LOG"
+
+ if (s_bLogFileOpened)
+ {
+ phFile = fopen(LOG_FILE, "a+");
+ }
+ else
+ {
+ phFile = fopen(LOG_FILE, "w");
+
+ s_bLogFileOpened = true;
+ }
+
+ if (phFile)
+ {
+ fprintf(phFile, cBuffer);
+ fclose(phFile);
+ }
+}
+
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::WriteLog(const WORD *pcwsFormat, ...)
+{
+ WCHAR wcBuffer[0x8000];
+
+ va_list pcArg;
+
+ va_start(pcArg, pcwsFormat);
+ _vsnwprintf(wcBuffer, 0x8000, pcwsFormat, pcArg);
+ va_end(pcArg);
+
+ FILE *phFile;
+
+ #define LOG_FILE "C:\\IIEP.LOG"
+
+ if (s_bLogFileOpened)
+ {
+ phFile = fopen(LOG_FILE, "a");
+ }
+ else
+ {
+ phFile = fopen(LOG_FILE, "w");
+
+ s_bLogFileOpened = true;
+ }
+
+ if (phFile)
+ {
+ fwprintf(phFile, wcBuffer);
+ fclose(phFile);
+ }
+}
+
+// ------------------------------------------------------------------------------------------------ \ No newline at end of file
diff --git a/ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP b/ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP
new file mode 100644
index 0000000..8440872
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/SOURCE/CORE_Mutex.CPP
@@ -0,0 +1,35 @@
+// ------------------------------------------------------------------------------------------------
+
+#include <windows.h>
+
+#include <IIEP_Def.H>
+
+// ------------------------------------------------------------------------------------------------
+// name: Lock()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::CMutex::Lock(void)
+{
+ while (m_bLocked)
+ {
+ ::Sleep(1);
+ }
+
+ m_bLocked = true;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Wait()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::CMutex::Wait(void)
+{
+ while (m_bLocked)
+ {
+ ::Sleep(1);
+ }
+}
+
+// ------------------------------------------------------------------------------------------------ \ No newline at end of file
diff --git a/ports/MSVC++/CMP3Stream/SOURCE/SourceFilter_MP3Stream.CPP b/ports/MSVC++/CMP3Stream/SOURCE/SourceFilter_MP3Stream.CPP
new file mode 100644
index 0000000..03b418f
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/SOURCE/SourceFilter_MP3Stream.CPP
@@ -0,0 +1,586 @@
+// ------------------------------------------------------------------------------------------------
+
+#include <IIEP_Def.H>
+
+#include <CORE/SourceFilter_MP3.H>
+
+// ------------------------------------------------------------------------------------------------
+
+extern BYTE g_ucWaveHeader[WAVE_HEADER_LENGTH];
+
+// ------------------------------------------------------------------------------------------------
+// name: CMP3Stream()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+static size_t read_sub(int fd, void *pBuf, size_t nSize)
+{
+ if (fd)
+ {
+ IIEP::CMP3Stream *pcoStream = (IIEP::CMP3Stream *) fd;
+
+ return pcoStream -> ReadFile(pBuf, nSize);
+ }
+
+ return 0;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: CMP3Stream()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+static off_t seek_sub(int fd, off_t nOffset, int iOrigin)
+{
+ if (fd)
+ {
+ IIEP::CMP3Stream *pcoStream = (IIEP::CMP3Stream *) fd;
+
+ return pcoStream -> SeekFile(nOffset, iOrigin);
+ }
+
+ return 0;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: CMP3Stream()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+IIEP::CMP3Stream::CMP3Stream(void)
+{
+ m_dwKBPerSec = INFINITE;
+ m_dwTimeStart = 0;
+
+ m_pcoMH = 0;
+
+ m_dwTotalBlocks = 0;
+ m_dwAlignment = 4;
+
+ m_dwLength = 0;
+ m_dwPosition = 0;
+
+ memcpy(m_ucHeader, g_ucWaveHeader, WAVE_HEADER_LENGTH);
+
+ m_dwDataBufPos = 0;
+ m_dwDataBufLen = 0;
+
+ m_bSeekFlag = false;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: ~CMP3Stream()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+IIEP::CMP3Stream::~CMP3Stream(void)
+{
+ Close();
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: SetSeekFlag()
+// desc: called by IIEP::CPlayer::SetMediaPosition(QWORD qwPosition)
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::CMP3Stream::SetSeekFlag(void)
+{
+ m_bSeekFlag = true;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Open()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CMP3Stream::Open(const WORD *pcwsFileName, CMediaType &coMT, DWORD dwKBPerSec)
+{
+ Close();
+
+ //
+
+ if (MPG123_OK != mpg123_init())
+ {
+ goto OPEN_FAIL;
+ }
+
+ m_pcoMH = mpg123_new(NULL, NULL);
+
+ if (0 == m_pcoMH)
+ {
+ goto OPEN_FAIL;
+ }
+
+ if (false == OpenFile(pcwsFileName))
+ {
+ goto OPEN_FAIL;
+ }
+
+ if (MPG123_OK != mpg123_replace_reader(m_pcoMH, read_sub, seek_sub))
+ {
+ goto OPEN_FAIL;
+ }
+
+ if (MPG123_OK != mpg123_open_fd(m_pcoMH, (int) this))
+ {
+ goto OPEN_FAIL;
+ }
+
+ long nRate;
+ int iChannels;
+ int iEncoding;
+
+ if (MPG123_OK != mpg123_getformat(m_pcoMH, &nRate, &iChannels, &iEncoding))
+ {
+ goto OPEN_FAIL;
+ }
+
+ // Ensure that this output format will not change (it could, when we allow it)
+
+ mpg123_format_none(m_pcoMH);
+ mpg123_format(m_pcoMH, nRate, iChannels, iEncoding);
+
+ // scan & get total samples
+
+ mpg123_scan(m_pcoMH);
+
+ off_t nOff = mpg123_length(m_pcoMH);
+
+ if (nOff < 0)
+ {
+ goto OPEN_FAIL;
+ }
+
+ m_dwTotalBlocks = (DWORD) nOff;
+
+ // set other format
+
+ m_dwAlignment = iChannels * 2;
+
+ if (0 == m_dwAlignment)
+ {
+ m_dwAlignment = 4;
+ }
+
+ m_dwLength = m_dwTotalBlocks * m_dwAlignment + WAVE_HEADER_LENGTH;
+
+ WORD wChannels = (WORD ) iChannels;
+ DWORD dwSamplesPerSec = (DWORD) nRate;
+ DWORD dwAvgBytesPerSec = m_dwAlignment * dwSamplesPerSec;
+ WORD wBlockAlign = (WORD ) m_dwAlignment;
+ WORD wBitsPerSample = 16;
+
+ PWORD pwData;
+ PDWORD pdwData;
+
+ pdwData = (PDWORD) &m_ucHeader[0x04];
+ *pdwData = m_dwTotalBlocks * m_dwAlignment + WAVE_HEADER_LENGTH - 8;
+
+ pwData = (PWORD) &m_ucHeader[0x16];
+ *pwData = wChannels;
+
+ pdwData = (PDWORD) &m_ucHeader[0x18];
+ *pdwData = dwSamplesPerSec;
+
+ pdwData = (PDWORD) &m_ucHeader[0x1C];
+ *pdwData = dwAvgBytesPerSec;
+
+ pwData = (PWORD) &m_ucHeader[0x20];
+ *pwData = wBlockAlign;
+
+ pwData = (PWORD) &m_ucHeader[0x22];
+ *pwData = wBitsPerSample;
+
+ pdwData = (PDWORD) &m_ucHeader[0x28];
+ *pdwData = m_dwTotalBlocks * m_dwAlignment;
+
+ coMT.majortype = MEDIATYPE_Stream;
+ coMT.subtype = MEDIASUBTYPE_WAVE;
+
+ SetPointer(0);
+
+ m_dwTimeStart = ::timeGetTime();
+
+ return true;
+
+OPEN_FAIL:
+
+ Close();
+
+ return false;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Close()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::CMP3Stream::Close(void)
+{
+ m_coFileIn.Close();
+
+ if (m_pcoMH)
+ {
+ mpg123_close (m_pcoMH);
+ mpg123_delete(m_pcoMH);
+
+ m_pcoMH = 0;
+ }
+
+ mpg123_exit();
+
+ m_dwTimeStart = 0;
+ m_dwTotalBlocks = 0;
+
+ m_dwLength = 0;
+ m_dwPosition = 0;
+
+ m_bSeekFlag = false;
+
+ m_nDataBegin = 0;
+ m_nDataTotal = 0;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: SetPointer()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+HRESULT IIEP::CMP3Stream::SetPointer(LONGLONG llPos)
+{
+ if (llPos < 0 || llPos > (LONGLONG) m_dwLength)
+ {
+ return S_FALSE;
+ }
+
+ m_dwPosition = (DWORD) llPos;
+
+ if (llPos < WAVE_HEADER_LENGTH)
+ {
+ mpg123_seek(m_pcoMH, 0, SEEK_SET);
+
+ m_dwDataBufLen = 0;
+ }
+ else
+ {
+ if (m_bSeekFlag && m_dwAlignment > 0)
+ {
+ m_bSeekFlag = false;
+
+ mpg123_seek(m_pcoMH, (long) (m_dwPosition - WAVE_HEADER_LENGTH) / m_dwAlignment, SEEK_SET);
+
+ m_dwDataBufLen = 0;
+ }
+ }
+
+ return S_OK;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Read()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+HRESULT IIEP::CMP3Stream::Read(PBYTE pucBuffer,
+ DWORD dwBytesToRead,
+ BOOL bAlign,
+ LPDWORD pdwBytesRead)
+{
+ if (0 == m_pcoMH) return S_FALSE;
+
+ CAutoLock lck(&m_csLock);
+
+ DWORD dwReadLength;
+
+ // wait until the bytes are here
+
+ DWORD dwTime = ::timeGetTime();
+
+ if (m_dwPosition + dwBytesToRead > m_dwLength)
+ {
+ dwReadLength = m_dwLength - m_dwPosition;
+ }
+ else
+ {
+ dwReadLength = dwBytesToRead;
+ }
+
+ DWORD dwTimeToArrive = (m_dwPosition + dwReadLength) / m_dwKBPerSec;
+
+ if (dwTime - m_dwTimeStart < dwTimeToArrive)
+ {
+ ::Sleep(dwTimeToArrive - dwTime + m_dwTimeStart);
+ }
+
+ // read data
+
+ DWORD dwRead = 0;
+
+ if (m_dwPosition < WAVE_HEADER_LENGTH)
+ {
+ DWORD dwPatchLen = WAVE_HEADER_LENGTH - m_dwPosition;
+
+ if (dwReadLength < dwPatchLen)
+ {
+ dwPatchLen = dwReadLength;
+ }
+
+ memcpy(pucBuffer, m_ucHeader + m_dwPosition, dwPatchLen);
+
+ m_dwPosition += dwPatchLen;
+ dwReadLength -= dwPatchLen;
+
+ pucBuffer += dwPatchLen;
+ dwRead += dwPatchLen;
+ }
+
+ if (dwReadLength > 0)
+ {
+ while (m_dwDataBufLen < dwReadLength)
+ {
+ if (m_dwDataBufLen > 0)
+ {
+ memcpy(pucBuffer, m_ucDataBuffer + m_dwDataBufPos, m_dwDataBufLen);
+
+ dwRead += m_dwDataBufLen;
+
+ dwReadLength -= m_dwDataBufLen;
+
+ pucBuffer += m_dwDataBufLen;
+ m_dwDataBufPos += m_dwDataBufLen;
+ m_dwDataBufLen = 0;
+ }
+
+ if (DecodeFrame() == false) break;
+ }
+
+ if (dwReadLength > 0)
+ {
+ if (m_dwDataBufLen >= dwReadLength)
+ {
+ memcpy(pucBuffer, m_ucDataBuffer + m_dwDataBufPos, dwReadLength);
+
+ dwRead += dwReadLength;
+
+ m_dwDataBufPos += dwReadLength;
+ m_dwDataBufLen -= dwReadLength;
+ }
+ }
+ }
+
+ m_dwPosition += dwRead;
+ *pdwBytesRead = dwRead;
+
+ return S_OK;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Size()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+LONGLONG IIEP::CMP3Stream::Size(LONGLONG *pSizeAvailable)
+{
+// LONGLONG llCurrentAvailable = Int32x32To64((::timeGetTime() - m_dwTimeStart), m_dwKBPerSec);
+ LONGLONG llLength = (LONGLONG) m_dwTotalBlocks * m_dwAlignment + WAVE_HEADER_LENGTH;
+
+ if (pSizeAvailable)
+ {
+// *pSizeAvailable = min(llLength, llCurrentAvailable);
+ *pSizeAvailable = llLength;
+ }
+
+ return llLength;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Alignment()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+DWORD IIEP::CMP3Stream::Alignment(void)
+{
+ return m_dwAlignment;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Lock()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::CMP3Stream::Lock(void)
+{
+ m_csLock.Lock();
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: Unlock()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+void IIEP::CMP3Stream::Unlock(void)
+{
+ m_csLock.Unlock();
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: DecodeFrame()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CMP3Stream::DecodeFrame(void)
+{
+ if (0 == m_dwDataBufLen)
+ {
+ m_dwDataBufPos = 0;
+ }
+
+ if (m_dwDataBufPos + m_dwDataBufLen + MP3_DECODE_LEN > MP3_DECODE_BUF_LEN)
+ {
+ return true;
+ }
+
+ size_t nBytesRead = 0;
+
+ mpg123_read(m_pcoMH, m_ucDataBuffer + m_dwDataBufPos + m_dwDataBufLen, MP3_DECODE_LEN, &nBytesRead);
+
+ m_dwDataBufLen += (DWORD) nBytesRead;
+
+ return (m_dwDataBufLen > 0);
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: OpenFile()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+bool IIEP::CMP3Stream::OpenFile(const WORD *pcwsFileName)
+{
+ if (m_coFileIn.Open(pcwsFileName))
+ {
+ m_nDataBegin = 0;
+ m_nDataTotal = m_coFileIn.GetFileSize();
+
+ // check ID3 Tag V2.x
+
+ BYTE ucBuffer[8];
+ bool bFound;
+
+TRY_ID3_AGAIN:
+
+ bFound = false;
+
+ if (6 == m_coFileIn.Read(ucBuffer, 6))
+ {
+ if (ucBuffer[0] == 'I' &&
+ ucBuffer[1] == 'D' &&
+ ucBuffer[2] == '3')
+ {
+ bFound = true;
+
+ DWORD dwHeaderSize;
+
+ if (m_coFileIn.ReadInverseDW(dwHeaderSize))
+ {
+ dwHeaderSize = ((dwHeaderSize & 0x7F000000) >> 3) +
+ ((dwHeaderSize & 0x007F0000) >> 2) +
+ ((dwHeaderSize & 0x00007F00) >> 1) +
+ ((dwHeaderSize & 0x0000007F) );
+
+ dwHeaderSize += 10;
+
+ m_nDataBegin += dwHeaderSize;
+ m_nDataTotal -= dwHeaderSize;
+
+ if (ucBuffer[3] >= 0x03) // ID3 Tag version >= 2.3
+ {
+ if (ucBuffer[5] & 0x40) // has extended header
+ {
+ if (m_coFileIn.ReadInverseDW(dwHeaderSize))
+ {
+ dwHeaderSize = ((dwHeaderSize & 0x7F000000) >> 3) +
+ ((dwHeaderSize & 0x007F0000) >> 2) +
+ ((dwHeaderSize & 0x00007F00) >> 1) +
+ ((dwHeaderSize & 0x0000007F) );
+
+ dwHeaderSize += 4;
+
+ m_nDataBegin += dwHeaderSize;
+ m_nDataTotal -= dwHeaderSize;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ SeekFile(0, SEEK_SET);
+
+ if (bFound)
+ {
+ goto TRY_ID3_AGAIN;
+ }
+/*
+ m_coFileIn.Read(ucBuffer, 2);
+
+ if (ucBuffer[0] != 0xFF || ucBuffer[1] < 0xF0)
+ {
+ m_nDataBegin ++;
+ m_nDataTotal --;
+
+ SeekFile(0, SEEK_SET);
+
+ goto TRY_ID3_AGAIN;
+ }
+
+ SeekFile(0, SEEK_SET);
+*/
+ return true;
+ }
+
+ return false;
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: ReadFile()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+DWORD IIEP::CMP3Stream::ReadFile(PVOID pBuf, DWORD dwLen)
+{
+ return m_coFileIn.Read(pBuf, dwLen);
+}
+
+// ------------------------------------------------------------------------------------------------
+// name: SeekFile()
+// desc:
+// ------------------------------------------------------------------------------------------------
+
+long IIEP::CMP3Stream::SeekFile(long nOffset, int iOrigin)
+{
+ switch (iOrigin)
+ {
+ case SEEK_SET:
+ if (nOffset < 0 || nOffset >= m_nDataTotal) return -1;
+ break;
+
+ case SEEK_CUR:
+ nOffset += (m_coFileIn.GetReadPosition() - m_nDataBegin);
+ if (nOffset < 0 || nOffset >= m_nDataTotal) return -1;
+ break;
+
+ case SEEK_END:
+ nOffset = m_nDataTotal - 1 + nOffset;
+ if (nOffset < 0 || nOffset >= m_nDataTotal) return -1;
+ break;
+ }
+
+ if (m_coFileIn.Seek(nOffset + m_nDataBegin, SEEK_SET))
+ {
+ return nOffset;
+ }
+
+ return -1;
+}
+
+// ------------------------------------------------------------------------------------------------ \ No newline at end of file
diff --git a/ports/MSVC++/CMP3Stream/libMPG123/PLACE_LIBMPG123_SOURCES_HERE b/ports/MSVC++/CMP3Stream/libMPG123/PLACE_LIBMPG123_SOURCES_HERE
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/libMPG123/PLACE_LIBMPG123_SOURCES_HERE
diff --git a/ports/MSVC++/CMP3Stream/libMPG123/libMPG123.vcproj b/ports/MSVC++/CMP3Stream/libMPG123/libMPG123.vcproj
new file mode 100644
index 0000000..6c68b6e
--- /dev/null
+++ b/ports/MSVC++/CMP3Stream/libMPG123/libMPG123.vcproj
@@ -0,0 +1,245 @@
+<?xml version="1.0" encoding="gb2312"?>
+<VisualStudioProject
+ ProjectType="Visual C++"
+ Version="7.10"
+ Name="libMPG123"
+ ProjectGUID="{5227AA93-1E16-49FC-AE09-939AA023A7C1}"
+ Keyword="Win32Proj">
+ <Platforms>
+ <Platform
+ Name="Win32"/>
+ </Platforms>
+ <Configurations>
+ <Configuration
+ Name="Debug|Win32"
+ OutputDirectory="..\LIB"
+ IntermediateDirectory="\TEMP\libMPG123\Debug"
+ ConfigurationType="4"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="0"
+ PreprocessorDefinitions="REAL_IS_FLOAT;OPT_X86;OPT_GENERIC; WIN32;_DEBUG;_LIB"
+ MinimalRebuild="TRUE"
+ BasicRuntimeChecks="3"
+ RuntimeLibrary="1"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="FALSE"
+ DebugInformationFormat="3"
+ DisableSpecificWarnings="4305"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLibrarianTool"
+ OutputFile="$(OutDir)/libMPG123_d.lib"/>
+ <Tool
+ Name="VCMIDLTool"/>
+ <Tool
+ Name="VCPostBuildEventTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceCompilerTool"/>
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"/>
+ <Tool
+ Name="VCXMLDataGeneratorTool"/>
+ <Tool
+ Name="VCManagedWrapperGeneratorTool"/>
+ <Tool
+ Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+ </Configuration>
+ <Configuration
+ Name="Release|Win32"
+ OutputDirectory="..\LIB"
+ IntermediateDirectory="\TEMP\libMPG123\Release"
+ ConfigurationType="4"
+ CharacterSet="2">
+ <Tool
+ Name="VCCLCompilerTool"
+ Optimization="1"
+ GlobalOptimizations="TRUE"
+ ImproveFloatingPointConsistency="TRUE"
+ FavorSizeOrSpeed="2"
+ OmitFramePointers="TRUE"
+ EnableFiberSafeOptimizations="TRUE"
+ OptimizeForProcessor="2"
+ OptimizeForWindowsApplication="TRUE"
+ PreprocessorDefinitions="REAL_IS_FLOAT;OPT_X86;OPT_GENERIC; WIN32;NDEBUG;_LIB"
+ StringPooling="TRUE"
+ RuntimeLibrary="0"
+ StructMemberAlignment="1"
+ BufferSecurityCheck="FALSE"
+ UsePrecompiledHeader="0"
+ WarningLevel="3"
+ Detect64BitPortabilityProblems="FALSE"
+ DebugInformationFormat="0"
+ DisableSpecificWarnings="4305"/>
+ <Tool
+ Name="VCCustomBuildTool"/>
+ <Tool
+ Name="VCLibrarianTool"
+ OutputFile="$(OutDir)/libMPG123.lib"/>
+ <Tool
+ Name="VCMIDLTool"/>
+ <Tool
+ Name="VCPostBuildEventTool"/>
+ <Tool
+ Name="VCPreBuildEventTool"/>
+ <Tool
+ Name="VCPreLinkEventTool"/>
+ <Tool
+ Name="VCResourceCompilerTool"/>
+ <Tool
+ Name="VCWebServiceProxyGeneratorTool"/>
+ <Tool
+ Name="VCXMLDataGeneratorTool"/>
+ <Tool
+ Name="VCManagedWrapperGeneratorTool"/>
+ <Tool
+ Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
+ </Configuration>
+ </Configurations>
+ <References>
+ </References>
+ <Files>
+ <Filter
+ Name="libMPG123"
+ Filter="">
+ <File
+ RelativePath=".\compat.c">
+ </File>
+ <File
+ RelativePath=".\compat.h">
+ </File>
+ <File
+ RelativePath=".\dct64.c">
+ </File>
+ <File
+ RelativePath=".\dct64_i386.c">
+ </File>
+ <File
+ RelativePath=".\debug.h">
+ </File>
+ <File
+ RelativePath=".\decode.c">
+ </File>
+ <File
+ RelativePath=".\decode.h">
+ </File>
+ <File
+ RelativePath=".\decode_2to1.c">
+ </File>
+ <File
+ RelativePath=".\decode_4to1.c">
+ </File>
+ <File
+ RelativePath=".\decode_i386.c">
+ </File>
+ <File
+ RelativePath=".\decode_ntom.c">
+ </File>
+ <File
+ RelativePath=".\decode_sse3d.h">
+ </File>
+ <File
+ RelativePath=".\dnoise.c">
+ </File>
+ <File
+ RelativePath=".\equalizer.c">
+ </File>
+ <File
+ RelativePath=".\format.c">
+ </File>
+ <File
+ RelativePath=".\frame.c">
+ </File>
+ <File
+ RelativePath=".\frame.h">
+ </File>
+ <File
+ RelativePath=".\getbits.h">
+ </File>
+ <File
+ RelativePath=".\getcpuflags.h">
+ </File>
+ <File
+ RelativePath=".\huffman.h">
+ </File>
+ <File
+ RelativePath=".\icy.c">
+ </File>
+ <File
+ RelativePath=".\icy.h">
+ </File>
+ <File
+ RelativePath=".\id3.c">
+ </File>
+ <File
+ RelativePath=".\id3.h">
+ </File>
+ <File
+ RelativePath=".\l2tables.h">
+ </File>
+ <File
+ RelativePath=".\layer1.c">
+ </File>
+ <File
+ RelativePath=".\layer2.c">
+ </File>
+ <File
+ RelativePath=".\layer3.c">
+ </File>
+ <File
+ RelativePath=".\libmpg123.c">
+ </File>
+ <File
+ RelativePath=".\mangle.h">
+ </File>
+ <File
+ RelativePath=".\mpg123lib_intern.h">
+ </File>
+ <File
+ RelativePath=".\optimize.c">
+ </File>
+ <File
+ RelativePath=".\optimize.h">
+ </File>
+ <File
+ RelativePath=".\parse.c">
+ </File>
+ <File
+ RelativePath=".\parse.h">
+ </File>
+ <File
+ RelativePath=".\reader.h">
+ </File>
+ <File
+ RelativePath=".\readers.c">
+ </File>
+ <File
+ RelativePath=".\stringbuf.c">
+ </File>
+ <File
+ RelativePath=".\tabinit.c">
+ </File>
+ <File
+ RelativePath=".\testcpu.c">
+ </File>
+ <File
+ RelativePath=".\true.h">
+ </File>
+ </Filter>
+ <File
+ RelativePath=".\config.h">
+ </File>
+ <File
+ RelativePath=".\mpg123.h">
+ </File>
+ </Files>
+ <Globals>
+ </Globals>
+</VisualStudioProject>
diff --git a/ports/MSVC++/config.h b/ports/MSVC++/config.h
new file mode 100755
index 0000000..eb2c2b9
--- /dev/null
+++ b/ports/MSVC++/config.h
@@ -0,0 +1,21 @@
+#define strcasecmp _strcmpi
+#define strncasecmp _strnicmp
+#define strdup _strdup
+
+#define HAVE_STRERROR 1
+#define HAVE_SYS_TYPES_H 1
+
+#define HAVE_STRDUP
+#define HAVE_STDLIB_H
+#define HAVE_STRING_H
+
+/* We want some frame index, eh? */
+#define FRAME_INDEX 1
+#define INDEX_SIZE 1000
+
+/* also gapless playback! */
+#define GAPLESS 1
+
+#define REAL_IS_FLOAT
+
+#define inline __inline
diff --git a/ports/MSVC++/examples/feedseek.c b/ports/MSVC++/examples/feedseek.c
new file mode 100644
index 0000000..a5d151c
--- /dev/null
+++ b/ports/MSVC++/examples/feedseek.c
@@ -0,0 +1,231 @@
+/*
+ feedseek: test program for libmpg123, showing how to use fuzzy seeking in feeder mode
+ copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+*/
+
+#include <mpg123.h>
+#include <stdio.h>
+#include <tchar.h>
+#include <wchar.h>
+
+#define INBUFF 16384 * 2 * 2
+#define WAVE_FORMAT_PCM 0x0001
+#define WAVE_FORMAT_IEEE_FLOAT 0x0003
+
+FILE *out;
+size_t totaloffset, dataoffset;
+long rate;
+int channels, enc;
+unsigned short bitspersample, wavformat;
+
+// write wav header
+void initwav()
+{
+ unsigned int tmp32 = 0;
+ unsigned short tmp16 = 0;
+
+ fwrite("RIFF", 1, 4, out);
+ totaloffset = ftell(out);
+
+ fwrite(&tmp32, 1, 4, out); // total size
+ fwrite("WAVE", 1, 4, out);
+ fwrite("fmt ", 1, 4, out);
+ tmp32 = 16;
+ fwrite(&tmp32, 1, 4, out); // format length
+ tmp16 = wavformat;
+ fwrite(&tmp16, 1, 2, out); // format
+ tmp16 = channels;
+ fwrite(&tmp16, 1, 2, out); // channels
+ tmp32 = rate;
+ fwrite(&tmp32, 1, 4, out); // sample rate
+ tmp32 = rate * bitspersample/8 * channels;
+ fwrite(&tmp32, 1, 4, out); // bytes / second
+ tmp16 = bitspersample/8 * channels; // float 16 or signed int 16
+ fwrite(&tmp16, 1, 2, out); // block align
+ tmp16 = bitspersample;
+ fwrite(&tmp16, 1, 2, out); // bits per sample
+ fwrite("data ", 1, 4, out);
+ tmp32 = 0;
+ dataoffset = ftell(out);
+ fwrite(&tmp32, 1, 4, out); // data length
+}
+
+// rewrite wav header with final length infos
+void closewav()
+{
+ unsigned int tmp32 = 0;
+ unsigned short tmp16 = 0;
+
+ long total = ftell(out);
+ fseek(out, totaloffset, SEEK_SET);
+ tmp32 = total - (totaloffset + 4);
+ fwrite(&tmp32, 1, 4, out);
+ fseek(out, dataoffset, SEEK_SET);
+ tmp32 = total - (dataoffset + 4);
+
+ fwrite(&tmp32, 1, 4, out);
+}
+
+// determine correct wav format and bits per sample
+// from mpg123 enc value
+void initwavformat()
+{
+ if(enc & MPG123_ENC_FLOAT_64)
+ {
+ bitspersample = 64;
+ wavformat = WAVE_FORMAT_IEEE_FLOAT;
+ }
+ else if(enc & MPG123_ENC_FLOAT_32)
+ {
+ bitspersample = 32;
+ wavformat = WAVE_FORMAT_IEEE_FLOAT;
+ }
+ else if(enc & MPG123_ENC_16)
+ {
+ bitspersample = 16;
+ wavformat = WAVE_FORMAT_PCM;
+ }
+ else
+ {
+ bitspersample = 8;
+ wavformat = WAVE_FORMAT_PCM;
+ }
+}
+
+int _tmain(int argc, TCHAR **argv)
+{
+ unsigned char buf[INBUFF];
+ unsigned char *audio;
+ FILE *in;
+ mpg123_handle *m;
+ int ret, state;
+ size_t inc, outc;
+ off_t len, num;
+ size_t bytes;
+ off_t inoffset;
+ inc = outc = 0;
+
+ if(argc < 3)
+ {
+ fprintf(stderr,"Please supply in and out filenames\n");
+ return -1;
+ }
+
+ mpg123_init();
+
+ m = mpg123_new(NULL, &ret);
+ if(m == NULL)
+ {
+ fprintf(stderr,"Unable to create mpg123 handle: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ mpg123_param(m, MPG123_VERBOSE, 4, 0);
+
+ ret = mpg123_param(m, MPG123_FLAGS, MPG123_FUZZY | MPG123_SEEKBUFFER | MPG123_GAPLESS, 0);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable to set library options: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ // Let the seek index auto-grow and contain an entry for every frame
+ ret = mpg123_param(m, MPG123_INDEX_SIZE, -1, 0);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable to set index size: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ ret = mpg123_format_none(m);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable to disable all output formats: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ // Use float output
+ ret = mpg123_format(m, 44100, MPG123_MONO | MPG123_STEREO, MPG123_ENC_FLOAT_32);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable to set float output formats: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ ret = mpg123_open_feed(m);
+ if(ret != MPG123_OK)
+ {
+ fprintf(stderr,"Unable open feed: %s\n", mpg123_plain_strerror(ret));
+ return -1;
+ }
+
+ in = _tfopen(argv[1], __T("rb"));
+ if(in == NULL)
+ {
+ _ftprintf(stderr,__T("Unable to open input file %s\n"), argv[1]);
+ return -1;
+ }
+
+ out = _tfopen(argv[2], __T("wb"));
+ if(out == NULL)
+ {
+ _ftprintf(stderr,__T("Unable to open output file %s\n"), argv[2]);
+ return -1;
+ }
+
+ while(ret = mpg123_feedseek(m, 95000, SEEK_SET, &inoffset) == MPG123_NEED_MORE)
+ {
+ len = fread(buf, sizeof(unsigned char), INBUFF, in);
+ if(len <= 0)
+ break;
+ inc += len;
+
+ state = mpg123_feed(m, buf, len);
+ if(state == MPG123_ERR)
+ {
+ fprintf(stderr, "Error: %s", mpg123_strerror(m));
+ return -1;
+ }
+ }
+
+ fseek(in, inoffset, SEEK_SET);
+
+ while(1)
+ {
+ len = fread(buf, sizeof(unsigned char), INBUFF, in);
+ if(len <= 0)
+ break;
+ inc += len;
+ ret = mpg123_feed(m, buf, len);
+
+ while(ret != MPG123_ERR && ret != MPG123_NEED_MORE)
+ {
+ ret = mpg123_decode_frame(m, &num, &audio, &bytes);
+ if(ret == MPG123_NEW_FORMAT)
+ {
+ mpg123_getformat(m, &rate, &channels, &enc);
+ initwavformat();
+ initwav();
+ fprintf(stderr, "New format: %li Hz, %i channels, encoding value %i\n", rate, channels, enc);
+ }
+ fwrite(audio, sizeof(unsigned char), bytes, out);
+ outc += bytes;
+ }
+
+ if(ret == MPG123_ERR)
+ {
+ fprintf(stderr, "Error: %s", mpg123_strerror(m));
+ break;
+ }
+ }
+
+ fprintf(stderr, "Finished\n", (unsigned long)inc, (unsigned long)outc);
+
+ closewav();
+ fclose(out);
+ fclose(in);
+ mpg123_delete(m);
+ mpg123_exit();
+ return 0;
+}
diff --git a/ports/MSVC++/examples/scan.c b/ports/MSVC++/examples/scan.c
new file mode 100644
index 0000000..15f46aa
--- /dev/null
+++ b/ports/MSVC++/examples/scan.c
@@ -0,0 +1,47 @@
+/*
+ scan: Estimate length (sample count) of a mpeg file and compare to length from exact scan.
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+/* Note the lack of error checking here.
+ While it would be nicer to inform the user about troubles, libmpg123 is designed _not_ to bite you on operations with invalid handles , etc.
+ You just jet invalid results on invalid operations... */
+
+#include <mpg123.h>
+#include <stdio.h>
+
+int _tmain(int argc, _TCHAR* argv[])
+{
+ mpg123_handle *m;
+ int i;
+ if(argc < 2)
+ {
+ fprintf(stderr, "\nI will give you the estimated and exact sample lengths of MPEG audio files.\n");
+ fprintf(stderr, "\nUsage: %s <mpeg audio file list>\n\n", argv[0]);
+ return -1;
+ }
+ mpg123_init();
+ m = mpg123_new(NULL, NULL);
+ mpg123_param(m, MPG123_RESYNC_LIMIT, -1, 0); /* New in library version 0.0.1 . */
+ for(i = 1; i < argc; ++i)
+ {
+ off_t a, b;
+
+ mpg123_topen(m, argv[i]);
+
+ a = mpg123_length(m);
+ mpg123_scan(m);
+ b = mpg123_length(m);
+
+ mpg123_tclose(m);
+
+ printf("File %i: estimated %li vs. scanned %li\n", i, (long)a, (long)b);
+ }
+
+ mpg123_delete(m);
+ mpg123_exit();
+ return 0;
+}
diff --git a/ports/MSVC++/mpg123.h b/ports/MSVC++/mpg123.h
new file mode 100644
index 0000000..b7bff66
--- /dev/null
+++ b/ports/MSVC++/mpg123.h
@@ -0,0 +1,34 @@
+/*
+ mpg123_msvc: MPEG Audio Decoder library wrapper header for MS VC++ 2005
+
+ copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ initially written by Patrick Dehne and Thomas Orgis.
+*/
+#ifndef MPG123_MSVC_H
+#define MPG123_MSVC_H
+
+#include <tchar.h>
+#include <stdlib.h>
+#include <sys/types.h>
+
+typedef long ssize_t;
+typedef __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+
+#define MPG123_NO_CONFIGURE
+#include "mpg123.h.in" /* Yes, .h.in; we include the configure template! */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ // Wrapper around mpg123_open that supports path names with unicode
+ // characters
+ EXPORT int mpg123_topen(mpg123_handle *fr, const _TCHAR *path);
+ EXPORT int mpg123_tclose(mpg123_handle *fr);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/ports/MSVC++/msvc.c b/ports/MSVC++/msvc.c
new file mode 100644
index 0000000..a26c8b0
--- /dev/null
+++ b/ports/MSVC++/msvc.c
@@ -0,0 +1,58 @@
+/*
+ msvc: libmpg123 add-ons for MSVC++
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+
+ originally written by Patrick Dehne (inspired by libmpg123/readers.c)
+
+*/
+
+#include "mpg123lib_intern.h"
+
+#include <tchar.h>
+#include <fcntl.h>
+#include <io.h>
+
+#include "debug.h"
+
+int mpg123_topen(mpg123_handle *fr, const _TCHAR *path)
+{
+ int ret;
+ int filept; /* descriptor of opened file/stream */
+
+ ret = mpg123_replace_reader(fr, _read, _lseek);
+ if(ret != MPG123_OK)
+ {
+ return ret;
+ }
+
+ if((filept = _topen(path, O_RDONLY|O_BINARY)) < 0)
+ {
+ /* Will not work with unicode path name
+ if(NOQUIET) error2("Cannot open file %s: %s", path, strerror(errno)); */
+
+ if(NOQUIET) error1("Cannot open file: %s", strerror(errno));
+ fr->err = MPG123_BAD_FILE;
+ return filept; /* error... */
+ }
+
+ if(mpg123_open_fd(fr, filept) == MPG123_OK) {
+ return MPG123_OK;
+ }
+ else
+ {
+ _close(filept);
+ return MPG123_ERR;
+ }
+}
+
+int mpg123_tclose(mpg123_handle *fr)
+{
+ int ret;
+
+ ret = mpg123_close(fr);
+ _close(fr->rdat.filept);
+
+ return ret;
+}
diff --git a/ports/README b/ports/README
new file mode 100644
index 0000000..4b8987a
--- /dev/null
+++ b/ports/README
@@ -0,0 +1,19 @@
+This directory contains some (contributed) works covering usage and/or building of mpg123/libmpg123 from different programming environments.
+
+- Delphi: mpg123_.pas
+ Unit for linking against libmpg123 (Win32, DLL).
+ ...by Arthur Pires <arthurprs@gmail.com>
+- Sony PSP: Sony_PSP/; building libmpg123 for the PSP (used for the MODO player).
+ ...by Bastian Pflieger <wb@illogical.de>
+- MSVC++: Microsoft Windows / Visual C++ builds
+ - MSVC++/CMP3Stream:
+ project for building libmpg123 with interface class.
+ ...by "Gates Fan" <gatesfan@gmail.com>
+ - MSVC++/mpg123.h
+ A wrapper header over mpg123.h.in (yes, the template file in ../src/libmpg123) to use in MSVC++ projects that link to libmpg123.
+ - MSVC++/2005 and MSVC++/2008 contain project files for building and using libmpg123 with the corresponding versions of Microsoft Visual C++.
+ To use it add the project to your solution. Then add a reference to libmpg123 from the project that wants to use it.
+ Also add ports/MSVC++ and src/libmpg123 to the include path.
+ If you want to use the asm build you will need yasm (http://www.tortall.net/projects/yasm/).
+ Please put yasm.exe into a directory where MSVC++ can find it. Finally switch the libmpg123 project to the
+ Release_MMX_Dll build using the Visual Studio Configuration Manager.
diff --git a/ports/Sony_PSP/Makefile.psp b/ports/Sony_PSP/Makefile.psp
new file mode 100644
index 0000000..12d8664
--- /dev/null
+++ b/ports/Sony_PSP/Makefile.psp
@@ -0,0 +1,38 @@
+PSPSDK = $(shell psp-config --pspsdk-path)
+PSPDIR = $(shell psp-config --psp-prefix)
+
+#DEFINES := PSP OPT_GENERIC REAL_IS_FIXED HAVE_CONFIG_H
+DEFINES := PSP OPT_GENERIC REAL_IS_FLOAT HAVE_CONFIG_H
+#DEFINES := PSP OPT_GENERIC FLOATOUT REAL_IS_FLOAT HAVE_CONFIG_H
+DEFINEFLAGS := $(addprefix -D,$(DEFINES))
+INCDIR := ../.
+CFLAGS = -g -O2 -Wall -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math $(DEFINEFLAGS)
+
+MPG123_OBJS = compat.o parse.o frame.o format.o index.o synth.o synth_8bit.o \
+ ntom.o icy2utf8.o synth_real.o synth_s32.o\
+ equalizer.o icy.o id3.o layer1.o layer2.o layer3.o optimize.o readers.o tabinit.o stringbuf.o libmpg123.o dct64.o
+
+MPG123_LIB_FILE = ./libmpg123.a
+
+OBJS = $(MPG123_OBJS)
+TARGET_LIB = $(MPG123_LIB_FILE)
+
+include $(PSPSDK)/lib/build.mak
+
+
+
+####################
+## Makefile rules ##
+####################
+
+install: $(MPG123_LIB_FILE)
+ @echo ""
+ @echo "**********************************************************************"
+ @echo "Installing libstsound into $(PSPDIR)"
+ @mkdir -p $(PSPDIR)/include $(PSPDIR)/lib
+ @cp -v mpg123.h $(PSPDIR)/include
+ @cp -v libmpg123.a $(PSPDIR)/lib
+ @echo "Done"
+ @echo "**********************************************************************"
+ @echo ""
+
diff --git a/ports/Sony_PSP/README b/ports/Sony_PSP/README
new file mode 100644
index 0000000..ce9b45c
--- /dev/null
+++ b/ports/Sony_PSP/README
@@ -0,0 +1,11 @@
+Hi
+
+* Place Makefile.psp in the directory src/libmpg123.
+* Patch readers.c (present in src/libmpg123) using readers.c.patch
+* Place Config.h in directory src/
+* cd to src/libmpg123 and do "make -f Makefile.psp install"
+
+Tested on mpg123 1.4.x and psptoolchain rev. 2398
+
+Regards
+Bastian
diff --git a/ports/Sony_PSP/config.h b/ports/Sony_PSP/config.h
new file mode 100755
index 0000000..2a6c600
--- /dev/null
+++ b/ports/Sony_PSP/config.h
@@ -0,0 +1,368 @@
+/* src/config.h. Generated from config.h.in by configure. */
+/* src/config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define if your architecture wants/needs/can use attribute_align_arg and
+ alignment checks. It's for 32bit x86... */
+#define ABI_ALIGN_FUN 1
+
+/* Define to use proper rounding. */
+/* #undef ACCURATE_ROUNDING */
+
+/* Define if .align takes 3 for alignment of 2^3=8 bytes instead of 8. */
+/* #undef ASMALIGN_EXP */
+
+/* Define if __attribute__((aligned(16))) shall be used */
+/* #undef CCALIGN */
+
+/* Define if checking of stack alignment is wanted. */
+#define CHECK_ALIGN 1
+
+/* Define if debugging is enabled. */
+/* #undef DEBUG */
+
+/* The default audio output module(s) to use */
+#define DEFAULT_OUTPUT_MODULE "alsa,oss,esd,sdl,nas,arts"
+
+/* Define if building with dynamcally linked libmpg123 */
+#define DYNAMIC_BUILD 1
+
+/* Define if FIFO support is enabled. */
+#define FIFO 1
+
+/* Define if frame index should be used. */
+#define FRAME_INDEX 1
+
+/* Define if gapless is enabled. */
+#define GAPLESS 1
+
+/* Define to 1 if you have the <Alib.h> header file. */
+/* #undef HAVE_ALIB_H */
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#define HAVE_ARPA_INET_H 1
+
+/* Define to 1 if you have the <asm/audioio.h> header file. */
+/* #undef HAVE_ASM_AUDIOIO_H */
+
+/* Define to 1 if you have the `atoll' function. */
+#define HAVE_ATOLL 1
+
+/* Define to 1 if you have the <audios.h> header file. */
+/* #undef HAVE_AUDIOS_H */
+
+/* Define to 1 if you have the <AudioToolbox/AudioToolbox.h> header file. */
+/* #undef HAVE_AUDIOTOOLBOX_AUDIOTOOLBOX_H */
+
+/* Define to 1 if you have the <AudioUnit/AudioUnit.h> header file. */
+/* #undef HAVE_AUDIOUNIT_AUDIOUNIT_H */
+
+/* Define to 1 if you have the <CoreServices/CoreServices.h> header file. */
+/* #undef HAVE_CORESERVICES_CORESERVICES_H */
+
+/* Define to 1 if you have the <CUlib.h> header file. */
+/* #undef HAVE_CULIB_H */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the `getaddrinfo' function. */
+#define HAVE_GETADDRINFO 1
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define to 1 if you have the `getuid' function. */
+#define HAVE_GETUID 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the <langinfo.h> header file. */
+#define HAVE_LANGINFO_H 1
+
+/* Define to 1 if you have the `m' library (-lm). */
+#define HAVE_LIBM 1
+
+/* Define to 1 if you have the `mx' library (-lmx). */
+/* #undef HAVE_LIBMX */
+
+/* Define to 1 if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define to 1 if you have the <linux/soundcard.h> header file. */
+#define HAVE_LINUX_SOUNDCARD_H 1
+
+/* Define to 1 if you have the <locale.h> header file. */
+#define HAVE_LOCALE_H 1
+
+/* Define if libltdl is available */
+#define HAVE_LTDL 1
+
+/* Define to 1 if you have the <machine/soundcard.h> header file. */
+/* #undef HAVE_MACHINE_SOUNDCARD_H */
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have the `mkfifo' function. */
+#define HAVE_MKFIFO 1
+
+/* Define to 1 if you have a working `mmap' system call. */
+#define HAVE_MMAP 1
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#define HAVE_NETDB_H 1
+
+/* Define to 1 if you have the <netinet/in.h> header file. */
+#define HAVE_NETINET_IN_H 1
+
+/* Define to 1 if you have the <netinet/tcp.h> header file. */
+/* #undef HAVE_NETINET_TCP_H */
+
+/* Define to 1 if you have the `nl_langinfo' function. */
+#define HAVE_NL_LANGINFO 1
+
+/* Define to 1 if you have the <os2me.h> header file. */
+/* #undef HAVE_OS2ME_H */
+
+/* Define to 1 if you have the <os2.h> header file. */
+/* #undef HAVE_OS2_H */
+
+/* Define to 1 if you have the `random' function. */
+#define HAVE_RANDOM 1
+
+/* Define to 1 if you have the <sched.h> header file. */
+#define HAVE_SCHED_H 1
+
+/* Define to 1 if you have the `sched_setscheduler' function. */
+#define HAVE_SCHED_SETSCHEDULER 1
+
+/* Define to 1 if you have the `setlocale' function. */
+#define HAVE_SETLOCALE 1
+
+/* Define to 1 if you have the `setpriority' function. */
+#define HAVE_SETPRIORITY 1
+
+/* Define to 1 if you have the `setuid' function. */
+#define HAVE_SETUID 1
+
+/* Define to 1 if you have the <signal.h> header file. */
+#define HAVE_SIGNAL_H 1
+
+/* Define to 1 if you have the <sndio.h> header file. */
+/* #undef HAVE_SNDIO_H */
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdio.h> header file. */
+#define HAVE_STDIO_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `strdup' function. */
+#define HAVE_STRDUP 1
+
+/* Define to 1 if you have the `strerror' function. */
+#define HAVE_STRERROR 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sun/audioio.h> header file. */
+/* #undef HAVE_SUN_AUDIOIO_H */
+
+/* Define to 1 if you have the <sys/audioio.h> header file. */
+/* #undef HAVE_SYS_AUDIOIO_H */
+
+/* Define to 1 if you have the <sys/audio.h> header file. */
+/* #undef HAVE_SYS_AUDIO_H */
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/resource.h> header file. */
+#define HAVE_SYS_RESOURCE_H 1
+
+/* Define to 1 if you have the <sys/signal.h> header file. */
+#define HAVE_SYS_SIGNAL_H 1
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define to 1 if you have the <sys/soundcard.h> header file. */
+#define HAVE_SYS_SOUNDCARD_H 1
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <sys/wait.h> header file. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define this if you have the POSIX termios library */
+#define HAVE_TERMIOS 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the <windows.h> header file. */
+/* #undef HAVE_WINDOWS_H */
+
+/* Define to indicate that float storage follows IEEE754. */
+#define IEEE_FLOAT 1
+
+/* size of the frame index seek table */
+#define INDEX_SIZE 1000
+
+/* Define if IPV6 support is enabled. */
+#define IPV6 1
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+ */
+#define LT_OBJDIR ".libs/"
+
+/* Define if network support is enabled. */
+/* #define NETWORK 1 */
+
+/* Define to disable 16 bit integer output. */
+/* #undef NO_16BIT */
+
+/* Define to disable 32 bit integer output. */
+/* define NO_32BIT 1 */
+
+/* Define to disable 8 bit integer output. */
+/* #undef NO_8BIT */
+
+/* Define to disable downsampled decoding. */
+/* #undef NO_DOWNSAMPLE */
+
+/* Define to disable error messages in combination with a return value (the
+ return is left intact). */
+/* #undef NO_ERETURN */
+
+/* Define to disable error messages. */
+/* #undef NO_ERROR */
+
+/* Define to disable feeder and buffered readers. */
+/* #undef NO_FEEDER */
+
+/* Define to disable ICY handling. */
+/* #undef NO_ICY */
+
+/* Define to disable ID3v2 parsing. */
+/* #undef NO_ID3V2 */
+
+/* Define to disable layer I. */
+/* #undef NO_LAYER1 */
+
+/* Define to disable layer II. */
+/* #undef NO_LAYER2 */
+
+/* Define to disable layer III. */
+/* #undef NO_LAYER3 */
+
+/* Define to disable ntom resampling. */
+/* #undef NO_NTOM */
+
+/* Define to disable real output. */
+/* define NO_REAL 1 */
+
+/* Define to disable string functions. */
+/* #undef NO_STRING */
+
+/* Define to disable warning messages. */
+/* #undef NO_WARNING */
+
+/* Name of package */
+#define PACKAGE "mpg123"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "mpg123-devel@lists.sourceforge.net"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "mpg123"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "mpg123 1.8rc5"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "mpg123"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "1.8rc5"
+
+/* Define if portaudio v18 API is wanted. */
+/* #undef PORTAUDIO18 */
+
+/* The size of `int32_t', as computed by sizeof. */
+#define SIZEOF_INT32_T 4
+
+/* The size of `long', as computed by sizeof. */
+#define SIZEOF_LONG 4
+
+/* The size of `off_t', as computed by sizeof. */
+#define SIZEOF_OFF_T 4
+
+/* The size of `size_t', as computed by sizeof. */
+#define SIZEOF_SIZE_T 4
+
+/* The size of `ssize_t', as computed by sizeof. */
+#define SIZEOF_SSIZE_T 4
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if modules are enabled */
+#define USE_MODULES 1
+
+/* Version number of package */
+#define VERSION "1.8rc5"
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+/* #undef _FILE_OFFSET_BITS */
+
+/* Define for large files, on AIX-style hosts. */
+/* #undef _LARGE_FILES */
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
+
+/* Define to `short' if <sys/types.h> does not define. */
+/* #undef int16_t */
+
+/* Define to `int' if <sys/types.h> does not define. */
+/* #undef int32_t */
+
+/* Define to `long int' if <sys/types.h> does not define. */
+/* #undef off_t */
+
+/* Define to `unsigned long' if <sys/types.h> does not define. */
+/* #undef size_t */
+
+/* Define to `long' if <sys/types.h> does not define. */
+/* #undef ssize_t */
+
+/* Define to `unsigned short' if <sys/types.h> does not define. */
+/* #undef uint16_t */
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+/* #undef uint32_t */
diff --git a/ports/Sony_PSP/readers.c.patch b/ports/Sony_PSP/readers.c.patch
new file mode 100644
index 0000000..73bbb26
--- /dev/null
+++ b/ports/Sony_PSP/readers.c.patch
@@ -0,0 +1,2 @@
+14a15
+> #include <sys/fd_set.h>
diff --git a/ports/mpg123_.pas b/ports/mpg123_.pas
new file mode 100644
index 0000000..5eea80b
--- /dev/null
+++ b/ports/mpg123_.pas
@@ -0,0 +1,478 @@
+unit mpg123_;
+interface
+
+uses
+ Windows,
+ SysUtils;
+
+ // INITIAL CONVERSION BY ARTHUR 17/02/2008
+ // USE http://www.mpg123.de/api/ FOR DOCUMENTATION SINCE I STRIPED ALL THE COMMENTS FROM THE UNIT
+
+type
+ PDWord = ^DWORD;
+ PPbyte = ^PByte;
+ PPchar = ^PChar;
+ Pdouble = ^double;
+ PPlongint = ^Plongint;
+ off_t = Longint;
+ Poff_t = ^off_t;
+ PPoff_T = ^Poff_t;
+ size_t = Cardinal;
+ Psize_t = ^size_t;
+
+type
+ Pmpg123_handle_struct = ^Tmpg123_handle_struct;
+ Tmpg123_handle_struct = packed record
+ {undefined structure}
+ end;
+
+ Tmpg123_handle = Tmpg123_handle_struct;
+ Pmpg123_handle = ^Tmpg123_handle;
+
+var
+ mpg123_init: function: Longint; cdecl;
+
+ mpg123_exit: procedure; cdecl;
+
+ mpg123_new: function(decoder: PChar; Error: Plongint): Pmpg123_handle; cdecl;
+
+ mpg123_delete: procedure(mh: Pmpg123_handle); cdecl;
+
+type
+ Tmpg123_parms = Longint;
+const
+ MPG123_VERBOSE = 0;
+ MPG123_FLAGS = 1;
+ MPG123_ADD_FLAGS = 2;
+ MPG123_FORCE_RATE = 3;
+ MPG123_DOWN_SAMPLE = 4;
+ MPG123_RVA = 5;
+ MPG123_DOWNSPEED = 6;
+ MPG123_UPSPEED = 7;
+ MPG123_START_FRAME = 8;
+ MPG123_DECODE_FRAMES = 9;
+ MPG123_ICY_INTERVAL = 10;
+ MPG123_OUTSCALE = 11;
+ MPG123_TIMEOUT = 12;
+ MPG123_REMOVE_FLAGS = 13;
+ MPG123_RESYNC_LIMIT = 14;
+
+type
+ Tmpg123_param_flags = Longint;
+const
+ MPG123_FORCE_MONO = $7;
+ MPG123_MONO_LEFT = $1;
+ MPG123_MONO_RIGHT = $2;
+ MPG123_MONO_MIX = $4;
+ MPG123_FORCE_STEREO = $8;
+ MPG123_FORCE_8BIT = $10;
+ MPG123_QUIET = $20;
+ MPG123_GAPLESS = $40;
+ MPG123_NO_RESYNC = $80;
+
+type
+ Tmpg123_param_rva = Longint;
+const
+ MPG123_RVA_OFF = 0;
+ MPG123_RVA_MIX = 1;
+ MPG123_RVA_ALBUM = 2;
+ MPG123_RVA_MAX = MPG123_RVA_ALBUM;
+
+var
+ mpg123_param: function(mh: Pmpg123_handle; _type: Tmpg123_parms; value: Longint; fvalue: double): Longint; cdecl;
+
+ mpg123_getparam: function(mh: Pmpg123_handle; _type: Tmpg123_parms; val: Plongint; fval: Pdouble): Longint; cdecl;
+
+type
+ Tmpg123_errors = Longint;
+const
+ MPG123_DONE = -(12);
+ MPG123_NEW_FORMAT = -(11);
+ MPG123_NEED_MORE = -(10);
+ MPG123_ERR = -(1);
+ MPG123_OK = 0;
+ MPG123_BAD_OUTFORMAT = 1;
+ MPG123_BAD_CHANNEL = 2;
+ MPG123_BAD_RATE = 3;
+ MPG123_ERR_16TO8TABLE = 4;
+ MPG123_BAD_PARAM = 5;
+ MPG123_BAD_BUFFER = 6;
+ MPG123_OUT_OF_MEM = 7;
+ MPG123_NOT_INITIALIZED = 8;
+ MPG123_BAD_DECODER = 9;
+ MPG123_BAD_HANDLE = 10;
+ MPG123_NO_BUFFERS = 11;
+ MPG123_BAD_RVA = 12;
+ MPG123_NO_GAPLESS = 13;
+ MPG123_NO_SPACE = 14;
+ MPG123_BAD_TYPES = 15;
+ MPG123_BAD_BAND = 16;
+ MPG123_ERR_NULL = 17;
+ MPG123_ERR_READER = 18;
+ MPG123_NO_SEEK_FROM_END = 19;
+ MPG123_BAD_WHENCE = 20;
+ MPG123_NO_TIMEOUT = 21;
+ MPG123_BAD_FILE = 22;
+ MPG123_NO_SEEK = 23;
+ MPG123_NO_READER = 24;
+ MPG123_BAD_PARS = 25;
+ MPG123_BAD_INDEX_PAR = 26;
+ MPG123_OUT_OF_SYNC = 27;
+ MPG123_RESYNC_FAIL = 28;
+
+var
+ mpg123_plain_strerror: function(errcode: Longint): PChar; cdecl;
+
+ mpg123_strerror: function(mh: Pmpg123_handle): PChar; cdecl;
+
+ mpg123_errcode: function(mh: Pmpg123_handle): Longint; cdecl;
+
+ mpg123_decoders: function: PPchar; cdecl;
+
+ mpg123_supported_decoders: function: PPchar; cdecl;
+
+ mpg123_decoder: function(mh: Pmpg123_handle; decoder_name: PChar): Longint; cdecl;
+
+type
+ Tmpg123_enc_enum = Longint;
+const
+ MPG123_ENC_16 = $40;
+ MPG123_ENC_SIGNED = $80;
+ MPG123_ENC_8 = $0F;
+ MPG123_ENC_SIGNED_16 = (MPG123_ENC_16 or MPG123_ENC_SIGNED) or $10;
+ MPG123_ENC_UNSIGNED_16 = MPG123_ENC_16 or $20;
+ MPG123_ENC_UNSIGNED_8 = $01;
+ MPG123_ENC_SIGNED_8 = MPG123_ENC_SIGNED or $02;
+ MPG123_ENC_ULAW_8 = $04;
+ MPG123_ENC_ALAW_8 = $08;
+ MPG123_ENC_ANY = ((((MPG123_ENC_SIGNED_16 or MPG123_ENC_UNSIGNED_16) or MPG123_ENC_UNSIGNED_8) or MPG123_ENC_SIGNED_8) or MPG123_ENC_ULAW_8) or MPG123_ENC_ALAW_8;
+
+type
+ Tmpg123_channelcount = Longint;
+const
+ MPG123_MONO = 1;
+ MPG123_STEREO = 2;
+
+var
+ mpg123_rates: procedure(list: PPlongint; number: Psize_t); cdecl;
+
+ mpg123_encodings: procedure(list: PPlongint; number: Psize_t); cdecl;
+
+ mpg123_format_none: function(mh: Pmpg123_handle): Longint; cdecl;
+
+ mpg123_format_all: function(mh: Pmpg123_handle): Longint; cdecl;
+
+ mpg123_format: function(mh: Pmpg123_handle; rate: Longint; channels: Longint; encodings: Longint): Longint; cdecl;
+
+ mpg123_format_support: function(mh: Pmpg123_handle; rate: Longint; encoding: Longint): Longint; cdecl;
+
+ mpg123_getformat: function(mh: Pmpg123_handle; rate: Plongint; channels: Plongint; encoding: Plongint): Longint; cdecl;
+
+ mpg123_open: function(mh: Pmpg123_handle; path: PChar): Longint; cdecl;
+
+ mpg123_open_fd: function(mh: Pmpg123_handle; fd: Longint): Longint; cdecl;
+
+ mpg123_open_feed: function(mh: Pmpg123_handle): Longint; cdecl;
+
+ mpg123_close: function(mh: Pmpg123_handle): Longint; cdecl;
+
+ mpg123_read: function(mh: Pmpg123_handle; outmemory: PByte; outmemsize: size_t; done: Psize_t): Longint; cdecl;
+
+ mpg123_decode: function(mh: Pmpg123_handle; inmemory: PByte; inmemsize: size_t; outmemory: PByte; outmemsize: size_t;
+ done: Psize_t): Longint; cdecl;
+
+ mpg123_decode_frame: function(mh: Pmpg123_handle; num: Poff_t; audio: PPbyte; bytes: Psize_t): Longint; cdecl;
+
+ mpg123_tell: function(mh: Pmpg123_handle): off_t; cdecl;
+
+ mpg123_tellframe: function(mh: Pmpg123_handle): off_t; cdecl;
+
+ mpg123_seek: function(mh: Pmpg123_handle; sampleoff: off_t; whence: Longint): off_t; cdecl;
+
+ mpg123_feedseek: function(mh: Pmpg123_handle; sampleoff: off_t; whence: Longint; input_offset: Poff_t): off_t; cdecl;
+
+ mpg123_seek_frame: function(mh: Pmpg123_handle; frameoff: off_t; whence: Longint): off_t; cdecl;
+
+ mpg123_timeframe: function(mh: Pmpg123_handle; sec: double): off_t; cdecl;
+
+ mpg123_index: function(mh: Pmpg123_handle; offsets: PPoff_t; step: Poff_t; fill: Psize_t): Longint; cdecl;
+
+ mpg123_position: function(mh: Pmpg123_handle; frame_offset: off_t; buffered_bytes: off_t; current_frame: Poff_t; frames_left: Poff_t;
+ current_seconds: Pdouble; seconds_left: Pdouble): Longint; cdecl;
+
+type
+ Tmpg123_channels = Longint;
+const
+ MPG123_LEFT = $1;
+ MPG123_RIGHT = $2;
+
+var
+ mpg123_eq: function(mh: Pmpg123_handle; channel: Tmpg123_channels; band: Longint; val: double): Longint; cdecl;
+
+ mpg123_reset_eq: function(mh: Pmpg123_handle): Longint; cdecl;
+
+ mpg123_volume: function(mh: Pmpg123_handle; vol: double): Longint; cdecl;
+
+ mpg123_volume_change: function(mh: Pmpg123_handle; change: double): Longint; cdecl;
+
+ mpg123_getvolume: function(mh: Pmpg123_handle; base: Pdouble; really: Pdouble; rva_db: Pdouble): Longint; cdecl;
+
+type
+ Tmpg123_vbr = Longint;
+const
+ MPG123_CBR = 0;
+ MPG123_VBR = 1;
+ MPG123_ABR = 2;
+
+type
+ Tmpg123_version = Longint;
+const
+ MPG123_1_0 = 0;
+ MPG123_2_0 = 1;
+ MPG123_2_5 = 2;
+
+type
+ Tmpg123_mode = Longint;
+const
+ MPG123_M_STEREO = 0;
+ MPG123_M_JOINT = 1;
+ MPG123_M_DUAL = 2;
+ MPG123_M_MONO = 3;
+
+type
+ Tmpg123_flags = Longint;
+const
+ MPG123_CRC = $1;
+ MPG123_COPYRIGHT = $2;
+ MPG123_PRIVATE = $4;
+ MPG123_ORIGINAL = $8;
+
+type
+ Pmpg123_frameinfo = ^Tmpg123_frameinfo;
+ Tmpg123_frameinfo = packed record
+ version: Tmpg123_version;
+ layer: Longint;
+ rate: Longint;
+ mode: Tmpg123_mode;
+ mode_ext: Longint;
+ framesize: Longint;
+ Flags: Tmpg123_flags;
+ emphasis: Longint;
+ bitrate: Longint;
+ abr_rate: Longint;
+ vbr: Tmpg123_vbr;
+ end;
+
+var
+ mpg123_info: function(mh: Pmpg123_handle; mi: Pmpg123_frameinfo): Longint; cdecl;
+
+ mpg123_safe_buffer: function: size_t; cdecl;
+
+ mpg123_scan: function(mh: Pmpg123_handle): Longint; cdecl;
+
+ mpg123_length: function(mh: Pmpg123_handle): off_t; cdecl;
+
+ mpg123_tpf: function(mh: Pmpg123_handle): double; cdecl;
+
+ mpg123_clip: function(mh: Pmpg123_handle): Longint; cdecl;
+
+type
+
+ Pmpg123_string = ^Tmpg123_string;
+ Tmpg123_string = packed record
+ p: PChar;
+ Size: size_t;
+ fill: size_t;
+ end;
+
+var
+ mpg123_init_string: procedure(sb: Pmpg123_string); cdecl;
+
+ mpg123_free_string: procedure(sb: Pmpg123_string); cdecl;
+
+ mpg123_resize_string: function(sb: Pmpg123_string; news: size_t): Longint; cdecl;
+
+ mpg123_copy_string: function(from: Pmpg123_string; _to: Pmpg123_string): Longint; cdecl;
+
+ mpg123_add_string: function(sb: Pmpg123_string; stuff: PChar): Longint; cdecl;
+
+ mpg123_set_string: function(sb: Pmpg123_string; stuff: PChar): Longint; cdecl;
+
+type
+
+ Pmpg123_text = ^Tmpg123_text;
+ Tmpg123_text = packed record
+ lang: array[0..2] of Char;
+ id: array[0..3] of Char;
+ description: Tmpg123_string;
+ Text: Tmpg123_string;
+ end;
+
+ PPmpg123_id3v2 = ^Pmpg123_id3v2;
+ Pmpg123_id3v2 = ^Tmpg123_id3v2;
+ Tmpg123_id3v2 = packed record
+ version: Byte;
+ title: Pmpg123_string;
+ artist: Pmpg123_string;
+ album: Pmpg123_string;
+ year: Pmpg123_string;
+ genre: Pmpg123_string;
+ comment: Pmpg123_string;
+ comment_list: Pmpg123_text;
+ comments: size_t;
+ Text: Pmpg123_text;
+ texts: size_t;
+ extra: Pmpg123_text;
+ extras: size_t;
+ end;
+
+ PPmpg123_id3v1 = ^Pmpg123_id3v1;
+ Pmpg123_id3v1 = ^Tmpg123_id3v1;
+ Tmpg123_id3v1 = packed record
+ tag: array[0..2] of Char;
+ title: array[0..29] of Char;
+ artist: array[0..29] of Char;
+ album: array[0..29] of Char;
+ year: array[0..3] of Char;
+ comment: array[0..29] of Char;
+ genre: Byte;
+ end;
+
+const
+ MPG123_ID3 = $3;
+
+ MPG123_NEW_ID3 = $1;
+
+ MPG123_ICY = $C;
+
+ MPG123_NEW_ICY = $4;
+
+var
+ mpg123_meta_check: function(mh: Pmpg123_handle): Longint; cdecl;
+
+ mpg123_id3_: function(mh: Pmpg123_handle; var v1: Pmpg123_id3v1; var v2: Pmpg123_id3v2): Longint; cdecl;
+
+ mpg123_icy_: function(mh: Pmpg123_handle; icy_meta: PPchar): Longint; cdecl;
+
+type
+ Pmpg123_pars_struct = ^Tmpg123_pars_struct;
+ Tmpg123_pars_struct = packed record
+ {undefined structure}
+ end;
+
+ Tmpg123_pars = Tmpg123_pars_struct;
+ Pmpg123_pars = ^Tmpg123_pars;
+
+var
+ mpg123_parnew: function(mp: Pmpg123_pars; decoder: PChar; Error: Plongint): Pmpg123_handle; cdecl;
+
+ mpg123_new_pars: function(Error: Plongint): Pmpg123_pars; cdecl;
+
+ mpg123_delete_pars: procedure(mp: Pmpg123_pars); cdecl;
+
+ mpg123_fmt_none: function(mp: Pmpg123_pars): Longint; cdecl;
+
+ mpg123_fmt_all: function(mp: Pmpg123_pars): Longint; cdecl;
+
+ mpg123_fmt: function(mh: Pmpg123_pars; rate: Longint; channels: Longint; encodings: Longint): Longint; cdecl;
+
+ mpg123_fmt_support: function(mh: Pmpg123_pars; rate: Longint; encoding: Longint): Longint; cdecl;
+
+ mpg123_par: function(mp: Pmpg123_pars; _type: Tmpg123_parms; value: Longint; fvalue: double): Longint; cdecl;
+
+ mpg123_getpar: function(mp: Pmpg123_pars; _type: Tmpg123_parms; val: Plongint; fval: Pdouble): Longint; cdecl;
+
+ mpg123_replace_buffer: function(mh: Pmpg123_handle; data: PByte; Size: size_t): Longint; cdecl;
+
+ mpg123_outblock: function(mh: Pmpg123_handle): size_t; cdecl;
+
+ //mpg123_replace_reader : function(mh:Pmpg123_handle; r_read:function (_para1:longint; _para2:pointer; _para3:size_t):Tssize_t; r_lseek:function (_para1:longint; _para2:off_t; _para3:longint):off_t):longint;
+
+implementation
+
+var
+ hlib: THandle;
+
+procedure Freempg123;
+begin
+ FreeLibrary(hlib);
+end;
+
+procedure Loadmpg123(lib: PChar);
+begin
+ hlib := LoadLibrary(lib);
+ mpg123_init := GetProcAddress(hlib, 'mpg123_init');
+ mpg123_exit := GetProcAddress(hlib, 'mpg123_exit');
+ mpg123_new := GetProcAddress(hlib, 'mpg123_new');
+ mpg123_delete := GetProcAddress(hlib, 'mpg123_delete');
+ mpg123_param := GetProcAddress(hlib, 'mpg123_param');
+ mpg123_getparam := GetProcAddress(hlib, 'mpg123_getparam');
+ mpg123_plain_strerror := GetProcAddress(hlib, 'mpg123_plain_strerror');
+ mpg123_strerror := GetProcAddress(hlib, 'mpg123_strerror');
+ mpg123_errcode := GetProcAddress(hlib, 'mpg123_errcode');
+ mpg123_decoders := GetProcAddress(hlib, 'mpg123_decoders');
+ mpg123_supported_decoders := GetProcAddress(hlib, 'mpg123_supported_decoders');
+ mpg123_decoder := GetProcAddress(hlib, 'mpg123_decoder');
+ mpg123_rates := GetProcAddress(hlib, 'mpg123_rates');
+ mpg123_encodings := GetProcAddress(hlib, 'mpg123_encodings');
+ mpg123_format_none := GetProcAddress(hlib, 'mpg123_format_none');
+ mpg123_format_all := GetProcAddress(hlib, 'mpg123_format_all');
+ mpg123_format := GetProcAddress(hlib, 'mpg123_format');
+ mpg123_format_support := GetProcAddress(hlib, 'mpg123_format_support');
+ mpg123_getformat := GetProcAddress(hlib, 'mpg123_getformat');
+ mpg123_open := GetProcAddress(hlib, 'mpg123_open');
+ mpg123_open_fd := GetProcAddress(hlib, 'mpg123_open_fd');
+ mpg123_open_feed := GetProcAddress(hlib, 'mpg123_open_feed');
+ mpg123_close := GetProcAddress(hlib, 'mpg123_close');
+ mpg123_read := GetProcAddress(hlib, 'mpg123_read');
+ mpg123_decode := GetProcAddress(hlib, 'mpg123_decode');
+ mpg123_decode_frame := GetProcAddress(hlib, 'mpg123_decode_frame');
+ mpg123_tell := GetProcAddress(hlib, 'mpg123_tell');
+ mpg123_tellframe := GetProcAddress(hlib, 'mpg123_tellframe');
+ mpg123_seek := GetProcAddress(hlib, 'mpg123_seek');
+ mpg123_feedseek := GetProcAddress(hlib, 'mpg123_feedseek');
+ mpg123_seek_frame := GetProcAddress(hlib, 'mpg123_seek_frame');
+ mpg123_timeframe := GetProcAddress(hlib, 'mpg123_timeframe');
+ mpg123_index := GetProcAddress(hlib, 'mpg123_index');
+ mpg123_position := GetProcAddress(hlib, 'mpg123_position');
+ mpg123_eq := GetProcAddress(hlib, 'mpg123_eq');
+ mpg123_reset_eq := GetProcAddress(hlib, 'mpg123_reset_eq');
+ mpg123_volume := GetProcAddress(hlib, 'mpg123_volume');
+ mpg123_volume_change := GetProcAddress(hlib, 'mpg123_volume_change');
+ mpg123_getvolume := GetProcAddress(hlib, 'mpg123_getvolume');
+ mpg123_info := GetProcAddress(hlib, 'mpg123_info');
+ mpg123_safe_buffer := GetProcAddress(hlib, 'mpg123_safe_buffer');
+ mpg123_scan := GetProcAddress(hlib, 'mpg123_scan');
+ mpg123_length := GetProcAddress(hlib, 'mpg123_length');
+ mpg123_tpf := GetProcAddress(hlib, 'mpg123_tpf');
+ mpg123_clip := GetProcAddress(hlib, 'mpg123_clip');
+ mpg123_init_string := GetProcAddress(hlib, 'mpg123_init_string');
+ mpg123_free_string := GetProcAddress(hlib, 'mpg123_free_string');
+ mpg123_resize_string := GetProcAddress(hlib, 'mpg123_resize_string');
+ mpg123_copy_string := GetProcAddress(hlib, 'mpg123_copy_string');
+ mpg123_add_string := GetProcAddress(hlib, 'mpg123_add_string');
+ mpg123_set_string := GetProcAddress(hlib, 'mpg123_set_string');
+ mpg123_meta_check := GetProcAddress(hlib, 'mpg123_meta_check');
+ mpg123_id3_ := GetProcAddress(hlib, 'mpg123_id3');
+ mpg123_icy_ := GetProcAddress(hlib, 'mpg123_icy');
+ mpg123_parnew := GetProcAddress(hlib, 'mpg123_parnew');
+ mpg123_new_pars := GetProcAddress(hlib, 'mpg123_new_pars');
+ mpg123_delete_pars := GetProcAddress(hlib, 'mpg123_delete_pars');
+ mpg123_fmt_none := GetProcAddress(hlib, 'mpg123_fmt_none');
+ mpg123_fmt_all := GetProcAddress(hlib, 'mpg123_fmt_all');
+ mpg123_fmt := GetProcAddress(hlib, 'mpg123_fmt');
+ mpg123_fmt_support := GetProcAddress(hlib, 'mpg123_fmt_support');
+ mpg123_par := GetProcAddress(hlib, 'mpg123_par');
+ mpg123_getpar := GetProcAddress(hlib, 'mpg123_getpar');
+ mpg123_replace_buffer := GetProcAddress(hlib, 'mpg123_replace_buffer');
+ mpg123_outblock := GetProcAddress(hlib, 'mpg123_outblock');
+ //mpg123_replace_reader := GetProcAddress(hlib,'mpg123_replace_reader');
+end;
+
+initialization
+ Loadmpg123('libmpg123-0.dll');
+finalization
+ Freempg123;
+
+end.
+
diff --git a/scripts/benchmark-cpu.pl b/scripts/benchmark-cpu.pl
new file mode 100644
index 0000000..93762da
--- /dev/null
+++ b/scripts/benchmark-cpu.pl
@@ -0,0 +1,56 @@
+#!/usr/bin/perl
+#
+# benchmark-cpu.pl: benchmark CPU optimisations of mpg123
+#
+# initially written by Nicholas J Humfrey <njh@aelius.com>, placed in the public domain
+#
+
+use strict;
+#use Time::HiRes qw/time/;
+
+my $MPG123_CMD = shift @ARGV;
+my @TEST_FILES = @ARGV;
+
+die "Please specify full path to mpg123 >= 1.7.0 and a test MP3 file to decode" if (scalar(@ARGV) < 1);
+die "mpg123 command does not exist" unless (-e $MPG123_CMD);
+die "mpg123 command is not executable" unless (-x $MPG123_CMD);
+for(@TEST_FILES)
+{
+ die "test MP3 file does not exist" unless (-e $_);
+}
+
+# Force unbuffed output on STDOUT
+#$|=1; # why?
+
+# Check the CPUs available
+my $cpulist = `$MPG123_CMD --test-cpu`;
+chomp( $cpulist );
+die "Failed to get list of available CPU optimisations" unless ($cpulist =~ s/^Supported decoders: //);
+
+my @cpus = split( / /, $cpulist );
+my @encs = qw(s16 f32);
+
+printf STDERR ("Found %d CPU optimisations to test...\n\n", scalar(@cpus) );
+
+print "#mpg123 benchmark (user CPU time in seconds for decoding)\n";
+print "#decoder";
+for(@encs){ print " t_$_/s"; }
+print "\n";
+
+foreach my $cpu (@cpus)
+{
+ print "$cpu";
+ foreach my $e (@encs)
+ {
+ # using user CPU time
+ my @start_time = times();
+ system($MPG123_CMD, '-q', '--cpu', $cpu, '-e', $e, '-t', @TEST_FILES );
+ my @end_time = times();
+
+ # third entry is child user time
+ printf(" %4.2f", $end_time[2] - $start_time[2]);
+ }
+ print("\n");
+}
+
+
diff --git a/src/Mac.config.h b/src/Mac.config.h
new file mode 100644
index 0000000..a96c956
--- /dev/null
+++ b/src/Mac.config.h
@@ -0,0 +1,372 @@
+/* src/config.h. Generated from config.h.in by configure. */
+/* src/config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define if your architecture wants/needs/can use attribute_align_arg and
+ alignment checks. It's for 32bit x86... */
+#if defined(i386) || defined(__i386) || defined(__i386__)
+#define ABI_ALIGN_FUN 1
+#else
+/* #undef ABI_ALIGN_FUN */
+#endif
+
+/* Define to use proper rounding. */
+/* #undef ACCURATE_ROUNDING */
+
+/* Define if .align takes 3 for alignment of 2^3=8 bytes instead of 8. */
+#define ASMALIGN_EXP 1
+
+/* Define if __attribute__((aligned(16))) shall be used */
+/* #undef CCALIGN */
+
+/* Define if checking of stack alignment is wanted. */
+#define CHECK_ALIGN 1
+
+/* Define if debugging is enabled. */
+/* #undef DEBUG */
+
+/* The default audio output module(s) to use */
+#define DEFAULT_OUTPUT_MODULE "dummy"
+
+/* Define if building with dynamcally linked libmpg123 */
+/* #undef DYNAMIC_BUILD */
+
+/* Define if FIFO support is enabled. */
+#define FIFO 1
+
+/* Define if frame index should be used. */
+#define FRAME_INDEX 1
+
+/* Define if gapless is enabled. */
+#define GAPLESS 1
+
+/* Define to 1 if you have the <Alib.h> header file. */
+/* #undef HAVE_ALIB_H */
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#define HAVE_ARPA_INET_H 1
+
+/* Define to 1 if you have the <asm/audioio.h> header file. */
+/* #undef HAVE_ASM_AUDIOIO_H */
+
+/* Define to 1 if you have the `atoll' function. */
+#define HAVE_ATOLL 1
+
+/* Define to 1 if you have the <audios.h> header file. */
+/* #undef HAVE_AUDIOS_H */
+
+/* Define to 1 if you have the <AudioToolbox/AudioToolbox.h> header file. */
+#define HAVE_AUDIOTOOLBOX_AUDIOTOOLBOX_H 1
+
+/* Define to 1 if you have the <AudioUnit/AudioUnit.h> header file. */
+#define HAVE_AUDIOUNIT_AUDIOUNIT_H 1
+
+/* Define to 1 if you have the <CoreServices/CoreServices.h> header file. */
+#define HAVE_CORESERVICES_CORESERVICES_H 1
+
+/* Define to 1 if you have the <CUlib.h> header file. */
+/* #undef HAVE_CULIB_H */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the `getaddrinfo' function. */
+#define HAVE_GETADDRINFO 1
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define to 1 if you have the `getuid' function. */
+#define HAVE_GETUID 1
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the <langinfo.h> header file. */
+#define HAVE_LANGINFO_H 1
+
+/* Define to 1 if you have the `m' library (-lm). */
+#define HAVE_LIBM 1
+
+/* Define to 1 if you have the `mx' library (-lmx). */
+#define HAVE_LIBMX 1
+
+/* Define to 1 if you have the <limits.h> header file. */
+#define HAVE_LIMITS_H 1
+
+/* Define to 1 if you have the <linux/soundcard.h> header file. */
+/* #undef HAVE_LINUX_SOUNDCARD_H */
+
+/* Define to 1 if you have the <locale.h> header file. */
+#define HAVE_LOCALE_H 1
+
+/* Define if libltdl is available */
+/* #undef HAVE_LTDL */
+
+/* Define to 1 if you have the <machine/soundcard.h> header file. */
+/* #undef HAVE_MACHINE_SOUNDCARD_H */
+
+/* Define to 1 if you have the <memory.h> header file. */
+/* #undef HAVE_MEMORY_H */
+
+/* Define to 1 if you have the `mkfifo' function. */
+#define HAVE_MKFIFO 1
+
+/* Define to 1 if you have a working `mmap' system call. */
+#define HAVE_MMAP 1
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#define HAVE_NETDB_H 1
+
+/* Define to 1 if you have the <netinet/in.h> header file. */
+#define HAVE_NETINET_IN_H 1
+
+/* Define to 1 if you have the <netinet/tcp.h> header file. */
+/* #undef HAVE_NETINET_TCP_H */
+
+/* Define to 1 if you have the `nl_langinfo' function. */
+#define HAVE_NL_LANGINFO 1
+
+/* Define to 1 if you have the <os2me.h> header file. */
+/* #undef HAVE_OS2ME_H */
+
+/* Define to 1 if you have the <os2.h> header file. */
+/* #undef HAVE_OS2_H */
+
+/* Define to 1 if you have the `random' function. */
+#define HAVE_RANDOM 1
+
+/* Define to 1 if you have the <sched.h> header file. */
+#define HAVE_SCHED_H 1
+
+/* Define to 1 if you have the `sched_setscheduler' function. */
+/* #undef HAVE_SCHED_SETSCHEDULER */
+
+/* Define to 1 if you have the `setlocale' function. */
+#define HAVE_SETLOCALE 1
+
+/* Define to 1 if you have the `setpriority' function. */
+#define HAVE_SETPRIORITY 1
+
+/* Define to 1 if you have the `setuid' function. */
+#define HAVE_SETUID 1
+
+/* Define to 1 if you have the <signal.h> header file. */
+#define HAVE_SIGNAL_H 1
+
+/* Define to 1 if you have the <sndio.h> header file. */
+/* #undef HAVE_SNDIO_H */
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#define HAVE_STDINT_H 1
+
+/* Define to 1 if you have the <stdio.h> header file. */
+#define HAVE_STDIO_H 1
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#define HAVE_STDLIB_H 1
+
+/* Define to 1 if you have the `strdup' function. */
+#define HAVE_STRDUP 1
+
+/* Define to 1 if you have the `strerror' function. */
+#define HAVE_STRERROR 1
+
+/* Define to 1 if you have the <strings.h> header file. */
+/* #undef HAVE_STRINGS_H */
+
+/* Define to 1 if you have the <string.h> header file. */
+#define HAVE_STRING_H 1
+
+/* Define to 1 if you have the <sun/audioio.h> header file. */
+/* #undef HAVE_SUN_AUDIOIO_H */
+
+/* Define to 1 if you have the <sys/audioio.h> header file. */
+/* #undef HAVE_SYS_AUDIOIO_H */
+
+/* Define to 1 if you have the <sys/audio.h> header file. */
+/* #undef HAVE_SYS_AUDIO_H */
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#define HAVE_SYS_IOCTL_H 1
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#define HAVE_SYS_PARAM_H 1
+
+/* Define to 1 if you have the <sys/resource.h> header file. */
+#define HAVE_SYS_RESOURCE_H 1
+
+/* Define to 1 if you have the <sys/signal.h> header file. */
+#define HAVE_SYS_SIGNAL_H 1
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#define HAVE_SYS_SOCKET_H 1
+
+/* Define to 1 if you have the <sys/soundcard.h> header file. */
+/* #undef HAVE_SYS_SOUNDCARD_H */
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+/* #undef HAVE_SYS_STAT_H */
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#define HAVE_SYS_TIME_H 1
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#define HAVE_SYS_TYPES_H 1
+
+/* Define to 1 if you have the <sys/wait.h> header file. */
+#define HAVE_SYS_WAIT_H 1
+
+/* Define this if you have the POSIX termios library */
+#define HAVE_TERMIOS 1
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#define HAVE_UNISTD_H 1
+
+/* Define to 1 if you have the <windows.h> header file. */
+/* #undef HAVE_WINDOWS_H */
+
+/* Define to indicate that float storage follows IEEE754. */
+#define IEEE_FLOAT 1
+
+/* size of the frame index seek table */
+#define INDEX_SIZE 1000
+
+/* Define if IPV6 support is enabled. */
+#define IPV6 1
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+ */
+#define LT_OBJDIR ".libs/"
+
+/* Define if network support is enabled. */
+#define NETWORK 1
+
+/* Define to disable 16 bit integer output. */
+/* #undef NO_16BIT */
+
+/* Define to disable 32 bit integer output. */
+/* #undef NO_32BIT */
+
+/* Define to disable 8 bit integer output. */
+/* #undef NO_8BIT */
+
+/* Define to disable downsampled decoding. */
+/* #undef NO_DOWNSAMPLE */
+
+/* Define to disable error messages in combination with a return value (the
+ return is left intact). */
+/* #undef NO_ERETURN */
+
+/* Define to disable error messages. */
+/* #undef NO_ERROR */
+
+/* Define to disable feeder and buffered readers. */
+/* #undef NO_FEEDER */
+
+/* Define to disable ICY handling. */
+/* #undef NO_ICY */
+
+/* Define to disable ID3v2 parsing. */
+/* #undef NO_ID3V2 */
+
+/* Define to disable layer I. */
+/* #undef NO_LAYER1 */
+
+/* Define to disable layer II. */
+/* #undef NO_LAYER2 */
+
+/* Define to disable layer III. */
+/* #undef NO_LAYER3 */
+
+/* Define to disable ntom resampling. */
+/* #undef NO_NTOM */
+
+/* Define to disable real output. */
+/* #undef NO_REAL */
+
+/* Define to disable string functions. */
+/* #undef NO_STRING */
+
+/* Define to disable warning messages. */
+/* #undef NO_WARNING */
+
+/* Name of package */
+#define PACKAGE "mpg123"
+
+/* Define to the address where bug reports for this package should be sent. */
+#define PACKAGE_BUGREPORT "mpg123-devel@lists.sourceforge.net"
+
+/* Define to the full name of this package. */
+#define PACKAGE_NAME "mpg123"
+
+/* Define to the full name and version of this package. */
+#define PACKAGE_STRING "mpg123 1.8.1"
+
+/* Define to the one symbol short name of this package. */
+#define PACKAGE_TARNAME "mpg123"
+
+/* Define to the version of this package. */
+#define PACKAGE_VERSION "1.8.1"
+
+/* Define if portaudio v18 API is wanted. */
+/* #undef PORTAUDIO18 */
+
+/* The size of `int32_t', as computed by sizeof. */
+#define SIZEOF_INT32_T 4
+
+/* The size of `long', as computed by sizeof. */
+#define SIZEOF_LONG 4
+
+/* The size of `off_t', as computed by sizeof. */
+#define SIZEOF_OFF_T 8
+
+/* The size of `size_t', as computed by sizeof. */
+#define SIZEOF_SIZE_T 4
+
+/* The size of `ssize_t', as computed by sizeof. */
+#define SIZEOF_SSIZE_T 4
+
+/* Define to 1 if you have the ANSI C header files. */
+#define STDC_HEADERS 1
+
+/* Define if modules are enabled */
+/* #undef USE_MODULES */
+
+/* Version number of package */
+#define VERSION "1.8.1"
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+/* #undef _FILE_OFFSET_BITS */
+
+/* Define for large files, on AIX-style hosts. */
+/* #undef _LARGE_FILES */
+
+/* Define to empty if `const' does not conform to ANSI C. */
+/* #undef const */
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+/* #undef inline */
+#endif
+
+/* Define to `short' if <sys/types.h> does not define. */
+/* #undef int16_t */
+
+/* Define to `int' if <sys/types.h> does not define. */
+/* #undef int32_t */
+
+/* Define to `long int' if <sys/types.h> does not define. */
+/* #undef off_t */
+
+/* Define to `unsigned long' if <sys/types.h> does not define. */
+/* #undef size_t */
+
+/* Define to `long' if <sys/types.h> does not define. */
+/* #undef ssize_t */
+
+/* Define to `unsigned short' if <sys/types.h> does not define. */
+/* #undef uint16_t */
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+/* #undef uint32_t */
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..3c725ec
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,145 @@
+## Makefile.am: produce Makefile.in from this
+
+## copyright by the mpg123 project - free software under the terms of the LGPL 2.1
+## see COPYING and AUTHORS files in distribution or http://mpg123.org
+## initially written by Nicholas J. Humfrey
+
+AM_CPPFLAGS = -DPKGLIBDIR="\"$(pkglibdir)\""
+mpg123_LDADD = $(LIBLTDL) libmpg123/libmpg123.la @MODULE_OBJ@ @OUTPUT_OBJ@ @OUTPUT_LIBS@
+mpg123_LDFLAGS = @LT_LDFLAGS@ @OUTPUT_LDFLAGS@
+# Just mpg123_INCLUDES has no effect on build! Trying that before reverting to AM_CPPFLAGS.
+INCLUDES = $(LTDLINCL) -I$(top_builddir)/src/libmpg123 -I$(top_srcdir)/src/libmpg123
+# libltdl is not mentioned here... it's not that trivial
+mpg123_DEPENDENCIES = @OUTPUT_OBJ@ @MODULE_OBJ@ libmpg123/libmpg123.la
+
+SUBDIRS = output libmpg123
+EXTRA_DIST = legacy_module.c module.c sfifo.c sfifo.h
+
+
+CLEANFILES = *.a
+
+bin_PROGRAMS = mpg123
+
+EXTRA_PROGRAMS = tests/seek_accuracy
+
+mpg123_SOURCES = \
+ audio.c \
+ audio.h \
+ buffer.c \
+ buffer.h \
+ common.c \
+ common.h \
+ libmpg123/compat.c \
+ libmpg123/compat.h \
+ control_generic.c \
+ equalizer.c \
+ getlopt.c \
+ getlopt.h \
+ httpget.c \
+ httpget.h \
+ resolver.c \
+ resolver.h \
+ genre.h \
+ genre.c \
+ module.h \
+ mpg123.c \
+ mpg123app.h \
+ metaprint.c \
+ metaprint.h \
+ local.h \
+ local.c \
+ playlist.c \
+ playlist.h \
+ term.c \
+ term.h \
+ wav.c \
+ wavhead.h \
+ xfermem.c \
+ xfermem.h
+
+# That is not nice... but it is how I manage to get the dependency on output/alsa.o without error about .deps/output/alsa.Tpo .
+# Did I mention that recursive make sucks?
+# `%'-style pattern rules are a GNU make extension
+#find output/ -name '*.c' | perl -ne 'chomp; $mod=$_; $mod=~s/\.c$/.\$(OBJEXT)/;
+#print "$mod: $_ audio.h module.h\n";
+#print "\tcd output && \$(MAKE)\n\n";'
+
+output/coreaudio.$(OBJEXT): output/coreaudio.c audio.h module.h
+ cd output && $(MAKE)
+
+output/win32.$(OBJEXT): output/win32.c audio.h module.h
+ cd output && $(MAKE)
+
+output/alsa05.$(OBJEXT): output/alsa05.c audio.h module.h
+ cd output && $(MAKE)
+
+output/sdl.$(OBJEXT): output/sdl.c audio.h module.h
+ cd output && $(MAKE)
+
+output/dummy.$(OBJEXT): output/dummy.c audio.h module.h
+ cd output && $(MAKE)
+
+output/alib.$(OBJEXT): output/alib.c audio.h module.h
+ cd output && $(MAKE)
+
+output/libao.$(OBJEXT): output/libao.c audio.h module.h
+ cd output && $(MAKE)
+
+output/sun.$(OBJEXT): output/sun.c audio.h module.h
+ cd output && $(MAKE)
+
+output/aix.$(OBJEXT): output/aix.c audio.h module.h
+ cd output && $(MAKE)
+
+output/oss.$(OBJEXT): output/oss.c audio.h module.h
+ cd output && $(MAKE)
+
+output/mint.$(OBJEXT): output/mint.c audio.h module.h
+ cd output && $(MAKE)
+
+output/pulse.$(OBJEXT): output/pulse.c audio.h module.h
+ cd output && $(MAKE)
+
+output/jack.$(OBJEXT): output/jack.c audio.h module.h
+ cd output && $(MAKE)
+
+output/os2.$(OBJEXT): output/os2.c audio.h module.h
+ cd output && $(MAKE)
+
+output/nas.$(OBJEXT): output/nas.c audio.h module.h
+ cd output && $(MAKE)
+
+output/sgi.$(OBJEXT): output/sgi.c audio.h module.h
+ cd output && $(MAKE)
+
+output/portaudio.$(OBJEXT): output/portaudio.c audio.h module.h
+ cd output && $(MAKE)
+
+output/arts.$(OBJEXT): output/arts.c audio.h module.h
+ cd output && $(MAKE)
+
+output/esd.$(OBJEXT): output/esd.c audio.h module.h
+ cd output && $(MAKE)
+
+output/alsa.$(OBJEXT): output/alsa.c audio.h module.h
+ cd output && $(MAKE)
+
+output/hp.$(OBJEXT): output/hp.c audio.h module.h
+ cd output && $(MAKE)
+
+output/sndio.$(OBJEXT): output/sndio.c audio.h module.h
+ cd output && $(MAKE)
+
+
+# Would have to mention _all_ source files... Dammit, that's what the libmpg123/Makefile.am does!
+# But again, the a make $something here needs that stupid rule... WHY???
+libmpg123/libmpg123.la: config.h libmpg123/mpg123.h
+ cd libmpg123 && $(MAKE)
+
+tests_seek_accuracy_SOURCES = \
+tests/seek_accuracy.c \
+libmpg123/compat.h \
+libmpg123/compat.c
+
+tests_seek_accuracy_DEPENDENCIES = libmpg123/libmpg123.la
+tests_seek_accuracy_LDADD = libmpg123/libmpg123.la
diff --git a/src/Makefile.in b/src/Makefile.in
new file mode 100644
index 0000000..58e4bdd
--- /dev/null
+++ b/src/Makefile.in
@@ -0,0 +1,874 @@
+# Makefile.in generated by automake 1.10.2 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+bin_PROGRAMS = mpg123$(EXEEXT)
+EXTRA_PROGRAMS = tests/seek_accuracy$(EXEEXT)
+subdir = src
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+ $(srcdir)/config.h.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+am__installdirs = "$(DESTDIR)$(bindir)"
+binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+PROGRAMS = $(bin_PROGRAMS)
+am_mpg123_OBJECTS = audio.$(OBJEXT) buffer.$(OBJEXT) common.$(OBJEXT) \
+ compat.$(OBJEXT) control_generic.$(OBJEXT) equalizer.$(OBJEXT) \
+ getlopt.$(OBJEXT) httpget.$(OBJEXT) resolver.$(OBJEXT) \
+ genre.$(OBJEXT) mpg123.$(OBJEXT) metaprint.$(OBJEXT) \
+ local.$(OBJEXT) playlist.$(OBJEXT) term.$(OBJEXT) \
+ wav.$(OBJEXT) xfermem.$(OBJEXT)
+mpg123_OBJECTS = $(am_mpg123_OBJECTS)
+mpg123_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(mpg123_LDFLAGS) \
+ $(LDFLAGS) -o $@
+am_tests_seek_accuracy_OBJECTS = seek_accuracy.$(OBJEXT) \
+ compat.$(OBJEXT)
+tests_seek_accuracy_OBJECTS = $(am_tests_seek_accuracy_OBJECTS)
+am__dirstamp = $(am__leading_dot)dirstamp
+DEFAULT_INCLUDES = -I.@am__isrc@
+depcomp = $(SHELL) $(top_srcdir)/build/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(mpg123_SOURCES) $(tests_seek_accuracy_SOURCES)
+DIST_SOURCES = $(mpg123_SOURCES) $(tests_seek_accuracy_SOURCES)
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AIX_CFLAGS = @AIX_CFLAGS@
+AIX_LDFLAGS = @AIX_LDFLAGS@
+AIX_LIBS = @AIX_LIBS@
+ALIB_CFLAGS = @ALIB_CFLAGS@
+ALIB_LDFLAGS = @ALIB_LDFLAGS@
+ALIB_LIBS = @ALIB_LIBS@
+ALSA_CFLAGS = @ALSA_CFLAGS@
+ALSA_LDFLAGS = @ALSA_LDFLAGS@
+ALSA_LIBS = @ALSA_LIBS@
+AMTAR = @AMTAR@
+AR = @AR@
+ARTS_CFLAGS = @ARTS_CFLAGS@
+ARTS_LDFLAGS = @ARTS_LDFLAGS@
+ARTS_LIBS = @ARTS_LIBS@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
+CCASFLAGS = @CCASFLAGS@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+COREAUDIO_CFLAGS = @COREAUDIO_CFLAGS@
+COREAUDIO_LDFLAGS = @COREAUDIO_LDFLAGS@
+COREAUDIO_LIBS = @COREAUDIO_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DECODER_LOBJ = @DECODER_LOBJ@
+DECODER_OBJ = @DECODER_OBJ@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMMY_CFLAGS = @DUMMY_CFLAGS@
+DUMMY_LDFLAGS = @DUMMY_LDFLAGS@
+DUMMY_LIBS = @DUMMY_LIBS@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_LDFLAGS = @ESD_LDFLAGS@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GREP = @GREP@
+HP_CFLAGS = @HP_CFLAGS@
+HP_LDFLAGS = @HP_LDFLAGS@
+HP_LIBS = @HP_LIBS@
+INCLUDE_STDIO_H = @INCLUDE_STDIO_H@
+INCLUDE_STDLIB_H = @INCLUDE_STDLIB_H@
+INCLUDE_SYS_TYPE_H = @INCLUDE_SYS_TYPE_H@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+JACK_CFLAGS = @JACK_CFLAGS@
+JACK_LDFLAGS = @JACK_LDFLAGS@
+JACK_LIBS = @JACK_LIBS@
+LARGEFILE_BITS = @LARGEFILE_BITS@
+LARGEFILE_SUFFIX = @LARGEFILE_SUFFIX@
+LARGEFILE_SWITCH = @LARGEFILE_SWITCH@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBMPG123_VERSION = @LIBMPG123_VERSION@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_LDFLAGS = @LT_LDFLAGS@
+MAKEINFO = @MAKEINFO@
+MINT_CFLAGS = @MINT_CFLAGS@
+MINT_LDFLAGS = @MINT_LDFLAGS@
+MINT_LIBS = @MINT_LIBS@
+MKDIR_P = @MKDIR_P@
+MODULE_OBJ = @MODULE_OBJ@
+NAS_CFLAGS = @NAS_CFLAGS@
+NAS_LDFLAGS = @NAS_LDFLAGS@
+NAS_LIBS = @NAS_LIBS@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OS2_CFLAGS = @OS2_CFLAGS@
+OS2_LDFLAGS = @OS2_LDFLAGS@
+OS2_LIBS = @OS2_LIBS@
+OSS_CFLAGS = @OSS_CFLAGS@
+OSS_LDFLAGS = @OSS_LDFLAGS@
+OSS_LIBS = @OSS_LIBS@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+OUTPUT_CFLAGS = @OUTPUT_CFLAGS@
+OUTPUT_LDFLAGS = @OUTPUT_LDFLAGS@
+OUTPUT_LIBS = @OUTPUT_LIBS@
+OUTPUT_MOD = @OUTPUT_MOD@
+OUTPUT_OBJ = @OUTPUT_OBJ@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@
+PORTAUDIO_LDFLAGS = @PORTAUDIO_LDFLAGS@
+PORTAUDIO_LIBS = @PORTAUDIO_LIBS@
+PULSE_CFLAGS = @PULSE_CFLAGS@
+PULSE_LDFLAGS = @PULSE_LDFLAGS@
+PULSE_LIBS = @PULSE_LIBS@
+RANLIB = @RANLIB@
+SDL_CFLAGS = @SDL_CFLAGS@
+SDL_LDFLAGS = @SDL_LDFLAGS@
+SDL_LIBS = @SDL_LIBS@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SGI_CFLAGS = @SGI_CFLAGS@
+SGI_LDFLAGS = @SGI_LDFLAGS@
+SGI_LIBS = @SGI_LIBS@
+SHELL = @SHELL@
+SNDIO_CFLAGS = @SNDIO_CFLAGS@
+SNDIO_LDFLAGS = @SNDIO_LDFLAGS@
+SNDIO_LIBS = @SNDIO_LIBS@
+STRIP = @STRIP@
+SUN_CFLAGS = @SUN_CFLAGS@
+SUN_LDFLAGS = @SUN_LDFLAGS@
+SUN_LIBS = @SUN_LIBS@
+VERSION = @VERSION@
+WIN32_CFLAGS = @WIN32_CFLAGS@
+WIN32_LDFLAGS = @WIN32_LDFLAGS@
+WIN32_LIBS = @WIN32_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+AM_CPPFLAGS = -DPKGLIBDIR="\"$(pkglibdir)\""
+mpg123_LDADD = $(LIBLTDL) libmpg123/libmpg123.la @MODULE_OBJ@ @OUTPUT_OBJ@ @OUTPUT_LIBS@
+mpg123_LDFLAGS = @LT_LDFLAGS@ @OUTPUT_LDFLAGS@
+# Just mpg123_INCLUDES has no effect on build! Trying that before reverting to AM_CPPFLAGS.
+INCLUDES = $(LTDLINCL) -I$(top_builddir)/src/libmpg123 -I$(top_srcdir)/src/libmpg123
+# libltdl is not mentioned here... it's not that trivial
+mpg123_DEPENDENCIES = @OUTPUT_OBJ@ @MODULE_OBJ@ libmpg123/libmpg123.la
+SUBDIRS = output libmpg123
+EXTRA_DIST = legacy_module.c module.c sfifo.c sfifo.h
+CLEANFILES = *.a
+mpg123_SOURCES = \
+ audio.c \
+ audio.h \
+ buffer.c \
+ buffer.h \
+ common.c \
+ common.h \
+ libmpg123/compat.c \
+ libmpg123/compat.h \
+ control_generic.c \
+ equalizer.c \
+ getlopt.c \
+ getlopt.h \
+ httpget.c \
+ httpget.h \
+ resolver.c \
+ resolver.h \
+ genre.h \
+ genre.c \
+ module.h \
+ mpg123.c \
+ mpg123app.h \
+ metaprint.c \
+ metaprint.h \
+ local.h \
+ local.c \
+ playlist.c \
+ playlist.h \
+ term.c \
+ term.h \
+ wav.c \
+ wavhead.h \
+ xfermem.c \
+ xfermem.h
+
+tests_seek_accuracy_SOURCES = \
+tests/seek_accuracy.c \
+libmpg123/compat.h \
+libmpg123/compat.c
+
+tests_seek_accuracy_DEPENDENCIES = libmpg123/libmpg123.la
+tests_seek_accuracy_LDADD = libmpg123/libmpg123.la
+all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+config.h: stamp-h1
+ @if test ! -f $@; then \
+ rm -f stamp-h1; \
+ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
+ else :; fi
+
+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
+ @rm -f stamp-h1
+ cd $(top_builddir) && $(SHELL) ./config.status src/config.h
+$(srcdir)/config.h.in: $(am__configure_deps)
+ cd $(top_srcdir) && $(AUTOHEADER)
+ rm -f stamp-h1
+ touch $@
+
+distclean-hdr:
+ -rm -f config.h stamp-h1
+install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ if test -f $$p \
+ || test -f $$p1 \
+ ; then \
+ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
+ $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
+ else :; fi; \
+ done
+
+uninstall-binPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
+ rm -f "$(DESTDIR)$(bindir)/$$f"; \
+ done
+
+clean-binPROGRAMS:
+ @list='$(bin_PROGRAMS)'; for p in $$list; do \
+ f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
+ echo " rm -f $$p $$f"; \
+ rm -f $$p $$f ; \
+ done
+mpg123$(EXEEXT): $(mpg123_OBJECTS) $(mpg123_DEPENDENCIES)
+ @rm -f mpg123$(EXEEXT)
+ $(mpg123_LINK) $(mpg123_OBJECTS) $(mpg123_LDADD) $(LIBS)
+tests/$(am__dirstamp):
+ @$(MKDIR_P) tests
+ @: > tests/$(am__dirstamp)
+tests/seek_accuracy$(EXEEXT): $(tests_seek_accuracy_OBJECTS) $(tests_seek_accuracy_DEPENDENCIES) tests/$(am__dirstamp)
+ @rm -f tests/seek_accuracy$(EXEEXT)
+ $(LINK) $(tests_seek_accuracy_OBJECTS) $(tests_seek_accuracy_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audio.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buffer.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compat.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/control_generic.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/equalizer.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/genre.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getlopt.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/httpget.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/local.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/metaprint.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mpg123.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/playlist.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resolver.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/seek_accuracy.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/term.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wav.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xfermem.Po@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+compat.o: libmpg123/compat.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT compat.o -MD -MP -MF $(DEPDIR)/compat.Tpo -c -o compat.o `test -f 'libmpg123/compat.c' || echo '$(srcdir)/'`libmpg123/compat.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/compat.Tpo $(DEPDIR)/compat.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libmpg123/compat.c' object='compat.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o compat.o `test -f 'libmpg123/compat.c' || echo '$(srcdir)/'`libmpg123/compat.c
+
+compat.obj: libmpg123/compat.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT compat.obj -MD -MP -MF $(DEPDIR)/compat.Tpo -c -o compat.obj `if test -f 'libmpg123/compat.c'; then $(CYGPATH_W) 'libmpg123/compat.c'; else $(CYGPATH_W) '$(srcdir)/libmpg123/compat.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/compat.Tpo $(DEPDIR)/compat.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libmpg123/compat.c' object='compat.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o compat.obj `if test -f 'libmpg123/compat.c'; then $(CYGPATH_W) 'libmpg123/compat.c'; else $(CYGPATH_W) '$(srcdir)/libmpg123/compat.c'; fi`
+
+seek_accuracy.o: tests/seek_accuracy.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT seek_accuracy.o -MD -MP -MF $(DEPDIR)/seek_accuracy.Tpo -c -o seek_accuracy.o `test -f 'tests/seek_accuracy.c' || echo '$(srcdir)/'`tests/seek_accuracy.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/seek_accuracy.Tpo $(DEPDIR)/seek_accuracy.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tests/seek_accuracy.c' object='seek_accuracy.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o seek_accuracy.o `test -f 'tests/seek_accuracy.c' || echo '$(srcdir)/'`tests/seek_accuracy.c
+
+seek_accuracy.obj: tests/seek_accuracy.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT seek_accuracy.obj -MD -MP -MF $(DEPDIR)/seek_accuracy.Tpo -c -o seek_accuracy.obj `if test -f 'tests/seek_accuracy.c'; then $(CYGPATH_W) 'tests/seek_accuracy.c'; else $(CYGPATH_W) '$(srcdir)/tests/seek_accuracy.c'; fi`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/seek_accuracy.Tpo $(DEPDIR)/seek_accuracy.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='tests/seek_accuracy.c' object='seek_accuracy.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o seek_accuracy.obj `if test -f 'tests/seek_accuracy.c'; then $(CYGPATH_W) 'tests/seek_accuracy.c'; else $(CYGPATH_W) '$(srcdir)/tests/seek_accuracy.c'; fi`
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+ -rm -rf tests/.libs tests/_libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+ list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ distdir=`$(am__cd) $(distdir) && pwd`; \
+ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
+ (cd $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$top_distdir" \
+ distdir="$$distdir/$$subdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(PROGRAMS) config.h
+installdirs: installdirs-recursive
+installdirs-am:
+ for dir in "$(DESTDIR)$(bindir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -rm -f tests/$(am__dirstamp)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-hdr distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-exec-am: install-binPROGRAMS
+
+install-html: install-html-recursive
+
+install-info: install-info-recursive
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-ps: install-ps-recursive
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-binPROGRAMS
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
+ install-strip
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-binPROGRAMS \
+ clean-generic clean-libtool ctags ctags-recursive distclean \
+ distclean-compile distclean-generic distclean-hdr \
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-binPROGRAMS \
+ install-data install-data-am install-dvi install-dvi-am \
+ install-exec install-exec-am install-html install-html-am \
+ install-info install-info-am install-man install-pdf \
+ install-pdf-am install-ps install-ps-am install-strip \
+ installcheck installcheck-am installdirs installdirs-am \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
+ uninstall-binPROGRAMS
+
+
+# That is not nice... but it is how I manage to get the dependency on output/alsa.o without error about .deps/output/alsa.Tpo .
+# Did I mention that recursive make sucks?
+# `%'-style pattern rules are a GNU make extension
+#find output/ -name '*.c' | perl -ne 'chomp; $mod=$_; $mod=~s/\.c$/.\$(OBJEXT)/;
+#print "$mod: $_ audio.h module.h\n";
+#print "\tcd output && \$(MAKE)\n\n";'
+
+output/coreaudio.$(OBJEXT): output/coreaudio.c audio.h module.h
+ cd output && $(MAKE)
+
+output/win32.$(OBJEXT): output/win32.c audio.h module.h
+ cd output && $(MAKE)
+
+output/alsa05.$(OBJEXT): output/alsa05.c audio.h module.h
+ cd output && $(MAKE)
+
+output/sdl.$(OBJEXT): output/sdl.c audio.h module.h
+ cd output && $(MAKE)
+
+output/dummy.$(OBJEXT): output/dummy.c audio.h module.h
+ cd output && $(MAKE)
+
+output/alib.$(OBJEXT): output/alib.c audio.h module.h
+ cd output && $(MAKE)
+
+output/libao.$(OBJEXT): output/libao.c audio.h module.h
+ cd output && $(MAKE)
+
+output/sun.$(OBJEXT): output/sun.c audio.h module.h
+ cd output && $(MAKE)
+
+output/aix.$(OBJEXT): output/aix.c audio.h module.h
+ cd output && $(MAKE)
+
+output/oss.$(OBJEXT): output/oss.c audio.h module.h
+ cd output && $(MAKE)
+
+output/mint.$(OBJEXT): output/mint.c audio.h module.h
+ cd output && $(MAKE)
+
+output/pulse.$(OBJEXT): output/pulse.c audio.h module.h
+ cd output && $(MAKE)
+
+output/jack.$(OBJEXT): output/jack.c audio.h module.h
+ cd output && $(MAKE)
+
+output/os2.$(OBJEXT): output/os2.c audio.h module.h
+ cd output && $(MAKE)
+
+output/nas.$(OBJEXT): output/nas.c audio.h module.h
+ cd output && $(MAKE)
+
+output/sgi.$(OBJEXT): output/sgi.c audio.h module.h
+ cd output && $(MAKE)
+
+output/portaudio.$(OBJEXT): output/portaudio.c audio.h module.h
+ cd output && $(MAKE)
+
+output/arts.$(OBJEXT): output/arts.c audio.h module.h
+ cd output && $(MAKE)
+
+output/esd.$(OBJEXT): output/esd.c audio.h module.h
+ cd output && $(MAKE)
+
+output/alsa.$(OBJEXT): output/alsa.c audio.h module.h
+ cd output && $(MAKE)
+
+output/hp.$(OBJEXT): output/hp.c audio.h module.h
+ cd output && $(MAKE)
+
+output/sndio.$(OBJEXT): output/sndio.c audio.h module.h
+ cd output && $(MAKE)
+
+# Would have to mention _all_ source files... Dammit, that's what the libmpg123/Makefile.am does!
+# But again, the a make $something here needs that stupid rule... WHY???
+libmpg123/libmpg123.la: config.h libmpg123/mpg123.h
+ cd libmpg123 && $(MAKE)
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/audio.c b/src/audio.c
new file mode 100644
index 0000000..569c464
--- /dev/null
+++ b/src/audio.c
@@ -0,0 +1,681 @@
+/*
+ audio: audio output interface
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#include <errno.h>
+#include "mpg123app.h"
+#include "common.h"
+#include "buffer.h"
+
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+
+#include "debug.h"
+
+static int file_write(struct audio_output_struct* ao, unsigned char *bytes, int count)
+{
+ return (int)write(ao->fn, bytes, count);
+}
+static int wave_write(struct audio_output_struct* ao, unsigned char *bytes, int count)
+{
+ return wav_write(bytes, count);
+}
+static int builtin_get_formats(struct audio_output_struct *ao)
+{
+ if(param.outmode == DECODE_CDR)
+ {
+ if(ao->rate == 44100 && ao->channels == 2)
+ return MPG123_ENC_SIGNED_16;
+ else
+ return 0;
+ }
+ else if(param.outmode == DECODE_AU) return MPG123_ENC_SIGNED_16|MPG123_ENC_UNSIGNED_8|MPG123_ENC_ULAW_8;
+ else if(param.outmode == DECODE_WAV) return MPG123_ENC_SIGNED_16|MPG123_ENC_UNSIGNED_8|MPG123_ENC_FLOAT_32|MPG123_ENC_SIGNED_32;
+ else return MPG123_ENC_ANY;
+}
+static int builtin_close(struct audio_output_struct *ao)
+{
+ switch(param.outmode)
+ {
+ case DECODE_WAV:
+ wav_close();
+ break;
+ case DECODE_AU:
+ au_close();
+ break;
+ case DECODE_CDR:
+ cdr_close();
+ break;
+ }
+ return 0;
+}
+static int builtin_nothingint(struct audio_output_struct *ao){ return 0; }
+static void builtin_nothing(struct audio_output_struct *ao){}
+
+audio_output_t* open_fake_module(void)
+{
+ audio_output_t *ao = NULL;
+ ao = alloc_audio_output();
+ if(ao == NULL)
+ {
+ error("Cannot allocate memory for audio output data.");
+ return NULL;
+ }
+ ao->module = NULL;
+ ao->open = builtin_nothingint;
+ ao->flush = builtin_nothing;
+ ao->get_formats = builtin_get_formats;
+ ao->write = wave_write;
+ ao->close = builtin_close;
+ ao->device = param.filename;
+ ao->is_open = FALSE;
+ switch(param.outmode)
+ {
+ case DECODE_FILE:
+ ao->fn = OutputDescriptor;
+ ao->write = file_write;
+ break;
+ case DECODE_WAV:
+ ao->open = wav_open;
+ break;
+ case DECODE_CDR:
+ ao->open = cdr_open;
+ break;
+ case DECODE_AU:
+ ao->open = au_open;
+ break;
+ case DECODE_TEST:
+ break;
+ }
+
+ return ao;
+}
+
+/* Open an audio output module, trying modules in list (comma-separated). */
+audio_output_t* open_output_module( const char* names )
+{
+ mpg123_module_t *module = NULL;
+ audio_output_t *ao = NULL;
+ int result = 0;
+ char *curname, *modnames;
+
+ if(param.usebuffer || names==NULL) return NULL;
+
+ /* Use internal code. */
+ if(param.outmode != DECODE_AUDIO) return open_fake_module();
+
+ modnames = strdup(names);
+ if(modnames == NULL)
+ {
+ error("Error allocating memory for module names.");
+ return NULL;
+ }
+ /* Now loop over the list of possible modules to find one that works. */
+ curname = strtok(modnames, ",");
+ while(curname != NULL)
+ {
+ char* name = curname;
+ curname = strtok(NULL, ",");
+ if(param.verbose > 1) fprintf(stderr, "Trying output module %s.\n", name);
+ /* Open the module, initial check for availability+libraries. */
+ module = open_module( "output", name );
+ if(module == NULL) continue;
+ /* Check if module supports output */
+ if(module->init_output == NULL)
+ {
+ error1("Module '%s' does not support audio output.", name);
+ close_module(module);
+ continue; /* Try next one. */
+ }
+ /* Allocation+initialization of memory for audio output type. */
+ ao = alloc_audio_output();
+ if(ao==NULL)
+ {
+ error("Failed to allocate audio output structure.");
+ close_module(module);
+ break; /* This is fatal. */
+ }
+
+ /* Call the init function */
+ ao->device = param.output_device;
+ ao->flags = param.output_flags;
+ /* Should I do funny stuff with stderr file descriptor instead? */
+ if(curname == NULL)
+ {
+ if(param.verbose > 1)
+ fprintf(stderr, "Note: %s is the last output option... showing you any error messages now.\n", name);
+ }
+ else ao->auxflags |= MPG123_OUT_QUIET; /* Probing, so don't spill stderr with errors. */
+ ao->is_open = FALSE;
+ ao->module = module; /* Need that to close module later. */
+ result = module->init_output(ao);
+ if(result == 0)
+ { /* Try to open the device. I'm only interested in actually working modules. */
+ result = open_output(ao);
+ close_output(ao);
+ }
+ else error2("Module '%s' init failed: %i", name, result);
+
+ if(result!=0)
+ { /* Try next one... */
+ close_module(module);
+ free(ao);
+ ao = NULL;
+ }
+ else
+ { /* All good, leave the loop. */
+ if(param.verbose > 1) fprintf(stderr, "Output module '%s' chosen.\n", name);
+
+ ao->auxflags &= ~MPG123_OUT_QUIET;
+ break;
+ }
+ }
+
+ free(modnames);
+ if(ao==NULL) error1("Unable to find a working output module in this list: %s", names);
+
+ return ao;
+}
+
+
+
+/* Close the audio output and close the module */
+void close_output_module( audio_output_t* ao )
+{
+ if (!ao) return; /* That covers buffer mode, too (ao == NULL there). */
+
+ debug("closing output module");
+ /* Close the audio output */
+ if(ao->is_open && ao->close != NULL) ao->close(ao);
+
+ /* Deinitialise the audio output */
+ if (ao->deinit) ao->deinit( ao );
+
+ /* Unload the module */
+ if (ao->module) close_module( ao->module );
+
+ /* Free up memory */
+ free( ao );
+}
+
+
+
+/* allocate and initialise memory */
+audio_output_t* alloc_audio_output()
+{
+ audio_output_t* ao = malloc( sizeof( audio_output_t ) );
+ if (ao==NULL) error( "Failed to allocate memory for audio_output_t." );
+
+ /* Initialise variables */
+ ao->fn = -1;
+ ao->rate = -1;
+ ao->gain = param.gain;
+ ao->userptr = NULL;
+ ao->device = NULL;
+ ao->channels = -1;
+ ao->format = -1;
+ ao->flags = 0;
+ ao->auxflags = 0;
+
+ /*ao->module = NULL;*/
+
+ /* Set the callbacks to NULL */
+ ao->open = NULL;
+ ao->get_formats = NULL;
+ ao->write = NULL;
+ ao->flush = NULL;
+ ao->close = NULL;
+ ao->deinit = NULL;
+
+ return ao;
+}
+
+/*
+static void audio_output_dump(audio_output_t *ao)
+{
+ fprintf(stderr, "ao->fn=%d\n", ao->fn);
+ fprintf(stderr, "ao->userptr=%p\n", ao->userptr);
+ fprintf(stderr, "ao->rate=%ld\n", ao->rate);
+ fprintf(stderr, "ao->gain=%ld\n", ao->gain);
+ fprintf(stderr, "ao->device='%s'\n", ao->device);
+ fprintf(stderr, "ao->channels=%d\n", ao->channels);
+ fprintf(stderr, "ao->format=%d\n", ao->format);
+}
+*/
+
+struct enc_desc
+{
+ int code; /* MPG123_ENC_SOMETHING */
+ const char *longname; /* signed bla bla */
+ const char *name; /* sXX, short name */
+ const unsigned char nlen; /* significant characters in short name */
+};
+
+static const struct enc_desc encdesc[] =
+{
+ { MPG123_ENC_SIGNED_16, "signed 16 bit", "s16 ", 3 },
+ { MPG123_ENC_UNSIGNED_16, "unsigned 16 bit", "u16 ", 3 },
+ { MPG123_ENC_UNSIGNED_8, "unsigned 8 bit", "u8 ", 2 },
+ { MPG123_ENC_SIGNED_8, "signed 8 bit", "s8 ", 2 },
+ { MPG123_ENC_ULAW_8, "mu-law (8 bit)", "ulaw ", 4 },
+ { MPG123_ENC_ALAW_8, "a-law (8 bit)", "alaw ", 4 },
+ { MPG123_ENC_FLOAT_32, "float (32 bit)", "f32 ", 3 },
+ { MPG123_ENC_SIGNED_32, "signed 32 bit", "s32 ", 3 },
+ { MPG123_ENC_UNSIGNED_32, "unsigned 32 bit", "u32 ", 3 }
+};
+#define KNOWN_ENCS (sizeof(encdesc)/sizeof(struct enc_desc))
+
+void audio_enclist(char** list)
+{
+ size_t length = 0;
+ int i;
+ *list = NULL;
+ for(i=0;i<KNOWN_ENCS;++i) length += encdesc[i].nlen;
+
+ length += KNOWN_ENCS-1; /* spaces between the encodings */
+ *list = malloc(length+1); /* plus zero */
+ if(*list != NULL)
+ {
+ size_t off = 0;
+ (*list)[length] = 0;
+ for(i=0;i<KNOWN_ENCS;++i)
+ {
+ if(i>0) (*list)[off++] = ' ';
+ memcpy(*list+off, encdesc[i].name, encdesc[i].nlen);
+ off += encdesc[i].nlen;
+ }
+ }
+}
+
+/* Safer as function... */
+const char* audio_encoding_name(const int encoding, const int longer)
+{
+ const char *name = longer ? "unknown" : "???";
+ int i;
+ for(i=0;i<KNOWN_ENCS;++i)
+ if(encdesc[i].code == encoding)
+ name = longer ? encdesc[i].longname : encdesc[i].name;
+
+ return name;
+}
+
+static void capline(mpg123_handle *mh, long rate)
+{
+ int enci;
+ const int *encs;
+ size_t num_encs;
+ mpg123_encodings(&encs, &num_encs);
+ fprintf(stderr," %5ld |", pitch_rate(rate));
+ for(enci=0; enci<num_encs; ++enci)
+ {
+ switch(mpg123_format_support(mh, rate, encs[enci]))
+ {
+ case MPG123_MONO: fprintf(stderr, " M |"); break;
+ case MPG123_STEREO: fprintf(stderr, " S |"); break;
+ case MPG123_MONO|MPG123_STEREO: fprintf(stderr, " M/S |"); break;
+ default: fprintf(stderr, " |");
+ }
+ }
+ fprintf(stderr, "\n");
+}
+
+void print_capabilities(audio_output_t *ao, mpg123_handle *mh)
+{
+ int r,e;
+ const long *rates;
+ size_t num_rates;
+ const int *encs;
+ size_t num_encs;
+ const char *name = "<buffer>";
+ const char *dev = "<none>";
+ if(!param.usebuffer)
+ {
+ name = ao->module ? ao->module->name : "file/raw/test";
+ if(ao->device != NULL) dev = ao->device;
+ }
+ mpg123_rates(&rates, &num_rates);
+ mpg123_encodings(&encs, &num_encs);
+ fprintf(stderr,"\nAudio driver: %s\nAudio device: %s\nAudio capabilities:\n(matrix of [S]tereo or [M]ono support for sample format and rate in Hz)\n |", name, dev);
+ for(e=0;e<num_encs;e++) fprintf(stderr," %5s |",audio_encoding_name(encs[e], 0));
+
+ fprintf(stderr,"\n ------|");
+ for(e=0;e<num_encs;e++) fprintf(stderr,"-------|");
+
+ fprintf(stderr, "\n");
+ for(r=0; r<num_rates; ++r) capline(mh, rates[r]);
+
+ if(param.force_rate) capline(mh, param.force_rate);
+
+ fprintf(stderr,"\n");
+}
+
+/* This uses the currently opened audio device, queries its caps.
+ In case of buffered playback, this works _once_ by querying the buffer for the caps before entering the main loop. */
+void audio_capabilities(audio_output_t *ao, mpg123_handle *mh)
+{
+ int force_fmt = 0;
+ int fmts;
+ size_t ri;
+ /* Pitching introduces a difference between decoder rate and playback rate. */
+ long rate, decode_rate;
+ int channels;
+ const long *rates;
+ size_t num_rates, rlimit;
+ debug("audio_capabilities");
+ mpg123_rates(&rates, &num_rates);
+ mpg123_format_none(mh); /* Start with nothing. */
+ if(param.force_encoding != NULL)
+ {
+ int i;
+ if(!param.quiet) fprintf(stderr, "Note: forcing output encoding %s\n", param.force_encoding);
+
+ for(i=0;i<KNOWN_ENCS;++i)
+ if(!strncasecmp(encdesc[i].name, param.force_encoding, encdesc[i].nlen))
+ {
+ force_fmt = encdesc[i].code;
+ break;
+ }
+
+ if(i==KNOWN_ENCS)
+ {
+ error1("Failed to find an encoding to match requested \"%s\"!\n", param.force_encoding);
+ return; /* No capabilities at all... */
+ }
+ else if(param.verbose > 2) fprintf(stderr, "Note: forcing encoding code 0x%x\n", force_fmt);
+ }
+ rlimit = param.force_rate > 0 ? num_rates+1 : num_rates;
+ for(channels=1; channels<=2; channels++)
+ for(ri = 0;ri<rlimit;ri++)
+ {
+ decode_rate = ri < num_rates ? rates[ri] : param.force_rate;
+ rate = pitch_rate(decode_rate);
+ if(param.verbose > 2) fprintf(stderr, "Note: checking support for %liHz/%ich.\n", rate, channels);
+#ifndef NOXFERMEM
+ if(param.usebuffer)
+ { /* Ask the buffer process. It is waiting for this. */
+ buffermem->rate = rate;
+ buffermem->channels = channels;
+ buffermem->format = 0; /* Just have it initialized safely. */
+ debug2("asking for formats for %liHz/%ich", rate, channels);
+ xfermem_putcmd(buffermem->fd[XF_WRITER], XF_CMD_AUDIOCAP);
+ xfermem_getcmd(buffermem->fd[XF_WRITER], TRUE);
+ fmts = buffermem->format;
+ }
+ else
+#endif
+ { /* Check myself. */
+ ao->rate = rate;
+ ao->channels = channels;
+ fmts = ao->get_formats(ao);
+ }
+ if(param.verbose > 2) fprintf(stderr, "Note: result 0x%x\n", fmts);
+ if(force_fmt)
+ { /* Filter for forced encoding. */
+ if((fmts & force_fmt) == force_fmt) fmts = force_fmt;
+ else fmts = 0; /* Nothing else! */
+
+ if(param.verbose > 2) fprintf(stderr, "Note: after forcing 0x%x\n", fmts);
+ }
+
+ if(fmts < 0) continue;
+ else mpg123_format(mh, decode_rate, channels, fmts);
+ }
+
+#ifndef NOXFERMEM
+ /* Buffer loop shall start normal operation now. */
+ if(param.usebuffer)
+ {
+ xfermem_putcmd(buffermem->fd[XF_WRITER], XF_CMD_WAKEUP);
+ xfermem_getcmd(buffermem->fd[XF_WRITER], TRUE);
+ }
+#endif
+
+ if(param.verbose > 1) print_capabilities(ao, mh);
+}
+
+#if !defined(WIN32) && !defined(GENERIC)
+#ifndef NOXFERMEM
+static void catch_child(void)
+{
+ while (waitpid(-1, NULL, WNOHANG) > 0);
+}
+#endif
+#endif
+
+
+/* FIXME: Old output initialization code that needs updating */
+
+int init_output(audio_output_t **ao)
+{
+ static int init_done = FALSE;
+
+ if (init_done) return 1;
+ init_done = TRUE;
+
+#ifndef NOXFERMEM
+ /*
+ * Only DECODE_AUDIO and DECODE_FILE are sanely handled by the
+ * buffer process. For now, we just ignore the request
+ * to buffer the output. [dk]
+ */
+ if (param.usebuffer && (param.outmode != DECODE_AUDIO) &&
+ (param.outmode != DECODE_FILE)) {
+ fprintf(stderr, "Sorry, won't buffer output unless writing plain audio.\n");
+ param.usebuffer = 0;
+ }
+
+ if (param.usebuffer)
+ {
+ unsigned int bufferbytes;
+ sigset_t newsigset, oldsigset;
+ bufferbytes = (param.usebuffer * 1024);
+ if (bufferbytes < bufferblock)
+ {
+ bufferbytes = 2*bufferblock;
+ if(!param.quiet) fprintf(stderr, "Note: raising buffer to minimal size %liKiB\n", (unsigned long) bufferbytes>>10);
+ }
+ bufferbytes -= bufferbytes % bufferblock;
+ /* No +1024 for NtoM rounding problems anymore! */
+ xfermem_init (&buffermem, bufferbytes ,0,0);
+ sigemptyset (&newsigset);
+ sigaddset (&newsigset, SIGUSR1);
+ sigprocmask (SIG_BLOCK, &newsigset, &oldsigset);
+#if !defined(WIN32) && !defined(GENERIC)
+ catchsignal (SIGCHLD, catch_child);
+#endif
+ switch ((buffer_pid = fork()))
+ {
+ case -1: /* error */
+ error("cannot fork!");
+ return -1;
+ case 0: /* child */
+ {
+ /* Buffer process handles all audio stuff itself. */
+ audio_output_t *bao = NULL; /* To be clear: That's the buffer's pointer. */
+ param.usebuffer = 0; /* The buffer doesn't use the buffer. */
+ /* Open audio output module */
+ bao = open_output_module(param.output_module);
+ if(!bao)
+ {
+ error("Failed to open audio output module.");
+ exit(1); /* communicate failure? */
+ }
+ if(open_output(bao) < 0)
+ {
+ error("Unable to open audio output.");
+ close_output_module(bao);
+ exit(2);
+ }
+ xfermem_init_reader (buffermem);
+ buffer_loop(bao, &oldsigset); /* Here the work happens. */
+ xfermem_done_reader (buffermem);
+ xfermem_done (buffermem);
+ close_output(bao);
+ close_output_module(bao);
+ exit(0);
+ }
+ default: /* parent */
+ xfermem_init_writer (buffermem);
+ }
+ }
+#else
+ if(param.usebuffer)
+ {
+ error("Buffer not available in this build!");
+ return -1;
+ }
+#endif
+ if(!param.usebuffer)
+ { /* Only if I handle audio device output: Get that module. */
+ *ao = open_output_module(param.output_module);
+ if(!(*ao))
+ {
+ error("Failed to open audio output module");
+ return -1;
+ }
+ }
+ else *ao = NULL; /* That ensures we won't try to free it later... */
+#ifndef NOXFERMEM
+ if(param.usebuffer)
+ { /* Check if buffer is alive. */
+ int res = xfermem_getcmd(buffermem->fd[XF_WRITER], TRUE);
+ if(res < 0)
+ {
+ error("Buffer process didn't initialize!");
+ return -1;
+ }
+ }
+#endif
+ /* This has internal protection for buffer mode. */
+ if(open_output(*ao) < 0) return -1;
+
+ return 0;
+}
+
+void exit_output(audio_output_t *ao, int rude)
+{
+ debug("exit output");
+#ifndef NOXFERMEM
+ if (param.usebuffer)
+ {
+ debug("ending buffer");
+ buffer_stop(); /* Puts buffer into waiting-for-command mode. */
+ buffer_end(rude); /* Gives command to end operation. */
+ xfermem_done_writer(buffermem);
+ waitpid (buffer_pid, NULL, 0);
+ xfermem_done (buffermem);
+ }
+#endif
+ /* Close the output... doesn't matter if buffer handled it, that's taken care of. */
+ close_output(ao);
+ close_output_module(ao);
+}
+
+void output_pause(audio_output_t *ao)
+{
+ if(param.usebuffer) buffer_stop();
+ else ao->flush(ao);
+}
+
+void output_unpause(audio_output_t *ao)
+{
+ if(param.usebuffer) buffer_start();
+}
+
+int flush_output(audio_output_t *ao, unsigned char *bytes, size_t count)
+{
+ if(count)
+ {
+ /* Error checks? */
+#ifndef NOXFERMEM
+ if(param.usebuffer){ if(xfermem_write(buffermem, bytes, count)) return -1; }
+ else
+#endif
+ if(param.outmode != DECODE_TEST)
+ {
+ int sum = 0;
+ int written;
+ do
+ { /* Be in a loop for SIGSTOP/CONT */
+ written = ao->write(ao, bytes, (int)count);
+ if(written >= 0){ sum+=written; count -= written; }
+ else error1("Error in writing audio (%s?)!", strerror(errno));
+ } while(count>0 && written>=0);
+ return sum;
+ }
+ }
+ return (int)count; /* That is for DECODE_TEST */
+}
+
+int open_output(audio_output_t *ao)
+{
+ if(param.usebuffer) return 0;
+
+ if(ao == NULL)
+ {
+ error("ao should not be NULL here!");
+ exit(110);
+ }
+
+ switch(param.outmode)
+ {
+ case DECODE_AUDIO:
+ case DECODE_WAV:
+ case DECODE_AU:
+ case DECODE_CDR:
+ case DECODE_FILE:
+ debug("opening normal audio/file");
+ ao->is_open = ao->open(ao) < 0 ? FALSE : TRUE;
+ if(!ao->is_open)
+ {
+ if(!AOQUIET) error("failed to open audio device");
+ return -1;
+ }
+ else return 0;
+ break;
+ case DECODE_TEST:
+ debug("decoding to nowhere");
+ return 0;
+ break;
+ }
+ debug("nothing");
+ return -1; /* That's an error ... unknown outmode? */
+}
+
+/* is this used? */
+void close_output(audio_output_t *ao)
+{
+ if(param.usebuffer) return;
+
+ debug("closing output");
+ switch(param.outmode)
+ {
+ case DECODE_AUDIO:
+ case DECODE_WAV:
+ case DECODE_AU:
+ case DECODE_CDR:
+ /* Guard that close call; could be nasty. */
+ if(ao->is_open)
+ {
+ ao->is_open = FALSE;
+ if(ao->close != NULL) ao->close(ao);
+ }
+ break;
+ }
+}
+
+/* Also for WAV decoding? */
+int reset_output(audio_output_t *ao)
+{
+ if(!param.usebuffer)
+ {
+ close_output(ao);
+ return open_output(ao);
+ }
+ else return 0;
+}
diff --git a/src/audio.h b/src/audio.h
new file mode 100644
index 0000000..c67ed58
--- /dev/null
+++ b/src/audio.h
@@ -0,0 +1,99 @@
+/*
+ audio: audio output interface
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+/*
+ * Audio 'LIB' defines
+ */
+
+
+#ifndef _MPG123_AUDIO_H_
+#define _MPG123_AUDIO_H_
+
+#include "compat.h"
+#include "mpg123.h"
+#include "module.h"
+
+#define AUDIO_OUT_HEADPHONES 0x01
+#define AUDIO_OUT_INTERNAL_SPEAKER 0x02
+#define AUDIO_OUT_LINE_OUT 0x04
+
+enum {
+ DECODE_TEST,
+ DECODE_AUDIO,
+ DECODE_FILE,
+ DECODE_BUFFER,
+ DECODE_WAV,
+ DECODE_AU,
+ DECODE_CDR,
+ DECODE_AUDIOFILE
+};
+
+/* 3% rate tolerance */
+#define AUDIO_RATE_TOLERANCE 3
+
+typedef struct audio_output_struct
+{
+ int fn; /* filenumber */
+ void *userptr; /* driver specific pointer */
+
+ /* Callbacks */
+ int (*open)(struct audio_output_struct *);
+ int (*get_formats)(struct audio_output_struct *);
+ int (*write)(struct audio_output_struct *, unsigned char *,int);
+ void (*flush)(struct audio_output_struct *);
+ int (*close)(struct audio_output_struct *);
+ int (*deinit)(struct audio_output_struct *);
+
+ /* the module this belongs to */
+ mpg123_module_t *module;
+
+ char *device; /* device name */
+ int flags; /* some bits; namely headphone/speaker/line */
+ long rate; /* sample rate */
+ long gain; /* output gain */
+ int channels; /* number of channels */
+ int format; /* format flags */
+ int is_open; /* something opened? */
+#define MPG123_OUT_QUIET 1
+ int auxflags; /* For now just one: quiet mode (for probing). */
+} audio_output_t;
+
+/* Lazy. */
+#define AOQUIET (ao->auxflags & MPG123_OUT_QUIET)
+
+struct audio_format_name {
+ int val;
+ char *name;
+ char *sname;
+};
+
+#define pitch_rate(rate) (param.pitch == 0 ? (rate) : (long) ((param.pitch+1.0)*(rate)))
+
+/* ------ Declarations from "audio.c" ------ */
+
+audio_output_t* open_output_module( const char* name );
+void close_output_module( audio_output_t* ao );
+audio_output_t* alloc_audio_output();
+void audio_capabilities(audio_output_t *ao, mpg123_handle *mh);
+int audio_fit_capabilities(audio_output_t *ao,int c,int r);
+const char* audio_encoding_name(const int encoding, const int longer);
+void print_capabilities(audio_output_t *ao, mpg123_handle *mh);
+
+int init_output(audio_output_t **ao);
+void exit_output(audio_output_t *ao, int rude);
+int flush_output(audio_output_t *ao, unsigned char *bytes, size_t count);
+int open_output(audio_output_t *ao);
+void close_output(audio_output_t *ao );
+int reset_output(audio_output_t *ao);
+void output_pause(audio_output_t *ao); /* Prepare output for inactivity. */
+void output_unpause(audio_output_t *ao); /* Reactivate output (buffer process). */
+
+void audio_enclist(char** list); /* Make a string of encoding names. */
+
+#endif
+
diff --git a/src/buffer.c b/src/buffer.c
new file mode 100644
index 0000000..0e8d0ad
--- /dev/null
+++ b/src/buffer.c
@@ -0,0 +1,312 @@
+/*
+ buffer.c: output buffer
+
+ copyright 1997-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Oliver Fromme
+
+ I (ThOr) am reviewing this file at about the same daytime as Oliver's timestamp here:
+ Mon Apr 14 03:53:18 MET DST 1997
+ - dammed night coders;-)
+*/
+
+#include "mpg123app.h"
+
+#ifndef NOXFERMEM
+
+#include "common.h"
+#include <errno.h>
+#include "debug.h"
+
+int outburst = 32768;
+
+static int intflag = FALSE;
+static int usr1flag = FALSE;
+
+static void catch_interrupt (void)
+{
+ intflag = TRUE;
+}
+
+static void catch_usr1 (void)
+{
+ usr1flag = TRUE;
+}
+
+/* Interfaces to writer process */
+
+extern void buffer_sig(int signal, int block);
+
+void real_buffer_ignore_lowmem(void)
+{
+ if (!buffermem)
+ return;
+ if(buffermem->wakeme[XF_READER])
+ xfermem_putcmd(buffermem->fd[XF_WRITER], XF_CMD_WAKEUP);
+}
+
+void real_buffer_end(int rude)
+{
+ if (!buffermem)
+ return;
+ xfermem_putcmd(buffermem->fd[XF_WRITER], rude ? XF_CMD_ABORT : XF_CMD_TERMINATE);
+}
+
+void real_buffer_resync(void)
+{
+ if(buffermem->justwait)
+ {
+ buffermem->wakeme[XF_WRITER] = TRUE;
+ xfermem_putcmd(buffermem->fd[XF_WRITER], XF_CMD_RESYNC);
+ xfermem_getcmd(buffermem->fd[XF_WRITER], TRUE);
+ }
+ else buffer_sig(SIGINT, TRUE);
+}
+
+void real_plain_buffer_resync(void)
+{
+ buffer_sig(SIGINT, FALSE);
+}
+
+void real_buffer_reset(void)
+{
+ buffer_sig(SIGUSR1, TRUE);
+}
+
+void real_buffer_start(void)
+{
+ if(buffermem->justwait)
+ {
+ debug("ending buffer's waiting");
+ buffermem->justwait = FALSE;
+ xfermem_putcmd(buffermem->fd[XF_WRITER], XF_CMD_WAKEUP);
+ }
+}
+
+void real_buffer_stop()
+{
+ buffermem->justwait = TRUE;
+ buffer_sig(SIGINT, TRUE);
+}
+
+extern int buffer_pid;
+
+void buffer_sig(int signal, int block)
+{
+ if (!buffermem) return;
+
+ if (!block)
+ { /* Just signal, do not wait for anything. */
+ kill(buffer_pid, signal);
+ return;
+ }
+
+ /* kill() and the waiting needs to be taken care of properly for parallel execution.
+ Nobody reported issues so far, but I want to be sure. */
+ if(xfermem_sigblock(XF_WRITER, buffermem, buffer_pid, signal) != XF_CMD_WAKEUP)
+ perror("Could not resync/reset buffers");
+ return;
+}
+
+void buffer_loop(audio_output_t *ao, sigset_t *oldsigset)
+{
+ int bytes, outbytes;
+ int my_fd = buffermem->fd[XF_READER];
+ txfermem *xf = buffermem;
+ int done = FALSE;
+ int preload;
+
+ catchsignal (SIGINT, catch_interrupt);
+ catchsignal (SIGUSR1, catch_usr1);
+ sigprocmask (SIG_SETMASK, oldsigset, NULL);
+
+ xfermem_putcmd(my_fd, XF_CMD_WAKEUP);
+
+ debug("audio output: waiting for cap requests");
+ /* wait for audio setup queries */
+ while(1)
+ {
+ int cmd;
+ cmd = xfermem_block(XF_READER, xf);
+ if(cmd == XF_CMD_AUDIOCAP)
+ {
+ ao->rate = xf->rate;
+ ao->channels = xf->channels;
+ ao->format = ao->get_formats(ao);
+ debug3("formats for %liHz/%ich: 0x%x", ao->rate, ao->channels, ao->format);
+ xf->format = ao->format;
+ xfermem_putcmd(my_fd, XF_CMD_AUDIOCAP);
+ }
+ else if(cmd == XF_CMD_WAKEUP)
+ {
+ debug("got wakeup... leaving config mode");
+ xfermem_putcmd(buffermem->fd[XF_READER], XF_CMD_WAKEUP);
+ break;
+ }
+ else
+ {
+ error1("unexpected command %i", cmd);
+ return;
+ }
+ }
+
+ /* Fill complete buffer on first run before starting to play.
+ * Live mp3 streams constantly approach buffer underrun otherwise. [dk]
+ */
+ preload = (int)(param.preload*xf->size);
+ if(preload > xf->size) preload = xf->size;
+ if(preload < 0) preload = 0;
+
+ for (;;) {
+ if (intflag) {
+ debug("handle intflag... flushing");
+ intflag = FALSE;
+ if (param.outmode == DECODE_AUDIO) ao->flush(ao);
+ /* Either prepare for waiting or empty buffer now. */
+ if(!xf->justwait) xf->readindex = xf->freeindex;
+ else
+ {
+ int cmd;
+ debug("Prepare for waiting; draining command queue. (There's a lot of wakeup commands pending, usually.)");
+ do
+ {
+ cmd = xfermem_getcmd(my_fd, FALSE);
+ /* debug1("drain: %i", cmd); */
+ } while(cmd > 0);
+ }
+ if(xf->wakeme[XF_WRITER]) xfermem_putcmd(my_fd, XF_CMD_WAKEUP);
+ }
+ if (usr1flag) {
+ debug("handling usr1flag");
+ usr1flag = FALSE;
+ /* close and re-open in order to flush
+ * the device's internal buffer before
+ * changing the sample rate. [OF]
+ */
+ /* writer must block when sending SIGUSR1
+ * or we will lose all data processed
+ * in the meantime! [dk]
+ */
+ xf->readindex = xf->freeindex;
+ /* We've nailed down the new starting location -
+ * writer is now safe to go on. [dk]
+ */
+ if (xf->wakeme[XF_WRITER])
+ xfermem_putcmd(my_fd, XF_CMD_WAKEUP);
+ ao->rate = xf->rate;
+ ao->channels = xf->channels;
+ ao->format = xf->format;
+ if (reset_output(ao) < 0) {
+ error1("failed to reset audio: %s", strerror(errno));
+ exit(1);
+ }
+ }
+ if ( (bytes = xfermem_get_usedspace(xf)) < outburst ) {
+ /* if we got a buffer underrun we first
+ * fill 1/8 of the buffer before continue/start
+ * playing */
+ if (preload < xf->size>>3)
+ preload = xf->size>>3;
+ if(preload < outburst)
+ preload = outburst;
+ }
+ debug1("bytes: %i", bytes);
+ if(xf->justwait || bytes < preload) {
+ int cmd;
+ if (done && !bytes) {
+ break;
+ }
+
+ if(xf->justwait || !done) {
+
+ /* Don't spill into errno check below. */
+ errno = 0;
+ cmd = xfermem_block(XF_READER, xf);
+ debug1("got %i", cmd);
+ switch(cmd) {
+
+ /* More input pending. */
+ case XF_CMD_WAKEUP_INFO:
+ continue;
+ /* Yes, we know buffer is low but
+ * know we don't care.
+ */
+ case XF_CMD_WAKEUP:
+ break; /* Proceed playing. */
+ case XF_CMD_ABORT: /* Immediate end, discard buffer contents. */
+ return; /* Cleanup happens outside of buffer_loop()*/
+ case XF_CMD_TERMINATE: /* Graceful end, playing stuff in buffer and then return. */
+ debug("going to terminate");
+ done = TRUE;
+ break;
+ case XF_CMD_RESYNC:
+ debug("ordered resync");
+ if (param.outmode == DECODE_AUDIO) ao->flush(ao);
+
+ xf->readindex = xf->freeindex;
+ if (xf->wakeme[XF_WRITER]) xfermem_putcmd(my_fd, XF_CMD_WAKEUP);
+ continue;
+ break;
+ case -1:
+ if(intflag || usr1flag) /* Got signal, handle it at top of loop... */
+ {
+ debug("buffer interrupted");
+ continue;
+ }
+ if(errno)
+ error1("Yuck! Error in buffer handling... or somewhere unexpected: %s", strerror(errno));
+ done = TRUE;
+ xf->readindex = xf->freeindex;
+ xfermem_putcmd(xf->fd[XF_READER], XF_CMD_TERMINATE);
+ break;
+ default:
+ fprintf(stderr, "\nEh!? Received unknown command 0x%x in buffer process.\n", cmd);
+ }
+ }
+ }
+ /* Hack! The writer issues XF_CMD_WAKEUP when first adjust
+ * audio settings. We do not want to lower the preload mark
+ * just yet!
+ */
+ if (xf->justwait || !bytes)
+ continue;
+ preload = outburst; /* set preload to lower mark */
+ if (bytes > xf->size - xf->readindex)
+ bytes = xf->size - xf->readindex;
+ if (bytes > outburst)
+ bytes = outburst;
+
+ debug("write");
+ outbytes = flush_output(ao, (unsigned char*) xf->data + xf->readindex, bytes);
+
+ if(outbytes < bytes)
+ {
+ if(outbytes < 0) outbytes = 0;
+ if(!intflag && !usr1flag) {
+ error1("Ouch ... error while writing audio data: %s", strerror(errno));
+ /*
+ * done==TRUE tells writer process to stop
+ * sending data. There might be some latency
+ * involved when resetting readindex to
+ * freeindex so we might need more than one
+ * cycle to terminate. (The number of cycles
+ * should be finite unless I managed to mess
+ * up something. ;-) [dk]
+ */
+ done = TRUE;
+ xf->readindex = xf->freeindex;
+ xfermem_putcmd(xf->fd[XF_READER], XF_CMD_TERMINATE);
+ }
+ else debug("buffer interrupted");
+ }
+ bytes = outbytes;
+
+ xf->readindex = (xf->readindex + bytes) % xf->size;
+ if (xf->wakeme[XF_WRITER])
+ xfermem_putcmd(my_fd, XF_CMD_WAKEUP);
+ }
+}
+
+#endif
+
+/* EOF */
diff --git a/src/buffer.h b/src/buffer.h
new file mode 100644
index 0000000..f0d6ffe
--- /dev/null
+++ b/src/buffer.h
@@ -0,0 +1,45 @@
+/*
+ buffer.h: output buffer
+
+ copyright 1999-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Daniel Kobras / Oliver Fromme
+*/
+
+/*
+ * Application specific interaction between main and buffer
+ * process. This is much less generic than the functions in
+ * xfermem so I chose to put it in buffer.[hc].
+ * 01/28/99 [dk]
+ */
+
+#ifndef _MPG123_BUFFER_H_
+#define _MPG123_BUFFER_H_
+
+#ifndef NOXFERMEM
+void real_buffer_ignore_lowmem(void);
+void real_buffer_end(int rude);
+void real_buffer_resync(void);
+void real_plain_buffer_resync(void);
+void real_buffer_reset(void);
+void real_buffer_start(void);
+void real_buffer_stop(void);
+/* Hm, that's funny preprocessor weirdness. */
+#define buffer_start() (param.usebuffer ? real_buffer_start(),0 : 0)
+#define buffer_stop() (param.usebuffer ? real_buffer_stop(),0 : 0)
+#define buffer_reset() (param.usebuffer ? real_buffer_reset(),0 : 0)
+#define buffer_resync() (param.usebuffer ? real_buffer_resync(),0 : 0)
+#define plain_buffer_resync() (param.usebuffer ? real_plain_buffer_resync(),0 : 0)
+#define buffer_end(a) (param.usebuffer ? real_buffer_end(a),0 : 0)
+#define buffer_ignore_lowmem() (param.usebuffer ? real_buffer_ignore_lowmem(),0 : 0)
+#else
+#define buffer_start()
+#define buffer_stop()
+#define buffer_reset()
+#define buffer_resync()
+#define plain_buffer_resync()
+#define buffer_end()
+#define buffer_ignore_lowmem()
+#endif
+
+#endif
diff --git a/src/common.c b/src/common.c
new file mode 100644
index 0000000..11d6829
--- /dev/null
+++ b/src/common.c
@@ -0,0 +1,230 @@
+/*
+ common: misc stuff... audio flush, status display...
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#include "mpg123app.h"
+#include <sys/stat.h>
+#include <fcntl.h>
+#include "common.h"
+
+#ifdef WIN32
+#include <winsock.h>
+#endif
+
+#include "debug.h"
+
+const char* rva_name[3] = { "off", "mix", "album" };
+static const char *modes[5] = {"Stereo", "Joint-Stereo", "Dual-Channel", "Single-Channel", "Invalid" };
+static const char *smodes[5] = { "stereo", "joint-stereo", "dual-channel", "mono", "invalid" };
+static const char *layers[4] = { "Unknown" , "I", "II", "III" };
+static const char *versions[4] = {"1.0", "2.0", "2.5", "x.x" };
+
+#if !defined(WIN32) && defined(HAVE_SIGNAL_H)
+void (*catchsignal(int signum, void(*handler)()))()
+{
+ struct sigaction new_sa;
+ struct sigaction old_sa;
+
+#ifdef DONT_CATCH_SIGNALS
+ fprintf (stderr, "Not catching any signals.\n");
+ return ((void (*)()) -1);
+#endif
+
+ new_sa.sa_handler = handler;
+ sigemptyset(&new_sa.sa_mask);
+ new_sa.sa_flags = 0;
+ if (sigaction(signum, &new_sa, &old_sa) == -1)
+ return ((void (*)()) -1);
+ return (old_sa.sa_handler);
+}
+#endif
+
+/* concurring to print_rheader... here for control_generic */
+const char* remote_header_help = "S <mpeg-version> <layer> <sampling freq> <mode(stereo/mono/...)> <mode_ext> <framesize> <stereo> <copyright> <error_protected> <emphasis> <bitrate> <extension> <vbr(0/1=yes/no)>";
+void print_remote_header(mpg123_handle *mh)
+{
+ struct mpg123_frameinfo i;
+ mpg123_info(mh, &i);
+ if(i.mode >= 4 || i.mode < 0) i.mode = 4;
+ if(i.version >= 3 || i.version < 0) i.version = 3;
+ generic_sendmsg("S %s %d %ld %s %d %d %d %d %d %d %d %d %d",
+ versions[i.version],
+ i.layer,
+ i.rate,
+ modes[i.mode],
+ i.mode_ext,
+ i.framesize,
+ i.mode == MPG123_M_MONO ? 1 : 2,
+ i.flags & MPG123_COPYRIGHT ? 1 : 0,
+ i.flags & MPG123_CRC ? 1 : 0,
+ i.emphasis,
+ i.bitrate,
+ i.flags & MPG123_PRIVATE ? 1 : 0,
+ i.vbr);
+}
+
+void print_header(mpg123_handle *mh)
+{
+ struct mpg123_frameinfo i;
+ mpg123_info(mh, &i);
+ if(i.mode > 4 || i.mode < 0) i.mode = 4;
+ if(i.version > 3 || i.version < 0) i.version = 3;
+ if(i.layer > 3 || i.layer < 0) i.layer = 0;
+ fprintf(stderr,"MPEG %s, Layer: %s, Freq: %ld, mode: %s, modext: %d, BPF : %d\n",
+ versions[i.version],
+ layers[i.layer], i.rate,
+ modes[i.mode],i.mode_ext,i.framesize);
+ fprintf(stderr,"Channels: %d, copyright: %s, original: %s, CRC: %s, emphasis: %d.\n",
+ i.mode == MPG123_M_MONO ? 1 : 2,i.flags & MPG123_COPYRIGHT ? "Yes" : "No",
+ i.flags & MPG123_ORIGINAL ? "Yes" : "No", i.flags & MPG123_CRC ? "Yes" : "No",
+ i.emphasis);
+ fprintf(stderr,"Bitrate: ");
+ switch(i.vbr)
+ {
+ case MPG123_CBR: fprintf(stderr, "%d kbit/s", i.bitrate); break;
+ case MPG123_VBR: fprintf(stderr, "VBR"); break;
+ case MPG123_ABR: fprintf(stderr, "%d kbit/s ABR", i.abr_rate); break;
+ default: fprintf(stderr, "???");
+ }
+ fprintf(stderr, " Extension value: %d\n", i.flags & MPG123_PRIVATE ? 1 : 0);
+}
+
+void print_header_compact(mpg123_handle *mh)
+{
+ struct mpg123_frameinfo i;
+ mpg123_info(mh, &i);
+ if(i.mode > 4 || i.mode < 0) i.mode = 4;
+ if(i.version > 3 || i.version < 0) i.version = 3;
+ if(i.layer > 3 || i.layer < 0) i.layer = 0;
+
+ fprintf(stderr,"MPEG %s layer %s, ", versions[i.version], layers[i.layer]);
+ switch(i.vbr)
+ {
+ case MPG123_CBR: fprintf(stderr, "%d kbit/s", i.bitrate); break;
+ case MPG123_VBR: fprintf(stderr, "VBR"); break;
+ case MPG123_ABR: fprintf(stderr, "%d kbit/s ABR", i.abr_rate); break;
+ default: fprintf(stderr, "???");
+ }
+ fprintf(stderr,", %ld Hz %s\n", i.rate, smodes[i.mode]);
+}
+
+#if 0
+/* removed the strndup for better portability */
+/*
+ * Allocate space for a new string containing the first
+ * "num" characters of "src". The resulting string is
+ * always zero-terminated. Returns NULL if malloc fails.
+ */
+char *strndup (const char *src, int num)
+{
+ char *dst;
+
+ if (!(dst = (char *) malloc(num+1)))
+ return (NULL);
+ dst[num] = '\0';
+ return (strncpy(dst, src, num));
+}
+#endif
+
+/*
+ * Split "path" into directory and filename components.
+ *
+ * Return value is 0 if no directory was specified (i.e.
+ * "path" does not contain a '/'), OR if the directory
+ * is the same as on the previous call to this function.
+ *
+ * Return value is 1 if a directory was specified AND it
+ * is different from the previous one (if any).
+ */
+
+int split_dir_file (const char *path, char **dname, char **fname)
+{
+ static char *lastdir = NULL;
+ char *slashpos;
+
+ if ((slashpos = strrchr(path, '/'))) {
+ *fname = slashpos + 1;
+ *dname = strdup(path); /* , 1 + slashpos - path); */
+ if(!(*dname)) {
+ perror("failed to allocate memory for dir name");
+ return 0;
+ }
+ (*dname)[1 + slashpos - path] = 0;
+ if (lastdir && !strcmp(lastdir, *dname)) {
+ /*** same as previous directory ***/
+ free (*dname);
+ *dname = lastdir;
+ return 0;
+ }
+ else {
+ /*** different directory ***/
+ if (lastdir)
+ free (lastdir);
+ lastdir = *dname;
+ return 1;
+ }
+ }
+ else {
+ /*** no directory specified ***/
+ if (lastdir) {
+ free (lastdir);
+ lastdir = NULL;
+ };
+ *dname = NULL;
+ *fname = (char *)path;
+ return 0;
+ }
+}
+
+unsigned int roundui(double val)
+{
+ double base = floor(val);
+ return (unsigned int) ((val-base) < 0.5 ? base : base + 1 );
+}
+
+void print_stat(mpg123_handle *fr, long offset, long buffsize)
+{
+ double tim1,tim2;
+ off_t rno, no;
+ double basevol, realvol;
+ char *icy;
+#ifndef WIN32
+#ifndef GENERIC
+/* Only generate new stat line when stderr is ready... don't overfill... */
+ {
+ struct timeval t;
+ fd_set serr;
+ int n,errfd = fileno(stderr);
+
+ t.tv_sec=t.tv_usec=0;
+
+ FD_ZERO(&serr);
+ FD_SET(errfd,&serr);
+ n = select(errfd+1,NULL,&serr,NULL,&t);
+ if(n <= 0) return;
+ }
+#endif
+#endif
+ if( MPG123_OK == mpg123_position(fr, offset, buffsize, &no, &rno, &tim1, &tim2)
+ && MPG123_OK == mpg123_getvolume(fr, &basevol, &realvol, NULL) )
+ {
+ fprintf(stderr, "\rFrame# %5"OFF_P" [%5"OFF_P"], Time: %02lu:%02u.%02u [%02u:%02u.%02u], RVA:%6s, Vol: %3u(%3u)",
+ (off_p)no, (off_p)rno,
+ (unsigned long) tim1/60, (unsigned int)tim1%60, (unsigned int)(tim1*100)%100,
+ (unsigned int)tim2/60, (unsigned int)tim2%60, (unsigned int)(tim2*100)%100,
+ rva_name[param.rva], roundui(basevol*100), roundui(realvol*100) );
+ if(param.usebuffer) fprintf(stderr,", [%8ld] ",(long)buffsize);
+ }
+ /* Check for changed tags here too? */
+ if( mpg123_meta_check(fr) & MPG123_NEW_ICY && MPG123_OK == mpg123_icy(fr, &icy) )
+ fprintf(stderr, "\nICY-META: %s\n", icy);
+}
+
+void clear_stat()
+{
+ fprintf(stderr, "\r \r");
+}
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..3f1fba9
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,29 @@
+/*
+ common: anything can happen here... frame reading, output, messages
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#ifndef _MPG123_COMMON_H_
+#define _MPG123_COMMON_H_
+
+#include "mpg123app.h"
+
+void (*catchsignal(int signum, void(*handler)()))();
+
+void print_header(mpg123_handle *);
+void print_header_compact(mpg123_handle *);
+void print_stat(mpg123_handle *fr, long offset, long buffsize);
+void clear_stat();
+/* for control_generic */
+extern const char* remote_header_help;
+void print_remote_header(mpg123_handle *mh);
+void generic_sendmsg (const char *fmt, ...);
+
+int split_dir_file(const char *path, char **dname, char **fname);
+
+extern const char* rva_name[3];
+#endif
+
diff --git a/src/config.h.in b/src/config.h.in
new file mode 100755
index 0000000..da7bb35
--- /dev/null
+++ b/src/config.h.in
@@ -0,0 +1,367 @@
+/* src/config.h.in. Generated from configure.ac by autoheader. */
+
+/* Define if your architecture wants/needs/can use attribute_align_arg and
+ alignment checks. It's for 32bit x86... */
+#undef ABI_ALIGN_FUN
+
+/* Define to use proper rounding. */
+#undef ACCURATE_ROUNDING
+
+/* Define if .align takes 3 for alignment of 2^3=8 bytes instead of 8. */
+#undef ASMALIGN_EXP
+
+/* Define if __attribute__((aligned(16))) shall be used */
+#undef CCALIGN
+
+/* Define if checking of stack alignment is wanted. */
+#undef CHECK_ALIGN
+
+/* Define if debugging is enabled. */
+#undef DEBUG
+
+/* The default audio output module(s) to use */
+#undef DEFAULT_OUTPUT_MODULE
+
+/* Define if building with dynamcally linked libmpg123 */
+#undef DYNAMIC_BUILD
+
+/* Define if FIFO support is enabled. */
+#undef FIFO
+
+/* Define if frame index should be used. */
+#undef FRAME_INDEX
+
+/* Define if gapless is enabled. */
+#undef GAPLESS
+
+/* Define to 1 if you have the <Alib.h> header file. */
+#undef HAVE_ALIB_H
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#undef HAVE_ARPA_INET_H
+
+/* Define to 1 if you have the <asm/audioio.h> header file. */
+#undef HAVE_ASM_AUDIOIO_H
+
+/* Define to 1 if you have the `atoll' function. */
+#undef HAVE_ATOLL
+
+/* Define to 1 if you have the <audios.h> header file. */
+#undef HAVE_AUDIOS_H
+
+/* Define to 1 if you have the <AudioToolbox/AudioToolbox.h> header file. */
+#undef HAVE_AUDIOTOOLBOX_AUDIOTOOLBOX_H
+
+/* Define to 1 if you have the <AudioUnit/AudioUnit.h> header file. */
+#undef HAVE_AUDIOUNIT_AUDIOUNIT_H
+
+/* Define to 1 if you have the <CoreServices/CoreServices.h> header file. */
+#undef HAVE_CORESERVICES_CORESERVICES_H
+
+/* Define to 1 if you have the <CUlib.h> header file. */
+#undef HAVE_CULIB_H
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the `getaddrinfo' function. */
+#undef HAVE_GETADDRINFO
+
+/* Define to 1 if you have the `getpagesize' function. */
+#undef HAVE_GETPAGESIZE
+
+/* Define to 1 if you have the `getuid' function. */
+#undef HAVE_GETUID
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the <langinfo.h> header file. */
+#undef HAVE_LANGINFO_H
+
+/* Define to 1 if you have the `m' library (-lm). */
+#undef HAVE_LIBM
+
+/* Define to 1 if you have the `mx' library (-lmx). */
+#undef HAVE_LIBMX
+
+/* Define to 1 if you have the <limits.h> header file. */
+#undef HAVE_LIMITS_H
+
+/* Define to 1 if you have the <linux/soundcard.h> header file. */
+#undef HAVE_LINUX_SOUNDCARD_H
+
+/* Define to 1 if you have the <locale.h> header file. */
+#undef HAVE_LOCALE_H
+
+/* Define if libltdl is available */
+#undef HAVE_LTDL
+
+/* Define to 1 if you have the <machine/soundcard.h> header file. */
+#undef HAVE_MACHINE_SOUNDCARD_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the `mkfifo' function. */
+#undef HAVE_MKFIFO
+
+/* Define to 1 if you have a working `mmap' system call. */
+#undef HAVE_MMAP
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#undef HAVE_NETDB_H
+
+/* Define to 1 if you have the <netinet/in.h> header file. */
+#undef HAVE_NETINET_IN_H
+
+/* Define to 1 if you have the <netinet/tcp.h> header file. */
+#undef HAVE_NETINET_TCP_H
+
+/* Define to 1 if you have the `nl_langinfo' function. */
+#undef HAVE_NL_LANGINFO
+
+/* Define to 1 if you have the <os2me.h> header file. */
+#undef HAVE_OS2ME_H
+
+/* Define to 1 if you have the <os2.h> header file. */
+#undef HAVE_OS2_H
+
+/* Define to 1 if you have the `random' function. */
+#undef HAVE_RANDOM
+
+/* Define to 1 if you have the <sched.h> header file. */
+#undef HAVE_SCHED_H
+
+/* Define to 1 if you have the `sched_setscheduler' function. */
+#undef HAVE_SCHED_SETSCHEDULER
+
+/* Define to 1 if you have the `setlocale' function. */
+#undef HAVE_SETLOCALE
+
+/* Define to 1 if you have the `setpriority' function. */
+#undef HAVE_SETPRIORITY
+
+/* Define to 1 if you have the `setuid' function. */
+#undef HAVE_SETUID
+
+/* Define to 1 if you have the <signal.h> header file. */
+#undef HAVE_SIGNAL_H
+
+/* Define to 1 if you have the <sndio.h> header file. */
+#undef HAVE_SNDIO_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdio.h> header file. */
+#undef HAVE_STDIO_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the `strdup' function. */
+#undef HAVE_STRDUP
+
+/* Define to 1 if you have the `strerror' function. */
+#undef HAVE_STRERROR
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sun/audioio.h> header file. */
+#undef HAVE_SUN_AUDIOIO_H
+
+/* Define to 1 if you have the <sys/audioio.h> header file. */
+#undef HAVE_SYS_AUDIOIO_H
+
+/* Define to 1 if you have the <sys/audio.h> header file. */
+#undef HAVE_SYS_AUDIO_H
+
+/* Define to 1 if you have the <sys/ioctl.h> header file. */
+#undef HAVE_SYS_IOCTL_H
+
+/* Define to 1 if you have the <sys/param.h> header file. */
+#undef HAVE_SYS_PARAM_H
+
+/* Define to 1 if you have the <sys/resource.h> header file. */
+#undef HAVE_SYS_RESOURCE_H
+
+/* Define to 1 if you have the <sys/signal.h> header file. */
+#undef HAVE_SYS_SIGNAL_H
+
+/* Define to 1 if you have the <sys/socket.h> header file. */
+#undef HAVE_SYS_SOCKET_H
+
+/* Define to 1 if you have the <sys/soundcard.h> header file. */
+#undef HAVE_SYS_SOUNDCARD_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/time.h> header file. */
+#undef HAVE_SYS_TIME_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Define to 1 if you have the <sys/wait.h> header file. */
+#undef HAVE_SYS_WAIT_H
+
+/* Define this if you have the POSIX termios library */
+#undef HAVE_TERMIOS
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the <windows.h> header file. */
+#undef HAVE_WINDOWS_H
+
+/* Define to indicate that float storage follows IEEE754. */
+#undef IEEE_FLOAT
+
+/* size of the frame index seek table */
+#undef INDEX_SIZE
+
+/* Define if IPV6 support is enabled. */
+#undef IPV6
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+ */
+#undef LT_OBJDIR
+
+/* Define if network support is enabled. */
+#undef NETWORK
+
+/* Define to disable 16 bit integer output. */
+#undef NO_16BIT
+
+/* Define to disable 32 bit integer output. */
+#undef NO_32BIT
+
+/* Define to disable 8 bit integer output. */
+#undef NO_8BIT
+
+/* Define to disable downsampled decoding. */
+#undef NO_DOWNSAMPLE
+
+/* Define to disable error messages in combination with a return value (the
+ return is left intact). */
+#undef NO_ERETURN
+
+/* Define to disable error messages. */
+#undef NO_ERROR
+
+/* Define to disable feeder and buffered readers. */
+#undef NO_FEEDER
+
+/* Define to disable ICY handling. */
+#undef NO_ICY
+
+/* Define to disable ID3v2 parsing. */
+#undef NO_ID3V2
+
+/* Define to disable layer I. */
+#undef NO_LAYER1
+
+/* Define to disable layer II. */
+#undef NO_LAYER2
+
+/* Define to disable layer III. */
+#undef NO_LAYER3
+
+/* Define to disable ntom resampling. */
+#undef NO_NTOM
+
+/* Define to disable real output. */
+#undef NO_REAL
+
+/* Define to disable string functions. */
+#undef NO_STRING
+
+/* Define to disable warning messages. */
+#undef NO_WARNING
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define if portaudio v18 API is wanted. */
+#undef PORTAUDIO18
+
+/* The size of `int32_t', as computed by sizeof. */
+#undef SIZEOF_INT32_T
+
+/* The size of `long', as computed by sizeof. */
+#undef SIZEOF_LONG
+
+/* The size of `off_t', as computed by sizeof. */
+#undef SIZEOF_OFF_T
+
+/* The size of `size_t', as computed by sizeof. */
+#undef SIZEOF_SIZE_T
+
+/* The size of `ssize_t', as computed by sizeof. */
+#undef SIZEOF_SSIZE_T
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Define if modules are enabled */
+#undef USE_MODULES
+
+/* Version number of package */
+#undef VERSION
+
+/* Number of bits in a file offset, on hosts where this is settable. */
+#undef _FILE_OFFSET_BITS
+
+/* Define for large files, on AIX-style hosts. */
+#undef _LARGE_FILES
+
+/* Define to empty if `const' does not conform to ANSI C. */
+#undef const
+
+/* Define to `__inline__' or `__inline' if that's what the C compiler
+ calls it, or to nothing if 'inline' is not supported under any name. */
+#ifndef __cplusplus
+#undef inline
+#endif
+
+/* Define to `short' if <sys/types.h> does not define. */
+#undef int16_t
+
+/* Define to `int' if <sys/types.h> does not define. */
+#undef int32_t
+
+/* Define to `long int' if <sys/types.h> does not define. */
+#undef off_t
+
+/* Define to `unsigned long' if <sys/types.h> does not define. */
+#undef size_t
+
+/* Define to `long' if <sys/types.h> does not define. */
+#undef ssize_t
+
+/* Define to `unsigned short' if <sys/types.h> does not define. */
+#undef uint16_t
+
+/* Define to `unsigned int' if <sys/types.h> does not define. */
+#undef uint32_t
diff --git a/src/control_generic.c b/src/control_generic.c
new file mode 100644
index 0000000..e32a9db
--- /dev/null
+++ b/src/control_generic.c
@@ -0,0 +1,714 @@
+/*
+ control_generic.c: control interface for frontends and real console warriors
+
+ copyright 1997-99,2004-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Andreas Neuhaus and Michael Hipp
+ reworked by Thomas Orgis - it was the entry point for eventually becoming maintainer...
+*/
+
+#include "mpg123app.h"
+#include <stdarg.h>
+#ifndef WIN32
+#include <sys/wait.h>
+#include <sys/socket.h>
+#else
+#include <winsock.h>
+#endif
+#include <fcntl.h>
+#include <errno.h>
+#include <string.h>
+
+#include "common.h"
+#include "buffer.h"
+#include "genre.h"
+#define MODE_STOPPED 0
+#define MODE_PLAYING 1
+#define MODE_PAUSED 2
+
+extern int buffer_pid;
+#ifdef FIFO
+#include <sys/stat.h>
+int control_file = STDIN_FILENO;
+#else
+#define control_file STDIN_FILENO
+#endif
+FILE *outstream;
+static int mode = MODE_STOPPED;
+static int init = 0;
+
+#include "debug.h"
+
+void generic_sendmsg (const char *fmt, ...)
+{
+ va_list ap;
+ fprintf(outstream, "@");
+ va_start(ap, fmt);
+ vfprintf(outstream, fmt, ap);
+ va_end(ap);
+ fprintf(outstream, "\n");
+}
+
+/* Split up a number of lines separated by \n, \r, both or just zero byte
+ and print out each line with specified prefix. */
+static void generic_send_lines(const char* fmt, mpg123_string *inlines)
+{
+ size_t i;
+ int hadcr = 0, hadlf = 0;
+ char *lines = NULL;
+ char *line = NULL;
+ size_t len = 0;
+
+ if(inlines != NULL && inlines->fill)
+ {
+ lines = inlines->p;
+ len = inlines->fill;
+ }
+ else return;
+
+ line = lines;
+ for(i=0; i<len; ++i)
+ {
+ if(lines[i] == '\n' || lines[i] == '\r' || lines[i] == 0)
+ {
+ char save = lines[i]; /* saving, changing, restoring a byte in the data */
+ if(save == '\n') ++hadlf;
+ if(save == '\r') ++hadcr;
+ if((hadcr || hadlf) && hadlf % 2 == 0 && hadcr % 2 == 0) line = "";
+
+ if(line)
+ {
+ lines[i] = 0;
+ generic_sendmsg(fmt, line);
+ line = NULL;
+ lines[i] = save;
+ }
+ }
+ else
+ {
+ hadlf = hadcr = 0;
+ if(line == NULL) line = lines+i;
+ }
+ }
+}
+
+void generic_sendstat (mpg123_handle *fr)
+{
+ off_t current_frame, frames_left;
+ double current_seconds, seconds_left;
+ if(!mpg123_position(fr, 0, xfermem_get_usedspace(buffermem), &current_frame, &frames_left, &current_seconds, &seconds_left))
+ generic_sendmsg("F %"OFF_P" %"OFF_P" %3.2f %3.2f", (off_p)current_frame, (off_p)frames_left, current_seconds, seconds_left);
+}
+
+static void generic_sendv1(mpg123_id3v1 *v1, const char *prefix)
+{
+ int i;
+ char info[125] = "";
+ memcpy(info, v1->title, 30);
+ memcpy(info+30, v1->artist, 30);
+ memcpy(info+60, v1->album, 30);
+ memcpy(info+90, v1->year, 4);
+ memcpy(info+94, v1->comment, 30);
+
+ for(i=0;i<124; ++i) if(info[i] == 0) info[i] = ' ';
+ info[i] = 0;
+ generic_sendmsg("%s ID3:%s%s", prefix, info, (v1->genre<=genre_count) ? genre_table[v1->genre] : "Unknown");
+ generic_sendmsg("%s ID3.genre:%i", prefix, v1->genre);
+ if(v1->comment[28] == 0 && v1->comment[29] != 0)
+ generic_sendmsg("%s ID3.track:%i", prefix, (unsigned char)v1->comment[29]);
+}
+
+static void generic_sendinfoid3(mpg123_handle *mh)
+{
+ mpg123_id3v1 *v1;
+ mpg123_id3v2 *v2;
+ if(MPG123_OK != mpg123_id3(mh, &v1, &v2))
+ {
+ error1("Cannot get ID3 data: %s", mpg123_strerror(mh));
+ return;
+ }
+ if(v1 != NULL)
+ {
+ generic_sendv1(v1, "I");
+ }
+ if(v2 != NULL)
+ {
+ generic_send_lines("I ID3v2.title:%s", v2->title);
+ generic_send_lines("I ID3v2.artist:%s", v2->artist);
+ generic_send_lines("I ID3v2.album:%s", v2->album);
+ generic_send_lines("I ID3v2.year:%s", v2->year);
+ generic_send_lines("I ID3v2.comment:%s", v2->comment);
+ generic_send_lines("I ID3v2.genre:%s", v2->genre);
+ }
+}
+
+void generic_sendalltag(mpg123_handle *mh)
+{
+ mpg123_id3v1 *v1;
+ mpg123_id3v2 *v2;
+ generic_sendmsg("T {");
+ if(MPG123_OK != mpg123_id3(mh, &v1, &v2))
+ {
+ error1("Cannot get ID3 data: %s", mpg123_strerror(mh));
+ v2 = NULL;
+ v1 = NULL;
+ }
+ if(v1 != NULL) generic_sendv1(v1, "T");
+
+ if(v2 != NULL)
+ {
+ size_t i;
+ for(i=0; i<v2->texts; ++i)
+ {
+ char id[5];
+ memcpy(id, v2->text[i].id, 4);
+ id[4] = 0;
+ generic_sendmsg("T ID3v2.%s:", id);
+ generic_send_lines("T =%s", &v2->text[i].text);
+ }
+ for(i=0; i<v2->extras; ++i)
+ {
+ char id[5];
+ memcpy(id, v2->extra[i].id, 4);
+ id[4] = 0;
+ generic_sendmsg("T ID3v2.%s desc(%s):",
+ id,
+ v2->extra[i].description.fill ? v2->extra[i].description.p : "" );
+ generic_send_lines("T =%s", &v2->extra[i].text);
+ }
+ for(i=0; i<v2->comments; ++i)
+ {
+ char id[5];
+ char lang[4];
+ memcpy(id, v2->comment_list[i].id, 4);
+ id[4] = 0;
+ memcpy(lang, v2->comment_list[i].lang, 3);
+ lang[3] = 0;
+ generic_sendmsg("T ID3v2.%s lang(%s) desc(%s):",
+ id, lang,
+ v2->comment_list[i].description.fill ? v2->comment_list[i].description.p : "");
+ generic_send_lines("T =%s", &v2->comment_list[i].text);
+ }
+ }
+ generic_sendmsg("T }");
+}
+
+void generic_sendinfo (char *filename)
+{
+ char *s, *t;
+ s = strrchr(filename, '/');
+ if (!s)
+ s = filename;
+ else
+ s++;
+ t = strrchr(s, '.');
+ if (t)
+ *t = 0;
+ generic_sendmsg("I %s", s);
+}
+
+static void generic_load(mpg123_handle *fr, char *arg, int state)
+{
+ if(param.usebuffer)
+ {
+ buffer_resync();
+ if(mode == MODE_PAUSED && state != MODE_PAUSED) buffer_start();
+ }
+ if(mode != MODE_STOPPED)
+ {
+ close_track();
+ mode = MODE_STOPPED;
+ }
+ if(!open_track(arg))
+ {
+ generic_sendmsg("E Error opening stream: %s", arg);
+ generic_sendmsg("P 0");
+ return;
+ }
+ mpg123_seek(fr, 0, SEEK_SET); /* This finds ID3v2 at beginning. */
+ if(mpg123_meta_check(fr) & MPG123_NEW_ID3) generic_sendinfoid3(fr);
+ else generic_sendinfo(arg);
+
+ if(htd.icy_name.fill) generic_sendmsg("I ICY-NAME: %s", htd.icy_name.p);
+ if(htd.icy_url.fill) generic_sendmsg("I ICY-URL: %s", htd.icy_url.p);
+
+ mode = state;
+ init = 1;
+ generic_sendmsg(mode == MODE_PAUSED ? "P 1" : "P 2");
+}
+
+int control_generic (mpg123_handle *fr)
+{
+ struct timeval tv;
+ fd_set fds;
+ int n;
+
+ /* ThOr */
+ char alive = 1;
+ char silent = 0;
+
+ /* responses to stderr for frontends needing audio data from stdout */
+ if (param.remote_err)
+ outstream = stderr;
+ else
+ outstream = stdout;
+
+#ifndef WIN32
+ setlinebuf(outstream);
+#else /* perhaps just use setvbuf as it's C89 */
+ fprintf(outstream, "You are on Win32 and want to use the control interface... tough luck: We need a replacement for select on STDIN first.\n");
+ return 0;
+ setvbuf(outstream, (char*)NULL, _IOLBF, 0);
+#endif
+ /* the command behaviour is different, so is the ID */
+ /* now also with version for command availability */
+ fprintf(outstream, "@R MPG123 (ThOr) v5\n");
+#ifdef FIFO
+ if(param.fifo)
+ {
+ if(param.fifo[0] == 0)
+ {
+ error("You wanted an empty FIFO name??");
+ return 1;
+ }
+ unlink(param.fifo);
+ if(mkfifo(param.fifo, 0666) == -1)
+ {
+ error2("Failed to create FIFO at %s (%s)", param.fifo, strerror(errno));
+ return 1;
+ }
+ debug("going to open named pipe ... blocking until someone gives command");
+ control_file = open(param.fifo,O_RDONLY);
+ debug("opened");
+ }
+#endif
+
+ while (alive)
+ {
+ tv.tv_sec = 0;
+ tv.tv_usec = 0;
+ FD_ZERO(&fds);
+ FD_SET(control_file, &fds);
+ /* play frame if no command needs to be processed */
+ if (mode == MODE_PLAYING) {
+ n = select(32, &fds, NULL, NULL, &tv);
+ if (n == 0) {
+ if (!play_frame())
+ {
+ /* When the track ended, user may want to keep it open (to seek back),
+ so there is a decision between stopping and pausing at the end. */
+ if(param.keep_open)
+ {
+ mode = MODE_PAUSED;
+ /* Hm, buffer should be stopped already, shouldn't it? */
+ if(param.usebuffer) buffer_stop();
+ generic_sendmsg("P 1");
+ }
+ else
+ {
+ mode = MODE_STOPPED;
+ close_track();
+ generic_sendmsg("P 0");
+ }
+ continue;
+ }
+ if (init) {
+ print_remote_header(fr);
+ init = 0;
+ }
+ if(silent == 0)
+ {
+ generic_sendstat(fr);
+ if(mpg123_meta_check(fr) & MPG123_NEW_ICY)
+ {
+ char *meta;
+ if(mpg123_icy(fr, &meta) == MPG123_OK)
+ generic_sendmsg("I ICY-META: %s", meta != NULL ? meta : "<nil>");
+ }
+ }
+ }
+ }
+ else {
+ /* wait for command */
+ while (1) {
+ n = select(32, &fds, NULL, NULL, NULL);
+ if (n > 0)
+ break;
+ }
+ }
+
+ /* on error */
+ if (n < 0) {
+ fprintf(stderr, "Error waiting for command: %s\n", strerror(errno));
+ return 1;
+ }
+
+ /* read & process commands */
+ if (n > 0)
+ {
+ short int len = 1; /* length of buffer */
+ char *cmd, *arg; /* variables for parsing, */
+ char *comstr = NULL; /* gcc thinks that this could be used uninitialited... */
+ char buf[REMOTE_BUFFER_SIZE];
+ short int counter;
+ char *next_comstr = buf; /* have it initialized for first command */
+
+ /* read as much as possible, maybe multiple commands */
+ /* When there is nothing to read (EOF) or even an error, it is the end */
+ if((len = read(control_file, buf, REMOTE_BUFFER_SIZE)) < 1)
+ {
+#ifdef FIFO
+ if(len == 0 && param.fifo)
+ {
+ debug("fifo ended... reopening");
+ close(control_file);
+ control_file = open(param.fifo,O_RDONLY|O_NONBLOCK);
+ if(control_file < 0){ error1("open of fifo failed... %s", strerror(errno)); break; }
+ continue;
+ }
+#endif
+ if(len < 0) error1("command read error: %s", strerror(errno));
+ break;
+ }
+
+ debug1("read %i bytes of commands", len);
+ /* one command on a line - separation by \n -> C strings in a row */
+ for(counter = 0; counter < len; ++counter)
+ {
+ /* line end is command end */
+ if( (buf[counter] == '\n') || (buf[counter] == '\r') )
+ {
+ debug1("line end at counter=%i", counter);
+ buf[counter] = 0; /* now it's a properly ending C string */
+ comstr = next_comstr;
+
+ /* skip the additional line ender of \r\n or \n\r */
+ if( (counter < (len - 1)) && ((buf[counter+1] == '\n') || (buf[counter+1] == '\r')) ) buf[++counter] = 0;
+
+ /* next "real" char is first of next command */
+ next_comstr = buf + counter+1;
+
+ /* directly process the command now */
+ debug1("interpreting command: %s", comstr);
+ if(strlen(comstr) == 0) continue;
+
+ /* PAUSE */
+ if (!strcasecmp(comstr, "P") || !strcasecmp(comstr, "PAUSE")) {
+ if(mode != MODE_STOPPED)
+ {
+ if (mode == MODE_PLAYING) {
+ mode = MODE_PAUSED;
+ if(param.usebuffer) buffer_stop();
+ generic_sendmsg("P 1");
+ } else {
+ mode = MODE_PLAYING;
+ if(param.usebuffer) buffer_start();
+ generic_sendmsg("P 2");
+ }
+ } else generic_sendmsg("P 0");
+ continue;
+ }
+
+ /* STOP */
+ if (!strcasecmp(comstr, "S") || !strcasecmp(comstr, "STOP")) {
+ if (mode != MODE_STOPPED) {
+ if(param.usebuffer)
+ {
+ buffer_stop();
+ buffer_resync();
+ }
+ close_track();
+ mode = MODE_STOPPED;
+ generic_sendmsg("P 0");
+ } else generic_sendmsg("P 0");
+ continue;
+ }
+
+ /* SILENCE */
+ if(!strcasecmp(comstr, "SILENCE")) {
+ silent = 1;
+ generic_sendmsg("silence");
+ continue;
+ }
+
+ if(!strcasecmp(comstr, "T") || !strcasecmp(comstr, "TAG")) {
+ generic_sendalltag(fr);
+ continue;
+ }
+
+ if(!strcasecmp(comstr, "SCAN"))
+ {
+ if(mode != MODE_STOPPED)
+ {
+ if(mpg123_scan(fr) == MPG123_OK)
+ generic_sendmsg("SCAN done");
+ else
+ generic_sendmsg("E %s", mpg123_strerror(fr));
+ }
+ else generic_sendmsg("E No track loaded!");
+
+ continue;
+ }
+
+ if(!strcasecmp(comstr, "SAMPLE"))
+ {
+ off_t pos = mpg123_tell(fr);
+ off_t len = mpg123_length(fr);
+ /* I need to have portable printf specifiers that do not truncate the type... more autoconf... */
+ generic_sendmsg("SAMPLE %li %li", (long)pos, (long)len);
+ continue;
+ }
+
+ if(!strcasecmp(comstr, "SHOWEQ"))
+ {
+ int i;
+ generic_sendmsg("SHOWEQ {");
+ for(i=0; i<32; ++i)
+ {
+ generic_sendmsg("SHOWEQ %i : %i : %f", MPG123_LEFT, i, mpg123_geteq(fr, MPG123_LEFT, i));
+ generic_sendmsg("SHOWEQ %i : %i : %f", MPG123_RIGHT, i, mpg123_geteq(fr, MPG123_RIGHT, i));
+ }
+ generic_sendmsg("SHOWEQ }");
+ continue;
+ }
+
+ if(!strcasecmp(comstr, "STATE"))
+ {
+ long val;
+ generic_sendmsg("STATE {");
+ /* Get some state information bits and display them. */
+ if(mpg123_getstate(fr, MPG123_ACCURATE, &val, NULL) == MPG123_OK)
+ generic_sendmsg("STATE accurate %li", val);
+
+ generic_sendmsg("STATE }");
+ continue;
+ }
+
+ /* QUIT */
+ if (!strcasecmp(comstr, "Q") || !strcasecmp(comstr, "QUIT")){
+ alive = FALSE; continue;
+ }
+
+ /* some HELP */
+ if (!strcasecmp(comstr, "H") || !strcasecmp(comstr, "HELP")) {
+ generic_sendmsg("H {");
+ generic_sendmsg("H HELP/H: command listing (LONG/SHORT forms), command case insensitve");
+ generic_sendmsg("H LOAD/L <trackname>: load and start playing resource <trackname>");
+ generic_sendmsg("H LOADPAUSED/LP <trackname>: load but do not start playing resource <trackname>");
+ generic_sendmsg("H PAUSE/P: pause playback");
+ generic_sendmsg("H STOP/S: stop playback (closes file)");
+ generic_sendmsg("H JUMP/J <frame>|<+offset>|<-offset>|<[+|-]seconds>s: jump to mpeg frame <frame> or change position by offset, same in seconds if number followed by \"s\"");
+ generic_sendmsg("H VOLUME/V <percent>: set volume in % (0..100...); float value");
+ generic_sendmsg("H RVA off|(mix|radio)|(album|audiophile): set rva mode");
+ generic_sendmsg("H EQ/E <channel> <band> <value>: set equalizer value for frequency band 0 to 31 on channel %i (left) or %i (right) or %i (both)", MPG123_LEFT, MPG123_RIGHT, MPG123_LR);
+ generic_sendmsg("H EQFILE <filename>: load EQ settings from a file");
+ generic_sendmsg("H SHOWEQ: show all equalizer settings (as <channel> <band> <value> lines in a SHOWEQ block (like TAG))");
+ generic_sendmsg("H SEEK/K <sample>|<+offset>|<-offset>: jump to output sample position <samples> or change position by offset");
+ generic_sendmsg("H SCAN: scan through the file, building seek index");
+ generic_sendmsg("H SAMPLE: print out the sample position and total number of samples");
+ generic_sendmsg("H SEQ <bass> <mid> <treble>: simple eq setting...");
+ generic_sendmsg("H SILENCE: be silent during playback (meaning silence in text form)");
+ generic_sendmsg("H STATE: Print auxilliary state info in several lines (just try it to see what info is there).");
+ generic_sendmsg("H TAG/T: Print all available (ID3) tag info, for ID3v2 that gives output of all collected text fields, using the ID3v2.3/4 4-character names.");
+ generic_sendmsg("H The output is multiple lines, begin marked by \"@T {\", end by \"@T }\".");
+ generic_sendmsg("H ID3v1 data is like in the @I info lines (see below), just with \"@T\" in front.");
+ generic_sendmsg("H An ID3v2 data field is introduced via ([ ... ] means optional):");
+ generic_sendmsg("H @T ID3v2.<NAME>[ [lang(<LANG>)] desc(<description>)]:");
+ generic_sendmsg("H The lines of data follow with \"=\" prefixed:");
+ generic_sendmsg("H @T =<one line of content in UTF-8 encoding>");
+ generic_sendmsg("H meaning of the @S stream info:");
+ generic_sendmsg("H %s", remote_header_help);
+ generic_sendmsg("H The @I lines after loading a track give some ID3 info, the format:");
+ generic_sendmsg("H @I ID3:artist album year comment genretext");
+ generic_sendmsg("H where artist,album and comment are exactly 30 characters each, year is 4 characters, genre text unspecified.");
+ generic_sendmsg("H You will encounter \"@I ID3.genre:<number>\" and \"@I ID3.track:<number>\".");
+ generic_sendmsg("H Then, there is an excerpt of ID3v2 info in the structure");
+ generic_sendmsg("H @I ID3v2.title:Blabla bla Bla");
+ generic_sendmsg("H for every line of the \"title\" data field. Likewise for other fields (author, album, etc).");
+ generic_sendmsg("H }");
+ continue;
+ }
+
+ /* commands with arguments */
+ cmd = NULL;
+ arg = NULL;
+ cmd = strtok(comstr," \t"); /* get the main command */
+ arg = strtok(NULL,""); /* get the args */
+
+ if (cmd && strlen(cmd) && arg && strlen(arg))
+ {
+ /* Simple EQ: SEQ <BASS> <MID> <TREBLE> */
+ if (!strcasecmp(cmd, "SEQ")) {
+ double b,m,t;
+ int cn;
+ if(sscanf(arg, "%lf %lf %lf", &b, &m, &t) == 3)
+ {
+ /* Consider adding mpg123_seq()... but also, on could define a nicer courve for that. */
+ if ((t >= 0) && (t <= 3))
+ for(cn=0; cn < 1; ++cn) mpg123_eq(fr, MPG123_LEFT|MPG123_RIGHT, cn, b);
+
+ if ((m >= 0) && (m <= 3))
+ for(cn=1; cn < 2; ++cn) mpg123_eq(fr, MPG123_LEFT|MPG123_RIGHT, cn, m);
+
+ if ((b >= 0) && (b <= 3))
+ for(cn=2; cn < 32; ++cn) mpg123_eq(fr, MPG123_LEFT|MPG123_RIGHT, cn, t);
+
+ generic_sendmsg("bass: %f mid: %f treble: %f", b, m, t);
+ }
+ else generic_sendmsg("E invalid arguments for SEQ: %s", arg);
+ continue;
+ }
+
+ /* Equalizer control :) (JMG) */
+ if (!strcasecmp(cmd, "E") || !strcasecmp(cmd, "EQ")) {
+ double e; /* ThOr: equalizer is of type real... whatever that is */
+ int c, v;
+ /*generic_sendmsg("%s",updown);*/
+ if(sscanf(arg, "%i %i %lf", &c, &v, &e) == 3)
+ {
+ if(mpg123_eq(fr, c, v, e) == MPG123_OK)
+ generic_sendmsg("%i : %i : %f", c, v, e);
+ else
+ generic_sendmsg("E failed to set eq: %s", mpg123_strerror(fr));
+ }
+ else generic_sendmsg("E invalid arguments for EQ: %s", arg);
+ continue;
+ }
+
+ if(!strcasecmp(cmd, "EQFILE"))
+ {
+ equalfile = arg;
+ if(load_equalizer(fr) == 0)
+ generic_sendmsg("EQFILE done");
+ else
+ generic_sendmsg("E failed to parse given eq file");
+
+ continue;
+ }
+
+ /* SEEK to a sample offset */
+ if(!strcasecmp(cmd, "K") || !strcasecmp(cmd, "SEEK"))
+ {
+ off_t soff;
+ char *spos = arg;
+ int whence = SEEK_SET;
+ if(mode == MODE_STOPPED)
+ {
+ generic_sendmsg("E No track loaded!");
+ continue;
+ }
+
+ soff = (off_t) atobigint(spos);
+ if(spos[0] == '-' || spos[0] == '+') whence = SEEK_CUR;
+ if(0 > (soff = mpg123_seek(fr, soff, whence)))
+ {
+ generic_sendmsg("E Error while seeking: %s", mpg123_strerror(fr));
+ mpg123_seek(fr, 0, SEEK_SET);
+ }
+ if(param.usebuffer) buffer_resync();
+
+ generic_sendmsg("K %li", (long)mpg123_tell(fr));
+ continue;
+ }
+ /* JUMP */
+ if (!strcasecmp(cmd, "J") || !strcasecmp(cmd, "JUMP")) {
+ char *spos;
+ off_t offset;
+ double secs;
+
+ spos = arg;
+ if(mode == MODE_STOPPED)
+ {
+ generic_sendmsg("E No track loaded!");
+ continue;
+ }
+
+ if(spos[strlen(spos)-1] == 's' && sscanf(arg, "%lf", &secs) == 1) offset = mpg123_timeframe(fr, secs);
+ else offset = atol(spos);
+ /* totally replaced that stuff - it never fully worked
+ a bit usure about why +pos -> spos+1 earlier... */
+ if (spos[0] == '-' || spos[0] == '+') offset += framenum;
+
+ if(0 > (framenum = mpg123_seek_frame(fr, offset, SEEK_SET)))
+ {
+ generic_sendmsg("E Error while seeking");
+ mpg123_seek_frame(fr, 0, SEEK_SET);
+ }
+ if(param.usebuffer) buffer_resync();
+
+ generic_sendmsg("J %d", framenum);
+ continue;
+ }
+
+ /* VOLUME in percent */
+ if(!strcasecmp(cmd, "V") || !strcasecmp(cmd, "VOLUME"))
+ {
+ double v;
+ mpg123_volume(fr, atof(arg)/100);
+ mpg123_getvolume(fr, &v, NULL, NULL); /* Necessary? */
+ generic_sendmsg("V %f%%", v * 100);
+ continue;
+ }
+
+ /* RVA mode */
+ if(!strcasecmp(cmd, "RVA"))
+ {
+ if(!strcasecmp(arg, "off")) param.rva = MPG123_RVA_OFF;
+ else if(!strcasecmp(arg, "mix") || !strcasecmp(arg, "radio")) param.rva = MPG123_RVA_MIX;
+ else if(!strcasecmp(arg, "album") || !strcasecmp(arg, "audiophile")) param.rva = MPG123_RVA_ALBUM;
+ mpg123_volume_change(fr, 0.);
+ generic_sendmsg("RVA %s", rva_name[param.rva]);
+ continue;
+ }
+
+ /* LOAD - actually play */
+ if (!strcasecmp(cmd, "L") || !strcasecmp(cmd, "LOAD")){ generic_load(fr, arg, MODE_PLAYING); continue; }
+
+ /* LOADPAUSED */
+ if (!strcasecmp(cmd, "LP") || !strcasecmp(cmd, "LOADPAUSED")){ generic_load(fr, arg, MODE_PAUSED); continue; }
+
+ /* no command matched */
+ generic_sendmsg("E Unknown command: %s", cmd); /* unknown command */
+ } /* end commands with arguments */
+ else generic_sendmsg("E Unknown command or no arguments: %s", comstr); /* unknown command */
+
+ } /* end of single command processing */
+ } /* end of scanning the command buffer */
+
+ /*
+ when last command had no \n... should I discard it?
+ Ideally, I should remember the part and wait for next
+ read() to get the rest up to a \n. But that can go
+ to infinity. Too long commands too quickly are just
+ bad. Cannot/Won't change that. So, discard the unfinished
+ command and have fingers crossed that the rest of this
+ unfinished one qualifies as "unknown".
+ */
+ if(buf[len-1] != 0)
+ {
+ char lasti = buf[len-1];
+ buf[len-1] = 0;
+ generic_sendmsg("E Unfinished command: %s%c", comstr, lasti);
+ }
+ } /* end command reading & processing */
+ } /* end main (alive) loop */
+ debug("going to end");
+ /* quit gracefully */
+#ifndef NOXFERMEM
+ if (param.usebuffer) {
+ kill(buffer_pid, SIGINT);
+ xfermem_done_writer(buffermem);
+ waitpid(buffer_pid, NULL, 0);
+ xfermem_done(buffermem);
+ }
+#endif
+ debug("closing control");
+#ifdef FIFO
+ close(control_file); /* be it FIFO or STDIN */
+ if(param.fifo) unlink(param.fifo);
+#endif
+ debug("control_generic returning");
+ return 0;
+}
+
+/* EOF */
diff --git a/src/equalizer.c b/src/equalizer.c
new file mode 100644
index 0000000..ecce78b
--- /dev/null
+++ b/src/equalizer.c
@@ -0,0 +1,48 @@
+/*
+ equalizer: code for loading equalizer settings
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp (exported to this file by Thomas Orgis)
+*/
+
+#include "mpg123app.h"
+
+/* Load the settings from the path in the global variable equalfile.
+ If there is no file, restore equalizer defaults. */
+int load_equalizer(mpg123_handle *mh)
+{
+ if(equalfile != NULL)
+ { /* tst; ThOr: not TRUE or FALSE: allocated or not... */
+ FILE *fe;
+ int i;
+ fe = fopen(equalfile,"r");
+ if(fe) {
+ char line[256];
+ for(i=0;i<32;i++) {
+ float e0 = 1.0;
+ float e1 = 1.0; /* %f -> float! */
+ do /* ignore comments */
+ {
+ line[0]=0;
+ fgets(line,255,fe);
+ }
+ while(line[0]=='#');
+ /* Hm, why not use fscanf? Comments... */
+ sscanf(line,"%f %f",&e0,&e1);
+ /* If scanning failed, we have default 1.0 value. */
+ mpg123_eq(mh, MPG123_LEFT, i, e0);
+ mpg123_eq(mh, MPG123_RIGHT, i, e1);
+ }
+ fclose(fe);
+ }
+ else
+ {
+ fprintf(stderr,"Can't open equalizer file '%s'\n",equalfile);
+ return -1;
+ }
+ }
+ else mpg123_reset_eq(mh);
+
+ return 0;
+}
diff --git a/src/genre.c b/src/genre.c
new file mode 100644
index 0000000..3b08559
--- /dev/null
+++ b/src/genre.c
@@ -0,0 +1,271 @@
+/*
+ genre: id3 genre definition
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Shane Wegner
+*/
+
+char *genre_table[] =
+{
+ "Blues",
+ "Classic Rock",
+ "Country",
+ "Dance",
+ "Disco",
+ "Funk",
+ "Grunge",
+ "Hip-Hop",
+ "Jazz",
+ "Metal",
+ "New Age",
+ "Oldies",
+ "Other",
+ "Pop",
+ "R&B",
+ "Rap",
+ "Reggae",
+ "Rock",
+ "Techno",
+ "Industrial",
+ "Alternative",
+ "Ska",
+ "Death Metal",
+ "Pranks",
+ "Soundtrack",
+ "Euro-Techno",
+ "Ambient",
+ "Trip-Hop",
+ "Vocal",
+ "Jazz+Funk",
+ "Fusion",
+ "Trance",
+ "Classical",
+ "Instrumental",
+ "Acid",
+ "House",
+ "Game",
+ "Sound Clip",
+ "Gospel",
+ "Noise",
+ "AlternRock",
+ "Bass",
+ "Soul",
+ "Punk",
+ "Space",
+ "Meditative",
+ "Instrumental Pop",
+ "Instrumental Rock",
+ "Ethnic",
+ "Gothic",
+ "Darkwave",
+ "Techno-Industrial",
+ "Electronic",
+ "Pop-Folk",
+ "Eurodance",
+ "Dream",
+ "Southern Rock",
+ "Comedy",
+ "Cult",
+ "Gangsta",
+ "Top 40",
+ "Christian Rap",
+ "Pop/Funk",
+ "Jungle",
+ "Native American",
+ "Cabaret",
+ "New Wave",
+ "Psychadelic",
+ "Rave",
+ "Showtunes",
+ "Trailer",
+ "Lo-Fi",
+ "Tribal",
+ "Acid Punk",
+ "Acid Jazz",
+ "Polka",
+ "Retro",
+ "Musical",
+ "Rock & Roll",
+ "Hard Rock",
+ "Folk",
+ "Folk/Rock",
+ "National folk",
+ "Swing",
+ "Fast-fusion",
+ "Bebob",
+ "Latin",
+ "Revival",
+ "Celtic",
+ "Bluegrass",
+ "Avantgarde",
+ "Gothic Rock",
+ "Progressive Rock",
+ "Psychedelic Rock",
+ "Symphonic Rock",
+ "Slow Rock",
+ "Big Band",
+ "Chorus",
+ "Easy Listening",
+ "Acoustic",
+ "Humour",
+ "Speech",
+ "Chanson",
+ "Opera",
+ "Chamber Music",
+ "Sonata",
+ "Symphony",
+ "Booty Bass",
+ "Primus",
+ "Porn Groove",
+ "Satire",
+ "Slow Jam",
+ "Club",
+ "Tango",
+ "Samba",
+ "Folklore",
+ "Ballad",
+ "Powder Ballad",
+ "Rhythmic Soul",
+ "Freestyle",
+ "Duet",
+ "Punk Rock",
+ "Drum Solo",
+ "A Capella",
+ "Euro-House",
+ "Dance Hall",
+ "Goa",
+ "Drum & Bass",
+ "Club House",
+ "Hardcore",
+ "Terror",
+ "Indie",
+ "BritPop",
+ "NegerPunk",
+ "Polsk Punk",
+ "Beat",
+ "Christian Gangsta",
+ "Heavy Metal",
+ "Black Metal",
+ "Crossover",
+ "Contemporary C",
+ "Christian Rock",
+ "Merengue",
+ "Salsa",
+ "Thrash Metal",
+ "Anime",
+ "JPop",
+ "SynthPop"
+/* ,
+ "Unknown",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+*/
+};
+
+const int genre_count = ((int)(sizeof(genre_table)/sizeof(char*))-1);
diff --git a/src/genre.h b/src/genre.h
new file mode 100644
index 0000000..0a493d0
--- /dev/null
+++ b/src/genre.h
@@ -0,0 +1,15 @@
+/*
+ genre: id3 genre definition
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Shane Wegner
+*/
+
+#ifndef _MPG123_GENRE_H_
+#define _MPG123_GENRE_H_
+
+extern char *genre_table[];
+extern const int genre_count;
+
+#endif
diff --git a/src/getlopt.c b/src/getlopt.c
new file mode 100644
index 0000000..2296886
--- /dev/null
+++ b/src/getlopt.c
@@ -0,0 +1,148 @@
+/*
+ getlopt: command line option/parameter parsing
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written Oliver Fromme
+ old timestamp: Tue Apr 8 07:15:13 MET DST 1997
+*/
+
+#include <stdio.h>
+#include "config.h"
+#include "getlopt.h"
+#include "compat.h"
+#include "debug.h"
+
+int loptind = 1; /* index in argv[] */
+int loptchr = 0; /* index in argv[loptind] */
+char *loptarg; /* points to argument if present, else to option */
+
+topt *findopt (int islong, char *opt, topt *opts)
+{
+ if (!opts)
+ return (0);
+ while (opts->lname) {
+ if (islong) {
+ if (!strcmp(opts->lname, opt))
+ return (opts);
+ }
+ else
+ if (opts->sname == *opt)
+ return (opts);
+ opts++;
+ }
+ return (0);
+}
+
+int performoption (int argc, char *argv[], topt *opt)
+{
+ int result = GLO_CONTINUE;
+ /* this really is not supposed to happen, so the exit may be justified to create asap ficing pressure */
+ #define prog_error() \
+ { \
+ fprintf(stderr, __FILE__ ":%i Option without type flag! This is a programming error! Developer: fix this ASAP to regain your honor.\n", __LINE__); \
+ exit(1); \
+ }
+
+ if (!(opt->flags & GLO_ARG)) { /* doesn't take argument */
+ if (opt->var) {
+ if (opt->flags & GLO_CHAR) /* var is *char */
+ {
+ debug1("char at %p", opt->var);
+ *((char *) opt->var) = (char) opt->value;\
+ }
+ else if(opt->flags & GLO_LONG)
+ {
+ debug1("long at %p", opt->var);
+ *( (long *) opt->var ) = opt->value;
+ }
+ else if(opt->flags & GLO_INT)
+ {
+ debug1("int at %p", opt->var);
+ *( (int *) opt->var ) = (int) opt->value;
+ }
+ /* GLO_DOUBLE is not supported here */
+ else prog_error();
+
+ debug("casting assignment done");
+ }
+ else
+ result = opt->value ? opt->value : opt->sname;
+ }
+ else { /* requires argument */
+ if (loptind >= argc)
+ return (GLO_NOARG);
+ loptarg = argv[loptind++]+loptchr;
+ loptchr = 0;
+ if (opt->var) {
+ if (opt->flags & GLO_CHAR) /* var is *char */
+ *((char **) opt->var) = strdup(loptarg); /* valgrind claims lost memory here */
+ else if(opt->flags & GLO_LONG)
+ *((long *) opt->var) = atol(loptarg);
+ else if(opt->flags & GLO_INT)
+ *((int *) opt->var) = atoi(loptarg);
+ else if(opt->flags & GLO_DOUBLE)
+ *((double *) opt->var) = atof(loptarg);
+ else prog_error();
+ }
+ else
+ result = opt->value ? opt->value : opt->sname;
+ }
+ if (opt->func)
+ opt->func(loptarg);
+ return (result);
+}
+
+int getsingleopt (int argc, char *argv[], topt *opts)
+{
+ char *thisopt;
+ topt *opt;
+ static char shortopt[2] = {0, 0};
+
+ if (loptind >= argc)
+ return (GLO_END);
+ thisopt = argv[loptind];
+ debug1("getsingleopt: %s", thisopt);
+ if (!loptchr) { /* start new option string */
+ if (thisopt[0] != '-' || !thisopt[1]) /* no more options */
+ return (GLO_END);
+ if (thisopt[1] == '-') { /* "--" */
+ if (thisopt[2]) { /* long option */
+ loptarg = thisopt+2;
+ loptind++;
+ if (!(opt = findopt(1, thisopt+2, opts)))
+ return (GLO_UNKNOWN);
+ else
+ return (performoption(argc, argv, opt));
+ }
+ else { /* "--" == end of options */
+ loptind++;
+ return (GLO_END);
+ }
+ }
+ else /* start short option(s) */
+ loptchr = 1;
+ }
+ shortopt[0] = thisopt[loptchr];
+ loptarg = shortopt;
+ opt = findopt(0, thisopt+(loptchr++), opts);
+ if (!thisopt[loptchr]) {
+ loptind++;
+ loptchr = 0;
+ }
+ if (!opt)
+ return (GLO_UNKNOWN);
+ else
+ return (performoption(argc, argv, opt));
+}
+
+int getlopt (int argc, char *argv[], topt *opts)
+{
+
+ int result;
+
+ while ((result = getsingleopt(argc, argv, opts)) == GLO_CONTINUE);
+ return (result);
+}
+
+/* EOF */
diff --git a/src/getlopt.h b/src/getlopt.h
new file mode 100644
index 0000000..3fca39c
--- /dev/null
+++ b/src/getlopt.h
@@ -0,0 +1,77 @@
+/*
+ getlopt: command line option/parameter parsing
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written Oliver Fromme
+ old timestamp: Tue Apr 8 07:13:39 MET DST 1997
+*/
+
+#include <stdlib.h>
+#include <string.h>
+
+
+#ifndef _MPG123_GETLOPT_H_
+#define _MPG123_GETLOPT_H_
+
+extern int loptind; /* index in argv[] */
+extern int loptchr; /* index in argv[loptind] */
+extern char *loptarg; /* points to argument if present, else to option */
+
+typedef struct {
+ char sname; /* short option name, can be 0 */
+ char *lname; /* long option name, can be 0 */
+ int flags; /* see below */
+ void (*func)(char *); /* called if != 0 (after setting of var) */
+ void *var; /* type is *long, *char or **char, see below */
+ long value;
+} topt;
+
+/* ThOr: make this clear; distict long from int (since this is != on my Alpha) and really use a flag for every case (spare the 0 case
+for .... no flag) */
+#define GLO_ARG 1
+#define GLO_CHAR 2
+#define GLO_INT 4
+#define GLO_LONG 8
+#define GLO_DOUBLE 16
+
+/* flags:
+ * bit 0 = 0 - no argument
+ * if var != NULL
+ * *var := value or (char)value [see bit 1]
+ * else
+ * loptarg = &option
+ * return ((value != 0) ? value : sname)
+ * bit 0 = 1 - argument required
+ * if var != NULL
+ * *var := atoi(arg) or strdup(arg) [see bit 1]
+ * else
+ * loptarg = &arg
+ * return ((value != 0) ? value : sname)
+ *
+ * bit 1 = 1 - var is a pointer to a char (or string),
+ * and value is interpreted as char
+ * bit 2 = 1 - var is a pointer to int
+ * bit 3 = 1 - var is a pointer to long
+ *
+ * Note: The options definition is terminated by a topt
+ * containing only zeroes.
+ */
+
+#define GLO_END 0
+#define GLO_UNKNOWN -1
+#define GLO_NOARG -2
+#define GLO_CONTINUE -3
+
+int getlopt (int argc, char *argv[], topt *opts);
+
+/* return values:
+ * GLO_END (0) end of options
+ * GLO_UNKNOWN (-1) unknown option *loptarg
+ * GLO_NOARG (-2) missing argument
+ * GLO_CONTINUE (-3) (reserved for internal use)
+ * else - return value according to flags (see above)
+ */
+
+
+#endif
diff --git a/src/httpget.c b/src/httpget.c
new file mode 100644
index 0000000..10af510
--- /dev/null
+++ b/src/httpget.c
@@ -0,0 +1,677 @@
+/*
+ httpget.c: http communication
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written Oliver Fromme
+ old timestamp: Wed Apr 9 20:57:47 MET DST 1997
+
+ Thomas' notes:
+
+ I used to do
+ GET http://server/path HTTP/1.0
+
+ But RFC 1945 says: The absoluteURI form is only allowed when the request is being made to a proxy.
+
+ so I should not do that. Since name based virtual hosts need the hostname in the request, I still need to provide that info.
+ Enter HTTP/1.1... there is a Host eader field to use (that mpg123 supposedly has used since some time anyway - but did it really work with my vhost test server)?
+ Now
+ GET /path/bla HTTP/1.1\r\nHost: host[:port]
+ Should work, but as a funny sidenote:
+
+ RFC2616: To allow for transition to absoluteURIs in all requests in future versions of HTTP, all HTTP/1.1 servers MUST accept the absoluteURI form in requests, even though HTTP/1.1 clients will only generate them in requests to proxies.
+
+ I was already full-on HTTP/1.1 as I recognized that mpg123 then would have to accept the chunked transfer encoding.
+ That is not desireable for its purpose... maybe when interleaving of shoutcasts with metadata chunks is supported, we can upgrade to 1.1.
+ Funny aspect there is that shoutcast servers do not do HTTP/1.1 chunked transfer but implement some different chunking themselves...
+*/
+
+#include "mpg123app.h"
+#include "httpget.h"
+
+#ifdef NETWORK
+#include "resolver.h"
+
+#define HTTP_MAX_RELOCATIONS 20
+#include <errno.h>
+#include "true.h"
+#endif
+
+#include "debug.h"
+
+void httpdata_init(struct httpdata *e)
+{
+ mpg123_init_string(&e->content_type);
+ mpg123_init_string(&e->icy_url);
+ mpg123_init_string(&e->icy_name);
+ e->icy_interval = 0;
+ e->proxystate = PROXY_UNKNOWN;
+ mpg123_init_string(&e->proxyhost);
+ mpg123_init_string(&e->proxyport);
+}
+
+void httpdata_reset(struct httpdata *e)
+{
+ mpg123_free_string(&e->content_type);
+ mpg123_free_string(&e->icy_url);
+ mpg123_free_string(&e->icy_name);
+ e->icy_interval = 0;
+ /* the other stuff shall persist */
+}
+
+void httpdata_free(struct httpdata *e)
+{
+ httpdata_reset(e);
+ mpg123_free_string(&e->proxyhost);
+ mpg123_free_string(&e->proxyport);
+}
+
+/* mime type classes */
+#define M_FILE 0
+#define M_M3U 1
+#define M_PLS 2
+static const char* mime_file[] =
+{
+ "audio/mpeg", "audio/x-mpeg",
+ "audio/mp3", "audio/x-mp3",
+ "audio/mpeg3", "audio/x-mpeg3",
+ "audio/mpg", "audio/x-mpg",
+ "audio/x-mpegaudio", NULL
+};
+static const char* mime_m3u[] = { "audio/mpegurl", "audio/mpeg-url", "audio/x-mpegurl", NULL };
+static const char* mime_pls[] = { "audio/x-scpls", "audio/scpls", "application/pls", NULL };
+static const char** mimes[] = { mime_file, mime_m3u, mime_pls, NULL };
+
+int debunk_mime(const char* mime)
+{
+ int i,j;
+ int r = 0;
+ for(i=0; mimes[i] != NULL; ++i)
+ for(j=0; mimes[i][j] != NULL; ++j)
+ if(!strcmp(mimes[i][j], mime)) goto debunk_result;
+
+debunk_result:
+ if(mimes[i] != NULL)
+ {
+ switch(i)
+ {
+ case M_FILE: r = IS_FILE; break;
+ case M_M3U: r = IS_LIST|IS_M3U; break;
+ case M_PLS: r = IS_LIST|IS_PLS; break;
+ default: error("unexpected MIME debunk result -- coding error?!");
+ }
+ }
+ return r;
+}
+
+
+#ifdef NETWORK
+
+int writestring (int fd, mpg123_string *string)
+{
+ size_t result, bytes;
+ char *ptr = string->p;
+ bytes = string->fill ? string->fill-1 : 0;
+
+ while(bytes)
+ {
+ if((result = write(fd, ptr, bytes)) < 0 && errno != EINTR)
+ {
+ perror ("writing http string");
+ return FALSE;
+ }
+ else if(result == 0)
+ {
+ error("write: socket closed unexpectedly");
+ return FALSE;
+ }
+ ptr += result;
+ bytes -= result;
+ }
+ return TRUE;
+}
+
+size_t readstring (mpg123_string *string, size_t maxlen, FILE *f)
+{
+ string->fill = 0;
+ while(maxlen == 0 || string->fill < maxlen)
+ {
+ if(string->size-string->fill < 1)
+ if(!mpg123_grow_string(string, string->fill+4096))
+ {
+ error("Cannot allocate memory for reading.");
+ string->fill = 0;
+ return 0;
+ }
+ /* Whoa... reading one byte at a time... one could ensure the line break in another way, but more work. */
+ if( read(fileno(f),string->p+string->fill,1) == 1)
+ {
+ string->fill++;
+ if(string->p[string->fill-1] == '\n') break;
+ }
+ else if(errno != EINTR)
+ {
+ error("Error reading from socket or unexpected EOF.");
+ string->fill = 0;
+ /* bail out to prevent endless loop */
+ return 0;
+ }
+ }
+
+ if(!mpg123_grow_string(string, string->fill+1))
+ {
+ string->fill=0;
+ }
+ else
+ {
+ string->p[string->fill] = 0;
+ string->fill++;
+ }
+ return string->fill;
+}
+
+void encode64 (char *source,char *destination)
+{
+ static char *Base64Digits =
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+ int n = 0;
+ int ssiz=strlen(source);
+ int i;
+
+ for (i = 0 ; i < ssiz ; i += 3) {
+ unsigned int buf;
+ buf = ((unsigned char *)source)[i] << 16;
+ if (i+1 < ssiz)
+ buf |= ((unsigned char *)source)[i+1] << 8;
+ if (i+2 < ssiz)
+ buf |= ((unsigned char *)source)[i+2];
+
+ destination[n++] = Base64Digits[(buf >> 18) % 64];
+ destination[n++] = Base64Digits[(buf >> 12) % 64];
+ if (i+1 < ssiz)
+ destination[n++] = Base64Digits[(buf >> 6) % 64];
+ else
+ destination[n++] = '=';
+ if (i+2 < ssiz)
+ destination[n++] = Base64Digits[buf % 64];
+ else
+ destination[n++] = '=';
+ }
+ destination[n++] = 0;
+}
+
+/* Look out for HTTP header field to parse, construct C string with the value.
+ Attention: Modifies argument, since it's so convenient... */
+char *get_header_val(const char *hname, mpg123_string *response)
+{
+ char *tmp = NULL;
+ size_t prelen = strlen(hname);
+ /* if header name found, next char is at least something, so just check for : */
+ if(!strncasecmp(hname, response->p, prelen) && (response->p[prelen] == ':'))
+ {
+ ++prelen;
+ if((tmp = strchr(response->p, '\r')) != NULL ) tmp[0] = 0;
+ if((tmp = strchr(response->p, '\n')) != NULL ) tmp[0] = 0;
+ tmp = response->p+prelen;
+ /* I _know_ that there is a terminating zero, so this loop is safe. */
+ while((tmp[0] == ' ') || (tmp[0] == '\t'))
+ {
+ ++tmp;
+ }
+ }
+ return tmp;
+}
+
+/* Iterate over header field names and storage locations, to possibly get those values. */
+void get_header_string(mpg123_string *response, const char *fieldname, mpg123_string *store)
+{
+ char *tmp;
+ if((tmp = get_header_val(fieldname, response)))
+ {
+ if(mpg123_set_string(store, tmp)){ debug2("got %s %s", fieldname, store->p); return; }
+ else{ error2("unable to set %s to %s!", fieldname, tmp); }
+ }
+}
+
+/* needed for HTTP/1.1 non-pipelining mode */
+/* #define CONN_HEAD "Connection: close\r\n" */
+#define CONN_HEAD ""
+
+/* shoutcsast meta data: 1=on, 0=off */
+static const char *icy_yes = "Icy-MetaData: 1\r\n";
+static const char *icy_no = "Icy-MetaData: 0\r\n";
+
+char *httpauth = NULL;
+
+static size_t accept_length(void)
+{
+ int i,j;
+ static size_t l = 0;
+ if(l) return l;
+ l += strlen("Accept: ");
+ for(i=0; mimes[i] != NULL; ++i)
+ for(j=0; mimes[i][j] != NULL; ++j){ l += strlen(mimes[i][j]) + strlen(", "); }
+ l += strlen("*/*\r\n");
+ debug1("initial computation of accept header length: %lu", (unsigned long)l);
+ return l;
+}
+
+/* Returns TRUE or FALSE for success. */
+static int proxy_init(struct httpdata *hd)
+{
+ int ret = TRUE;
+ /* If we don't have explicit proxy given, probe the environment. */
+ if (!param.proxyurl)
+ if (!(param.proxyurl = getenv("MP3_HTTP_PROXY")))
+ if (!(param.proxyurl = getenv("http_proxy")))
+ param.proxyurl = getenv("HTTP_PROXY");
+ /* Now continue if we have something. */
+ if (param.proxyurl && param.proxyurl[0] && strcmp(param.proxyurl, "none"))
+ {
+ mpg123_string proxyurl;
+ mpg123_init_string(&proxyurl);
+ if( !mpg123_set_string(&proxyurl, param.proxyurl)
+ || !split_url(&proxyurl, NULL, &hd->proxyhost, &hd->proxyport, NULL))
+ {
+ error("splitting proxy URL");
+ ret = FALSE;
+ }
+ else if(param.verbose > 1) fprintf(stderr, "Note: Using proxy %s\n", hd->proxyhost.p);
+#if 0 /* not yet there */
+ if(!try_host_lookup(proxyhost))
+ {
+ error("Unknown proxy host \"%s\".\n", proxyhost.p);
+ ret = FALSE;
+ }
+#endif
+ mpg123_free_string(&proxyurl);
+ if(ret) hd->proxystate = PROXY_HOST; /* We got hostname and port settled. */
+ else hd->proxystate = PROXY_NONE;
+ }
+ else hd->proxystate = PROXY_NONE;
+
+ return ret;
+}
+
+static int append_accept(mpg123_string *s)
+{
+ size_t i,j;
+ if(!mpg123_add_string(s, "Accept: ")) return FALSE;
+
+ /* We prefer what we know. */
+ for(i=0; mimes[i] != NULL; ++i)
+ for(j=0; mimes[i][j] != NULL; ++j)
+ {
+ if( !mpg123_add_string(s, mimes[i][j])
+ || !mpg123_add_string(s, ", ") )
+ return FALSE;
+ }
+ /* Well... in the end, we accept everything, trying to make sense with reality. */
+ if(!mpg123_add_string(s, "*/*\r\n")) return FALSE;
+
+ return TRUE;
+}
+
+
+/*
+ Converts spaces to "%20" ... actually, I have to ask myself why.
+ What about converting them to "+" instead? Would make things a lot easier.
+ Or, on the other hand... what about avoiding HTML encoding at all?
+*/
+static int translate_url(const char *url, mpg123_string *purl)
+{
+ const char *sptr;
+ /* The length of purl is upper bound by 3*strlen(url) + 1 if
+ * everything in it is a space (%20) - or any encoded character */
+ if (strlen(url) >= SIZE_MAX/3)
+ {
+ error("URL too long. Skipping...");
+ return FALSE;
+ }
+ /* Prepare purl in one chunk, to minimize mallocs. */
+ if(!mpg123_resize_string(purl, strlen(url) + 31)) return FALSE;
+ /*
+ * 2000-10-21:
+ * We would like spaces to be automatically converted to %20's when
+ * fetching via HTTP.
+ * -- Martin Sjögren <md9ms@mdstud.chalmers.se>
+ * Hm, why only spaces? Maybe one should do this http stuff more properly...
+ */
+ if ((sptr = strchr(url, ' ')) == NULL)
+ mpg123_set_string(purl, url);
+ else
+ { /* Note that sptr is set from the if to this else... */
+ const char *urlptr = url;
+ mpg123_set_string(purl, "");
+ do {
+ if(! ( mpg123_add_substring(purl, urlptr, 0, sptr-urlptr)
+ && mpg123_add_string(purl, "%20") ) )
+ return FALSE;
+ urlptr = sptr + 1;
+ } while ((sptr = strchr (urlptr, ' ')) != NULL);
+ if(!mpg123_add_string(purl, urlptr)) return FALSE;
+ }
+ /* now see if a terminating / may be needed */
+ if(strchr(purl->p+(strncmp("http://", purl->p, 7) ? 0 : 7), '/') == NULL
+ && !mpg123_add_string(purl, "/"))
+ return FALSE;
+
+ return TRUE;
+}
+
+static int fill_request(mpg123_string *request, mpg123_string *host, mpg123_string *port, mpg123_string *httpauth1, int *try_without_port)
+{
+ char* ttemp;
+ int ret = TRUE;
+ const char *icy = param.talk_icy ? icy_yes : icy_no;
+
+ /* hm, my test redirection had troubles with line break before HTTP/1.0 */
+ if((ttemp = strchr(request->p,'\r')) != NULL){ *ttemp = 0; request->fill = ttemp-request->p+1; }
+
+ if((ttemp = strchr(request->p,'\n')) != NULL){ *ttemp = 0; request->fill = ttemp-request->p+1; }
+
+ /* Fill out the request further... */
+ if( !mpg123_add_string(request, " HTTP/1.0\r\nUser-Agent: ")
+ || !mpg123_add_string(request, PACKAGE_NAME)
+ || !mpg123_add_string(request, "/")
+ || !mpg123_add_string(request, PACKAGE_VERSION)
+ || !mpg123_add_string(request, "\r\n") )
+ return FALSE;
+
+ if(host->fill)
+ { /* Give virtual hosting a chance... adding the "Host: ... " line. */
+ debug2("Host: %s:%s", host->p, port->p);
+ if( mpg123_add_string(request, "Host: ")
+ && mpg123_add_string(request, host->p)
+ && ( *try_without_port || (
+ mpg123_add_string(request, ":")
+ && mpg123_add_string(request, port->p) ))
+ && mpg123_add_string(request, "\r\n") )
+ {
+ if(*try_without_port) *try_without_port = 0;
+ }
+ else return FALSE;
+ }
+
+ /* Acceptance, stream setup. */
+ if( !append_accept(request)
+ || !mpg123_add_string(request, CONN_HEAD)
+ || !mpg123_add_string(request, icy) )
+ return FALSE;
+
+ /* Authorization. */
+ if (httpauth1->fill || httpauth) {
+ char *buf;
+ if(!mpg123_add_string(request,"Authorization: Basic ")) return FALSE;
+ if(httpauth1->fill) {
+ if(httpauth1->fill > SIZE_MAX / 4) return FALSE;
+
+ buf=(char *)malloc(httpauth1->fill * 4);
+ if(!buf)
+ {
+ error("malloc() failed for http auth, out of memory.");
+ return FALSE;
+ }
+ encode64(httpauth1->p,buf);
+ } else {
+ if(strlen(httpauth) > SIZE_MAX / 4 - 4 ) return FALSE;
+
+ buf=(char *)malloc((strlen(httpauth) + 1) * 4);
+ if(!buf)
+ {
+ error("malloc() for http auth failed, out of memory.");
+ return FALSE;
+ }
+ encode64(httpauth,buf);
+ }
+
+ if( !mpg123_add_string(request, buf) || !mpg123_add_string(request, "\r\n"))
+ ret = FALSE;
+
+ free(buf); /* Watch out for leaking if you introduce returns before this line. */
+ }
+ if(ret) ret = mpg123_add_string(request, "\r\n");
+
+ return ret;
+}
+
+static int resolve_redirect(mpg123_string *response, mpg123_string *request_url, mpg123_string *purl)
+{
+ debug1("request_url:%s", request_url->p);
+ /* initialized with full old url */
+ if(!mpg123_copy_string(request_url, purl)) return FALSE;
+
+ /* We may strip it down to a prefix ot totally. */
+ if(strncmp(response->p, "Location: http://", 17))
+ { /* OK, only partial strip, need prefix for relative path. */
+ char* ptmp = NULL;
+ /* though it's not RFC (?), accept relative URIs as wget does */
+ fprintf(stderr, "NOTE: no complete URL in redirect, constructing one\n");
+ /* not absolute uri, could still be server-absolute */
+ /* I prepend a part of the request... out of the request */
+ if(response->p[10] == '/')
+ {
+ /* only prepend http://server/ */
+ /* I null the first / after http:// */
+ ptmp = strchr(purl->p+7,'/');
+ if(ptmp != NULL){ purl->fill = ptmp-purl->p+1; purl->p[purl->fill-1] = 0; }
+ }
+ else
+ {
+ /* prepend http://server/path/ */
+ /* now we want the last / */
+ ptmp = strrchr(purl->p+7, '/');
+ if(ptmp != NULL){ purl->fill = ptmp-purl->p+2; purl->p[purl->fill-1] = 0; }
+ }
+ }
+ else purl->fill = 0;
+
+ debug1("prefix=%s", purl->fill ? purl->p : "");
+ if(!mpg123_add_string(purl, response->p+10)) return FALSE;
+
+ debug1(" purl: %s", purl->p);
+ debug1("old request_url: %s", request_url->p);
+
+ return TRUE;
+}
+
+int http_open(char* url, struct httpdata *hd)
+{
+ mpg123_string purl, host, port, path;
+ mpg123_string request, response, request_url;
+ mpg123_string httpauth1;
+ int sock = -1;
+ int oom = 0;
+ int relocate, numrelocs = 0;
+ FILE *myfile;
+ /*
+ workaround for http://www.global24music.com/rautemusik/files/extreme/isdn.pls
+ this site's apache gives me a relocation to the same place when I give the port in Host request field
+ for the record: Apache/2.0.51 (Fedora)
+ */
+ int try_without_port = 0;
+ mpg123_init_string(&purl);
+ mpg123_init_string(&host);
+ mpg123_init_string(&port);
+ mpg123_init_string(&path);
+ mpg123_init_string(&request);
+ mpg123_init_string(&response);
+ mpg123_init_string(&request_url);
+ mpg123_init_string(&httpauth1);
+
+ /* Get initial info for proxy server. Once. */
+ if(hd->proxystate == PROXY_UNKNOWN && !proxy_init(hd)) goto exit;
+
+ if(!translate_url(url, &purl)){ oom=1; goto exit; }
+
+ /* Don't confuse the different auth strings... */
+ if(!split_url(&purl, &httpauth1, NULL, NULL, NULL) ){ oom=1; goto exit; }
+
+ /* "GET http://" 11
+ * " HTTP/1.0\r\nUser-Agent: <PACKAGE_NAME>/<PACKAGE_VERSION>\r\n"
+ * 26 + PACKAGE_NAME + PACKAGE_VERSION
+ * accept header + accept_length()
+ * "Authorization: Basic \r\n" 23
+ * "\r\n" 2
+ * ... plus the other predefined header lines
+ */
+ /* Just use this estimate as first guess to reduce malloc calls in string library. */
+ {
+ size_t length_estimate = 62 + strlen(PACKAGE_NAME) + strlen(PACKAGE_VERSION)
+ + accept_length() + strlen(CONN_HEAD) + strlen(icy_yes) + purl.fill;
+ if( !mpg123_grow_string(&request, length_estimate)
+ || !mpg123_grow_string(&response,4096) )
+ {
+ oom=1; goto exit;
+ }
+ }
+
+ do
+ {
+ /* Storing the request url, with http:// prepended if needed. */
+ /* used to be url here... seemed wrong to me (when loop advanced...) */
+ if(strncasecmp(purl.p, "http://", 7) != 0) mpg123_set_string(&request_url, "http://");
+ else mpg123_set_string(&request_url, "");
+
+ mpg123_add_string(&request_url, purl.p);
+
+ if (hd->proxystate >= PROXY_HOST)
+ {
+ /* We will connect to proxy, full URL goes into the request. */
+ if( !mpg123_copy_string(&hd->proxyhost, &host)
+ || !mpg123_copy_string(&hd->proxyport, &port)
+ || !mpg123_set_string(&request, "GET ")
+ || !mpg123_add_string(&request, request_url.p) )
+ {
+ oom=1; goto exit;
+ }
+ }
+ else
+ {
+ /* We will connect to the host from the URL and only the path goes into the request. */
+ if(!split_url(&purl, NULL, &host, &port, &path)){ oom=1; goto exit; }
+ if( !mpg123_set_string(&request, "GET ")
+ || !mpg123_add_string(&request, path.p) )
+ {
+ oom=1; goto exit;
+ }
+ }
+
+ if(!fill_request(&request, &host, &port, &httpauth1, &try_without_port)){ oom=1; goto exit; }
+
+ httpauth1.fill = 0; /* We use the auth data from the URL only once. */
+
+ if((sock = open_connection(&host, &port)) < 0)
+ {
+ error1("Unable to establish connection to %s", host.fill ? host.p : "");
+ goto exit;
+ }
+
+#define http_failure close(sock); sock=-1; goto exit;
+
+ if(param.verbose > 2) fprintf(stderr, "HTTP request:\n%s\n",request.p);
+ if(!writestring(sock, &request)){ http_failure; }
+ if (!(myfile = fdopen(sock, "rb")))
+ {
+ error1("fdopen: %s", strerror(errno));
+ http_failure;
+ }
+ relocate = FALSE;
+ /* Arbitrary length limit here... */
+#define safe_readstring \
+ readstring(&response, SIZE_MAX/16, myfile); \
+ if(response.fill > SIZE_MAX/16) /* > because of appended zero. */ \
+ { \
+ error("HTTP response line exceeds max. length"); \
+ http_failure; \
+ } \
+ else if(response.fill == 0) \
+ { \
+ error("readstring failed"); \
+ http_failure; \
+ }
+ safe_readstring;
+ if(param.verbose > 2) fprintf(stderr, "HTTP response: %s",response.p);
+
+ {
+ char *sptr;
+ if((sptr = strchr(response.p, ' ')))
+ {
+ if(response.fill > sptr-response.p+2)
+ switch (sptr[1])
+ {
+ case '3':
+ relocate = TRUE;
+ case '2':
+ break;
+ default:
+ fprintf (stderr, "HTTP request failed: %s", sptr+1); /* '\n' is included */
+ http_failure;
+ }
+ else{ error("Too short response,"); http_failure; }
+ }
+ }
+
+ do
+ {
+ safe_readstring; /* Think about that: Should we really error out when we get nothing? Could be that the server forgot the trailing empty line... */
+ if (!strncmp(response.p, "Location: ", 10))
+ { /* It is a redirection! */
+ if(!resolve_redirect(&response, &request_url, &purl)){ oom=1, http_failure; }
+
+ if(!strcmp(purl.p, request_url.p))
+ {
+ warning("relocated to very same place! trying request again without host port");
+ try_without_port = 1;
+ }
+ }
+ else
+ { /* We got a header line (or the closing empty line). */
+ char *tmp;
+ debug1("searching for header values... %s", response.p);
+ /* Not sure if I want to bail out on error here. */
+ /* Also: What text encoding are these strings in? Doesn't need to be plain ASCII... */
+ get_header_string(&response, "content-type", &hd->content_type);
+ get_header_string(&response, "icy-name", &hd->icy_name);
+ get_header_string(&response, "icy-url", &hd->icy_url);
+
+ /* watch out for icy-metaint */
+ if((tmp = get_header_val("icy-metaint", &response)))
+ {
+ hd->icy_interval = (off_t) atol(tmp); /* atoll ? */
+ debug1("got icy-metaint %li", (long int)hd->icy_interval);
+ }
+ }
+ } while(response.p[0] != '\r' && response.p[0] != '\n');
+ } while(relocate && purl.fill && numrelocs++ < HTTP_MAX_RELOCATIONS);
+ if(relocate)
+ {
+ fprintf (stderr, "Too many HTTP relocations.\n");
+ http_failure;
+ }
+
+exit: /* The end as well as the exception handling point... */
+ if(oom) error("Apparently, I ran out of memory or had some bad input data...");
+
+ mpg123_free_string(&purl);
+ mpg123_free_string(&host);
+ mpg123_free_string(&port);
+ mpg123_free_string(&path);
+ mpg123_free_string(&request);
+ mpg123_free_string(&response);
+ mpg123_free_string(&request_url);
+ mpg123_free_string(&httpauth1);
+ return sock;
+}
+
+#else /* NETWORK */
+
+/* stub */
+int http_open (char* url, struct httpdata *hd)
+{
+ return -1;
+}
+#endif
+
+/* EOF */
+
diff --git a/src/httpget.h b/src/httpget.h
new file mode 100644
index 0000000..a759f5d
--- /dev/null
+++ b/src/httpget.h
@@ -0,0 +1,48 @@
+/*
+ httpget: HTTP input routines (the header)
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+
+ Note about MIME types:
+ You feed debunk_mime() a MIME string and it classifies it as it is relevant for mpg123.
+ In httpget.c are the MIME class lists, which may be appended to to support more bogus MIME types.
+*/
+
+#ifndef _HTTPGET_H_
+#define _HTTPGET_H_
+
+/* Pulled in by mpg123app.h! */
+
+struct httpdata
+{
+ mpg123_string content_type;
+ mpg123_string icy_name;
+ mpg123_string icy_url;
+ off_t icy_interval;
+ mpg123_string proxyhost;
+ mpg123_string proxyport;
+ /* Partly dummy for now... later proxy host resolution will be cached (PROXY_ADDR). */
+ enum { PROXY_UNKNOWN=0, PROXY_NONE, PROXY_HOST, PROXY_ADDR } proxystate;
+};
+
+void httpdata_init(struct httpdata *e);
+void httpdata_reset(struct httpdata *e);
+void httpdata_free(struct httpdata *e);
+
+/* There is a whole lot of MIME types for the same thing.
+ the function will reduce it to a combination of these flags */
+#define IS_FILE 1
+#define IS_LIST 2
+#define IS_M3U 4
+#define IS_PLS 8
+int debunk_mime(const char* mime);
+
+extern char *proxyurl;
+extern unsigned long proxyip;
+/* takes url and content type string address, opens resource, returns fd for data, allocates and sets content type */
+extern int http_open (char* url, struct httpdata *hd);
+extern char *httpauth;
+
+#endif
diff --git a/src/legacy_module.c b/src/legacy_module.c
new file mode 100644
index 0000000..ebeec34
--- /dev/null
+++ b/src/legacy_module.c
@@ -0,0 +1,74 @@
+/*
+ legacy_module.c: dummy interface to modular code loader for legacy build system
+
+ copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Nicholas J Humfrey
+*/
+
+#include "mpg123app.h"
+#include "debug.h"
+
+/* A single module is staticly compiled in for each type */
+extern mpg123_module_t mpg123_output_module_info;
+/* extern mpg123_module_t mpg123_input_module_info; */
+
+
+/* Open a module */
+mpg123_module_t*
+open_module( const char* type, const char* name )
+{
+ mpg123_module_t *mod = NULL;
+
+ /* Select the module info structure, based on the desired type */
+ if (strcmp(type, "output")==0) {
+ mod = &mpg123_output_module_info;
+/*
+ } else if (strcmp(type, "input")==0) {
+ mod = &mpg123_input_module_info;
+*/
+ } else {
+ error1("Unable to open module type '%s'.", type);
+ return NULL;
+ }
+
+ /* Check the module compiled in is the module requested */
+ if (strcmp(name, mod->name)!=0) {
+ error1("Unable to open requested module '%s'.", name);
+ error1("The only available statically compiled module is '%s'.", mod->name);
+ return NULL;
+ }
+
+ /* Debugging info */
+ debug1("Details of static module type '%s':", type);
+ debug1(" api_version=%d", mod->api_version);
+ debug1(" name=%s", mod->name);
+ debug1(" description=%s", mod->description);
+ debug1(" revision=%s", mod->revision);
+ debug1(" handle=%x", (unsigned int)mod->handle);
+
+ return mod;
+}
+
+
+void close_module( mpg123_module_t* module )
+{
+ debug("close_module()");
+
+ /* Module was never really 'loaded', so nothing to do here. */
+}
+
+
+void list_modules()
+{
+ debug("list_modules()" );
+
+ printf("\nmpg123 has been built in legacy mode - dynamic modules are not available.\n");
+
+ printf("Available modules\n");
+ printf("-----------------\n");
+ printf("%-15s%s %s\n", mpg123_output_module_info.name, "output", mpg123_output_module_info.description );
+
+}
+
+
diff --git a/src/libmpg123/Mac.mpg123.h b/src/libmpg123/Mac.mpg123.h
new file mode 100644
index 0000000..f289081
--- /dev/null
+++ b/src/libmpg123/Mac.mpg123.h
@@ -0,0 +1,878 @@
+/*
+ libmpg123: MPEG Audio Decoder library (version 1.8.1)
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+*/
+
+#ifndef MPG123_LIB_H
+#define MPG123_LIB_H
+
+/** \file mpg123.h The header file for the libmpg123 MPEG Audio decoder */
+
+/* These aren't actually in use... seems to work without using libtool. */
+#ifdef BUILD_MPG123_DLL
+/* The dll exports. */
+#define EXPORT __declspec(dllexport)
+#else
+#ifdef LINK_MPG123_DLL
+/* The exe imports. */
+#define EXPORT __declspec(dllimport)
+#else
+/* Nothing on normal/UNIX builds */
+#define EXPORT
+#endif
+#endif
+
+#ifndef MPG123_NO_CONFIGURE /* Enable use of this file without configure. */
+#include <stdlib.h>
+#include <sys/types.h>
+
+#if 0 /* If we need trickery for large file support. */
+
+/* Check for compiling programs agains this libmpg123. */
+#if (defined _FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS+0 == )
+/* ...all is fine, having enabled large file support and also the correct sort of which. */
+#else
+#error "Mismatch in large file setup! Enable/disable large file support appropriately to use libmpg123."
+#endif
+
+/* Redefine names of functions dealing with file and file offsets
+ ...everything handling off_t, for example, which can be 32 or 64 bits. */
+
+#define mpg123_open mpg123_open
+#define mpg123_open_fd mpg123_open_fd
+#define mpg123_decode_frame mpg123_decode_frame
+#define mpg123_tell mpg123_tell
+#define mpg123_tellframe mpg123_tellframe
+#define mpg123_tell_stream mpg123_tell_stream
+#define mpg123_seek mpg123_seek
+#define mpg123_feedseek mpg123_feedseek
+#define mpg123_seek_frame mpg123_seek_frame
+#define mpg123_timeframe mpg123_timeframe
+#define mpg123_index mpg123_index
+#define mpg123_position mpg123_position
+#define mpg123_length mpg123_length
+#define mpg123_set_filesize mpg123_set_filesize
+
+#endif /* LARGEFILE_SWITCH */
+
+#endif /* MPG123_NO_CONFIGURE */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** \defgroup mpg123_init mpg123 library and handle setup
+ *
+ * Functions to initialise and shutdown the mpg123 library and handles.
+ * The parameters of handles have workable defaults, you only have to tune them when you want to tune something;-)
+ * Tip: Use a RVA setting...
+ *
+ * @{
+ */
+
+/** Opaque structure for the libmpg123 decoder handle. */
+struct mpg123_handle_struct;
+
+/** Opaque structure for the libmpg123 decoder handle.
+ * Most functions take a pointer to a mpg123_handle as first argument and operate on its data in an object-oriented manner.
+ */
+typedef struct mpg123_handle_struct mpg123_handle;
+
+/** Function to initialise the mpg123 library.
+ * This function is not thread-safe. Call it exactly once per process, before any other (possibly threaded) work with the library.
+ *
+ * \return MPG123_OK if successful, otherwise an error number.
+ */
+EXPORT int mpg123_init(void);
+
+/** Function to close down the mpg123 library.
+ * This function is not thread-safe. Call it exactly once per process, before any other (possibly threaded) work with the library. */
+EXPORT void mpg123_exit(void);
+
+/** Create a handle with optional choice of decoder (named by a string, see mpg123_decoders() or mpg123_supported_decoders()).
+ * and optional retrieval of an error code to feed to mpg123_plain_strerror().
+ * Optional means: Any of or both the parameters may be NULL.
+ *
+ * \return Non-NULL pointer when successful.
+ */
+EXPORT mpg123_handle *mpg123_new(const char* decoder, int *error);
+
+/** Delete handle, mh is either a valid mpg123 handle or NULL. */
+EXPORT void mpg123_delete(mpg123_handle *mh);
+
+/** Enumeration of the parameters types that it is possible to set/get. */
+enum mpg123_parms
+{
+ MPG123_VERBOSE, /**< set verbosity value for enabling messages to stderr, >= 0 makes sense (integer) */
+ MPG123_FLAGS, /**< set all flags, p.ex val = MPG123_GAPLESS|MPG123_MONO_MIX (integer) */
+ MPG123_ADD_FLAGS, /**< add some flags (integer) */
+ MPG123_FORCE_RATE, /**< when value > 0, force output rate to that value (integer) */
+ MPG123_DOWN_SAMPLE, /**< 0=native rate, 1=half rate, 2=quarter rate (integer) */
+ MPG123_RVA, /**< one of the RVA choices above (integer) */
+ MPG123_DOWNSPEED, /**< play a frame N times (integer) */
+ MPG123_UPSPEED, /**< play every Nth frame (integer) */
+ MPG123_START_FRAME, /**< start with this frame (skip frames before that, integer) */
+ MPG123_DECODE_FRAMES, /**< decode only this number of frames (integer) */
+ MPG123_ICY_INTERVAL, /**< stream contains ICY metadata with this interval (integer) */
+ MPG123_OUTSCALE, /**< the scale for output samples (amplitude - integer or float according to mpg123 output format, normally integer) */
+ MPG123_TIMEOUT, /**< timeout for reading from a stream (not supported on win32, integer) */
+ MPG123_REMOVE_FLAGS, /**< remove some flags (inverse of MPG123_ADD_FLAGS, integer) */
+ MPG123_RESYNC_LIMIT, /**< Try resync on frame parsing for that many bytes or until end of stream (<0 ... integer). */
+ MPG123_INDEX_SIZE /**< Set the frame index size (if supported). Values <0 mean that the index is allowed to grow dynamically in these steps (in positive direction, of course) -- Use this when you really want a full index with every individual frame. */
+ ,MPG123_PREFRAMES /**< Decode/ignore that many frames in advance for layer 3. This is needed to fill bit reservoir after seeking, for example (but also at least one frame in advance is needed to have all "normal" data for layer 3). Give a positive integer value, please.*/
+};
+
+/** Flag bits for MPG123_FLAGS, use the usual binary or to combine. */
+enum mpg123_param_flags
+{
+ MPG123_FORCE_MONO = 0x7 /**< 0111 Force some mono mode: This is a test bitmask for seeing if any mono forcing is active. */
+ ,MPG123_MONO_LEFT = 0x1 /**< 0001 Force playback of left channel only. */
+ ,MPG123_MONO_RIGHT = 0x2 /**< 0010 Force playback of right channel only. */
+ ,MPG123_MONO_MIX = 0x4 /**< 0100 Force playback of mixed mono. */
+ ,MPG123_FORCE_STEREO = 0x8 /**< 1000 Force stereo output. */
+ ,MPG123_FORCE_8BIT = 0x10 /**< 00010000 Force 8bit formats. */
+ ,MPG123_QUIET = 0x20 /**< 00100000 Suppress any printouts (overrules verbose). */
+ ,MPG123_GAPLESS = 0x40 /**< 01000000 Enable gapless decoding (default on if libmpg123 has support). */
+ ,MPG123_NO_RESYNC = 0x80 /**< 10000000 Disable resync stream after error. */
+ ,MPG123_SEEKBUFFER = 0x100 /**< 000100000000 Enable small buffer on non-seekable streams to allow some peek-ahead (for better MPEG sync). */
+ ,MPG123_FUZZY = 0x200 /**< 001000000000 Enable fuzzy seeks (guessing byte offsets or using approximate seek points from Xing TOC) */
+ ,MPG123_FORCE_FLOAT = 0x400 /**< 010000000000 Force floating point output (32 or 64 bits depends on mpg123 internal precision). */
+};
+
+/** choices for MPG123_RVA */
+enum mpg123_param_rva
+{
+ MPG123_RVA_OFF = 0 /**< RVA disabled (default). */
+ ,MPG123_RVA_MIX = 1 /**< Use mix/track/radio gain. */
+ ,MPG123_RVA_ALBUM = 2 /**< Use album/audiophile gain */
+ ,MPG123_RVA_MAX = MPG123_RVA_ALBUM /**< The maximum RVA code, may increase in future. */
+};
+
+/* TODO: Assess the possibilities and troubles of changing parameters during playback. */
+
+/** Set a specific parameter, for a specific mpg123_handle, using a parameter
+ * type key chosen from the mpg123_parms enumeration, to the specified value. */
+EXPORT int mpg123_param(mpg123_handle *mh, enum mpg123_parms type, long value, double fvalue);
+
+/** Get a specific parameter, for a specific mpg123_handle.
+ * See the mpg123_parms enumeration for a list of available parameters. */
+EXPORT int mpg123_getparam(mpg123_handle *mh, enum mpg123_parms type, long *val, double *fval);
+
+/* @} */
+
+
+/** \defgroup mpg123_error mpg123 error handling
+ *
+ * Functions to get text version of the error numbers and an enumeration
+ * of the error codes returned by libmpg123.
+ *
+ * Most functions operating on a mpg123_handle simply return MPG123_OK on success and MPG123_ERR on failure (setting the internal error variable of the handle to the specific error code).
+ * Decoding/seek functions may also return message codes MPG123_DONE, MPG123_NEW_FORMAT and MPG123_NEED_MORE (please read up on these on how to react!).
+ * The positive range of return values is used for "useful" values when appropriate.
+ *
+ * @{
+ */
+
+/** Enumeration of the message and error codes and returned by libmpg123 functions. */
+enum mpg123_errors
+{
+ MPG123_DONE=-12, /**< Message: Track ended. Stop decoding. */
+ MPG123_NEW_FORMAT=-11, /**< Message: Output format will be different on next call. Note that some libmpg123 versions between 1.4.3 and 1.8.0 insist on you calling mpg123_getformat() after getting this message code. Newer verisons behave like advertised: You have the chance to call mpg123_getformat(), but you can also just continue decoding and get your data. */
+ MPG123_NEED_MORE=-10, /**< Message: For feed reader: "Feed me more!" (call mpg123_feed() or mpg123_decode() with some new input data). */
+ MPG123_ERR=-1, /**< Generic Error */
+ MPG123_OK=0, /**< Success */
+ MPG123_BAD_OUTFORMAT, /**< Unable to set up output format! */
+ MPG123_BAD_CHANNEL, /**< Invalid channel number specified. */
+ MPG123_BAD_RATE, /**< Invalid sample rate specified. */
+ MPG123_ERR_16TO8TABLE, /**< Unable to allocate memory for 16 to 8 converter table! */
+ MPG123_BAD_PARAM, /**< Bad parameter id! */
+ MPG123_BAD_BUFFER, /**< Bad buffer given -- invalid pointer or too small size. */
+ MPG123_OUT_OF_MEM, /**< Out of memory -- some malloc() failed. */
+ MPG123_NOT_INITIALIZED, /**< You didn't initialize the library! */
+ MPG123_BAD_DECODER, /**< Invalid decoder choice. */
+ MPG123_BAD_HANDLE, /**< Invalid mpg123 handle. */
+ MPG123_NO_BUFFERS, /**< Unable to initialize frame buffers (out of memory?). */
+ MPG123_BAD_RVA, /**< Invalid RVA mode. */
+ MPG123_NO_GAPLESS, /**< This build doesn't support gapless decoding. */
+ MPG123_NO_SPACE, /**< Not enough buffer space. */
+ MPG123_BAD_TYPES, /**< Incompatible numeric data types. */
+ MPG123_BAD_BAND, /**< Bad equalizer band. */
+ MPG123_ERR_NULL, /**< Null pointer given where valid storage address needed. */
+ MPG123_ERR_READER, /**< Error reading the stream. */
+ MPG123_NO_SEEK_FROM_END,/**< Cannot seek from end (end is not known). */
+ MPG123_BAD_WHENCE, /**< Invalid 'whence' for seek function.*/
+ MPG123_NO_TIMEOUT, /**< Build does not support stream timeouts. */
+ MPG123_BAD_FILE, /**< File access error. */
+ MPG123_NO_SEEK, /**< Seek not supported by stream. */
+ MPG123_NO_READER, /**< No stream opened. */
+ MPG123_BAD_PARS, /**< Bad parameter handle. */
+ MPG123_BAD_INDEX_PAR, /**< Bad parameters to mpg123_index() */
+ MPG123_OUT_OF_SYNC, /**< Lost track in bytestream and did not try to resync. */
+ MPG123_RESYNC_FAIL, /**< Resync failed to find valid MPEG data. */
+ MPG123_NO_8BIT, /**< No 8bit encoding possible. */
+ MPG123_BAD_ALIGN, /**< Stack aligmnent error */
+ MPG123_NULL_BUFFER, /**< NULL input buffer with non-zero size... */
+ MPG123_NO_RELSEEK, /**< Relative seek not possible (screwed up file offset) */
+ MPG123_NULL_POINTER, /**< You gave a null pointer somewhere where you shouldn't have. */
+ MPG123_BAD_KEY, /**< Bad key value given. */
+ MPG123_NO_INDEX, /**< No frame index in this build. */
+ MPG123_INDEX_FAIL, /**< Something with frame index went wrong. */
+ MPG123_BAD_DECODER_SETUP, /**< Something prevents a proper decoder setup */
+ MPG123_MISSING_FEATURE /**< This feature has not been built into libmpg123. */
+ ,MPG123_BAD_VALUE /**< A bad value has been given, somewhere. */
+ ,MPG123_LSEEK_FAILED /**< Low-level seek failed. */
+};
+
+/** Return a string describing that error errcode means. */
+EXPORT const char* mpg123_plain_strerror(int errcode);
+
+/** Give string describing what error has occured in the context of handle mh.
+ * When a function operating on an mpg123 handle returns MPG123_ERR, you should check for the actual reason via
+ * char *errmsg = mpg123_strerror(mh)
+ * This function will catch mh == NULL and return the message for MPG123_BAD_HANDLE. */
+EXPORT const char* mpg123_strerror(mpg123_handle *mh);
+
+/** Return the plain errcode intead of a string. */
+EXPORT int mpg123_errcode(mpg123_handle *mh);
+
+/*@}*/
+
+
+/** \defgroup mpg123_decoder mpg123 decoder selection
+ *
+ * Functions to list and select the available decoders.
+ * Perhaps the most prominent feature of mpg123: You have several (optimized) decoders to choose from (on x86 and PPC (MacOS) systems, that is).
+ *
+ * @{
+ */
+
+/** Return a NULL-terminated array of generally available decoder names (plain 8bit ASCII). */
+EXPORT const char **mpg123_decoders();
+
+/** Return a NULL-terminated array of the decoders supported by the CPU (plain 8bit ASCII). */
+EXPORT const char **mpg123_supported_decoders();
+
+/** Set the chosen decoder to 'decoder_name' */
+EXPORT int mpg123_decoder(mpg123_handle *mh, const char* decoder_name);
+
+/** Get the currently active decoder engine name.
+ The active decoder engine can vary depening on output constraints,
+ mostly non-resampling, integer output is accelerated via 3DNow & Co. but for other modes a fallback engine kicks in.
+ Note that this can return a decoder that is ony active in the hidden and not available as decoder choice from the outside.
+ \return The decoder name or NULL on error. */
+EXPORT const char* mpg123_current_decoder(mpg123_handle *mh);
+
+/*@}*/
+
+
+/** \defgroup mpg123_output mpg123 output audio format
+ *
+ * Functions to get and select the format of the decoded audio.
+ *
+ * @{
+ */
+
+/** An enum over all sample types possibly known to mpg123.
+ * The values are designed as bit flags to allow bitmasking for encoding families.
+ *
+ * Note that (your build of) libmpg123 does not necessarily support all these.
+ * Usually, you can expect the 8bit encodings and signed 16 bit.
+ * Also 32bit float will be usual beginning with mpg123-1.7.0 .
+ * What you should bear in mind is that (SSE, etc) optimized routines are just for
+ * signed 16bit (and 8bit derived from that). Other formats use plain C code.
+ *
+ * All formats are in native byte order. On a little endian machine this should mean
+ * that you can just feed the MPG123_ENC_SIGNED_32 data to common 24bit hardware that
+ * ignores the lowest byte (or you could choose to do rounding with these lower bits).
+ */
+enum mpg123_enc_enum
+{
+ MPG123_ENC_8 = 0x00f /**< 0000 0000 1111 Some 8 bit integer encoding. */
+ ,MPG123_ENC_16 = 0x040 /**< 0000 0100 0000 Some 16 bit integer encoding. */
+ ,MPG123_ENC_32 = 0x100 /**< 0001 0000 0000 Some 32 bit integer encoding. */
+ ,MPG123_ENC_SIGNED = 0x080 /**< 0000 1000 0000 Some signed integer encoding. */
+ ,MPG123_ENC_FLOAT = 0xe00 /**< 1110 0000 0000 Some float encoding. */
+ ,MPG123_ENC_SIGNED_16 = (MPG123_ENC_16|MPG123_ENC_SIGNED|0x10) /**< 1101 0000 signed 16 bit */
+ ,MPG123_ENC_UNSIGNED_16 = (MPG123_ENC_16|0x20) /**< 0110 0000 unsigned 16 bit */
+ ,MPG123_ENC_UNSIGNED_8 = 0x01 /**< 0000 0001 unsigned 8 bit */
+ ,MPG123_ENC_SIGNED_8 = (MPG123_ENC_SIGNED|0x02) /**< 1000 0010 signed 8 bit */
+ ,MPG123_ENC_ULAW_8 = 0x04 /**< 0000 0100 ulaw 8 bit */
+ ,MPG123_ENC_ALAW_8 = 0x08 /**< 0000 1000 alaw 8 bit */
+ ,MPG123_ENC_SIGNED_32 = MPG123_ENC_32|MPG123_ENC_SIGNED|0x1000 /**< 0001 0001 1000 0000 signed 32 bit */
+ ,MPG123_ENC_UNSIGNED_32 = MPG123_ENC_32|0x2000 /**< 0010 0001 0000 0000 unsigned 32 bit */
+ ,MPG123_ENC_FLOAT_32 = 0x200 /**< 0010 0000 0000 32bit float */
+ ,MPG123_ENC_FLOAT_64 = 0x400 /**< 0100 0000 0000 64bit float */
+ ,MPG123_ENC_ANY = ( MPG123_ENC_SIGNED_16 | MPG123_ENC_UNSIGNED_16 | MPG123_ENC_UNSIGNED_8
+ | MPG123_ENC_SIGNED_8 | MPG123_ENC_ULAW_8 | MPG123_ENC_ALAW_8
+ | MPG123_ENC_SIGNED_32 | MPG123_ENC_UNSIGNED_32
+ | MPG123_ENC_FLOAT_32 | MPG123_ENC_FLOAT_64 ) /**< any encoding */
+};
+
+/** They can be combined into one number (3) to indicate mono and stereo... */
+enum mpg123_channelcount
+{
+ MPG123_MONO = 1
+ ,MPG123_STEREO = 2
+};
+
+/** An array of supported standard sample rates
+ * These are possible native sample rates of MPEG audio files.
+ * You can still force mpg123 to resample to a different one, but by default you will only get audio in one of these samplings.
+ * \param list Store a pointer to the sample rates array there.
+ * \param number Store the number of sample rates there. */
+EXPORT void mpg123_rates(const long **list, size_t *number);
+
+/** An array of supported audio encodings.
+ * An audio encoding is one of the fully qualified members of mpg123_enc_enum (MPG123_ENC_SIGNED_16, not MPG123_SIGNED).
+ * \param list Store a pointer to the encodings array there.
+ * \param number Store the number of encodings there. */
+EXPORT void mpg123_encodings(const int **list, size_t *number);
+
+/** Configure a mpg123 handle to accept no output format at all,
+ * use before specifying supported formats with mpg123_format */
+EXPORT int mpg123_format_none(mpg123_handle *mh);
+
+/** Configure mpg123 handle to accept all formats
+ * (also any custom rate you may set) -- this is default. */
+EXPORT int mpg123_format_all(mpg123_handle *mh);
+
+/** Set the audio format support of a mpg123_handle in detail:
+ * \param mh audio decoder handle
+ * \param rate The sample rate value (in Hertz).
+ * \param channels A combination of MPG123_STEREO and MPG123_MONO.
+ * \param encodings A combination of accepted encodings for rate and channels, p.ex MPG123_ENC_SIGNED16 | MPG123_ENC_ULAW_8 (or 0 for no support). Please note that some encodings may not be supported in the library build and thus will be ignored here.
+ * \return MPG123_OK on success, MPG123_ERR if there was an error. */
+EXPORT int mpg123_format(mpg123_handle *mh, long rate, int channels, int encodings);
+
+/** Check to see if a specific format at a specific rate is supported
+ * by mpg123_handle.
+ * \return 0 for no support (that includes invalid parameters), MPG123_STEREO,
+ * MPG123_MONO or MPG123_STEREO|MPG123_MONO. */
+EXPORT int mpg123_format_support(mpg123_handle *mh, long rate, int encoding);
+
+/** Get the current output format written to the addresses givenr. */
+EXPORT int mpg123_getformat(mpg123_handle *mh, long *rate, int *channels, int *encoding);
+
+/*@}*/
+
+
+/** \defgroup mpg123_input mpg123 file input and decoding
+ *
+ * Functions for input bitstream and decoding operations.
+ * Decoding/seek functions may also return message codes MPG123_DONE, MPG123_NEW_FORMAT and MPG123_NEED_MORE (please read up on these on how to react!).
+ * @{
+ */
+
+/* reading samples / triggering decoding, possible return values: */
+/** Enumeration of the error codes returned by libmpg123 functions. */
+
+/** Open and prepare to decode the specified file by filesystem path.
+ * This does not open HTTP urls; libmpg123 contains no networking code.
+ * If you want to decode internet streams, use mpg123_open_fd() or mpg123_open_feed().
+ */
+EXPORT int mpg123_open(mpg123_handle *mh, const char *path);
+
+/** Use an already opened file descriptor as the bitstream input
+ * mpg123_close() will _not_ close the file descriptor.
+ */
+EXPORT int mpg123_open_fd(mpg123_handle *mh, int fd);
+
+/** Open a new bitstream and prepare for direct feeding
+ * This works together with mpg123_decode(); you are responsible for reading and feeding the input bitstream.
+ */
+EXPORT int mpg123_open_feed(mpg123_handle *mh);
+
+/** Closes the source, if libmpg123 opened it. */
+EXPORT int mpg123_close(mpg123_handle *mh);
+
+/** Read from stream and decode up to outmemsize bytes.
+ * \param outmemory address of output buffer to write to
+ * \param outmemsize maximum number of bytes to write
+ * \param done address to store the number of actually decoded bytes to
+ * \return error/message code (watch out for MPG123_DONE and friends!) */
+EXPORT int mpg123_read(mpg123_handle *mh, unsigned char *outmemory, size_t outmemsize, size_t *done);
+
+/** Feed data for a stream that has been opened with mpg123_open_feed().
+ * It's give and take: You provide the bytestream, mpg123 gives you the decoded samples.
+ * \param in input buffer
+ * \param size number of input bytes
+ * \return error/message code. */
+EXPORT int mpg123_feed(mpg123_handle *mh, const unsigned char *in, size_t size);
+
+/** Decode MPEG Audio from inmemory to outmemory.
+ * This is very close to a drop-in replacement for old mpglib.
+ * When you give zero-sized output buffer the input will be parsed until
+ * decoded data is available. This enables you to get MPG123_NEW_FORMAT (and query it)
+ * without taking decoded data.
+ * Think of this function being the union of mpg123_read() and mpg123_feed() (which it actually is, sort of;-).
+ * You can actually always decide if you want those specialized functions in separate steps or one call this one here.
+ * \param inmemory input buffer
+ * \param inmemsize number of input bytes
+ * \param outmemory output buffer
+ * \param outmemsize maximum number of output bytes
+ * \param done address to store the number of actually decoded bytes to
+ * \return error/message code (watch out especially for MPG123_NEED_MORE)
+ */
+EXPORT int mpg123_decode(mpg123_handle *mh, const unsigned char *inmemory, size_t inmemsize,
+ unsigned char *outmemory, size_t outmemsize, size_t *done);
+
+/** Decode next MPEG frame to internal buffer
+ * or read a frame and return after setting a new format.
+ * \param num current frame offset gets stored there
+ * \param audio This pointer is set to the internal buffer to read the decoded audio from.
+ * \param bytes number of output bytes ready in the buffer
+ */
+EXPORT int mpg123_decode_frame(mpg123_handle *mh, off_t *num, unsigned char **audio, size_t *bytes);
+
+/*@}*/
+
+
+/** \defgroup mpg123_seek mpg123 position and seeking
+ *
+ * Functions querying and manipulating position in the decoded audio bitstream.
+ * The position is measured in decoded audio samples, or MPEG frame offset for the specific functions.
+ * If gapless code is in effect, the positions are adjusted to compensate the skipped padding/delay - meaning, you should not care about that at all and just use the position defined for the samples you get out of the decoder;-)
+ * The general usage is modelled after stdlib's ftell() and fseek().
+ * Especially, the whence parameter for the seek functions has the same meaning as the one for fseek() and needs the same constants from stdlib.h:
+ * - SEEK_SET: set position to (or near to) specified offset
+ * - SEEK_CUR: change position by offset from now
+ * - SEEK_END: set position to offset from end
+ *
+ * Note that sample-accurate seek only works when gapless support has been enabled at compile time; seek is frame-accurate otherwise.
+ * Also, really sample-accurate seeking (meaning that you get the identical sample value after seeking compared to plain decoding up to the position) is only guaranteed when you do not mess with the position code by using MPG123_UPSPEED, MPG123_DOWNSPEED or MPG123_START_FRAME. The first two mainly should cause trouble with NtoM resampling, but in any case with these options in effect, you have to keep in mind that the sample offset is not the same as counting the samples you get from decoding since mpg123 counts the skipped samples, too (or the samples played twice only once)!
+ * Short: When you care about the sample position, don't mess with those parameters;-)
+ * Also, seeking is not guaranteed to work for all streams (underlying stream may not support it).
+ *
+ * @{
+ */
+
+/** Returns the current position in samples.
+ * On the next read, you'd get that sample. */
+EXPORT off_t mpg123_tell(mpg123_handle *mh);
+
+/** Returns the frame number that the next read will give you data from. */
+EXPORT off_t mpg123_tellframe(mpg123_handle *mh);
+
+/** Returns the current byte offset in the input stream. */
+EXPORT off_t mpg123_tell_stream(mpg123_handle *mh);
+
+/** Seek to a desired sample offset.
+ * Set whence to SEEK_SET, SEEK_CUR or SEEK_END.
+ * \return The resulting offset >= 0 or error/message code */
+EXPORT off_t mpg123_seek(mpg123_handle *mh, off_t sampleoff, int whence);
+
+/** Seek to a desired sample offset in data feeding mode.
+ * This just prepares things to be right only if you ensure that the next chunk of input data will be from input_offset byte position.
+ * \param input_offset The position it expects to be at the
+ * next time data is fed to mpg123_decode().
+ * \return The resulting offset >= 0 or error/message code */
+EXPORT off_t mpg123_feedseek(mpg123_handle *mh, off_t sampleoff, int whence, off_t *input_offset);
+
+/** Seek to a desired MPEG frame index.
+ * Set whence to SEEK_SET, SEEK_CUR or SEEK_END.
+ * \return The resulting offset >= 0 or error/message code */
+EXPORT off_t mpg123_seek_frame(mpg123_handle *mh, off_t frameoff, int whence);
+
+/** Return a MPEG frame offset corresponding to an offset in seconds.
+ * This assumes that the samples per frame do not change in the file/stream, which is a good assumption for any sane file/stream only.
+ * \return frame offset >= 0 or error/message code */
+EXPORT off_t mpg123_timeframe(mpg123_handle *mh, double sec);
+
+/** Give access to the frame index table that is managed for seeking.
+ * You are asked not to modify the values... unless you are really aware of what you are doing.
+ * \param offsets pointer to the index array
+ * \param step one index byte offset advances this many MPEG frames
+ * \param fill number of recorded index offsets; size of the array */
+EXPORT int mpg123_index(mpg123_handle *mh, off_t **offsets, off_t *step, size_t *fill);
+
+/** Get information about current and remaining frames/seconds.
+ * WARNING: This function is there because of special usage by standalone mpg123 and may be removed in the final version of libmpg123!
+ * You provide an offset (in frames) from now and a number of output bytes
+ * served by libmpg123 but not yet played. You get the projected current frame
+ * and seconds, as well as the remaining frames/seconds. This does _not_ care
+ * about skipped samples due to gapless playback. */
+EXPORT int mpg123_position( mpg123_handle *mh, off_t frame_offset,
+ off_t buffered_bytes, off_t *current_frame,
+ off_t *frames_left, double *current_seconds,
+ double *seconds_left);
+
+/*@}*/
+
+
+/** \defgroup mpg123_voleq mpg123 volume and equalizer
+ *
+ * @{
+ */
+
+enum mpg123_channels
+{
+ MPG123_LEFT=0x1 /**< The Left Channel. */
+ ,MPG123_RIGHT=0x2 /**< The Right Channel. */
+ ,MPG123_LR=0x3 /**< Both left and right channel; same as MPG123_LEFT|MPG123_RIGHT */
+};
+
+/** Set the 32 Band Audio Equalizer settings.
+ * \param channel Can be MPG123_LEFT, MPG123_RIGHT or MPG123_LEFT|MPG123_RIGHT for both.
+ * \param band The equaliser band to change (from 0 to 31)
+ * \param val The (linear) adjustment factor. */
+EXPORT int mpg123_eq(mpg123_handle *mh, enum mpg123_channels channel, int band, double val);
+
+/** Get the 32 Band Audio Equalizer settings.
+ * \param channel Can be MPG123_LEFT, MPG123_RIGHT or MPG123_LEFT|MPG123_RIGHT for (arithmetic mean of) both.
+ * \param band The equaliser band to change (from 0 to 31)
+ * \return The (linear) adjustment factor. */
+EXPORT double mpg123_geteq(mpg123_handle *mh, enum mpg123_channels channel, int band);
+
+/** Reset the 32 Band Audio Equalizer settings to flat */
+EXPORT int mpg123_reset_eq(mpg123_handle *mh);
+
+/** Set the absolute output volume including the RVA setting,
+ * vol<0 just applies (a possibly changed) RVA setting. */
+EXPORT int mpg123_volume(mpg123_handle *mh, double vol);
+
+/** Adjust output volume including the RVA setting by chosen amount */
+EXPORT int mpg123_volume_change(mpg123_handle *mh, double change);
+
+/** Return current volume setting, the actual value due to RVA, and the RVA
+ * adjustment itself. It's all as double float value to abstract the sample
+ * format. The volume values are linear factors / amplitudes (not percent)
+ * and the RVA value is in decibels. */
+EXPORT int mpg123_getvolume(mpg123_handle *mh, double *base, double *really, double *rva_db);
+
+/* TODO: Set some preamp in addition / to replace internal RVA handling? */
+
+/*@}*/
+
+
+/** \defgroup mpg123_status mpg123 status and information
+ *
+ * @{
+ */
+
+/** Enumeration of the mode types of Variable Bitrate */
+enum mpg123_vbr {
+ MPG123_CBR=0, /**< Constant Bitrate Mode (default) */
+ MPG123_VBR, /**< Variable Bitrate Mode */
+ MPG123_ABR /**< Average Bitrate Mode */
+};
+
+/** Enumeration of the MPEG Versions */
+enum mpg123_version {
+ MPG123_1_0=0, /**< MPEG Version 1.0 */
+ MPG123_2_0, /**< MPEG Version 2.0 */
+ MPG123_2_5 /**< MPEG Version 2.5 */
+};
+
+
+/** Enumeration of the MPEG Audio mode.
+ * Only the mono mode has 1 channel, the others have 2 channels. */
+enum mpg123_mode {
+ MPG123_M_STEREO=0, /**< Standard Stereo. */
+ MPG123_M_JOINT, /**< Joint Stereo. */
+ MPG123_M_DUAL, /**< Dual Channel. */
+ MPG123_M_MONO /**< Single Channel. */
+};
+
+
+/** Enumeration of the MPEG Audio flag bits */
+enum mpg123_flags {
+ MPG123_CRC=0x1, /**< The bitstream is error protected using 16-bit CRC. */
+ MPG123_COPYRIGHT=0x2, /**< The bitstream is copyrighted. */
+ MPG123_PRIVATE=0x4, /**< The private bit has been set. */
+ MPG123_ORIGINAL=0x8 /**< The bitstream is an original, not a copy. */
+};
+
+/** Data structure for storing information about a frame of MPEG Audio */
+struct mpg123_frameinfo
+{
+ enum mpg123_version version; /**< The MPEG version (1.0/2.0/2.5). */
+ int layer; /**< The MPEG Audio Layer (MP1/MP2/MP3). */
+ long rate; /**< The sampling rate in Hz. */
+ enum mpg123_mode mode; /**< The audio mode (Mono, Stereo, Joint-stero, Dual Channel). */
+ int mode_ext; /**< The mode extension bit flag. */
+ int framesize; /**< The size of the frame (in bytes). */
+ enum mpg123_flags flags; /**< MPEG Audio flag bits. */
+ int emphasis; /**< The emphasis type. */
+ int bitrate; /**< Bitrate of the frame (kbps). */
+ int abr_rate; /**< The target average bitrate. */
+ enum mpg123_vbr vbr; /**< The VBR mode. */
+};
+
+/** Get frame information about the MPEG audio bitstream and store it in a mpg123_frameinfo structure. */
+EXPORT int mpg123_info(mpg123_handle *mh, struct mpg123_frameinfo *mi);
+
+/** Get the safe output buffer size for all cases (when you want to replace the internal buffer) */
+EXPORT size_t mpg123_safe_buffer();
+
+/** Make a full parsing scan of each frame in the file. ID3 tags are found. An accurate length
+ * value is stored. Seek index will be filled. A seek back to current position
+ * is performed. At all, this function refuses work when stream is
+ * not seekable.
+ * \return MPG123_OK or MPG123_ERR.
+ */
+EXPORT int mpg123_scan(mpg123_handle *mh);
+
+/** Return, if possible, the full (expected) length of current track in samples.
+ * \return length >= 0 or MPG123_ERR if there is no length guess possible. */
+EXPORT off_t mpg123_length(mpg123_handle *mh);
+
+/** Override the value for file size in bytes.
+ * Useful for getting sensible track length values in feed mode or for HTTP streams.
+ * \return MPG123_OK or MPG123_ERR */
+EXPORT int mpg123_set_filesize(mpg123_handle *mh, off_t size);
+
+/** Returns the time (seconds) per frame; <0 is error. */
+EXPORT double mpg123_tpf(mpg123_handle *mh);
+
+/** Get and reset the clip count. */
+EXPORT long mpg123_clip(mpg123_handle *mh);
+
+
+/** The key values for state information from mpg123_getstate(). */
+enum mpg123_state
+{
+ MPG123_ACCURATE = 1 /**< Query if positons are currently accurate (integer value, 0 if false, 1 if true) */
+};
+
+/** Get various current decoder/stream state information.
+ * \param key the key to identify the information to give.
+ * \param val the address to return (long) integer values to
+ * \param fval the address to return floating point values to
+ * \return MPG123_OK or MPG123_ERR for success
+ */
+EXPORT int mpg123_getstate(mpg123_handle *mh, enum mpg123_state key, long *val, double *fval);
+
+/*@}*/
+
+
+/** \defgroup mpg123_metadata mpg123 metadata handling
+ *
+ * Functions to retrieve the metadata from MPEG Audio files and streams.
+ * Also includes string handling functions.
+ *
+ * @{
+ */
+
+/** Data structure for storing strings in a safer way than a standard C-String.
+ * Can also hold a number of null-terminated strings. */
+typedef struct
+{
+ char* p; /**< pointer to the string data */
+ size_t size; /**< raw number of bytes allocated */
+ size_t fill; /**< number of used bytes (including closing zero byte) */
+} mpg123_string;
+
+/** Create and allocate memory for a new mpg123_string */
+EXPORT void mpg123_init_string(mpg123_string* sb);
+
+/** Free-up mempory for an existing mpg123_string */
+EXPORT void mpg123_free_string(mpg123_string* sb);
+
+/** Change the size of a mpg123_string
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_resize_string(mpg123_string* sb, size_t news);
+
+/** Increase size of a mpg123_string if necessary (it may stay larger).
+ * Note that the functions for adding and setting in current libmpg123 use this instead of mpg123_resize_string().
+ * That way, you can preallocate memory and safely work afterwards with pieces.
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_grow_string(mpg123_string* sb, size_t news);
+
+/** Copy the contents of one mpg123_string string to another.
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_copy_string(mpg123_string* from, mpg123_string* to);
+
+/** Append a C-String to an mpg123_string
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_add_string(mpg123_string* sb, const char* stuff);
+
+/** Append a C-substring to an mpg123 string
+ * \return 0 on error, 1 on success
+ * \param from offset to copy from
+ * \param count number of characters to copy (a null-byte is always appended) */
+EXPORT int mpg123_add_substring(mpg123_string *sb, const char *stuff, size_t from, size_t count);
+
+/** Set the conents of a mpg123_string to a C-string
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_set_string(mpg123_string* sb, const char* stuff);
+
+/** Set the contents of a mpg123_string to a C-substring
+ * \return 0 on error, 1 on success
+ * \param from offset to copy from
+ * \param count number of characters to copy (a null-byte is always appended) */
+EXPORT int mpg123_set_substring(mpg123_string *sb, const char *stuff, size_t from, size_t count);
+
+
+/** Sub data structure for ID3v2, for storing various text fields (including comments).
+ * This is for ID3v2 COMM, TXXX and all the other text fields.
+ * Only COMM and TXXX have a description, only COMM and USLT have a language.
+ * You should consult the ID3v2 specification for the use of the various text fields ("frames" in ID3v2 documentation, I use "fields" here to separate from MPEG frames). */
+typedef struct
+{
+ char lang[3]; /**< Three-letter language code (not terminated). */
+ char id[4]; /**< The ID3v2 text field id, like TALB, TPE2, ... (4 characters, no string termination). */
+ mpg123_string description; /**< Empty for the generic comment... */
+ mpg123_string text; /**< ... */
+} mpg123_text;
+
+/** Data structure for storing IDV3v2 tags.
+ * This structure is not a direct binary mapping with the file contents.
+ * The ID3v2 text frames are allowed to contain multiple strings.
+ * So check for null bytes until you reach the mpg123_string fill.
+ * All text is encoded in UTF-8. */
+typedef struct
+{
+ unsigned char version; /**< 3 or 4 for ID3v2.3 or ID3v2.4. */
+ mpg123_string *title; /**< Title string (pointer into text_list). */
+ mpg123_string *artist; /**< Artist string (pointer into text_list). */
+ mpg123_string *album; /**< Album string (pointer into text_list). */
+ mpg123_string *year; /**< The year as a string (pointer into text_list). */
+ mpg123_string *genre; /**< Genre String (pointer into text_list). The genre string(s) may very well need postprocessing, esp. for ID3v2.3. */
+ mpg123_string *comment; /**< Pointer to last encountered comment text with empty description. */
+ /* Encountered ID3v2 fields are appended to these lists.
+ There can be multiple occurences, the pointers above always point to the last encountered data. */
+ mpg123_text *comment_list; /**< Array of comments. */
+ size_t comments; /**< Number of comments. */
+ mpg123_text *text; /**< Array of ID3v2 text fields (including USLT) */
+ size_t texts; /**< Numer of text fields. */
+ mpg123_text *extra; /**< The array of extra (TXXX) fields. */
+ size_t extras; /**< Number of extra text (TXXX) fields. */
+} mpg123_id3v2;
+
+/** Data structure for ID3v1 tags (the last 128 bytes of a file).
+ * Don't take anything for granted (like string termination)!
+ * Also note the change ID3v1.1 did: comment[28] = 0; comment[19] = track_number
+ * It is your task to support ID3v1 only or ID3v1.1 ...*/
+typedef struct
+{
+ char tag[3]; /**< Always the string "TAG", the classic intro. */
+ char title[30]; /**< Title string. */
+ char artist[30]; /**< Artist string. */
+ char album[30]; /**< Album string. */
+ char year[4]; /**< Year string. */
+ char comment[30]; /**< Comment string. */
+ unsigned char genre; /**< Genre index. */
+} mpg123_id3v1;
+
+#define MPG123_ID3 0x3 /**< 0011 There is some ID3 info. Also matches 0010 or NEW_ID3. */
+#define MPG123_NEW_ID3 0x1 /**< 0001 There is ID3 info that changed since last call to mpg123_id3. */
+#define MPG123_ICY 0xc /**< 1100 There is some ICY info. Also matches 0100 or NEW_ICY.*/
+#define MPG123_NEW_ICY 0x4 /**< 0100 There is ICY info that changed since last call to mpg123_icy. */
+
+/** Query if there is (new) meta info, be it ID3 or ICY (or something new in future).
+ The check function returns a combination of flags. */
+EXPORT int mpg123_meta_check(mpg123_handle *mh); /* On error (no valid handle) just 0 is returned. */
+
+/** Point v1 and v2 to existing data structures wich may change on any next read/decode function call.
+ * v1 and/or v2 can be set to NULL when there is no corresponding data.
+ * \return Return value is MPG123_OK or MPG123_ERR, */
+EXPORT int mpg123_id3(mpg123_handle *mh, mpg123_id3v1 **v1, mpg123_id3v2 **v2);
+
+/** Point icy_meta to existing data structure wich may change on any next read/decode function call.
+ * \return Return value is MPG123_OK or MPG123_ERR, */
+EXPORT int mpg123_icy(mpg123_handle *mh, char **icy_meta); /* same for ICY meta string */
+
+/** Decode from windows-1252 (the encoding ICY metainfo used) to UTF-8.
+ * \param icy_text The input data in ICY encoding
+ * \return pointer to newly allocated buffer with UTF-8 data (You free() it!) */
+EXPORT char* mpg123_icy2utf8(const char* icy_text);
+
+
+/* @} */
+
+
+/** \defgroup mpg123_advpar mpg123 advanced parameter API
+ *
+ * Direct access to a parameter set without full handle around it.
+ * Possible uses:
+ * - Influence behaviour of library _during_ initialization of handle (MPG123_VERBOSE).
+ * - Use one set of parameters for multiple handles.
+ *
+ * The functions for handling mpg123_pars (mpg123_par() and mpg123_fmt()
+ * family) directly return a fully qualified mpg123 error code, the ones
+ * operating on full handles normally MPG123_OK or MPG123_ERR, storing the
+ * specific error code itseld inside the handle.
+ *
+ * @{
+ */
+
+/** Opaque structure for the libmpg123 decoder parameters. */
+struct mpg123_pars_struct;
+
+/** Opaque structure for the libmpg123 decoder parameters. */
+typedef struct mpg123_pars_struct mpg123_pars;
+
+/** Create a handle with preset parameters. */
+EXPORT mpg123_handle *mpg123_parnew(mpg123_pars *mp, const char* decoder, int *error);
+
+/** Allocate memory for and return a pointer to a new mpg123_pars */
+EXPORT mpg123_pars *mpg123_new_pars(int *error);
+
+/** Delete and free up memory used by a mpg123_pars data structure */
+EXPORT void mpg123_delete_pars(mpg123_pars* mp);
+
+/** Configure mpg123 parameters to accept no output format at all,
+ * use before specifying supported formats with mpg123_format */
+EXPORT int mpg123_fmt_none(mpg123_pars *mp);
+
+/** Configure mpg123 parameters to accept all formats
+ * (also any custom rate you may set) -- this is default. */
+EXPORT int mpg123_fmt_all(mpg123_pars *mp);
+
+/** Set the audio format support of a mpg123_pars in detail:
+ \param rate The sample rate value (in Hertz).
+ \param channels A combination of MPG123_STEREO and MPG123_MONO.
+ \param encodings A combination of accepted encodings for rate and channels, p.ex MPG123_ENC_SIGNED16|MPG123_ENC_ULAW_8 (or 0 for no support).
+ \return 0 on success, -1 if there was an error. /
+*/
+EXPORT int mpg123_fmt(mpg123_pars *mh, long rate, int channels, int encodings); /* 0 is good, -1 is error */
+
+/** Check to see if a specific format at a specific rate is supported
+ * by mpg123_pars.
+ * \return 0 for no support (that includes invalid parameters), MPG123_STEREO,
+ * MPG123_MONO or MPG123_STEREO|MPG123_MONO. */
+EXPORT int mpg123_fmt_support(mpg123_pars *mh, long rate, int encoding);
+
+/** Set a specific parameter, for a specific mpg123_pars, using a parameter
+ * type key chosen from the mpg123_parms enumeration, to the specified value. */
+EXPORT int mpg123_par(mpg123_pars *mp, enum mpg123_parms type, long value, double fvalue);
+
+/** Get a specific parameter, for a specific mpg123_pars.
+ * See the mpg123_parms enumeration for a list of available parameters. */
+EXPORT int mpg123_getpar(mpg123_pars *mp, enum mpg123_parms type, long *val, double *fval);
+
+/* @} */
+
+
+/** \defgroup mpg123_lowio mpg123 low level I/O
+ * You may want to do tricky stuff with I/O that does not work with mpg123's default file access or you want to make it decode into your own pocket...
+ *
+ * @{ */
+
+/** Replace default internal buffer with user-supplied buffer.
+ * Instead of working on it's own private buffer, mpg123 will directly use the one you provide for storing decoded audio. */
+EXPORT int mpg123_replace_buffer(mpg123_handle *mh, unsigned char *data, size_t size);
+
+/** The max size of one frame's decoded output with current settings.
+ * Use that to determine an appropriate minimum buffer size for decoding one frame. */
+EXPORT size_t mpg123_outblock(mpg123_handle *mh);
+
+/** Replace low-level stream access functions; read and lseek as known in POSIX.
+ * You can use this to make any fancy file opening/closing yourself,
+ * using open_fd to set the file descriptor for your read/lseek (doesn't need to be a "real" file descriptor...).
+ * Setting a function to NULL means that the default internal read is
+ * used (active from next mpg123_open call on). */
+EXPORT int mpg123_replace_reader( mpg123_handle *mh,
+ ssize_t (*r_read) (int, void *, size_t),
+ off_t (*r_lseek)(int, off_t, int) );
+
+/* @} */
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/src/libmpg123/Makefile.am b/src/libmpg123/Makefile.am
new file mode 100644
index 0000000..483f568
--- /dev/null
+++ b/src/libmpg123/Makefile.am
@@ -0,0 +1,124 @@
+## Makefile.am: produce Makefile.in from this
+
+## copyright by the mpg123 project - free software under the terms of the LGPL 2.1
+## see COPYING and AUTHORS files in distribution or http://mpg123.org
+## initially written by Nicholas J. Humfrey
+
+#AM_CFLAGS = @AUDIO_CFLAGS@
+#AM_LDFLAGS =
+INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/libmpg123
+
+EXTRA_DIST = mpg123.h.in dnoise.sh dnoise.dat
+
+EXTRA_PROGRAMS = testcpu
+testcpu_dependencies = getcpuflags.$(OBJEXT)
+testcpu_sources = testcpu.c
+testcpu_LDADD = getcpuflags.$(OBJEXT)
+
+
+CLEANFILES = *.a
+
+
+#lib_LIBRARIES = libmpg123.a
+lib_LTLIBRARIES = libmpgdec.la
+nodist_include_HEADERS = mpg123.h
+
+#libmpg123_a_LIBADD = @DECODER_OBJ@
+#libmpg123_a_DEPENDENCIES = @DECODER_OBJ@
+
+libmpg123_la_LDFLAGS = -no-undefined -version-info @LIBMPG123_VERSION@ -export-symbols libmpg123.sym
+libmpg123_la_LIBADD = @DECODER_LOBJ@
+libmpg123_la_DEPENDENCIES = @DECODER_LOBJ@ libmpg123.sym
+
+libmpg123_la_SOURCES = \
+ compat.c \
+ compat.h \
+ parse.c \
+ parse.h \
+ frame.c \
+ format.c \
+ frame.h \
+ reader.h \
+ debug.h \
+ decode.h \
+ sample.h \
+ dct64.c \
+ synth.h \
+ synth_mono.h \
+ synth_ntom.h \
+ synth_8bit.h \
+ synths.h \
+ equalizer.c \
+ huffman.h \
+ icy.h \
+ icy2utf8.h \
+ id3.h \
+ id3.c \
+ true.h \
+ getbits.h \
+ optimize.h \
+ optimize.c \
+ readers.c \
+ tabinit.c \
+ libmpg123.c \
+ mpg123lib_intern.h \
+ mangle.h \
+ getcpuflags.h \
+ index.h \
+ index.c \
+ libmpg123.sym
+
+EXTRA_libmpg123_la_SOURCES = \
+ icy.c \
+ icy2utf8.c \
+ l2tables.h \
+ layer1.c \
+ layer2.c \
+ layer3.c \
+ dct36_3dnowext.S \
+ dct36_3dnow.S \
+ dct64_3dnowext.S \
+ dct64_3dnow.S \
+ dct64_altivec.c \
+ dct64_i386.c \
+ dct64_i486.c \
+ dct64_mmx.S \
+ dct64_sse.S \
+ dct64_sse_float.S \
+ dct64_x86_64.S \
+ dct64_x86_64_float.S \
+ synth_3dnowext.S \
+ synth_3dnow.S \
+ synth_altivec.c \
+ synth_i486.c \
+ synth_i586_dither.S \
+ synth_i586.S \
+ synth_mmx.S \
+ synth_sse3d.h \
+ synth_sse.S \
+ synth_sse_float.S \
+ synth_sse_s32.S \
+ synth_sse_accurate.S \
+ synth_stereo_sse_float.S \
+ synth_stereo_sse_s32.S \
+ synth_stereo_sse_accurate.S \
+ synth_x86_64.S \
+ synth_x86_64_float.S \
+ synth_x86_64_s32.S \
+ synth_x86_64_accurate.S \
+ synth_stereo_x86_64.S \
+ synth_stereo_x86_64_float.S \
+ synth_stereo_x86_64_s32.S \
+ synth_stereo_x86_64_accurate.S \
+ ntom.c \
+ synth.c \
+ synth_8bit.c \
+ synth_real.c \
+ synth_s32.c \
+ equalizer_3dnow.S \
+ tabinit_mmx.S \
+ stringbuf.c \
+ getcpuflags.S
+
+dnoise.c: dnoise.dat dnoise.sh
+ sh "$(top_srcdir)/src/libmpg123/dnoise.sh" "$<" > "$@"
diff --git a/src/libmpg123/Makefile.in b/src/libmpg123/Makefile.in
new file mode 100644
index 0000000..89910ae
--- /dev/null
+++ b/src/libmpg123/Makefile.in
@@ -0,0 +1,788 @@
+# Makefile.in generated by automake 1.10.2 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+EXTRA_PROGRAMS = testcpu$(EXEEXT)
+subdir = src/libmpg123
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
+ $(srcdir)/libmpg123.sym.in $(srcdir)/mpg123.h.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/src/config.h
+CONFIG_CLEAN_FILES = mpg123.h libmpg123.sym
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
+libLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(lib_LTLIBRARIES)
+am_libmpg123_la_OBJECTS = compat.lo parse.lo frame.lo format.lo \
+ dct64.lo equalizer.lo id3.lo optimize.lo readers.lo tabinit.lo \
+ libmpg123.lo index.lo
+libmpg123_la_OBJECTS = $(am_libmpg123_la_OBJECTS)
+libmpg123_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(libmpg123_la_LDFLAGS) $(LDFLAGS) -o $@
+testcpu_SOURCES = testcpu.c
+testcpu_OBJECTS = testcpu.$(OBJEXT)
+testcpu_DEPENDENCIES = getcpuflags.$(OBJEXT)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src
+depcomp = $(SHELL) $(top_srcdir)/build/depcomp
+am__depfiles_maybe = depfiles
+CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
+LTCPPASCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(libmpg123_la_SOURCES) $(EXTRA_libmpg123_la_SOURCES) \
+ testcpu.c
+DIST_SOURCES = $(libmpg123_la_SOURCES) $(EXTRA_libmpg123_la_SOURCES) \
+ testcpu.c
+nodist_includeHEADERS_INSTALL = $(INSTALL_HEADER)
+HEADERS = $(nodist_include_HEADERS)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AIX_CFLAGS = @AIX_CFLAGS@
+AIX_LDFLAGS = @AIX_LDFLAGS@
+AIX_LIBS = @AIX_LIBS@
+ALIB_CFLAGS = @ALIB_CFLAGS@
+ALIB_LDFLAGS = @ALIB_LDFLAGS@
+ALIB_LIBS = @ALIB_LIBS@
+ALSA_CFLAGS = @ALSA_CFLAGS@
+ALSA_LDFLAGS = @ALSA_LDFLAGS@
+ALSA_LIBS = @ALSA_LIBS@
+AMTAR = @AMTAR@
+AR = @AR@
+ARTS_CFLAGS = @ARTS_CFLAGS@
+ARTS_LDFLAGS = @ARTS_LDFLAGS@
+ARTS_LIBS = @ARTS_LIBS@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
+CCASFLAGS = @CCASFLAGS@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+COREAUDIO_CFLAGS = @COREAUDIO_CFLAGS@
+COREAUDIO_LDFLAGS = @COREAUDIO_LDFLAGS@
+COREAUDIO_LIBS = @COREAUDIO_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DECODER_LOBJ = @DECODER_LOBJ@
+DECODER_OBJ = @DECODER_OBJ@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMMY_CFLAGS = @DUMMY_CFLAGS@
+DUMMY_LDFLAGS = @DUMMY_LDFLAGS@
+DUMMY_LIBS = @DUMMY_LIBS@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_LDFLAGS = @ESD_LDFLAGS@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GREP = @GREP@
+HP_CFLAGS = @HP_CFLAGS@
+HP_LDFLAGS = @HP_LDFLAGS@
+HP_LIBS = @HP_LIBS@
+INCLUDE_STDIO_H = @INCLUDE_STDIO_H@
+INCLUDE_STDLIB_H = @INCLUDE_STDLIB_H@
+INCLUDE_SYS_TYPE_H = @INCLUDE_SYS_TYPE_H@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+JACK_CFLAGS = @JACK_CFLAGS@
+JACK_LDFLAGS = @JACK_LDFLAGS@
+JACK_LIBS = @JACK_LIBS@
+LARGEFILE_BITS = @LARGEFILE_BITS@
+LARGEFILE_SUFFIX = @LARGEFILE_SUFFIX@
+LARGEFILE_SWITCH = @LARGEFILE_SWITCH@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBMPG123_VERSION = @LIBMPG123_VERSION@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_LDFLAGS = @LT_LDFLAGS@
+MAKEINFO = @MAKEINFO@
+MINT_CFLAGS = @MINT_CFLAGS@
+MINT_LDFLAGS = @MINT_LDFLAGS@
+MINT_LIBS = @MINT_LIBS@
+MKDIR_P = @MKDIR_P@
+MODULE_OBJ = @MODULE_OBJ@
+NAS_CFLAGS = @NAS_CFLAGS@
+NAS_LDFLAGS = @NAS_LDFLAGS@
+NAS_LIBS = @NAS_LIBS@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OS2_CFLAGS = @OS2_CFLAGS@
+OS2_LDFLAGS = @OS2_LDFLAGS@
+OS2_LIBS = @OS2_LIBS@
+OSS_CFLAGS = @OSS_CFLAGS@
+OSS_LDFLAGS = @OSS_LDFLAGS@
+OSS_LIBS = @OSS_LIBS@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+OUTPUT_CFLAGS = @OUTPUT_CFLAGS@
+OUTPUT_LDFLAGS = @OUTPUT_LDFLAGS@
+OUTPUT_LIBS = @OUTPUT_LIBS@
+OUTPUT_MOD = @OUTPUT_MOD@
+OUTPUT_OBJ = @OUTPUT_OBJ@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@
+PORTAUDIO_LDFLAGS = @PORTAUDIO_LDFLAGS@
+PORTAUDIO_LIBS = @PORTAUDIO_LIBS@
+PULSE_CFLAGS = @PULSE_CFLAGS@
+PULSE_LDFLAGS = @PULSE_LDFLAGS@
+PULSE_LIBS = @PULSE_LIBS@
+RANLIB = @RANLIB@
+SDL_CFLAGS = @SDL_CFLAGS@
+SDL_LDFLAGS = @SDL_LDFLAGS@
+SDL_LIBS = @SDL_LIBS@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SGI_CFLAGS = @SGI_CFLAGS@
+SGI_LDFLAGS = @SGI_LDFLAGS@
+SGI_LIBS = @SGI_LIBS@
+SHELL = @SHELL@
+SNDIO_CFLAGS = @SNDIO_CFLAGS@
+SNDIO_LDFLAGS = @SNDIO_LDFLAGS@
+SNDIO_LIBS = @SNDIO_LIBS@
+STRIP = @STRIP@
+SUN_CFLAGS = @SUN_CFLAGS@
+SUN_LDFLAGS = @SUN_LDFLAGS@
+SUN_LIBS = @SUN_LIBS@
+VERSION = @VERSION@
+WIN32_CFLAGS = @WIN32_CFLAGS@
+WIN32_LDFLAGS = @WIN32_LDFLAGS@
+WIN32_LIBS = @WIN32_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+
+#AM_CFLAGS = @AUDIO_CFLAGS@
+#AM_LDFLAGS =
+INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/libmpg123
+EXTRA_DIST = mpg123.h.in dnoise.sh dnoise.dat
+testcpu_dependencies = getcpuflags.$(OBJEXT)
+testcpu_sources = testcpu.c
+testcpu_LDADD = getcpuflags.$(OBJEXT)
+CLEANFILES = *.a
+
+#lib_LIBRARIES = libmpg123.a
+lib_LTLIBRARIES = libmpgdec.la
+nodist_include_HEADERS = mpg123.h
+
+#libmpg123_a_LIBADD = @DECODER_OBJ@
+#libmpg123_a_DEPENDENCIES = @DECODER_OBJ@
+libmpg123_la_LDFLAGS = -no-undefined -version-info @LIBMPG123_VERSION@ -export-symbols libmpg123.sym
+libmpg123_la_LIBADD = @DECODER_LOBJ@
+libmpg123_la_DEPENDENCIES = @DECODER_LOBJ@ libmpg123.sym
+libmpg123_la_SOURCES = \
+ compat.c \
+ compat.h \
+ parse.c \
+ parse.h \
+ frame.c \
+ format.c \
+ frame.h \
+ reader.h \
+ debug.h \
+ decode.h \
+ sample.h \
+ dct64.c \
+ synth.h \
+ synth_mono.h \
+ synth_ntom.h \
+ synth_8bit.h \
+ synths.h \
+ equalizer.c \
+ huffman.h \
+ icy.h \
+ icy2utf8.h \
+ id3.h \
+ id3.c \
+ true.h \
+ getbits.h \
+ optimize.h \
+ optimize.c \
+ readers.c \
+ tabinit.c \
+ libmpg123.c \
+ mpg123lib_intern.h \
+ mangle.h \
+ getcpuflags.h \
+ index.h \
+ index.c \
+ libmpg123.sym
+
+EXTRA_libmpg123_la_SOURCES = \
+ icy.c \
+ icy2utf8.c \
+ l2tables.h \
+ layer1.c \
+ layer2.c \
+ layer3.c \
+ dct36_3dnowext.S \
+ dct36_3dnow.S \
+ dct64_3dnowext.S \
+ dct64_3dnow.S \
+ dct64_altivec.c \
+ dct64_i386.c \
+ dct64_i486.c \
+ dct64_mmx.S \
+ dct64_sse.S \
+ dct64_sse_float.S \
+ dct64_x86_64.S \
+ dct64_x86_64_float.S \
+ synth_3dnowext.S \
+ synth_3dnow.S \
+ synth_altivec.c \
+ synth_i486.c \
+ synth_i586_dither.S \
+ synth_i586.S \
+ synth_mmx.S \
+ synth_sse3d.h \
+ synth_sse.S \
+ synth_sse_float.S \
+ synth_sse_s32.S \
+ synth_sse_accurate.S \
+ synth_stereo_sse_float.S \
+ synth_stereo_sse_s32.S \
+ synth_stereo_sse_accurate.S \
+ synth_x86_64.S \
+ synth_x86_64_float.S \
+ synth_x86_64_s32.S \
+ synth_x86_64_accurate.S \
+ synth_stereo_x86_64.S \
+ synth_stereo_x86_64_float.S \
+ synth_stereo_x86_64_s32.S \
+ synth_stereo_x86_64_accurate.S \
+ ntom.c \
+ synth.c \
+ synth_8bit.c \
+ synth_real.c \
+ synth_s32.c \
+ equalizer_3dnow.S \
+ tabinit_mmx.S \
+ stringbuf.c \
+ getcpuflags.S
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .S .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/libmpg123/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/libmpg123/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+mpg123.h: $(top_builddir)/config.status $(srcdir)/mpg123.h.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+libmpg123.sym: $(top_builddir)/config.status $(srcdir)/libmpg123.sym.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-libLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ p=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
+ done
+
+clean-libLTLIBRARIES:
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libmpgdec.la: $(libmpg123_la_OBJECTS) $(libmpg123_la_DEPENDENCIES)
+ $(libmpg123_la_LINK) -rpath $(libdir) $(libmpg123_la_OBJECTS) $(libmpg123_la_LIBADD) $(LIBS)
+testcpu$(EXEEXT): $(testcpu_OBJECTS) $(testcpu_DEPENDENCIES)
+ @rm -f testcpu$(EXEEXT)
+ $(LINK) $(testcpu_OBJECTS) $(testcpu_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compat.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct36_3dnow.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct36_3dnowext.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_3dnow.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_3dnowext.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_altivec.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_i386.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_i486.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_mmx.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_sse.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_sse_float.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_x86_64.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dct64_x86_64_float.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/equalizer.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/equalizer_3dnow.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/format.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frame.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getcpuflags.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/icy.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/icy2utf8.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/id3.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/index.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/layer1.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/layer2.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/layer3.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmpg123.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ntom.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optimize.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readers.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stringbuf.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_3dnow.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_3dnowext.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_8bit.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_altivec.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_i486.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_i586.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_i586_dither.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_mmx.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_real.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_s32.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_sse.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_sse_accurate.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_sse_float.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_sse_s32.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_stereo_sse_accurate.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_stereo_sse_float.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_stereo_sse_s32.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_stereo_x86_64.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_stereo_x86_64_accurate.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_stereo_x86_64_float.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_stereo_x86_64_s32.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_x86_64.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_x86_64_accurate.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_x86_64_float.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/synth_x86_64_s32.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tabinit.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tabinit_mmx.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testcpu.Po@am__quote@
+
+.S.o:
+@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ $<
+
+.S.obj:
+@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.S.lo:
+@am__fastdepCCAS_TRUE@ $(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCCAS_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCCAS_FALSE@ $(LTCPPASCOMPILE) -c -o $@ $<
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-nodist_includeHEADERS: $(nodist_include_HEADERS)
+ @$(NORMAL_INSTALL)
+ test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
+ @list='$(nodist_include_HEADERS)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+ echo " $(nodist_includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
+ $(nodist_includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
+ done
+
+uninstall-nodist_includeHEADERS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(nodist_include_HEADERS)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+ echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
+ rm -f "$(DESTDIR)$(includedir)/$$f"; \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES) $(HEADERS)
+installdirs:
+ for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am: install-nodist_includeHEADERS
+
+install-dvi: install-dvi-am
+
+install-exec-am: install-libLTLIBRARIES
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-libLTLIBRARIES uninstall-nodist_includeHEADERS
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libLTLIBRARIES clean-libtool ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am \
+ install-libLTLIBRARIES install-man \
+ install-nodist_includeHEADERS install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags uninstall uninstall-am uninstall-libLTLIBRARIES \
+ uninstall-nodist_includeHEADERS
+
+
+dnoise.c: dnoise.dat dnoise.sh
+ sh "$(top_srcdir)/src/libmpg123/dnoise.sh" "$<" > "$@"
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/libmpg123/compat.c b/src/libmpg123/compat.c
new file mode 100644
index 0000000..bb94aee
--- /dev/null
+++ b/src/libmpg123/compat.c
@@ -0,0 +1,41 @@
+/*
+ compat: Some compatibility functions. Basic standard C stuff, that may barely be above/around C89.
+
+ The mpg123 code is determined to keep it's legacy. A legacy of old, old UNIX.
+
+ copyright 2007-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include "config.h"
+#include "compat.h"
+
+/* A safe realloc also for very old systems where realloc(NULL, size) returns NULL. */
+void *safe_realloc(void *ptr, size_t size)
+{
+ if(ptr == NULL) return malloc(size);
+ else return realloc(ptr, size);
+}
+
+#ifndef HAVE_STRERROR
+const char *strerror(int errnum)
+{
+ extern int sys_nerr;
+ extern char *sys_errlist[];
+
+ return (errnum < sys_nerr) ? sys_errlist[errnum] : "";
+}
+#endif
+
+#ifndef HAVE_STRDUP
+char *strdup(const char *src)
+{
+ char *dest;
+
+ if (!(dest = (char *) malloc(strlen(src)+1)))
+ return NULL;
+ else
+ return strcpy(dest, src);
+}
+#endif
diff --git a/src/libmpg123/compat.h b/src/libmpg123/compat.h
new file mode 100644
index 0000000..d1065ce
--- /dev/null
+++ b/src/libmpg123/compat.h
@@ -0,0 +1,124 @@
+/*
+ compat: Some compatibility functions and header inclusions.
+ Basic standard C stuff, that may barely be above/around C89.
+
+ The mpg123 code is determined to keep it's legacy. A legacy of old, old UNIX.
+ It is envisioned to include this compat header instead of any of the "standard" headers, to catch compatibility issues.
+ So, don't include stdlib.h or string.h ... include compat.h.
+
+ copyright 2007-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#ifndef MPG123_COMPAT_H
+#define MPG123_COMPAT_H
+
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+/* realloc, size_t */
+#include <stdlib.h>
+#endif
+
+#include <stdio.h>
+#include <math.h>
+
+#ifdef HAVE_SIGNAL_H
+#include <signal.h>
+#else
+#ifdef HAVE_SYS_SIGNAL_H
+#include <sys/signal.h>
+#endif
+#endif
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+/* Types, types, types. */
+/* Do we actually need these two in addition to sys/types.h? As replacement? */
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+/* We want SIZE_MAX, etc. */
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
+#ifndef SIZE_MAX
+#define SIZE_MAX ((size_t)-1)
+#endif
+#ifndef ULONG_MAX
+#define ULONG_MAX ((unsigned long)-1)
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef OS2
+#include <float.h>
+#endif
+
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+/* For select(), I need select.h according to POSIX 2001, else: sys/time.h sys/types.h unistd.h */
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+
+/* To parse big numbers... */
+#ifdef HAVE_ATOLL
+#define atobigint atoll
+#else
+#define atobigint atol
+#endif
+
+typedef unsigned char byte;
+
+/* A safe realloc also for very old systems where realloc(NULL, size) returns NULL. */
+void *safe_realloc(void *ptr, size_t size);
+#ifndef HAVE_STRERROR
+const char *strerror(int errnum);
+#endif
+
+#ifndef HAVE_STRDUP
+char *strdup(const char *s);
+#endif
+
+/* If we have the size checks enabled, try to derive some sane printfs.
+ Simple start: Use max integer type and format if long is not big enough.
+ I am hesitating to use %ll without making sure that it's there... */
+#if !(defined PLAIN_C89) && (defined SIZEOF_OFF_T) && (SIZEOF_OFF_T > SIZEOF_LONG) && (defined PRIiMAX)
+# define OFF_P PRIiMAX
+typedef intmax_t off_p;
+#else
+# define OFF_P "li"
+typedef long off_p;
+#endif
+
+#if !(defined PLAIN_C89) && (defined SIZEOF_SIZE_T) && (SIZEOF_SIZE_T > SIZEOF_LONG) && (defined PRIuMAX)
+# define SIZE_P PRIuMAX
+typedef uintmax_t size_p;
+#else
+# define SIZE_P "lu"
+typedef unsigned long size_p;
+#endif
+
+#if !(defined PLAIN_C89) && (defined SIZEOF_SSIZE_T) && (SIZEOF_SSIZE_T > SIZEOF_LONG) && (defined PRIiMAX)
+# define SSIZE_P PRIuMAX
+typedef intmax_t ssize_p;
+#else
+# define SSIZE_P "li"
+typedef long ssize_p;
+#endif
+
+#endif
diff --git a/src/libmpg123/dct36_3dnow.S b/src/libmpg123/dct36_3dnow.S
new file mode 100644
index 0000000..7532eb6
--- /dev/null
+++ b/src/libmpg123/dct36_3dnow.S
@@ -0,0 +1,508 @@
+/*
+ dct64_3dnow.s: Replacement of dct36() with AMD's 3DNow! SIMD operations support
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Syuuhei Kashiyama
+
+ This code based 'dct36_3dnow.s' by Syuuhei Kashiyama
+ <squash@mb.kcom.ne.jp>,only two types of changes have been made:
+
+ - remove PREFETCH instruction for speedup
+ - change function name for support 3DNow! automatic detect
+
+ You can find Kashiyama's original 3dnow! support patch
+ (for mpg123-0.59o) at
+ http://user.ecc.u-tokyo.ac.jp/~g810370/linux-simd/ (Japanese).
+
+ by KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp> - until 31.Mar.1999
+ <kim@comtec.co.jp> - after 1.Apr.1999
+
+ Replacement of dct36() with AMD's 3DNow! SIMD operations support
+
+ Syuuhei Kashiyama <squash@mb.kcom.ne.jp>
+
+ The author of this program disclaim whole expressed or implied
+ warranties with regard to this program, and in no event shall the
+ author of this program liable to whatever resulted from the use of
+ this program. Use it at your own risk.
+*/
+
+#include "mangle.h"
+
+ .globl ASM_NAME(dct36_3dnow)
+/* .type ASM_NAME(dct36_3dnow),@function */
+ASM_NAME(dct36_3dnow):
+ pushl %ebp
+ movl %esp,%ebp
+ subl $120,%esp
+ pushl %esi
+ pushl %ebx
+ movl 8(%ebp),%eax
+ movl 12(%ebp),%esi
+ movl 16(%ebp),%ecx
+ movl 20(%ebp),%edx
+ movl 24(%ebp),%ebx
+ leal -128(%ebp),%esp
+
+ femms
+ movq (%eax),%mm0
+ movq 4(%eax),%mm1
+ pfadd %mm1,%mm0
+ movq %mm0,4(%eax)
+ psrlq $32,%mm1
+ movq 12(%eax),%mm2
+ punpckldq %mm2,%mm1
+ pfadd %mm2,%mm1
+ movq %mm1,12(%eax)
+ psrlq $32,%mm2
+ movq 20(%eax),%mm3
+ punpckldq %mm3,%mm2
+ pfadd %mm3,%mm2
+ movq %mm2,20(%eax)
+ psrlq $32,%mm3
+ movq 28(%eax),%mm4
+ punpckldq %mm4,%mm3
+ pfadd %mm4,%mm3
+ movq %mm3,28(%eax)
+ psrlq $32,%mm4
+ movq 36(%eax),%mm5
+ punpckldq %mm5,%mm4
+ pfadd %mm5,%mm4
+ movq %mm4,36(%eax)
+ psrlq $32,%mm5
+ movq 44(%eax),%mm6
+ punpckldq %mm6,%mm5
+ pfadd %mm6,%mm5
+ movq %mm5,44(%eax)
+ psrlq $32,%mm6
+ movq 52(%eax),%mm7
+ punpckldq %mm7,%mm6
+ pfadd %mm7,%mm6
+ movq %mm6,52(%eax)
+ psrlq $32,%mm7
+ movq 60(%eax),%mm0
+ punpckldq %mm0,%mm7
+ pfadd %mm0,%mm7
+ movq %mm7,60(%eax)
+ psrlq $32,%mm0
+ movd 68(%eax),%mm1
+ pfadd %mm1,%mm0
+ movd %mm0,68(%eax)
+ movd 4(%eax),%mm0
+ movd 12(%eax),%mm1
+ punpckldq %mm1,%mm0
+ punpckldq 20(%eax),%mm1
+ pfadd %mm1,%mm0
+ movd %mm0,12(%eax)
+ psrlq $32,%mm0
+ movd %mm0,20(%eax)
+ psrlq $32,%mm1
+ movd 28(%eax),%mm2
+ punpckldq %mm2,%mm1
+ punpckldq 36(%eax),%mm2
+ pfadd %mm2,%mm1
+ movd %mm1,28(%eax)
+ psrlq $32,%mm1
+ movd %mm1,36(%eax)
+ psrlq $32,%mm2
+ movd 44(%eax),%mm3
+ punpckldq %mm3,%mm2
+ punpckldq 52(%eax),%mm3
+ pfadd %mm3,%mm2
+ movd %mm2,44(%eax)
+ psrlq $32,%mm2
+ movd %mm2,52(%eax)
+ psrlq $32,%mm3
+ movd 60(%eax),%mm4
+ punpckldq %mm4,%mm3
+ punpckldq 68(%eax),%mm4
+ pfadd %mm4,%mm3
+ movd %mm3,60(%eax)
+ psrlq $32,%mm3
+ movd %mm3,68(%eax)
+
+ movq 24(%eax),%mm0
+ movq 48(%eax),%mm1
+ movd ASM_NAME(COS9)+12,%mm2
+ punpckldq %mm2,%mm2
+ movd ASM_NAME(COS9)+24,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm2,%mm0
+ pfmul %mm3,%mm1
+ pushl %eax
+ movl $1,%eax
+ movd %eax,%mm7
+ pi2fd %mm7,%mm7
+ popl %eax
+ movq 8(%eax),%mm2
+ movd ASM_NAME(COS9)+4,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm3,%mm2
+ pfadd %mm0,%mm2
+ movq 40(%eax),%mm3
+ movd ASM_NAME(COS9)+20,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfadd %mm3,%mm2
+ movq 56(%eax),%mm3
+ movd ASM_NAME(COS9)+28,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfadd %mm3,%mm2
+ movq (%eax),%mm3
+ movq 16(%eax),%mm4
+ movd ASM_NAME(COS9)+8,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ movq 32(%eax),%mm4
+ movd ASM_NAME(COS9)+16,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ pfadd %mm1,%mm3
+ movq 64(%eax),%mm4
+ movd ASM_NAME(COS9)+32,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ movq %mm2,%mm4
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+0,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 108(%edx),%mm6
+ punpckldq 104(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,36(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,32(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 32(%edx),%mm6
+ punpckldq 36(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 32(%esi),%mm6
+ punpckldq 36(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,1024(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1152(%ebx)
+ movq %mm3,%mm4
+ pfsub %mm2,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+32,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 140(%edx),%mm6
+ punpckldq 72(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,68(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,0(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 0(%edx),%mm6
+ punpckldq 68(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 0(%esi),%mm6
+ punpckldq 68(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,0(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,2176(%ebx)
+ movq 8(%eax),%mm2
+ movq 40(%eax),%mm3
+ pfsub %mm3,%mm2
+ movq 56(%eax),%mm3
+ pfsub %mm3,%mm2
+ movd ASM_NAME(COS9)+12,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm3,%mm2
+ movq 16(%eax),%mm3
+ movq 32(%eax),%mm4
+ pfsub %mm4,%mm3
+ movq 64(%eax),%mm4
+ pfsub %mm4,%mm3
+ movd ASM_NAME(COS9)+24,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ movq 48(%eax),%mm4
+ pfsub %mm4,%mm3
+ movq (%eax),%mm4
+ pfadd %mm4,%mm3
+ movq %mm2,%mm4
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+4,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 112(%edx),%mm6
+ punpckldq 100(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,40(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,28(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 28(%edx),%mm6
+ punpckldq 40(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 28(%esi),%mm6
+ punpckldq 40(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,896(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1280(%ebx)
+ movq %mm3,%mm4
+ pfsub %mm2,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+28,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 136(%edx),%mm6
+ punpckldq 76(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,64(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,4(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 4(%edx),%mm6
+ punpckldq 64(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 4(%esi),%mm6
+ punpckldq 64(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,128(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,2048(%ebx)
+
+ movq 8(%eax),%mm2
+ movd ASM_NAME(COS9)+20,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm3,%mm2
+ pfsub %mm0,%mm2
+ movq 40(%eax),%mm3
+ movd ASM_NAME(COS9)+28,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfsub %mm3,%mm2
+ movq 56(%eax),%mm3
+ movd ASM_NAME(COS9)+4,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfadd %mm3,%mm2
+ movq (%eax),%mm3
+ movq 16(%eax),%mm4
+ movd ASM_NAME(COS9)+32,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfsub %mm4,%mm3
+ movq 32(%eax),%mm4
+ movd ASM_NAME(COS9)+8,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfsub %mm4,%mm3
+ pfadd %mm1,%mm3
+ movq 64(%eax),%mm4
+ movd ASM_NAME(COS9)+16,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ movq %mm2,%mm4
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+8,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 116(%edx),%mm6
+ punpckldq 96(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,44(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,24(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 24(%edx),%mm6
+ punpckldq 44(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 24(%esi),%mm6
+ punpckldq 44(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,768(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1408(%ebx)
+ movq %mm3,%mm4
+ pfsub %mm2,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+24,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 132(%edx),%mm6
+ punpckldq 80(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,60(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,8(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 8(%edx),%mm6
+ punpckldq 60(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 8(%esi),%mm6
+ punpckldq 60(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,256(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1920(%ebx)
+ movq 8(%eax),%mm2
+ movd ASM_NAME(COS9)+28,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm3,%mm2
+ pfsub %mm0,%mm2
+ movq 40(%eax),%mm3
+ movd ASM_NAME(COS9)+4,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfadd %mm3,%mm2
+ movq 56(%eax),%mm3
+ movd ASM_NAME(COS9)+20,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfsub %mm3,%mm2
+ movq (%eax),%mm3
+ movq 16(%eax),%mm4
+ movd ASM_NAME(COS9)+16,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfsub %mm4,%mm3
+ movq 32(%eax),%mm4
+ movd ASM_NAME(COS9)+32,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ pfadd %mm1,%mm3
+ movq 64(%eax),%mm4
+ movd ASM_NAME(COS9)+8,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfsub %mm4,%mm3
+ movq %mm2,%mm4
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+12,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 120(%edx),%mm6
+ punpckldq 92(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,48(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,20(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 20(%edx),%mm6
+ punpckldq 48(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 20(%esi),%mm6
+ punpckldq 48(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,640(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1536(%ebx)
+ movq %mm3,%mm4
+ pfsub %mm2,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+20,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 128(%edx),%mm6
+ punpckldq 84(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,56(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,12(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 12(%edx),%mm6
+ punpckldq 56(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 12(%esi),%mm6
+ punpckldq 56(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,384(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1792(%ebx)
+
+ movq (%eax),%mm4
+ movq 16(%eax),%mm3
+ pfsub %mm3,%mm4
+ movq 32(%eax),%mm3
+ pfadd %mm3,%mm4
+ movq 48(%eax),%mm3
+ pfsub %mm3,%mm4
+ movq 64(%eax),%mm3
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+16,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 124(%edx),%mm6
+ punpckldq 88(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,52(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,16(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 16(%edx),%mm6
+ punpckldq 52(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 16(%esi),%mm6
+ punpckldq 52(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,512(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1664(%ebx)
+
+ femms
+ popl %ebx
+ popl %esi
+ movl %ebp,%esp
+ popl %ebp
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/dct36_3dnowext.S b/src/libmpg123/dct36_3dnowext.S
new file mode 100644
index 0000000..6fc9374
--- /dev/null
+++ b/src/libmpg123/dct36_3dnowext.S
@@ -0,0 +1,515 @@
+/*
+ dct36_3dnowext: extended 3DNow optimized DCT36
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+
+ Transformed back into standalone asm, with help of
+ gcc -S -DHAVE_CONFIG_H -I. -march=k6-3 -O3 -Wall -pedantic -fno-strict-aliasing -DREAL_IS_FLOAT -c -o dct36_3dnowext.{S,c}
+
+ MPlayer comment follows.
+*/
+
+/*
+ * dct36_3dnow.c - 3DNow! optimized dct36()
+ *
+ * This code based 'dct36_3dnow.s' by Syuuhei Kashiyama
+ * <squash@mb.kcom.ne.jp>, only two types of changes have been made:
+ *
+ * - removed PREFETCH instruction for speedup
+ * - changed function name for support 3DNow! automatic detection
+ *
+ * You can find Kashiyama's original 3dnow! support patch
+ * (for mpg123-0.59o) at
+ * http://user.ecc.u-tokyo.ac.jp/~g810370/linux-simd/ (Japanese).
+ *
+ * by KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp> - until 31.Mar.1999
+ * <kim@comtec.co.jp> - after 1.Apr.1999
+ *
+ * Modified for use with MPlayer, for details see the changelog at
+ * http://svn.mplayerhq.hu/mplayer/trunk/
+ * $Id: dct36_3dnow.c 18786 2006-06-22 13:34:00Z diego $
+ *
+ * Original disclaimer:
+ * The author of this program disclaim whole expressed or implied
+ * warranties with regard to this program, and in no event shall the
+ * author of this program liable to whatever resulted from the use of
+ * this program. Use it at your own risk.
+ *
+ * 2003/06/21: Moved to GCC inline assembly - Alex Beregszaszi
+ */
+
+#include "mangle.h"
+
+ .text
+ ALIGN32,,31
+.globl ASM_NAME(dct36_3dnowext)
+ /* .type ASM_NAME(dct36_3dnowext), @function */
+ASM_NAME(dct36_3dnowext):
+ pushl %ebp
+ movl %esp, %ebp
+ pushl %esi
+ pushl %ebx
+ movl 8(%ebp), %eax
+ movl 12(%ebp), %esi
+ movl 16(%ebp), %ecx
+ movl 20(%ebp), %edx
+ movl 24(%ebp), %ebx
+/* APP */
+ movq (%eax),%mm0
+ movq 4(%eax),%mm1
+ pfadd %mm1,%mm0
+ movq %mm0,4(%eax)
+ psrlq $32,%mm1
+ movq 12(%eax),%mm2
+ punpckldq %mm2,%mm1
+ pfadd %mm2,%mm1
+ movq %mm1,12(%eax)
+ psrlq $32,%mm2
+ movq 20(%eax),%mm3
+ punpckldq %mm3,%mm2
+ pfadd %mm3,%mm2
+ movq %mm2,20(%eax)
+ psrlq $32,%mm3
+ movq 28(%eax),%mm4
+ punpckldq %mm4,%mm3
+ pfadd %mm4,%mm3
+ movq %mm3,28(%eax)
+ psrlq $32,%mm4
+ movq 36(%eax),%mm5
+ punpckldq %mm5,%mm4
+ pfadd %mm5,%mm4
+ movq %mm4,36(%eax)
+ psrlq $32,%mm5
+ movq 44(%eax),%mm6
+ punpckldq %mm6,%mm5
+ pfadd %mm6,%mm5
+ movq %mm5,44(%eax)
+ psrlq $32,%mm6
+ movq 52(%eax),%mm7
+ punpckldq %mm7,%mm6
+ pfadd %mm7,%mm6
+ movq %mm6,52(%eax)
+ psrlq $32,%mm7
+ movq 60(%eax),%mm0
+ punpckldq %mm0,%mm7
+ pfadd %mm0,%mm7
+ movq %mm7,60(%eax)
+ psrlq $32,%mm0
+ movd 68(%eax),%mm1
+ pfadd %mm1,%mm0
+ movd %mm0,68(%eax)
+ movd 4(%eax),%mm0
+ movd 12(%eax),%mm1
+ punpckldq %mm1,%mm0
+ punpckldq 20(%eax),%mm1
+ pfadd %mm1,%mm0
+ movd %mm0,12(%eax)
+ psrlq $32,%mm0
+ movd %mm0,20(%eax)
+ psrlq $32,%mm1
+ movd 28(%eax),%mm2
+ punpckldq %mm2,%mm1
+ punpckldq 36(%eax),%mm2
+ pfadd %mm2,%mm1
+ movd %mm1,28(%eax)
+ psrlq $32,%mm1
+ movd %mm1,36(%eax)
+ psrlq $32,%mm2
+ movd 44(%eax),%mm3
+ punpckldq %mm3,%mm2
+ punpckldq 52(%eax),%mm3
+ pfadd %mm3,%mm2
+ movd %mm2,44(%eax)
+ psrlq $32,%mm2
+ movd %mm2,52(%eax)
+ psrlq $32,%mm3
+ movd 60(%eax),%mm4
+ punpckldq %mm4,%mm3
+ punpckldq 68(%eax),%mm4
+ pfadd %mm4,%mm3
+ movd %mm3,60(%eax)
+ psrlq $32,%mm3
+ movd %mm3,68(%eax)
+ movq 24(%eax),%mm0
+ movq 48(%eax),%mm1
+ movd ASM_NAME(COS9)+12,%mm2
+ punpckldq %mm2,%mm2
+ movd ASM_NAME(COS9)+24,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm2,%mm0
+ pfmul %mm3,%mm1
+ pushl %eax
+ movl $1,%eax
+ movd %eax,%mm7
+ pi2fd %mm7,%mm7
+ popl %eax
+ movq 8(%eax),%mm2
+ movd ASM_NAME(COS9)+4,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm3,%mm2
+ pfadd %mm0,%mm2
+ movq 40(%eax),%mm3
+ movd ASM_NAME(COS9)+20,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfadd %mm3,%mm2
+ movq 56(%eax),%mm3
+ movd ASM_NAME(COS9)+28,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfadd %mm3,%mm2
+ movq (%eax),%mm3
+ movq 16(%eax),%mm4
+ movd ASM_NAME(COS9)+8,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ movq 32(%eax),%mm4
+ movd ASM_NAME(COS9)+16,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ pfadd %mm1,%mm3
+ movq 64(%eax),%mm4
+ movd ASM_NAME(COS9)+32,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ movq %mm2,%mm4
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+0,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 108(%edx),%mm6
+ punpckldq 104(%edx),%mm6
+ pfmul %mm6,%mm5
+ pswapd %mm5,%mm5
+ movq %mm5,32(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 32(%edx),%mm6
+ punpckldq 36(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 32(%esi),%mm6
+ punpckldq 36(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,1024(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1152(%ebx)
+ movq %mm3,%mm4
+ pfsub %mm2,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+32,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 140(%edx),%mm6
+ punpckldq 72(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,68(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,0(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 0(%edx),%mm6
+ punpckldq 68(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 0(%esi),%mm6
+ punpckldq 68(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,0(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,2176(%ebx)
+ movq 8(%eax),%mm2
+ movq 40(%eax),%mm3
+ pfsub %mm3,%mm2
+ movq 56(%eax),%mm3
+ pfsub %mm3,%mm2
+ movd ASM_NAME(COS9)+12,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm3,%mm2
+ movq 16(%eax),%mm3
+ movq 32(%eax),%mm4
+ pfsub %mm4,%mm3
+ movq 64(%eax),%mm4
+ pfsub %mm4,%mm3
+ movd ASM_NAME(COS9)+24,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ movq 48(%eax),%mm4
+ pfsub %mm4,%mm3
+ movq (%eax),%mm4
+ pfadd %mm4,%mm3
+ movq %mm2,%mm4
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+4,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 112(%edx),%mm6
+ punpckldq 100(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,40(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,28(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 28(%edx),%mm6
+ punpckldq 40(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 28(%esi),%mm6
+ punpckldq 40(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,896(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1280(%ebx)
+ movq %mm3,%mm4
+ pfsub %mm2,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+28,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 136(%edx),%mm6
+ punpckldq 76(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,64(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,4(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 4(%edx),%mm6
+ punpckldq 64(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 4(%esi),%mm6
+ punpckldq 64(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,128(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,2048(%ebx)
+ movq 8(%eax),%mm2
+ movd ASM_NAME(COS9)+20,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm3,%mm2
+ pfsub %mm0,%mm2
+ movq 40(%eax),%mm3
+ movd ASM_NAME(COS9)+28,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfsub %mm3,%mm2
+ movq 56(%eax),%mm3
+ movd ASM_NAME(COS9)+4,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfadd %mm3,%mm2
+ movq (%eax),%mm3
+ movq 16(%eax),%mm4
+ movd ASM_NAME(COS9)+32,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfsub %mm4,%mm3
+ movq 32(%eax),%mm4
+ movd ASM_NAME(COS9)+8,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfsub %mm4,%mm3
+ pfadd %mm1,%mm3
+ movq 64(%eax),%mm4
+ movd ASM_NAME(COS9)+16,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ movq %mm2,%mm4
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+8,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 116(%edx),%mm6
+ punpckldq 96(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,44(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,24(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 24(%edx),%mm6
+ punpckldq 44(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 24(%esi),%mm6
+ punpckldq 44(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,768(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1408(%ebx)
+ movq %mm3,%mm4
+ pfsub %mm2,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+24,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 132(%edx),%mm6
+ punpckldq 80(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,60(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,8(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 8(%edx),%mm6
+ punpckldq 60(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 8(%esi),%mm6
+ punpckldq 60(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,256(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1920(%ebx)
+ movq 8(%eax),%mm2
+ movd ASM_NAME(COS9)+28,%mm3
+ punpckldq %mm3,%mm3
+ pfmul %mm3,%mm2
+ pfsub %mm0,%mm2
+ movq 40(%eax),%mm3
+ movd ASM_NAME(COS9)+4,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfadd %mm3,%mm2
+ movq 56(%eax),%mm3
+ movd ASM_NAME(COS9)+20,%mm4
+ punpckldq %mm4,%mm4
+ pfmul %mm4,%mm3
+ pfsub %mm3,%mm2
+ movq (%eax),%mm3
+ movq 16(%eax),%mm4
+ movd ASM_NAME(COS9)+16,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfsub %mm4,%mm3
+ movq 32(%eax),%mm4
+ movd ASM_NAME(COS9)+32,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfadd %mm4,%mm3
+ pfadd %mm1,%mm3
+ movq 64(%eax),%mm4
+ movd ASM_NAME(COS9)+8,%mm5
+ punpckldq %mm5,%mm5
+ pfmul %mm5,%mm4
+ pfsub %mm4,%mm3
+ movq %mm2,%mm4
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+12,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 120(%edx),%mm6
+ punpckldq 92(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,48(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,20(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 20(%edx),%mm6
+ punpckldq 48(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 20(%esi),%mm6
+ punpckldq 48(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,640(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1536(%ebx)
+ movq %mm3,%mm4
+ pfsub %mm2,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+20,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 128(%edx),%mm6
+ punpckldq 84(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,56(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,12(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 12(%edx),%mm6
+ punpckldq 56(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 12(%esi),%mm6
+ punpckldq 56(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,384(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1792(%ebx)
+ movq (%eax),%mm4
+ movq 16(%eax),%mm3
+ pfsub %mm3,%mm4
+ movq 32(%eax),%mm3
+ pfadd %mm3,%mm4
+ movq 48(%eax),%mm3
+ pfsub %mm3,%mm4
+ movq 64(%eax),%mm3
+ pfadd %mm3,%mm4
+ movq %mm7,%mm5
+ punpckldq ASM_NAME(tfcos36)+16,%mm5
+ pfmul %mm5,%mm4
+ movq %mm4,%mm5
+ pfacc %mm5,%mm5
+ movd 124(%edx),%mm6
+ punpckldq 88(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd %mm5,52(%ecx)
+ psrlq $32,%mm5
+ movd %mm5,16(%ecx)
+ movq %mm4,%mm6
+ punpckldq %mm6,%mm5
+ pfsub %mm6,%mm5
+ punpckhdq %mm5,%mm5
+ movd 16(%edx),%mm6
+ punpckldq 52(%edx),%mm6
+ pfmul %mm6,%mm5
+ movd 16(%esi),%mm6
+ punpckldq 52(%esi),%mm6
+ pfadd %mm6,%mm5
+ movd %mm5,512(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,1664(%ebx)
+ femms
+
+/* NO_APP */
+ popl %ebx
+ popl %esi
+ leave
+ ret
+ /* .size ASM_NAME(dct36_3dnowext), .-ASM_NAME(dct36_3dnowext) */
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/dct64.c b/src/libmpg123/dct64.c
new file mode 100644
index 0000000..a7e8545
--- /dev/null
+++ b/src/libmpg123/dct64.c
@@ -0,0 +1,174 @@
+/*
+ dct64.c: DCT64, the plain C version
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+/*
+ * Discrete Cosine Tansform (DCT) for subband synthesis
+ *
+ * -funroll-loops (for gcc) will remove the loops for better performance
+ * using loops in the source-code enhances readabillity
+ *
+ *
+ * TODO: write an optimized version for the down-sampling modes
+ * (in these modes the bands 16-31 (2:1) or 8-31 (4:1) are zero
+ */
+
+#include "mpg123lib_intern.h"
+
+void dct64(real *out0,real *out1,real *samples)
+{
+ real bufs[64];
+
+ {
+ register int i,j;
+ register real *b1,*b2,*bs,*costab;
+
+ b1 = samples;
+ bs = bufs;
+ costab = pnts[0]+16;
+ b2 = b1 + 32;
+
+ for(i=15;i>=0;i--)
+ *bs++ = (*b1++ + *--b2);
+ for(i=15;i>=0;i--)
+ *bs++ = REAL_MUL((*--b2 - *b1++), *--costab);
+
+ b1 = bufs;
+ costab = pnts[1]+8;
+ b2 = b1 + 16;
+
+ {
+ for(i=7;i>=0;i--)
+ *bs++ = (*b1++ + *--b2);
+ for(i=7;i>=0;i--)
+ *bs++ = REAL_MUL((*--b2 - *b1++), *--costab);
+ b2 += 32;
+ costab += 8;
+ for(i=7;i>=0;i--)
+ *bs++ = (*b1++ + *--b2);
+ for(i=7;i>=0;i--)
+ *bs++ = REAL_MUL((*b1++ - *--b2), *--costab);
+ b2 += 32;
+ }
+
+ bs = bufs;
+ costab = pnts[2];
+ b2 = b1 + 8;
+
+ for(j=2;j;j--)
+ {
+ for(i=3;i>=0;i--)
+ *bs++ = (*b1++ + *--b2);
+ for(i=3;i>=0;i--)
+ *bs++ = REAL_MUL((*--b2 - *b1++), costab[i]);
+ b2 += 16;
+ for(i=3;i>=0;i--)
+ *bs++ = (*b1++ + *--b2);
+ for(i=3;i>=0;i--)
+ *bs++ = REAL_MUL((*b1++ - *--b2), costab[i]);
+ b2 += 16;
+ }
+
+ b1 = bufs;
+ costab = pnts[3];
+ b2 = b1 + 4;
+
+ for(j=4;j;j--)
+ {
+ *bs++ = (*b1++ + *--b2);
+ *bs++ = (*b1++ + *--b2);
+ *bs++ = REAL_MUL((*--b2 - *b1++), costab[1]);
+ *bs++ = REAL_MUL((*--b2 - *b1++), costab[0]);
+ b2 += 8;
+ *bs++ = (*b1++ + *--b2);
+ *bs++ = (*b1++ + *--b2);
+ *bs++ = REAL_MUL((*b1++ - *--b2), costab[1]);
+ *bs++ = REAL_MUL((*b1++ - *--b2), costab[0]);
+ b2 += 8;
+ }
+ bs = bufs;
+ costab = pnts[4];
+
+ for(j=8;j;j--)
+ {
+ real v0,v1;
+ v0=*b1++; v1 = *b1++;
+ *bs++ = (v0 + v1);
+ *bs++ = REAL_MUL((v0 - v1), (*costab));
+ v0=*b1++; v1 = *b1++;
+ *bs++ = (v0 + v1);
+ *bs++ = REAL_MUL((v1 - v0), (*costab));
+ }
+
+ }
+
+
+ {
+ register real *b1;
+ register int i;
+
+ for(b1=bufs,i=8;i;i--,b1+=4)
+ b1[2] += b1[3];
+
+ for(b1=bufs,i=4;i;i--,b1+=8)
+ {
+ b1[4] += b1[6];
+ b1[6] += b1[5];
+ b1[5] += b1[7];
+ }
+
+ for(b1=bufs,i=2;i;i--,b1+=16)
+ {
+ b1[8] += b1[12];
+ b1[12] += b1[10];
+ b1[10] += b1[14];
+ b1[14] += b1[9];
+ b1[9] += b1[13];
+ b1[13] += b1[11];
+ b1[11] += b1[15];
+ }
+ }
+
+
+ out0[0x10*16] = bufs[0];
+ out0[0x10*15] = bufs[16+0] + bufs[16+8];
+ out0[0x10*14] = bufs[8];
+ out0[0x10*13] = bufs[16+8] + bufs[16+4];
+ out0[0x10*12] = bufs[4];
+ out0[0x10*11] = bufs[16+4] + bufs[16+12];
+ out0[0x10*10] = bufs[12];
+ out0[0x10* 9] = bufs[16+12] + bufs[16+2];
+ out0[0x10* 8] = bufs[2];
+ out0[0x10* 7] = bufs[16+2] + bufs[16+10];
+ out0[0x10* 6] = bufs[10];
+ out0[0x10* 5] = bufs[16+10] + bufs[16+6];
+ out0[0x10* 4] = bufs[6];
+ out0[0x10* 3] = bufs[16+6] + bufs[16+14];
+ out0[0x10* 2] = bufs[14];
+ out0[0x10* 1] = bufs[16+14] + bufs[16+1];
+ out0[0x10* 0] = bufs[1];
+
+ out1[0x10* 0] = bufs[1];
+ out1[0x10* 1] = bufs[16+1] + bufs[16+9];
+ out1[0x10* 2] = bufs[9];
+ out1[0x10* 3] = bufs[16+9] + bufs[16+5];
+ out1[0x10* 4] = bufs[5];
+ out1[0x10* 5] = bufs[16+5] + bufs[16+13];
+ out1[0x10* 6] = bufs[13];
+ out1[0x10* 7] = bufs[16+13] + bufs[16+3];
+ out1[0x10* 8] = bufs[3];
+ out1[0x10* 9] = bufs[16+3] + bufs[16+11];
+ out1[0x10*10] = bufs[11];
+ out1[0x10*11] = bufs[16+11] + bufs[16+7];
+ out1[0x10*12] = bufs[7];
+ out1[0x10*13] = bufs[16+7] + bufs[16+15];
+ out1[0x10*14] = bufs[15];
+ out1[0x10*15] = bufs[16+15];
+
+}
+
+
diff --git a/src/libmpg123/dct64_3dnow.S b/src/libmpg123/dct64_3dnow.S
new file mode 100644
index 0000000..dcf13b6
--- /dev/null
+++ b/src/libmpg123/dct64_3dnow.S
@@ -0,0 +1,715 @@
+/*
+ dct64_3dnow.s: Replacement of dct64() with AMD's 3DNow! SIMD operations support
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Syuuhei Kashiyama
+
+ Original "license" statement:
+ The author of this program disclaim whole expressed or implied
+ warranties with regard to this program, and in no event shall the
+ author of this program liable to whatever resulted from the use of
+ this program. Use it at your own risk.
+*/
+
+#include "mangle.h"
+
+ .globl ASM_NAME(dct64_3dnow)
+/* .type ASM_NAME(dct64_3dnow),@function */
+ASM_NAME(dct64_3dnow):
+ subl $256,%esp
+ pushl %ebp
+ pushl %edi
+ pushl %esi
+ pushl %ebx
+ leal 16(%esp),%ebx
+ movl 284(%esp),%edi
+ movl 276(%esp),%ebp
+ movl 280(%esp),%edx
+ leal 128(%ebx),%esi
+
+ /* femms */
+
+ /* 1 */
+ movl ASM_NAME(pnts),%eax
+ movq 0(%edi),%mm0
+ movq %mm0,%mm1
+ movd 124(%edi),%mm2
+ punpckldq 120(%edi),%mm2
+ movq 0(%eax),%mm3
+ pfadd %mm2,%mm0
+ movq %mm0,0(%ebx)
+ pfsub %mm2,%mm1
+ pfmul %mm3,%mm1
+ movd %mm1,124(%ebx)
+ psrlq $32,%mm1
+ movd %mm1,120(%ebx)
+ movq 8(%edi),%mm4
+ movq %mm4,%mm5
+ movd 116(%edi),%mm6
+ punpckldq 112(%edi),%mm6
+ movq 8(%eax),%mm7
+ pfadd %mm6,%mm4
+ movq %mm4,8(%ebx)
+ pfsub %mm6,%mm5
+ pfmul %mm7,%mm5
+ movd %mm5,116(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,112(%ebx)
+ movq 16(%edi),%mm0
+ movq %mm0,%mm1
+ movd 108(%edi),%mm2
+ punpckldq 104(%edi),%mm2
+ movq 16(%eax),%mm3
+ pfadd %mm2,%mm0
+ movq %mm0,16(%ebx)
+ pfsub %mm2,%mm1
+ pfmul %mm3,%mm1
+ movd %mm1,108(%ebx)
+ psrlq $32,%mm1
+ movd %mm1,104(%ebx)
+ movq 24(%edi),%mm4
+ movq %mm4,%mm5
+ movd 100(%edi),%mm6
+ punpckldq 96(%edi),%mm6
+ movq 24(%eax),%mm7
+ pfadd %mm6,%mm4
+ movq %mm4,24(%ebx)
+ pfsub %mm6,%mm5
+ pfmul %mm7,%mm5
+ movd %mm5,100(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,96(%ebx)
+ movq 32(%edi),%mm0
+ movq %mm0,%mm1
+ movd 92(%edi),%mm2
+ punpckldq 88(%edi),%mm2
+ movq 32(%eax),%mm3
+ pfadd %mm2,%mm0
+ movq %mm0,32(%ebx)
+ pfsub %mm2,%mm1
+ pfmul %mm3,%mm1
+ movd %mm1,92(%ebx)
+ psrlq $32,%mm1
+ movd %mm1,88(%ebx)
+ movq 40(%edi),%mm4
+ movq %mm4,%mm5
+ movd 84(%edi),%mm6
+ punpckldq 80(%edi),%mm6
+ movq 40(%eax),%mm7
+ pfadd %mm6,%mm4
+ movq %mm4,40(%ebx)
+ pfsub %mm6,%mm5
+ pfmul %mm7,%mm5
+ movd %mm5,84(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,80(%ebx)
+ movq 48(%edi),%mm0
+ movq %mm0,%mm1
+ movd 76(%edi),%mm2
+ punpckldq 72(%edi),%mm2
+ movq 48(%eax),%mm3
+ pfadd %mm2,%mm0
+ movq %mm0,48(%ebx)
+ pfsub %mm2,%mm1
+ pfmul %mm3,%mm1
+ movd %mm1,76(%ebx)
+ psrlq $32,%mm1
+ movd %mm1,72(%ebx)
+ movq 56(%edi),%mm4
+ movq %mm4,%mm5
+ movd 68(%edi),%mm6
+ punpckldq 64(%edi),%mm6
+ movq 56(%eax),%mm7
+ pfadd %mm6,%mm4
+ movq %mm4,56(%ebx)
+ pfsub %mm6,%mm5
+ pfmul %mm7,%mm5
+ movd %mm5,68(%ebx)
+ psrlq $32,%mm5
+ movd %mm5,64(%ebx)
+
+ /* 2 */
+ movl ASM_NAME(pnts)+4,%eax
+ /* 0,14 */
+ movq 0(%ebx),%mm0
+ movq %mm0,%mm1
+ movd 60(%ebx),%mm2
+ punpckldq 56(%ebx),%mm2
+ movq 0(%eax),%mm3
+ pfadd %mm2,%mm0
+ movq %mm0,0(%esi)
+ pfsub %mm2,%mm1
+ pfmul %mm3,%mm1
+ movd %mm1,60(%esi)
+ psrlq $32,%mm1
+ movd %mm1,56(%esi)
+ /* 16,30 */
+ movq 64(%ebx),%mm0
+ movq %mm0,%mm1
+ movd 124(%ebx),%mm2
+ punpckldq 120(%ebx),%mm2
+ pfadd %mm2,%mm0
+ movq %mm0,64(%esi)
+ pfsubr %mm2,%mm1
+ pfmul %mm3,%mm1
+ movd %mm1,124(%esi)
+ psrlq $32,%mm1
+ movd %mm1,120(%esi)
+ /* 2,12 */
+ movq 8(%ebx),%mm4
+ movq %mm4,%mm5
+ movd 52(%ebx),%mm6
+ punpckldq 48(%ebx),%mm6
+ movq 8(%eax),%mm7
+ pfadd %mm6,%mm4
+ movq %mm4,8(%esi)
+ pfsub %mm6,%mm5
+ pfmul %mm7,%mm5
+ movd %mm5,52(%esi)
+ psrlq $32,%mm5
+ movd %mm5,48(%esi)
+ /* 18,28 */
+ movq 72(%ebx),%mm4
+ movq %mm4,%mm5
+ movd 116(%ebx),%mm6
+ punpckldq 112(%ebx),%mm6
+ pfadd %mm6,%mm4
+ movq %mm4,72(%esi)
+ pfsubr %mm6,%mm5
+ pfmul %mm7,%mm5
+ movd %mm5,116(%esi)
+ psrlq $32,%mm5
+ movd %mm5,112(%esi)
+ /* 4,10 */
+ movq 16(%ebx),%mm0
+ movq %mm0,%mm1
+ movd 44(%ebx),%mm2
+ punpckldq 40(%ebx),%mm2
+ movq 16(%eax),%mm3
+ pfadd %mm2,%mm0
+ movq %mm0,16(%esi)
+ pfsub %mm2,%mm1
+ pfmul %mm3,%mm1
+ movd %mm1,44(%esi)
+ psrlq $32,%mm1
+ movd %mm1,40(%esi)
+ /* 20,26 */
+ movq 80(%ebx),%mm0
+ movq %mm0,%mm1
+ movd 108(%ebx),%mm2
+ punpckldq 104(%ebx),%mm2
+ pfadd %mm2,%mm0
+ movq %mm0,80(%esi)
+ pfsubr %mm2,%mm1
+ pfmul %mm3,%mm1
+ movd %mm1,108(%esi)
+ psrlq $32,%mm1
+ movd %mm1,104(%esi)
+ /* 6,8 */
+ movq 24(%ebx),%mm4
+ movq %mm4,%mm5
+ movd 36(%ebx),%mm6
+ punpckldq 32(%ebx),%mm6
+ movq 24(%eax),%mm7
+ pfadd %mm6,%mm4
+ movq %mm4,24(%esi)
+ pfsub %mm6,%mm5
+ pfmul %mm7,%mm5
+ movd %mm5,36(%esi)
+ psrlq $32,%mm5
+ movd %mm5,32(%esi)
+ /* 22,24 */
+ movq 88(%ebx),%mm4
+ movq %mm4,%mm5
+ movd 100(%ebx),%mm6
+ punpckldq 96(%ebx),%mm6
+ pfadd %mm6,%mm4
+ movq %mm4,88(%esi)
+ pfsubr %mm6,%mm5
+ pfmul %mm7,%mm5
+ movd %mm5,100(%esi)
+ psrlq $32,%mm5
+ movd %mm5,96(%esi)
+
+ /* 3 */
+ movl ASM_NAME(pnts)+8,%eax
+ movq 0(%eax),%mm0
+ movq 8(%eax),%mm1
+ /* 0,6 */
+ movq 0(%esi),%mm2
+ movq %mm2,%mm3
+ movd 28(%esi),%mm4
+ punpckldq 24(%esi),%mm4
+ pfadd %mm4,%mm2
+ pfsub %mm4,%mm3
+ pfmul %mm0,%mm3
+ movq %mm2,0(%ebx)
+ movd %mm3,28(%ebx)
+ psrlq $32,%mm3
+ movd %mm3,24(%ebx)
+ /* 2,4 */
+ movq 8(%esi),%mm5
+ movq %mm5,%mm6
+ movd 20(%esi),%mm7
+ punpckldq 16(%esi),%mm7
+ pfadd %mm7,%mm5
+ pfsub %mm7,%mm6
+ pfmul %mm1,%mm6
+ movq %mm5,8(%ebx)
+ movd %mm6,20(%ebx)
+ psrlq $32,%mm6
+ movd %mm6,16(%ebx)
+ /* 8,14 */
+ movq 32(%esi),%mm2
+ movq %mm2,%mm3
+ movd 60(%esi),%mm4
+ punpckldq 56(%esi),%mm4
+ pfadd %mm4,%mm2
+ pfsubr %mm4,%mm3
+ pfmul %mm0,%mm3
+ movq %mm2,32(%ebx)
+ movd %mm3,60(%ebx)
+ psrlq $32,%mm3
+ movd %mm3,56(%ebx)
+ /* 10,12 */
+ movq 40(%esi),%mm5
+ movq %mm5,%mm6
+ movd 52(%esi),%mm7
+ punpckldq 48(%esi),%mm7
+ pfadd %mm7,%mm5
+ pfsubr %mm7,%mm6
+ pfmul %mm1,%mm6
+ movq %mm5,40(%ebx)
+ movd %mm6,52(%ebx)
+ psrlq $32,%mm6
+ movd %mm6,48(%ebx)
+ /* 16,22 */
+ movq 64(%esi),%mm2
+ movq %mm2,%mm3
+ movd 92(%esi),%mm4
+ punpckldq 88(%esi),%mm4
+ pfadd %mm4,%mm2
+ pfsub %mm4,%mm3
+ pfmul %mm0,%mm3
+ movq %mm2,64(%ebx)
+ movd %mm3,92(%ebx)
+ psrlq $32,%mm3
+ movd %mm3,88(%ebx)
+ /* 18,20 */
+ movq 72(%esi),%mm5
+ movq %mm5,%mm6
+ movd 84(%esi),%mm7
+ punpckldq 80(%esi),%mm7
+ pfadd %mm7,%mm5
+ pfsub %mm7,%mm6
+ pfmul %mm1,%mm6
+ movq %mm5,72(%ebx)
+ movd %mm6,84(%ebx)
+ psrlq $32,%mm6
+ movd %mm6,80(%ebx)
+ /* 24,30 */
+ movq 96(%esi),%mm2
+ movq %mm2,%mm3
+ movd 124(%esi),%mm4
+ punpckldq 120(%esi),%mm4
+ pfadd %mm4,%mm2
+ pfsubr %mm4,%mm3
+ pfmul %mm0,%mm3
+ movq %mm2,96(%ebx)
+ movd %mm3,124(%ebx)
+ psrlq $32,%mm3
+ movd %mm3,120(%ebx)
+ /* 26,28 */
+ movq 104(%esi),%mm5
+ movq %mm5,%mm6
+ movd 116(%esi),%mm7
+ punpckldq 112(%esi),%mm7
+ pfadd %mm7,%mm5
+ pfsubr %mm7,%mm6
+ pfmul %mm1,%mm6
+ movq %mm5,104(%ebx)
+ movd %mm6,116(%ebx)
+ psrlq $32,%mm6
+ movd %mm6,112(%ebx)
+
+ /* 4 */
+ movl ASM_NAME(pnts)+12,%eax
+ movq 0(%eax),%mm0
+ /* 0 */
+ movq 0(%ebx),%mm1
+ movq %mm1,%mm2
+ movd 12(%ebx),%mm3
+ punpckldq 8(%ebx),%mm3
+ pfadd %mm3,%mm1
+ pfsub %mm3,%mm2
+ pfmul %mm0,%mm2
+ movq %mm1,0(%esi)
+ movd %mm2,12(%esi)
+ psrlq $32,%mm2
+ movd %mm2,8(%esi)
+ /* 4 */
+ movq 16(%ebx),%mm4
+ movq %mm4,%mm5
+ movd 28(%ebx),%mm6
+ punpckldq 24(%ebx),%mm6
+ pfadd %mm6,%mm4
+ pfsubr %mm6,%mm5
+ pfmul %mm0,%mm5
+ movq %mm4,16(%esi)
+ movd %mm5,28(%esi)
+ psrlq $32,%mm5
+ movd %mm5,24(%esi)
+ /* 8 */
+ movq 32(%ebx),%mm1
+ movq %mm1,%mm2
+ movd 44(%ebx),%mm3
+ punpckldq 40(%ebx),%mm3
+ pfadd %mm3,%mm1
+ pfsub %mm3,%mm2
+ pfmul %mm0,%mm2
+ movq %mm1,32(%esi)
+ movd %mm2,44(%esi)
+ psrlq $32,%mm2
+ movd %mm2,40(%esi)
+ /* 12 */
+ movq 48(%ebx),%mm4
+ movq %mm4,%mm5
+ movd 60(%ebx),%mm6
+ punpckldq 56(%ebx),%mm6
+ pfadd %mm6,%mm4
+ pfsubr %mm6,%mm5
+ pfmul %mm0,%mm5
+ movq %mm4,48(%esi)
+ movd %mm5,60(%esi)
+ psrlq $32,%mm5
+ movd %mm5,56(%esi)
+ /* 16 */
+ movq 64(%ebx),%mm1
+ movq %mm1,%mm2
+ movd 76(%ebx),%mm3
+ punpckldq 72(%ebx),%mm3
+ pfadd %mm3,%mm1
+ pfsub %mm3,%mm2
+ pfmul %mm0,%mm2
+ movq %mm1,64(%esi)
+ movd %mm2,76(%esi)
+ psrlq $32,%mm2
+ movd %mm2,72(%esi)
+ /* 20 */
+ movq 80(%ebx),%mm4
+ movq %mm4,%mm5
+ movd 92(%ebx),%mm6
+ punpckldq 88(%ebx),%mm6
+ pfadd %mm6,%mm4
+ pfsubr %mm6,%mm5
+ pfmul %mm0,%mm5
+ movq %mm4,80(%esi)
+ movd %mm5,92(%esi)
+ psrlq $32,%mm5
+ movd %mm5,88(%esi)
+ /* 24 */
+ movq 96(%ebx),%mm1
+ movq %mm1,%mm2
+ movd 108(%ebx),%mm3
+ punpckldq 104(%ebx),%mm3
+ pfadd %mm3,%mm1
+ pfsub %mm3,%mm2
+ pfmul %mm0,%mm2
+ movq %mm1,96(%esi)
+ movd %mm2,108(%esi)
+ psrlq $32,%mm2
+ movd %mm2,104(%esi)
+ /* 28 */
+ movq 112(%ebx),%mm4
+ movq %mm4,%mm5
+ movd 124(%ebx),%mm6
+ punpckldq 120(%ebx),%mm6
+ pfadd %mm6,%mm4
+ pfsubr %mm6,%mm5
+ pfmul %mm0,%mm5
+ movq %mm4,112(%esi)
+ movd %mm5,124(%esi)
+ psrlq $32,%mm5
+ movd %mm5,120(%esi)
+
+ /* 5 */
+ movl $-1,%eax
+ movd %eax,%mm1
+ movl $1,%eax
+ /* L | H */
+ movd %eax,%mm0
+ punpckldq %mm1,%mm0
+ /* 1.0 | -1.0 */
+ pi2fd %mm0,%mm0
+ movd %eax,%mm1
+ pi2fd %mm1,%mm1
+ movl ASM_NAME(pnts)+16,%eax
+ movd 0(%eax),%mm2
+ /* 1.0 | cos0 */
+ punpckldq %mm2,%mm1
+ /* 0 */
+ movq 0(%esi),%mm2
+ movq %mm2,%mm3
+ pfmul %mm0,%mm3
+ pfacc %mm3,%mm2
+ pfmul %mm1,%mm2
+ movq %mm2,0(%ebx)
+ movq 8(%esi),%mm4
+ movq %mm4,%mm5
+ pfmul %mm0,%mm5
+ pfacc %mm5,%mm4
+ pfmul %mm0,%mm4
+ pfmul %mm1,%mm4
+ movq %mm4,%mm5
+ psrlq $32,%mm5
+ pfacc %mm5,%mm4
+ movq %mm4,8(%ebx)
+ /* 4 */
+ movq 16(%esi),%mm2
+ movq %mm2,%mm3
+ pfmul %mm0,%mm3
+ pfacc %mm3,%mm2
+ pfmul %mm1,%mm2
+ movq 24(%esi),%mm4
+ movq %mm4,%mm5
+ pfmul %mm0,%mm5
+ pfacc %mm5,%mm4
+ pfmul %mm0,%mm4
+ pfmul %mm1,%mm4
+ movq %mm4,%mm5
+ psrlq $32,%mm5
+ pfacc %mm5,%mm4
+ movq %mm2,%mm3
+ psrlq $32,%mm3
+ pfadd %mm4,%mm2
+ pfadd %mm3,%mm4
+ movq %mm2,16(%ebx)
+ movq %mm4,24(%ebx)
+ /* 8 */
+ movq 32(%esi),%mm2
+ movq %mm2,%mm3
+ pfmul %mm0,%mm3
+ pfacc %mm3,%mm2
+ pfmul %mm1,%mm2
+ movq %mm2,32(%ebx)
+ movq 40(%esi),%mm4
+ movq %mm4,%mm5
+ pfmul %mm0,%mm5
+ pfacc %mm5,%mm4
+ pfmul %mm0,%mm4
+ pfmul %mm1,%mm4
+ movq %mm4,%mm5
+ psrlq $32,%mm5
+ pfacc %mm5,%mm4
+ movq %mm4,40(%ebx)
+ /* 12 */
+ movq 48(%esi),%mm2
+ movq %mm2,%mm3
+ pfmul %mm0,%mm3
+ pfacc %mm3,%mm2
+ pfmul %mm1,%mm2
+ movq 56(%esi),%mm4
+ movq %mm4,%mm5
+ pfmul %mm0,%mm5
+ pfacc %mm5,%mm4
+ pfmul %mm0,%mm4
+ pfmul %mm1,%mm4
+ movq %mm4,%mm5
+ psrlq $32,%mm5
+ pfacc %mm5,%mm4
+ movq %mm2,%mm3
+ psrlq $32,%mm3
+ pfadd %mm4,%mm2
+ pfadd %mm3,%mm4
+ movq %mm2,48(%ebx)
+ movq %mm4,56(%ebx)
+ /* 16 */
+ movq 64(%esi),%mm2
+ movq %mm2,%mm3
+ pfmul %mm0,%mm3
+ pfacc %mm3,%mm2
+ pfmul %mm1,%mm2
+ movq %mm2,64(%ebx)
+ movq 72(%esi),%mm4
+ movq %mm4,%mm5
+ pfmul %mm0,%mm5
+ pfacc %mm5,%mm4
+ pfmul %mm0,%mm4
+ pfmul %mm1,%mm4
+ movq %mm4,%mm5
+ psrlq $32,%mm5
+ pfacc %mm5,%mm4
+ movq %mm4,72(%ebx)
+ /* 20 */
+ movq 80(%esi),%mm2
+ movq %mm2,%mm3
+ pfmul %mm0,%mm3
+ pfacc %mm3,%mm2
+ pfmul %mm1,%mm2
+ movq 88(%esi),%mm4
+ movq %mm4,%mm5
+ pfmul %mm0,%mm5
+ pfacc %mm5,%mm4
+ pfmul %mm0,%mm4
+ pfmul %mm1,%mm4
+ movq %mm4,%mm5
+ psrlq $32,%mm5
+ pfacc %mm5,%mm4
+ movq %mm2,%mm3
+ psrlq $32,%mm3
+ pfadd %mm4,%mm2
+ pfadd %mm3,%mm4
+ movq %mm2,80(%ebx)
+ movq %mm4,88(%ebx)
+ /* 24 */
+ movq 96(%esi),%mm2
+ movq %mm2,%mm3
+ pfmul %mm0,%mm3
+ pfacc %mm3,%mm2
+ pfmul %mm1,%mm2
+ movq %mm2,96(%ebx)
+ movq 104(%esi),%mm4
+ movq %mm4,%mm5
+ pfmul %mm0,%mm5
+ pfacc %mm5,%mm4
+ pfmul %mm0,%mm4
+ pfmul %mm1,%mm4
+ movq %mm4,%mm5
+ psrlq $32,%mm5
+ pfacc %mm5,%mm4
+ movq %mm4,104(%ebx)
+ /* 28 */
+ movq 112(%esi),%mm2
+ movq %mm2,%mm3
+ pfmul %mm0,%mm3
+ pfacc %mm3,%mm2
+ pfmul %mm1,%mm2
+ movq 120(%esi),%mm4
+ movq %mm4,%mm5
+ pfmul %mm0,%mm5
+ pfacc %mm5,%mm4
+ pfmul %mm0,%mm4
+ pfmul %mm1,%mm4
+ movq %mm4,%mm5
+ psrlq $32,%mm5
+ pfacc %mm5,%mm4
+ movq %mm2,%mm3
+ psrlq $32,%mm3
+ pfadd %mm4,%mm2
+ pfadd %mm3,%mm4
+ movq %mm2,112(%ebx)
+ movq %mm4,120(%ebx)
+
+ /* Phase6 */
+ movl 0(%ebx),%eax
+ movl %eax,1024(%ebp)
+ movl 4(%ebx),%eax
+ movl %eax,0(%ebp)
+ movl %eax,0(%edx)
+ movl 8(%ebx),%eax
+ movl %eax,512(%ebp)
+ movl 12(%ebx),%eax
+ movl %eax,512(%edx)
+
+ movl 16(%ebx),%eax
+ movl %eax,768(%ebp)
+ movl 20(%ebx),%eax
+ movl %eax,256(%edx)
+
+ movl 24(%ebx),%eax
+ movl %eax,256(%ebp)
+ movl 28(%ebx),%eax
+ movl %eax,768(%edx)
+
+ movq 32(%ebx),%mm0
+ movq 48(%ebx),%mm1
+ pfadd %mm1,%mm0
+ movd %mm0,896(%ebp)
+ psrlq $32,%mm0
+ movd %mm0,128(%edx)
+ movq 40(%ebx),%mm2
+ pfadd %mm2,%mm1
+ movd %mm1,640(%ebp)
+ psrlq $32,%mm1
+ movd %mm1,384(%edx)
+
+ movq 56(%ebx),%mm3
+ pfadd %mm3,%mm2
+ movd %mm2,384(%ebp)
+ psrlq $32,%mm2
+ movd %mm2,640(%edx)
+
+ movd 36(%ebx),%mm4
+ pfadd %mm4,%mm3
+ movd %mm3,128(%ebp)
+ psrlq $32,%mm3
+ movd %mm3,896(%edx)
+ movq 96(%ebx),%mm0
+ movq 64(%ebx),%mm1
+
+ movq 112(%ebx),%mm2
+ pfadd %mm2,%mm0
+ movq %mm0,%mm3
+ pfadd %mm1,%mm3
+ movd %mm3,960(%ebp)
+ psrlq $32,%mm3
+ movd %mm3,64(%edx)
+ movq 80(%ebx),%mm1
+ pfadd %mm1,%mm0
+ movd %mm0,832(%ebp)
+ psrlq $32,%mm0
+ movd %mm0,192(%edx)
+ movq 104(%ebx),%mm3
+ pfadd %mm3,%mm2
+ movq %mm2,%mm4
+ pfadd %mm1,%mm4
+ movd %mm4,704(%ebp)
+ psrlq $32,%mm4
+ movd %mm4,320(%edx)
+ movq 72(%ebx),%mm1
+ pfadd %mm1,%mm2
+ movd %mm2,576(%ebp)
+ psrlq $32,%mm2
+ movd %mm2,448(%edx)
+
+ movq 120(%ebx),%mm4
+ pfadd %mm4,%mm3
+ movq %mm3,%mm5
+ pfadd %mm1,%mm5
+ movd %mm5,448(%ebp)
+ psrlq $32,%mm5
+ movd %mm5,576(%edx)
+ movq 88(%ebx),%mm1
+ pfadd %mm1,%mm3
+ movd %mm3,320(%ebp)
+ psrlq $32,%mm3
+ movd %mm3,704(%edx)
+
+ movd 100(%ebx),%mm5
+ pfadd %mm5,%mm4
+ movq %mm4,%mm6
+ pfadd %mm1,%mm6
+ movd %mm6,192(%ebp)
+ psrlq $32,%mm6
+ movd %mm6,832(%edx)
+ movd 68(%ebx),%mm1
+ pfadd %mm1,%mm4
+ movd %mm4,64(%ebp)
+ psrlq $32,%mm4
+ movd %mm4,960(%edx)
+
+ /* femms */
+
+ popl %ebx
+ popl %esi
+ popl %edi
+ popl %ebp
+ addl $256,%esp
+
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/dct64_3dnowext.S b/src/libmpg123/dct64_3dnowext.S
new file mode 100644
index 0000000..49f8667
--- /dev/null
+++ b/src/libmpg123/dct64_3dnowext.S
@@ -0,0 +1,717 @@
+/*
+ dct64_3dnowext: extended 3DNow optimized DCT64
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+
+ Transformed back into standalone asm, with help of
+ gcc -S -DHAVE_CONFIG_H -I. -march=k6-3 -O3 -Wall -pedantic -fno-strict-aliasing -DREAL_IS_FLOAT -c -o dct64_3dnowext.{S,c}
+
+ MPlayer comment follows.
+*/
+
+/*
+* This code was taken from http://www.mpg123.org
+* See ChangeLog of mpg123-0.59s-pre.1 for detail
+* Applied to mplayer by Nick Kurshev <nickols_k@mail.ru>
+* Partial 3dnowex-DSP! optimization by Nick Kurshev
+*
+* TODO: optimize scalar 3dnow! code
+* Warning: Phases 7 & 8 are not tested
+*/
+
+#include "mangle.h"
+
+ .data
+ ALIGN4
+ /* .type plus_1f, @object
+ .size plus_1f, 4 */
+plus_1f:
+ .long 1065353216
+ ALIGN8
+ /* .type x_plus_minus_3dnow, @object
+ .size x_plus_minus_3dnow, 8 */
+x_plus_minus_3dnow:
+ .long 0
+ .long -2147483648
+
+ .text
+ ALIGN32,,31
+.globl ASM_NAME(dct64_3dnowext)
+ /* .type ASM_NAME(dct64_3dnowext), @function */
+ASM_NAME(dct64_3dnowext):
+ pushl %ebp
+ movl %esp, %ebp
+ pushl %edi
+ pushl %esi
+ pushl %ebx
+ subl $256, %esp
+/* APP */
+ movl 16(%ebp),%eax
+ leal 128+-268(%ebp),%edx
+ movl 8(%ebp),%esi
+ movl 12(%ebp),%edi
+ movl ASM_VALUE(costab_mmxsse),%ebx
+ leal -268(%ebp),%ecx
+ movq (%eax), %mm0
+ movq 8(%eax), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 120(%eax), %mm1
+ pswapd 112(%eax), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, (%edx)
+ movq %mm4, 8(%edx)
+ pfsub %mm1, %mm3
+ pfsub %mm5, %mm7
+ pfmul (%ebx), %mm3
+ pfmul 8(%ebx), %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 120(%edx)
+ movq %mm7, 112(%edx)
+ movq 16(%eax), %mm0
+ movq 24(%eax), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 104(%eax), %mm1
+ pswapd 96(%eax), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 16(%edx)
+ movq %mm4, 24(%edx)
+ pfsub %mm1, %mm3
+ pfsub %mm5, %mm7
+ pfmul 16(%ebx), %mm3
+ pfmul 24(%ebx), %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 104(%edx)
+ movq %mm7, 96(%edx)
+ movq 32(%eax), %mm0
+ movq 40(%eax), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 88(%eax), %mm1
+ pswapd 80(%eax), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 32(%edx)
+ movq %mm4, 40(%edx)
+ pfsub %mm1, %mm3
+ pfsub %mm5, %mm7
+ pfmul 32(%ebx), %mm3
+ pfmul 40(%ebx), %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 88(%edx)
+ movq %mm7, 80(%edx)
+ movq 48(%eax), %mm0
+ movq 56(%eax), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 72(%eax), %mm1
+ pswapd 64(%eax), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 48(%edx)
+ movq %mm4, 56(%edx)
+ pfsub %mm1, %mm3
+ pfsub %mm5, %mm7
+ pfmul 48(%ebx), %mm3
+ pfmul 56(%ebx), %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 72(%edx)
+ movq %mm7, 64(%edx)
+ movq (%edx), %mm0
+ movq 8(%edx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 56(%edx), %mm1
+ pswapd 48(%edx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, (%ecx)
+ movq %mm4, 8(%ecx)
+ pfsub %mm1, %mm3
+ pfsub %mm5, %mm7
+ pfmul 64(%ebx), %mm3
+ pfmul 72(%ebx), %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 56(%ecx)
+ movq %mm7, 48(%ecx)
+ movq 16(%edx), %mm0
+ movq 24(%edx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 40(%edx), %mm1
+ pswapd 32(%edx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 16(%ecx)
+ movq %mm4, 24(%ecx)
+ pfsub %mm1, %mm3
+ pfsub %mm5, %mm7
+ pfmul 80(%ebx), %mm3
+ pfmul 88(%ebx), %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 40(%ecx)
+ movq %mm7, 32(%ecx)
+ movq 64(%edx), %mm0
+ movq 72(%edx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 120(%edx), %mm1
+ pswapd 112(%edx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 64(%ecx)
+ movq %mm4, 72(%ecx)
+ pfsubr %mm1, %mm3
+ pfsubr %mm5, %mm7
+ pfmul 64(%ebx), %mm3
+ pfmul 72(%ebx), %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 120(%ecx)
+ movq %mm7, 112(%ecx)
+ movq 80(%edx), %mm0
+ movq 88(%edx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 104(%edx), %mm1
+ pswapd 96(%edx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 80(%ecx)
+ movq %mm4, 88(%ecx)
+ pfsubr %mm1, %mm3
+ pfsubr %mm5, %mm7
+ pfmul 80(%ebx), %mm3
+ pfmul 88(%ebx), %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 104(%ecx)
+ movq %mm7, 96(%ecx)
+ movq 96(%ebx), %mm2
+ movq 104(%ebx), %mm6
+ movq (%ecx), %mm0
+ movq 8(%ecx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 24(%ecx), %mm1
+ pswapd 16(%ecx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, (%edx)
+ movq %mm4, 8(%edx)
+ pfsub %mm1, %mm3
+ pfsub %mm5, %mm7
+ pfmul %mm2, %mm3
+ pfmul %mm6, %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 24(%edx)
+ movq %mm7, 16(%edx)
+ movq 32(%ecx), %mm0
+ movq 40(%ecx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 56(%ecx), %mm1
+ pswapd 48(%ecx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 32(%edx)
+ movq %mm4, 40(%edx)
+ pfsubr %mm1, %mm3
+ pfsubr %mm5, %mm7
+ pfmul %mm2, %mm3
+ pfmul %mm6, %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 56(%edx)
+ movq %mm7, 48(%edx)
+ movq 64(%ecx), %mm0
+ movq 72(%ecx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 88(%ecx), %mm1
+ pswapd 80(%ecx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 64(%edx)
+ movq %mm4, 72(%edx)
+ pfsub %mm1, %mm3
+ pfsub %mm5, %mm7
+ pfmul %mm2, %mm3
+ pfmul %mm6, %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 88(%edx)
+ movq %mm7, 80(%edx)
+ movq 96(%ecx), %mm0
+ movq 104(%ecx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 120(%ecx), %mm1
+ pswapd 112(%ecx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 96(%edx)
+ movq %mm4, 104(%edx)
+ pfsubr %mm1, %mm3
+ pfsubr %mm5, %mm7
+ pfmul %mm2, %mm3
+ pfmul %mm6, %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 120(%edx)
+ movq %mm7, 112(%edx)
+ movq 112(%ebx), %mm2
+ movq (%edx), %mm0
+ movq 16(%edx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 8(%edx), %mm1
+ pswapd 24(%edx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, (%ecx)
+ movq %mm4, 16(%ecx)
+ pfsub %mm1, %mm3
+ pfsubr %mm5, %mm7
+ pfmul %mm2, %mm3
+ pfmul %mm2, %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 8(%ecx)
+ movq %mm7, 24(%ecx)
+ movq 32(%edx), %mm0
+ movq 48(%edx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 40(%edx), %mm1
+ pswapd 56(%edx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 32(%ecx)
+ movq %mm4, 48(%ecx)
+ pfsub %mm1, %mm3
+ pfsubr %mm5, %mm7
+ pfmul %mm2, %mm3
+ pfmul %mm2, %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 40(%ecx)
+ movq %mm7, 56(%ecx)
+ movq 64(%edx), %mm0
+ movq 80(%edx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 72(%edx), %mm1
+ pswapd 88(%edx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 64(%ecx)
+ movq %mm4, 80(%ecx)
+ pfsub %mm1, %mm3
+ pfsubr %mm5, %mm7
+ pfmul %mm2, %mm3
+ pfmul %mm2, %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 72(%ecx)
+ movq %mm7, 88(%ecx)
+ movq 96(%edx), %mm0
+ movq 112(%edx), %mm4
+ movq %mm0, %mm3
+ movq %mm4, %mm7
+ pswapd 104(%edx), %mm1
+ pswapd 120(%edx), %mm5
+ pfadd %mm1, %mm0
+ pfadd %mm5, %mm4
+ movq %mm0, 96(%ecx)
+ movq %mm4, 112(%ecx)
+ pfsub %mm1, %mm3
+ pfsubr %mm5, %mm7
+ pfmul %mm2, %mm3
+ pfmul %mm2, %mm7
+ pswapd %mm3, %mm3
+ pswapd %mm7, %mm7
+ movq %mm3, 104(%ecx)
+ movq %mm7, 120(%ecx)
+ movd plus_1f, %mm6
+ punpckldq 120(%ebx), %mm6
+ movq x_plus_minus_3dnow, %mm7
+ movq 32(%ecx), %mm0
+ movq 64(%ecx), %mm2
+ movq %mm0, %mm1
+ movq %mm2, %mm3
+ pxor %mm7, %mm1
+ pxor %mm7, %mm3
+ pfacc %mm1, %mm0
+ pfacc %mm3, %mm2
+ pfmul %mm6, %mm0
+ pfmul %mm6, %mm2
+ movq %mm0, 32(%edx)
+ movq %mm2, 64(%edx)
+ movd 44(%ecx), %mm0
+ movd 40(%ecx), %mm2
+ movd 120(%ebx), %mm3
+ punpckldq 76(%ecx), %mm0
+ punpckldq 72(%ecx), %mm2
+ punpckldq %mm3, %mm3
+ movq %mm0, %mm4
+ movq %mm2, %mm5
+ pfsub %mm2, %mm0
+ pfmul %mm3, %mm0
+ movq %mm0, %mm1
+ pfadd %mm5, %mm0
+ pfadd %mm4, %mm0
+ movq %mm0, %mm2
+ punpckldq %mm1, %mm0
+ punpckhdq %mm1, %mm2
+ movq %mm0, 40(%edx)
+ movq %mm2, 72(%edx)
+ movd 48(%ecx), %mm3
+ movd 60(%ecx), %mm2
+ pfsub 52(%ecx), %mm3
+ pfsub 56(%ecx), %mm2
+ pfmul 120(%ebx), %mm3
+ pfmul 120(%ebx), %mm2
+ movq %mm2, %mm1
+ pfadd 56(%ecx), %mm1
+ pfadd 60(%ecx), %mm1
+ movq %mm1, %mm0
+ pfadd 48(%ecx), %mm0
+ pfadd 52(%ecx), %mm0
+ pfadd %mm3, %mm1
+ punpckldq %mm2, %mm1
+ pfadd %mm3, %mm2
+ punpckldq %mm2, %mm0
+ movq %mm1, 56(%edx)
+ movq %mm0, 48(%edx)
+ movd 92(%ecx), %mm1
+ pfsub 88(%ecx), %mm1
+ pfmul 120(%ebx), %mm1
+ movd %mm1, 92(%edx)
+ pfadd 92(%ecx), %mm1
+ pfadd 88(%ecx), %mm1
+ movq %mm1, %mm0
+ pfadd 80(%ecx), %mm0
+ pfadd 84(%ecx), %mm0
+ movd %mm0, 80(%edx)
+ movd 80(%ecx), %mm0
+ pfsub 84(%ecx), %mm0
+ pfmul 120(%ebx), %mm0
+ pfadd %mm0, %mm1
+ pfadd 92(%edx), %mm0
+ punpckldq %mm1, %mm0
+ movq %mm0, 84(%edx)
+ movq 96(%ecx), %mm0
+ movq %mm0, %mm1
+ pxor %mm7, %mm1
+ pfacc %mm1, %mm0
+ pfmul %mm6, %mm0
+ movq %mm0, 96(%edx)
+ movd 108(%ecx), %mm0
+ pfsub 104(%ecx), %mm0
+ pfmul 120(%ebx), %mm0
+ movd %mm0, 108(%edx)
+ pfadd 104(%ecx), %mm0
+ pfadd 108(%ecx), %mm0
+ movd %mm0, 104(%edx)
+ movd 124(%ecx), %mm1
+ pfsub 120(%ecx), %mm1
+ pfmul 120(%ebx), %mm1
+ movd %mm1, 124(%edx)
+ pfadd 120(%ecx), %mm1
+ pfadd 124(%ecx), %mm1
+ movq %mm1, %mm0
+ pfadd 112(%ecx), %mm0
+ pfadd 116(%ecx), %mm0
+ movd %mm0, 112(%edx)
+ movd 112(%ecx), %mm0
+ pfsub 116(%ecx), %mm0
+ pfmul 120(%ebx), %mm0
+ pfadd %mm0,%mm1
+ pfadd 124(%edx), %mm0
+ punpckldq %mm1, %mm0
+ movq %mm0, 116(%edx)
+ jnz .L01
+ movd (%ecx), %mm0
+ pfadd 4(%ecx), %mm0
+ movd %mm0, 1024(%esi)
+ movd (%ecx), %mm0
+ pfsub 4(%ecx), %mm0
+ pfmul 120(%ebx), %mm0
+ movd %mm0, (%esi)
+ movd %mm0, (%edi)
+ movd 12(%ecx), %mm0
+ pfsub 8(%ecx), %mm0
+ pfmul 120(%ebx), %mm0
+ movd %mm0, 512(%edi)
+ pfadd 12(%ecx), %mm0
+ pfadd 8(%ecx), %mm0
+ movd %mm0, 512(%esi)
+ movd 16(%ecx), %mm0
+ pfsub 20(%ecx), %mm0
+ pfmul 120(%ebx), %mm0
+ movq %mm0, %mm3
+ movd 28(%ecx), %mm0
+ pfsub 24(%ecx), %mm0
+ pfmul 120(%ebx), %mm0
+ movd %mm0, 768(%edi)
+ movq %mm0, %mm2
+ pfadd 24(%ecx), %mm0
+ pfadd 28(%ecx), %mm0
+ movq %mm0, %mm1
+ pfadd 16(%ecx), %mm0
+ pfadd 20(%ecx), %mm0
+ movd %mm0, 768(%esi)
+ pfadd %mm3, %mm1
+ movd %mm1, 256(%esi)
+ pfadd %mm3, %mm2
+ movd %mm2, 256(%edi)
+ movq 32(%edx), %mm0
+ movq 48(%edx), %mm1
+ pfadd 48(%edx), %mm0
+ pfadd 40(%edx), %mm1
+ movd %mm0, 896(%esi)
+ movd %mm1, 640(%esi)
+ psrlq $32, %mm0
+ psrlq $32, %mm1
+ movd %mm0, 128(%edi)
+ movd %mm1, 384(%edi)
+ movd 40(%edx), %mm0
+ pfadd 56(%edx), %mm0
+ movd %mm0, 384(%esi)
+ movd 56(%edx), %mm0
+ pfadd 36(%edx), %mm0
+ movd %mm0, 128(%esi)
+ movd 60(%edx), %mm0
+ movd %mm0, 896(%edi)
+ pfadd 44(%edx), %mm0
+ movd %mm0, 640(%edi)
+ movq 96(%edx), %mm0
+ movq 112(%edx), %mm2
+ movq 104(%edx), %mm4
+ pfadd 112(%edx), %mm0
+ pfadd 104(%edx), %mm2
+ pfadd 120(%edx), %mm4
+ movq %mm0, %mm1
+ movq %mm2, %mm3
+ movq %mm4, %mm5
+ pfadd 64(%edx), %mm0
+ pfadd 80(%edx), %mm2
+ pfadd 72(%edx), %mm4
+ movd %mm0, 960(%esi)
+ movd %mm2, 704(%esi)
+ movd %mm4, 448(%esi)
+ psrlq $32, %mm0
+ psrlq $32, %mm2
+ psrlq $32, %mm4
+ movd %mm0, 64(%edi)
+ movd %mm2, 320(%edi)
+ movd %mm4, 576(%edi)
+ pfadd 80(%edx), %mm1
+ pfadd 72(%edx), %mm3
+ pfadd 88(%edx), %mm5
+ movd %mm1, 832(%esi)
+ movd %mm3, 576(%esi)
+ movd %mm5, 320(%esi)
+ psrlq $32, %mm1
+ psrlq $32, %mm3
+ psrlq $32, %mm5
+ movd %mm1, 192(%edi)
+ movd %mm3, 448(%edi)
+ movd %mm5, 704(%edi)
+ movd 120(%edx), %mm0
+ pfadd 100(%edx), %mm0
+ movq %mm0, %mm1
+ pfadd 88(%edx), %mm0
+ movd %mm0, 192(%esi)
+ pfadd 68(%edx), %mm1
+ movd %mm1, 64(%esi)
+ movd 124(%edx), %mm0
+ movd %mm0, 960(%edi)
+ pfadd 92(%edx), %mm0
+ movd %mm0, 832(%edi)
+ jmp .L_bye
+.L01:
+ movq (%ecx), %mm0
+ movq %mm0, %mm1
+ pxor %mm7, %mm1
+ pfacc %mm1, %mm0
+ pfmul %mm6, %mm0
+ pf2iw %mm0, %mm0
+ movd %mm0, %eax
+ movw %ax, 512(%esi)
+ psrlq $32, %mm0
+ movd %mm0, %eax
+ movw %ax, (%esi)
+ movd 12(%ecx), %mm0
+ pfsub 8(%ecx), %mm0
+ pfmul 120(%ebx), %mm0
+ pf2iw %mm0, %mm7
+ movd %mm7, %eax
+ movw %ax, 256(%edi)
+ pfadd 12(%ecx), %mm0
+ pfadd 8(%ecx), %mm0
+ pf2iw %mm0, %mm0
+ movd %mm0, %eax
+ movw %ax, 256(%esi)
+ movd 16(%ecx), %mm3
+ pfsub 20(%ecx), %mm3
+ pfmul 120(%ebx), %mm3
+ movq %mm3, %mm2
+ movd 28(%ecx), %mm2
+ pfsub 24(%ecx), %mm2
+ pfmul 120(%ebx), %mm2
+ movq %mm2, %mm1
+ pf2iw %mm2, %mm7
+ movd %mm7, %eax
+ movw %ax, 384(%edi)
+ pfadd 24(%ecx), %mm1
+ pfadd 28(%ecx), %mm1
+ movq %mm1, %mm0
+ pfadd 16(%ecx), %mm0
+ pfadd 20(%ecx), %mm0
+ pf2iw %mm0, %mm0
+ movd %mm0, %eax
+ movw %ax, 384(%esi)
+ pfadd %mm3, %mm1
+ pf2iw %mm1, %mm1
+ movd %mm1, %eax
+ movw %ax, 128(%esi)
+ pfadd %mm3, %mm2
+ pf2iw %mm2, %mm2
+ movd %mm2, %eax
+ movw %ax, 128(%edi)
+ movq 32(%edx), %mm0
+ movq 48(%edx), %mm1
+ pfadd 48(%edx), %mm0
+ pfadd 40(%edx), %mm1
+ pf2iw %mm0, %mm0
+ pf2iw %mm1, %mm1
+ movd %mm0, %eax
+ movd %mm1, %ecx
+ movw %ax, 448(%esi)
+ movw %cx, 320(%esi)
+ psrlq $32, %mm0
+ psrlq $32, %mm1
+ movd %mm0, %eax
+ movd %mm1, %ecx
+ movw %ax, 64(%edi)
+ movw %cx, 192(%edi)
+ movd 40(%edx), %mm3
+ movd 56(%edx), %mm4
+ movd 60(%edx), %mm0
+ movd 44(%edx), %mm2
+ movd 120(%edx), %mm5
+ punpckldq %mm4, %mm3
+ punpckldq 124(%edx), %mm0
+ pfadd 100(%edx), %mm5
+ punpckldq 36(%edx), %mm4
+ punpckldq 92(%edx), %mm2
+ movq %mm5, %mm6
+ pfadd %mm4, %mm3
+ pf2iw %mm0, %mm1
+ pf2iw %mm3, %mm3
+ pfadd 88(%edx), %mm5
+ movd %mm1, %eax
+ movd %mm3, %ecx
+ movw %ax, 448(%edi)
+ movw %cx, 192(%esi)
+ pf2iw %mm5, %mm5
+ psrlq $32, %mm1
+ psrlq $32, %mm3
+ movd %mm5, %ebx
+ movd %mm1, %eax
+ movd %mm3, %ecx
+ movw %bx, 96(%esi)
+ movw %ax, 480(%edi)
+ movw %cx, 64(%esi)
+ pfadd %mm2, %mm0
+ pf2iw %mm0, %mm0
+ movd %mm0, %eax
+ pfadd 68(%edx), %mm6
+ movw %ax, 320(%edi)
+ psrlq $32, %mm0
+ pf2iw %mm6, %mm6
+ movd %mm0, %eax
+ movd %mm6, %ebx
+ movw %ax, 416(%edi)
+ movw %bx, 32(%esi)
+ movq 96(%edx), %mm0
+ movq 112(%edx), %mm2
+ movq 104(%edx), %mm4
+ pfadd %mm2, %mm0
+ pfadd %mm4, %mm2
+ pfadd 120(%edx), %mm4
+ movq %mm0, %mm1
+ movq %mm2, %mm3
+ movq %mm4, %mm5
+ pfadd 64(%edx), %mm0
+ pfadd 80(%edx), %mm2
+ pfadd 72(%edx), %mm4
+ pf2iw %mm0, %mm0
+ pf2iw %mm2, %mm2
+ pf2iw %mm4, %mm4
+ movd %mm0, %eax
+ movd %mm2, %ecx
+ movd %mm4, %ebx
+ movw %ax, 480(%esi)
+ movw %cx, 352(%esi)
+ movw %bx, 224(%esi)
+ psrlq $32, %mm0
+ psrlq $32, %mm2
+ psrlq $32, %mm4
+ movd %mm0, %eax
+ movd %mm2, %ecx
+ movd %mm4, %ebx
+ movw %ax, 32(%edi)
+ movw %cx, 160(%edi)
+ movw %bx, 288(%edi)
+ pfadd 80(%edx), %mm1
+ pfadd 72(%edx), %mm3
+ pfadd 88(%edx), %mm5
+ pf2iw %mm1, %mm1
+ pf2iw %mm3, %mm3
+ pf2iw %mm5, %mm5
+ movd %mm1, %eax
+ movd %mm3, %ecx
+ movd %mm5, %ebx
+ movw %ax, 416(%esi)
+ movw %cx, 288(%esi)
+ movw %bx, 160(%esi)
+ psrlq $32, %mm1
+ psrlq $32, %mm3
+ psrlq $32, %mm5
+ movd %mm1, %eax
+ movd %mm3, %ecx
+ movd %mm5, %ebx
+ movw %ax, 96(%edi)
+ movw %cx, 224(%edi)
+ movw %bx, 352(%edi)
+ movsw
+.L_bye:
+ femms
+
+/* NO_APP */
+ addl $256, %esp
+ popl %ebx
+ popl %esi
+ popl %edi
+ leave
+ ret
+ /* .size ASM_NAME(dct64_3dnowext), .-ASM_NAME(dct64_3dnowext) */
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/dct64_altivec.c b/src/libmpg123/dct64_altivec.c
new file mode 100644
index 0000000..3d6c7e1
--- /dev/null
+++ b/src/libmpg123/dct64_altivec.c
@@ -0,0 +1,315 @@
+/*
+ dct64_altivec.c: Discrete Cosine Tansform (DCT) for Altivec
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+ altivec optimization by tmkk
+*/
+
+/*
+ * Discrete Cosine Tansform (DCT) for subband synthesis
+ *
+ * -funroll-loops (for gcc) will remove the loops for better performance
+ * using loops in the source-code enhances readabillity
+ *
+ *
+ * TODO: write an optimized version for the down-sampling modes
+ * (in these modes the bands 16-31 (2:1) or 8-31 (4:1) are zero
+ */
+
+#include "mpg123lib_intern.h"
+
+#ifndef __APPLE__
+#include <altivec.h>
+#endif
+
+void dct64_altivec(real *out0,real *out1,real *samples)
+{
+ ALIGNED(16) real bufs[32];
+
+ {
+ register real *b1,*costab;
+
+ vector unsigned char vinvert,vperm1,vperm2,vperm3,vperm4;
+ vector float v1,v2,v3,v4,v5,v6,v7,v8;
+ vector float vbs1,vbs2,vbs3,vbs4,vbs5,vbs6,vbs7,vbs8;
+ vector float vbs9,vbs10,vbs11,vbs12,vbs13,vbs14,vbs15,vbs16;
+ vector float vzero;
+ b1 = samples;
+ costab = pnts[0];
+
+ vzero = vec_xor(vzero,vzero);
+#ifdef __APPLE__
+ vinvert = (vector unsigned char)(12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3);
+#else
+ vinvert = (vector unsigned char){12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3};
+#endif
+ vperm1 = vec_lvsl(0,b1);
+ vperm2 = vec_perm(vperm1,vperm1,vinvert);
+
+ v1 = vec_ld(0,b1);
+ v2 = vec_ld(16,b1);
+ v3 = vec_ld(112,b1);
+ v4 = vec_ld(127,b1);
+ v5 = vec_perm(v1,v2,vperm1); /* b1[0,1,2,3] */
+ v6 = vec_perm(v3,v4,vperm2); /* b1[31,30,29,28] */
+
+ vbs1 = vec_add(v5,v6);
+ vbs8 = vec_sub(v5,v6);
+
+ v1 = vec_ld(32,b1);
+ v4 = vec_ld(96,b1);
+ v5 = vec_perm(v2,v1,vperm1); /* b1[4,5,6,7] */
+ v6 = vec_perm(v4,v3,vperm2); /* b1[27,26,25,24] */
+
+ vbs2 = vec_add(v5,v6);
+ vbs7 = vec_sub(v5,v6);
+
+ v2 = vec_ld(48,b1);
+ v3 = vec_ld(80,b1);
+ v5 = vec_perm(v1,v2,vperm1); /* b1[8,9,10,11] */
+ v6 = vec_perm(v3,v4,vperm2); /* b1[23,22,21,20] */
+
+ vbs3 = vec_add(v5,v6);
+ vbs6 = vec_sub(v5,v6);
+
+ v1 = vec_ld(64,b1);
+ v5 = vec_perm(v2,v1,vperm1); /* b1[12,13,14,15] */
+ v6 = vec_perm(v1,v3,vperm2); /* b1[19,18,17,16] */
+
+ vbs4 = vec_add(v5,v6);
+ vbs5 = vec_sub(v5,v6);
+
+ v1 = vec_ld(0,costab);
+ vbs8 = vec_madd(vbs8,v1,vzero);
+ v2 = vec_ld(16,costab);
+ vbs7 = vec_madd(vbs7,v2,vzero);
+ v3 = vec_ld(32,costab);
+ vbs6 = vec_madd(vbs6,v3,vzero);
+ v4 = vec_ld(48,costab);
+ vbs5 = vec_madd(vbs5,v4,vzero);
+ vbs6 = vec_perm(vbs6,vbs6,vinvert);
+ vbs5 = vec_perm(vbs5,vbs5,vinvert);
+
+
+ costab = pnts[1];
+
+ v1 = vec_perm(vbs4,vbs4,vinvert);
+ vbs9 = vec_add(vbs1,v1);
+ v3 = vec_sub(vbs1,v1);
+ v5 = vec_ld(0,costab);
+ v2 = vec_perm(vbs3,vbs3,vinvert);
+ vbs10 = vec_add(vbs2,v2);
+ v4 = vec_sub(vbs2,v2);
+ v6 = vec_ld(16,costab);
+ vbs12 = vec_madd(v3,v5,vzero);
+ vbs11 = vec_madd(v4,v6,vzero);
+
+ v7 = vec_sub(vbs7,vbs6);
+ v8 = vec_sub(vbs8,vbs5);
+ vbs13 = vec_add(vbs5,vbs8);
+ vbs14 = vec_add(vbs6,vbs7);
+ vbs15 = vec_madd(v7,v6,vzero);
+ vbs16 = vec_madd(v8,v5,vzero);
+
+
+ costab = pnts[2];
+
+ v1 = vec_perm(vbs10,vbs10,vinvert);
+ v5 = vec_perm(vbs14,vbs14,vinvert);
+ vbs1 = vec_add(v1,vbs9);
+ vbs5 = vec_add(v5,vbs13);
+ v2 = vec_sub(vbs9,v1);
+ v6 = vec_sub(vbs13,v5);
+ v3 = vec_ld(0,costab);
+ vbs11 = vec_perm(vbs11,vbs11,vinvert);
+ vbs15 = vec_perm(vbs15,vbs15,vinvert);
+ vbs3 = vec_add(vbs11,vbs12);
+ vbs7 = vec_add(vbs15,vbs16);
+ v4 = vec_sub(vbs12,vbs11);
+ v7 = vec_sub(vbs16,vbs15);
+ vbs2 = vec_madd(v2,v3,vzero);
+ vbs4 = vec_madd(v4,v3,vzero);
+ vbs6 = vec_madd(v6,v3,vzero);
+ vbs8 = vec_madd(v7,v3,vzero);
+
+ vbs2 = vec_perm(vbs2,vbs2,vinvert);
+ vbs4 = vec_perm(vbs4,vbs4,vinvert);
+ vbs6 = vec_perm(vbs6,vbs6,vinvert);
+ vbs8 = vec_perm(vbs8,vbs8,vinvert);
+
+
+ costab = pnts[3];
+
+#ifdef __APPLE__
+ vperm1 = (vector unsigned char)(0,1,2,3,4,5,6,7,16,17,18,19,20,21,22,23);
+ vperm2 = (vector unsigned char)(12,13,14,15,8,9,10,11,28,29,30,31,24,25,26,27);
+ vperm3 = (vector unsigned char)(0,1,2,3,4,5,6,7,20,21,22,23,16,17,18,19);
+#else
+ vperm1 = (vector unsigned char){0,1,2,3,4,5,6,7,16,17,18,19,20,21,22,23};
+ vperm2 = (vector unsigned char){12,13,14,15,8,9,10,11,28,29,30,31,24,25,26,27};
+ vperm3 = (vector unsigned char){0,1,2,3,4,5,6,7,20,21,22,23,16,17,18,19};
+#endif
+ vperm4 = vec_add(vperm3,vec_splat_u8(8));
+
+ v1 = vec_ld(0,costab);
+ v2 = vec_splat(v1,0);
+ v3 = vec_splat(v1,1);
+ v1 = vec_mergeh(v2,v3);
+
+ v2 = vec_perm(vbs1,vbs3,vperm1);
+ v3 = vec_perm(vbs2,vbs4,vperm1);
+ v4 = vec_perm(vbs1,vbs3,vperm2);
+ v5 = vec_perm(vbs2,vbs4,vperm2);
+ v6 = vec_sub(v2,v4);
+ v7 = vec_sub(v3,v5);
+ v2 = vec_add(v2,v4);
+ v3 = vec_add(v3,v5);
+ v4 = vec_madd(v6,v1,vzero);
+ v5 = vec_nmsub(v7,v1,vzero);
+ vbs9 = vec_perm(v2,v4,vperm3);
+ vbs11 = vec_perm(v2,v4,vperm4);
+ vbs10 = vec_perm(v3,v5,vperm3);
+ vbs12 = vec_perm(v3,v5,vperm4);
+
+ v2 = vec_perm(vbs5,vbs7,vperm1);
+ v3 = vec_perm(vbs6,vbs8,vperm1);
+ v4 = vec_perm(vbs5,vbs7,vperm2);
+ v5 = vec_perm(vbs6,vbs8,vperm2);
+ v6 = vec_sub(v2,v4);
+ v7 = vec_sub(v3,v5);
+ v2 = vec_add(v2,v4);
+ v3 = vec_add(v3,v5);
+ v4 = vec_madd(v6,v1,vzero);
+ v5 = vec_nmsub(v7,v1,vzero);
+ vbs13 = vec_perm(v2,v4,vperm3);
+ vbs15 = vec_perm(v2,v4,vperm4);
+ vbs14 = vec_perm(v3,v5,vperm3);
+ vbs16 = vec_perm(v3,v5,vperm4);
+
+
+ costab = pnts[4];
+
+ v1 = vec_lde(0,costab);
+#ifdef __APPLE__
+ v2 = (vector float)(1.0f,-1.0f,1.0f,-1.0f);
+#else
+ v2 = (vector float){1.0f,-1.0f,1.0f,-1.0f};
+#endif
+ v3 = vec_splat(v1,0);
+ v1 = vec_madd(v2,v3,vzero);
+
+ v2 = vec_mergeh(vbs9,vbs10);
+ v3 = vec_mergel(vbs9,vbs10);
+ v4 = vec_mergeh(vbs11,vbs12);
+ v5 = vec_mergel(vbs11,vbs12);
+ v6 = vec_mergeh(v2,v3);
+ v7 = vec_mergel(v2,v3);
+ v2 = vec_mergeh(v4,v5);
+ v3 = vec_mergel(v4,v5);
+ v4 = vec_sub(v6,v7);
+ v5 = vec_sub(v2,v3);
+ v6 = vec_add(v6,v7);
+ v7 = vec_add(v2,v3);
+ v2 = vec_madd(v4,v1,vzero);
+ v3 = vec_madd(v5,v1,vzero);
+ vbs1 = vec_mergeh(v6,v2);
+ vbs2 = vec_mergel(v6,v2);
+ vbs3 = vec_mergeh(v7,v3);
+ vbs4 = vec_mergel(v7,v3);
+
+ v2 = vec_mergeh(vbs13,vbs14);
+ v3 = vec_mergel(vbs13,vbs14);
+ v4 = vec_mergeh(vbs15,vbs16);
+ v5 = vec_mergel(vbs15,vbs16);
+ v6 = vec_mergeh(v2,v3);
+ v7 = vec_mergel(v2,v3);
+ v2 = vec_mergeh(v4,v5);
+ v3 = vec_mergel(v4,v5);
+ v4 = vec_sub(v6,v7);
+ v5 = vec_sub(v2,v3);
+ v6 = vec_add(v6,v7);
+ v7 = vec_add(v2,v3);
+ v2 = vec_madd(v4,v1,vzero);
+ v3 = vec_madd(v5,v1,vzero);
+ vbs5 = vec_mergeh(v6,v2);
+ vbs6 = vec_mergel(v6,v2);
+ vbs7 = vec_mergeh(v7,v3);
+ vbs8 = vec_mergel(v7,v3);
+
+ vec_st(vbs1,0,bufs);
+ vec_st(vbs2,16,bufs);
+ vec_st(vbs3,32,bufs);
+ vec_st(vbs4,48,bufs);
+ vec_st(vbs5,64,bufs);
+ vec_st(vbs6,80,bufs);
+ vec_st(vbs7,96,bufs);
+ vec_st(vbs8,112,bufs);
+ }
+
+ {
+ register real *b1;
+ register int i;
+
+ for(b1=bufs,i=8;i;i--,b1+=4)
+ b1[2] += b1[3];
+
+ for(b1=bufs,i=4;i;i--,b1+=8)
+ {
+ b1[4] += b1[6];
+ b1[6] += b1[5];
+ b1[5] += b1[7];
+ }
+
+ for(b1=bufs,i=2;i;i--,b1+=16)
+ {
+ b1[8] += b1[12];
+ b1[12] += b1[10];
+ b1[10] += b1[14];
+ b1[14] += b1[9];
+ b1[9] += b1[13];
+ b1[13] += b1[11];
+ b1[11] += b1[15];
+ }
+ }
+
+
+ out0[0x10*16] = bufs[0];
+ out0[0x10*15] = bufs[16+0] + bufs[16+8];
+ out0[0x10*14] = bufs[8];
+ out0[0x10*13] = bufs[16+8] + bufs[16+4];
+ out0[0x10*12] = bufs[4];
+ out0[0x10*11] = bufs[16+4] + bufs[16+12];
+ out0[0x10*10] = bufs[12];
+ out0[0x10* 9] = bufs[16+12] + bufs[16+2];
+ out0[0x10* 8] = bufs[2];
+ out0[0x10* 7] = bufs[16+2] + bufs[16+10];
+ out0[0x10* 6] = bufs[10];
+ out0[0x10* 5] = bufs[16+10] + bufs[16+6];
+ out0[0x10* 4] = bufs[6];
+ out0[0x10* 3] = bufs[16+6] + bufs[16+14];
+ out0[0x10* 2] = bufs[14];
+ out0[0x10* 1] = bufs[16+14] + bufs[16+1];
+ out0[0x10* 0] = bufs[1];
+
+ out1[0x10* 0] = bufs[1];
+ out1[0x10* 1] = bufs[16+1] + bufs[16+9];
+ out1[0x10* 2] = bufs[9];
+ out1[0x10* 3] = bufs[16+9] + bufs[16+5];
+ out1[0x10* 4] = bufs[5];
+ out1[0x10* 5] = bufs[16+5] + bufs[16+13];
+ out1[0x10* 6] = bufs[13];
+ out1[0x10* 7] = bufs[16+13] + bufs[16+3];
+ out1[0x10* 8] = bufs[3];
+ out1[0x10* 9] = bufs[16+3] + bufs[16+11];
+ out1[0x10*10] = bufs[11];
+ out1[0x10*11] = bufs[16+11] + bufs[16+7];
+ out1[0x10*12] = bufs[7];
+ out1[0x10*13] = bufs[16+7] + bufs[16+15];
+ out1[0x10*14] = bufs[15];
+ out1[0x10*15] = bufs[16+15];
+
+}
+
+
diff --git a/src/libmpg123/dct64_i386.c b/src/libmpg123/dct64_i386.c
new file mode 100644
index 0000000..b4d2ed8
--- /dev/null
+++ b/src/libmpg123/dct64_i386.c
@@ -0,0 +1,336 @@
+/*
+ dct64_i386.c: DCT64, a C variant for i386
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+/*
+ * Discrete Cosine Tansform (DCT) for subband synthesis
+ * optimized for machines with no auto-increment.
+ * The performance is highly compiler dependend. Maybe
+ * the dct64.c version for 'normal' processor may be faster
+ * even for Intel processors.
+ */
+
+#include "mpg123lib_intern.h"
+
+static void dct64_1(real *out0,real *out1,real *b1,real *b2,real *samples)
+{
+ {
+ register real *costab = pnts[0];
+
+ b1[0x00] = samples[0x00] + samples[0x1F];
+ b1[0x01] = samples[0x01] + samples[0x1E];
+ b1[0x1F] = REAL_MUL(samples[0x00] - samples[0x1F], costab[0x0]);
+ b1[0x1E] = REAL_MUL(samples[0x01] - samples[0x1E], costab[0x1]);
+
+ b1[0x02] = samples[0x02] + samples[0x1D];
+ b1[0x03] = samples[0x03] + samples[0x1C];
+ b1[0x1D] = REAL_MUL(samples[0x02] - samples[0x1D], costab[0x2]);
+ b1[0x1C] = REAL_MUL(samples[0x03] - samples[0x1C], costab[0x3]);
+
+ b1[0x04] = samples[0x04] + samples[0x1B];
+ b1[0x05] = samples[0x05] + samples[0x1A];
+ b1[0x1B] = REAL_MUL(samples[0x04] - samples[0x1B], costab[0x4]);
+ b1[0x1A] = REAL_MUL(samples[0x05] - samples[0x1A], costab[0x5]);
+
+ b1[0x06] = samples[0x06] + samples[0x19];
+ b1[0x07] = samples[0x07] + samples[0x18];
+ b1[0x19] = REAL_MUL(samples[0x06] - samples[0x19], costab[0x6]);
+ b1[0x18] = REAL_MUL(samples[0x07] - samples[0x18], costab[0x7]);
+
+ b1[0x08] = samples[0x08] + samples[0x17];
+ b1[0x09] = samples[0x09] + samples[0x16];
+ b1[0x17] = REAL_MUL(samples[0x08] - samples[0x17], costab[0x8]);
+ b1[0x16] = REAL_MUL(samples[0x09] - samples[0x16], costab[0x9]);
+
+ b1[0x0A] = samples[0x0A] + samples[0x15];
+ b1[0x0B] = samples[0x0B] + samples[0x14];
+ b1[0x15] = REAL_MUL(samples[0x0A] - samples[0x15], costab[0xA]);
+ b1[0x14] = REAL_MUL(samples[0x0B] - samples[0x14], costab[0xB]);
+
+ b1[0x0C] = samples[0x0C] + samples[0x13];
+ b1[0x0D] = samples[0x0D] + samples[0x12];
+ b1[0x13] = REAL_MUL(samples[0x0C] - samples[0x13], costab[0xC]);
+ b1[0x12] = REAL_MUL(samples[0x0D] - samples[0x12], costab[0xD]);
+
+ b1[0x0E] = samples[0x0E] + samples[0x11];
+ b1[0x0F] = samples[0x0F] + samples[0x10];
+ b1[0x11] = REAL_MUL(samples[0x0E] - samples[0x11], costab[0xE]);
+ b1[0x10] = REAL_MUL(samples[0x0F] - samples[0x10], costab[0xF]);
+
+ }
+
+
+ {
+ register real *costab = pnts[1];
+
+ b2[0x00] = b1[0x00] + b1[0x0F];
+ b2[0x01] = b1[0x01] + b1[0x0E];
+ b2[0x0F] = REAL_MUL(b1[0x00] - b1[0x0F], costab[0]);
+ b2[0x0E] = REAL_MUL(b1[0x01] - b1[0x0E], costab[1]);
+
+ b2[0x02] = b1[0x02] + b1[0x0D];
+ b2[0x03] = b1[0x03] + b1[0x0C];
+ b2[0x0D] = REAL_MUL(b1[0x02] - b1[0x0D], costab[2]);
+ b2[0x0C] = REAL_MUL(b1[0x03] - b1[0x0C], costab[3]);
+
+ b2[0x04] = b1[0x04] + b1[0x0B];
+ b2[0x05] = b1[0x05] + b1[0x0A];
+ b2[0x0B] = REAL_MUL(b1[0x04] - b1[0x0B], costab[4]);
+ b2[0x0A] = REAL_MUL(b1[0x05] - b1[0x0A], costab[5]);
+
+ b2[0x06] = b1[0x06] + b1[0x09];
+ b2[0x07] = b1[0x07] + b1[0x08];
+ b2[0x09] = REAL_MUL(b1[0x06] - b1[0x09], costab[6]);
+ b2[0x08] = REAL_MUL(b1[0x07] - b1[0x08], costab[7]);
+
+ /* */
+
+ b2[0x10] = b1[0x10] + b1[0x1F];
+ b2[0x11] = b1[0x11] + b1[0x1E];
+ b2[0x1F] = REAL_MUL(b1[0x1F] - b1[0x10], costab[0]);
+ b2[0x1E] = REAL_MUL(b1[0x1E] - b1[0x11], costab[1]);
+
+ b2[0x12] = b1[0x12] + b1[0x1D];
+ b2[0x13] = b1[0x13] + b1[0x1C];
+ b2[0x1D] = REAL_MUL(b1[0x1D] - b1[0x12], costab[2]);
+ b2[0x1C] = REAL_MUL(b1[0x1C] - b1[0x13], costab[3]);
+
+ b2[0x14] = b1[0x14] + b1[0x1B];
+ b2[0x15] = b1[0x15] + b1[0x1A];
+ b2[0x1B] = REAL_MUL(b1[0x1B] - b1[0x14], costab[4]);
+ b2[0x1A] = REAL_MUL(b1[0x1A] - b1[0x15], costab[5]);
+
+ b2[0x16] = b1[0x16] + b1[0x19];
+ b2[0x17] = b1[0x17] + b1[0x18];
+ b2[0x19] = REAL_MUL(b1[0x19] - b1[0x16], costab[6]);
+ b2[0x18] = REAL_MUL(b1[0x18] - b1[0x17], costab[7]);
+ }
+
+ {
+ register real *costab = pnts[2];
+
+ b1[0x00] = b2[0x00] + b2[0x07];
+ b1[0x07] = REAL_MUL(b2[0x00] - b2[0x07], costab[0]);
+ b1[0x01] = b2[0x01] + b2[0x06];
+ b1[0x06] = REAL_MUL(b2[0x01] - b2[0x06], costab[1]);
+ b1[0x02] = b2[0x02] + b2[0x05];
+ b1[0x05] = REAL_MUL(b2[0x02] - b2[0x05], costab[2]);
+ b1[0x03] = b2[0x03] + b2[0x04];
+ b1[0x04] = REAL_MUL(b2[0x03] - b2[0x04], costab[3]);
+
+ b1[0x08] = b2[0x08] + b2[0x0F];
+ b1[0x0F] = REAL_MUL(b2[0x0F] - b2[0x08], costab[0]);
+ b1[0x09] = b2[0x09] + b2[0x0E];
+ b1[0x0E] = REAL_MUL(b2[0x0E] - b2[0x09], costab[1]);
+ b1[0x0A] = b2[0x0A] + b2[0x0D];
+ b1[0x0D] = REAL_MUL(b2[0x0D] - b2[0x0A], costab[2]);
+ b1[0x0B] = b2[0x0B] + b2[0x0C];
+ b1[0x0C] = REAL_MUL(b2[0x0C] - b2[0x0B], costab[3]);
+
+ b1[0x10] = b2[0x10] + b2[0x17];
+ b1[0x17] = REAL_MUL(b2[0x10] - b2[0x17], costab[0]);
+ b1[0x11] = b2[0x11] + b2[0x16];
+ b1[0x16] = REAL_MUL(b2[0x11] - b2[0x16], costab[1]);
+ b1[0x12] = b2[0x12] + b2[0x15];
+ b1[0x15] = REAL_MUL(b2[0x12] - b2[0x15], costab[2]);
+ b1[0x13] = b2[0x13] + b2[0x14];
+ b1[0x14] = REAL_MUL(b2[0x13] - b2[0x14], costab[3]);
+
+ b1[0x18] = b2[0x18] + b2[0x1F];
+ b1[0x1F] = REAL_MUL(b2[0x1F] - b2[0x18], costab[0]);
+ b1[0x19] = b2[0x19] + b2[0x1E];
+ b1[0x1E] = REAL_MUL(b2[0x1E] - b2[0x19], costab[1]);
+ b1[0x1A] = b2[0x1A] + b2[0x1D];
+ b1[0x1D] = REAL_MUL(b2[0x1D] - b2[0x1A], costab[2]);
+ b1[0x1B] = b2[0x1B] + b2[0x1C];
+ b1[0x1C] = REAL_MUL(b2[0x1C] - b2[0x1B], costab[3]);
+ }
+
+ {
+ register real const cos0 = pnts[3][0];
+ register real const cos1 = pnts[3][1];
+
+ b2[0x00] = b1[0x00] + b1[0x03];
+ b2[0x03] = REAL_MUL(b1[0x00] - b1[0x03], cos0);
+ b2[0x01] = b1[0x01] + b1[0x02];
+ b2[0x02] = REAL_MUL(b1[0x01] - b1[0x02], cos1);
+
+ b2[0x04] = b1[0x04] + b1[0x07];
+ b2[0x07] = REAL_MUL(b1[0x07] - b1[0x04], cos0);
+ b2[0x05] = b1[0x05] + b1[0x06];
+ b2[0x06] = REAL_MUL(b1[0x06] - b1[0x05], cos1);
+
+ b2[0x08] = b1[0x08] + b1[0x0B];
+ b2[0x0B] = REAL_MUL(b1[0x08] - b1[0x0B], cos0);
+ b2[0x09] = b1[0x09] + b1[0x0A];
+ b2[0x0A] = REAL_MUL(b1[0x09] - b1[0x0A], cos1);
+
+ b2[0x0C] = b1[0x0C] + b1[0x0F];
+ b2[0x0F] = REAL_MUL(b1[0x0F] - b1[0x0C], cos0);
+ b2[0x0D] = b1[0x0D] + b1[0x0E];
+ b2[0x0E] = REAL_MUL(b1[0x0E] - b1[0x0D], cos1);
+
+ b2[0x10] = b1[0x10] + b1[0x13];
+ b2[0x13] = REAL_MUL(b1[0x10] - b1[0x13], cos0);
+ b2[0x11] = b1[0x11] + b1[0x12];
+ b2[0x12] = REAL_MUL(b1[0x11] - b1[0x12], cos1);
+
+ b2[0x14] = b1[0x14] + b1[0x17];
+ b2[0x17] = REAL_MUL(b1[0x17] - b1[0x14], cos0);
+ b2[0x15] = b1[0x15] + b1[0x16];
+ b2[0x16] = REAL_MUL(b1[0x16] - b1[0x15], cos1);
+
+ b2[0x18] = b1[0x18] + b1[0x1B];
+ b2[0x1B] = REAL_MUL(b1[0x18] - b1[0x1B], cos0);
+ b2[0x19] = b1[0x19] + b1[0x1A];
+ b2[0x1A] = REAL_MUL(b1[0x19] - b1[0x1A], cos1);
+
+ b2[0x1C] = b1[0x1C] + b1[0x1F];
+ b2[0x1F] = REAL_MUL(b1[0x1F] - b1[0x1C], cos0);
+ b2[0x1D] = b1[0x1D] + b1[0x1E];
+ b2[0x1E] = REAL_MUL(b1[0x1E] - b1[0x1D], cos1);
+ }
+
+ {
+ register real const cos0 = pnts[4][0];
+
+ b1[0x00] = b2[0x00] + b2[0x01];
+ b1[0x01] = REAL_MUL(b2[0x00] - b2[0x01], cos0);
+ b1[0x02] = b2[0x02] + b2[0x03];
+ b1[0x03] = REAL_MUL(b2[0x03] - b2[0x02], cos0);
+ b1[0x02] += b1[0x03];
+
+ b1[0x04] = b2[0x04] + b2[0x05];
+ b1[0x05] = REAL_MUL(b2[0x04] - b2[0x05], cos0);
+ b1[0x06] = b2[0x06] + b2[0x07];
+ b1[0x07] = REAL_MUL(b2[0x07] - b2[0x06], cos0);
+ b1[0x06] += b1[0x07];
+ b1[0x04] += b1[0x06];
+ b1[0x06] += b1[0x05];
+ b1[0x05] += b1[0x07];
+
+ b1[0x08] = b2[0x08] + b2[0x09];
+ b1[0x09] = REAL_MUL(b2[0x08] - b2[0x09], cos0);
+ b1[0x0A] = b2[0x0A] + b2[0x0B];
+ b1[0x0B] = REAL_MUL(b2[0x0B] - b2[0x0A], cos0);
+ b1[0x0A] += b1[0x0B];
+
+ b1[0x0C] = b2[0x0C] + b2[0x0D];
+ b1[0x0D] = REAL_MUL(b2[0x0C] - b2[0x0D], cos0);
+ b1[0x0E] = b2[0x0E] + b2[0x0F];
+ b1[0x0F] = REAL_MUL(b2[0x0F] - b2[0x0E], cos0);
+ b1[0x0E] += b1[0x0F];
+ b1[0x0C] += b1[0x0E];
+ b1[0x0E] += b1[0x0D];
+ b1[0x0D] += b1[0x0F];
+
+ b1[0x10] = b2[0x10] + b2[0x11];
+ b1[0x11] = REAL_MUL(b2[0x10] - b2[0x11], cos0);
+ b1[0x12] = b2[0x12] + b2[0x13];
+ b1[0x13] = REAL_MUL(b2[0x13] - b2[0x12], cos0);
+ b1[0x12] += b1[0x13];
+
+ b1[0x14] = b2[0x14] + b2[0x15];
+ b1[0x15] = REAL_MUL(b2[0x14] - b2[0x15], cos0);
+ b1[0x16] = b2[0x16] + b2[0x17];
+ b1[0x17] = REAL_MUL(b2[0x17] - b2[0x16], cos0);
+ b1[0x16] += b1[0x17];
+ b1[0x14] += b1[0x16];
+ b1[0x16] += b1[0x15];
+ b1[0x15] += b1[0x17];
+
+ b1[0x18] = b2[0x18] + b2[0x19];
+ b1[0x19] = REAL_MUL(b2[0x18] - b2[0x19], cos0);
+ b1[0x1A] = b2[0x1A] + b2[0x1B];
+ b1[0x1B] = REAL_MUL(b2[0x1B] - b2[0x1A], cos0);
+ b1[0x1A] += b1[0x1B];
+
+ b1[0x1C] = b2[0x1C] + b2[0x1D];
+ b1[0x1D] = REAL_MUL(b2[0x1C] - b2[0x1D], cos0);
+ b1[0x1E] = b2[0x1E] + b2[0x1F];
+ b1[0x1F] = REAL_MUL(b2[0x1F] - b2[0x1E], cos0);
+ b1[0x1E] += b1[0x1F];
+ b1[0x1C] += b1[0x1E];
+ b1[0x1E] += b1[0x1D];
+ b1[0x1D] += b1[0x1F];
+ }
+
+ out0[0x10*16] = b1[0x00];
+ out0[0x10*12] = b1[0x04];
+ out0[0x10* 8] = b1[0x02];
+ out0[0x10* 4] = b1[0x06];
+ out0[0x10* 0] = b1[0x01];
+ out1[0x10* 0] = b1[0x01];
+ out1[0x10* 4] = b1[0x05];
+ out1[0x10* 8] = b1[0x03];
+ out1[0x10*12] = b1[0x07];
+
+#if 1
+ out0[0x10*14] = b1[0x08] + b1[0x0C];
+ out0[0x10*10] = b1[0x0C] + b1[0x0a];
+ out0[0x10* 6] = b1[0x0A] + b1[0x0E];
+ out0[0x10* 2] = b1[0x0E] + b1[0x09];
+ out1[0x10* 2] = b1[0x09] + b1[0x0D];
+ out1[0x10* 6] = b1[0x0D] + b1[0x0B];
+ out1[0x10*10] = b1[0x0B] + b1[0x0F];
+ out1[0x10*14] = b1[0x0F];
+#else
+ b1[0x08] += b1[0x0C];
+ out0[0x10*14] = b1[0x08];
+ b1[0x0C] += b1[0x0a];
+ out0[0x10*10] = b1[0x0C];
+ b1[0x0A] += b1[0x0E];
+ out0[0x10* 6] = b1[0x0A];
+ b1[0x0E] += b1[0x09];
+ out0[0x10* 2] = b1[0x0E];
+ b1[0x09] += b1[0x0D];
+ out1[0x10* 2] = b1[0x09];
+ b1[0x0D] += b1[0x0B];
+ out1[0x10* 6] = b1[0x0D];
+ b1[0x0B] += b1[0x0F];
+ out1[0x10*10] = b1[0x0B];
+ out1[0x10*14] = b1[0x0F];
+#endif
+
+ {
+ real tmp;
+ tmp = b1[0x18] + b1[0x1C];
+ out0[0x10*15] = tmp + b1[0x10];
+ out0[0x10*13] = tmp + b1[0x14];
+ tmp = b1[0x1C] + b1[0x1A];
+ out0[0x10*11] = tmp + b1[0x14];
+ out0[0x10* 9] = tmp + b1[0x12];
+ tmp = b1[0x1A] + b1[0x1E];
+ out0[0x10* 7] = tmp + b1[0x12];
+ out0[0x10* 5] = tmp + b1[0x16];
+ tmp = b1[0x1E] + b1[0x19];
+ out0[0x10* 3] = tmp + b1[0x16];
+ out0[0x10* 1] = tmp + b1[0x11];
+ tmp = b1[0x19] + b1[0x1D];
+ out1[0x10* 1] = tmp + b1[0x11];
+ out1[0x10* 3] = tmp + b1[0x15];
+ tmp = b1[0x1D] + b1[0x1B];
+ out1[0x10* 5] = tmp + b1[0x15];
+ out1[0x10* 7] = tmp + b1[0x13];
+ tmp = b1[0x1B] + b1[0x1F];
+ out1[0x10* 9] = tmp + b1[0x13];
+ out1[0x10*11] = tmp + b1[0x17];
+ out1[0x10*13] = b1[0x17] + b1[0x1F];
+ out1[0x10*15] = b1[0x1F];
+ }
+}
+
+/*
+ * the call via dct64 is a trick to force GCC to use
+ * (new) registers for the b1,b2 pointer to the bufs[xx] field
+ */
+void dct64_i386(real *a,real *b,real *c)
+{
+ real bufs[0x40];
+ dct64_1(a,b,bufs,bufs+0x20,c);
+}
+
diff --git a/src/libmpg123/dct64_i486.c b/src/libmpg123/dct64_i486.c
new file mode 100644
index 0000000..b81d060
--- /dev/null
+++ b/src/libmpg123/dct64_i486.c
@@ -0,0 +1,342 @@
+/*
+ dct64_i486.c: DCT64, a plain C variant for i486
+
+ copyright 1998-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Fabrice Bellard
+*/
+
+/* Discrete Cosine Tansform (DCT) for subband synthesis.
+ *
+ * This code is optimized for 80486. It should be compiled with gcc
+ * 2.7.2 or higher.
+ *
+ * Note: This code does not give the necessary accuracy. Moreover, no
+ * overflow test are done.
+ *
+ * (c) 1998 Fabrice Bellard.
+ */
+
+#include "mpg123lib_intern.h"
+
+#define COS_0_0 16403
+#define COS_0_1 16563
+#define COS_0_2 16890
+#define COS_0_3 17401
+#define COS_0_4 18124
+#define COS_0_5 19101
+#define COS_0_6 20398
+#define COS_0_7 22112
+#define COS_0_8 24396
+#define COS_0_9 27503
+#define COS_0_10 31869
+#define COS_0_11 38320
+#define COS_0_12 48633
+#define COS_0_13 67429
+#define COS_0_14 111660
+#define COS_0_15 333906
+#define COS_1_0 16463
+#define COS_1_1 17121
+#define COS_1_2 18577
+#define COS_1_3 21195
+#define COS_1_4 25826
+#define COS_1_5 34756
+#define COS_1_6 56441
+#define COS_1_7 167154
+#define COS_2_0 16704
+#define COS_2_1 19704
+#define COS_2_2 29490
+#define COS_2_3 83981
+#define COS_3_0 17733
+#define COS_3_1 42813
+#define COS_4_0 23170
+
+#define SETOUT(out,n,expr) out[FIR_BUFFER_SIZE*(n)]=(expr)
+#define MULL(a,b) (((long long)(a)*(long long)(b)) >> 15)
+#define MUL(a,b) \
+(\
+ ((!(b & 0x3F)) ? (((a)*(b >> 6)) >> 9) :\
+ ((!(b & 0x1F)) ? (((a)*(b >> 5)) >> 10) :\
+ ((!(b & 0x0F)) ? (((a)*(b >> 4)) >> 11) :\
+ ((!(b & 0x07)) ? (((a)*(b >> 3)) >> 12) :\
+ ((!(b & 0x03)) ? (((a)*(b >> 2)) >> 13) :\
+ ((!(b & 0x01)) ? (((a)*(b >> 1)) >> 14) :\
+ (((a)*(b )) >> 15))))))))
+
+
+void dct64_1_486(int *out0,int *out1,int *b1,int *b2)
+{
+ b1[0x00] = b2[0x00] + b2[0x1F];
+ b1[0x1F] = MUL((b2[0x00] - b2[0x1F]),COS_0_0);
+
+ b1[0x01] = b2[0x01] + b2[0x1E];
+ b1[0x1E] = MUL((b2[0x01] - b2[0x1E]),COS_0_1);
+
+ b1[0x02] = b2[0x02] + b2[0x1D];
+ b1[0x1D] = MUL((b2[0x02] - b2[0x1D]),COS_0_2);
+
+ b1[0x03] = b2[0x03] + b2[0x1C];
+ b1[0x1C] = MUL((b2[0x03] - b2[0x1C]),COS_0_3);
+
+ b1[0x04] = b2[0x04] + b2[0x1B];
+ b1[0x1B] = MUL((b2[0x04] - b2[0x1B]),COS_0_4);
+
+ b1[0x05] = b2[0x05] + b2[0x1A];
+ b1[0x1A] = MUL((b2[0x05] - b2[0x1A]),COS_0_5);
+
+ b1[0x06] = b2[0x06] + b2[0x19];
+ b1[0x19] = MUL((b2[0x06] - b2[0x19]),COS_0_6);
+
+ b1[0x07] = b2[0x07] + b2[0x18];
+ b1[0x18] = MUL((b2[0x07] - b2[0x18]),COS_0_7);
+
+ b1[0x08] = b2[0x08] + b2[0x17];
+ b1[0x17] = MUL((b2[0x08] - b2[0x17]),COS_0_8);
+
+ b1[0x09] = b2[0x09] + b2[0x16];
+ b1[0x16] = MUL((b2[0x09] - b2[0x16]),COS_0_9);
+
+ b1[0x0A] = b2[0x0A] + b2[0x15];
+ b1[0x15] = MUL((b2[0x0A] - b2[0x15]),COS_0_10);
+
+ b1[0x0B] = b2[0x0B] + b2[0x14];
+ b1[0x14] = MUL((b2[0x0B] - b2[0x14]),COS_0_11);
+
+ b1[0x0C] = b2[0x0C] + b2[0x13];
+ b1[0x13] = MUL((b2[0x0C] - b2[0x13]),COS_0_12);
+
+ b1[0x0D] = b2[0x0D] + b2[0x12];
+ b1[0x12] = MULL((b2[0x0D] - b2[0x12]),COS_0_13);
+
+ b1[0x0E] = b2[0x0E] + b2[0x11];
+ b1[0x11] = MULL((b2[0x0E] - b2[0x11]),COS_0_14);
+
+ b1[0x0F] = b2[0x0F] + b2[0x10];
+ b1[0x10] = MULL((b2[0x0F] - b2[0x10]),COS_0_15);
+
+
+ b2[0x00] = b1[0x00] + b1[0x0F];
+ b2[0x0F] = MUL((b1[0x00] - b1[0x0F]),COS_1_0);
+ b2[0x01] = b1[0x01] + b1[0x0E];
+ b2[0x0E] = MUL((b1[0x01] - b1[0x0E]),COS_1_1);
+ b2[0x02] = b1[0x02] + b1[0x0D];
+ b2[0x0D] = MUL((b1[0x02] - b1[0x0D]),COS_1_2);
+ b2[0x03] = b1[0x03] + b1[0x0C];
+ b2[0x0C] = MUL((b1[0x03] - b1[0x0C]),COS_1_3);
+ b2[0x04] = b1[0x04] + b1[0x0B];
+ b2[0x0B] = MUL((b1[0x04] - b1[0x0B]),COS_1_4);
+ b2[0x05] = b1[0x05] + b1[0x0A];
+ b2[0x0A] = MUL((b1[0x05] - b1[0x0A]),COS_1_5);
+ b2[0x06] = b1[0x06] + b1[0x09];
+ b2[0x09] = MUL((b1[0x06] - b1[0x09]),COS_1_6);
+ b2[0x07] = b1[0x07] + b1[0x08];
+ b2[0x08] = MULL((b1[0x07] - b1[0x08]),COS_1_7);
+
+ b2[0x10] = b1[0x10] + b1[0x1F];
+ b2[0x1F] = MUL((b1[0x1F] - b1[0x10]),COS_1_0);
+ b2[0x11] = b1[0x11] + b1[0x1E];
+ b2[0x1E] = MUL((b1[0x1E] - b1[0x11]),COS_1_1);
+ b2[0x12] = b1[0x12] + b1[0x1D];
+ b2[0x1D] = MUL((b1[0x1D] - b1[0x12]),COS_1_2);
+ b2[0x13] = b1[0x13] + b1[0x1C];
+ b2[0x1C] = MUL((b1[0x1C] - b1[0x13]),COS_1_3);
+ b2[0x14] = b1[0x14] + b1[0x1B];
+ b2[0x1B] = MUL((b1[0x1B] - b1[0x14]),COS_1_4);
+ b2[0x15] = b1[0x15] + b1[0x1A];
+ b2[0x1A] = MUL((b1[0x1A] - b1[0x15]),COS_1_5);
+ b2[0x16] = b1[0x16] + b1[0x19];
+ b2[0x19] = MUL((b1[0x19] - b1[0x16]),COS_1_6);
+ b2[0x17] = b1[0x17] + b1[0x18];
+ b2[0x18] = MULL((b1[0x18] - b1[0x17]),COS_1_7);
+
+
+ b1[0x00] = b2[0x00] + b2[0x07];
+ b1[0x07] = MUL((b2[0x00] - b2[0x07]),COS_2_0);
+ b1[0x01] = b2[0x01] + b2[0x06];
+ b1[0x06] = MUL((b2[0x01] - b2[0x06]),COS_2_1);
+ b1[0x02] = b2[0x02] + b2[0x05];
+ b1[0x05] = MUL((b2[0x02] - b2[0x05]),COS_2_2);
+ b1[0x03] = b2[0x03] + b2[0x04];
+ b1[0x04] = MULL((b2[0x03] - b2[0x04]),COS_2_3);
+
+ b1[0x08] = b2[0x08] + b2[0x0F];
+ b1[0x0F] = MUL((b2[0x0F] - b2[0x08]),COS_2_0);
+ b1[0x09] = b2[0x09] + b2[0x0E];
+ b1[0x0E] = MUL((b2[0x0E] - b2[0x09]),COS_2_1);
+ b1[0x0A] = b2[0x0A] + b2[0x0D];
+ b1[0x0D] = MUL((b2[0x0D] - b2[0x0A]),COS_2_2);
+ b1[0x0B] = b2[0x0B] + b2[0x0C];
+ b1[0x0C] = MULL((b2[0x0C] - b2[0x0B]),COS_2_3);
+
+ b1[0x10] = b2[0x10] + b2[0x17];
+ b1[0x17] = MUL((b2[0x10] - b2[0x17]),COS_2_0);
+ b1[0x11] = b2[0x11] + b2[0x16];
+ b1[0x16] = MUL((b2[0x11] - b2[0x16]),COS_2_1);
+ b1[0x12] = b2[0x12] + b2[0x15];
+ b1[0x15] = MUL((b2[0x12] - b2[0x15]),COS_2_2);
+ b1[0x13] = b2[0x13] + b2[0x14];
+ b1[0x14] = MULL((b2[0x13] - b2[0x14]),COS_2_3);
+
+ b1[0x18] = b2[0x18] + b2[0x1F];
+ b1[0x1F] = MUL((b2[0x1F] - b2[0x18]),COS_2_0);
+ b1[0x19] = b2[0x19] + b2[0x1E];
+ b1[0x1E] = MUL((b2[0x1E] - b2[0x19]),COS_2_1);
+ b1[0x1A] = b2[0x1A] + b2[0x1D];
+ b1[0x1D] = MUL((b2[0x1D] - b2[0x1A]),COS_2_2);
+ b1[0x1B] = b2[0x1B] + b2[0x1C];
+ b1[0x1C] = MULL((b2[0x1C] - b2[0x1B]),COS_2_3);
+
+
+ b2[0x00] = b1[0x00] + b1[0x03];
+ b2[0x03] = MUL((b1[0x00] - b1[0x03]),COS_3_0);
+ b2[0x01] = b1[0x01] + b1[0x02];
+ b2[0x02] = MUL((b1[0x01] - b1[0x02]),COS_3_1);
+
+ b2[0x04] = b1[0x04] + b1[0x07];
+ b2[0x07] = MUL((b1[0x07] - b1[0x04]),COS_3_0);
+ b2[0x05] = b1[0x05] + b1[0x06];
+ b2[0x06] = MUL((b1[0x06] - b1[0x05]),COS_3_1);
+
+ b2[0x08] = b1[0x08] + b1[0x0B];
+ b2[0x0B] = MUL((b1[0x08] - b1[0x0B]),COS_3_0);
+ b2[0x09] = b1[0x09] + b1[0x0A];
+ b2[0x0A] = MUL((b1[0x09] - b1[0x0A]),COS_3_1);
+
+ b2[0x0C] = b1[0x0C] + b1[0x0F];
+ b2[0x0F] = MUL((b1[0x0F] - b1[0x0C]),COS_3_0);
+ b2[0x0D] = b1[0x0D] + b1[0x0E];
+ b2[0x0E] = MUL((b1[0x0E] - b1[0x0D]),COS_3_1);
+
+ b2[0x10] = b1[0x10] + b1[0x13];
+ b2[0x13] = MUL((b1[0x10] - b1[0x13]),COS_3_0);
+ b2[0x11] = b1[0x11] + b1[0x12];
+ b2[0x12] = MUL((b1[0x11] - b1[0x12]),COS_3_1);
+
+ b2[0x14] = b1[0x14] + b1[0x17];
+ b2[0x17] = MUL((b1[0x17] - b1[0x14]),COS_3_0);
+ b2[0x15] = b1[0x15] + b1[0x16];
+ b2[0x16] = MUL((b1[0x16] - b1[0x15]),COS_3_1);
+
+ b2[0x18] = b1[0x18] + b1[0x1B];
+ b2[0x1B] = MUL((b1[0x18] - b1[0x1B]),COS_3_0);
+ b2[0x19] = b1[0x19] + b1[0x1A];
+ b2[0x1A] = MUL((b1[0x19] - b1[0x1A]),COS_3_1);
+
+ b2[0x1C] = b1[0x1C] + b1[0x1F];
+ b2[0x1F] = MUL((b1[0x1F] - b1[0x1C]),COS_3_0);
+ b2[0x1D] = b1[0x1D] + b1[0x1E];
+ b2[0x1E] = MUL((b1[0x1E] - b1[0x1D]),COS_3_1);
+
+ {
+ int i;
+ for(i=0;i<32;i+=4) {
+ b1[i+0x00] = b2[i+0x00] + b2[i+0x01];
+ b1[i+0x01] = MUL((b2[i+0x00] - b2[i+0x01]),COS_4_0);
+ b1[i+0x02] = b2[i+0x02] + b2[i+0x03];
+ b1[i+0x03] = MUL((b2[i+0x03] - b2[i+0x02]),COS_4_0);
+ }
+ }
+
+ b1[0x02] += b1[0x03];
+ b1[0x06] += b1[0x07];
+ b1[0x04] += b1[0x06];
+ b1[0x06] += b1[0x05];
+ b1[0x05] += b1[0x07];
+
+ b1[0x0A] += b1[0x0B];
+ b1[0x0E] += b1[0x0F];
+ b1[0x0C] += b1[0x0E];
+ b1[0x0E] += b1[0x0D];
+ b1[0x0D] += b1[0x0F];
+
+ b1[0x12] += b1[0x13];
+ b1[0x16] += b1[0x17];
+ b1[0x14] += b1[0x16];
+ b1[0x16] += b1[0x15];
+ b1[0x15] += b1[0x17];
+
+ b1[0x1A] += b1[0x1B];
+ b1[0x1E] += b1[0x1F];
+ b1[0x1C] += b1[0x1E];
+ b1[0x1E] += b1[0x1D];
+ b1[0x1D] += b1[0x1F];
+
+ SETOUT(out0,16,b1[0x00]);
+ SETOUT(out0,12,b1[0x04]);
+ SETOUT(out0, 8,b1[0x02]);
+ SETOUT(out0, 4,b1[0x06]);
+ SETOUT(out0, 0,b1[0x01]);
+ SETOUT(out1, 0,b1[0x01]);
+ SETOUT(out1, 4,b1[0x05]);
+ SETOUT(out1, 8,b1[0x03]);
+ SETOUT(out1,12,b1[0x07]);
+
+ b1[0x08] += b1[0x0C];
+ SETOUT(out0,14,b1[0x08]);
+ b1[0x0C] += b1[0x0a];
+ SETOUT(out0,10,b1[0x0C]);
+ b1[0x0A] += b1[0x0E];
+ SETOUT(out0, 6,b1[0x0A]);
+ b1[0x0E] += b1[0x09];
+ SETOUT(out0, 2,b1[0x0E]);
+ b1[0x09] += b1[0x0D];
+ SETOUT(out1, 2,b1[0x09]);
+ b1[0x0D] += b1[0x0B];
+ SETOUT(out1, 6,b1[0x0D]);
+ b1[0x0B] += b1[0x0F];
+ SETOUT(out1,10,b1[0x0B]);
+ SETOUT(out1,14,b1[0x0F]);
+
+ b1[0x18] += b1[0x1C];
+ SETOUT(out0,15,b1[0x10] + b1[0x18]);
+ SETOUT(out0,13,b1[0x18] + b1[0x14]);
+ b1[0x1C] += b1[0x1a];
+ SETOUT(out0,11,b1[0x14] + b1[0x1C]);
+ SETOUT(out0, 9,b1[0x1C] + b1[0x12]);
+ b1[0x1A] += b1[0x1E];
+ SETOUT(out0, 7,b1[0x12] + b1[0x1A]);
+ SETOUT(out0, 5,b1[0x1A] + b1[0x16]);
+ b1[0x1E] += b1[0x19];
+ SETOUT(out0, 3,b1[0x16] + b1[0x1E]);
+ SETOUT(out0, 1,b1[0x1E] + b1[0x11]);
+ b1[0x19] += b1[0x1D];
+ SETOUT(out1, 1,b1[0x11] + b1[0x19]);
+ SETOUT(out1, 3,b1[0x19] + b1[0x15]);
+ b1[0x1D] += b1[0x1B];
+ SETOUT(out1, 5,b1[0x15] + b1[0x1D]);
+ SETOUT(out1, 7,b1[0x1D] + b1[0x13]);
+ b1[0x1B] += b1[0x1F];
+ SETOUT(out1, 9,b1[0x13] + b1[0x1B]);
+ SETOUT(out1,11,b1[0x1B] + b1[0x17]);
+ SETOUT(out1,13,b1[0x17] + b1[0x1F]);
+ SETOUT(out1,15,b1[0x1F]);
+}
+
+
+/*
+ * the call via dct64 is a trick to force GCC to use
+ * (new) registers for the b1,b2 pointer to the bufs[xx] field
+ */
+void dct64_i486(int *a,int *b,real *samples)
+{
+ int bufs[64];
+ int i;
+
+#ifdef REAL_IS_FIXED
+#define TOINT(a) ((a) * 32768 / (int)REAL_FACTOR)
+
+ for(i=0;i<32;i++) {
+ bufs[i]=TOINT(samples[i]);
+ }
+#else
+ int *p = bufs;
+ register double const scale = ((65536.0 * 32) + 1) * 65536.0;
+
+ for(i=0;i<32;i++) {
+ *((double *) (p++)) = scale + *samples++; /* beware on bufs overrun: 8B store from x87 */
+ }
+#endif
+
+ dct64_1_486(a,b,bufs+32,bufs);
+}
+
diff --git a/src/libmpg123/dct64_mmx.S b/src/libmpg123/dct64_mmx.S
new file mode 100644
index 0000000..93a7bbc
--- /dev/null
+++ b/src/libmpg123/dct64_mmx.S
@@ -0,0 +1,815 @@
+/*
+ dct64_mmx.s: MMX optimized DCT64
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by the mysterious higway (apparently)
+*/
+
+#include "mangle.h"
+
+.text
+
+ ALIGN32
+.globl ASM_NAME(dct64_mmx)
+ASM_NAME(dct64_mmx):
+
+ xorl %ecx,%ecx
+.globl ASM_NAME(dct64_MMX)
+ASM_NAME(dct64_MMX):
+ pushl %ebx
+ pushl %esi
+ pushl %edi
+ subl $256,%esp
+ movl 280(%esp),%eax
+ flds (%eax)
+ leal 128(%esp),%edx
+ fadds 124(%eax)
+ movl 272(%esp),%esi
+ fstps (%edx)
+ movl 276(%esp),%edi
+ flds 4(%eax)
+ movl ASM_VALUE(costab_mmxsse),%ebx
+ fadds 120(%eax)
+ orl %ecx,%ecx
+ fstps 4(%edx)
+ flds (%eax)
+ movl %esp,%ecx
+ fsubs 124(%eax)
+ fmuls (%ebx)
+ fstps 124(%edx)
+ flds 4(%eax)
+ fsubs 120(%eax)
+ fmuls 4(%ebx)
+ fstps 120(%edx)
+ flds 8(%eax)
+ fadds 116(%eax)
+ fstps 8(%edx)
+ flds 12(%eax)
+ fadds 112(%eax)
+ fstps 12(%edx)
+ flds 8(%eax)
+ fsubs 116(%eax)
+ fmuls 8(%ebx)
+ fstps 116(%edx)
+ flds 12(%eax)
+ fsubs 112(%eax)
+ fmuls 12(%ebx)
+ fstps 112(%edx)
+ flds 16(%eax)
+ fadds 108(%eax)
+ fstps 16(%edx)
+ flds 20(%eax)
+ fadds 104(%eax)
+ fstps 20(%edx)
+ flds 16(%eax)
+ fsubs 108(%eax)
+ fmuls 16(%ebx)
+ fstps 108(%edx)
+ flds 20(%eax)
+ fsubs 104(%eax)
+ fmuls 20(%ebx)
+ fstps 104(%edx)
+ flds 24(%eax)
+ fadds 100(%eax)
+ fstps 24(%edx)
+ flds 28(%eax)
+ fadds 96(%eax)
+ fstps 28(%edx)
+ flds 24(%eax)
+ fsubs 100(%eax)
+ fmuls 24(%ebx)
+ fstps 100(%edx)
+ flds 28(%eax)
+ fsubs 96(%eax)
+ fmuls 28(%ebx)
+ fstps 96(%edx)
+ flds 32(%eax)
+ fadds 92(%eax)
+ fstps 32(%edx)
+ flds 36(%eax)
+ fadds 88(%eax)
+ fstps 36(%edx)
+ flds 32(%eax)
+ fsubs 92(%eax)
+ fmuls 32(%ebx)
+ fstps 92(%edx)
+ flds 36(%eax)
+ fsubs 88(%eax)
+ fmuls 36(%ebx)
+ fstps 88(%edx)
+ flds 40(%eax)
+ fadds 84(%eax)
+ fstps 40(%edx)
+ flds 44(%eax)
+ fadds 80(%eax)
+ fstps 44(%edx)
+ flds 40(%eax)
+ fsubs 84(%eax)
+ fmuls 40(%ebx)
+ fstps 84(%edx)
+ flds 44(%eax)
+ fsubs 80(%eax)
+ fmuls 44(%ebx)
+ fstps 80(%edx)
+ flds 48(%eax)
+ fadds 76(%eax)
+ fstps 48(%edx)
+ flds 52(%eax)
+ fadds 72(%eax)
+ fstps 52(%edx)
+ flds 48(%eax)
+ fsubs 76(%eax)
+ fmuls 48(%ebx)
+ fstps 76(%edx)
+ flds 52(%eax)
+ fsubs 72(%eax)
+ fmuls 52(%ebx)
+ fstps 72(%edx)
+ flds 56(%eax)
+ fadds 68(%eax)
+ fstps 56(%edx)
+ flds 60(%eax)
+ fadds 64(%eax)
+ fstps 60(%edx)
+ flds 56(%eax)
+ fsubs 68(%eax)
+ fmuls 56(%ebx)
+ fstps 68(%edx)
+ flds 60(%eax)
+ fsubs 64(%eax)
+ fmuls 60(%ebx)
+ fstps 64(%edx)
+
+ flds (%edx)
+ fadds 60(%edx)
+ fstps (%ecx)
+ flds 4(%edx)
+ fadds 56(%edx)
+ fstps 4(%ecx)
+ flds (%edx)
+ fsubs 60(%edx)
+ fmuls 64(%ebx)
+ fstps 60(%ecx)
+ flds 4(%edx)
+ fsubs 56(%edx)
+ fmuls 68(%ebx)
+ fstps 56(%ecx)
+ flds 8(%edx)
+ fadds 52(%edx)
+ fstps 8(%ecx)
+ flds 12(%edx)
+ fadds 48(%edx)
+ fstps 12(%ecx)
+ flds 8(%edx)
+ fsubs 52(%edx)
+ fmuls 72(%ebx)
+ fstps 52(%ecx)
+ flds 12(%edx)
+ fsubs 48(%edx)
+ fmuls 76(%ebx)
+ fstps 48(%ecx)
+ flds 16(%edx)
+ fadds 44(%edx)
+ fstps 16(%ecx)
+ flds 20(%edx)
+ fadds 40(%edx)
+ fstps 20(%ecx)
+ flds 16(%edx)
+ fsubs 44(%edx)
+ fmuls 80(%ebx)
+ fstps 44(%ecx)
+ flds 20(%edx)
+ fsubs 40(%edx)
+ fmuls 84(%ebx)
+ fstps 40(%ecx)
+ flds 24(%edx)
+ fadds 36(%edx)
+ fstps 24(%ecx)
+ flds 28(%edx)
+ fadds 32(%edx)
+ fstps 28(%ecx)
+ flds 24(%edx)
+ fsubs 36(%edx)
+ fmuls 88(%ebx)
+ fstps 36(%ecx)
+ flds 28(%edx)
+ fsubs 32(%edx)
+ fmuls 92(%ebx)
+ fstps 32(%ecx)
+
+ flds 64(%edx)
+ fadds 124(%edx)
+ fstps 64(%ecx)
+ flds 68(%edx)
+ fadds 120(%edx)
+ fstps 68(%ecx)
+ flds 124(%edx)
+ fsubs 64(%edx)
+ fmuls 64(%ebx)
+ fstps 124(%ecx)
+ flds 120(%edx)
+ fsubs 68(%edx)
+ fmuls 68(%ebx)
+ fstps 120(%ecx)
+ flds 72(%edx)
+ fadds 116(%edx)
+ fstps 72(%ecx)
+ flds 76(%edx)
+ fadds 112(%edx)
+ fstps 76(%ecx)
+ flds 116(%edx)
+ fsubs 72(%edx)
+ fmuls 72(%ebx)
+ fstps 116(%ecx)
+ flds 112(%edx)
+ fsubs 76(%edx)
+ fmuls 76(%ebx)
+ fstps 112(%ecx)
+ flds 80(%edx)
+ fadds 108(%edx)
+ fstps 80(%ecx)
+ flds 84(%edx)
+ fadds 104(%edx)
+ fstps 84(%ecx)
+ flds 108(%edx)
+ fsubs 80(%edx)
+ fmuls 80(%ebx)
+ fstps 108(%ecx)
+ flds 104(%edx)
+ fsubs 84(%edx)
+ fmuls 84(%ebx)
+ fstps 104(%ecx)
+ flds 88(%edx)
+ fadds 100(%edx)
+ fstps 88(%ecx)
+ flds 92(%edx)
+ fadds 96(%edx)
+ fstps 92(%ecx)
+ flds 100(%edx)
+ fsubs 88(%edx)
+ fmuls 88(%ebx)
+ fstps 100(%ecx)
+ flds 96(%edx)
+ fsubs 92(%edx)
+ fmuls 92(%ebx)
+ fstps 96(%ecx)
+
+ flds (%ecx)
+ fadds 28(%ecx)
+ fstps (%edx)
+ flds (%ecx)
+ fsubs 28(%ecx)
+ fmuls 96(%ebx)
+ fstps 28(%edx)
+ flds 4(%ecx)
+ fadds 24(%ecx)
+ fstps 4(%edx)
+ flds 4(%ecx)
+ fsubs 24(%ecx)
+ fmuls 100(%ebx)
+ fstps 24(%edx)
+ flds 8(%ecx)
+ fadds 20(%ecx)
+ fstps 8(%edx)
+ flds 8(%ecx)
+ fsubs 20(%ecx)
+ fmuls 104(%ebx)
+ fstps 20(%edx)
+ flds 12(%ecx)
+ fadds 16(%ecx)
+ fstps 12(%edx)
+ flds 12(%ecx)
+ fsubs 16(%ecx)
+ fmuls 108(%ebx)
+ fstps 16(%edx)
+ flds 32(%ecx)
+ fadds 60(%ecx)
+ fstps 32(%edx)
+ flds 60(%ecx)
+ fsubs 32(%ecx)
+ fmuls 96(%ebx)
+ fstps 60(%edx)
+ flds 36(%ecx)
+ fadds 56(%ecx)
+ fstps 36(%edx)
+ flds 56(%ecx)
+ fsubs 36(%ecx)
+ fmuls 100(%ebx)
+ fstps 56(%edx)
+ flds 40(%ecx)
+ fadds 52(%ecx)
+ fstps 40(%edx)
+ flds 52(%ecx)
+ fsubs 40(%ecx)
+ fmuls 104(%ebx)
+ fstps 52(%edx)
+ flds 44(%ecx)
+ fadds 48(%ecx)
+ fstps 44(%edx)
+ flds 48(%ecx)
+ fsubs 44(%ecx)
+ fmuls 108(%ebx)
+ fstps 48(%edx)
+ flds 64(%ecx)
+ fadds 92(%ecx)
+ fstps 64(%edx)
+ flds 64(%ecx)
+ fsubs 92(%ecx)
+ fmuls 96(%ebx)
+ fstps 92(%edx)
+ flds 68(%ecx)
+ fadds 88(%ecx)
+ fstps 68(%edx)
+ flds 68(%ecx)
+ fsubs 88(%ecx)
+ fmuls 100(%ebx)
+ fstps 88(%edx)
+ flds 72(%ecx)
+ fadds 84(%ecx)
+ fstps 72(%edx)
+ flds 72(%ecx)
+ fsubs 84(%ecx)
+ fmuls 104(%ebx)
+ fstps 84(%edx)
+ flds 76(%ecx)
+ fadds 80(%ecx)
+ fstps 76(%edx)
+ flds 76(%ecx)
+ fsubs 80(%ecx)
+ fmuls 108(%ebx)
+ fstps 80(%edx)
+ flds 96(%ecx)
+ fadds 124(%ecx)
+ fstps 96(%edx)
+ flds 124(%ecx)
+ fsubs 96(%ecx)
+ fmuls 96(%ebx)
+ fstps 124(%edx)
+ flds 100(%ecx)
+ fadds 120(%ecx)
+ fstps 100(%edx)
+ flds 120(%ecx)
+ fsubs 100(%ecx)
+ fmuls 100(%ebx)
+ fstps 120(%edx)
+ flds 104(%ecx)
+ fadds 116(%ecx)
+ fstps 104(%edx)
+ flds 116(%ecx)
+ fsubs 104(%ecx)
+ fmuls 104(%ebx)
+ fstps 116(%edx)
+ flds 108(%ecx)
+ fadds 112(%ecx)
+ fstps 108(%edx)
+ flds 112(%ecx)
+ fsubs 108(%ecx)
+ fmuls 108(%ebx)
+ fstps 112(%edx)
+ flds (%edx)
+ fadds 12(%edx)
+ fstps (%ecx)
+ flds (%edx)
+ fsubs 12(%edx)
+ fmuls 112(%ebx)
+ fstps 12(%ecx)
+ flds 4(%edx)
+ fadds 8(%edx)
+ fstps 4(%ecx)
+ flds 4(%edx)
+ fsubs 8(%edx)
+ fmuls 116(%ebx)
+ fstps 8(%ecx)
+ flds 16(%edx)
+ fadds 28(%edx)
+ fstps 16(%ecx)
+ flds 28(%edx)
+ fsubs 16(%edx)
+ fmuls 112(%ebx)
+ fstps 28(%ecx)
+ flds 20(%edx)
+ fadds 24(%edx)
+ fstps 20(%ecx)
+ flds 24(%edx)
+ fsubs 20(%edx)
+ fmuls 116(%ebx)
+ fstps 24(%ecx)
+ flds 32(%edx)
+ fadds 44(%edx)
+ fstps 32(%ecx)
+ flds 32(%edx)
+ fsubs 44(%edx)
+ fmuls 112(%ebx)
+ fstps 44(%ecx)
+ flds 36(%edx)
+ fadds 40(%edx)
+ fstps 36(%ecx)
+ flds 36(%edx)
+ fsubs 40(%edx)
+ fmuls 116(%ebx)
+ fstps 40(%ecx)
+ flds 48(%edx)
+ fadds 60(%edx)
+ fstps 48(%ecx)
+ flds 60(%edx)
+ fsubs 48(%edx)
+ fmuls 112(%ebx)
+ fstps 60(%ecx)
+ flds 52(%edx)
+ fadds 56(%edx)
+ fstps 52(%ecx)
+ flds 56(%edx)
+ fsubs 52(%edx)
+ fmuls 116(%ebx)
+ fstps 56(%ecx)
+ flds 64(%edx)
+ fadds 76(%edx)
+ fstps 64(%ecx)
+ flds 64(%edx)
+ fsubs 76(%edx)
+ fmuls 112(%ebx)
+ fstps 76(%ecx)
+ flds 68(%edx)
+ fadds 72(%edx)
+ fstps 68(%ecx)
+ flds 68(%edx)
+ fsubs 72(%edx)
+ fmuls 116(%ebx)
+ fstps 72(%ecx)
+ flds 80(%edx)
+ fadds 92(%edx)
+ fstps 80(%ecx)
+ flds 92(%edx)
+ fsubs 80(%edx)
+ fmuls 112(%ebx)
+ fstps 92(%ecx)
+ flds 84(%edx)
+ fadds 88(%edx)
+ fstps 84(%ecx)
+ flds 88(%edx)
+ fsubs 84(%edx)
+ fmuls 116(%ebx)
+ fstps 88(%ecx)
+ flds 96(%edx)
+ fadds 108(%edx)
+ fstps 96(%ecx)
+ flds 96(%edx)
+ fsubs 108(%edx)
+ fmuls 112(%ebx)
+ fstps 108(%ecx)
+ flds 100(%edx)
+ fadds 104(%edx)
+ fstps 100(%ecx)
+ flds 100(%edx)
+ fsubs 104(%edx)
+ fmuls 116(%ebx)
+ fstps 104(%ecx)
+ flds 112(%edx)
+ fadds 124(%edx)
+ fstps 112(%ecx)
+ flds 124(%edx)
+ fsubs 112(%edx)
+ fmuls 112(%ebx)
+ fstps 124(%ecx)
+ flds 116(%edx)
+ fadds 120(%edx)
+ fstps 116(%ecx)
+ flds 120(%edx)
+ fsubs 116(%edx)
+ fmuls 116(%ebx)
+ fstps 120(%ecx)
+
+ flds 32(%ecx)
+ fadds 36(%ecx)
+ fstps 32(%edx)
+ flds 32(%ecx)
+ fsubs 36(%ecx)
+ fmuls 120(%ebx)
+ fstps 36(%edx)
+ flds 44(%ecx)
+ fsubs 40(%ecx)
+ fmuls 120(%ebx)
+ fsts 44(%edx)
+ fadds 40(%ecx)
+ fadds 44(%ecx)
+ fstps 40(%edx)
+ flds 48(%ecx)
+ fsubs 52(%ecx)
+ fmuls 120(%ebx)
+ flds 60(%ecx)
+ fsubs 56(%ecx)
+ fmuls 120(%ebx)
+ fld %st(0)
+ fadds 56(%ecx)
+ fadds 60(%ecx)
+ fld %st(0)
+ fadds 48(%ecx)
+ fadds 52(%ecx)
+ fstps 48(%edx)
+ fadd %st(2)
+ fstps 56(%edx)
+ fsts 60(%edx)
+ faddp %st(1)
+ fstps 52(%edx)
+ flds 64(%ecx)
+ fadds 68(%ecx)
+ fstps 64(%edx)
+ flds 64(%ecx)
+ fsubs 68(%ecx)
+ fmuls 120(%ebx)
+ fstps 68(%edx)
+ flds 76(%ecx)
+ fsubs 72(%ecx)
+ fmuls 120(%ebx)
+ fsts 76(%edx)
+ fadds 72(%ecx)
+ fadds 76(%ecx)
+ fstps 72(%edx)
+ flds 92(%ecx)
+ fsubs 88(%ecx)
+ fmuls 120(%ebx)
+ fsts 92(%edx)
+ fadds 92(%ecx)
+ fadds 88(%ecx)
+ fld %st(0)
+ fadds 80(%ecx)
+ fadds 84(%ecx)
+ fstps 80(%edx)
+ flds 80(%ecx)
+ fsubs 84(%ecx)
+ fmuls 120(%ebx)
+ fadd %st(0), %st(1)
+ fadds 92(%edx)
+ fstps 84(%edx)
+ fstps 88(%edx)
+ flds 96(%ecx)
+ fadds 100(%ecx)
+ fstps 96(%edx)
+ flds 96(%ecx)
+ fsubs 100(%ecx)
+ fmuls 120(%ebx)
+ fstps 100(%edx)
+ flds 108(%ecx)
+ fsubs 104(%ecx)
+ fmuls 120(%ebx)
+ fsts 108(%edx)
+ fadds 104(%ecx)
+ fadds 108(%ecx)
+ fstps 104(%edx)
+ flds 124(%ecx)
+ fsubs 120(%ecx)
+ fmuls 120(%ebx)
+ fsts 124(%edx)
+ fadds 120(%ecx)
+ fadds 124(%ecx)
+ fld %st(0)
+ fadds 112(%ecx)
+ fadds 116(%ecx)
+ fstps 112(%edx)
+ flds 112(%ecx)
+ fsubs 116(%ecx)
+ fmuls 120(%ebx)
+ fadd %st(0),%st(1)
+ fadds 124(%edx)
+ fstps 116(%edx)
+ fstps 120(%edx)
+ jnz .L01
+
+ flds (%ecx)
+ fadds 4(%ecx)
+ fstps 1024(%esi)
+ flds (%ecx)
+ fsubs 4(%ecx)
+ fmuls 120(%ebx)
+ fsts (%esi)
+ fstps (%edi)
+ flds 12(%ecx)
+ fsubs 8(%ecx)
+ fmuls 120(%ebx)
+ fsts 512(%edi)
+ fadds 12(%ecx)
+ fadds 8(%ecx)
+ fstps 512(%esi)
+ flds 16(%ecx)
+ fsubs 20(%ecx)
+ fmuls 120(%ebx)
+ flds 28(%ecx)
+ fsubs 24(%ecx)
+ fmuls 120(%ebx)
+ fsts 768(%edi)
+ fld %st(0)
+ fadds 24(%ecx)
+ fadds 28(%ecx)
+ fld %st(0)
+ fadds 16(%ecx)
+ fadds 20(%ecx)
+ fstps 768(%esi)
+ fadd %st(2)
+ fstps 256(%esi)
+ faddp %st(1)
+ fstps 256(%edi)
+
+ flds 32(%edx)
+ fadds 48(%edx)
+ fstps 896(%esi)
+ flds 48(%edx)
+ fadds 40(%edx)
+ fstps 640(%esi)
+ flds 40(%edx)
+ fadds 56(%edx)
+ fstps 384(%esi)
+ flds 56(%edx)
+ fadds 36(%edx)
+ fstps 128(%esi)
+ flds 36(%edx)
+ fadds 52(%edx)
+ fstps 128(%edi)
+ flds 52(%edx)
+ fadds 44(%edx)
+ fstps 384(%edi)
+ flds 60(%edx)
+ fsts 896(%edi)
+ fadds 44(%edx)
+ fstps 640(%edi)
+ flds 96(%edx)
+ fadds 112(%edx)
+ fld %st(0)
+ fadds 64(%edx)
+ fstps 960(%esi)
+ fadds 80(%edx)
+ fstps 832(%esi)
+ flds 112(%edx)
+ fadds 104(%edx)
+ fld %st(0)
+ fadds 80(%edx)
+ fstps 704(%esi)
+ fadds 72(%edx)
+ fstps 576(%esi)
+ flds 104(%edx)
+ fadds 120(%edx)
+ fld %st(0)
+ fadds 72(%edx)
+ fstps 448(%esi)
+ fadds 88(%edx)
+ fstps 320(%esi)
+ flds 120(%edx)
+ fadds 100(%edx)
+ fld %st(0)
+ fadds 88(%edx)
+ fstps 192(%esi)
+ fadds 68(%edx)
+ fstps 64(%esi)
+ flds 100(%edx)
+ fadds 116(%edx)
+ fld %st(0)
+ fadds 68(%edx)
+ fstps 64(%edi)
+ fadds 84(%edx)
+ fstps 192(%edi)
+ flds 116(%edx)
+ fadds 108(%edx)
+ fld %st(0)
+ fadds 84(%edx)
+ fstps 320(%edi)
+ fadds 76(%edx)
+ fstps 448(%edi)
+ flds 108(%edx)
+ fadds 124(%edx)
+ fld %st(0)
+ fadds 76(%edx)
+ fstps 576(%edi)
+ fadds 92(%edx)
+ fstps 704(%edi)
+ flds 124(%edx)
+ fsts 960(%edi)
+ fadds 92(%edx)
+ fstps 832(%edi)
+ addl $256,%esp
+ popl %edi
+ popl %esi
+ popl %ebx
+ ret
+.L01:
+ flds (%ecx)
+ fadds 4(%ecx)
+ fistps 512(%esi)
+ flds (%ecx)
+ fsubs 4(%ecx)
+ fmuls 120(%ebx)
+
+ fistps (%esi)
+
+ flds 12(%ecx)
+ fsubs 8(%ecx)
+ fmuls 120(%ebx)
+ fists 256(%edi)
+ fadds 12(%ecx)
+ fadds 8(%ecx)
+ fistps 256(%esi)
+ flds 16(%ecx)
+ fsubs 20(%ecx)
+ fmuls 120(%ebx)
+ flds 28(%ecx)
+ fsubs 24(%ecx)
+ fmuls 120(%ebx)
+ fists 384(%edi)
+ fld %st(0)
+ fadds 24(%ecx)
+ fadds 28(%ecx)
+ fld %st(0)
+ fadds 16(%ecx)
+ fadds 20(%ecx)
+ fistps 384(%esi)
+ fadd %st(2)
+ fistps 128(%esi)
+ faddp %st(1)
+ fistps 128(%edi)
+
+ flds 32(%edx)
+ fadds 48(%edx)
+ fistps 448(%esi)
+ flds 48(%edx)
+ fadds 40(%edx)
+ fistps 320(%esi)
+ flds 40(%edx)
+ fadds 56(%edx)
+ fistps 192(%esi)
+ flds 56(%edx)
+ fadds 36(%edx)
+ fistps 64(%esi)
+ flds 36(%edx)
+ fadds 52(%edx)
+ fistps 64(%edi)
+ flds 52(%edx)
+ fadds 44(%edx)
+ fistps 192(%edi)
+ flds 60(%edx)
+ fists 448(%edi)
+ fadds 44(%edx)
+ fistps 320(%edi)
+ flds 96(%edx)
+ fadds 112(%edx)
+ fld %st(0)
+ fadds 64(%edx)
+ fistps 480(%esi)
+ fadds 80(%edx)
+ fistps 416(%esi)
+ flds 112(%edx)
+ fadds 104(%edx)
+ fld %st(0)
+ fadds 80(%edx)
+ fistps 352(%esi)
+ fadds 72(%edx)
+ fistps 288(%esi)
+ flds 104(%edx)
+ fadds 120(%edx)
+ fld %st(0)
+ fadds 72(%edx)
+ fistps 224(%esi)
+ fadds 88(%edx)
+ fistps 160(%esi)
+ flds 120(%edx)
+ fadds 100(%edx)
+ fld %st(0)
+ fadds 88(%edx)
+ fistps 96(%esi)
+ fadds 68(%edx)
+ fistps 32(%esi)
+ flds 100(%edx)
+ fadds 116(%edx)
+ fld %st(0)
+ fadds 68(%edx)
+ fistps 32(%edi)
+ fadds 84(%edx)
+ fistps 96(%edi)
+ flds 116(%edx)
+ fadds 108(%edx)
+ fld %st(0)
+ fadds 84(%edx)
+ fistps 160(%edi)
+ fadds 76(%edx)
+ fistps 224(%edi)
+ flds 108(%edx)
+ fadds 124(%edx)
+ fld %st(0)
+ fadds 76(%edx)
+ fistps 288(%edi)
+ fadds 92(%edx)
+ fistps 352(%edi)
+ flds 124(%edx)
+ fists 480(%edi)
+ fadds 92(%edx)
+ fistps 416(%edi)
+ movsw
+ addl $256,%esp
+ popl %edi
+ popl %esi
+ popl %ebx
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
+
diff --git a/src/libmpg123/dct64_sse.S b/src/libmpg123/dct64_sse.S
new file mode 100644
index 0000000..04ee4a4
--- /dev/null
+++ b/src/libmpg123/dct64_sse.S
@@ -0,0 +1,457 @@
+/*
+ dct64_sse: MMX/SSE optimized dct64
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#define ARG(n) (8+n*4)(%ebp)
+#define TEMP(n) (4+n*16)(%esp)
+#define TEMP_BYTE(n) (4+n)(%esp)
+
+/*
+ void dct64_sse(short *out0, short *out1, real *samples);
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN16
+pnpn:
+ .long 0
+ .long -2147483648
+ .long 0
+ .long -2147483648
+ ALIGN16
+mask:
+ .long -1
+ .long -1
+ .long -1
+ .long 0
+
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(dct64_sse)
+ASM_NAME(dct64_sse):
+ pushl %ebp
+ movl %esp, %ebp
+
+ andl $-16, %esp /* align the stack at 16 bytes */
+ subl $128, %esp /* reserve space for temporal store */
+ pushl %ebx
+
+ movl ARG(0), %ecx
+ movl ARG(1), %ebx
+ movl ARG(2), %eax
+
+ MOVUAPS (%eax), %xmm7
+ MOVUAPS 16(%eax), %xmm6
+ MOVUAPS 112(%eax), %xmm0
+ MOVUAPS 96(%eax), %xmm1
+ shufps $0x1b, %xmm0, %xmm0
+ shufps $0x1b, %xmm1, %xmm1
+ movaps %xmm7, %xmm4
+ movaps %xmm6, %xmm5
+ addps %xmm0, %xmm4
+ addps %xmm1, %xmm5
+ subps %xmm0, %xmm7
+ subps %xmm1, %xmm6
+ movaps %xmm4, TEMP(0)
+ movaps %xmm5, TEMP(1)
+
+ MOVUAPS 32(%eax), %xmm2
+ MOVUAPS 48(%eax), %xmm3
+ MOVUAPS 80(%eax), %xmm0
+ MOVUAPS 64(%eax), %xmm1
+ shufps $0x1b, %xmm0, %xmm0
+ shufps $0x1b, %xmm1, %xmm1
+ movaps %xmm2, %xmm5
+ movaps %xmm3, %xmm4
+ addps %xmm0, %xmm2
+ addps %xmm1, %xmm3
+ subps %xmm0, %xmm5
+ subps %xmm1, %xmm4
+
+ mulps ASM_NAME(costab_mmxsse), %xmm7
+ mulps ASM_NAME(costab_mmxsse)+16, %xmm6
+ mulps ASM_NAME(costab_mmxsse)+32, %xmm5
+ mulps ASM_NAME(costab_mmxsse)+48, %xmm4
+
+ shufps $0x1b, %xmm2, %xmm2
+ shufps $0x1b, %xmm3, %xmm3
+ shufps $0x1b, %xmm4, %xmm4
+ shufps $0x1b, %xmm5, %xmm5
+ movaps TEMP(0), %xmm0
+ movaps TEMP(1), %xmm1
+ subps %xmm3, %xmm0
+ subps %xmm2, %xmm1
+ addps TEMP(0), %xmm3
+ addps TEMP(1), %xmm2
+ movaps %xmm3, TEMP(0)
+ movaps %xmm2, TEMP(1)
+ movaps %xmm6, %xmm2
+ movaps %xmm7, %xmm3
+ subps %xmm5, %xmm6
+ subps %xmm4, %xmm7
+ addps %xmm3, %xmm4
+ addps %xmm2, %xmm5
+ mulps ASM_NAME(costab_mmxsse)+64, %xmm0
+ mulps ASM_NAME(costab_mmxsse)+80, %xmm1
+ mulps ASM_NAME(costab_mmxsse)+80, %xmm6
+ mulps ASM_NAME(costab_mmxsse)+64, %xmm7
+
+ movaps TEMP(0), %xmm2
+ movaps TEMP(1), %xmm3
+ shufps $0x1b, %xmm3, %xmm3
+ shufps $0x1b, %xmm5, %xmm5
+ shufps $0x1b, %xmm1, %xmm1
+ shufps $0x1b, %xmm6, %xmm6
+ movaps %xmm0, TEMP(1)
+ subps %xmm3, %xmm2
+ subps %xmm1, %xmm0
+ addps TEMP(0), %xmm3
+ addps TEMP(1), %xmm1
+ movaps %xmm3, TEMP(0)
+ movaps %xmm1, TEMP(2)
+ movaps %xmm5, %xmm1
+ movaps %xmm4, %xmm5
+ movaps %xmm7, %xmm3
+ subps %xmm1, %xmm5
+ subps %xmm6, %xmm7
+ addps %xmm1, %xmm4
+ addps %xmm3, %xmm6
+ mulps ASM_NAME(costab_mmxsse)+96, %xmm2
+ mulps ASM_NAME(costab_mmxsse)+96, %xmm0
+ mulps ASM_NAME(costab_mmxsse)+96, %xmm5
+ mulps ASM_NAME(costab_mmxsse)+96, %xmm7
+ movaps %xmm2, TEMP(1)
+ movaps %xmm0, TEMP(3)
+
+ movaps %xmm4, %xmm2
+ movaps %xmm5, %xmm3
+ shufps $0x44, %xmm6, %xmm2
+ shufps $0xbb, %xmm7, %xmm5
+ shufps $0xbb, %xmm6, %xmm4
+ shufps $0x44, %xmm7, %xmm3
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ subps %xmm4, %xmm2
+ subps %xmm5, %xmm3
+ addps %xmm6, %xmm4
+ addps %xmm7, %xmm5
+ movaps ASM_NAME(costab_mmxsse)+112, %xmm0
+ movlhps %xmm0, %xmm0
+ mulps %xmm0, %xmm2
+ mulps %xmm0, %xmm3
+ movaps %xmm0, TEMP(4)
+ movaps %xmm4, %xmm6
+ movaps %xmm5, %xmm7
+ shufps $0x14, %xmm2, %xmm4
+ shufps $0xbe, %xmm2, %xmm6
+ shufps $0x14, %xmm3, %xmm5
+ shufps $0xbe, %xmm3, %xmm7
+ movaps %xmm5, TEMP(5)
+ movaps %xmm7, TEMP(7)
+
+ movaps TEMP(0), %xmm0
+ movaps TEMP(1), %xmm1
+ movaps %xmm0, %xmm2
+ movaps %xmm1, %xmm3
+ shufps $0x44, TEMP(2), %xmm2
+ shufps $0xbb, TEMP(3), %xmm1
+ shufps $0xbb, TEMP(2), %xmm0
+ shufps $0x44, TEMP(3), %xmm3
+ movaps %xmm2, %xmm5
+ movaps %xmm3, %xmm7
+ subps %xmm0, %xmm2
+ subps %xmm1, %xmm3
+ addps %xmm5, %xmm0
+ addps %xmm7, %xmm1
+ mulps TEMP(4), %xmm2
+ mulps TEMP(4), %xmm3
+ movaps %xmm0, %xmm5
+ movaps %xmm1, %xmm7
+ shufps $0x14, %xmm2, %xmm0
+ shufps $0xbe, %xmm2, %xmm5
+ shufps $0x14, %xmm3, %xmm1
+ shufps $0xbe, %xmm3, %xmm7
+
+ movaps %xmm0, TEMP(0)
+ movaps %xmm1, TEMP(1)
+ movaps %xmm5, TEMP(2)
+ movaps %xmm7, TEMP(3)
+
+ movss ASM_NAME(costab_mmxsse)+120, %xmm5
+ shufps $0x00, %xmm5, %xmm5
+ xorps pnpn, %xmm5
+
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps TEMP(5), %xmm4
+ unpckhps TEMP(5), %xmm0
+ unpcklps TEMP(7), %xmm6
+ unpckhps TEMP(7), %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm6, %xmm3
+ unpcklps %xmm0, %xmm4
+ unpckhps %xmm0, %xmm2
+ unpcklps %xmm1, %xmm6
+ unpckhps %xmm1, %xmm3
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ subps %xmm2, %xmm0
+ subps %xmm3, %xmm1
+ addps %xmm2, %xmm4
+ addps %xmm3, %xmm6
+ mulps %xmm5, %xmm0
+ mulps %xmm5, %xmm1
+ movaps %xmm5, TEMP(5)
+ movaps %xmm4, %xmm5
+ movaps %xmm6, %xmm7
+ unpcklps %xmm0, %xmm4
+ unpckhps %xmm0, %xmm5
+ unpcklps %xmm1, %xmm6
+ unpckhps %xmm1, %xmm7
+
+ movaps TEMP(0), %xmm0
+ movaps TEMP(2), %xmm2
+ movaps %xmm4, TEMP(4)
+ movaps %xmm6, TEMP(6)
+
+ movaps %xmm0, %xmm4
+ movaps %xmm2, %xmm6
+ unpcklps TEMP(1), %xmm0
+ unpckhps TEMP(1), %xmm4
+ unpcklps TEMP(3), %xmm2
+ unpckhps TEMP(3), %xmm6
+ movaps %xmm0, %xmm1
+ movaps %xmm2, %xmm3
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ unpcklps %xmm6, %xmm2
+ unpckhps %xmm6, %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm2, %xmm6
+ subps %xmm1, %xmm4
+ subps %xmm3, %xmm6
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ mulps TEMP(5), %xmm4
+ mulps TEMP(5), %xmm6
+ movaps %xmm0, %xmm1
+ movaps %xmm2, %xmm3
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ unpcklps %xmm6, %xmm2
+ unpckhps %xmm6, %xmm3
+
+ movaps %xmm0, TEMP(0)
+ movaps %xmm1, TEMP(1)
+ movaps %xmm2, TEMP(2)
+ movaps %xmm3, TEMP(3)
+ movaps %xmm5, TEMP(5)
+ movaps %xmm7, TEMP(7)
+
+ movss TEMP_BYTE(12), %xmm0
+ movss TEMP_BYTE(28), %xmm1
+ movss TEMP_BYTE(44), %xmm2
+ movss TEMP_BYTE(60), %xmm3
+ addss TEMP_BYTE(8), %xmm0
+ addss TEMP_BYTE(24), %xmm1
+ addss TEMP_BYTE(40), %xmm2
+ addss TEMP_BYTE(56), %xmm3
+ movss %xmm0, TEMP_BYTE(8)
+ movss %xmm1, TEMP_BYTE(24)
+ movss %xmm2, TEMP_BYTE(40)
+ movss %xmm3, TEMP_BYTE(56)
+ movss TEMP_BYTE(76), %xmm0
+ movss TEMP_BYTE(92), %xmm1
+ movss TEMP_BYTE(108), %xmm2
+ movss TEMP_BYTE(124), %xmm3
+ addss TEMP_BYTE(72), %xmm0
+ addss TEMP_BYTE(88), %xmm1
+ addss TEMP_BYTE(104), %xmm2
+ addss TEMP_BYTE(120), %xmm3
+ movss %xmm0, TEMP_BYTE(72)
+ movss %xmm1, TEMP_BYTE(88)
+ movss %xmm2, TEMP_BYTE(104)
+ movss %xmm3, TEMP_BYTE(120)
+
+ movaps TEMP_BYTE(16), %xmm1
+ movaps TEMP_BYTE(48), %xmm3
+ movaps TEMP_BYTE(80), %xmm5
+ movaps TEMP_BYTE(112), %xmm7
+ movaps %xmm1, %xmm0
+ movaps %xmm3, %xmm2
+ movaps %xmm5, %xmm4
+ movaps %xmm7, %xmm6
+ shufps $0x1e, %xmm0, %xmm0
+ shufps $0x1e, %xmm2, %xmm2
+ shufps $0x1e, %xmm4, %xmm4
+ shufps $0x1e, %xmm6, %xmm6
+ andps mask, %xmm0
+ andps mask, %xmm2
+ andps mask, %xmm4
+ andps mask, %xmm6
+ addps %xmm0, %xmm1
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm5
+ addps %xmm6, %xmm7
+
+ movaps TEMP_BYTE(32), %xmm2
+ movaps TEMP_BYTE(96), %xmm6
+ movaps %xmm2, %xmm0
+ movaps %xmm6, %xmm4
+ shufps $0x1e, %xmm0, %xmm0
+ shufps $0x1e, %xmm4, %xmm4
+ andps mask, %xmm0
+ andps mask, %xmm4
+ addps %xmm3, %xmm2
+ addps %xmm0, %xmm3
+ addps %xmm7, %xmm6
+ addps %xmm4, %xmm7
+
+ movaps TEMP_BYTE(0), %xmm0
+ movaps TEMP_BYTE(64), %xmm4
+
+ cvtps2pi %xmm0, %mm0
+ cvtps2pi %xmm1, %mm1
+ movhlps %xmm0, %xmm0
+ movhlps %xmm1, %xmm1
+ cvtps2pi %xmm0, %mm2
+ cvtps2pi %xmm1, %mm3
+ packssdw %mm2, %mm0
+ packssdw %mm3, %mm1
+
+ cvtps2pi %xmm2, %mm2
+ cvtps2pi %xmm3, %mm3
+ movhlps %xmm2, %xmm2
+ movhlps %xmm3, %xmm3
+ cvtps2pi %xmm2, %mm4
+ cvtps2pi %xmm3, %mm5
+ packssdw %mm4, %mm2
+ packssdw %mm5, %mm3
+
+ movd %mm0, %eax
+ movd %mm1, %edx
+ movw %ax, 512(%ecx)
+ movw %dx, 384(%ecx)
+ shrl $16, %eax
+ shrl $16, %edx
+ movw %ax, (%ecx)
+ movw %ax, (%ebx)
+ movw %dx, 128(%ebx)
+
+ movd %mm2, %eax
+ movd %mm3, %edx
+ movw %ax, 448(%ecx)
+ movw %dx, 320(%ecx)
+ shrl $16, %eax
+ shrl $16, %edx
+ movw %ax, 64(%ebx)
+ movw %dx, 192(%ebx)
+
+ psrlq $32, %mm0
+ psrlq $32, %mm1
+ movd %mm0, %eax
+ movd %mm1, %edx
+ movw %ax, 256(%ecx)
+ movw %dx, 128(%ecx)
+ shrl $16, %eax
+ shrl $16, %edx
+ movw %ax, 256(%ebx)
+ movw %dx, 384(%ebx)
+
+ psrlq $32, %mm2
+ psrlq $32, %mm3
+ movd %mm2, %eax
+ movd %mm3, %edx
+ movw %ax, 192(%ecx)
+ movw %dx, 64(%ecx)
+ shrl $16, %eax
+ shrl $16, %edx
+ movw %ax, 320(%ebx)
+ movw %dx, 448(%ebx)
+
+ movaps %xmm4, %xmm0
+ shufps $0x1e, %xmm0, %xmm0
+ movaps %xmm5, %xmm1
+ andps mask, %xmm0
+
+ addps %xmm6, %xmm4
+ addps %xmm7, %xmm5
+ addps %xmm1, %xmm6
+ addps %xmm0, %xmm7
+
+ cvtps2pi %xmm4, %mm0
+ cvtps2pi %xmm5, %mm1
+ movhlps %xmm4, %xmm4
+ movhlps %xmm5, %xmm5
+ cvtps2pi %xmm4, %mm2
+ cvtps2pi %xmm5, %mm3
+ packssdw %mm2, %mm0
+ packssdw %mm3, %mm1
+
+ cvtps2pi %xmm6, %mm2
+ cvtps2pi %xmm7, %mm3
+ movhlps %xmm6, %xmm6
+ movhlps %xmm7, %xmm7
+ cvtps2pi %xmm6, %mm4
+ cvtps2pi %xmm7, %mm5
+ packssdw %mm4, %mm2
+ packssdw %mm5, %mm3
+
+ movd %mm0, %eax
+ movd %mm2, %edx
+ movw %ax, 480(%ecx)
+ movw %dx, 416(%ecx)
+ shrl $16, %eax
+ shrl $16, %edx
+ movw %ax, 32(%ebx)
+ movw %dx, 96(%ebx)
+
+ psrlq $32, %mm0
+ psrlq $32, %mm2
+ movd %mm0, %eax
+ movd %mm2, %edx
+ movw %ax, 224(%ecx)
+ movw %dx, 160(%ecx)
+ shrl $16, %eax
+ shrl $16, %edx
+ movw %ax, 288(%ebx)
+ movw %dx, 352(%ebx)
+
+ movd %mm1, %eax
+ movd %mm3, %edx
+ movw %ax, 352(%ecx)
+ movw %dx, 288(%ecx)
+ shrl $16, %eax
+ shrl $16, %edx
+ movw %ax, 160(%ebx)
+ movw %dx, 224(%ebx)
+
+ psrlq $32, %mm1
+ psrlq $32, %mm3
+ movd %mm1, %eax
+ movd %mm3, %edx
+ movw %ax, 96(%ecx)
+ movw %dx, 32(%ecx)
+ shrl $16, %eax
+ shrl $16, %edx
+ movw %ax, 416(%ebx)
+ movw %dx, 480(%ebx)
+
+ popl %ebx
+ movl %ebp, %esp
+ popl %ebp
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/dct64_sse_float.S b/src/libmpg123/dct64_sse_float.S
new file mode 100644
index 0000000..b4329d2
--- /dev/null
+++ b/src/libmpg123/dct64_sse_float.S
@@ -0,0 +1,404 @@
+/*
+ dct64_sse_float: SSE optimized dct64 (float output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#define ARG(n) (8+n*4)(%ebp)
+#define TEMP(n) (4+n*16)(%esp)
+#define TEMP_BYTE(n) (4+n)(%esp)
+
+/*
+ void dct64_real_sse(real *out0, real *out1, real *samples);
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN16
+pnpn:
+ .long 0
+ .long -2147483648
+ .long 0
+ .long -2147483648
+ ALIGN16
+mask:
+ .long -1
+ .long -1
+ .long -1
+ .long 0
+
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(dct64_real_sse)
+ASM_NAME(dct64_real_sse):
+ pushl %ebp
+ movl %esp, %ebp
+
+ andl $-16, %esp /* align the stack at 16 bytes */
+ subl $128, %esp /* reserve space for temporal store */
+ pushl %ebx
+
+ movl ARG(0), %ecx
+ movl ARG(1), %ebx
+ movl ARG(2), %eax
+
+ MOVUAPS (%eax), %xmm7
+ MOVUAPS 16(%eax), %xmm6
+ MOVUAPS 112(%eax), %xmm0
+ MOVUAPS 96(%eax), %xmm1
+ shufps $0x1b, %xmm0, %xmm0
+ shufps $0x1b, %xmm1, %xmm1
+ movaps %xmm7, %xmm4
+ movaps %xmm6, %xmm5
+ addps %xmm0, %xmm4
+ addps %xmm1, %xmm5
+ subps %xmm0, %xmm7
+ subps %xmm1, %xmm6
+ movaps %xmm4, TEMP(0)
+ movaps %xmm5, TEMP(1)
+
+ MOVUAPS 32(%eax), %xmm2
+ MOVUAPS 48(%eax), %xmm3
+ MOVUAPS 80(%eax), %xmm0
+ MOVUAPS 64(%eax), %xmm1
+ shufps $0x1b, %xmm0, %xmm0
+ shufps $0x1b, %xmm1, %xmm1
+ movaps %xmm2, %xmm5
+ movaps %xmm3, %xmm4
+ addps %xmm0, %xmm2
+ addps %xmm1, %xmm3
+ subps %xmm0, %xmm5
+ subps %xmm1, %xmm4
+
+ mulps ASM_NAME(costab_mmxsse), %xmm7
+ mulps ASM_NAME(costab_mmxsse)+16, %xmm6
+ mulps ASM_NAME(costab_mmxsse)+32, %xmm5
+ mulps ASM_NAME(costab_mmxsse)+48, %xmm4
+
+ shufps $0x1b, %xmm2, %xmm2
+ shufps $0x1b, %xmm3, %xmm3
+ shufps $0x1b, %xmm4, %xmm4
+ shufps $0x1b, %xmm5, %xmm5
+ movaps TEMP(0), %xmm0
+ movaps TEMP(1), %xmm1
+ subps %xmm3, %xmm0
+ subps %xmm2, %xmm1
+ addps TEMP(0), %xmm3
+ addps TEMP(1), %xmm2
+ movaps %xmm3, TEMP(0)
+ movaps %xmm2, TEMP(1)
+ movaps %xmm6, %xmm2
+ movaps %xmm7, %xmm3
+ subps %xmm5, %xmm6
+ subps %xmm4, %xmm7
+ addps %xmm3, %xmm4
+ addps %xmm2, %xmm5
+ mulps ASM_NAME(costab_mmxsse)+64, %xmm0
+ mulps ASM_NAME(costab_mmxsse)+80, %xmm1
+ mulps ASM_NAME(costab_mmxsse)+80, %xmm6
+ mulps ASM_NAME(costab_mmxsse)+64, %xmm7
+
+ movaps TEMP(0), %xmm2
+ movaps TEMP(1), %xmm3
+ shufps $0x1b, %xmm3, %xmm3
+ shufps $0x1b, %xmm5, %xmm5
+ shufps $0x1b, %xmm1, %xmm1
+ shufps $0x1b, %xmm6, %xmm6
+ movaps %xmm0, TEMP(1)
+ subps %xmm3, %xmm2
+ subps %xmm1, %xmm0
+ addps TEMP(0), %xmm3
+ addps TEMP(1), %xmm1
+ movaps %xmm3, TEMP(0)
+ movaps %xmm1, TEMP(2)
+ movaps %xmm5, %xmm1
+ movaps %xmm4, %xmm5
+ movaps %xmm7, %xmm3
+ subps %xmm1, %xmm5
+ subps %xmm6, %xmm7
+ addps %xmm1, %xmm4
+ addps %xmm3, %xmm6
+ mulps ASM_NAME(costab_mmxsse)+96, %xmm2
+ mulps ASM_NAME(costab_mmxsse)+96, %xmm0
+ mulps ASM_NAME(costab_mmxsse)+96, %xmm5
+ mulps ASM_NAME(costab_mmxsse)+96, %xmm7
+ movaps %xmm2, TEMP(1)
+ movaps %xmm0, TEMP(3)
+
+ movaps %xmm4, %xmm2
+ movaps %xmm5, %xmm3
+ shufps $0x44, %xmm6, %xmm2
+ shufps $0xbb, %xmm7, %xmm5
+ shufps $0xbb, %xmm6, %xmm4
+ shufps $0x44, %xmm7, %xmm3
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ subps %xmm4, %xmm2
+ subps %xmm5, %xmm3
+ addps %xmm6, %xmm4
+ addps %xmm7, %xmm5
+ movaps ASM_NAME(costab_mmxsse)+112, %xmm0
+ movlhps %xmm0, %xmm0
+ mulps %xmm0, %xmm2
+ mulps %xmm0, %xmm3
+ movaps %xmm0, TEMP(4)
+ movaps %xmm4, %xmm6
+ movaps %xmm5, %xmm7
+ shufps $0x14, %xmm2, %xmm4
+ shufps $0xbe, %xmm2, %xmm6
+ shufps $0x14, %xmm3, %xmm5
+ shufps $0xbe, %xmm3, %xmm7
+ movaps %xmm5, TEMP(5)
+ movaps %xmm7, TEMP(7)
+
+ movaps TEMP(0), %xmm0
+ movaps TEMP(1), %xmm1
+ movaps %xmm0, %xmm2
+ movaps %xmm1, %xmm3
+ shufps $0x44, TEMP(2), %xmm2
+ shufps $0xbb, TEMP(3), %xmm1
+ shufps $0xbb, TEMP(2), %xmm0
+ shufps $0x44, TEMP(3), %xmm3
+ movaps %xmm2, %xmm5
+ movaps %xmm3, %xmm7
+ subps %xmm0, %xmm2
+ subps %xmm1, %xmm3
+ addps %xmm5, %xmm0
+ addps %xmm7, %xmm1
+ mulps TEMP(4), %xmm2
+ mulps TEMP(4), %xmm3
+ movaps %xmm0, %xmm5
+ movaps %xmm1, %xmm7
+ shufps $0x14, %xmm2, %xmm0
+ shufps $0xbe, %xmm2, %xmm5
+ shufps $0x14, %xmm3, %xmm1
+ shufps $0xbe, %xmm3, %xmm7
+
+ movaps %xmm0, TEMP(0)
+ movaps %xmm1, TEMP(1)
+ movaps %xmm5, TEMP(2)
+ movaps %xmm7, TEMP(3)
+
+ movss ASM_NAME(costab_mmxsse)+120, %xmm5
+ shufps $0x00, %xmm5, %xmm5
+ xorps pnpn, %xmm5
+
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps TEMP(5), %xmm4
+ unpckhps TEMP(5), %xmm0
+ unpcklps TEMP(7), %xmm6
+ unpckhps TEMP(7), %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm6, %xmm3
+ unpcklps %xmm0, %xmm4
+ unpckhps %xmm0, %xmm2
+ unpcklps %xmm1, %xmm6
+ unpckhps %xmm1, %xmm3
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ subps %xmm2, %xmm0
+ subps %xmm3, %xmm1
+ addps %xmm2, %xmm4
+ addps %xmm3, %xmm6
+ mulps %xmm5, %xmm0
+ mulps %xmm5, %xmm1
+ movaps %xmm5, TEMP(5)
+ movaps %xmm4, %xmm5
+ movaps %xmm6, %xmm7
+ unpcklps %xmm0, %xmm4
+ unpckhps %xmm0, %xmm5
+ unpcklps %xmm1, %xmm6
+ unpckhps %xmm1, %xmm7
+
+ movaps TEMP(0), %xmm0
+ movaps TEMP(2), %xmm2
+ movaps %xmm4, TEMP(4)
+ movaps %xmm6, TEMP(6)
+
+ movaps %xmm0, %xmm4
+ movaps %xmm2, %xmm6
+ unpcklps TEMP(1), %xmm0
+ unpckhps TEMP(1), %xmm4
+ unpcklps TEMP(3), %xmm2
+ unpckhps TEMP(3), %xmm6
+ movaps %xmm0, %xmm1
+ movaps %xmm2, %xmm3
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ unpcklps %xmm6, %xmm2
+ unpckhps %xmm6, %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm2, %xmm6
+ subps %xmm1, %xmm4
+ subps %xmm3, %xmm6
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ mulps TEMP(5), %xmm4
+ mulps TEMP(5), %xmm6
+ movaps %xmm0, %xmm1
+ movaps %xmm2, %xmm3
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ unpcklps %xmm6, %xmm2
+ unpckhps %xmm6, %xmm3
+
+ movaps %xmm0, TEMP(0)
+ movaps %xmm1, TEMP(1)
+ movaps %xmm2, TEMP(2)
+ movaps %xmm3, TEMP(3)
+ movaps %xmm5, TEMP(5)
+ movaps %xmm7, TEMP(7)
+
+ movss TEMP_BYTE(12), %xmm0
+ movss TEMP_BYTE(28), %xmm1
+ movss TEMP_BYTE(44), %xmm2
+ movss TEMP_BYTE(60), %xmm3
+ addss TEMP_BYTE(8), %xmm0
+ addss TEMP_BYTE(24), %xmm1
+ addss TEMP_BYTE(40), %xmm2
+ addss TEMP_BYTE(56), %xmm3
+ movss %xmm0, TEMP_BYTE(8)
+ movss %xmm1, TEMP_BYTE(24)
+ movss %xmm2, TEMP_BYTE(40)
+ movss %xmm3, TEMP_BYTE(56)
+ movss TEMP_BYTE(76), %xmm0
+ movss TEMP_BYTE(92), %xmm1
+ movss TEMP_BYTE(108), %xmm2
+ movss TEMP_BYTE(124), %xmm3
+ addss TEMP_BYTE(72), %xmm0
+ addss TEMP_BYTE(88), %xmm1
+ addss TEMP_BYTE(104), %xmm2
+ addss TEMP_BYTE(120), %xmm3
+ movss %xmm0, TEMP_BYTE(72)
+ movss %xmm1, TEMP_BYTE(88)
+ movss %xmm2, TEMP_BYTE(104)
+ movss %xmm3, TEMP_BYTE(120)
+
+ movaps TEMP_BYTE(16), %xmm1
+ movaps TEMP_BYTE(48), %xmm3
+ movaps TEMP_BYTE(80), %xmm5
+ movaps TEMP_BYTE(112), %xmm7
+ movaps %xmm1, %xmm0
+ movaps %xmm3, %xmm2
+ movaps %xmm5, %xmm4
+ movaps %xmm7, %xmm6
+ shufps $0x1e, %xmm0, %xmm0
+ shufps $0x1e, %xmm2, %xmm2
+ shufps $0x1e, %xmm4, %xmm4
+ shufps $0x1e, %xmm6, %xmm6
+ andps mask, %xmm0
+ andps mask, %xmm2
+ andps mask, %xmm4
+ andps mask, %xmm6
+ addps %xmm0, %xmm1
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm5
+ addps %xmm6, %xmm7
+
+ movaps TEMP_BYTE(32), %xmm2
+ movaps TEMP_BYTE(96), %xmm6
+ movaps %xmm2, %xmm0
+ movaps %xmm6, %xmm4
+ shufps $0x1e, %xmm0, %xmm0
+ shufps $0x1e, %xmm4, %xmm4
+ andps mask, %xmm0
+ andps mask, %xmm4
+ addps %xmm3, %xmm2
+ addps %xmm0, %xmm3
+ addps %xmm7, %xmm6
+ addps %xmm4, %xmm7
+
+ movaps TEMP_BYTE(0), %xmm0
+ movaps TEMP_BYTE(64), %xmm4
+
+ movss %xmm0, 1024(%ecx)
+ movss %xmm2, 896(%ecx)
+ movss %xmm1, 768(%ecx)
+ movss %xmm3, 640(%ecx)
+
+ shufps $0xe1, %xmm0, %xmm0
+ shufps $0xe1, %xmm2, %xmm2
+ shufps $0xe1, %xmm1, %xmm1
+ shufps $0xe1, %xmm3, %xmm3
+ movss %xmm0, (%ecx)
+ movss %xmm0, (%ebx)
+ movss %xmm2, 128(%ebx)
+ movss %xmm1, 256(%ebx)
+ movss %xmm3, 384(%ebx)
+
+ movhlps %xmm0, %xmm0
+ movhlps %xmm2, %xmm2
+ movhlps %xmm1, %xmm1
+ movhlps %xmm3, %xmm3
+ movss %xmm0, 512(%ecx)
+ movss %xmm2, 384(%ecx)
+ movss %xmm1, 256(%ecx)
+ movss %xmm3, 128(%ecx)
+
+ shufps $0xe1, %xmm0, %xmm0
+ shufps $0xe1, %xmm2, %xmm2
+ shufps $0xe1, %xmm1, %xmm1
+ shufps $0xe1, %xmm3, %xmm3
+ movss %xmm0, 512(%ebx)
+ movss %xmm2, 640(%ebx)
+ movss %xmm1, 768(%ebx)
+ movss %xmm3, 896(%ebx)
+
+ movaps %xmm4, %xmm0
+ shufps $0x1e, %xmm0, %xmm0
+ movaps %xmm5, %xmm1
+ andps mask, %xmm0
+
+ addps %xmm6, %xmm4
+ addps %xmm7, %xmm5
+ addps %xmm1, %xmm6
+ addps %xmm0, %xmm7
+
+ movss %xmm4, 960(%ecx)
+ movss %xmm6, 832(%ecx)
+ movss %xmm5, 704(%ecx)
+ movss %xmm7, 576(%ecx)
+ movhlps %xmm4, %xmm0
+ movhlps %xmm6, %xmm1
+ movhlps %xmm5, %xmm2
+ movhlps %xmm7, %xmm3
+ movss %xmm0, 448(%ecx)
+ movss %xmm1, 320(%ecx)
+ movss %xmm2, 192(%ecx)
+ movss %xmm3, 64(%ecx)
+
+ shufps $0xe1, %xmm4, %xmm4
+ shufps $0xe1, %xmm6, %xmm6
+ shufps $0xe1, %xmm5, %xmm5
+ shufps $0xe1, %xmm7, %xmm7
+ movss %xmm4, 64(%ebx)
+ movss %xmm6, 192(%ebx)
+ movss %xmm5, 320(%ebx)
+ movss %xmm7, 448(%ebx)
+
+ shufps $0xe1, %xmm0, %xmm0
+ shufps $0xe1, %xmm1, %xmm1
+ shufps $0xe1, %xmm2, %xmm2
+ shufps $0xe1, %xmm3, %xmm3
+ movss %xmm0, 576(%ebx)
+ movss %xmm1, 704(%ebx)
+ movss %xmm2, 832(%ebx)
+ movss %xmm3, 960(%ebx)
+
+ popl %ebx
+ movl %ebp, %esp
+ popl %ebp
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/dct64_x86_64.S b/src/libmpg123/dct64_x86_64.S
new file mode 100644
index 0000000..10e4714
--- /dev/null
+++ b/src/libmpg123/dct64_x86_64.S
@@ -0,0 +1,467 @@
+/*
+ dct64_x86_64: SSE optimized dct64 for x86-64
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *out0 */
+#define ARG0 %r9
+/* short *out1 */
+#define ARG1 %rdx
+/* real *samples */
+#define ARG2 %r8
+#else
+/* short *out0 */
+#define ARG0 %rdi
+/* short *out1 */
+#define ARG1 %rsi
+/* real *samples */
+#define ARG2 %rdx
+#endif
+
+/*
+ void dct64_x86_64(short *out0, short *out1, real *samples);
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(costab_x86_64):
+ .long 1056974725
+ .long 1057056395
+ .long 1057223771
+ .long 1057485416
+ .long 1057855544
+ .long 1058356026
+ .long 1059019886
+ .long 1059897405
+ .long 1061067246
+ .long 1062657950
+ .long 1064892987
+ .long 1066774581
+ .long 1069414683
+ .long 1073984175
+ .long 1079645762
+ .long 1092815430
+ .long 1057005197
+ .long 1057342072
+ .long 1058087743
+ .long 1059427869
+ .long 1061799040
+ .long 1065862217
+ .long 1071413542
+ .long 1084439708
+ .long 1057128951
+ .long 1058664893
+ .long 1063675095
+ .long 1076102863
+ .long 1057655764
+ .long 1067924853
+ .long 1060439283
+ .long 0
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(dct64_x86_64)
+ASM_NAME(dct64_x86_64):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movq %rcx, ARG0
+ subq $168, %rsp /* stack alignment + 10 xmm registers */
+ movaps %xmm6, (%rsp)
+ movaps %xmm7, 16(%rsp)
+ movaps %xmm8, 32(%rsp)
+ movaps %xmm9, 48(%rsp)
+ movaps %xmm10, 64(%rsp)
+ movaps %xmm11, 80(%rsp)
+ movaps %xmm12, 96(%rsp)
+ movaps %xmm13, 112(%rsp)
+ movaps %xmm14, 128(%rsp)
+ movaps %xmm15, 144(%rsp)
+#endif
+
+ leaq ASM_NAME(costab_x86_64)(%rip), %rcx
+
+ MOVUAPS (ARG2), %xmm15
+ MOVUAPS 16(ARG2), %xmm14
+ MOVUAPS 112(ARG2), %xmm0
+ MOVUAPS 96(ARG2), %xmm1
+ shufps $0x1b, %xmm0, %xmm0
+ shufps $0x1b, %xmm1, %xmm1
+ movaps %xmm15, %xmm8
+ movaps %xmm14, %xmm9
+ addps %xmm0, %xmm8
+ addps %xmm1, %xmm9
+ subps %xmm0, %xmm15
+ subps %xmm1, %xmm14
+
+ MOVUAPS 32(ARG2), %xmm13
+ MOVUAPS 48(ARG2), %xmm12
+ MOVUAPS 80(ARG2), %xmm0
+ MOVUAPS 64(ARG2), %xmm1
+ shufps $0x1b, %xmm0, %xmm0
+ shufps $0x1b, %xmm1, %xmm1
+ movaps %xmm13, %xmm10
+ movaps %xmm12, %xmm11
+ addps %xmm0, %xmm10
+ addps %xmm1, %xmm11
+ subps %xmm0, %xmm13
+ subps %xmm1, %xmm12
+
+ movaps (%rcx), %xmm0
+ movaps 16(%rcx), %xmm1
+ movaps 32(%rcx), %xmm2
+ movaps 48(%rcx), %xmm3
+ mulps %xmm0, %xmm15
+ mulps %xmm1, %xmm14
+ mulps %xmm2, %xmm13
+ mulps %xmm3, %xmm12
+
+ movaps 64(%rcx), %xmm0
+ movaps 80(%rcx), %xmm1
+
+ pshufd $0x1b, %xmm11, %xmm2
+ pshufd $0x1b, %xmm10, %xmm3
+ shufps $0x1b, %xmm13, %xmm13
+ shufps $0x1b, %xmm12, %xmm12
+ movaps %xmm8, %xmm11
+ movaps %xmm9, %xmm10
+ movaps %xmm14, %xmm4
+ movaps %xmm15, %xmm5
+ subps %xmm2, %xmm11
+ subps %xmm3, %xmm10
+ subps %xmm13, %xmm14
+ subps %xmm12, %xmm15
+ addps %xmm2, %xmm8
+ addps %xmm3, %xmm9
+ addps %xmm5, %xmm12
+ addps %xmm4, %xmm13
+ mulps %xmm0, %xmm11
+ mulps %xmm1, %xmm10
+ mulps %xmm1, %xmm14
+ mulps %xmm0, %xmm15
+
+ movaps 96(%rcx), %xmm0
+
+ pshufd $0x1b, %xmm9, %xmm1
+ pshufd $0x1b, %xmm13, %xmm2
+ shufps $0x1b, %xmm10, %xmm10
+ shufps $0x1b, %xmm14, %xmm14
+ movaps %xmm8, %xmm9
+ movaps %xmm12, %xmm13
+ movaps %xmm11, %xmm3
+ movaps %xmm15, %xmm4
+ subps %xmm1, %xmm9
+ subps %xmm2, %xmm13
+ subps %xmm10, %xmm11
+ subps %xmm14, %xmm15
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm12
+ addps %xmm3, %xmm10
+ addps %xmm4, %xmm14
+ mulps %xmm0, %xmm9
+ mulps %xmm0, %xmm13
+ mulps %xmm0, %xmm11
+ mulps %xmm0, %xmm15
+
+ movaps 112(%rcx), %xmm0
+ movaps %xmm0, %xmm1
+ movlhps %xmm1, %xmm1
+
+ movaps %xmm8, %xmm2
+ movaps %xmm9, %xmm3
+ shufps $0x44, %xmm10, %xmm2
+ shufps $0xbb, %xmm11, %xmm9
+ shufps $0xbb, %xmm10, %xmm8
+ shufps $0x44, %xmm11, %xmm3
+ movaps %xmm2, %xmm4
+ movaps %xmm3, %xmm5
+ subps %xmm8, %xmm2
+ subps %xmm9, %xmm3
+ addps %xmm4, %xmm8
+ addps %xmm5, %xmm9
+ mulps %xmm1, %xmm2
+ mulps %xmm1, %xmm3
+ movaps %xmm8, %xmm10
+ movaps %xmm9, %xmm11
+ shufps $0x14, %xmm2, %xmm8
+ shufps $0xbe, %xmm2, %xmm10
+ shufps $0x14, %xmm3, %xmm9
+ shufps $0xbe, %xmm3, %xmm11
+
+ movaps %xmm12, %xmm2
+ movaps %xmm13, %xmm3
+ shufps $0x44, %xmm14, %xmm2
+ shufps $0xbb, %xmm15, %xmm13
+ shufps $0xbb, %xmm14, %xmm12
+ shufps $0x44, %xmm15, %xmm3
+ movaps %xmm2, %xmm4
+ movaps %xmm3, %xmm5
+ subps %xmm12, %xmm2
+ subps %xmm13, %xmm3
+ addps %xmm4, %xmm12
+ addps %xmm5, %xmm13
+ mulps %xmm1, %xmm2
+ mulps %xmm1, %xmm3
+ movaps %xmm12, %xmm14
+ movaps %xmm13, %xmm15
+ shufps $0x14, %xmm2, %xmm12
+ shufps $0xbe, %xmm2, %xmm14
+ shufps $0x14, %xmm3, %xmm13
+ shufps $0xbe, %xmm3, %xmm15
+
+ shufps $0xaa, %xmm0, %xmm0
+ pcmpeqd %xmm1, %xmm1
+ pslld $31, %xmm1
+ psllq $32, %xmm1
+ xorps %xmm1, %xmm0
+
+ movaps %xmm8, %xmm1
+ movaps %xmm10, %xmm2
+ unpcklps %xmm9, %xmm8
+ unpckhps %xmm9, %xmm1
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm11, %xmm2
+ movaps %xmm8, %xmm3
+ movaps %xmm10, %xmm4
+ unpcklps %xmm1, %xmm8
+ unpckhps %xmm1, %xmm3
+ unpcklps %xmm2, %xmm10
+ unpckhps %xmm2, %xmm4
+ movaps %xmm8, %xmm1
+ movaps %xmm10, %xmm2
+ subps %xmm3, %xmm1
+ subps %xmm4, %xmm2
+ addps %xmm3, %xmm8
+ addps %xmm4, %xmm10
+ mulps %xmm0, %xmm1
+ mulps %xmm0, %xmm2
+ movaps %xmm8, %xmm9
+ movaps %xmm10, %xmm11
+ unpcklps %xmm1, %xmm8
+ unpckhps %xmm1, %xmm9
+ unpcklps %xmm2, %xmm10
+ unpckhps %xmm2, %xmm11
+
+ movaps %xmm12, %xmm1
+ movaps %xmm14, %xmm2
+ unpcklps %xmm13, %xmm12
+ unpckhps %xmm13, %xmm1
+ unpcklps %xmm15, %xmm14
+ unpckhps %xmm15, %xmm2
+ movaps %xmm12, %xmm3
+ movaps %xmm14, %xmm4
+ unpcklps %xmm1, %xmm12
+ unpckhps %xmm1, %xmm3
+ unpcklps %xmm2, %xmm14
+ unpckhps %xmm2, %xmm4
+ movaps %xmm12, %xmm1
+ movaps %xmm14, %xmm2
+ subps %xmm3, %xmm1
+ subps %xmm4, %xmm2
+ addps %xmm3, %xmm12
+ addps %xmm4, %xmm14
+ mulps %xmm0, %xmm1
+ mulps %xmm0, %xmm2
+ movaps %xmm12, %xmm13
+ movaps %xmm14, %xmm15
+ unpcklps %xmm1, %xmm12
+ unpckhps %xmm1, %xmm13
+ unpcklps %xmm2, %xmm14
+ unpckhps %xmm2, %xmm15
+
+
+ xorps %xmm0, %xmm0
+ xorps %xmm1, %xmm1
+ shufpd $0x2, %xmm8, %xmm0
+ shufpd $0x2, %xmm9, %xmm1
+ psrlq $32, %xmm0
+ psrlq $32, %xmm1
+ addps %xmm0, %xmm8
+ addps %xmm1, %xmm9
+
+ xorps %xmm0, %xmm0
+ xorps %xmm1, %xmm1
+ shufpd $0x2, %xmm10, %xmm0
+ shufpd $0x2, %xmm11, %xmm1
+ psrlq $32, %xmm0
+ psrlq $32, %xmm1
+ addps %xmm0, %xmm10
+ addps %xmm1, %xmm11
+
+ xorps %xmm0, %xmm0
+ xorps %xmm1, %xmm1
+ shufpd $0x2, %xmm12, %xmm0
+ shufpd $0x2, %xmm13, %xmm1
+ psrlq $32, %xmm0
+ psrlq $32, %xmm1
+ addps %xmm0, %xmm12
+ addps %xmm1, %xmm13
+
+ xorps %xmm0, %xmm0
+ xorps %xmm1, %xmm1
+ shufpd $0x2, %xmm14, %xmm0
+ shufpd $0x2, %xmm15, %xmm1
+ psrlq $32, %xmm0
+ psrlq $32, %xmm1
+ addps %xmm0, %xmm14
+ addps %xmm1, %xmm15
+
+ pshufd $0x78, %xmm9, %xmm0
+ pshufd $0x78, %xmm11, %xmm1
+ pshufd $0x78, %xmm13, %xmm2
+ pshufd $0x78, %xmm15, %xmm3
+ psrldq $4, %xmm0
+ psrldq $4, %xmm1
+ psrldq $4, %xmm2
+ psrldq $4, %xmm3
+ addps %xmm0, %xmm9
+ addps %xmm1, %xmm11
+ addps %xmm2, %xmm13
+ addps %xmm3, %xmm15
+
+ pshufd $0x78, %xmm10, %xmm0
+ pshufd $0x78, %xmm14, %xmm1
+ psrldq $4, %xmm0
+ psrldq $4, %xmm1
+ addps %xmm11, %xmm10
+ addps %xmm15, %xmm14
+ addps %xmm0, %xmm11
+ addps %xmm1, %xmm15
+
+ cvtps2dq %xmm8, %xmm8
+ cvtps2dq %xmm9, %xmm9
+ cvtps2dq %xmm10, %xmm10
+ cvtps2dq %xmm11, %xmm11
+ packssdw %xmm10, %xmm8
+ packssdw %xmm11, %xmm9
+
+ movd %xmm8, %eax
+ movd %xmm9, %ecx
+ movw %ax, 512(ARG0)
+ movw %cx, 384(ARG0)
+ shrl $16, %eax
+ shrl $16, %ecx
+ movw %ax, (ARG0)
+ movw %ax, (ARG1)
+ movw %cx, 128(ARG1)
+
+ movhlps %xmm8, %xmm0
+ movhlps %xmm9, %xmm1
+ movd %xmm0, %eax
+ movd %xmm1, %ecx
+ movw %ax, 448(ARG0)
+ movw %cx, 320(ARG0)
+ shrl $16, %eax
+ shrl $16, %ecx
+ movw %ax, 64(ARG1)
+ movw %cx, 192(ARG1)
+
+ pshuflw $0xee, %xmm8, %xmm2
+ pshuflw $0xee, %xmm9, %xmm3
+ movd %xmm2, %eax
+ movd %xmm3, %ecx
+ movw %ax, 256(ARG0)
+ movw %cx, 128(ARG0)
+ shrl $16, %eax
+ shrl $16, %ecx
+ movw %ax, 256(ARG1)
+ movw %cx, 384(ARG1)
+
+ pshuflw $0xee, %xmm0, %xmm0
+ pshuflw $0xee, %xmm1, %xmm1
+ movd %xmm0, %eax
+ movd %xmm1, %ecx
+ movw %ax, 192(ARG0)
+ movw %cx, 64(ARG0)
+ shrl $16, %eax
+ shrl $16, %ecx
+ movw %ax, 320(ARG1)
+ movw %cx, 448(ARG1)
+
+ movaps %xmm12, %xmm0
+ movaps %xmm13, %xmm1
+ movaps %xmm14, %xmm2
+ movaps %xmm15, %xmm3
+ shufps $0x1e, %xmm0, %xmm0
+ pslldq $4, %xmm0
+ psrldq $4, %xmm0
+ addps %xmm2, %xmm12
+ addps %xmm3, %xmm13
+ addps %xmm1, %xmm14
+ addps %xmm0, %xmm15
+
+ cvtps2dq %xmm12, %xmm12
+ cvtps2dq %xmm13, %xmm13
+ cvtps2dq %xmm14, %xmm14
+ cvtps2dq %xmm15, %xmm15
+ packssdw %xmm13, %xmm12
+ packssdw %xmm15, %xmm14
+
+ movd %xmm12, %eax
+ movd %xmm14, %ecx
+ movw %ax, 480(ARG0)
+ movw %cx, 416(ARG0)
+ shrl $16, %eax
+ shrl $16, %ecx
+ movw %ax, 32(ARG1)
+ movw %cx, 96(ARG1)
+
+ pshuflw $0xee, %xmm12, %xmm0
+ pshuflw $0xee, %xmm14, %xmm1
+ movd %xmm0, %eax
+ movd %xmm1, %ecx
+ movw %ax, 224(ARG0)
+ movw %cx, 160(ARG0)
+ shrl $16, %eax
+ shrl $16, %ecx
+ movw %ax, 288(ARG1)
+ movw %cx, 352(ARG1)
+
+ movhlps %xmm12, %xmm0
+ movhlps %xmm14, %xmm1
+ movd %xmm0, %eax
+ movd %xmm1, %ecx
+ movw %ax, 352(ARG0)
+ movw %cx, 288(ARG0)
+ shrl $16, %eax
+ shrl $16, %ecx
+ movw %ax, 160(ARG1)
+ movw %cx, 224(ARG1)
+
+ pshuflw $0xee, %xmm0, %xmm0
+ pshuflw $0xee, %xmm1, %xmm1
+ movd %xmm0, %eax
+ movd %xmm1, %ecx
+ movw %ax, 96(ARG0)
+ movw %cx, 32(ARG0)
+ shrl $16, %eax
+ shrl $16, %ecx
+ movw %ax, 416(ARG1)
+ movw %cx, 480(ARG1)
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm8
+ movaps 48(%rsp), %xmm9
+ movaps 64(%rsp), %xmm10
+ movaps 80(%rsp), %xmm11
+ movaps 96(%rsp), %xmm12
+ movaps 112(%rsp), %xmm13
+ movaps 128(%rsp), %xmm14
+ movaps 144(%rsp), %xmm15
+ addq $168, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/dct64_x86_64_float.S b/src/libmpg123/dct64_x86_64_float.S
new file mode 100644
index 0000000..d963931
--- /dev/null
+++ b/src/libmpg123/dct64_x86_64_float.S
@@ -0,0 +1,429 @@
+/*
+ dct64_x86_64_float: SSE optimized dct64 for x86-64 (float output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *out0 */
+#define ARG0 %r9
+/* short *out1 */
+#define ARG1 %rdx
+/* real *samples */
+#define ARG2 %r8
+#else
+/* real *out0 */
+#define ARG0 %rdi
+/* real *out1 */
+#define ARG1 %rsi
+/* real *samples */
+#define ARG2 %rdx
+#endif
+
+/*
+ void dct64_real_x86_64(real *out0, real *out1, real *samples);
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(costab_x86_64):
+ .long 1056974725
+ .long 1057056395
+ .long 1057223771
+ .long 1057485416
+ .long 1057855544
+ .long 1058356026
+ .long 1059019886
+ .long 1059897405
+ .long 1061067246
+ .long 1062657950
+ .long 1064892987
+ .long 1066774581
+ .long 1069414683
+ .long 1073984175
+ .long 1079645762
+ .long 1092815430
+ .long 1057005197
+ .long 1057342072
+ .long 1058087743
+ .long 1059427869
+ .long 1061799040
+ .long 1065862217
+ .long 1071413542
+ .long 1084439708
+ .long 1057128951
+ .long 1058664893
+ .long 1063675095
+ .long 1076102863
+ .long 1057655764
+ .long 1067924853
+ .long 1060439283
+ .long 0
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(dct64_real_x86_64)
+ASM_NAME(dct64_real_x86_64):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movq %rcx, ARG0
+ subq $168, %rsp /* stack alignment + 10 xmm registers */
+ movaps %xmm6, (%rsp)
+ movaps %xmm7, 16(%rsp)
+ movaps %xmm8, 32(%rsp)
+ movaps %xmm9, 48(%rsp)
+ movaps %xmm10, 64(%rsp)
+ movaps %xmm11, 80(%rsp)
+ movaps %xmm12, 96(%rsp)
+ movaps %xmm13, 112(%rsp)
+ movaps %xmm14, 128(%rsp)
+ movaps %xmm15, 144(%rsp)
+#endif
+
+ leaq ASM_NAME(costab_x86_64)(%rip), %rcx
+
+ MOVUAPS (ARG2), %xmm15
+ MOVUAPS 16(ARG2), %xmm14
+ MOVUAPS 112(ARG2), %xmm0
+ MOVUAPS 96(ARG2), %xmm1
+ shufps $0x1b, %xmm0, %xmm0
+ shufps $0x1b, %xmm1, %xmm1
+ movaps %xmm15, %xmm8
+ movaps %xmm14, %xmm9
+ addps %xmm0, %xmm8
+ addps %xmm1, %xmm9
+ subps %xmm0, %xmm15
+ subps %xmm1, %xmm14
+
+ MOVUAPS 32(ARG2), %xmm13
+ MOVUAPS 48(ARG2), %xmm12
+ MOVUAPS 80(ARG2), %xmm0
+ MOVUAPS 64(ARG2), %xmm1
+ shufps $0x1b, %xmm0, %xmm0
+ shufps $0x1b, %xmm1, %xmm1
+ movaps %xmm13, %xmm10
+ movaps %xmm12, %xmm11
+ addps %xmm0, %xmm10
+ addps %xmm1, %xmm11
+ subps %xmm0, %xmm13
+ subps %xmm1, %xmm12
+
+ movaps (%rcx), %xmm0
+ movaps 16(%rcx), %xmm1
+ movaps 32(%rcx), %xmm2
+ movaps 48(%rcx), %xmm3
+ mulps %xmm0, %xmm15
+ mulps %xmm1, %xmm14
+ mulps %xmm2, %xmm13
+ mulps %xmm3, %xmm12
+
+ movaps 64(%rcx), %xmm0
+ movaps 80(%rcx), %xmm1
+
+ pshufd $0x1b, %xmm11, %xmm2
+ pshufd $0x1b, %xmm10, %xmm3
+ shufps $0x1b, %xmm13, %xmm13
+ shufps $0x1b, %xmm12, %xmm12
+ movaps %xmm8, %xmm11
+ movaps %xmm9, %xmm10
+ movaps %xmm14, %xmm4
+ movaps %xmm15, %xmm5
+ subps %xmm2, %xmm11
+ subps %xmm3, %xmm10
+ subps %xmm13, %xmm14
+ subps %xmm12, %xmm15
+ addps %xmm2, %xmm8
+ addps %xmm3, %xmm9
+ addps %xmm5, %xmm12
+ addps %xmm4, %xmm13
+ mulps %xmm0, %xmm11
+ mulps %xmm1, %xmm10
+ mulps %xmm1, %xmm14
+ mulps %xmm0, %xmm15
+
+ movaps 96(%rcx), %xmm0
+
+ pshufd $0x1b, %xmm9, %xmm1
+ pshufd $0x1b, %xmm13, %xmm2
+ shufps $0x1b, %xmm10, %xmm10
+ shufps $0x1b, %xmm14, %xmm14
+ movaps %xmm8, %xmm9
+ movaps %xmm12, %xmm13
+ movaps %xmm11, %xmm3
+ movaps %xmm15, %xmm4
+ subps %xmm1, %xmm9
+ subps %xmm2, %xmm13
+ subps %xmm10, %xmm11
+ subps %xmm14, %xmm15
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm12
+ addps %xmm3, %xmm10
+ addps %xmm4, %xmm14
+ mulps %xmm0, %xmm9
+ mulps %xmm0, %xmm13
+ mulps %xmm0, %xmm11
+ mulps %xmm0, %xmm15
+
+ movaps 112(%rcx), %xmm0
+ movaps %xmm0, %xmm1
+ movlhps %xmm1, %xmm1
+
+ movaps %xmm8, %xmm2
+ movaps %xmm9, %xmm3
+ shufps $0x44, %xmm10, %xmm2
+ shufps $0xbb, %xmm11, %xmm9
+ shufps $0xbb, %xmm10, %xmm8
+ shufps $0x44, %xmm11, %xmm3
+ movaps %xmm2, %xmm4
+ movaps %xmm3, %xmm5
+ subps %xmm8, %xmm2
+ subps %xmm9, %xmm3
+ addps %xmm4, %xmm8
+ addps %xmm5, %xmm9
+ mulps %xmm1, %xmm2
+ mulps %xmm1, %xmm3
+ movaps %xmm8, %xmm10
+ movaps %xmm9, %xmm11
+ shufps $0x14, %xmm2, %xmm8
+ shufps $0xbe, %xmm2, %xmm10
+ shufps $0x14, %xmm3, %xmm9
+ shufps $0xbe, %xmm3, %xmm11
+
+ movaps %xmm12, %xmm2
+ movaps %xmm13, %xmm3
+ shufps $0x44, %xmm14, %xmm2
+ shufps $0xbb, %xmm15, %xmm13
+ shufps $0xbb, %xmm14, %xmm12
+ shufps $0x44, %xmm15, %xmm3
+ movaps %xmm2, %xmm4
+ movaps %xmm3, %xmm5
+ subps %xmm12, %xmm2
+ subps %xmm13, %xmm3
+ addps %xmm4, %xmm12
+ addps %xmm5, %xmm13
+ mulps %xmm1, %xmm2
+ mulps %xmm1, %xmm3
+ movaps %xmm12, %xmm14
+ movaps %xmm13, %xmm15
+ shufps $0x14, %xmm2, %xmm12
+ shufps $0xbe, %xmm2, %xmm14
+ shufps $0x14, %xmm3, %xmm13
+ shufps $0xbe, %xmm3, %xmm15
+
+ shufps $0xaa, %xmm0, %xmm0
+ pcmpeqd %xmm1, %xmm1
+ pslld $31, %xmm1
+ psllq $32, %xmm1
+ xorps %xmm1, %xmm0
+
+ movaps %xmm8, %xmm1
+ movaps %xmm10, %xmm2
+ unpcklps %xmm9, %xmm8
+ unpckhps %xmm9, %xmm1
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm11, %xmm2
+ movaps %xmm8, %xmm3
+ movaps %xmm10, %xmm4
+ unpcklps %xmm1, %xmm8
+ unpckhps %xmm1, %xmm3
+ unpcklps %xmm2, %xmm10
+ unpckhps %xmm2, %xmm4
+ movaps %xmm8, %xmm1
+ movaps %xmm10, %xmm2
+ subps %xmm3, %xmm1
+ subps %xmm4, %xmm2
+ addps %xmm3, %xmm8
+ addps %xmm4, %xmm10
+ mulps %xmm0, %xmm1
+ mulps %xmm0, %xmm2
+ movaps %xmm8, %xmm9
+ movaps %xmm10, %xmm11
+ unpcklps %xmm1, %xmm8
+ unpckhps %xmm1, %xmm9
+ unpcklps %xmm2, %xmm10
+ unpckhps %xmm2, %xmm11
+
+ movaps %xmm12, %xmm1
+ movaps %xmm14, %xmm2
+ unpcklps %xmm13, %xmm12
+ unpckhps %xmm13, %xmm1
+ unpcklps %xmm15, %xmm14
+ unpckhps %xmm15, %xmm2
+ movaps %xmm12, %xmm3
+ movaps %xmm14, %xmm4
+ unpcklps %xmm1, %xmm12
+ unpckhps %xmm1, %xmm3
+ unpcklps %xmm2, %xmm14
+ unpckhps %xmm2, %xmm4
+ movaps %xmm12, %xmm1
+ movaps %xmm14, %xmm2
+ subps %xmm3, %xmm1
+ subps %xmm4, %xmm2
+ addps %xmm3, %xmm12
+ addps %xmm4, %xmm14
+ mulps %xmm0, %xmm1
+ mulps %xmm0, %xmm2
+ movaps %xmm12, %xmm13
+ movaps %xmm14, %xmm15
+ unpcklps %xmm1, %xmm12
+ unpckhps %xmm1, %xmm13
+ unpcklps %xmm2, %xmm14
+ unpckhps %xmm2, %xmm15
+
+
+ xorps %xmm0, %xmm0
+ xorps %xmm1, %xmm1
+ shufpd $0x2, %xmm8, %xmm0
+ shufpd $0x2, %xmm9, %xmm1
+ psrlq $32, %xmm0
+ psrlq $32, %xmm1
+ addps %xmm0, %xmm8
+ addps %xmm1, %xmm9
+
+ xorps %xmm0, %xmm0
+ xorps %xmm1, %xmm1
+ shufpd $0x2, %xmm10, %xmm0
+ shufpd $0x2, %xmm11, %xmm1
+ psrlq $32, %xmm0
+ psrlq $32, %xmm1
+ addps %xmm0, %xmm10
+ addps %xmm1, %xmm11
+
+ xorps %xmm0, %xmm0
+ xorps %xmm1, %xmm1
+ shufpd $0x2, %xmm12, %xmm0
+ shufpd $0x2, %xmm13, %xmm1
+ psrlq $32, %xmm0
+ psrlq $32, %xmm1
+ addps %xmm0, %xmm12
+ addps %xmm1, %xmm13
+
+ xorps %xmm0, %xmm0
+ xorps %xmm1, %xmm1
+ shufpd $0x2, %xmm14, %xmm0
+ shufpd $0x2, %xmm15, %xmm1
+ psrlq $32, %xmm0
+ psrlq $32, %xmm1
+ addps %xmm0, %xmm14
+ addps %xmm1, %xmm15
+
+ pshufd $0x78, %xmm9, %xmm0
+ pshufd $0x78, %xmm11, %xmm1
+ pshufd $0x78, %xmm13, %xmm2
+ pshufd $0x78, %xmm15, %xmm3
+ psrldq $4, %xmm0
+ psrldq $4, %xmm1
+ psrldq $4, %xmm2
+ psrldq $4, %xmm3
+ addps %xmm0, %xmm9
+ addps %xmm1, %xmm11
+ addps %xmm2, %xmm13
+ addps %xmm3, %xmm15
+
+ pshufd $0x78, %xmm10, %xmm0
+ pshufd $0x78, %xmm14, %xmm1
+ psrldq $4, %xmm0
+ psrldq $4, %xmm1
+ addps %xmm11, %xmm10
+ addps %xmm15, %xmm14
+ addps %xmm0, %xmm11
+ addps %xmm1, %xmm15
+
+
+ movss %xmm8, 1024(ARG0)
+ movss %xmm10, 896(ARG0)
+ movss %xmm9, 768(ARG0)
+ movss %xmm11, 640(ARG0)
+ movhlps %xmm8, %xmm0
+ movhlps %xmm10, %xmm1
+ movhlps %xmm9, %xmm2
+ movhlps %xmm11, %xmm3
+ movss %xmm0, 512(ARG0)
+ movss %xmm1, 384(ARG0)
+ movss %xmm2, 256(ARG0)
+ movss %xmm3, 128(ARG0)
+
+ pshuflw $0xee, %xmm8, %xmm4
+ pshuflw $0xee, %xmm10, %xmm5
+ pshuflw $0xee, %xmm9, %xmm6
+ pshuflw $0xee, %xmm11, %xmm7
+ movss %xmm4, (ARG0)
+ movss %xmm4, (ARG1)
+ movss %xmm5, 128(ARG1)
+ movss %xmm6, 256(ARG1)
+ movss %xmm7, 384(ARG1)
+
+ pshuflw $0xee, %xmm0, %xmm0
+ pshuflw $0xee, %xmm1, %xmm1
+ pshuflw $0xee, %xmm2, %xmm2
+ pshuflw $0xee, %xmm3, %xmm3
+ movss %xmm0, 512(ARG1)
+ movss %xmm1, 640(ARG1)
+ movss %xmm2, 768(ARG1)
+ movss %xmm3, 896(ARG1)
+
+ pshufd $0x78, %xmm12, %xmm0
+ movaps %xmm13, %xmm1
+ psrldq $4, %xmm0
+
+ addps %xmm14, %xmm12
+ addps %xmm15, %xmm13
+ addps %xmm1, %xmm14
+ addps %xmm0, %xmm15
+
+ movss %xmm12, 960(ARG0)
+ movss %xmm14, 832(ARG0)
+ movss %xmm13, 704(ARG0)
+ movss %xmm15, 576(ARG0)
+ movhlps %xmm12, %xmm0
+ movhlps %xmm14, %xmm1
+ movhlps %xmm13, %xmm2
+ movhlps %xmm15, %xmm3
+ movss %xmm0, 448(ARG0)
+ movss %xmm1, 320(ARG0)
+ movss %xmm2, 192(ARG0)
+ movss %xmm3, 64(ARG0)
+
+ pshuflw $0xee, %xmm12, %xmm4
+ pshuflw $0xee, %xmm14, %xmm5
+ pshuflw $0xee, %xmm13, %xmm6
+ pshuflw $0xee, %xmm15, %xmm7
+ movss %xmm4, 64(ARG1)
+ movss %xmm5, 192(ARG1)
+ movss %xmm6, 320(ARG1)
+ movss %xmm7, 448(ARG1)
+
+ pshuflw $0xee, %xmm0, %xmm0
+ pshuflw $0xee, %xmm1, %xmm1
+ pshuflw $0xee, %xmm2, %xmm2
+ pshuflw $0xee, %xmm3, %xmm3
+ movss %xmm0, 576(ARG1)
+ movss %xmm1, 704(ARG1)
+ movss %xmm2, 832(ARG1)
+ movss %xmm3, 960(ARG1)
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm8
+ movaps 48(%rsp), %xmm9
+ movaps 64(%rsp), %xmm10
+ movaps 80(%rsp), %xmm11
+ movaps 96(%rsp), %xmm12
+ movaps 112(%rsp), %xmm13
+ movaps 128(%rsp), %xmm14
+ movaps 144(%rsp), %xmm15
+ addq $168, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/debug.h b/src/libmpg123/debug.h
new file mode 100644
index 0000000..8cfd67b
--- /dev/null
+++ b/src/libmpg123/debug.h
@@ -0,0 +1,171 @@
+/*
+ debug.h:
+ if DEBUG defined: debugging macro fprintf wrappers
+ else: macros defined to do nothing
+ That saves typing #ifdef DEBUG all the time and still preserves
+ lean code without debugging.
+
+ public domain (or LGPL / GPL, if you like that more;-)
+ generated by debugdef.pl, what was
+ trivially written by Thomas Orgis <thomas@orgis.org>
+*/
+
+#include "config.h"
+
+/*
+ I could do that with variadic macros available:
+ #define sdebug(me, s) fprintf(stderr, "[location] " s "\n")
+ #define debug(me, s, ...) fprintf(stderr, "[location] " s "}n", __VA_ARGS__)
+
+ Variadic macros are a C99 feature...
+ Now just predefining stuff non-variadic for up to 15 arguments.
+ It's cumbersome to have them all with different names, though...
+*/
+
+#ifdef DEBUG
+#include <stdio.h>
+#define debug(s) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__)
+#define debug1(s, a) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a)
+#define debug2(s, a, b) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b)
+#define debug3(s, a, b, c) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c)
+#define debug4(s, a, b, c, d) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d)
+#define debug5(s, a, b, c, d, e) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e)
+#define debug6(s, a, b, c, d, e, f) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f)
+#define debug7(s, a, b, c, d, e, f, g) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f, g)
+#define debug8(s, a, b, c, d, e, f, g, h) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f, g, h)
+#define debug9(s, a, b, c, d, e, f, g, h, i) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i)
+#define debug10(s, a, b, c, d, e, f, g, h, i, j) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j)
+#define debug11(s, a, b, c, d, e, f, g, h, i, j, k) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k)
+#define debug12(s, a, b, c, d, e, f, g, h, i, j, k, l) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l)
+#define debug13(s, a, b, c, d, e, f, g, h, i, j, k, l, m) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m)
+#define debug14(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m, n)
+#define debug15(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) fprintf(stderr, "[" __FILE__ ":%i] debug: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
+#else
+#define debug(s)
+#define debug1(s, a)
+#define debug2(s, a, b)
+#define debug3(s, a, b, c)
+#define debug4(s, a, b, c, d)
+#define debug5(s, a, b, c, d, e)
+#define debug6(s, a, b, c, d, e, f)
+#define debug7(s, a, b, c, d, e, f, g)
+#define debug8(s, a, b, c, d, e, f, g, h)
+#define debug9(s, a, b, c, d, e, f, g, h, i)
+#define debug10(s, a, b, c, d, e, f, g, h, i, j)
+#define debug11(s, a, b, c, d, e, f, g, h, i, j, k)
+#define debug12(s, a, b, c, d, e, f, g, h, i, j, k, l)
+#define debug13(s, a, b, c, d, e, f, g, h, i, j, k, l, m)
+#define debug14(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n)
+#define debug15(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
+#endif
+
+/* warning macros also here... */
+#ifndef NO_WARNING
+#define warning(s) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__)
+#define warning1(s, a) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a)
+#define warning2(s, a, b) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b)
+#define warning3(s, a, b, c) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c)
+#define warning4(s, a, b, c, d) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d)
+#define warning5(s, a, b, c, d, e) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e)
+#define warning6(s, a, b, c, d, e, f) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f)
+#define warning7(s, a, b, c, d, e, f, g) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f, g)
+#define warning8(s, a, b, c, d, e, f, g, h) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f, g, h)
+#define warning9(s, a, b, c, d, e, f, g, h, i) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i)
+#define warning10(s, a, b, c, d, e, f, g, h, i, j) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j)
+#define warning11(s, a, b, c, d, e, f, g, h, i, j, k) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k)
+#define warning12(s, a, b, c, d, e, f, g, h, i, j, k, l) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l)
+#define warning13(s, a, b, c, d, e, f, g, h, i, j, k, l, m) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m)
+#define warning14(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m, n)
+#define warning15(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) fprintf(stderr, "[" __FILE__ ":%i] warning: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
+#else
+#define warning(s)
+#define warning1(s, a)
+#define warning2(s, a, b)
+#define warning3(s, a, b, c)
+#define warning4(s, a, b, c, d)
+#define warning5(s, a, b, c, d, e)
+#define warning6(s, a, b, c, d, e, f)
+#define warning7(s, a, b, c, d, e, f, g)
+#define warning8(s, a, b, c, d, e, f, g, h)
+#define warning9(s, a, b, c, d, e, f, g, h, i)
+#define warning10(s, a, b, c, d, e, f, g, h, i, j)
+#define warning11(s, a, b, c, d, e, f, g, h, i, j, k)
+#define warning12(s, a, b, c, d, e, f, g, h, i, j, k, l)
+#define warning13(s, a, b, c, d, e, f, g, h, i, j, k, l, m)
+#define warning14(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n)
+#define warning15(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
+#endif
+
+/* error macros also here... */
+#ifndef NO_ERROR
+#define error(s) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__)
+#define error1(s, a) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a)
+#define error2(s, a, b) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b)
+#define error3(s, a, b, c) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c)
+#define error4(s, a, b, c, d) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d)
+#define error5(s, a, b, c, d, e) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e)
+#define error6(s, a, b, c, d, e, f) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f)
+#define error7(s, a, b, c, d, e, f, g) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f, g)
+#define error8(s, a, b, c, d, e, f, g, h) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f, g, h)
+#define error9(s, a, b, c, d, e, f, g, h, i) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i)
+#define error10(s, a, b, c, d, e, f, g, h, i, j) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j)
+#define error11(s, a, b, c, d, e, f, g, h, i, j, k) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k)
+#define error12(s, a, b, c, d, e, f, g, h, i, j, k, l) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l)
+#define error13(s, a, b, c, d, e, f, g, h, i, j, k, l, m) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m)
+#define error14(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m, n)
+#define error15(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) fprintf(stderr, "[" __FILE__ ":%i] error: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
+#else
+#define error(s)
+#define error1(s, a)
+#define error2(s, a, b)
+#define error3(s, a, b, c)
+#define error4(s, a, b, c, d)
+#define error5(s, a, b, c, d, e)
+#define error6(s, a, b, c, d, e, f)
+#define error7(s, a, b, c, d, e, f, g)
+#define error8(s, a, b, c, d, e, f, g, h)
+#define error9(s, a, b, c, d, e, f, g, h, i)
+#define error10(s, a, b, c, d, e, f, g, h, i, j)
+#define error11(s, a, b, c, d, e, f, g, h, i, j, k)
+#define error12(s, a, b, c, d, e, f, g, h, i, j, k, l)
+#define error13(s, a, b, c, d, e, f, g, h, i, j, k, l, m)
+#define error14(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n)
+#define error15(s, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)
+#endif
+
+/* ereturn macros also here... */
+#ifndef NO_ERETURN
+#define ereturn(rv, s) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__); return rv; }while(0)
+#define ereturn1(rv, s, a) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a); return rv; }while(0)
+#define ereturn2(rv, s, a, b) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b); return rv; }while(0)
+#define ereturn3(rv, s, a, b, c) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c); return rv; }while(0)
+#define ereturn4(rv, s, a, b, c, d) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d); return rv; }while(0)
+#define ereturn5(rv, s, a, b, c, d, e) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e); return rv; }while(0)
+#define ereturn6(rv, s, a, b, c, d, e, f) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f); return rv; }while(0)
+#define ereturn7(rv, s, a, b, c, d, e, f, g) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f, g); return rv; }while(0)
+#define ereturn8(rv, s, a, b, c, d, e, f, g, h) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f, g, h); return rv; }while(0)
+#define ereturn9(rv, s, a, b, c, d, e, f, g, h, i) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i); return rv; }while(0)
+#define ereturn10(rv, s, a, b, c, d, e, f, g, h, i, j) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j); return rv; }while(0)
+#define ereturn11(rv, s, a, b, c, d, e, f, g, h, i, j, k) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k); return rv; }while(0)
+#define ereturn12(rv, s, a, b, c, d, e, f, g, h, i, j, k, l) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l); return rv; }while(0)
+#define ereturn13(rv, s, a, b, c, d, e, f, g, h, i, j, k, l, m) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m); return rv; }while(0)
+#define ereturn14(rv, s, a, b, c, d, e, f, g, h, i, j, k, l, m, n) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m, n); return rv; }while(0)
+#define ereturn15(rv, s, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) do{ fprintf(stderr, "[" __FILE__ ":%i] ereturn: " s "\n", __LINE__, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o); return rv; }while(0)
+#else
+#define ereturn(rv, s) return rv
+#define ereturn1(rv, s, a) return rv
+#define ereturn2(rv, s, a, b) return rv
+#define ereturn3(rv, s, a, b, c) return rv
+#define ereturn4(rv, s, a, b, c, d) return rv
+#define ereturn5(rv, s, a, b, c, d, e) return rv
+#define ereturn6(rv, s, a, b, c, d, e, f) return rv
+#define ereturn7(rv, s, a, b, c, d, e, f, g) return rv
+#define ereturn8(rv, s, a, b, c, d, e, f, g, h) return rv
+#define ereturn9(rv, s, a, b, c, d, e, f, g, h, i) return rv
+#define ereturn10(rv, s, a, b, c, d, e, f, g, h, i, j) return rv
+#define ereturn11(rv, s, a, b, c, d, e, f, g, h, i, j, k) return rv
+#define ereturn12(rv, s, a, b, c, d, e, f, g, h, i, j, k, l) return rv
+#define ereturn13(rv, s, a, b, c, d, e, f, g, h, i, j, k, l, m) return rv
+#define ereturn14(rv, s, a, b, c, d, e, f, g, h, i, j, k, l, m, n) return rv
+#define ereturn15(rv, s, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) return rv
+#endif
diff --git a/src/libmpg123/decode.h b/src/libmpg123/decode.h
new file mode 100644
index 0000000..fb5ed2c
--- /dev/null
+++ b/src/libmpg123/decode.h
@@ -0,0 +1,259 @@
+/*
+ decode.h: common definitions for decode functions
+
+ This file is strongly tied with optimize.h concerning the synth functions.
+ Perhaps one should restructure that a bit.
+
+ copyright 2007-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis, taking WRITE_SAMPLE from decode.c
+*/
+#ifndef MPG123_DECODE_H
+#define MPG123_DECODE_H
+
+/* Selection of class of output routines for basic format. */
+#ifndef REAL_IS_FIXED
+#define OUT_FORMATS 4 /* Basic output formats: 16bit, 8bit, real and s32 */
+#else
+#define OUT_FORMATS 2 /* Only up to 16bit */
+#endif
+
+#define OUT_16 0
+#define OUT_8 1
+/* Those are defined but not supported for fixed point decoding! */
+#define OUT_REAL 2 /* Write a floating point sample (that is, one matching the internal real type). */
+#define OUT_S32 3
+
+#ifdef NO_NTOM
+#define NTOM_MAX 1
+#else
+#define NTOM_MAX 8 /* maximum allowed factor for upsampling */
+#define NTOM_MAX_FREQ 96000 /* maximum frequency to upsample to / downsample from */
+#define NTOM_MUL (32768)
+#endif
+
+/* Let's collect all possible synth functions here, for an overview.
+ If they are actually defined and used depends on preprocessor machinery.
+ See synth.c and optimize.h for that, also some special C and assembler files. */
+
+/* The call of left and right plain synth, wrapped.
+ This may be replaced by a direct stereo optimized synth. */
+int synth_stereo_wrap(real*, real*, mpg123_handle*);
+
+#ifndef NO_16BIT
+/* The signed-16bit-producing variants. */
+int synth_1to1 (real*, int, mpg123_handle*, int);
+int synth_1to1_dither (real*, int, mpg123_handle*, int);
+int synth_1to1_i386 (real*, int, mpg123_handle*, int);
+int synth_1to1_i586 (real*, int, mpg123_handle*, int);
+int synth_1to1_i586_dither(real*, int, mpg123_handle*, int);
+int synth_1to1_mmx (real*, int, mpg123_handle*, int);
+int synth_1to1_3dnow (real*, int, mpg123_handle*, int);
+int synth_1to1_sse (real*, int, mpg123_handle*, int);
+int synth_1to1_stereo_sse (real*, real*, mpg123_handle*);
+int synth_1to1_3dnowext (real*, int, mpg123_handle*, int);
+int synth_1to1_altivec (real*, int, mpg123_handle*, int);
+int synth_1to1_stereo_altivec(real*, real*, mpg123_handle*);
+int synth_1to1_x86_64 (real*, int, mpg123_handle*, int);
+int synth_1to1_stereo_x86_64(real*, real*, mpg123_handle*);
+/* This is different, special usage in layer3.c only.
+ Hence, the name... and now forget about it.
+ Never use it outside that special portion of code inside layer3.c! */
+int absynth_1to1_i486(real*, int, mpg123_handle*, int);
+/* These mono/stereo converters use one of the above for the grunt work. */
+int synth_1to1_mono (real*, mpg123_handle*);
+int synth_1to1_mono2stereo(real*, mpg123_handle*);
+
+/* Sample rate decimation comes in less flavours. */
+#ifndef NO_DOWNSAMPLE
+int synth_2to1 (real*, int, mpg123_handle*, int);
+int synth_2to1_dither (real*, int, mpg123_handle*, int);
+int synth_2to1_i386 (real*, int, mpg123_handle*, int);
+int synth_2to1_mono (real*, mpg123_handle*);
+int synth_2to1_mono2stereo(real*, mpg123_handle*);
+int synth_4to1 (real *,int, mpg123_handle*, int);
+int synth_4to1_dither (real *,int, mpg123_handle*, int);
+int synth_4to1_i386 (real*, int, mpg123_handle*, int);
+int synth_4to1_mono (real*, mpg123_handle*);
+int synth_4to1_mono2stereo(real*, mpg123_handle*);
+#endif
+#ifndef NO_NTOM
+/* NtoM is really just one implementation. */
+int synth_ntom (real *,int, mpg123_handle*, int);
+int synth_ntom_mono (real *, mpg123_handle *);
+int synth_ntom_mono2stereo (real *, mpg123_handle *);
+#endif
+#endif
+
+#ifndef NO_8BIT
+/* The 8bit-producing variants. */
+/* There are direct 8-bit synths and wrappers over a possibly optimized 16bit one. */
+int synth_1to1_8bit (real*, int, mpg123_handle*, int);
+int synth_1to1_8bit_i386 (real*, int, mpg123_handle*, int);
+#ifndef NO_16BIT
+int synth_1to1_8bit_wrap (real*, int, mpg123_handle*, int);
+int synth_1to1_8bit_mono (real*, mpg123_handle*);
+#endif
+int synth_1to1_8bit_mono2stereo(real*, mpg123_handle*);
+#ifndef NO_16BIT
+int synth_1to1_8bit_wrap_mono (real*, mpg123_handle*);
+int synth_1to1_8bit_wrap_mono2stereo(real*, mpg123_handle*);
+#endif
+#ifndef NO_DOWNSAMPLE
+int synth_2to1_8bit (real*, int, mpg123_handle*, int);
+int synth_2to1_8bit_i386 (real*, int, mpg123_handle*, int);
+int synth_2to1_8bit_mono (real*, mpg123_handle*);
+int synth_2to1_8bit_mono2stereo(real*, mpg123_handle*);
+int synth_4to1_8bit (real*, int, mpg123_handle*, int);
+int synth_4to1_8bit_i386 (real*, int, mpg123_handle*, int);
+int synth_4to1_8bit_mono (real*, mpg123_handle*);
+int synth_4to1_8bit_mono2stereo(real*, mpg123_handle*);
+#endif
+#ifndef NO_NTOM
+int synth_ntom_8bit (real*, int, mpg123_handle*, int);
+int synth_ntom_8bit_mono (real*, mpg123_handle*);
+int synth_ntom_8bit_mono2stereo(real*, mpg123_handle*);
+void ntom_set_ntom(mpg123_handle *fr, off_t num);
+#endif
+#endif
+
+#ifndef REAL_IS_FIXED
+
+#ifndef NO_REAL
+/* The real-producing variants. */
+int synth_1to1_real (real*, int, mpg123_handle*, int);
+int synth_1to1_real_i386 (real*, int, mpg123_handle*, int);
+int synth_1to1_real_sse (real*, int, mpg123_handle*, int);
+int synth_1to1_real_stereo_sse (real*, real*, mpg123_handle*);
+int synth_1to1_real_x86_64 (real*, int, mpg123_handle*, int);
+int synth_1to1_real_stereo_x86_64(real*, real*, mpg123_handle*);
+int synth_1to1_real_altivec (real*, int, mpg123_handle*, int);
+int synth_1to1_real_stereo_altivec(real*, real*, mpg123_handle*);
+int synth_1to1_real_mono (real*, mpg123_handle*);
+int synth_1to1_real_mono2stereo(real*, mpg123_handle*);
+#ifndef NO_DOWNSAMPLE
+int synth_2to1_real (real*, int, mpg123_handle*, int);
+int synth_2to1_real_i386 (real*, int, mpg123_handle*, int);
+int synth_2to1_real_mono (real*, mpg123_handle*);
+int synth_2to1_real_mono2stereo(real*, mpg123_handle*);
+int synth_4to1_real (real*, int, mpg123_handle*, int);
+int synth_4to1_real_i386 (real*, int, mpg123_handle*, int);
+int synth_4to1_real_mono (real*, mpg123_handle*);
+int synth_4to1_real_mono2stereo(real*, mpg123_handle*);
+#endif
+#ifndef NO_NTOM
+int synth_ntom_real (real*, int, mpg123_handle*, int);
+int synth_ntom_real_mono (real*, mpg123_handle*);
+int synth_ntom_real_mono2stereo(real*, mpg123_handle*);
+#endif
+#endif
+
+#ifndef NO_32BIT
+/* 32bit integer */
+int synth_1to1_s32 (real*, int, mpg123_handle*, int);
+int synth_1to1_s32_i386 (real*, int, mpg123_handle*, int);
+int synth_1to1_s32_sse (real*, int, mpg123_handle*, int);
+int synth_1to1_s32_stereo_sse (real*, real*, mpg123_handle*);
+int synth_1to1_s32_x86_64 (real*, int, mpg123_handle*, int);
+int synth_1to1_s32_stereo_x86_64(real*, real*, mpg123_handle*);
+int synth_1to1_s32_altivec (real*, int, mpg123_handle*, int);
+int synth_1to1_s32_stereo_altivec(real*, real*, mpg123_handle*);
+int synth_1to1_s32_mono (real*, mpg123_handle*);
+int synth_1to1_s32_mono2stereo(real*, mpg123_handle*);
+#ifndef NO_DOWNSAMPLE
+int synth_2to1_s32 (real*, int, mpg123_handle*, int);
+int synth_2to1_s32_i386 (real*, int, mpg123_handle*, int);
+int synth_2to1_s32_mono (real*, mpg123_handle*);
+int synth_2to1_s32_mono2stereo(real*, mpg123_handle*);
+int synth_4to1_s32 (real*, int, mpg123_handle*, int);
+int synth_4to1_s32_i386 (real*, int, mpg123_handle*, int);
+int synth_4to1_s32_mono (real*, mpg123_handle*);
+int synth_4to1_s32_mono2stereo(real*, mpg123_handle*);
+#endif
+#ifndef NO_NTOM
+int synth_ntom_s32 (real*, int, mpg123_handle*, int);
+int synth_ntom_s32_mono (real*, mpg123_handle*);
+int synth_ntom_s32_mono2stereo(real*, mpg123_handle*);
+#endif
+#endif
+
+#endif /* FIXED */
+
+
+/* Inside these synth functions, some dct64 variants may be used.
+ The special optimized ones that only appear in assembler code are not mentioned here.
+ And, generally, these functions are only employed in a matching synth function. */
+void dct64 (real *,real *,real *);
+void dct64_i386 (real *,real *,real *);
+void dct64_altivec(real *,real *,real *);
+void dct64_i486(int*, int* , real*); /* Yeah, of no use outside of synth_i486.c .*/
+
+/* This is used by the layer 3 decoder, one generic function and 3DNow variants. */
+void dct36 (real *,real *,real *,real *,real *);
+void dct36_3dnow (real *,real *,real *,real *,real *);
+void dct36_3dnowext(real *,real *,real *,real *,real *);
+
+/* Tools for NtoM resampling synth, defined in ntom.c . */
+int synth_ntom_set_step(mpg123_handle *fr); /* prepare ntom decoding */
+unsigned long ntom_val(mpg123_handle *fr, off_t frame); /* compute ntom_val for frame offset */
+/* Frame and sample offsets. */
+#ifndef NO_NTOM
+off_t ntom_frmouts(mpg123_handle *fr, off_t frame);
+off_t ntom_ins2outs(mpg123_handle *fr, off_t ins);
+off_t ntom_frameoff(mpg123_handle *fr, off_t soff);
+#endif
+
+/* Initialization of any static data that majy be needed at runtime.
+ Make sure you call these once before it is too late. */
+#ifndef NO_LAYER3
+void init_layer3(void);
+real init_layer3_gainpow2(mpg123_handle *fr, int i);
+void init_layer3_stuff(mpg123_handle *fr, real (*gainpow2)(mpg123_handle *fr, int i));
+#endif
+#ifndef NO_LAYER12
+void init_layer12(void);
+real* init_layer12_table(mpg123_handle *fr, real *table, double m);
+void init_layer12_stuff(mpg123_handle *fr, real* (*init_table)(mpg123_handle *fr, real *table, double m));
+#endif
+
+void prepare_decode_tables(void);
+
+extern real *pnts[5]; /* tabinit provides, dct64 needs */
+
+/* Runtime (re)init functions; needed more often. */
+void make_decode_tables(mpg123_handle *fr); /* For every volume change. */
+/* Stuff needed after updating synth setup (see set_synth_functions()). */
+
+#ifdef OPT_MMXORSSE
+/* Special treatment for mmx-like decoders, these functions go into the slots below. */
+void make_decode_tables_mmx(mpg123_handle *fr);
+#ifndef NO_LAYER3
+real init_layer3_gainpow2_mmx(mpg123_handle *fr, int i);
+#endif
+#ifndef NO_LAYER12
+real* init_layer12_table_mmx(mpg123_handle *fr, real *table, double m);
+#endif
+#endif
+
+#ifndef NO_8BIT
+/* Needed when switching to 8bit output. */
+int make_conv16to8_table(mpg123_handle *fr);
+#endif
+
+/* These are the actual workers.
+ They operate on the parsed frame data and handle decompression to audio samples.
+ The synth functions defined above are called from inside the layer handlers. */
+
+#ifndef NO_LAYER3
+int do_layer3(mpg123_handle *fr);
+#endif
+#ifndef NO_LAYER2
+int do_layer2(mpg123_handle *fr);
+#endif
+#ifndef NO_LAYER1
+int do_layer1(mpg123_handle *fr);
+#endif
+/* There's an 3DNow counterpart in asm. */
+void do_equalizer(real *bandPtr,int channel, real equalizer[2][32]);
+
+#endif
diff --git a/src/libmpg123/dnoise.dat b/src/libmpg123/dnoise.dat
new file mode 100644
index 0000000..f1855ae
--- /dev/null
+++ b/src/libmpg123/dnoise.dat
@@ -0,0 +1,65536 @@
+-.126371
+.497872
+-.779434
+.843073
+-.646505
+.245335
+.222073
+-.581612
+.695388
+-.530708
+.185041
+.158622
+-.331470
+.278622
+-.092817
+-.048841
+.011484
+.193124
+-.404798
+.427858
+-.181552
+-.226995
+.570757
+-.665446
+.501044
+-.236217
+.058892
+-.027609
+.026705
+.123418
+-.489333
+.929757
+-1.170636
+1.002794
+-.453246
+-.206738
+.632205
+-.633397
+.294532
+.104633
+-.302673
+.242320
+-.089727
+.081029
+-.324990
+.717858
+-1.029248
+1.079430
+-.865108
+.545086
+-.315316
+.279339
+-.403600
+.567323
+-.649849
+.592073
+-.408065
+.162572
+.060177
+-.184770
+.170196
+-.029769
+-.166320
+.316669
+-.336468
+.202805
+.031615
+-.267881
+.415993
+-.441208
+.374135
+-.283867
+.237228
+-.269021
+.372174
+-.501860
+.588166
+-.561109
+.389184
+-.113668
+-.154052
+.288390
+-.230394
+.033172
+.169925
+-.254336
+.180427
+.001239
+-.207596
+.381351
+-.497008
+.525549
+-.416073
+.133741
+.274462
+-.657655
+.824427
+-.655465
+.181011
+.434058
+-.978169
+1.285011
+-1.277038
+.964366
+-.433292
+-.163679
+.640509
+-.853299
+.787458
+-.582884
+.449365
+-.512563
+.704562
+-.798259
+.577758
+-.023201
+-.637865
+1.068069
+-1.056910
+.681034
+-.259306
+.124050
+-.373801
+.794477
+-1.013669
+.775175
+-.129223
+-.599158
+1.031099
+-.974601
+.517839
+.066833
+-.512471
+.700553
+-.680405
+.587045
+-.534422
+.550606
+-.576378
+.514289
+-.298390
+-.051238
+.423241
+-.671410
+.704669
+-.549354
+.333014
+-.194403
+.184374
+-.232905
+.206095
+-.008017
+-.348208
+.743970
+-1.019454
+1.049885
+-.795487
+.316931
+.236503
+-.666516
+.797240
+-.561812
+.056286
+.489703
+-.828997
+.835407
+-.572158
+.239403
+-.035552
+.028771
+-.126091
+.156077
+-.002708
+-.304050
+.602824
+-.710860
+.555917
+-.239252
+-.018276
+.017531
+.282194
+-.725074
+1.049196
+-1.048341
+.699686
+-.177881
+-.246852
+.355969
+-.086717
+-.456173
+1.068131
+-1.539105
+1.723683
+-1.568057
+1.105834
+-.444760
+-.248736
+.779518
+-.982741
+.800518
+-.332841
+-.187653
+.507058
+-.492466
+.211669
+.113055
+-.253987
+.128636
+.153526
+-.377464
+.374412
+-.128717
+-.227781
+.516816
+-.630938
+.590884
+-.517150
+.545354
+-.739329
+1.047802
+-1.323966
+1.397959
+-1.168752
+.669202
+-.066645
+-.409525
+.580521
+-.410935
+.026572
+.356685
+-.553327
+.504346
+-.288332
+.043253
+.141181
+-.277205
+.436716
+-.651000
+.844066
+-.869754
+.635648
+-.215008
+-.157355
+.226196
+.096190
+-.635057
+1.036336
+-.990329
+.451464
+.299472
+-.807388
+.722275
+-.027316
+-.935817
+1.664935
+-1.792102
+1.287557
+-.451326
+-.286585
+.618143
+-.505490
+.152416
+.157551
+-.240544
+.102379
+.099415
+-.179993
+.051984
+.226031
+-.500686
+.633198
+-.588798
+.445032
+-.317995
+.269202
+-.269536
+.248552
+-.182288
+.135708
+-.212630
+.448683
+-.739797
+.880135
+-.697185
+.191455
+.424851
+-.828880
+.772228
+-.236914
+-.534490
+1.158070
+-1.314780
+.930502
+-.226757
+-.393937
+.571055
+-.192762
+-.537378
+1.218571
+-1.487907
+1.229142
+-.628217
+.047183
+.196134
+-.002984
+-.476145
+.954564
+-1.178012
+1.043978
+-.617449
+.062058
+.451735
+-.808485
+.964828
+-.938582
+.790698
+-.605411
+.463329
+-.409224
+.430645
+-.465883
+.442322
+-.322865
+.131314
+.058113
+-.158472
+.113045
+.075994
+-.343025
+.580166
+-.678519
+.574712
+-.281691
+-.113686
+.486386
+-.724084
+.768183
+-.628861
+.372934
+-.093638
+-.124324
+.231160
+-.219429
+.112956
+.050462
+-.226928
+.362720
+-.395747
+.279793
+-.024831
+-.282393
+.510873
+-.563079
+.442322
+-.249115
+.100163
+-.032927
+-.020319
+.160193
+-.409025
+.663533
+-.766234
+.647766
+-.419203
+.320701
+-.544970
+1.065059
+-1.610836
+1.833730
+-1.553197
+.903052
+-.259697
+-.007328
+-.212963
+.698974
+-1.051706
+.966280
+-.430702
+-.275602
+.767679
+-.792826
+.371346
+.230092
+-.659509
+.676170
+-.279738
+-.289389
+.677696
+-.612296
+.059468
+.744351
+-1.415615
+1.633517
+-1.310116
+.618659
+.125613
+-.641087
+.797705
+-.624972
+.244521
+.200689
+-.580801
+.792009
+-.778689
+.563061
+-.245811
+-.048662
+.255707
+-.416065
+.636467
+-.985799
+1.405228
+-1.706730
+1.672335
+-1.194345
+.367253
+.531114
+-1.167965
+1.328168
+-1.033785
+.534288
+-.161470
+.130608
+-.412598
+.763537
+-.892412
+.650136
+-.110037
+-.506462
+.990219
+-1.265662
+1.392091
+-1.463807
+1.502231
+-1.428187
+1.130763
+-.575290
+-.131447
+.766594
+-1.094440
+.988759
+-.506066
+-.132718
+.647549
+-.840015
+.693105
+-.370183
+.110418
+-.083722
+.297888
+-.616739
+.869546
+-.967642
+.943438
+-.891181
+.867534
+-.838194
+.714985
+-.449887
+.104667
+.165938
+-.209080
+-.023751
+.441613
+-.868145
+1.141624
+-1.192608
+1.058257
+-.840340
+.643364
+-.524861
+.474193
+-.425268
+.302863
+-.085859
+-.152176
+.268761
+-.148889
+-.186358
+.549277
+-.681526
+.428213
+.134062
+-.721509
+1.019052
+-.887599
+.451604
+-.001794
+-.212825
+.146477
+.045285
+-.159039
+.121305
+-.050041
+.156332
+-.567752
+1.211385
+-1.841873
+2.186326
+-2.095567
+1.601731
+-.866160
+.082809
+.585382
+-1.015759
+1.120463
+-.871128
+.346640
+.255073
+-.689651
+.801037
+-.626363
+.379712
+-.308040
+.514921
+-.883995
+1.165453
+-1.164216
+.885950
+-.525427
+.303936
+-.284000
+.312088
+-.143421
+-.341842
+.999944
+-1.480440
+1.452371
+-.841920
+-.091956
+.905720
+-1.243410
+1.043876
+-.544013
+.088666
+.104874
+-.059335
+-.036917
+.011546
+.152849
+-.322889
+.341940
+-.168819
+-.082418
+.226453
+-.143899
+-.133743
+.451565
+-.644967
+.652353
+-.544854
+.456003
+-.468467
+.544916
+-.555947
+.384552
+-.029689
+-.369447
+.608910
+-.544448
+.180984
+.328957
+-.768386
+.962414
+-.848542
+.488615
+-.036194
+-.319074
+.419543
+-.209805
+-.218671
+.647677
+-.830564
+.627034
+-.091921
+-.545405
+1.004111
+-1.098973
+.820335
+-.308723
+-.240546
+.669917
+-.897878
+.904382
+-.702341
+.330260
+.134447
+-.571624
+.851422
+-.896608
+.730999
+-.469036
+.242118
+-.111680
+.038244
+.064536
+-.233955
+.406047
+-.460742
+.332000
+-.086600
+-.106043
+.098374
+.116018
+-.389234
+.525811
+-.425894
+.154290
+.111027
+-.203706
+.073183
+.196870
+-.451806
+.557485
+-.464065
+.217680
+.073077
+-.293398
+.375712
+-.328123
+.223963
+-.156283
+.182045
+-.288072
+.398408
+-.418353
+.291616
+-.042398
+-.219641
+.341600
+-.208667
+-.171333
+.634521
+-.920253
+.810839
+-.275652
+-.477942
+1.094327
+-1.255779
+.853991
+-.044561
+-.840078
+1.457267
+-1.601629
+1.265814
+-.609276
+-.122629
+.682685
+-.887867
+.668919
+-.102846
+-.591799
+1.123047
+-1.252539
+.925260
+-.317176
+-.250328
+.493810
+-.337583
+-.044739
+.347126
+-.327706
+-.046634
+.595021
+-1.044198
+1.185353
+-.971055
+.515207
+-.021765
+-.308064
+.353022
+-.116044
+-.276426
+.627639
+-.764058
+.624909
+-.291646
+-.067457
+.304359
+-.377220
+.356467
+-.351534
+.415600
+-.499381
+.487763
+-.292859
+-.063127
+.437589
+-.645581
+.579737
+-.290667
+-.034326
+.188131
+-.081413
+-.193407
+.418649
+-.392865
+.064960
+.425936
+-.830973
+.943858
+-.732277
+.364261
+-.105132
+.140695
+-.439890
+.759009
+-.802184
+.436993
+.192156
+-.749808
+.944502
+-.739487
+.373420
+-.169415
+.280941
+-.577621
+.762562
+-.625049
+.221936
+.159477
+-.228902
+-.068902
+.491491
+-.660812
+.331401
+.427909
+-1.263737
+1.753887
+-1.661433
+1.063673
+-.284554
+-.311289
+.524205
+-.400098
+.152814
+.000831
+.024832
+-.164273
+.290136
+-.331264
+.327050
+-.383008
+.570581
+-.854593
+1.104448
+-1.177109
+1.006895
+-.639477
+.194828
+.203307
+-.479882
+.615899
+-.623115
+.517761
+-.316398
+.052591
+.205826
+-.361960
+.326457
+-.071748
+-.329229
+.713980
+-.900912
+.788143
+-.419879
+-.029883
+.355239
+-.436436
+.298387
+-.070931
+-.114130
+.208693
+-.254976
+.318693
+-.412097
+.473227
+-.416822
+.214036
+.063603
+-.271802
+.276965
+-.042089
+-.340042
+.690092
+-.839610
+.726656
+-.430764
+.121686
+.049591
+-.047432
+-.031360
+.035101
+.124440
+-.400909
+.644842
+-.713888
+.575514
+-.322630
+.096578
+.013152
+-.010922
+-.043259
+.102322
+-.163330
+.241401
+-.326364
+.374773
+-.347347
+.253156
+-.155689
+.134088
+-.232258
+.432746
+-.665160
+.833455
+-.846793
+.649700
+-.250874
+-.263652
+.751424
+-1.070271
+1.140694
+-.975397
+.660284
+-.309355
+.028465
+.099423
+-.024506
+-.246477
+.626578
+-.962104
+1.100112
+-.975528
+.649942
+-.264381
+-.059637
+.289311
+-.464241
+.618969
+-.724111
+.705307
+-.521791
+.228780
+.036842
+-.137976
+.020887
+.258619
+-.575388
+.805269
+-.883310
+.827107
+-.721062
+.666692
+-.716213
+.826535
+-.873709
+.735604
+-.394343
+-.020124
+.291573
+-.252174
+-.102241
+.599796
+-.991718
+1.093305
+-.874595
+.453732
+-.014581
+-.289499
+.394402
+-.331127
+.193321
+-.087056
+.079568
+-.165102
+.270096
+-.307337
+.252447
+-.182961
+.231172
+-.469057
+.816267
+-1.067345
+1.044785
+-.764925
+.466107
+-.445726
+.817137
+-1.383623
+1.748763
+-1.595159
+.922294
+-.061379
+-.542436
+.615714
+-.205097
+-.399097
+.881831
+-1.092023
+1.077639
+-.975025
+.867492
+-.731467
+.498781
+-.162509
+-.178186
+.379277
+-.369241
+.220551
+-.107283
+.172762
+-.406348
+.629314
+-.612433
+.249310
+.338060
+-.846355
+.972771
+-.617145
+-.032780
+.600043
+-.746601
+.386403
+.256532
+-.784731
+.870020
+-.445768
+-.268976
+.915043
+-1.203731
+1.059589
+-.623752
+.141269
+.182059
+-.269220
+.172855
+-.008117
+-.129451
+.210069
+-.258417
+.302920
+-.330486
+.287292
+-.128816
+-.121732
+.361859
+-.469078
+.394170
+-.214734
+.093875
+-.162012
+.406885
+-.663390
+.723732
+-.491897
+.064450
+.327834
+-.474959
+.320895
+.022322
+-.378511
+.635648
+-.795615
+.917141
+-1.016394
+1.019779
+-.813605
+.350780
+.273418
+-.841845
+1.126313
+-1.017729
+.590333
+-.058643
+-.345717
+.499637
+-.441121
+.322034
+-.298458
+.431822
+-.660216
+.849055
+-.880159
+.720260
+-.431131
+.123961
+.105120
+-.214306
+.208351
+-.100351
+-.114623
+.440820
+-.829259
+1.145886
+-1.213623
+.923573
+-.340590
+-.289546
+.661411
+-.590929
+.132205
+.454372
+-.863841
+.929048
+-.703966
+.400286
+-.228318
+.251690
+-.350402
+.312806
+.007098
+-.572131
+1.162878
+-1.497817
+1.394627
+-.870285
+.122760
+.580750
+-1.028903
+1.132477
+-.917120
+.479999
+.047192
+-.519970
+.808986
+-.846259
+.667735
+-.410196
+.243936
+-.273427
+.470404
+-.688768
+.757221
+-.593355
+.267412
+.028232
+-.091791
+-.156209
+.605217
+-1.004469
+1.112847
+-.859761
+.404783
+-.041174
+-.003764
+-.264562
+.598731
+-.673303
+.309215
+.401547
+-1.157364
+1.641678
+-1.705791
+1.418602
+-.974983
+.558513
+-.265421
+.120322
+-.129348
+.297804
+-.594940
+.915478
+-1.098386
+1.010987
+-.641185
+.122715
+.334966
+-.569442
+.558987
+-.424526
+.339881
+-.409981
+.597664
+-.747025
+.688491
+-.356512
+-.158509
+.658171
+-.951136
+.958656
+-.745797
+.467615
+-.274757
+.239728
+-.339133
+.486582
+-.586261
+.579078
+-.467582
+.315632
+-.221506
+.269172
+-.474973
+.760398
+-.975954
+.973743
+-.690864
+.192410
+.356026
+-.772543
+.949729
+-.900134
+.733633
+-.583325
+.523436
+-.525331
+.478425
+-.268967
+-.127116
+.598335
+-.940496
+.973332
+-.658561
+.133762
+.369268
+-.668722
+.736605
+-.688751
+.674695
+-.756061
+.865415
+-.870559
+.688613
+-.363137
+.049877
+.075865
+.071788
+-.431807
+.823065
+-1.038807
+.955526
+-.596866
+.118791
+.274354
+-.436421
+.350777
+-.128100
+-.067161
+.119981
+-.035890
+-.067142
+.045999
+.155266
+-.448546
+.649838
+-.607867
+.322344
+.041586
+-.263861
+.228872
+-.013125
+-.171139
+.138699
+.123717
+-.445500
+.605721
+-.507377
+.252150
+-.054281
+.064718
+-.251054
+.432242
+-.435885
+.242430
+.004844
+-.127050
+.058282
+.113901
+-.244058
+.265755
+-.241002
+.279204
+-.406938
+.517508
+-.456691
+.173850
+.198372
+-.416717
+.304491
+.105234
+-.575120
+.817256
+-.683192
+.256697
+.209879
+-.463639
+.407055
+-.141686
+-.120206
+.209269
+-.111371
+-.036117
+.056245
+.132113
+-.455004
+.738924
+-.831891
+.695433
+-.407892
+.095410
+.144420
+-.276075
+.316568
+-.311501
+.313140
+-.354244
+.416890
+-.422025
+.270441
+.074684
+-.526041
+.897210
+-1.015672
+.842516
+-.499020
+.171551
+.030642
+-.146657
+.306201
+-.595179
+.962286
+-1.245916
+1.295508
+-1.081126
+.700356
+-.285323
+-.099657
+.476437
+-.875218
+1.241929
+-1.431463
+1.310947
+-.891512
+.366863
+-.005617
+-.031304
+-.194777
+.450450
+-.509341
+.318669
+-.023303
+-.165326
+.142850
+.012307
+-.116057
+.039768
+.174585
+-.333380
+.228331
+.207951
+-.834385
+1.364494
+-1.518036
+1.172248
+-.431292
+-.417212
+1.034792
+-1.191249
+.875492
+-.299263
+-.217953
+.429268
+-.301802
+.025015
+.127076
+.012276
+-.394095
+.806780
+-1.043587
+1.048174
+-.924980
+.818928
+-.778188
+.723077
+-.543930
+.233090
+.075025
+-.199677
+.066336
+.217387
+-.432228
+.409344
+-.151076
+-.184965
+.416687
+-.467639
+.391133
+-.283283
+.176900
+-.017769
+-.258219
+.624694
+-.942099
+1.044431
+-.868458
+.517675
+-.204333
+.112470
+-.284888
+.611869
+-.915314
+1.054162
+-.979808
+.727258
+-.379226
+.039545
+.184125
+-.210794
+.032270
+.259758
+-.504564
+.558015
+-.378406
+.050077
+.271750
+-.452459
+.442826
+-.283869
+.066321
+.116858
+-.198305
+.145301
+.035784
+-.293010
+.530312
+-.632053
+.512656
+-.170955
+-.285003
+.669622
+-.804852
+.619735
+-.205060
+-.220618
+.427814
+-.313197
+-.029399
+.357015
+-.422249
+.124783
+.426866
+-.980676
+1.285697
+-1.222558
+.847610
+-.342968
+-.081648
+.278461
+-.210017
+-.049320
+.352640
+-.549652
+.561496
+-.422917
+.258953
+-.201742
+.299498
+-.482371
+.609926
+-.562707
+.309754
+.088441
+-.525716
+.898143
+-1.125803
+1.158252
+-.986273
+.658672
+-.277931
+-.041854
+.233335
+-.304836
+.313730
+-.306201
+.274504
+-.167333
+-.056101
+.372723
+-.686676
+.875548
+-.864011
+.676555
+-.431590
+.275262
+-.293007
+.454948
+-.632119
+.675175
+-.507616
+.176505
+.169068
+-.358550
+.294113
+-.006279
+-.359251
+.615854
+-.630706
+.387357
+.015235
+-.421784
+.699343
+-.791669
+.725989
+-.578780
+.427831
+-.317745
+.252718
+-.212435
+.175990
+-.137676
+.106774
+-.094368
+.098810
+-.100976
+.073057
+.006375
+-.142302
+.325267
+-.541313
+.778582
+-1.022235
+1.240814
+-1.378523
+1.367406
+-1.161542
+.778153
+-.318791
+-.051722
+.170870
+.038593
+-.514572
+1.069342
+-1.473991
+1.570776
+-1.349059
+.940323
+-.539828
+.306654
+-.300306
+.479036
+-.742283
+.981081
+-1.110657
+1.083779
+-.894245
+.576321
+-.196482
+-.165455
+.439992
+-.585456
+.593641
+-.487724
+.320186
+-.170138
+.129661
+-.270644
+.599909
+-1.029764
+1.394669
+-1.521270
+1.322157
+-.857043
+.314362
+.087627
+-.225309
+.138654
+.005851
+-.038163
+-.092435
+.286070
+-.380001
+.289860
+-.092329
+-.022898
+-.099272
+.445759
+-.824991
+.993879
+-.828842
+.413001
+.022589
+-.255005
+.207553
+.022108
+-.248469
+.326430
+-.233274
+.062357
+.051383
+-.019135
+-.150237
+.356854
+-.466509
+.388746
+-.136404
+-.169770
+.363775
+-.335023
+.104683
+.180737
+-.346056
+.315050
+-.177286
+.137148
+-.369718
+.878869
+-1.458996
+1.795941
+-1.650661
+1.012486
+-.126298
+-.626793
+.927206
+-.680170
+.053978
+.622507
+-1.037653
+1.046285
+-.712487
+.237690
+.167528
+-.387699
+.432696
+-.396343
+.384227
+-.454948
+.598305
+-.750330
+.830445
+-.783369
+.608248
+-.361498
+.131084
+.004466
+-.008442
+-.106326
+.291594
+-.482222
+.606105
+-.591277
+.386474
+.002125
+-.481882
+.888868
+-1.059688
+.925105
+-.560939
+.150254
+.127323
+-.206099
+.165933
+-.162594
+.308410
+-.590654
+.884120
+-1.042306
+.996308
+-.790537
+.537674
+-.335780
+.212223
+-.130261
+.040124
+.075285
+-.198047
+.309149
+-.417683
+.550934
+-.711807
+.847520
+-.868410
+.712931
+-.410214
+.086215
+.100619
+-.056309
+-.182961
+.462160
+-.594302
+.473966
+-.148668
+-.201714
+.373232
+-.270681
+-.024302
+.303310
+-.372952
+.190864
+.103034
+-.286269
+.215294
+.065693
+-.343818
+.370732
+-.023498
+-.604514
+1.232847
+-1.527338
+1.271319
+-.490821
+-.533027
+1.382690
+-1.705096
+1.391742
+-.633061
+-.192174
+.729938
+-.834421
+.608782
+-.288889
+.065827
+.021201
+-.055577
+.125187
+-.230018
+.295264
+-.266293
+.185280
+-.168070
+.296549
+-.525245
+.692595
+-.636416
+.321086
+.127152
+-.504578
+.666483
+-.613017
+.467016
+-.370717
+.383103
+-.449985
+.459639
+-.335926
+.100074
+.139102
+-.254889
+.183248
+.035394
+-.273479
+.377977
+-.242704
+-.141088
+.674361
+-1.182653
+1.479144
+-1.434833
+1.028470
+-.356300
+-.400691
+1.037117
+-1.387793
+1.376616
+-1.037221
+.499455
+.059051
+-.483843
+.707778
+-.771247
+.779539
+-.817796
+.878985
+-.858590
+.627723
+-.140865
+-.494144
+1.038073
+-1.234972
+.961761
+-.324582
+-.368443
+.762767
+-.662284
+.156057
+.427814
+-.725503
+.569076
+-.087663
+-.392051
+.572664
+-.378117
+-.017438
+.327032
+-.342688
+.048028
+.407031
+-.824422
+1.071446
+-1.117622
+.995038
+-.738888
+.367537
+.085878
+-.532210
+.832099
+-.865933
+.623684
+-.239136
+-.073903
+.150679
+.019128
+-.286856
+.443702
+-.350596
+.010160
+.455583
+-.886996
+1.162013
+-1.223766
+1.068054
+-.724916
+.255554
+.242930
+-.648100
+.848158
+-.788456
+.498334
+-.078706
+-.343317
+.663446
+-.825617
+.819414
+-.667896
+.424025
+-.172050
+.011215
+-.010753
+.158761
+-.351189
+.445401
+-.351037
+.092183
+.208582
+-.414398
+.462014
+-.389127
+.288430
+-.233138
+.235014
+-.260855
+.283222
+-.316240
+.405761
+-.582664
+.819253
+-1.026533
+1.101420
+-.996201
+.761894
+-.527704
+.419489
+-.465984
+.561297
+-.521609
+.208199
+.365522
+-1.021585
+1.513503
+-1.666461
+1.466653
+-1.046055
+.585909
+-.213872
+-.037456
+.198072
+-.294995
+.310708
+-.195764
+-.078267
+.468995
+-.857159
+1.094255
+-1.077061
+.803287
+-.374940
+-.052045
+.341770
+-.435986
+.368958
+-.238494
+.152980
+-.180209
+.318427
+-.498555
+.615258
+-.575636
+.345979
+.025882
+-.428371
+.739907
+-.890239
+.890841
+-.812574
+.725756
+-.647373
+.537835
+-.351525
+.100754
+.123649
+-.203250
+.085058
+.154156
+-.333356
+.281126
+.036597
+-.472377
+.781267
+-.782275
+.482621
+-.072404
+-.208383
+.234324
+-.072849
+-.075694
+.028513
+.247859
+-.614901
+.858885
+-.834937
+.558063
+-.184959
+-.089833
+.144801
+.020925
+-.315614
+.616334
+-.814619
+.833074
+-.634503
+.242623
+.238931
+-.643939
+.811448
+-.672304
+.293367
+.157997
+-.508230
+.664236
+-.635522
+.489119
+-.287489
+.063018
+.161815
+-.346614
+.439637
+-.420470
+.337019
+-.292934
+.384054
+-.629788
+.954009
+-1.231756
+1.367329
+-1.345980
+1.224245
+-1.071118
+.909174
+-.702947
+.404456
+-.018987
+-.364264
+.609390
+-.619389
+.410068
+-.114896
+-.088350
+.081209
+.131863
+-.438847
+.694655
+-.797210
+.717569
+-.481647
+.137508
+.258831
+-.637591
+.914521
+-1.015672
+.918905
+-.678063
+.400736
+-.184714
+.054164
+.055583
+-.246526
+.571070
+-.971940
+1.295944
+-1.376902
+1.133565
+-.618778
+-.006816
+.554644
+-.893077
+.996645
+-.943563
+.866136
+-.873903
+.983292
+-1.094365
+1.040139
+-.691809
+.059973
+.677729
+-1.250438
+1.432056
+-1.162356
+.579162
+.055740
+-.492782
+.615857
+-.484135
+.276158
+-.172039
+.243543
+-.416184
+.525495
+-.431605
+.118041
+.291860
+-.614069
+.726525
+-.649218
+.522187
+-.493238
+.596064
+-.713226
+.661348
+-.344190
+-.141255
+.538115
+-.597623
+.270197
+.225134
+-.522265
+.352333
+.256921
+-.975051
+1.373203
+-1.203945
+.563151
+.178625
+-.624059
+.599968
+-.239178
+-.149309
+.310270
+-.198822
+-.036547
+.202401
+-.203183
+.070257
+.116519
+-.314281
+.521588
+-.711438
+.785017
+-.621040
+.193358
+.354431
+-.765992
+.835962
+-.553717
+.108635
+.250074
+-.387750
+.359865
+-.341019
+.474357
+-.759662
+1.055456
+-1.180507
+1.034917
+-.660368
+.208078
+.156640
+-.350083
+.407457
+-.441324
+.549667
+-.736101
+.897979
+-.894352
+.649271
+-.220177
+-.217032
+.458825
+-.385109
+.026166
+.449216
+-.813522
+.886222
+-.615216
+.098736
+.461573
+-.854682
+.957067
+-.784865
+.476586
+-.217121
+.143448
+-.278967
+.526843
+-.725240
+.737806
+-.534771
+.217928
+.032291
+-.064752
+-.143493
+.465984
+-.706201
+.728534
+-.548320
+.311897
+-.178440
+.193516
+-.255232
+.203867
+.033096
+-.357364
+.551625
+-.436597
+.018082
+.490990
+-.800441
+.738459
+-.372463
+-.038132
+.229979
+-.129838
+-.092408
+.158006
+.096308
+-.576703
+.987951
+-1.049909
+.710174
+-.187830
+-.185788
+.206140
+.068123
+-.379929
+.480943
+-.316740
+.050821
+.081471
+.031126
+-.281472
+.419307
+-.235200
+-.282433
+.926887
+-1.398347
+1.486065
+-1.188334
+.699641
+-.281686
+.104348
+-.154339
+.262842
+-.228935
+-.042555
+.475951
+-.872085
+1.034053
+-.889130
+.529564
+-.151569
+-.063670
+.051196
+.112866
+-.269791
+.278498
+-.095450
+-.210252
+.509979
+-.698288
+.749898
+-.715488
+.664358
+-.620823
+.544824
+-.372517
+.084993
+.250845
+-.504614
+.556701
+-.375009
+.044560
+.266908
+-.385601
+.211107
+.234015
+-.802283
+1.270601
+-1.430702
+1.188960
+-.625687
+-.028828
+.501610
+-.613103
+.362747
+.085527
+-.502260
+.709530
+-.647155
+.364028
+.038358
+-.460888
+.828573
+-1.082807
+1.170806
+-1.054445
+.737460
+-.289902
+-.154061
+.433104
+-.419558
+.078131
+.505783
+-1.148989
+1.643317
+-1.847843
+1.749887
+-1.455119
+1.111372
+-.818955
+.591584
+-.391431
+.200297
+-.059297
+.038764
+-.163718
+.362139
+-.488731
+.416219
+-.129928
+-.246186
+.516795
+-.533689
+.286711
+.092007
+-.408378
+.513845
+-.372031
+.056056
+.303641
+-.579108
+.686730
+-.609381
+.402074
+-.173817
+.037575
+-.045069
+.148993
+-.229629
+.176944
+.029180
+-.302890
+.515421
+-.589254
+.551983
+-.510036
+.564084
+-.729529
+.919099
+-.999345
+.880746
+-.580157
+.213581
+.073575
+-.190483
+.143524
+-.016184
+-.090829
+.113627
+-.043581
+-.086270
+.225019
+-.323440
+.350807
+-.311101
+.248490
+-.226689
+.285156
+-.401305
+.492689
+-.465546
+.279628
+.015186
+-.296663
+.433280
+-.357615
+.109936
+.174640
+-.333294
+.263187
+.022563
+-.406906
+.740149
+-.919323
+.921802
+-.782057
+.547244
+-.257042
+-.042433
+.281539
+-.381533
+.299948
+-.069528
+-.206146
+.401240
+-.426720
+.263612
+.037951
+-.378841
+.636115
+-.695895
+.499676
+-.090678
+-.374824
+.679106
+-.646836
+.247897
+.365233
+-.917955
+1.148801
+-.949562
+.428392
+.150876
+-.528294
+.609869
+-.518530
+.486335
+-.657006
+.947586
+-1.087743
+.823357
+-.137023
+-.687535
+1.220794
+-1.162949
+.548004
+.268380
+-.831330
+.869686
+-.451043
+-.087681
+.377053
+-.253329
+-.158900
+.559491
+-.684041
+.461603
+-.024538
+-.406372
+.657995
+-.671154
+.483405
+-.177941
+-.150153
+.404783
+-.503786
+.412109
+-.170363
+-.116119
+.332719
+-.419242
+.395863
+-.336292
+.313903
+-.359442
+.450644
+-.529319
+.531370
+-.419283
+.207427
+.033401
+-.204619
+.234314
+-.126566
+-.031379
+.115554
+-.039302
+-.191031
+.471725
+-.648014
+.584866
+-.230152
+-.353081
+.998338
+-1.493963
+1.671718
+-1.486682
+1.040804
+-.527877
+.128480
+.079172
+-.136246
+.146262
+-.195577
+.310294
+-.467862
+.633382
+-.779402
+.878064
+-.889381
+.772913
+-.520682
+.181049
+.154971
+-.400760
+.519660
+-.533704
+.490230
+-.416690
+.302854
+-.125764
+-.104559
+.320594
+-.420702
+.328230
+-.044451
+-.343344
+.703453
+-.920583
+.936195
+-.751871
+.409001
+.028065
+-.472741
+.813951
+-.934627
+.759882
+-.312261
+-.269040
+.774731
+-1.023162
+.952504
+-.645888
+.271716
+.017259
+-.155583
+.165945
+-.106782
+.020404
+.080545
+-.195296
+.319038
+-.446802
+.581940
+-.726477
+.856766
+-.914989
+.839109
+-.614266
+.298458
+.008471
+-.233888
+.384284
+-.535614
+.766746
+-1.084455
+1.394704
+-1.542551
+1.399011
+-.944210
+.296978
+.332108
+-.743257
+.848942
+-.712651
+.499768
+-.372049
+.394537
+-.512283
+.604156
+-.569910
+.393207
+-.148246
+-.044160
+.081996
+.063617
+-.329044
+.586079
+-.709048
+.647662
+-.457487
+.260988
+-.161615
+.176025
+-.240137
+.282608
+-.297620
+.346146
+-.480821
+.665068
+-.769095
+.659929
+-.315369
+-.134644
+.478955
+-.557610
+.358738
+-.015240
+-.285679
+.410500
+-.337130
+.141074
+.064001
+-.188227
+.199666
+-.123229
+.013763
+.080160
+-.143672
+.200009
+-.289143
+.433038
+-.610552
+.759239
+-.803111
+.687251
+-.397481
+-.040959
+.573251
+-1.118135
+1.565584
+-1.790847
+1.703770
+-1.318926
+.792891
+-.375164
+.273771
+-.513338
+.892817
+-1.093799
+.880851
+-.258690
+-.524646
+1.130703
+-1.332252
+1.130414
+-.722582
+.361197
+-.206034
+.258942
+-.401848
+.491879
+-.443485
+.254409
+.018609
+-.298500
+.511586
+-.596809
+.518956
+-.292346
+-.004270
+.247112
+-.322540
+.185699
+.117595
+-.479903
+.788915
+-.973114
+1.011938
+-.916855
+.708714
+-.412559
+.070075
+.249893
+-.462515
+.501738
+-.356279
+.080272
+.230237
+-.478014
+.597503
+-.567615
+.411475
+-.191365
+-.003413
+.085315
+-.009961
+-.193997
+.433441
+-.601202
+.639698
+-.575868
+.504072
+-.526577
+.687061
+-.934848
+1.139871
+-1.151483
+.873319
+-.318192
+-.383914
+1.029385
+-1.416548
+1.420226
+-1.036267
+.382090
+.342891
+-.923570
+1.203340
+-1.142593
+.835789
+-.470521
+.237320
+-.232078
+.406938
+-.604147
+.656699
+-.493846
+.183328
+.117077
+-.264593
+.222040
+-.074067
+-.037641
+.010903
+.156445
+-.380192
+.560245
+-.651024
+.681249
+-.714967
+.790370
+-.885143
+.931891
+-.869123
+.689424
+-.451279
+.246335
+-.142984
+.144585
+-.194064
+.226460
+-.231706
+.273703
+-.439613
+.751835
+-1.116397
+1.363254
+-1.360211
+1.113566
+-.767718
+.494177
+-.354288
+.249815
+-.010917
+-.442066
+.992591
+-1.372363
+1.335995
+-.841753
+.103063
+.532037
+-.790522
+.627749
+-.225791
+-.146821
+.304932
+-.231748
+.043121
+.116028
+-.158372
+.077254
+.077760
+-.230565
+.293844
+-.187611
+-.118309
+.553616
+-.940403
+1.066957
+-.815879
+.259748
+.357129
+-.754074
+.778588
+-.484770
+.073600
+.253158
+-.413865
+.460220
+-.491110
+.550692
+-.595068
+.545912
+-.375444
+.147647
+.015979
+-.013363
+-.179477
+.503929
+-.857141
+1.135290
+-1.256986
+1.172767
+-.879676
+.442975
+-.001015
+-.274484
+.260684
+.036653
+-.466437
+.806461
+-.892182
+.717038
+-.432922
+.248135
+-.292330
+.538738
+-.827441
+.962933
+-.819501
+.400551
+.163920
+-.669947
+.923093
+-.827092
+.439551
+.044087
+-.385837
+.432755
+-.197511
+-.161521
+.446239
+-.536139
+.441217
+-.265379
+.118401
+-.040783
+-.012832
+.128967
+-.363268
+.687353
+-.989191
+1.130906
+-1.033045
+.733884
+-.381682
+.157862
+-.175602
+.416977
+-.747233
+.992749
+-1.029877
+.832445
+-.461383
+.019650
+.391798
+-.696255
+.845937
+-.822484
+.640130
+-.347129
+.019244
+.255562
+-.397308
+.356229
+-.134565
+-.200581
+.527796
+-.714263
+.678909
+-.441631
+.122685
+.116618
+-.162727
+.016839
+.200817
+-.314547
+.192912
+.167082
+-.618188
+.922917
+-.874195
+.417552
+.295837
+-.966641
+1.294251
+-1.134125
+.575335
+.107086
+-.595590
+.687400
+-.382063
+-.137735
+.609875
+-.820043
+.689105
+-.285906
+-.227096
+.675938
+-.938141
+.962307
+-.753510
+.354992
+.152102
+-.638744
+.938660
+-.900757
+.468971
+.260284
+-1.051652
+1.624108
+-1.779578
+1.496639
+-.937557
+.365867
+-.019468
+.004088
+-.258709
+.606946
+-.863370
+.934130
+-.853624
+.737878
+-.689511
+.721288
+-.750211
+.662233
+-.398656
+.003781
+.395112
+-.658302
+.709349
+-.572694
+.354205
+-.177510
+.113002
+-.141904
+.178076
+-.132288
+-.027125
+.258618
+-.479897
+.612793
+-.604218
+.423411
+-.067866
+-.403633
+.842763
+-1.044842
+.860092
+-.317029
+-.348339
+.808586
+-.841345
+.465645
+.084612
+-.528094
+.715858
+-.693531
+.616266
+-.599909
+.630020
+-.590547
+.376186
+.006241
+-.424043
+.698380
+-.716365
+.498281
+-.179653
+-.073519
+.158685
+-.083065
+-.059102
+.156879
+-.153659
+.077425
+-.016851
+.062719
+-.251956
+.545587
+-.848644
+1.056025
+-1.097501
+.959988
+-.681359
+.326019
+.040565
+-.363343
+.595650
+-.696246
+.640953
+-.448522
+.197247
+-.003356
+-.042873
+-.055074
+.187334
+-.207762
+.046311
+.224140
+-.430290
+.427310
+-.212992
+-.069169
+.244149
+-.241955
+.141108
+-.083755
+.137304
+-.223887
+.181261
+.091615
+-.522494
+.882591
+-.929659
+.578491
+.024808
+-.583194
+.831315
+-.694679
+.314872
+.070362
+-.297727
+.372162
+-.422291
+.565085
+-.793621
+.974205
+-.949583
+.666281
+-.232602
+-.132286
+.224761
+.019112
+-.475632
+.893026
+-1.028685
+.787499
+-.278747
+-.244744
+.528017
+-.449088
+.070534
+.408971
+-.759602
+.820773
+-.558796
+.073470
+.443318
+-.787926
+.837980
+-.609563
+.235793
+.125460
+-.389008
+.570047
+-.725592
+.869734
+-.945008
+.877152
+-.659929
+.387366
+-.197952
+.173833
+-.276754
+.372678
+-.327273
+.103790
+.203096
+-.417096
+.380040
+-.040029
+-.520783
+1.128173
+-1.596589
+1.802555
+-1.718330
+1.403732
+-.972923
+.554823
+-.254443
+.119587
+-.122541
+.172299
+-.162062
+.032229
+.189992
+-.405746
+.510978
+-.469612
+.338522
+-.221559
+.185540
+-.205582
+.188133
+-.057889
+-.161825
+.346485
+-.357892
+.158997
+.136055
+-.326007
+.264464
+.021243
+-.327005
+.398712
+-.106879
+-.454051
+1.016182
+-1.306998
+1.218919
+-.861230
+.462849
+-.203489
+.099407
+-.024008
+-.161062
+.472231
+-.774195
+.878487
+-.694303
+.312907
+.042947
+-.170913
+.030041
+.233755
+-.395642
+.312106
+-.017151
+-.309739
+.471361
+-.378827
+.091377
+.241780
+-.478785
+.549649
+-.458876
+.250842
+.020407
+-.299063
+.526616
+-.650183
+.639832
+-.500290
+.268718
+-.006441
+-.206243
+.279298
+-.141860
+-.210395
+.681758
+-1.098297
+1.291756
+-1.198631
+.902203
+-.580181
+.390489
+-.378055
+.468861
+-.548564
+.557291
+-.524485
+.523138
+-.591200
+.691534
+-.743108
+.691332
+-.553235
+.397922
+-.281785
+.197061
+-.081008
+-.119636
+.383267
+-.605619
+.663926
+-.508492
+.210165
+.077557
+-.218305
+.180971
+-.050463
+-.045219
+.033848
+.051171
+-.103668
+.030440
+.174841
+-.420181
+.570739
+-.533477
+.319014
+-.043636
+-.133021
+.102999
+.117117
+-.384451
+.509666
+-.374797
+.014058
+.399860
+-.660111
+.653626
+-.427387
+.149322
+.008095
+.018677
+-.149358
+.225024
+-.128123
+-.122301
+.364028
+-.382707
+.050552
+.569919
+-1.225497
+1.589892
+-1.443867
+.816398
+.004849
+-.615577
+.717420
+-.288924
+-.404560
+.974452
+-1.144661
+.907597
+-.500275
+.222426
+-.225126
+.415901
+-.540898
+.380406
+.082131
+-.634721
+.972002
+-.899178
+.468524
+.043868
+-.309733
+.159310
+.306827
+-.781798
+.952862
+-.704508
+.187072
+.293013
+-.479912
+.326180
+.001376
+-.256280
+.279384
+-.081684
+-.197160
+.401383
+-.451213
+.360261
+-.191787
+.007325
+.154586
+-.274152
+.347994
+-.398200
+.472076
+-.609750
+.792721
+-.921477
+.862682
+-.547664
+.049591
+.431092
+-.676468
+.582884
+-.221695
+-.210417
+.510289
+-.572506
+.418887
+-.153674
+-.109267
+.297955
+-.393470
+.411710
+-.377378
+.304428
+-.187905
+.008803
+.247330
+-.563732
+.873215
+-1.066507
+1.036816
+-.744110
+.259945
+.245475
+-.581337
+.641334
+-.469990
+.241825
+-.158539
+.327369
+-.698726
+1.102845
+-1.358399
+1.378813
+-1.207433
+.964289
+-.749245
+.574780
+-.377587
+.097631
+.242712
+-.531838
+.651232
+-.586219
+.467686
+-.492564
+.769405
+-1.207456
+1.548798
+-1.536846
+1.104150
+-.436749
+-.141362
+.386170
+-.297073
+.105355
+-.096076
+.395329
+-.881289
+1.284105
+-1.395202
+1.222070
+-.967848
+.854348
+-.933519
+1.042270
+-.938708
+.511004
+.108814
+-.616590
+.738337
+-.413367
+-.168801
+.691835
+-.902107
+.739922
+-.341660
+-.068537
+.316579
+-.359060
+.267572
+-.145267
+.046820
+.038627
+-.139325
+.241719
+-.281692
+.198056
+.000270
+-.217924
+.328597
+-.261181
+.050262
+.185775
+-.320323
+.294185
+-.144409
+-.026160
+.115796
+-.086744
+-.013131
+.084818
+-.049252
+-.091285
+.248226
+-.308562
+.223186
+-.055498
+-.051087
+-.029486
+.309900
+-.661086
+.873203
+-.770487
+.314147
+.361459
+-.997462
+1.320178
+-1.163021
+.546701
+.319640
+-1.120531
+1.564979
+-1.504857
+.983742
+-.195992
+-.612650
+1.242382
+-1.585210
+1.615515
+-1.360289
+.885628
+-.301826
+-.243249
+.610030
+-.738635
+.692729
+-.627475
+.686685
+-.896275
+1.134849
+-1.210264
+.990717
+-.496406
+-.110806
+.623410
+-.894328
+.884526
+-.642684
+.259118
+.162057
+-.508617
+.672763
+-.590866
+.291821
+.091427
+-.376323
+.429730
+-.249400
+-.031275
+.224937
+-.207544
+-.005572
+.273479
+-.420425
+.341380
+-.057923
+-.300434
+.567505
+-.620250
+.431184
+-.076851
+-.297746
+.544830
+-.581489
+.422934
+-.159416
+-.108446
+.328162
+-.502772
+.645874
+-.731094
+.691654
+-.480386
+.139913
+.187821
+-.337943
+.234891
+.049507
+-.345350
+.506867
+-.509398
+.441670
+-.402876
+.397598
+-.325625
+.081264
+.322093
+-.715459
+.871000
+-.667551
+.197497
+.274068
+-.477826
+.318380
+.066326
+-.407475
+.494424
+-.312493
+.031953
+.134405
+-.089424
+-.096770
+.271942
+-.342575
+.348444
+-.413454
+.625010
+-.951786
+1.268622
+-1.457473
+1.488184
+-1.409604
+1.270812
+-1.058728
+.719750
+-.247997
+-.247302
+.572164
+-.567225
+.225188
+.290671
+-.745573
+.974279
+-.958820
+.795487
+-.594750
+.404584
+-.212204
+.001885
+.201113
+-.347725
+.424049
+-.487697
+.635969
+-.924619
+1.303586
+-1.625086
+1.720479
+-1.490869
+.955395
+-.241827
+-.459108
+.951082
+-1.094318
+.867600
+-.401073
+-.062730
+.288882
+-.190369
+-.113208
+.377107
+-.405335
+.188251
+.103954
+-.264672
+.214032
+-.052039
+-.034008
+-.074528
+.334105
+-.574658
+.627141
+-.442442
+.120501
+.157889
+-.239963
+.080050
+.248788
+-.602737
+.840248
+-.883867
+.747335
+-.520891
+.323449
+-.243893
+.300449
+-.438510
+.566891
+-.609625
+.542287
+-.394149
+.219859
+-.062824
+-.065298
+.178474
+-.291090
+.393279
+-.445312
+.397726
+-.226245
+-.040860
+.323771
+-.525081
+.578446
+-.481393
+.290717
+-.084988
+-.077775
+.178516
+-.225446
+.230479
+-.196537
+.121651
+-.008090
+-.134731
+.291881
+-.440922
+.548186
+-.575779
+.505154
+-.360026
+.201101
+-.087198
+.031789
+.003659
+-.070564
+.183447
+-.306845
+.389908
+-.410721
+.383729
+-.323208
+.207852
+.003795
+-.306365
+.589492
+-.660540
+.361844
+.290027
+-1.054436
+1.568439
+-1.553140
+.991325
+-.152345
+-.557044
+.817060
+-.551846
+-.065191
+.732820
+-1.175694
+1.245252
+-.942576
+.387807
+.232434
+-.725270
+.953425
+-.882675
+.590651
+-.225997
+-.065008
+.205528
+-.213888
+.177285
+-.191989
+.305432
+-.492433
+.675562
+-.772311
+.736921
+-.573809
+.323503
+-.039305
+-.228064
+.436022
+-.552773
+.559997
+-.453136
+.240719
+.050608
+-.363239
+.604627
+-.676495
+.537399
+-.257948
+.009435
+.034687
+.169698
+-.475468
+.621523
+-.415972
+-.102086
+.653030
+-.886606
+.621967
+.012213
+-.641343
+.870747
+-.519254
+-.289605
+1.219819
+-1.916665
+2.171739
+-1.977335
+1.476143
+-.868491
+.335485
+.002043
+-.098177
+-.018347
+.260311
+-.517219
+.700699
+-.778713
+.778278
+-.754163
+.741925
+-.724540
+.637382
+-.415003
+.055462
+.344095
+-.618277
+.627973
+-.361784
+-.032232
+.321667
+-.331741
+.057391
+.335735
+-.624319
+.674343
+-.518569
+.313024
+-.209018
+.237839
+-.295108
+.236805
+-.011957
+-.276544
+.439378
+-.349153
+.050303
+.264052
+-.394596
+.284245
+-.054063
+-.097097
+.043419
+.183815
+-.431190
+.534496
+-.419575
+.133826
+.191325
+-.409785
+.425122
+-.229560
+-.092228
+.397741
+-.550403
+.483247
+-.227354
+-.110567
+.404316
+-.560796
+.543003
+-.365689
+.083587
+.216353
+-.428290
+.461704
+-.291305
+-.010791
+.296637
+-.419125
+.318058
+-.055394
+-.227252
+.397663
+-.404435
+.287552
+-.135097
+.027602
+-.005565
+.065935
+-.174999
+.288243
+-.374523
+.433995
+-.491709
+.560707
+-.603044
+.534389
+-.288092
+-.104696
+.493980
+-.687132
+.579466
+-.242191
+-.105858
+.231040
+-.032873
+-.394543
+.827471
+-1.056841
+1.012388
+-.784966
+.539453
+-.388966
+.325566
+-.255809
+.104335
+.104633
+-.257928
+.248013
+-.072859
+-.143146
+.229166
+-.091175
+-.212826
+.503175
+-.595626
+.425131
+-.091841
+-.200495
+.270039
+-.061334
+-.335520
+.751776
+-1.036077
+1.114284
+-.989265
+.707733
+-.337303
+-.031794
+.285961
+-.321488
+.109323
+.256635
+-.582846
+.678903
+-.479671
+.097068
+.247361
+-.371286
+.257927
+-.065909
+.011288
+-.206497
+.574304
+-.900316
+.984032
+-.776651
+.407072
+-.083149
+-.053455
+.014283
+.061568
+-.015622
+-.220931
+.588103
+-.941700
+1.141362
+-1.123595
+.923182
+-.642816
+.397162
+-.262781
+.254484
+-.332367
+.431065
+-.494066
+.495849
+-.440880
+.343064
+-.202175
+-.002288
+.291103
+-.651358
+1.015103
+-1.273346
+1.324234
+-1.128951
+.740113
+-.284602
+-.088353
+.263841
+-.196952
+-.078952
+.464920
+-.825664
+1.036509
+-1.039388
+.878338
+-.678671
+.565905
+-.574947
+.624107
+-.587844
+.418199
+-.210515
+.143633
+-.328269
+.685487
+-.967314
+.922911
+-.492144
+-.125710
+.592553
+-.661944
+.350223
+.082077
+-.328069
+.263227
+-.029854
+-.088703
+-.094291
+.508477
+-.872759
+.913225
+-.579084
+.084790
+.252122
+-.245379
+-.036303
+.340966
+-.428326
+.230684
+.129903
+-.453195
+.596058
+-.534192
+.332933
+-.080596
+-.154367
+.326370
+-.402730
+.370305
+-.256598
+.135218
+-.091629
+.161865
+-.290085
+.349102
+-.224076
+-.093956
+.477274
+-.727938
+.704171
+-.417978
+.030159
+.257049
+-.332209
+.236269
+-.112665
+.089925
+-.187689
+.312049
+-.334391
+.187558
+.091156
+-.393088
+.612579
+-.705328
+.695531
+-.640017
+.584297
+-.540708
+.495411
+-.430770
+.345988
+-.265543
+.233056
+-.291579
+.457174
+-.698798
+.940254
+-1.089764
+1.083442
+-.915600
+.635808
+-.317563
+.025212
+.195534
+-.304532
+.257896
+-.026881
+-.362544
+.808464
+-1.165345
+1.322663
+-1.275995
+1.131800
+-1.032160
+1.048827
+-1.123407
+1.099093
+-.825491
+.267944
+.447801
+-1.082441
+1.395181
+-1.262178
+.742786
+-.060752
+-.494224
+.700404
+-.506513
+.046237
+.445902
+-.767793
+.849210
+-.757322
+.613288
+-.487679
+.353552
+-.129280
+-.227304
+.652624
+-.998460
+1.132358
+-1.042815
+.861484
+-.772141
+.866992
+-1.061005
+1.138944
+-.907809
+.342286
+.384460
+-1.002445
+1.297595
+-1.208726
+.821170
+-.292070
+-.222726
+.600895
+-.759003
+.665014
+-.366583
+.004992
+.223216
+-.160634
+-.207864
+.716052
+-1.085886
+1.080465
+-.649969
+-.029554
+.661092
+-1.011446
+1.049951
+-.942910
+.909964
+-1.050910
+1.271539
+-1.358134
+1.137299
+-.599193
+-.098737
+.735356
+-1.149960
+1.302206
+-1.246253
+1.063139
+-.812494
+.530714
+-.255599
+.039408
+.068227
+-.053090
+-.046114
+.155132
+-.207668
+.185696
+-.126551
+.089044
+-.100403
+.124801
+-.084529
+-.072880
+.309489
+-.492412
+.469135
+-.178505
+-.285817
+.716654
+-.920551
+.843798
+-.606004
+.415975
+-.428875
+.643802
+-.908536
+1.022930
+-.870276
+.494349
+-.079889
+-.147733
+.046430
+.360538
+-.886111
+1.266601
+-1.295285
+.935670
+-.349910
+-.185137
+.437977
+-.366854
+.150318
+-.069002
+.306470
+-.805767
+1.290856
+-1.446141
+1.126653
+-.446525
+-.311003
+.880141
+-1.148574
+1.155364
+-.986887
+.683997
+-.240992
+-.322007
+.901967
+-1.339235
+1.511446
+-1.412539
+1.145624
+-.834421
+.530756
+-.200097
+-.201301
+.628608
+-.926401
+.919111
+-.552230
+-.030373
+.546084
+-.736742
+.519624
+-.020471
+-.524762
+.916116
+-1.077353
+1.041307
+-.875167
+.624510
+-.317885
+.006383
+.221230
+-.277987
+.143806
+.106139
+-.345105
+.482931
+-.528428
+.572614
+-.703939
+.924267
+-1.134810
+1.204348
+-1.064170
+.752837
+-.377190
+.027762
+.274892
+-.556263
+.812750
+-.964700
+.898134
+-.574953
+.116772
+.228811
+-.240760
+-.109124
+.611455
+-.947592
+.906989
+-.533558
+.090180
+.131283
+-.010638
+-.334257
+.651823
+-.740509
+.572694
+-.279935
+.030178
+.099701
+-.164826
+.288834
+-.553345
+.922047
+-1.248018
+1.353580
+-1.129240
+.594383
+.108674
+-.776892
+1.230147
+-1.378881
+1.250122
+-.964492
+.675222
+-.496725
+.457487
+-.502090
+.539665
+-.507559
+.408932
+-.301698
+.250262
+-.274494
+.329568
+-.328477
+.194825
+.082335
+-.421251
+.668868
+-.671285
+.364827
+.163348
+-.693481
+.978163
+-.882398
+.469695
+.032074
+-.373596
+.442597
+-.325589
+.226815
+-.305105
+.552463
+-.804065
+.866315
+-.660496
+.276331
+.092959
+-.274081
+.205247
+.053842
+-.378153
+.648657
+-.796849
+.812446
+-.725869
+.580914
+-.410503
+.226737
+-.033621
+-.144114
+.242101
+-.176097
+-.098527
+.528020
+-.957619
+1.205972
+-1.173771
+.906739
+-.560829
+.294629
+-.172736
+.153330
+-.158711
+.155860
+-.169532
+.218383
+-.243526
+.114817
+.267443
+-.851094
+1.403276
+-1.625405
+1.348758
+-.672248
+-.067663
+.489450
+-.398620
+-.094884
+.651498
+-.917347
+.737365
+-.231262
+-.305286
+.596872
+-.548308
+.271760
+.019057
+-.159930
+.125879
+-.009196
+-.078666
+.095131
+-.076607
+.074269
+-.083080
+.035462
+.129732
+-.383214
+.586500
+-.567103
+.238637
+.323461
+-.908337
+1.283202
+-1.320893
+1.063396
+-.687961
+.400965
+-.323193
+.430815
+-.582410
+.613291
+-.439372
+.107909
+.234723
+-.434949
+.423745
+-.249918
+.038696
+.091739
+-.098347
+.025751
+.035612
+-.010708
+-.118571
+.307534
+-.469439
+.504802
+-.330227
+-.091630
+.721506
+-1.426262
+1.998989
+-2.229942
+2.009140
+-1.405980
+.663995
+-.088382
+-.123303
+.002729
+.208134
+-.219714
+-.101210
+.632089
+-1.078164
+1.184796
+-.924127
+.515469
+-.260762
+.314663
+-.560161
+.685478
+-.412628
+-.283219
+1.121688
+-1.676481
+1.642226
+-1.029293
+.155681
+.554051
+-.822052
+.655179
+-.292327
+.021850
+-.006914
+.223916
+-.521758
+.729458
+-.736331
+.518920
+-.135007
+-.293882
+.615568
+-.708293
+.552999
+-.265365
+.043834
+-.047949
+.285286
+-.593897
+.743290
+-.589334
+.176118
+.284250
+-.537244
+.432698
+-.003414
+-.560838
+1.016504
+-1.184087
+1.024646
+-.647796
+.254108
+-.036842
+.083572
+-.325977
+.572339
+-.615881
+.360720
+.115725
+-.609175
+.914280
+-.941688
+.747800
+-.468798
+.222383
+-.053039
+-.054626
+.129985
+-.188393
+.235630
+-.279882
+.324996
+-.352092
+.319876
+-.196874
+.000523
+.198250
+-.317855
+.322642
+-.243156
+.141351
+-.051430
+-.050986
+.225153
+-.506668
+.861412
+-1.186912
+1.358900
+-1.291789
+.978223
+-.491688
+-.041870
+.487542
+-.745955
+.788242
+-.669562
+.507645
+-.424532
+.474443
+-.602663
+.673082
+-.559714
+.246095
+.141969
+-.406604
+.413975
+-.201701
+-.029188
+.048523
+.227810
+-.651265
+.920670
+-.787705
+.243846
+.453365
+-.943357
+1.000186
+-.672280
+.227686
+.042676
+-.010154
+-.247401
+.550621
+-.768198
+.890087
+-.983230
+1.091111
+-1.173899
+1.137704
+-.918646
+.544809
+-.127233
+-.206139
+.377393
+-.382558
+.271286
+-.112291
+-.029387
+.101568
+-.074839
+-.039904
+.178227
+-.234465
+.109277
+.224970
+-.681967
+1.081117
+-1.234594
+1.055971
+-.616999
+.103982
+.304598
+-.551613
+.716940
+-.918643
+1.178752
+-1.368926
+1.291759
+-.841342
+.114822
+.620489
+-1.085797
+1.155632
+-.907100
+.529301
+-.181291
+-.084008
+.285105
+-.427265
+.466366
+-.360529
+.151854
+.018157
+.002641
+-.247484
+.572012
+-.729559
+.536335
+-.009917
+-.618829
+1.031841
+-1.008996
+.560319
+.070335
+-.532640
+.559204
+-.114048
+-.585591
+1.191529
+-1.422435
+1.216252
+-.741192
+.263225
+.032651
+-.140056
+.186302
+-.294414
+.469451
+-.599119
+.559628
+-.332468
+.033522
+.167475
+-.168541
+.000998
+.207059
+-.330579
+.327157
+-.240157
+.138876
+-.058682
+-.007478
+.070995
+-.112566
+.092822
+.000163
+-.117875
+.176230
+-.126445
+.011334
+.048822
+.060672
+-.357668
+.733598
+-1.007875
+1.028113
+-.751537
+.264120
+.264351
+-.659643
+.819042
+-.751448
+.562268
+-.385545
+.296783
+-.261529
+.162529
+.102660
+-.519651
+.933507
+-1.136608
+1.014853
+-.642541
+.243688
+-.037466
+.082220
+-.241625
+.303665
+-.158006
+-.112238
+.298461
+-.235963
+-.065555
+.432663
+-.663032
+.669228
+-.521549
+.371957
+-.335344
+.423435
+-.567109
+.686447
+-.740125
+.720555
+-.616593
+.392283
+-.008911
+-.524542
+1.114883
+-1.597376
+1.801324
+-1.639541
+1.173521
+-.610996
+.219570
+-.185894
+.494192
+-.908062
+1.092333
+-.821325
+.146794
+.598264
+-.985602
+.761960
+-.026495
+-.812538
+1.285527
+-1.155787
+.564027
+.077831
+-.373298
+.211976
+.166535
+-.363265
+.128904
+.435318
+-.938123
+.981179
+-.457275
+-.358899
+.996505
+-1.113849
+.725142
+-.168950
+-.146643
+.027700
+.395034
+-.790653
+.875560
+-.596094
+.126987
+.285561
+-.498573
+.534973
+-.509660
+.503956
+-.501443
+.431015
+-.264702
+.072615
+.019252
+.066068
+-.279847
+.466762
+-.466667
+.219899
+.199651
+-.637430
+.946347
+-1.047688
+.939786
+-.674686
+.334426
+-.017541
+-.176795
+.179243
+.013408
+-.321348
+.604794
+-.723041
+.601608
+-.271008
+-.145545
+.490552
+-.647408
+.593176
+-.403096
+.204976
+-.107120
+.136398
+-.221085
+.233663
+-.076698
+-.238095
+.575192
+-.750250
+.655411
+-.347889
+.027590
+.093959
+.055283
+-.349910
+.551548
+-.479915
+.148414
+.234722
+-.402936
+.212261
+.257863
+-.753343
+1.011607
+-.931423
+.629019
+-.342068
+.252985
+-.363418
+.513827
+-.530708
+.383428
+-.223723
+.271568
+-.632089
+1.183520
+-1.626874
+1.669518
+-1.218210
+.449893
+.286217
+-.667714
+.569332
+-.103837
+-.473772
+.920530
+-1.119118
+1.098869
+-.978989
+.885801
+-.888913
+.974709
+-1.057175
+1.019729
+-.776421
+.328930
+.211366
+-.657667
+.831089
+-.654693
+.205826
+.309829
+-.658150
+.698735
+-.456396
+.094537
+.192904
+-.297076
+.237991
+-.114737
+.013538
+.047695
+-.100598
+.166439
+-.221055
+.219199
+-.148792
+.054470
+-.000427
+.005696
+-.017055
+-.047317
+.217935
+-.430964
+.565848
+-.535143
+.350139
+-.106333
+-.096331
+.226760
+-.327670
+.453931
+-.604669
+.711059
+-.689117
+.510334
+-.231878
+-.034763
+.189549
+-.196750
+.093421
+.045738
+-.161609
+.248131
+-.347853
+.502772
+-.691651
+.808014
+-.714627
+.351877
+.181925
+-.658058
+.856023
+-.718865
+.401624
+-.163378
+.177502
+-.403699
+.619532
+-.585382
+.217405
+.354235
+-.870532
+1.097772
+-.943974
+.479259
+.122210
+-.663464
+.988845
+-1.024918
+.802408
+-.450092
+.143980
+-.021055
+.104857
+-.299036
+.460974
+-.503038
+.443604
+-.371122
+.358354
+-.403398
+.445458
+-.433861
+.383664
+-.366836
+.446719
+-.610975
+.758297
+-.753224
+.514259
+-.077766
+-.406923
+.755051
+-.853371
+.728424
+-.525928
+.409701
+-.448850
+.576026
+-.648374
+.562200
+-.330301
+.063264
+.121787
+-.183250
+.161666
+-.117964
+.071951
+-.003268
+-.090939
+.148502
+-.067373
+-.203274
+.582902
+-.871686
+.866565
+-.505741
+-.065206
+.563148
+-.734882
+.514915
+-.068428
+-.311516
+.388585
+-.129533
+-.285054
+.593885
+-.639600
+.473430
+-.303486
+.324606
+-.557398
+.817924
+-.842203
+.476371
+.200163
+-.900000
+1.282147
+-1.139415
+.512477
+.329449
+-1.028613
+1.324595
+-1.182772
+.790060
+-.419015
+.249424
+-.270056
+.326624
+-.272237
+.097175
+.063976
+-.047451
+-.200077
+.568259
+-.851478
+.880821
+-.624456
+.196510
+.216800
+-.459225
+.476443
+-.328132
+.143623
+-.050014
+.109799
+-.296546
+.515949
+-.656538
+.643436
+-.471689
+.207762
+.040075
+-.169791
+.131449
+.050519
+-.289287
+.472482
+-.504468
+.338414
+.005409
+-.435241
+.805263
+-.964372
+.827578
+-.433044
+-.060214
+.447696
+-.589301
+.484144
+-.260291
+.087105
+-.070316
+.197711
+-.364186
+.450662
+-.399320
+.239519
+-.057116
+-.062800
+.080513
+-.012553
+-.084611
+.140083
+-.091556
+-.092993
+.393827
+-.728650
+.970882
+-1.003411
+.785887
+-.394528
+.000853
+.207817
+-.125550
+-.213018
+.646809
+-.969731
+1.035895
+-.832442
+.481945
+-.172958
+.054202
+-.147830
+.331544
+-.406986
+.224945
+.202408
+-.678522
+.919490
+-.725553
+.120935
+.636440
+-1.192810
+1.300832
+-.955351
+.377113
+.135593
+-.381861
+.345547
+-.153617
+-.044475
+.179483
+-.277918
+.394620
+-.528956
+.599608
+-.503511
+.216561
+.144026
+-.355966
+.220973
+.290089
+-.977716
+1.499030
+-1.564019
+1.124921
+-.427453
+-.127495
+.234168
+.120402
+-.650648
+.967278
+-.838203
+.334200
+.235846
+-.541188
+.436594
+-.024432
+-.444936
+.737127
+-.743916
+.492689
+-.093862
+-.309823
+.569860
+-.560990
+.235903
+.319709
+-.891390
+1.228585
+-1.182558
+.796673
+-.283913
+-.094235
+.166888
+.070107
+-.470086
+.815972
+-.917150
+.684509
+-.163239
+-.484433
+1.042994
+-1.330976
+1.272025
+-.914208
+.389968
+.153343
+-.606478
+.906855
+-1.013643
+.888487
+-.512360
+-.069853
+.721250
+-1.242528
+1.457586
+-1.304343
+.867921
+-.332641
+-.114795
+.367876
+-.424326
+.352780
+-.238240
+.143126
+-.096325
+.099380
+-.133879
+.165046
+-.148021
+.045035
+.147653
+-.376234
+.529781
+-.479164
+.148778
+.413927
+-1.021922
+1.417356
+-1.402957
+.958453
+-.259390
+-.423048
+.874216
+-1.033633
+.977495
+-.820460
+.630962
+-.426702
+.230348
+-.106425
+.123211
+-.268116
+.405529
+-.343156
+-.021454
+.584142
+-1.054132
+1.122659
+-.677207
+-.089132
+.761951
+-.943008
+.493610
+.373551
+-1.215587
+1.618231
+-1.429460
+.826943
+-.190235
+-.127669
+-.015902
+.510021
+-1.082590
+1.449050
+-1.434002
+1.026566
+-.371459
+-.290533
+.719974
+-.786447
+.534794
+-.160196
+-.106436
+.133889
+.045893
+-.288322
+.454015
+-.497935
+.466211
+-.422642
+.385190
+-.331848
+.258960
+-.218287
+.282075
+-.463511
+.677002
+-.792808
+.748181
+-.611649
+.528225
+-.582071
+.697501
+-.676367
+.352968
+.258085
+-.944758
+1.426563
+-1.526888
+1.259996
+-.785479
+.292843
+.083858
+-.275168
+.246975
+.002633
+-.407117
+.808843
+-1.010298
+.890773
+-.502844
+.057057
+.213881
+-.216396
+.057282
+.047049
+.056106
+-.335389
+.601029
+-.652031
+.426478
+-.040212
+-.306923
+.475665
+-.470863
+.412053
+-.430415
+.577668
+-.805668
+1.010597
+-1.093558
+.998251
+-.721297
+.311680
+.135008
+-.499848
+.688748
+-.683970
+.556161
+-.413507
+.315763
+-.220563
+.015215
+.377736
+-.897506
+1.331623
+-1.422053
+1.034440
+-.280938
+-.495393
+.884833
+-.639251
+-.171074
+1.175932
+-1.901354
+2.032957
+-1.585442
+.873251
+-.305495
+.143323
+-.374770
+.772108
+-1.067783
+1.115971
+-.939304
+.657709
+-.377661
+.129107
+.117295
+-.385735
+.644419
+-.808074
+.789276
+-.561258
+.190030
+.185156
+-.413919
+.406369
+-.176463
+-.166510
+.473340
+-.626450
+.589045
+-.407800
+.174648
+.024650
+-.143809
+.177727
+-.141824
+.051878
+.077033
+-.213732
+.297605
+-.255452
+.053459
+.247968
+-.490183
+.493595
+-.182585
+-.331094
+.785857
+-.924410
+.663411
+-.153225
+-.321369
+.527412
+-.420031
+.136542
+.130846
+-.274815
+.320570
+-.361710
+.453097
+-.554409
+.567425
+-.428973
+.179086
+.054156
+-.143048
+.053799
+.126687
+-.252288
+.223070
+-.058499
+-.113934
+.147959
+.015120
+-.296033
+.519549
+-.524223
+.269437
+.130010
+-.464908
+.550013
+-.327288
+-.104395
+.544889
+-.796581
+.758246
+-.461645
+.037183
+.365787
+-.652952
+.807156
+-.850948
+.789371
+-.591098
+.231354
+.240917
+-.681836
+.914861
+-.839890
+.505172
+-.082564
+-.235882
+.342727
+-.250882
+.052597
+.150818
+-.294883
+.357570
+-.344971
+.280876
+-.201950
+.145338
+-.123832
+.106635
+-.031482
+-.147281
+.405120
+-.635934
+.706091
+-.545080
+.206593
+.153445
+-.374925
+.398980
+-.302383
+.234263
+-.303176
+.498767
+-.703584
+.781056
+-.670772
+.422279
+-.149257
+-.053625
+.165766
+-.229839
+.292719
+-.352727
+.358324
+-.258271
+.059364
+.158659
+-.286940
+.259069
+-.095796
+-.111272
+.265034
+-.325744
+.323336
+-.313569
+.321146
+-.322651
+.281890
+-.197575
+.110114
+-.056711
+.022431
+.052982
+-.204567
+.370279
+-.398599
+.156550
+.333431
+-.843944
+1.046034
+-.717989
+-.080168
+1.001590
+-1.601829
+1.607727
+-1.085087
+.386063
+.090017
+-.156865
+-.057294
+.230942
+-.098285
+-.354709
+.882940
+-1.160666
+1.013643
+-.540326
+.039729
+.199317
+-.096242
+-.176697
+.332659
+-.187507
+-.204962
+.597557
+-.735460
+.540863
+-.162390
+-.136730
+.159885
+.101628
+-.477146
+.729473
+-.688721
+.332900
+.212217
+-.738307
+1.049954
+-1.051372
+.786507
+-.409060
+.091110
+.078567
+-.138109
+.200631
+-.339365
+.499303
+-.516709
+.248117
+.285642
+-.863558
+1.185511
+-1.072140
+.590121
+-.000549
+-.430618
+.608039
+-.632071
+.669351
+-.793797
+.934729
+-.959931
+.799660
+-.495470
+.144573
+.188014
+-.497774
+.789741
+-1.013207
+1.060642
+-.845908
+.398536
+.111654
+-.454763
+.480392
+-.220967
+-.119599
+.295385
+-.185254
+-.118980
+.372973
+-.355185
+.034638
+.394835
+-.646046
+.543867
+-.153527
+-.264019
+.435977
+-.264376
+-.118415
+.456876
+-.554016
+.394394
+-.131874
+-.030077
+-.029945
+.292349
+-.628640
+.883375
+-.949846
+.807329
+-.517186
+.189211
+.067120
+-.188122
+.176165
+-.082646
+-.034323
+.145095
+-.249969
+.351257
+-.428076
+.443014
+-.376859
+.257399
+-.149838
+.111335
+-.145260
+.193119
+-.171287
+.025657
+.232478
+-.527492
+.751141
+-.806369
+.647480
+-.304896
+-.116750
+.474073
+-.645954
+.590970
+-.365534
+.088105
+.128589
+-.232097
+.238333
+-.197634
+.154660
+-.134513
+.155004
+-.236399
+.384576
+-.557622
+.655393
+-.562552
+.229735
+.264477
+-.728152
+.953482
+-.840364
+.464038
+-.038842
+-.200695
+.127728
+.215109
+-.648481
+.954924
+-.983212
+.706866
+-.218428
+-.323354
+.759385
+-.979325
+.943324
+-.683120
+.293156
+.088180
+-.316511
+.299308
+-.048450
+-.313277
+.613527
+-.730906
+.665321
+-.522029
+.417552
+-.382063
+.340203
+-.188867
+-.092517
+.395562
+-.547229
+.441220
+-.134833
+-.167770
+.239724
+.022543
+-.531829
+1.063270
+-1.385975
+1.384523
+-1.097507
+.663983
+-.229292
+-.120606
+.359847
+-.478145
+.447529
+-.242081
+-.101753
+.446728
+-.596532
+.411710
+.079733
+-.670766
+1.089263
+-1.164341
+.925483
+-.562715
+.282511
+-.169734
+.153994
+-.092595
+-.104489
+.402953
+-.669908
+.765665
+-.631201
+.317882
+.044607
+-.310499
+.376111
+-.217806
+-.093857
+.410920
+-.564051
+.447815
+-.094366
+-.319605
+.558132
+-.466598
+.080196
+.381026
+-.642673
+.555211
+-.199799
+-.160714
+.261284
+-.023855
+-.380046
+.641716
+-.525260
+.027681
+.618945
+-1.095567
+1.186283
+-.887369
+.381276
+.086807
+-.342724
+.354616
+-.220595
+.099144
+-.127320
+.361596
+-.756008
+1.178477
+-1.461449
+1.475040
+-1.195523
+.729708
+-.269038
+-.010043
+.039020
+.119804
+-.335169
+.502710
+-.598839
+.655125
+-.686661
+.649554
+-.476526
+.165587
+.162431
+-.310309
+.145572
+.265166
+-.651161
+.699337
+-.286023
+-.397344
+.942460
+-.999017
+.531602
+.139447
+-.555547
+.440543
+.111846
+-.716591
+.972771
+-.725163
+.130397
+.491274
+-.880645
+.971382
+-.860783
+.684599
+-.516694
+.362148
+-.217683
+.121160
+-.139053
+.307242
+-.583054
+.851910
+-.983185
+.893512
+-.578837
+.107415
+.408095
+-.840886
+1.079797
+-1.062799
+.807159
+-.411943
+.014671
+.283169
+-.472348
+.625049
+-.816186
+1.034902
+-1.162630
+1.048165
+-.632742
+.031262
+.499762
+-.698854
+.456819
+.105725
+-.692831
+.990147
+-.834704
+.301245
+.343761
+-.793833
+.873233
+-.627743
+.282198
+-.091924
+.182437
+-.479948
+.774531
+-.866986
+.695400
+-.358062
+.030579
+.150259
+-.149972
+.017439
+.178269
+-.391210
+.591978
+-.735377
+.750834
+-.579391
+.234157
+.168117
+-.443276
+.436832
+-.127577
+-.332465
+.681517
+-.692452
+.315813
+.272249
+-.758678
+.872201
+-.540457
+-.074193
+.678736
+-1.018885
+1.003729
+-.719870
+.349883
+-.063179
+-.058426
+.038815
+.018557
+.017526
+-.241961
+.655059
+-1.140163
+1.503059
+-1.566612
+1.272532
+-.725553
+.145716
+.247177
+-.345702
+.194289
+.063912
+-.288176
+.414175
+-.452748
+.430633
+-.338176
+.138440
+.170510
+-.505046
+.718478
+-.693060
+.430061
+-.060280
+-.238142
+.351081
+-.283159
+.123165
+.037310
+-.158505
+.244293
+-.298390
+.301382
+-.233352
+.112670
+-.001598
+-.036531
+-.008537
+.082090
+-.110879
+.069287
+-.007658
+.018603
+-.169240
+.451517
+-.782597
+1.048183
+-1.157230
+1.080000
+-.857675
+.584774
+-.371608
+.298258
+-.377321
+.543441
+-.677908
+.660889
+-.429655
+.016831
+.451309
+-.801406
+.887557
+-.659396
+.187406
+.369805
+-.837205
+1.092261
+-1.095856
+.879822
+-.514491
+.082388
+.333854
+-.660841
+.852325
+-.909475
+.883927
+-.849878
+.854688
+-.879504
+.841854
+-.649206
+.276491
+.183394
+-.539653
+.598684
+-.285943
+-.281790
+.830624
+-1.064358
+.828225
+-.204292
+-.522887
+1.015258
+-1.059977
+.674885
+-.081924
+-.429104
+.659622
+-.589364
+.349430
+-.115163
+-.001923
+-.003441
+.064685
+-.111407
+.115064
+-.086369
+.042389
+.017488
+-.104573
+.214895
+-.316418
+.367268
+-.349916
+.286524
+-.217825
+.164145
+-.108633
+.021864
+.095259
+-.195521
+.218375
+-.146507
+.034215
+.023326
+.038913
+-.198256
+.346822
+-.358485
+.178968
+.120913
+-.370442
+.395881
+-.132084
+-.325738
+.770854
+-1.006886
+.960426
+-.708416
+.407859
+-.187966
+.085187
+-.057506
+.046944
+-.027978
+.006559
+.011669
+-.038032
+.079790
+-.106931
+.054098
+.125101
+-.391040
+.605709
+-.607542
+.331252
+.118297
+-.506087
+.605992
+-.347195
+-.133078
+.567326
+-.714728
+.497914
+-.039230
+-.417686
+.648759
+-.569469
+.269923
+.048099
+-.190651
+.077223
+.224333
+-.547190
+.724212
+-.677708
+.452817
+-.182743
+.011106
+-.016720
+.180985
+-.411075
+.600108
+-.685263
+.668987
+-.596216
+.510665
+-.426061
+.333315
+-.232101
+.153910
+-.150493
+.253909
+-.443434
+.652749
+-.815310
+.907192
+-.944984
+.938728
+-.848608
+.600466
+-.162648
+-.379864
+.833238
+-1.003026
+.830689
+-.447717
+.091798
+.060292
+-.015902
+-.051865
+-.047983
+.361331
+-.738304
+.935533
+-.795588
+.370836
+.100633
+-.351940
+.268136
+.035277
+-.292189
+.271672
+.056810
+-.492886
+.734313
+-.580831
+.074897
+.516688
+-.868750
+.798661
+-.368171
+-.176204
+.574050
+-.710633
+.660931
+-.603301
+.677651
+-.890174
+1.118394
+-1.197123
+1.020092
+-.598827
+.057581
+.423086
+-.684965
+.660692
+-.403427
+.061149
+.195345
+-.254371
+.110926
+.144310
+-.382943
+.505905
+-.483265
+.352148
+-.184913
+.051785
+.002190
+.039007
+-.168306
+.359912
+-.570331
+.745520
+-.841592
+.849216
+-.798408
+.730301
+-.653787
+.528544
+-.300193
+-.034287
+.388808
+-.620543
+.616671
+-.370037
+-.014150
+.381631
+-.609869
+.650759
+-.522601
+.280827
+.000535
+-.235763
+.343609
+-.282357
+.081166
+.165905
+-.349970
+.406455
+-.337771
+.187497
+.000176
+-.192779
+.349627
+-.408807
+.318076
+-.093382
+-.157106
+.289866
+-.234942
+.066313
+.038948
+.067230
+-.384036
+.754482
+-.978822
+.956221
+-.743386
+.492737
+-.332591
+.289721
+-.304738
+.307280
+-.276107
+.238252
+-.224740
+.234492
+-.239050
+.216561
+-.178451
+.165665
+-.220812
+.358351
+-.550665
+.734024
+-.832740
+.795988
+-.634014
+.430597
+-.312624
+.381399
+-.642845
+.984911
+-1.226427
+1.214317
+-.910167
+.411150
+.105155
+-.472738
+.607485
+-.522679
+.299460
+-.046280
+-.132968
+.167459
+-.054293
+-.116602
+.185813
+-.012925
+-.411510
+.916584
+-1.225542
+1.126522
+-.626948
+-.025903
+.486377
+-.523564
+.159191
+.364261
+-.756819
+.868309
+-.758321
+.611097
+-.573263
+.642956
+-.687892
+.565171
+-.240091
+-.185717
+.545882
+-.713086
+.657018
+-.432153
+.130626
+.151798
+-.326132
+.323271
+-.130832
+-.168090
+.404193
+-.402959
+.096547
+.416792
+-.920861
+1.210538
+-1.208345
+.984973
+-.678015
+.383747
+-.109863
+-.183559
+.504733
+-.789967
+.937337
+-.882252
+.649793
+-.343422
+.083487
+.057344
+-.081548
+.049367
+-.034381
+.076718
+-.153933
+.184770
+-.072778
+-.225083
+.645087
+-1.024095
+1.177646
+-1.006132
+.557389
+-.001924
+-.459082
+.687892
+-.650851
+.400217
+-.032081
+-.345788
+.633809
+-.763653
+.727664
+-.590958
+.461478
+-.424058
+.483024
+-.560051
+.554260
+-.420148
+.202995
+-.005605
+-.084486
+.050303
+.053355
+-.142341
+.150636
+-.054043
+-.127704
+.334462
+-.471984
+.438039
+-.176878
+-.264260
+.727762
+-1.017016
+1.013425
+-.755227
+.409168
+-.146008
+.013300
+.089317
+-.304732
+.664314
+-1.016438
+1.111226
+-.790665
+.140022
+.526655
+-.854196
+.680969
+-.152338
+-.371492
+.550457
+-.279314
+-.260502
+.734447
+-.870029
+.607735
+-.103650
+-.392349
+.686375
+-.727532
+.600114
+-.449660
+.394537
+-.464223
+.586351
+-.627869
+.477003
+-.126606
+-.296581
+.590744
+-.600296
+.319399
+.099825
+-.444352
+.571427
+-.479700
+.279090
+-.099319
+.013986
+-.026295
+.101655
+-.201163
+.289075
+-.325679
+.272663
+-.117706
+-.103261
+.312276
+-.427429
+.408035
+-.275937
+.100132
+.041870
+-.100682
+.070187
+.022028
+-.138750
+.255144
+-.364431
+.463990
+-.534580
+.534964
+-.426469
+.214516
+.030631
+-.206408
+.253593
+-.217485
+.231484
+-.415495
+.759659
+-1.093510
+1.185389
+-.910658
+.361093
+.197357
+-.495530
+.435551
+-.141038
+-.146771
+.239793
+-.113636
+-.109057
+.266945
+-.267170
+.121526
+.089664
+-.276710
+.376633
+-.357588
+.212692
+.038701
+-.345636
+.633040
+-.827798
+.889613
+-.824624
+.672346
+-.477110
+.266979
+-.054614
+-.142693
+.283173
+-.301272
+.136690
+.220944
+-.700073
+1.155385
+-1.422563
+1.395771
+-1.084980
+.617061
+-.176615
+-.082470
+.106198
+.045890
+-.246312
+.376010
+-.387816
+.323661
+-.279302
+.339076
+-.519347
+.753305
+-.925918
+.937918
+-.760094
+.445699
+-.096350
+-.192562
+.370794
+-.437539
+.420952
+-.357463
+.284473
+-.238370
+.244053
+-.297874
+.364809
+-.405576
+.419137
+-.460590
+.605086
+-.874049
+1.182310
+-1.361860
+1.263141
+-.868875
+.334280
+.088333
+-.199826
+-.019569
+.395711
+-.670367
+.662400
+-.373050
+-.030880
+.337103
+-.423718
+.321441
+-.170266
+.114329
+-.213027
+.422300
+-.642205
+.783288
+-.805519
+.717211
+-.553506
+.358619
+-.177563
+.048001
+.013675
+-.023264
+.023007
+-.056793
+.141286
+-.253535
+.344304
+-.369280
+.318049
+-.221232
+.128704
+-.071931
+.039286
+.011166
+-.105918
+.215930
+-.265640
+.194933
+-.023853
+-.144690
+.200741
+-.123062
+.007734
+.005116
+.149462
+-.398402
+.581692
+-.576399
+.389136
+-.141674
+-.032944
+.091512
+-.096073
+.139384
+-.252842
+.377545
+-.418649
+.330734
+-.160550
+.015163
+.014512
+.085796
+-.248396
+.366776
+-.351654
+.168548
+.151233
+-.519594
+.814985
+-.920732
+.773873
+-.405153
+-.057554
+.436153
+-.582998
+.452912
+-.124912
+-.239113
+.474598
+-.488624
+.291181
+.027588
+-.355591
+.618271
+-.805731
+.952868
+-1.086130
+1.176194
+-1.136810
+.880240
+-.394784
+-.213897
+.755993
+-1.050243
+1.016620
+-.709381
+.273725
+.138847
+-.438952
+.614281
+-.695922
+.713718
+-.677720
+.594508
+-.494114
+.433280
+-.463046
+.583731
+-.727088
+.787452
+-.685105
+.418246
+-.068698
+-.239663
+.400107
+-.366923
+.168891
+.103039
+-.325378
+.385735
+-.234398
+-.077643
+.404387
+-.568724
+.459618
+-.105197
+-.328880
+.622098
+-.615923
+.297271
+.197267
+-.653828
+.887414
+-.824502
+.523251
+-.127866
+-.210491
+.399878
+-.428907
+.343833
+-.207710
+.068823
+.052327
+-.163250
+.290683
+-.459892
+.664031
+-.843732
+.904474
+-.776809
+.481986
+-.145824
+-.066849
+.060878
+.116778
+-.302419
+.327941
+-.141199
+-.154044
+.368684
+-.358515
+.121332
+.204946
+-.437324
+.466944
+-.321321
+.132910
+-.040895
+.096067
+-.231992
+.319667
+-.264441
+.074384
+.151849
+-.309376
+.376040
+-.428705
+.566021
+-.798530
+1.004713
+-1.004993
+.706872
+-.206200
+-.245580
+.396691
+-.164786
+-.301078
+.711059
+-.815447
+.554573
+-.084205
+-.330108
+.471874
+-.283522
+-.129485
+.580485
+-.900102
+.993515
+-.847630
+.517803
+-.115482
+-.215424
+.355618
+-.287628
+.133185
+-.093270
+.303385
+-.703087
+1.035945
+-1.011693
+.530324
+.201162
+-.767489
+.810980
+-.282288
+-.509389
+1.093743
+-1.152961
+.732537
+-.200708
+-.015111
+-.269929
+.868318
+-1.350316
+1.339908
+-.769247
+-.082059
+.781702
+-1.029204
+.831557
+-.459478
+.234905
+-.310863
+.593200
+-.836782
+.826457
+-.509350
+.002651
+.500129
+-.839127
+.942084
+-.814580
+.509627
+-.115856
+-.241669
+.425906
+-.354136
+.066849
+.269459
+-.452429
+.372547
+-.079344
+-.272515
+.553557
+-.753695
+.958492
+-1.231682
+1.513875
+-1.634650
+1.436368
+-.909797
+.230889
+.332760
+-.576703
+.467841
+-.141349
+-.195844
+.383059
+-.375548
+.239347
+-.090647
+.021711
+-.052960
+.131777
+-.173743
+.119923
+.024648
+-.193570
+.299087
+-.283251
+.151225
+.028753
+-.156106
+.147144
+.014618
+-.251380
+.412646
+-.354139
+.041640
+.388489
+-.674280
+.576947
+-.049645
+-.693400
+1.274219
+-1.369043
+.908623
+-.124806
+-.591954
+.930177
+-.833834
+.507598
+-.260109
+.297319
+-.597295
+.933858
+-1.021219
+.689198
+.007023
+-.799210
+1.335661
+-1.364622
+.873957
+-.102094
+-.595727
+.950525
+-.922947
+.692563
+-.505389
+.495145
+-.608376
+.678256
+-.573117
+.293866
+.050683
+-.350342
+.575150
+-.759954
+.920318
+-.995918
+.889193
+-.568775
+.135925
+.220353
+-.351710
+.254654
+-.062365
+-.064491
+.050754
+.065213
+-.191782
+.259281
+-.241124
+.123688
+.114312
+-.468640
+.849821
+-1.072763
+.942698
+-.397338
+-.401103
+1.111569
+-1.391104
+1.097662
+-.385726
+-.373214
+.800166
+-.719956
+.245240
+.313945
+-.651438
+.645429
+-.403392
+.151806
+-.057240
+.111121
+-.159756
+.049570
+.230298
+-.521370
+.607092
+-.375569
+-.089511
+.555694
+-.788107
+.689391
+-.341940
+-.061443
+.337124
+-.398265
+.268612
+-.039965
+-.178862
+.290472
+-.222560
+-.048939
+.465829
+-.877718
+1.093778
+-.986833
+.581940
+-.054257
+-.376287
+.580089
+-.579838
+.495458
+-.426091
+.373924
+-.272347
+.085811
+.115257
+-.178499
+-.018502
+.456459
+-.954328
+1.265146
+-1.225336
+.855058
+-.341863
+-.078409
+.258836
+-.204418
+.026989
+.160129
+-.320770
+.489596
+-.698228
+.907130
+-1.008597
+.902492
+-.583257
+.166666
+.166628
+-.271449
+.115611
+.208417
+-.534726
+.702434
+-.622459
+.308422
+.135226
+-.561786
+.846566
+-.935873
+.852948
+-.660028
+.407788
+-.114882
+-.206975
+.511434
+-.710350
+.722689
+-.545012
+.278018
+-.073828
+.037008
+-.157074
+.326749
+-.428690
+.417754
+-.335833
+.258070
+-.225712
+.223108
+-.211045
+.178415
+-.163012
+.221942
+-.375214
+.569422
+-.695677
+.657208
+-.442391
+.148351
+.069391
+-.092579
+-.084923
+.356255
+-.574804
+.647453
+-.584050
+.476166
+-.428648
+.492812
+-.639001
+.777893
+-.813719
+.700428
+-.471227
+.223780
+-.067053
+.059152
+-.172283
+.304133
+-.325709
+.137614
+.288833
+-.894710
+1.540363
+-2.037436
+2.206173
+-1.946151
+1.290677
+-.410917
+-.441464
+1.030372
+-1.222955
+1.028196
+-.575013
+.048318
+.383866
+-.623112
+.657241
+-.540624
+.351448
+-.149825
+-.041575
+.227246
+-.412336
+.583015
+-.707903
+.755176
+-.709286
+.576727
+-.382674
+.165569
+.030403
+-.169482
+.242950
+-.275285
+.301838
+-.325917
+.292791
+-.119603
+-.222220
+.632184
+-.890588
+.779166
+-.247256
+-.498919
+1.073446
+-1.131714
+.600237
+.245226
+-.924130
+1.040917
+-.537340
+-.260365
+.838114
+-.813412
+.173379
+.719882
+-1.355562
+1.380896
+-.791854
+-.102561
+.898120
+-1.336681
+1.414876
+-1.309844
+1.202306
+-1.137681
+1.021720
+-.738304
+.285137
+.184942
+-.451917
+.379339
+-.012878
+-.445550
+.764189
+-.811957
+.604275
+-.250672
+-.134927
+.488502
+-.789705
+1.026447
+-1.174665
+1.208345
+-1.120057
+.928008
+-.666579
+.373602
+-.084691
+-.168522
+.363650
+-.493551
+.563827
+-.579940
+.535611
+-.416184
+.215817
+.047140
+-.331011
+.584214
+-.757942
+.812455
+-.726495
+.516935
+-.254530
+.048022
+.011327
+.089430
+-.272840
+.428401
+-.497086
+.509854
+-.544305
+.639632
+-.750631
+.785616
+-.691665
+.505327
+-.320114
+.203834
+-.147050
+.091967
+-.010923
+-.047021
+-.006258
+.205018
+-.467749
+.631937
+-.568971
+.290136
+.046210
+-.243130
+.214062
+-.059790
+.006305
+-.236870
+.734370
+-1.252852
+1.454284
+-1.129863
+.358130
+.514781
+-1.072218
+1.078667
+-.621687
+.048277
+.263282
+-.143398
+-.277641
+.683520
+-.804214
+.599027
+-.263599
+.067070
+-.149060
+.429000
+-.686596
+.738909
+-.571550
+.329315
+-.189132
+.226370
+-.376764
+.507246
+-.522622
+.420935
+-.268929
+.137461
+-.057434
+.022475
+-.018174
+.042018
+-.098092
+.178851
+-.254845
+.281744
+-.219111
+.049898
+.207163
+-.496314
+.736983
+-.848441
+.780060
+-.535176
+.176909
+.189072
+-.450829
+.533277
+-.430362
+.209915
+.015751
+-.142446
+.123178
+.013828
+-.189256
+.323500
+-.381572
+.382889
+-.370815
+.365486
+-.337341
+.224557
+.014777
+-.354366
+.693886
+-.905210
+.903261
+-.696932
+.388278
+-.119006
+-.007857
+-.011189
+.074024
+-.034215
+-.199115
+.586234
+-.967070
+1.163718
+-1.107483
+.891521
+-.697570
+.646401
+-.691496
+.651533
+-.366958
+-.140523
+.639144
+-.825962
+.538317
+.117393
+-.814726
+1.197990
+-1.080456
+.523585
+.232611
+-.915955
+1.342493
+-1.456609
+1.306620
+-1.002069
+.678307
+-.459326
+.407040
+-.475811
+.516959
+-.360374
+-.059195
+.617804
+-1.038705
+1.050269
+-.569872
+-.217863
+.956018
+-1.328523
+1.247004
+-.883936
+.536541
+-.425104
+.566042
+-.794408
+.900572
+-.776448
+.477188
+-.171100
+.020678
+-.070968
+.212411
+-.243992
+.007354
+.485763
+-1.020718
+1.283581
+-1.055029
+.374928
+.440570
+-.960322
+.888040
+-.243804
+-.641650
+1.320360
+-1.487305
+1.144455
+-.569803
+.118810
+.005471
+.138634
+-.308777
+.276233
+.005197
+-.379533
+.621925
+-.613577
+.423632
+-.244357
+.241078
+-.433700
+.686772
+-.797174
+.608296
+-.085285
+-.668525
+1.441963
+-1.980194
+2.077449
+-1.675995
+.918634
+-.100149
+-.481045
+.688944
+-.618131
+.506027
+-.546418
+.742423
+-.911681
+.840483
+-.465892
+-.058368
+.465847
+-.569931
+.394501
+-.142533
+.033141
+-.141358
+.366097
+-.541498
+.587564
+-.569973
+.620808
+-.790799
+.960540
+-.892594
+.400074
+.481975
+-1.447009
+2.043859
+-1.925600
+1.077815
+.123871
+-1.089641
+1.342045
+-.798760
+-.175041
+.990279
+-1.194313
+.732277
+.056316
+-.685055
+.827354
+-.477608
+-.112739
+.639105
+-.925540
+.975439
+-.899580
+.811144
+-.769792
+.788790
+-.862491
+.971949
+-1.068829
+1.075770
+-.930911
+.655915
+-.385610
+.309525
+-.542326
+1.011982
+-1.464292
+1.607721
+-1.311460
+.712275
+-.138392
+-.107926
+-.044270
+.393005
+-.616170
+.502784
+-.089435
+-.392891
+.707229
+-.778731
+.713921
+-.670436
+.699895
+-.703027
+.535635
+-.171241
+-.225901
+.392248
+-.159032
+-.401177
+.992919
+-1.273387
+1.059634
+-.424681
+-.371304
+1.048445
+-1.449423
+1.571613
+-1.498145
+1.305719
+-1.024018
+.661810
+-.256217
+-.109538
+.337976
+-.371900
+.229053
+.005478
+-.220163
+.324871
+-.283150
+.120195
+.091823
+-.263672
+.323157
+-.240853
+.038059
+.223146
+-.459544
+.587054
+-.539244
+.286797
+.143045
+-.658612
+1.123023
+-1.403500
+1.429725
+-1.226639
+.898313
+-.572152
+.341061
+-.238018
+.248775
+-.338149
+.464014
+-.576223
+.619484
+-.554391
+.385542
+-.169161
+-.014588
+.106729
+-.095973
+.005533
+.142597
+-.345728
+.596350
+-.835795
+.938317
+-.763587
+.259242
+.458959
+-1.123869
+1.443355
+-1.266398
+.680030
+.031614
+-.542594
+.655435
+-.383703
+-.089337
+.529555
+-.766451
+.745895
+-.517752
+.189708
+.122087
+-.331962
+.408870
+-.377879
+.294204
+-.201568
+.104482
+.021278
+-.187288
+.358285
+-.462134
+.444313
+-.324150
+.201400
+-.196387
+.361269
+-.629359
+.847222
+-.874020
+.678531
+-.360288
+.076902
+.066781
+-.080173
+.051725
+-.053446
+.073768
+-.040661
+-.090090
+.272679
+-.405749
+.439932
+-.453472
+.605700
+-.985403
+1.480095
+-1.796206
+1.644661
+-.962387
+-.006351
+.844331
+-1.218746
+1.071526
+-.608954
+.118644
+.227309
+-.432344
+.578920
+-.689251
+.681004
+-.454870
+.024960
+.437285
+-.697638
+.620605
+-.266527
+-.155424
+.441705
+-.534997
+.545229
+-.641865
+.907183
+-1.263528
+1.525314
+-1.530417
+1.251248
+-.807531
+.378281
+-.081414
+-.093495
+.255620
+-.513389
+.878106
+-1.239157
+1.427567
+-1.324121
+.939345
+-.413632
+-.060622
+.342775
+-.407871
+.334024
+-.227992
+.144247
+-.056455
+-.096953
+.326892
+-.537477
+.555875
+-.244693
+-.375000
+1.085075
+-1.563789
+1.567116
+-1.083788
+.356172
+.256463
+-.489667
+.325056
+.016963
+-.236717
+.160531
+.145374
+-.428275
+.432150
+-.083200
+-.453469
+.887151
+-1.003613
+.808589
+-.509165
+.351359
+-.440305
+.678584
+-.861680
+.846653
+-.659664
+.465034
+-.431637
+.606054
+-.884377
+1.089615
+-1.085195
+.844108
+-.442182
+.003177
+.355558
+-.550826
+.542383
+-.341943
+.023342
+.287794
+-.461821
+.435849
+-.259187
+.069746
+-.005458
+.110836
+-.311274
+.476443
+-.520998
+.459043
+-.371629
+.323652
+-.308073
+.264239
+-.145268
+-.032472
+.201904
+-.304073
+.337422
+-.354795
+.412977
+-.518694
+.615482
+-.623875
+.506975
+-.313405
+.162512
+-.175333
+.393359
+-.738468
+1.041772
+-1.125854
+.893443
+-.376487
+-.275917
+.860429
+-1.203027
+1.225986
+-.970035
+.564557
+-.163939
+-.116341
+.235019
+-.222408
+.150254
+-.092086
+.089742
+-.137767
+.192576
+-.204008
+.152373
+-.065117
+-.003068
+.015831
+.009042
+-.006929
+-.081789
+.254450
+-.434526
+.524157
+-.484362
+.375631
+-.318386
+.399696
+-.602722
+.819537
+-.936404
+.916888
+-.811379
+.690715
+-.570697
+.399290
+-.116875
+-.268247
+.658132
+-.915737
+.945533
+-.744655
+.397988
+-.032826
+-.234901
+.342626
+-.305081
+.213215
+-.198702
+.366896
+-.728155
+1.172788
+-1.515673
+1.592155
+-1.349309
+.876937
+-.360890
+-.011541
+.137718
+-.031803
+-.207285
+.463803
+-.663861
+.792226
+-.867296
+.903195
+-.891855
+.816625
+-.679502
+.514226
+-.370758
+.283302
+-.247254
+.222141
+-.157528
+.023795
+.169657
+-.376192
+.531450
+-.583579
+.523153
+-.396769
+.290564
+-.284285
+.401135
+-.588583
+.748837
+-.800292
+.726617
+-.581129
+.450492
+-.409040
+.489870
+-.674918
+.894787
+-1.040741
+1.002582
+-.730415
+.284289
+.177166
+-.482013
+.555175
+-.471951
+.406688
+-.506656
+.782024
+-1.094619
+1.256417
+-1.167172
+.891127
+-.616644
+.527597
+-.677228
+.951804
+-1.147567
+1.107864
+-.829935
+.471060
+-.248529
+.294127
+-.556489
+.820374
+-.839160
+.498233
+.101601
+-.701415
+1.043802
+-1.024268
+.735159
+-.386480
+.172279
+-.173020
+.339547
+-.543906
+.653539
+-.592157
+.368621
+-.064799
+-.214916
+.407445
+-.524327
+.623454
+-.736784
+.817587
+-.764156
+.513138
+-.125361
+-.219386
+.332474
+-.153933
+-.191925
+.472652
+-.503070
+.265256
+.093773
+-.379718
+.492129
+-.483280
+.495661
+-.631788
+.860297
+-1.032989
+.999932
+-.731294
+.346745
+-.025653
+-.131333
+.175400
+-.252274
+.457395
+-.725115
+.853824
+-.660302
+.144607
+.472363
+-.880946
+.891172
+-.559854
+.140998
+.098077
+-.053433
+-.171875
+.371906
+-.395398
+.237705
+-.015323
+-.137046
+.160621
+-.096508
+.038298
+-.058368
+.158875
+-.273137
+.309587
+-.209903
+-.011318
+.268275
+-.448268
+.475421
+-.354217
+.161198
+.013050
+-.130806
+.229462
+-.377411
+.596681
+-.819745
+.925898
+-.836311
+.590088
+-.330382
+.201202
+-.235584
+.330394
+-.334540
+.177956
+.069662
+-.261798
+.301734
+-.217856
+.120919
+-.089496
+.097482
+-.055657
+-.074422
+.211166
+-.206208
+-.019293
+.380570
+-.672918
+.727851
+-.554391
+.344873
+-.334835
+.624533
+-1.098154
+1.497948
+-1.594309
+1.329474
+-.842227
+.370061
+-.102804
+.080943
+-.192003
+.255574
+-.140825
+-.151264
+.486269
+-.676110
+.595977
+-.268484
+-.141134
+.422589
+-.452933
+.276326
+-.073546
+.038050
+-.242049
+.584178
+-.852044
+.853991
+-.531665
+-.011887
+.572840
+-.947846
+1.018495
+-.787231
+.363739
+.081372
+-.376749
+.408789
+-.162775
+-.267257
+.707647
+-.968998
+.925158
+-.574527
+.049815
+.439318
+-.709912
+.700863
+-.499783
+.279580
+-.182871
+.232370
+-.330549
+.347371
+-.228351
+.038492
+.092224
+-.076873
+-.056654
+.192153
+-.230036
+.182009
+-.169941
+.320994
+-.641582
+.980163
+-1.122293
+.953380
+-.561529
+.191914
+-.078955
+.279224
+-.629576
+.859737
+-.774677
+.378025
+.140132
+-.529087
+.626980
+-.444844
+.148114
+.043011
+.021363
+-.332319
+.716239
+-.921758
+.761495
+-.231352
+-.467269
+1.024509
+-1.187070
+.894483
+-.308031
+-.279843
+.597876
+-.523385
+.123271
+.398256
+-.803764
+.922550
+-.707697
+.240886
+.305128
+-.731517
+.889360
+-.742587
+.386504
+-.003291
+-.229573
+.226150
+-.019024
+-.288544
+.604552
+-.898126
+1.178752
+-1.428506
+1.556252
+-1.430074
+.979737
+-.293578
+-.376821
+.730301
+-.584249
+-.013703
+.805862
+-1.461506
+1.740555
+-1.588062
+1.121583
+-.542442
+.035204
+.293761
+-.423241
+.386379
+-.232274
+.005390
+.250694
+-.480675
+.620569
+-.627663
+.519436
+-.385846
+.349213
+-.485080
+.753278
+-.994678
+1.013529
+-.707128
+.160952
+.365540
+-.574310
+.311238
+.324004
+-1.023401
+1.449158
+-1.427412
+1.029192
+-.495339
+.074329
+.108222
+-.073345
+-.078878
+.253925
+-.400742
+.495640
+-.511484
+.413844
+-.190715
+-.115865
+.415662
+-.622188
+.714940
+-.755409
+.830740
+-.962039
+1.059011
+-.978533
+.658213
+-.217106
+-.081512
+.008504
+.434052
+-.961401
+1.171679
+-.832063
+.076287
+.650952
+-.886508
+.476848
+.300875
+-.922053
+.974577
+-.434466
+-.339720
+.879456
+-.936267
+.628047
+-.308797
+.277148
+-.548493
+.854101
+-.855311
+.407415
+.319041
+-.942257
+1.121282
+-.780102
+.151178
+.386886
+-.563732
+.388740
+-.124607
+.085536
+-.402280
+.918387
+-1.289387
+1.217432
+-.661071
+-.122239
+.730993
+-.869662
+.528825
+.020872
+-.411960
+.413728
+-.062079
+-.390206
+.653125
+-.578789
+.226348
+.209643
+-.537072
+.670555
+-.644348
+.547435
+-.440993
+.317038
+-.120451
+-.186995
+.568727
+-.906790
+1.062141
+-.970828
+.709960
+-.473623
+.454441
+-.702505
+1.066760
+-1.277637
+1.126471
+-.615383
+-.034064
+.521689
+-.653706
+.439235
+-.041555
+-.357084
+.663116
+-.878371
+1.026813
+-1.084706
+.983760
+-.683237
+.244712
+.161989
+-.338340
+.172503
+.286489
+-.843607
+1.251859
+-1.329730
+1.042175
+-.512247
+-.035155
+.372925
+-.377858
+.098966
+.252044
+-.399827
+.155140
+.464813
+-1.223709
+1.779647
+-1.865934
+1.434166
+-.677481
+-.074074
+.519800
+-.521433
+.139656
+.427185
+-.951324
+1.268720
+-1.319841
+1.138733
+-.814288
+.448981
+-.128387
+-.096125
+.212188
+-.238912
+.208184
+-.141588
+.033803
+.145223
+-.424675
+.792876
+-1.167220
+1.403664
+-1.358536
+.979805
+-.371414
+-.225713
+.546675
+-.452289
+.019244
+.498424
+-.821417
+.813474
+-.551616
+.249700
+-.090785
+.090660
+-.093769
+-.092874
+.525418
+-1.041328
+1.341938
+-1.192578
+.602338
+.150645
+-.679091
+.730301
+-.348071
+-.160282
+.429471
+-.272346
+-.213821
+.735675
+-1.013109
+.956307
+-.690521
+.426872
+-.290376
+.239509
+-.131632
+-.129821
+.493324
+-.787967
+.858166
+-.691779
+.434999
+-.280498
+.318973
+-.472637
+.561729
+-.449845
+.154082
+.162493
+-.307063
+.193373
+.098488
+-.375262
+.453526
+-.268536
+-.095642
+.461511
+-.656937
+.600713
+-.338253
+.019461
+.168863
+-.092928
+-.250403
+.711414
+-1.050594
+1.070262
+-.742661
+.243165
+.150493
+-.237165
+.026560
+.270276
+-.391091
+.205744
+.195946
+-.566843
+.662034
+-.384036
+-.171312
+.778123
+-1.200056
+1.298864
+-1.086029
+.703632
+-.345654
+.155262
+-.151789
+.235804
+-.276186
+.221265
+-.145730
+.185884
+-.406974
+.712573
+-.885473
+.744974
+-.302658
+-.214281
+.506987
+-.419406
+.063085
+.249126
+-.223268
+-.195370
+.763301
+-1.093239
+.922178
+-.306133
+-.401192
+.778460
+-.616963
+.053343
+.536759
+-.799710
+.626128
+-.181132
+-.257059
+.506629
+-.577758
+.599816
+-.665592
+.733270
+-.664734
+.359531
+.132384
+-.614874
+.867111
+-.791899
+.480481
+-.147459
+-.015080
+-.041813
+.209962
+-.315283
+.238629
+.018963
+-.356649
+.644377
+-.785640
+.742447
+-.531099
+.210684
+.130818
+-.400828
+.537003
+-.533090
+.433605
+-.298118
+.163369
+-.035284
+-.085532
+.174920
+-.188650
+.102342
+.048599
+-.174642
+.191276
+-.086562
+-.065148
+.163394
+-.168208
+.135570
+-.164674
+.298571
+-.466074
+.521993
+-.359927
+.006885
+.380582
+-.621884
+.640705
+-.517296
+.423337
+-.488299
+.699284
+-.909040
+.943235
+-.722552
+.309736
+.143073
+-.492883
+.670102
+-.672713
+.521889
+-.238200
+-.138261
+.517520
+-.771500
+.799064
+-.597477
+.276698
+.002391
+-.121874
+.065032
+.093757
+-.245146
+.299710
+-.214297
+-.003176
+.293080
+-.548418
+.642735
+-.488868
+.101637
+.383887
+-.765709
+.875981
+-.666823
+.228976
+.259029
+-.609360
+.688459
+-.454322
+-.023596
+.567025
+-.940064
+.957201
+-.598273
+.041333
+.437271
+-.641969
+.583957
+-.450656
+.438111
+-.580914
+.718505
+-.627368
+.216486
+.365739
+-.797898
+.786242
+-.267059
+-.523987
+1.167771
+-1.300474
+.833986
+-.022791
+-.671219
+.841500
+-.371551
+-.500230
+1.323382
+-1.695472
+1.479082
+-.849609
+.159529
+.282393
+-.375354
+.242780
+-.109400
+.133526
+-.306175
+.475716
+-.469749
+.224453
+.167614
+-.519356
+.670859
+-.583281
+.344667
+-.097404
+-.049561
+.062439
+.034039
+-.197537
+.393046
+-.591423
+.759951
+-.862592
+.869155
+-.761292
+.533364
+-.198341
+-.197167
+.565475
+-.801701
+.839479
+-.701367
+.496638
+-.354822
+.338739
+-.406700
+.457159
+-.419233
+.309516
+-.203280
+.146982
+-.097757
+-.043433
+.324025
+-.654126
+.832969
+-.685743
+.208480
+.400572
+-.859776
+.990532
+-.833360
+.609184
+-.559055
+.781416
+-1.178486
+1.536667
+-1.670991
+1.530831
+-1.204217
+.834397
+-.516262
+.244066
+.060566
+-.466005
+.952960
+-1.396075
+1.619676
+-1.494556
+1.017049
+-.323604
+-.365426
+.839664
+-.981263
+.800050
+-.412726
+-.015890
+.339013
+-.472443
+.405484
+-.185703
+-.103907
+.364386
+-.502158
+.462116
+-.264784
+.016201
+.138476
+-.106233
+-.078103
+.258673
+-.260218
+.016473
+.374570
+-.717560
+.859588
+-.792015
+.634828
+-.522914
+.493739
+-.469445
+.341147
+-.076532
+-.241746
+.473826
+-.520965
+.382150
+-.132695
+-.139275
+.373509
+-.526476
+.540943
+-.352983
+-.047628
+.554185
+-.952209
+1.026915
+-.707623
+.141060
+.374597
+-.562045
+.329160
+.186959
+-.722856
+1.061744
+-1.154666
+1.111652
+-1.082783
+1.128253
+-1.177881
+1.104076
+-.839863
+.440421
+-.040545
+-.246914
+.399225
+-.464855
+.490371
+-.473513
+.388137
+-.246236
+.121204
+-.095345
+.176471
+-.267651
+.231826
+-.006787
+-.325199
+.575782
+-.573058
+.277762
+.190459
+-.629624
+.873739
+-.872175
+.689591
+-.447869
+.261978
+-.205795
+.305853
+-.539486
+.827500
+-1.038127
+1.028211
+-.721205
+.179314
+.391562
+-.734364
+.692294
+-.322511
+-.119060
+.334143
+-.185340
+-.199717
+.514572
+-.504897
+.178109
+.177128
+-.197116
+-.266803
+.996737
+-1.527308
+1.464397
+-.774132
+-.175457
+.857353
+-.939548
+.495893
+.071329
+-.329708
+.112424
+.397431
+-.836704
+.941324
+-.721014
+.411251
+-.261128
+.334716
+-.477787
+.461213
+-.175939
+-.273451
+.639778
+-.704690
+.422124
+.059405
+-.494704
+.682808
+-.562346
+.218925
+.178942
+-.465728
+.542672
+-.402095
+.118544
+.179085
+-.347085
+.276774
+.053453
+-.547786
+1.015958
+-1.259534
+1.185636
+-.874657
+.541712
+-.401168
+.520622
+-.771244
+.915880
+-.774937
+.352297
+.164155
+-.519877
+.543572
+-.234939
+-.251758
+.703501
+-.959863
+.978843
+-.826693
+.605867
+-.372654
+.105799
+.245792
+-.671208
+1.043403
+-1.167581
+.917472
+-.359939
+-.243359
+.584541
+-.513433
+.144290
+.224359
+-.324561
+.107652
+.237106
+-.445747
+.393586
+-.190225
+.081977
+-.241004
+.609586
+-.924765
+.909642
+-.489217
+-.133131
+.601322
+-.648058
+.279482
+.230166
+-.528670
+.422666
+.005583
+-.473710
+.697990
+-.567800
+.185072
+.231310
+-.485378
+.490579
+-.269720
+-.094915
+.505622
+-.863522
+1.071633
+-1.054576
+.796104
+-.364291
+-.107546
+.482854
+-.687028
+.728588
+-.664266
+.542666
+-.377453
+.170545
+.044686
+-.191832
+.194319
+-.040554
+-.188445
+.362580
+-.389729
+.278000
+-.122062
+.024401
+-.017018
+.047612
+-.037971
+-.040255
+.140608
+-.190272
+.168069
+-.142110
+.230593
+-.512811
+.956757
+-1.415717
+1.696155
+-1.654938
+1.271387
+-.660555
+.024290
+.437464
+-.615553
+.537933
+-.345800
+.207985
+-.222077
+.364458
+-.521275
+.575138
+-.482946
+.290716
+-.085185
+-.068782
+.153566
+-.177763
+.143625
+-.042750
+-.116908
+.286797
+-.390030
+.368210
+-.225187
+.031235
+.115906
+-.141962
+.024641
+.211228
+-.516217
+.833884
+-1.104743
+1.264261
+-1.248974
+1.018247
+-.585230
+.038139
+.472124
+-.787950
+.824585
+-.625735
+.348241
+-.171523
+.183575
+-.323241
+.425468
+-.344393
+.070124
+.243822
+-.365346
+.129775
+.444623
+-1.144598
+1.665772
+-1.776225
+1.445718
+-.861674
+.318076
+-.042919
+.072253
+-.249231
+.343332
+-.204724
+-.147357
+.549178
+-.799907
+.776138
+-.488821
+.062471
+.339079
+-.594639
+.672939
+-.625693
+.538520
+-.476255
+.457386
+-.466458
+.481700
+-.489238
+.477152
+-.428052
+.329986
+-.199905
+.092256
+-.072658
+.169470
+-.343371
+.507115
+-.588944
+.593495
+-.608025
+.738930
+-1.017541
+1.344683
+-1.525455
+1.384830
+-.894072
+.220841
+.341073
+-.529143
+.265144
+.289693
+-.813689
+.995483
+-.701376
+.046348
+.669899
+-1.125565
+1.147346
+-.794951
+.315235
+.003064
+.011877
+-.330853
+.753403
+-1.024670
+.970810
+-.583996
+.021740
+.473072
+-.691898
+.564659
+-.196984
+-.183532
+.350762
+-.209180
+-.147414
+.489491
+-.592672
+.381431
+.018432
+-.359111
+.436159
+-.230676
+-.072906
+.213436
+-.041630
+-.362082
+.729175
+-.781452
+.423990
+.181577
+-.713477
+.886788
+-.617541
+.053040
+.533888
+-.901395
+.944558
+-.703844
+.302458
+.124876
+-.468393
+.646097
+-.604949
+.341690
+.069166
+-.477662
+.714207
+-.678507
+.403305
+-.040869
+-.227141
+.297969
+-.200769
+.063136
+-.022750
+.147177
+-.405269
+.689809
+-.865695
+.822958
+-.526002
+.047633
+.437145
+-.717345
+.654424
+-.271568
+-.242968
+.634774
+-.728510
+.524983
+-.187351
+-.069210
+.104755
+.083881
+-.392957
+.691272
+-.883026
+.920685
+-.787851
+.494639
+-.100670
+-.264499
+.428675
+-.261836
+-.228093
+.860238
+-1.347202
+1.436881
+-1.050645
+.337261
+.391568
+-.811433
+.743994
+-.241976
+-.443160
+.992824
+-1.179869
+.967672
+-.500045
+-.000938
+.357427
+-.504882
+.480759
+-.364085
+.222026
+-.096667
+.021325
+-.031915
+.152289
+-.365197
+.600678
+-.761292
+.772713
+-.624256
+.370666
+-.095221
+-.136621
+.300175
+-.400408
+.444644
+-.427304
+.338849
+-.186561
+.003290
+.167814
+-.303269
+.419981
+-.567070
+.787914
+-1.073425
+1.339205
+-1.451640
+1.299002
+-.868041
+.273729
+.285932
+-.626828
+.667816
+-.459603
+.144852
+.116952
+-.217497
+.136504
+.056960
+-.237531
+.286049
+-.160546
+-.065915
+.237584
+-.213765
+-.026333
+.347803
+-.530374
+.407394
+.015771
+-.545536
+.901824
+-.876940
+.454501
+.181588
+-.748265
+1.009577
+-.884687
+.466712
+.042470
+-.435676
+.588499
+-.496743
+.256381
+-.003504
+-.153161
+.174184
+-.088317
+-.043540
+.171198
+-.277624
+.371760
+-.464813
+.550698
+-.604159
+.596422
+-.518497
+.399502
+-.308058
+.329232
+-.520631
+.868681
+-1.274755
+1.589907
+-1.685330
+1.517643
+-1.148354
+.708940
+-.339642
+.140412
+-.150887
+.348175
+-.647069
+.907681
+-.972455
+.738492
+-.233434
+-.363546
+.792504
+-.850346
+.514158
+.034118
+-.506581
+.674164
+-.493661
+.118131
+.211559
+-.319763
+.195106
+.022293
+-.147491
+.074116
+.166854
+-.443270
+.615383
+-.613923
+.453145
+-.189465
+-.120344
+.419438
+-.622474
+.613884
+-.310130
+-.244411
+.833744
+-1.145984
+.947503
+-.244837
+-.686614
+1.443057
+-1.718249
+1.469675
+-.921111
+.409391
+-.181707
+.270348
+-.510313
+.671786
+-.614585
+.369927
+-.104653
+-.003397
+-.103371
+.313107
+-.415978
+.253914
+.154700
+-.611533
+.869889
+-.812064
+.539051
+-.297202
+.289485
+-.513079
+.750187
+-.723047
+.298524
+.408885
+-1.105349
+1.498356
+-1.456427
+1.048830
+-.467507
+-.087020
+.474899
+-.623663
+.512536
+-.174930
+-.284970
+.701552
+-.909675
+.833864
+-.540428
+.202265
+.011962
+-.051829
+.019440
+-.092975
+.387023
+-.846024
+1.249278
+-1.333498
+.958298
+-.208818
+-.631898
+1.225736
+-1.351246
+1.004960
+-.381619
+-.241534
+.641135
+-.730057
+.555142
+-.232127
+-.131212
+.477683
+-.792688
+1.064000
+-1.247946
+1.274177
+-1.091242
+.720144
+-.271043
+-.099593
+.271242
+-.228556
+.069400
+.057919
+-.051084
+-.077567
+.206671
+-.186393
+-.054612
+.445625
+-.799684
+.917251
+-.704851
+.235053
+.287785
+-.632956
+.657965
+-.371173
+-.083259
+.502275
+-.719381
+.672090
+-.413007
+.065488
+.247724
+-.462485
+.587924
+-.674361
+.760637
+-.839172
+.863519
+-.791186
+.625845
+-.421987
+.246190
+-.127852
+.043973
+.047771
+-.160184
+.262830
+-.320123
+.343097
+-.393365
+.519868
+-.679472
+.724454
+-.492144
+-.059968
+.784760
+-1.412402
+1.716005
+-1.653293
+1.376059
+-1.104118
+.967213
+-.938028
+.897154
+-.761358
+.561100
+-.406914
+.383410
+-.468369
+.546856
+-.505499
+.325583
+-.097543
+-.051772
+.057545
+.037011
+-.118250
+.087491
+.072196
+-.289986
+.454468
+-.473391
+.312609
+-.004858
+-.364365
+.687096
+-.875072
+.899598
+-.804914
+.678432
+-.591489
+.552332
+-.509237
+.403305
+-.227806
+.042703
+.070426
+-.076462
+.018710
+.014576
+.037694
+-.160498
+.278081
+-.318636
+.269773
+-.177933
+.097859
+-.043408
+-.014839
+.107782
+-.226542
+.323646
+-.355731
+.327872
+-.298139
+.336358
+-.467653
+.642070
+-.751719
+.686810
+-.399764
+-.057020
+.542132
+-.882672
+.951506
+-.724874
+.291521
+.189080
+-.555109
+.704225
+-.624465
+.387133
+-.108524
+-.102215
+.186338
+-.150088
+.045363
+.068572
+-.156785
+.216140
+-.260785
+.301352
+-.332698
+.335106
+-.286016
+.176883
+-.027628
+-.112483
+.185208
+-.158074
+.050444
+.072040
+-.134826
+.097371
+.029880
+-.203112
+.376055
+-.516009
+.598857
+-.601992
+.515067
+-.362297
+.206334
+-.112446
+.090198
+-.063383
+-.091228
+.447803
+-.944388
+1.379248
+-1.510761
+1.203761
+-.524586
+-.283222
+.929018
+-1.226037
+1.167935
+-.891515
+.564811
+-.284325
+.048264
+.188608
+-.432159
+.608209
+-.598466
+.328761
+.153767
+-.671959
+.990925
+-.934237
+.482341
+.199422
+-.822118
+1.101727
+-.897547
+.289749
+.452390
+-1.003175
+1.143111
+-.858247
+.322153
+.216332
+-.559398
+.625481
+-.436132
+.065650
+.392808
+-.829008
+1.114800
+-1.138429
+.872073
+-.421483
+-.001579
+.192626
+-.088447
+-.177641
+.354068
+-.241456
+-.160939
+.641003
+-.908420
+.788674
+-.342605
+-.169961
+.456256
+-.373152
+.005340
+.406715
+-.633078
+.597909
+-.404283
+.231292
+-.185759
+.222326
+-.192048
+-.019535
+.374451
+-.681588
+.721112
+-.405335
+-.144361
+.665154
+-.919439
+.842185
+-.564498
+.300521
+-.184723
+.180725
+-.126953
+-.120711
+.561347
+-1.033251
+1.318038
+-1.281700
+.947548
+-.457645
+-.031161
+.426967
+-.703379
+.844921
+-.811519
+.572178
+-.181415
+-.185656
+.303480
+-.045244
+-.498874
+1.041489
+-1.264503
+1.022697
+-.436060
+-.198535
+.609267
+-.713724
+.630208
+-.543930
+.547494
+-.584634
+.532762
+-.343532
+.114608
+-.027332
+.197449
+-.559693
+.883628
+-.918533
+.567374
+.033926
+-.590282
+.827226
+-.658377
+.231379
+.175052
+-.331526
+.195783
+.081079
+-.277570
+.263915
+-.088608
+-.069210
+.042752
+.191603
+-.493205
+.660585
+-.580902
+.313241
+-.045258
+-.042737
+-.094105
+.332617
+-.460441
+.307996
+.148970
+-.767924
+1.300855
+-1.502976
+1.242930
+-.571421
+-.283353
+1.002430
+-1.317105
+1.138703
+-.603593
+-.000327
+.388701
+-.425793
+.172932
+.180717
+-.447726
+.542341
+-.495864
+.400995
+-.342790
+.363635
+-.466193
+.626807
+-.798509
+.910453
+-.885754
+.684101
+-.345019
+-.006217
+.209750
+-.159686
+-.121833
+.476651
+-.684515
+.583868
+-.170784
+-.385664
+.826031
+-.936901
+.663387
+-.134063
+-.413537
+.760818
+-.815301
+.640923
+-.404083
+.276118
+-.350271
+.610841
+-.954984
+1.242867
+-1.351741
+1.222341
+-.889303
+.479578
+-.162082
+.057655
+-.158221
+.318743
+-.347144
+.142333
+.219059
+-.521013
+.554570
+-.268868
+-.186821
+.562480
+-.675115
+.523504
+-.273846
+.137577
+-.234195
+.527871
+-.864816
+1.072209
+-1.054785
+.841491
+-.567741
+.406449
+-.478958
+.787407
+-1.204655
+1.531347
+-1.592360
+1.320938
+-.788644
+.172448
+.317560
+-.518345
+.376764
+.022347
+-.479703
+.761945
+-.715289
+.355299
+.128403
+-.470237
+.478815
+-.147967
+-.341904
+.730143
+-.819665
+.572193
+-.110743
+-.355302
+.632238
+-.624062
+.368571
+-.016514
+-.242672
+.282900
+-.117704
+-.104891
+.198515
+-.066584
+-.232162
+.533164
+-.691618
+.681869
+-.591301
+.522056
+-.493342
+.434424
+-.273657
+.040860
+.117107
+-.036785
+-.316424
+.776060
+-1.047748
+.893425
+-.304646
+-.459421
+1.006677
+-1.040905
+.541462
+.218457
+-.825587
+.958206
+-.559702
+-.141241
+.767173
+-1.002871
+.762851
+-.226068
+-.276549
+.455431
+-.224113
+-.264772
+.727833
+-.931012
+.823363
+-.540630
+.287659
+-.192868
+.240042
+-.315724
+.320341
+-.249956
+.190322
+-.240893
+.436594
+-.724826
+1.002916
+-1.176921
+1.201153
+-1.084986
+.878702
+-.651107
+.461943
+-.334531
+.246042
+-.152337
+.037497
+.053850
+-.041453
+-.115392
+.352658
+-.512834
+.442305
+-.109517
+-.347353
+.688068
+-.714105
+.394176
+.109212
+-.527448
+.633218
+-.362571
+-.152211
+.651864
+-.882019
+.720227
+-.235315
+-.349988
+.774132
+-.868646
+.635415
+-.226630
+-.157408
+.387437
+-.465850
+.495193
+-.583522
+.756112
+-.931650
+.971388
+-.762016
+.281209
+.382743
+-1.056365
+1.536160
+-1.659611
+1.373343
+-.769384
+.059029
+.517636
+-.803543
+.789905
+-.593978
+.369665
+-.218360
+.158513
+-.158363
+.186342
+-.230339
+.277485
+-.288585
+.204991
+.008333
+-.319789
+.629851
+-.821429
+.828579
+-.673637
+.446459
+-.243717
+.114041
+-.046429
+.001990
+.044042
+-.085463
+.102358
+-.090424
+.073972
+-.093107
+.180564
+-.346894
+.577803
+-.833586
+1.046845
+-1.131696
+1.019499
+-.709942
+.297810
+.061402
+-.239569
+.220984
+-.117819
+.095934
+-.258152
+.567577
+-.868106
+.991572
+-.876955
+.615637
+-.385387
+.317852
+-.397410
+.471653
+-.371337
+.049965
+.367373
+-.669115
+.714386
+-.541095
+.340662
+-.317602
+.540234
+-.893091
+1.161986
+-1.184167
+.952182
+-.602231
+.305367
+-.147290
+.082155
+.014446
+-.238789
+.576145
+-.896877
+1.030211
+-.865957
+.421435
+.163703
+-.696059
+1.018069
+-1.069342
+.893834
+-.599977
+.304565
+-.091287
+-.002754
+-.020056
+.129237
+-.272516
+.381369
+-.386543
+.246428
+.024530
+-.349517
+.616766
+-.729693
+.651042
+-.414550
+.100897
+.201769
+-.425399
+.526422
+-.478145
+.271727
+.066485
+-.457269
+.777458
+-.907311
+.795755
+-.500078
+.166508
+.043741
+-.038955
+-.159995
+.441935
+-.672868
+.762636
+-.692676
+.499136
+-.236824
+-.043616
+.292119
+-.445252
+.432007
+-.212991
+-.168789
+.570739
+-.799085
+.707930
+-.291204
+-.294932
+.799779
+-.999914
+.806875
+-.304056
+-.301182
+.778916
+-.976205
+.867561
+-.541423
+.143890
+.180838
+-.327783
+.248206
+.036681
+-.422455
+.732882
+-.782012
+.475131
+.111006
+-.737901
+1.121044
+-1.089421
+.685386
+-.137235
+-.276608
+.381113
+-.180974
+-.174680
+.497670
+-.659193
+.626560
+-.437920
+.156676
+.153860
+-.427197
+.587033
+-.563008
+.327732
+.074529
+-.535730
+.927650
+-1.151033
+1.160046
+-.956847
+.576438
+-.081334
+-.435473
+.858229
+-1.079776
+1.046750
+-.790542
+.418973
+-.066334
+-.173716
+.292697
+-.359239
+.459645
+-.626417
+.808530
+-.911156
+.877110
+-.742697
+.615368
+-.584932
+.641117
+-.671658
+.550394
+-.247925
+-.125111
+.380892
+-.378859
+.121728
+.244343
+-.521883
+.581072
+-.427483
+.180897
+.012504
+-.071610
+.016397
+.067798
+-.103741
+.074884
+-.019731
+-.021690
+.059401
+-.154817
+.364568
+-.668826
+.945461
+-1.023776
+.794289
+-.303084
+-.242578
+.577817
+-.538302
+.169724
+.291824
+-.565738
+.505312
+-.187525
+-.147356
+.261471
+-.072371
+-.309286
+.671613
+-.846131
+.802151
+-.638041
+.495109
+-.463746
+.539477
+-.640005
+.657903
+-.516041
+.204855
+.208145
+-.600955
+.847344
+-.874890
+.699316
+-.412235
+.128638
+.071273
+-.168540
+.189820
+-.172824
+.145823
+-.133082
+.166713
+-.277633
+.463138
+-.661476
+.768833
+-.700249
+.453162
+-.121453
+-.156857
+.283124
+-.253194
+.146913
+-.063328
+.049686
+-.073242
+.054882
+.058746
+-.235813
+.361057
+-.308800
+.042747
+.333148
+-.623368
+.666606
+-.449091
+.115901
+.132603
+-.179543
+.057370
+.103814
+-.190317
+.179917
+-.122032
+.058564
+.029381
+-.196829
+.460393
+-.748533
+.926774
+-.879507
+.583364
+-.121073
+-.364291
+.731780
+-.882666
+.772350
+-.417272
+-.089076
+.569493
+-.803755
+.629657
+-.058013
+-.684614
+1.243967
+-1.326252
+.871209
+-.088936
+-.670382
+1.126203
+-1.213802
+1.076989
+-.931325
+.908703
+-.989730
+1.051614
+-.975302
+.728272
+-.376186
+.035370
+.188354
+-.237118
+.107759
+.157148
+-.480279
+.763253
+-.912488
+.876782
+-.676620
+.398471
+-.146812
+-.017360
+.103377
+-.157548
+.196325
+-.169076
+-.004961
+.346047
+-.745254
+.986952
+-.863454
+.309027
+.538094
+-1.388547
+1.937430
+-2.004359
+1.605376
+-.928449
+.233582
+.269531
+-.505893
+.541006
+-.509016
+.510811
+-.550505
+.553631
+-.448850
+.244209
+-.032813
+-.077441
+.049715
+.054229
+-.128008
+.109591
+-.030890
+-.009717
+-.074338
+.291880
+-.566709
+.785783
+-.862357
+.772427
+-.552174
+.272189
+-.012351
+-.152882
+.166641
+-.009700
+-.275405
+.577722
+-.750187
+.678495
+-.352065
+-.112448
+.522545
+-.715935
+.657256
+-.459207
+.307614
+-.336090
+.534485
+-.754825
+.811182
+-.604120
+.183684
+.288523
+-.645677
+.812008
+-.825319
+.781190
+-.752661
+.749746
+-.742670
+.716114
+-.698661
+.738769
+-.849636
+.974452
+-1.005548
+.846405
+-.473126
+-.043192
+.561961
+-.928544
+1.034843
+-.865063
+.511058
+-.144688
+-.053093
+-.018532
+.319614
+-.679908
+.885044
+-.793949
+.418052
+.086379
+-.507225
+.691248
+-.616397
+.385831
+-.157884
+.060293
+-.135478
+.337589
+-.571910
+.751293
+-.841339
+.872413
+-.911815
+1.010331
+-1.157179
+1.277778
+-1.281926
+1.131064
+-.874008
+.620358
+-.468163
+.438305
+-.464193
+.442942
+-.309322
+.079634
+.161811
+-.318675
+.339344
+-.237853
+.073602
+.087268
+-.198055
+.233152
+-.178309
+.030545
+.186908
+-.412527
+.560578
+-.563636
+.416717
+-.187175
+-.023887
+.145783
+-.185125
+.221884
+-.353910
+.622271
+-.964140
+1.228105
+-1.252721
+.968164
+-.457559
+-.070217
+.390441
+-.389711
+.125657
+.221744
+-.469695
+.533954
+-.443416
+.274562
+-.076898
+-.142480
+.374046
+-.561800
+.618987
+-.497729
+.244213
+.021239
+-.189774
+.239289
+-.229883
+.224717
+-.213704
+.117035
+.128309
+-.476002
+.761566
+-.801305
+.532178
+-.086017
+-.267903
+.286147
+.082699
+-.641492
+1.044851
+-1.003455
+.466870
+.334573
+-1.022346
+1.294772
+-1.097149
+.626676
+-.178273
+-.049790
+.050678
+.049248
+-.132359
+.187433
+-.285984
+.472205
+-.676867
+.741409
+-.539805
+.098388
+.389479
+-.675163
+.615288
+-.264950
+-.162711
+.440126
+-.469153
+.327640
+-.194135
+.212770
+-.395052
+.620709
+-.725655
+.609253
+-.292138
+-.101732
+.415367
+-.535289
+.436686
+-.184070
+-.104038
+.306046
+-.341115
+.189594
+.111212
+-.484755
+.833059
+-1.052073
+1.053113
+-.796122
+.322749
+.238411
+-.713748
+.961416
+-.939825
+.722677
+-.449365
+.244499
+-.158474
+.162171
+-.186795
+.174180
+-.106747
+.010824
+.055684
+-.022769
+-.163478
+.503964
+-.917505
+1.248042
+-1.324189
+1.050997
+-.481104
+-.186996
+.694342
+-.846245
+.603780
+-.089150
+-.491849
+.956069
+-1.212258
+1.261743
+-1.149719
+.916265
+-.585799
+.194889
+.176064
+-.407266
+.392388
+-.112571
+-.319921
+.690926
+-.787756
+.526577
+-.024977
+-.439053
+.575296
+-.255854
+-.392808
+1.047241
+-1.366649
+1.188021
+-.617932
+-.032382
+.425525
+-.380814
+-.044194
+.613434
+-1.066436
+1.266011
+-1.248790
+1.155456
+-1.100148
+1.078378
+-.981084
+.701251
+-.249697
+-.211525
+.450391
+-.310726
+-.173618
+.774621
+-1.184465
+1.182817
+-.757409
+.107565
+.468327
+-.729777
+.602904
+-.187593
+-.321134
+.733434
+-.928389
+.864855
+-.564286
+.095518
+.431262
+-.878127
+1.116194
+-1.079579
+.807400
+-.441807
+.170571
+-.135199
+.352545
+-.698649
+.972128
+-1.005199
+.756926
+-.331911
+-.084020
+.326799
+-.332397
+.151740
+.092255
+-.271631
+.308628
+-.200016
+.007765
+.176175
+-.275030
+.261064
+-.160150
+.026165
+.096044
+-.191543
+.266142
+-.318827
+.325136
+-.252978
+.103955
+.055667
+-.112594
+-.020817
+.320588
+-.620334
+.680960
+-.338852
+-.357427
+1.125049
+-1.579267
+1.455124
+-.780516
+-.120544
+.809698
+-.992538
+.688086
+-.199079
+-.096062
+-.008310
+.419224
+-.818586
+.879283
+-.476950
+-.237130
+.936287
+-1.312694
+1.237556
+-.799666
+.224342
+.255487
+-.495783
+.469081
+-.238107
+-.089488
+.400885
+-.607709
+.668188
+-.598264
+.462542
+-.342706
+.295499
+-.323172
+.375208
+-.383777
+.313247
+-.192481
+.105034
+-.138047
+.320070
+-.589918
+.822189
+-.897035
+.770812
+-.500349
+.204316
+.012294
+-.118212
+.157968
+-.195626
+.245713
+-.250874
+.132467
+.121415
+-.405946
+.542606
+-.397213
+-.013092
+.511970
+-.869036
+.942123
+-.750327
+.431554
+-.133534
+-.065843
+.154278
+-.129484
+-.029388
+.323169
+-.669503
+.899267
+-.849660
+.495747
+-.008379
+-.329139
+.302446
+.082975
+-.596112
+.929701
+-.899848
+.556269
+-.131066
+-.128935
+.122907
+.059648
+-.229601
+.246285
+-.110895
+-.058004
+.137405
+-.106322
+.059697
+-.118566
+.311024
+-.525689
+.584750
+-.386606
+.005559
+.338188
+-.425963
+.198784
+.194084
+-.494215
+.506775
+-.220121
+-.207179
+.565708
+-.720370
+.653864
+-.423387
+.096899
+.265110
+-.582750
+.743815
+-.653948
+.325020
+.083057
+-.332197
+.258806
+.102625
+-.528455
+.749761
+-.626194
+.223193
+.253749
+-.604043
+.744444
+-.721726
+.642705
+-.591620
+.590127
+-.605607
+.579016
+-.449091
+.173278
+.246312
+-.739177
+1.170299
+-1.388579
+1.302420
+-.936106
+.425903
+.044122
+-.324537
+.350733
+-.140851
+-.237716
+.697322
+-1.137457
+1.445405
+-1.515193
+1.291872
+-.815719
+.228899
+.273940
+-.530419
+.484129
+-.204941
+-.153012
+.429298
+-.528577
+.452593
+-.284014
+.134949
+-.086035
+.144333
+-.241044
+.273015
+-.167869
+-.066061
+.340843
+-.545834
+.623890
+-.610725
+.603488
+-.679744
+.830350
+-.963296
+.978342
+-.851204
+.656329
+-.508060
+.469281
+-.503249
+.505434
+-.387097
+.145343
+.127576
+-.294809
+.250023
+.022323
+-.425459
+.777819
+-.888135
+.655939
+-.147605
+-.409344
+.735347
+-.662925
+.253151
+.224664
+-.452608
+.265497
+.241315
+-.772502
+1.019881
+-.848709
+.363361
+.178228
+-.531188
+.599497
+-.464232
+.303620
+-.268304
+.391643
+-.584881
+.710031
+-.675335
+.487161
+-.227833
+-.014929
+.207414
+-.374791
+.557708
+-.763545
+.949556
+-1.041689
+.969549
+-.701707
+.277352
+.176555
+-.469820
+.433768
+-.036955
+-.547587
+.997137
+-1.011285
+.501717
+.330006
+-1.090023
+1.410423
+-1.154738
+.487748
+.224382
+-.617315
+.515743
+-.004735
+-.642959
+1.129776
+-1.286290
+1.129347
+-.805993
+.477897
+-.231783
+.070397
+.029214
+-.053920
+-.050288
+.318246
+-.691454
+.999834
+-1.033165
+.667741
+.035436
+-.836647
+1.435677
+-1.630486
+1.413517
+-.947148
+.448188
+-.071053
+-.134561
+.188140
+-.123260
+-.028726
+.213117
+-.333771
+.286984
+-.036514
+-.333547
+.646875
+-.738757
+.563514
+-.222689
+-.110339
+.312177
+-.385291
+.433864
+-.564852
+.794748
+-1.032357
+1.145081
+-1.053590
+.784415
+-.447580
+.165446
+-.009906
+-.010542
+-.079658
+.255184
+-.489140
+.727261
+-.878732
+.854733
+-.636256
+.312976
+-.047238
+-.024068
+-.118948
+.363534
+-.539310
+.531945
+-.357778
+.151623
+-.078448
+.226089
+-.543316
+.858277
+-.967800
+.750601
+-.244382
+-.357939
+.799403
+-.896266
+.646619
+-.238936
+-.058097
+.066814
+.177899
+-.447815
+.480875
+-.177667
+-.304735
+.636145
+-.525558
+-.077179
+.925719
+-1.606574
+1.774917
+-1.352981
+.573824
+.151907
+-.465543
+.253671
+.299996
+-.824305
+.962680
+-.555688
+-.284811
+1.234710
+-1.909750
+2.037356
+-1.576126
+.735726
+.113562
+-.609485
+.571946
+-.092551
+-.518438
+.907681
+-.874499
+.463284
+.103863
+-.595277
+.906963
+-1.069315
+1.138071
+-1.083296
+.788999
+-.173756
+-.671222
+1.457682
+-1.836046
+1.610186
+-.880210
+.004883
+.601014
+-.705206
+.377703
+.082627
+-.358994
+.318719
+-.070441
+-.153090
+.189920
+-.069775
+-.029727
+-.048924
+.292460
+-.512354
+.494963
+-.184890
+-.252532
+.545977
+-.521162
+.230060
+.093254
+-.208526
+.035409
+.310791
+-.619759
+.728623
+-.602028
+.318156
+-.003108
+-.227297
+.296269
+-.177541
+-.096876
+.439402
+-.732376
+.871981
+-.808443
+.563225
+-.219941
+-.103676
+.296903
+-.304112
+.161276
+.008291
+-.053658
+-.112801
+.451720
+-.809862
+1.010307
+-.962936
+.721998
+-.453276
+.333663
+-.449309
+.753942
+-1.106445
+1.354358
+-1.406516
+1.254455
+-.944445
+.536320
+-.085701
+-.344647
+.671306
+-.806253
+.706973
+-.427617
+.124499
+.007570
+.156417
+-.582804
+1.074656
+-1.370124
+1.293348
+-.862840
+.280675
+.195038
+-.407335
+.376591
+-.245832
+.145903
+-.089855
+-.023564
+.306953
+-.769229
+1.278952
+-1.632200
+1.673241
+-1.383826
+.887265
+-.375107
+.009996
+.139334
+-.106281
+-.010959
+.105762
+-.113848
+.041016
+.046130
+-.068707
+.000456
+.098425
+-.117616
+-.008775
+.221176
+-.348092
+.228974
+.137668
+-.548037
+.712013
+-.467290
+-.074795
+.580390
+-.721646
+.416488
+.107264
+-.479095
+.459457
+-.110372
+-.264229
+.355349
+-.075584
+-.393902
+.757984
+-.830186
+.648726
+-.408682
+.283199
+-.288134
+.296137
+-.175239
+-.075602
+.311584
+-.356840
+.146945
+.220344
+-.561148
+.734906
+-.718204
+.574584
+-.367912
+.109803
+.211818
+-.559520
+.810875
+-.811030
+.484168
+.082659
+-.655664
+.969815
+-.870723
+.394271
+.257575
+-.817769
+1.068000
+-.913830
+.406131
+.280805
+-.903285
+1.229369
+-1.132703
+.661846
+-.037720
+-.441318
+.549804
+-.256787
+-.260439
+.725634
+-.928663
+.839944
+-.604031
+.426815
+-.441184
+.640315
+-.908936
+1.113217
+-1.178927
+1.113101
+-.972244
+.814750
+-.672382
+.551461
+-.448903
+.363644
+-.294809
+.233045
+-.156614
+.037586
+.145532
+-.394718
+.683547
+-.955264
+1.132235
+-1.139180
+.934398
+-.533936
+.014415
+.506569
+-.901160
+1.060653
+-.921492
+.490254
+.138949
+-.793499
+1.273003
+-1.430300
+1.241780
+-.821405
+.363656
+-.046581
+-.046784
+-.055412
+.259256
+-.469469
+.624802
+-.688909
+.623216
+-.383297
+-.045655
+.601924
+-1.136876
+1.467359
+-1.467929
+1.145379
+-.644547
+.178803
+.074431
+-.055173
+-.159949
+.402769
+-.496072
+.336566
+.053120
+-.523674
+.855675
+-.857803
+.466980
+.201915
+-.893008
+1.323894
+-1.320798
+.900134
+-.251743
+-.362178
+.730578
+-.772204
+.539152
+-.163254
+-.210643
+.470726
+-.557845
+.470372
+-.261024
+.017749
+.177427
+-.295344
+.375038
+-.482529
+.634652
+-.752461
+.700330
+-.399431
+-.070241
+.476556
+-.571231
+.267155
+.279308
+-.755379
+.892096
+-.631499
+.139073
+.336781
+-.639397
+.777133
+-.853165
+.929179
+-.946791
+.772219
+-.323768
+-.324895
+.951452
+-1.303764
+1.252536
+-.876946
+.427420
+-.185916
+.306225
+-.725914
+1.200029
+-1.436893
+1.260586
+-.710043
+.019792
+.507303
+-.663700
+.444242
+-.035468
+-.303740
+.395580
+-.237275
+-.018212
+.176164
+-.133004
+-.056026
+.216142
+-.173800
+-.117718
+.531698
+-.837273
+.846203
+-.541724
+.099662
+.218153
+-.229181
+-.056664
+.450060
+-.708225
+.686473
+-.417394
+.073469
+.153670
+-.174155
+.042832
+.098255
+-.131120
+.042820
+.083685
+-.156037
+.159411
+-.166013
+.258545
+-.438290
+.606129
+-.640029
+.502680
+-.281759
+.123631
+-.116072
+.221514
+-.317101
+.303799
+-.187611
+.063426
+-.018188
+.040581
+-.018051
+-.171942
+.549983
+-.994126
+1.308184
+-1.352003
+1.138572
+-.825953
+.608630
+-.585364
+.698428
+-.787550
+.718657
+-.491643
+.244996
+-.151990
+.284663
+-.549047
+.742676
+-.694840
+.388972
+.019932
+-.304708
+.313748
+-.068994
+-.247671
+.408625
+-.283552
+-.074900
+.454322
+-.604058
+.388152
+.118180
+-.652112
+.905884
+-.714344
+.173531
+.394450
+-.625469
+.338823
+.341693
+-1.057163
+1.431910
+-1.294751
+.756023
+-.099350
+-.418413
+.707039
+-.832007
+.890874
+-.901517
+.802596
+-.555351
+.238318
+-.030072
+.076679
+-.351451
+.636589
+-.663423
+.316103
+.259895
+-.739395
+.840188
+-.523528
+.019944
+.341949
+-.374582
+.156532
+.047324
+-.000954
+-.324251
+.740539
+-.995968
+.953974
+-.661607
+.273946
+.077683
+-.356753
+.589510
+-.787517
+.914608
+-.930511
+.858891
+-.799055
+.853666
+-1.029034
+1.200426
+-1.188453
+.900590
+-.430049
+.025854
+.059648
+.255725
+-.814935
+1.313501
+-1.493158
+1.303496
+-.919710
+.608647
+-.543107
+.695185
+-.874860
+.873751
+-.607336
+.163056
+.263574
+-.489190
+.439378
+-.171692
+-.172429
+.445595
+-.555229
+.481295
+-.256892
+-.062043
+.413051
+-.726227
+.923501
+-.937182
+.743809
+-.387243
+-.032779
+.401427
+-.628441
+.663548
+-.494659
+.153745
+.265990
+-.613446
+.737022
+-.580497
+.245498
+.050748
+-.117825
+-.060398
+.291792
+-.298595
+-.079543
+.748288
+-1.392982
+1.670180
+-1.427162
+.798089
+-.113527
+-.308529
+.343392
+-.097740
+-.199709
+.359257
+-.331723
+.202919
+-.112502
+.162733
+-.364711
+.635531
+-.838933
+.853869
+-.642953
+.282486
+.073668
+-.283038
+.299272
+-.190205
+.073413
+-.018470
+-.007255
+.105797
+-.356443
+.739511
+-1.137341
+1.409750
+-1.481430
+1.372777
+-1.156479
+.885107
+-.554877
+.135456
+.365373
+-.863415
+1.224630
+-1.339762
+1.190450
+-.857639
+.468804
+-.125191
+-.140642
+.355603
+-.563127
+.782108
+-.991888
+1.143296
+-1.181264
+1.068084
+-.805162
+.450754
+-.122164
+-.033957
+-.095073
+.516643
+-1.098219
+1.604061
+-1.797154
+1.556860
+-.946394
+.189469
+.433771
+-.716821
+.616128
+-.256565
+-.144852
+.393526
+-.408256
+.243269
+-.036360
+-.079984
+.049985
+.088101
+-.238428
+.307587
+-.253331
+.102754
+.061120
+-.136173
+.050355
+.193945
+-.506057
+.744274
+-.796128
+.656097
+-.441401
+.321715
+-.403728
+.653989
+-.921206
+1.042765
+-.952975
+.711521
+-.439691
+.226724
+-.085403
+-.016107
+.089316
+-.094643
+-.025496
+.281498
+-.600547
+.854506
+-.933006
+.807919
+-.546108
+.268447
+-.087007
+.056011
+-.152742
+.287206
+-.336462
+.199831
+.139710
+-.583042
+.946564
+-1.058820
+.868562
+-.486660
+.121104
+.056821
+-.019125
+-.119288
+.204800
+-.167384
+.062857
+-.006286
+.059009
+-.167561
+.204004
+-.069935
+-.223008
+.556707
+-.781899
+.801582
+-.607977
+.267471
+.115533
+-.429995
+.584506
+-.538383
+.328144
+-.062170
+-.130804
+.174620
+-.089959
+-.023901
+.056722
+.042540
+-.236276
+.419647
+-.475093
+.332844
+-.013167
+-.369772
+.654121
+-.714234
+.538827
+-.249416
+.035613
+-.040606
+.270265
+-.587421
+.794617
+-.750205
+.444358
+.004097
+-.415638
+.633865
+-.581707
+.277128
+.178166
+-.623869
+.882019
+-.821080
+.429554
+.146053
+-.646657
+.830663
+-.619121
+.153556
+.290107
+-.483647
+.397192
+-.206090
+.148481
+-.343660
+.709429
+-1.034720
+1.141219
+-1.005413
+.755826
+-.563866
+.521791
+-.594988
+.666960
+-.628676
+.445327
+-.164076
+-.128098
+.359170
+-.502209
+.567025
+-.567699
+.496871
+-.329956
+.055757
+.294483
+-.646589
+.913245
+-1.030843
+.978306
+-.774466
+.468428
+-.134404
+-.135095
+.251061
+-.164339
+-.103811
+.460408
+-.773369
+.921066
+-.835658
+.526258
+-.077423
+-.377214
+.702404
+-.814237
+.711706
+-.467406
+.183776
+.053701
+-.197945
+.235022
+-.175080
+.056081
+.051144
+-.063573
+-.060649
+.270880
+-.427000
+.377518
+-.071520
+-.376663
+.728105
+-.752646
+.372800
+.274461
+-.898787
+1.201418
+-1.018468
+.388903
+.472440
+-1.265161
+1.709487
+-1.635288
+1.039585
+-.100591
+-.868154
+1.527544
+-1.655060
+1.251672
+-.546573
+-.117141
+.458271
+-.394197
+.057576
+.310511
+-.516244
+.514694
+-.398584
+.297365
+-.270121
+.272237
+-.213155
+.051909
+.149690
+-.260044
+.172884
+.107548
+-.455439
+.695937
+-.711024
+.508680
+-.214460
+-.002624
+.020986
+.174999
+-.493342
+.784862
+-.921326
+.864646
+-.687946
+.528747
+-.495422
+.588827
+-.701054
+.699504
+-.534452
+.282925
+-.091338
+.062216
+-.176874
+.313074
+-.337729
+.198918
+.046911
+-.277848
+.374654
+-.268445
+-.043464
+.496361
+-.960235
+1.259427
+-1.231738
+.818923
+-.135495
+-.549899
+.939113
+-.873340
+.435318
+.094084
+-.405406
+.344453
+.013313
+-.441217
+.725196
+-.790793
+.710502
+-.604987
+.528896
+-.432675
+.223361
+.133769
+-.561449
+.912855
+-1.078971
+1.073341
+-1.021156
+1.055408
+-1.201659
+1.346796
+-1.320827
+1.027257
+-.516772
+-.051739
+.523370
+-.833190
+.996815
+-1.028417
+.878976
+-.470696
+-.190148
+.927608
+-1.441224
+1.481895
+-1.035707
+.360059
+.179859
+-.363778
+.261403
+-.150418
+.271911
+-.624319
+.965195
+-1.014996
+.688894
+-.166246
+-.251118
+.367575
+-.225549
+.048556
+-.056041
+.298664
+-.629600
+.816696
+-.705632
+.324001
+.132301
+-.413164
+.358258
+.008817
+-.486144
+.796661
+-.736158
+.287008
+.367459
+-.941485
+1.206094
+-1.115068
+.817477
+-.544803
+.446000
+-.484788
+.475310
+-.232716
+-.271933
+.869352
+-1.294927
+1.359228
+-1.061369
+.571210
+-.108435
+-.184274
+.289121
+-.270324
+.194698
+-.081157
+-.093293
+.351150
+-.673821
+.990016
+-1.196846
+1.202375
+-.972274
+.559684
+-.096760
+-.260449
+.413096
+-.377906
+.276447
+-.252612
+.371605
+-.574932
+.727565
+-.720692
+.549166
+-.304795
+.096859
+.030665
+-.118741
+.238583
+-.412270
+.574873
+-.609485
+.431387
+-.062495
+-.356381
+.627204
+-.596818
+.241946
+.308261
+-.823214
+1.070435
+-.919951
+.408247
+.268555
+-.837419
+1.074826
+-.913985
+.472118
+.019841
+-.341252
+.385088
+-.188521
+-.108200
+.335178
+-.361719
+.145442
+.243489
+-.636053
+.829882
+-.693302
+.255401
+.283463
+-.646416
+.635430
+-.253215
+-.289200
+.688712
+-.718961
+.348041
+.261251
+-.855213
+1.221369
+-1.270481
+1.041009
+-.654267
+.264059
+-.017978
+.017936
+-.272690
+.668925
+-1.003619
+1.086354
+-.856473
+.427966
+-.017086
+-.202593
+.211200
+-.136615
+.140176
+-.285015
+.486600
+-.577034
+.430770
+-.061693
+-.371700
+.654013
+-.639421
+.342694
+.060129
+-.328069
+.298366
+.007991
+-.389398
+.583612
+-.434731
+.000926
+.471263
+-.693540
+.512498
+-.005912
+-.559354
+.879521
+-.783777
+.323941
+.263200
+-.693710
+.792224
+-.577686
+.235171
+.003154
+.005938
+-.242433
+.548224
+-.730400
+.678727
+-.429268
+.138300
+.017338
+.045078
+-.255872
+.431986
+-.395836
+.100899
+.320001
+-.623001
+.600398
+-.213639
+-.374657
+.891735
+-1.110949
+.974879
+-.610591
+.234094
+-.010962
+-.033785
+-.000230
+-.007512
+.088920
+-.158356
+.089015
+.166398
+-.511672
+.759206
+-.762720
+.526327
+-.203068
+-.016382
+.038064
+.076196
+-.160846
+.064281
+.249751
+-.675577
+1.021055
+-1.109691
+.876592
+-.410488
+-.082184
+.378830
+-.356878
+.059437
+.330480
+-.594446
+.600630
+-.370022
+.048323
+.195620
+-.277436
+.238528
+-.194977
+.233726
+-.336903
+.394829
+-.298574
+.038708
+.270084
+-.458429
+.411811
+-.139613
+-.238350
+.564376
+-.717464
+.649280
+-.382063
+-.008835
+.412929
+-.708025
+.796709
+-.648300
+.322183
+.047525
+-.305266
+.341416
+-.141230
+-.208804
+.561094
+-.776224
+.789297
+-.641141
+.456506
+-.376779
+.478318
+-.719011
+.946922
+-.975805
+.693990
+-.144442
+-.479730
+.934317
+-1.062379
+.881924
+-.559866
+.288213
+-.152559
+.089824
+.035344
+-.299424
+.639910
+-.888943
+.893008
+-.624671
+.203741
+.181566
+-.390453
+.402551
+-.310356
+.251354
+-.328379
+.558486
+-.865367
+1.113917
+-1.175211
+.997122
+-.642592
+.264237
+-.020594
+-.015855
+-.105112
+.258095
+-.338128
+.336194
+-.342504
+.480037
+-.816234
+1.307445
+-1.803231
+2.104235
+-2.047633
+1.588641
+-.844650
+.072478
+.429894
+-.464077
+.043470
+.597021
+-1.114689
+1.239866
+-.918724
+.332266
+.216549
+-.475328
+.370994
+-.026178
+-.334027
+.519961
+-.476067
+.287492
+-.102889
+.033531
+-.096400
+.228622
+-.344244
+.381127
+-.311835
+.136986
+.108539
+-.338838
+.427742
+-.274816
+-.104024
+.539289
+-.780981
+.653012
+-.183235
+-.393386
+.771891
+-.764070
+.406697
+.079335
+-.443455
+.561991
+-.492266
+.397890
+-.410417
+.531385
+-.640685
+.595316
+-.337932
+-.063881
+.466932
+-.742172
+.835413
+-.764851
+.577686
+-.315030
+.013044
+.276189
+-.483593
+.560036
+-.523805
+.466560
+-.492433
+.624769
+-.758216
+.711879
+-.363116
+-.231873
+.830281
+-1.131362
+.963329
+-.400870
+-.271562
+.729959
+-.803013
+.562152
+-.256326
+.140916
+-.315474
+.672203
+-.979433
+1.036732
+-.797344
+.383798
+.002316
+-.207199
+.204405
+-.085562
+-.015240
+.002898
+.141370
+-.373816
+.623884
+-.820934
+.904978
+-.836543
+.615723
+-.298500
+-.013353
+.215957
+-.256416
+.157435
+.004591
+-.148978
+.229732
+-.241772
+.203872
+-.143471
+.095540
+-.104308
+.209402
+-.415817
+.670248
+-.870160
+.911663
+-.752732
+.451383
+-.146804
+-.016561
+-.016998
+.164655
+-.244860
+.096085
+.298294
+-.770254
+1.053763
+-.949637
+.458912
+.207033
+-.746536
+.937265
+-.746837
+.324504
+.104938
+-.366607
+.404858
+-.271055
+.061537
+.139189
+-.277417
+.320251
+-.248510
+.070514
+.158356
+-.340593
+.377935
+-.226949
+-.070407
+.403597
+-.648005
+.724472
+-.631788
+.438498
+-.241913
+.118792
+-.095695
+.154186
+-.261074
+.394823
+-.543998
+.682316
+-.751746
+.682808
+-.446355
+.095467
+.245640
+-.448859
+.460420
+-.330632
+.171569
+-.076035
+.061513
+-.080153
+.079263
+-.055294
+.053449
+-.115299
+.224106
+-.301454
+.264584
+-.100674
+-.104813
+.216555
+-.145268
+-.078456
+.311158
+-.386531
+.227966
+.095721
+-.411087
+.546615
+-.429644
+.113042
+.270263
+-.578405
+.709581
+-.619470
+.327792
+.073869
+-.432761
+.590932
+-.476046
+.166989
+.132111
+-.213913
+.010165
+.351704
+-.627556
+.619377
+-.307084
+-.141282
+.480946
+-.540863
+.315199
+.050128
+-.350587
+.431184
+-.253010
+-.104528
+.494165
+-.773661
+.865802
+-.780138
+.591107
+-.390200
+.242069
+-.167240
+.152660
+-.174102
+.211753
+-.252424
+.283169
+-.285820
+.238437
+-.125588
+-.046403
+.238851
+-.388632
+.441300
+-.394590
+.318511
+-.322201
+.476839
+-.747746
+.996317
+-1.064284
+.883146
+-.524172
+.147249
+.110640
+-.219603
+.252575
+-.306628
+.419039
+-.540076
+.571678
+-.434934
+.120621
+.299406
+-.697758
+.941095
+-.947810
+.731651
+-.405222
+.129359
+-.027152
+.113144
+-.288419
+.410950
+-.393675
+.257891
+-.102201
+.014204
+.001729
+-.023275
+.141073
+-.381935
+.684530
+-.938636
+1.049170
+-.978252
+.749692
+-.432660
+.122973
+.079805
+-.111066
+-.012360
+.175426
+-.214817
+.024639
+.351353
+-.722674
+.869868
+-.701728
+.329801
+.008609
+-.129704
+.046773
+.038836
+.101573
+-.533596
+1.086792
+-1.456591
+1.406999
+-.928896
+.248098
+.311757
+-.510787
+.303039
+.177402
+-.723023
+1.172129
+-1.471016
+1.655668
+-1.779796
+1.843632
+-1.774267
+1.476101
+-.922792
+.225332
+.383944
+-.660394
+.489163
+.033450
+-.640828
+1.040646
+-1.072951
+.782319
+-.363960
+.028558
+.120458
+-.121835
+.096768
+-.150966
+.309066
+-.514247
+.675106
+-.719083
+.625207
+-.431903
+.223712
+-.095409
+.097543
+-.190384
+.248649
+-.135247
+-.194519
+.637811
+-.993915
+1.094175
+-.917141
+.598216
+-.325437
+.203697
+-.193654
+.168176
+-.034547
+-.179028
+.342140
+-.331112
+.142359
+.081614
+-.141648
+-.072380
+.487414
+-.881831
+1.032461
+-.867710
+.510128
+-.174393
+.002447
+.031503
+-.073553
+.248553
+-.548549
+.841196
+-.979889
+.913427
+-.707447
+.476738
+-.301328
+.194924
+-.130281
+.073987
+.006268
+-.148981
+.381789
+-.673255
+.900638
+-.892150
+.543751
+.068528
+-.682888
+.986172
+-.812199
+.263593
+.339294
+-.658734
+.555217
+-.170581
+-.177850
+.216910
+.100356
+-.571833
+.891247
+-.856113
+.496299
+-.041613
+-.238953
+.209062
+.068702
+-.405046
+.627290
+-.684894
+.651006
+-.639391
+.711724
+-.840072
+.935211
+-.907875
+.723792
+-.430082
+.143795
+.000379
+.070959
+-.306967
+.540606
+-.586216
+.373572
+-.018334
+-.240103
+.203437
+.136689
+-.583701
+.872881
+-.858485
+.608540
+-.338724
+.242425
+-.349973
+.518172
+-.545593
+.320198
+.104253
+-.543131
+.791782
+-.739940
+.429813
+-.033771
+-.235691
+.242571
+-.011614
+-.273720
+.373876
+-.145810
+-.351442
+.878681
+-1.163077
+1.071756
+-.687910
+.234605
+.091089
+-.243594
+.322090
+-.451624
+.660099
+-.851493
+.888099
+-.706005
+.371414
+-.042044
+-.130187
+.086408
+.111230
+-.318248
+.386918
+-.246399
+-.054639
+.367644
+-.522882
+.429545
+-.138975
+-.172865
+.300547
+-.127919
+-.301021
+.801666
+-1.145129
+1.172367
+-.863755
+.334924
+.225080
+-.632786
+.772117
+-.624873
+.270961
+.138955
+-.435858
+.498927
+-.310294
+-.032180
+.358127
+-.506507
+.404116
+-.098665
+-.270140
+.543253
+-.617479
+.484889
+-.221717
+-.060958
+.275487
+-.397493
+.470202
+-.570775
+.751102
+-.983525
+1.150029
+-1.097576
+.739213
+-.137185
+-.499795
+.920613
+-.976557
+.707855
+-.308777
+-.004555
+.128638
+-.115173
+.099670
+-.178022
+.327855
+-.431828
+.380081
+-.169570
+-.078955
+.201853
+-.111603
+-.137312
+.387750
+-.496123
+.435637
+-.306076
+.243539
+-.304729
+.421254
+-.461451
+.345919
+-.118089
+-.091344
+.175332
+-.140891
+.100308
+-.170025
+.364359
+-.575925
+.660284
+-.553324
+.323050
+-.113297
+.027172
+-.045267
+.043337
+.105999
+-.426046
+.802241
+-1.043495
+.995587
+-.633967
+.083962
+.436874
+-.718779
+.651933
+-.270830
+-.265792
+.747978
+-1.006573
+.980875
+-.729523
+.383336
+-.070290
+-.143425
+.266439
+-.349114
+.430517
+-.499327
+.493429
+-.342125
+.030046
+.356565
+-.642073
+.643894
+-.289850
+-.303284
+.857493
+-1.074596
+.816312
+-.205257
+-.435682
+.782445
+-.720594
+.417340
+-.195028
+.291918
+-.687579
+1.127240
+-1.326359
+1.192846
+-.888367
+.680799
+-.711420
+.869889
+-.880556
+.529623
+.148935
+-.872911
+1.290713
+-1.200831
+.660654
+.067593
+-.668030
+.912766
+-.730042
+.202769
+.470992
+-1.038887
+1.277325
+-1.084286
+.538520
+.123591
+-.620394
+.770615
+-.583209
+.231832
+.070019
+-.208612
+.229547
+-.279770
+.478183
+-.810649
+1.125792
+-1.233610
+1.035769
+-.596842
+.109826
+.217133
+-.276621
+.109527
+.136433
+-.300714
+.293787
+-.125772
+-.123726
+.363009
+-.534425
+.628962
+-.671294
+.691212
+-.698047
+.673169
+-.588345
+.443398
+-.295227
+.242773
+-.358583
+.607074
+-.822052
+.787756
+-.387541
+-.285357
+.950737
+-1.299556
+1.181631
+-.688953
+.078858
+.397416
+-.631955
+.674903
+-.641459
+.601533
+-.536276
+.377327
+-.080446
+-.327956
+.757623
+-1.099769
+1.277754
+-1.277676
+1.148342
+-.971239
+.812205
+-.679091
+.514632
+-.237767
+-.188251
+.709358
+-1.194673
+1.505891
+-1.571825
+1.415162
+-1.120409
+.779890
+-.464110
+.226322
+-.111320
+.139104
+-.272997
+.414696
+-.452966
+.339797
+-.131250
+-.048083
+.093943
+.005757
+-.172310
+.303263
+-.344354
+.308282
+-.236033
+.148187
+-.036067
+-.103042
+.230480
+-.277691
+.204288
+-.050875
+-.071486
+.060571
+.087594
+-.255423
+.274304
+-.041406
+-.401451
+.881122
+-1.185535
+1.172955
+-.836573
+.299588
+.245966
+-.623466
+.743076
+-.630417
+.399618
+-.185687
+.075236
+-.075065
+.130334
+-.169586
+.142059
+-.029298
+-.160829
+.401788
+-.651271
+.856324
+-.967716
+.959505
+-.840948
+.650654
+-.435366
+.227239
+-.035937
+-.137279
+.274394
+-.326946
+.233156
+.037321
+-.439574
+.845726
+-1.088336
+1.036237
+-.662454
+.067427
+.554349
+-.990428
+1.098043
+-.865629
+.417850
+.045322
+-.348822
+.426690
+-.337484
+.202073
+-.111186
+.072894
+-.035519
+-.042930
+.145829
+-.212521
+.197552
+-.114523
+.023381
+.022078
+-.012270
+-.029986
+.091094
+-.187178
+.336671
+-.514217
+.641662
+-.640315
+.505580
+-.333207
+.259597
+-.353302
+.543345
+-.651411
+.515365
+-.116259
+-.388856
+.760169
+-.830412
+.610591
+-.270801
+.015004
+.055895
+.002724
+-.036616
+-.090545
+.402545
+-.791654
+1.076772
+-1.100487
+.816368
+-.324469
+-.165107
+.428830
+-.339911
+-.069039
+.627275
+-1.115276
+1.364143
+-1.308932
+.983245
+-.484574
+-.053286
+.476169
+-.639129
+.466950
+-.019373
+-.499530
+.828633
+-.802914
+.473695
+-.096470
+-.028170
+-.236034
+.748747
+-1.166502
+1.160529
+-.632822
+-.214584
+.996857
+-1.364044
+1.178433
+-.557765
+-.211812
+.819548
+-1.052335
+.857797
+-.346509
+-.256951
+.704011
+-.828403
+.622307
+-.234577
+-.117553
+.273998
+-.214295
+.044184
+.098738
+-.147618
+.143079
+-.182284
+.325729
+-.536514
+.699504
+-.706693
+.543211
+-.306070
+.136300
+-.111634
+.181980
+-.203279
+.053290
+.254454
+-.549408
+.604445
+-.297296
+-.279335
+.844164
+-1.085618
+.856026
+-.273798
+-.339532
+.654416
+-.537835
+.133747
+.234713
+-.275700
+-.088588
+.685791
+-1.217468
+1.448088
+-1.329024
+.988082
+-.617064
+.353111
+-.231711
+.218636
+-.268301
+.353674
+-.455523
+.541077
+-.565890
+.503139
+-.373202
+.243597
+-.191662
+.251374
+-.380040
+.471999
+-.420711
+.196846
+.110468
+-.330328
+.316320
+-.056855
+-.295163
+.509958
+-.433876
+.097254
+.307242
+-.561884
+.571061
+-.405886
+.220426
+-.119334
+.090737
+-.053093
+-.039303
+.137362
+-.142389
+.013152
+.168763
+-.246027
+.116286
+.162717
+-.390334
+.361909
+-.026628
+-.460268
+.835625
+-.904382
+.662874
+-.283597
+-.016804
+.121241
+-.066615
+-.015243
+.010810
+.096142
+-.230761
+.302550
+-.286284
+.246477
+-.287633
+.469117
+-.751394
+1.016417
+-1.146902
+1.101271
+-.926765
+.707483
+-.498826
+.304824
+-.108550
+-.084854
+.240111
+-.325762
+.354759
+-.388823
+.496844
+-.696279
+.921844
+-1.048428
+.961854
+-.639030
+.185422
+.204597
+-.353379
+.210089
+.111083
+-.398417
+.474762
+-.302658
+-.011026
+.309239
+-.502394
+.619246
+-.754756
+.958113
+-1.151263
+1.149063
+-.779807
+.028717
+.900817
+-1.666389
+1.969604
+-1.727536
+1.117256
+-.462906
+.044948
+.038073
+.126008
+-.369364
+.562432
+-.657512
+.650943
+-.529555
+.269490
+.108539
+-.490770
+.696863
+-.586160
+.169476
+.368103
+-.767459
+.856026
+-.653670
+.346181
+-.146923
+.149930
+-.279590
+.366619
+-.287494
+.062425
+.157382
+-.200850
+.005574
+.327580
+-.593402
+.616474
+-.371346
+.008514
+.231986
+-.165213
+-.226076
+.778042
+-1.236325
+1.393596
+-1.193484
+.745937
+-.253148
+-.104683
+.257534
+-.262697
+.248397
+-.322210
+.498406
+-.685898
+.743496
+-.571335
+.183458
+.285568
+-.650234
+.782814
+-.695269
+.538410
+-.509803
+.719434
+-1.098687
+1.421457
+-1.439760
+1.054502
+-.402211
+-.215958
+.526628
+-.464956
+.209579
+-.041842
+.134642
+-.430657
+.699582
+-.724942
+.473802
+-.122022
+-.078702
+-.013001
+.326946
+-.634667
+.711810
+-.488877
+.086700
+.278542
+-.443550
+.392465
+-.240652
+.135055
+-.154334
+.279990
+-.445869
+.610629
+-.785249
+.994287
+-1.213689
+1.353356
+-1.312286
+1.064936
+-.700562
+.372979
+-.197160
+.177555
+-.226672
+.252741
+-.235918
+.228173
+-.283885
+.391255
+-.470872
+.444927
+-.314183
+.170791
+-.127954
+.220552
+-.360538
+.392099
+-.212093
+-.135411
+.468089
+-.579326
+.379220
+.037977
+-.447309
+.629079
+-.494192
+.120235
+.314058
+-.640989
+.786537
+-.778320
+.689663
+-.569550
+.409373
+-.166441
+-.175851
+.555494
+-.829906
+.838445
+-.501839
+-.102230
+.745722
+-1.153769
+1.153960
+-.778528
+.246889
+.168104
+-.304151
+.192580
+-.004410
+-.096767
+.082816
+-.072778
+.221261
+-.573001
+.999593
+-1.270464
+1.206395
+-.803227
+.238894
+.234703
+-.435843
+.339961
+-.067056
+-.205901
+.345257
+-.317360
+.180407
+-.027695
+-.077484
+.135143
+-.192635
+.295023
+-.440659
+.574402
+-.621523
+.536526
+-.333798
+.084114
+.118137
+-.200133
+.150587
+-.035446
+-.026518
+-.071023
+.345967
+-.692965
+.929423
+-.908444
+.629120
+-.262413
+.060483
+-.197977
+.646309
+-1.167360
+1.439948
+-1.247261
+.611127
+.212764
+-.879313
+1.149391
+-1.011008
+.650103
+-.298458
+.074633
+.064351
+-.231858
+.465132
+-.653808
+.612600
+-.246489
+-.326382
+.804920
+-.885718
+.473859
+.228636
+-.828922
+.982780
+-.611145
+-.050880
+.605771
+-.744351
+.429185
+.104521
+-.517642
+.581063
+-.295097
+-.144634
+.485885
+-.560701
+.350190
+.039881
+-.454903
+.768636
+-.926708
+.944180
+-.867173
+.727598
+-.525263
+.252549
+.059224
+-.316818
+.397323
+-.224087
+-.164266
+.605032
+-.879024
+.822335
+-.421149
+-.166050
+.677115
+-.875993
+.675765
+-.184871
+-.353725
+.695925
+-.721786
+.477233
+-.116310
+-.204443
+.401830
+-.469236
+.429134
+-.294363
+.078456
+.162222
+-.311209
+.241199
+.090569
+-.574435
+.975820
+-1.060487
+.741609
+-.147167
+-.444921
+.766693
+-.713423
+.393979
+-.051120
+-.092381
+-.036364
+.331708
+-.591581
+.651343
+-.482478
+.196855
+.037387
+-.104207
+-.002366
+.201090
+-.394847
+.526962
+-.584223
+.563279
+-.449183
+.234441
+.042771
+-.289870
+.403710
+-.337270
+.132089
+.114122
+-.318401
+.462470
+-.581692
+.707605
+-.818693
+.845124
+-.725646
+.467528
+-.156537
+-.095456
+.223887
+-.244917
+.220976
+-.190654
+.128238
+.026304
+-.289620
+.579606
+-.739299
+.633329
+-.249187
+-.273641
+.712892
+-.888722
+.764717
+-.462748
+.186312
+-.102299
+.250496
+-.527409
+.745594
+-.731482
+.412276
+.145742
+-.760911
+1.210672
+-1.324976
+1.056973
+-.497276
+-.173746
+.767882
+-1.159936
+1.313895
+-1.263170
+1.069538
+-.790897
+.472312
+-.155478
+-.108381
+.256454
+-.229424
+-.000014
+.399791
+-.871575
+1.277021
+-1.490535
+1.451825
+-1.187857
+.791478
+-.372654
+.013365
+.250462
+-.420184
+.515192
+-.557738
+.565219
+-.547339
+.508611
+-.458262
+.421036
+-.432952
+.513776
+-.631925
+.697400
+-.604880
+.308720
+.123076
+-.522831
+.705924
+-.572381
+.163480
+.361009
+-.808169
+1.048741
+-1.070885
+.964816
+-.852557
+.808014
+-.817766
+.806354
+-.705063
+.511636
+-.294329
+.137457
+-.072817
+.053779
+.005772
+-.159237
+.381431
+-.585784
+.688023
+-.662019
+.543858
+-.389851
+.235696
+-.098021
+.009503
+-.036456
+.237854
+-.587754
+.937077
+-1.076325
+.877560
+-.411156
+-.069112
+.285878
+-.137252
+-.214631
+.443416
+-.285372
+-.267228
+.948433
+-1.393140
+1.378762
+-.959481
+.399234
+.036147
+-.260619
+.383178
+-.556924
+.802041
+-.962912
+.841339
+-.391344
+-.197569
+.610376
+-.628235
+.286231
+.156256
+-.403702
+.322189
+-.001361
+-.348608
+.567904
+-.650657
+.713214
+-.870154
+1.125091
+-1.359958
+1.422596
+-1.238817
+.865507
+-.454411
+.162436
+-.072093
+.164276
+-.344429
+.497005
+-.540863
+.465341
+-.331991
+.236861
+-.249038
+.362699
+-.498767
+.559210
+-.496767
+.348572
+-.209160
+.164798
+-.237968
+.380287
+-.513824
+.587152
+-.606624
+.624238
+-.694464
+.829673
+-.980780
+1.053733
+-.954322
+.642640
+-.172412
+-.308711
+.610510
+-.592028
+.252470
+.234728
+-.582944
+.535599
+-.021142
+-.775870
+1.488157
+-1.760581
+1.458594
+-.759143
+.055695
+.273842
+-.095137
+-.402691
+.826547
+-.823736
+.301224
+.511106
+-1.187305
+1.345729
+-.865418
+-.041775
+.941819
+-1.410689
+1.260571
+-.636175
+-.072652
+.454062
+-.308955
+-.237317
+.813784
+-1.030914
+.721297
+-.044525
+-.613380
+.883208
+-.639987
+.066391
+.481951
+-.706958
+.535820
+-.126068
+-.269662
+.467260
+-.434922
+.264886
+-.081765
+-.036140
+.077380
+-.066639
+.022686
+.058823
+-.189438
+.358506
+-.518780
+.602609
+-.560784
+.397577
+-.175803
+-.015220
+.110838
+-.107388
+.058657
+-.033665
+.065365
+-.127877
+.158544
+-.108398
+-.017504
+.159870
+-.244414
+.231317
+-.139978
+.033500
+.024540
+-.011250
+-.042859
+.076231
+-.038967
+-.071337
+.202718
+-.275299
+.226681
+-.052398
+-.180039
+.353370
+-.355239
+.144752
+.203883
+-.516581
+.603649
+-.376314
+-.078317
+.526592
+-.718710
+.541360
+-.088493
+-.400453
+.691302
+-.689642
+.471042
+-.200795
+.014409
+.052660
+-.046657
+.020934
+.025923
+-.149129
+.398459
+-.750446
+1.088497
+-1.252870
+1.132662
+-.739329
+.209032
+.273971
+-.583972
+.715298
+-.752434
+.772880
+-.764392
+.631868
+-.295066
+-.203746
+.681475
+-.915940
+.798140
+-.416681
+.003714
+.222372
+-.202340
+.063039
+-.009302
+.164419
+-.479048
+.774305
+-.882347
+.774263
+-.576882
+.466637
+-.525841
+.675726
+-.740369
+.592672
+-.267939
+-.045462
+.136077
+.074513
+-.465263
+.790027
+-.841026
+.584181
+-.170208
+-.181835
+.336876
+-.317936
+.253169
+-.248532
+.293617
+-.274591
+.079739
+.289476
+-.689773
+.914506
+-.827232
+.460444
+-.011085
+-.271255
+.237615
+.062566
+-.406435
+.535248
+-.317450
+-.168054
+.679824
+-.956879
+.863194
+-.450584
+-.083497
+.505303
+-.656851
+.518360
+-.200403
+-.122621
+.302366
+-.284673
+.123525
+.062610
+-.161794
+.124274
+.025352
+-.215480
+.367426
+-.422696
+.352256
+-.159972
+-.111802
+.383169
+-.561359
+.589105
+-.487158
+.350360
+-.286917
+.338596
+-.443720
+.476464
+-.335979
+.019295
+.374663
+-.707772
+.882100
+-.881608
+.757003
+-.577311
+.389944
+-.214617
+.065433
+.027662
+-.023220
+-.100146
+.310252
+-.516700
+.607366
+-.507955
+.228002
+.135430
+-.440328
+.565785
+-.468488
+.203575
+.100292
+-.302073
+.320445
+-.180238
+.002541
+.065645
+.053970
+-.313861
+.566563
+-.663816
+.562093
+-.356503
+.215428
+-.261917
+.488225
+-.763945
+.926956
+-.887688
+.672415
+-.382421
+.109117
+.125333
+-.358693
+.624641
+-.893744
+1.075180
+-1.084080
+.921472
+-.696458
+.563163
+-.614576
+.815233
+-1.026816
+1.105411
+-.992582
+.732826
+-.417707
+.118784
+.131692
+-.311632
+.382990
+-.311536
+.116659
+.107049
+-.234410
+.192536
+-.012026
+-.199396
+.338221
+-.373125
+.348098
+-.329002
+.346807
+-.383342
+.400858
+-.379113
+.323867
+-.243830
+.125274
+.062296
+-.323947
+.593006
+-.728844
+.582914
+-.104707
+-.584518
+1.216931
+-1.507548
+1.315490
+-.731365
+.029987
+.481632
+-.621323
+.399278
+.028089
+-.466405
+.775882
+-.902310
+.853997
+-.663831
+.371369
+-.031344
+-.271378
+.429438
+-.356342
+.047530
+.385699
+-.747937
+.853937
+-.630304
+.154172
+.398995
+-.859478
+1.142235
+-1.252056
+1.231640
+-1.113014
+.917034
+-.689135
+.518250
+-.498480
+.649730
+-.862825
+.930356
+-.665342
+.036017
+.782427
+-1.491015
+1.840833
+-1.780168
+1.468972
+-1.149483
+.971350
+-.902516
+.787118
+-.494746
+.039634
+.417364
+-.672063
+.599945
+-.217063
+-.339335
+.873477
+-1.195418
+1.173971
+-.781720
+.121391
+.595188
+-1.127783
+1.314488
+-1.138241
+.709301
+-.183195
+-.318690
+.730242
+-1.008540
+1.101328
+-.960438
+.594195
+-.106070
+-.328144
+.543238
+-.476201
+.204644
+.095345
+-.249215
+.183929
+.030606
+-.225977
+.244296
+-.048531
+-.239236
+.407356
+-.296653
+-.078850
+.524366
+-.787216
+.729044
+-.420464
+.083475
+.076973
+-.021649
+-.110115
+.129885
+.036867
+-.287525
+.426589
+-.323771
+.017513
+.312782
+-.474368
+.385431
+-.108834
+-.212741
+.457314
+-.584643
+.627001
+-.633764
+.619726
+-.552945
+.384373
+-.095525
+-.267369
+.594329
+-.752670
+.653349
+-.310565
+-.143595
+.512131
+-.635859
+.487497
+-.190054
+-.063539
+.141687
+-.062994
+-.024921
+-.037312
+.298223
+-.662955
+.973060
+-1.128268
+1.147835
+-1.124617
+1.120492
+-1.102160
+.977752
+-.701736
+.351901
+-.104315
+.118970
+-.423522
+.882624
+-1.271131
+1.394421
+-1.176215
+.672444
+-.026327
+-.592005
+1.030974
+-1.187174
+1.030664
+-.623976
+.114023
+.319456
+-.543095
+.529525
+-.353910
+.130197
+.060945
+-.194632
+.264887
+-.237101
+.048667
+.332853
+-.847794
+1.344263
+-1.653698
+1.687765
+-1.482268
+1.158791
+-.841306
+.593724
+-.415319
+.278325
+-.164444
+.072348
+-.003857
+-.046195
+.084034
+-.106436
+.103999
+-.079248
+.059754
+-.085563
+.174413
+-.293826
+.369602
+-.332114
+.168336
+.060183
+-.248582
+.307763
+-.212019
+.008249
+.213255
+-.364732
+.400015
+-.330409
+.212573
+-.113070
+.067331
+-.057774
+.029587
+.063400
+-.215257
+.362130
+-.421280
+.346137
+-.155559
+-.082576
+.297092
+-.452841
+.558281
+-.642929
+.725291
+-.793595
+.810282
+-.737285
+.568569
+-.348450
+.157277
+-.063116
+.065333
+-.073890
+-.046167
+.379566
+-.875644
+1.341232
+-1.533204
+1.301937
+-.694241
+-.055699
+.646860
+-.871638
+.720189
+-.370317
+.072975
+-.003451
+.164834
+-.399162
+.497482
+-.339601
+-.026302
+.417054
+-.637844
+.611229
+-.422705
+.253759
+-.251362
+.425489
+-.643248
+.720463
+-.547414
+.165734
+.252271
+-.508277
+.500683
+-.288458
+.054022
+.014407
+.152100
+-.453308
+.682179
+-.661357
+.362371
+.074482
+-.431760
+.551157
+-.419421
+.153131
+.091587
+-.209887
+.180091
+-.034153
+-.187480
+.450709
+-.705757
+.864789
+-.820821
+.513496
+.001049
+-.538139
+.859677
+-.804086
+.392385
+.161727
+-.554153
+.552579
+-.129442
+-.508420
+1.014495
+-1.077463
+.589707
+.279192
+-1.148840
+1.607397
+-1.416089
+.633132
+.408417
+-1.258434
+1.563569
+-1.228260
+.442009
+.437130
+-1.074405
+1.314375
+-1.214294
+.949264
+-.668015
+.405847
+-.108823
+-.266110
+.666111
+-.943220
+.939822
+-.595209
+.000608
+.629025
+-1.048156
+1.090306
+-.744262
+.162182
+.407126
+-.732119
+.703900
+-.376827
+-.075707
+.458626
+-.644568
+.608054
+-.401785
+.108753
+.193205
+-.442859
+.596374
+-.632846
+.564301
+-.436019
+.307105
+-.219382
+.176429
+-.149117
+.102823
+-.023396
+-.079744
+.192081
+-.311817
+.444886
+-.580294
+.673806
+-.665235
+.522631
+-.274762
+-.002267
+.238094
+-.413328
+.552448
+-.668388
+.713679
+-.595149
+.254312
+.249442
+-.730829
+.971025
+-.854411
+.452334
+.010764
+-.290229
+.264890
+.001772
+-.316898
+.485730
+-.426270
+.204499
+.020436
+-.097491
+-.030766
+.301656
+-.569413
+.679699
+-.543262
+.179467
+.285062
+-.663363
+.787631
+-.592058
+.157200
+.318767
+-.619738
+.631880
+-.410339
+.145370
+-.044599
+.204128
+-.549071
+.879638
+-.992988
+.806220
+-.405189
+-.010333
+.250560
+-.247578
+.080670
+.097287
+-.172923
+.137877
+-.064027
+.022516
+-.023148
+.022285
+.020783
+-.100900
+.177502
+-.220208
+.236081
+-.247462
+.246089
+-.179289
+-.003613
+.279765
+-.528374
+.595092
+-.408208
+.052928
+.268211
+-.371170
+.221448
+.043105
+-.217024
+.177734
+.032735
+-.250745
+.317518
+-.191543
+-.027983
+.172206
+-.112843
+-.157020
+.513788
+-.767369
+.764866
+-.480425
+.038073
+.353242
+-.521052
+.431718
+-.203857
+.021297
+-.007412
+.150210
+-.327348
+.403570
+-.323691
+.137916
+.045878
+-.137366
+.114157
+-.025204
+-.040988
+.000811
+.183537
+-.475906
+.764144
+-.898078
+.763560
+-.357844
+-.185755
+.653894
+-.865635
+.771819
+-.474348
+.153952
+.040400
+-.064924
+-.021671
+.115485
+-.126077
+.003997
+.254475
+-.600359
+.923129
+-1.071800
+.927674
+-.497479
+-.049618
+.457183
+-.538419
+.305286
+.035092
+-.223517
+.127087
+.179970
+-.485885
+.596526
+-.455043
+.150646
+.164210
+-.369861
+.424913
+-.355159
+.219392
+-.082032
+-.003555
+.011186
+.042432
+-.096125
+.070114
+.085017
+-.341747
+.584321
+-.652112
+.425596
+.089691
+-.736393
+1.262860
+-1.440747
+1.177565
+-.561961
+-.177329
+.769992
+-1.011586
+.841318
+-.368708
+-.163176
+.477695
+-.397657
+-.055622
+.666597
+-1.148327
+1.313433
+-1.178117
+.924112
+-.747421
+.707736
+-.690157
+.503154
+-.035799
+-.640655
+1.295365
+-1.665498
+1.605415
+-1.166773
+.565687
+-.059026
+-.195864
+.212568
+-.134413
+.110240
+-.177406
+.239670
+-.157100
+-.123400
+.501422
+-.773703
+.762762
+-.426138
+-.127486
+.712711
+-1.166308
+1.403348
+-1.413216
+1.227366
+-.898489
+.498984
+-.115241
+-.182090
+.377020
+-.513925
+.645498
+-.753808
+.717807
+-.380856
+-.310392
+1.200485
+-1.957116
+2.249127
+-1.960484
+1.283387
+-.608281
+.274262
+-.350381
+.604016
+-.681714
+.374776
+.220982
+-.766615
+.918917
+-.575490
+-.047906
+.559476
+-.649948
+.288001
+.275193
+-.684190
+.710791
+-.382543
+-.069023
+.391064
+-.487003
+.463430
+-.519585
+.768514
+-1.127002
+1.356808
+-1.226886
+.680414
+.106787
+-.811284
+1.133419
+-.954206
+.395046
+.247255
+-.656347
+.665115
+-.346724
+-.030474
+.169051
+.065309
+-.549595
+.977531
+-1.060326
+.720299
+-.142517
+-.353960
+.535134
+-.406610
+.194645
+-.167269
+.423060
+-.799228
+.970545
+-.681648
+-.040534
+.844784
+-1.233550
+.867951
+.187146
+-1.445724
+2.246832
+-2.131616
+1.122880
+.272812
+-1.350519
+1.606061
+-1.002656
+-.051721
+.981671
+-1.381474
+1.198378
+-.674599
+.133061
+.219833
+-.349600
+.314615
+-.160234
+-.111494
+.486284
+-.873558
+1.117566
+-1.092538
+.806384
+-.419537
+.151200
+-.136361
+.338942
+-.583877
+.680378
+-.544216
+.235773
+.099188
+-.327935
+.393657
+-.311456
+.125929
+.118661
+-.372657
+.564247
+-.611634
+.472878
+-.194318
+-.094841
+.254086
+-.222994
+.063523
+.079269
+-.067430
+-.153228
+.532976
+-.948665
+1.250378
+-1.301481
+1.016125
+-.402629
+-.404223
+1.161861
+-1.612085
+1.613366
+-1.230808
+.710684
+-.339690
+.275584
+-.463159
+.692551
+-.753856
+.575308
+-.251613
+-.042693
+.176682
+-.129545
+-.034937
+.243414
+-.464023
+.694139
+-.911210
+1.047438
+-1.024512
+.824243
+-.530511
+.295083
+-.240788
+.370529
+-.551080
+.588172
+-.344241
+-.176496
+.825486
+-1.384326
+1.669060
+-1.609361
+1.270681
+-.818538
+.445729
+-.293671
+.398483
+-.683618
+1.002311
+-1.209534
+1.226287
+-1.063393
+.796158
+-.511162
+.262355
+-.062768
+-.089806
+.180023
+-.165641
+.002791
+.311697
+-.713897
+1.085552
+-1.302346
+1.289556
+-1.053885
+.678322
+-.288917
+.011543
+.067542
+.069690
+-.362780
+.689636
+-.912754
+.939208
+-.765080
+.478005
+-.212933
+.083093
+-.123422
+.278682
+-.442749
+.525209
+-.502364
+.420827
+-.355069
+.353090
+-.408551
+.471379
+-.479993
+.391225
+-.200679
+-.043361
+.238915
+-.262926
+.045054
+.353975
+-.729365
+.829175
+-.521138
+-.086375
+.677970
+-.922324
+.697117
+-.182525
+-.254642
+.309724
+.054835
+-.593012
+.953351
+-.921063
+.554579
+-.128860
+-.066498
+-.070033
+.388149
+-.602195
+.503231
+-.114006
+-.325896
+.534023
+-.389103
+.013269
+.326376
+-.417063
+.247109
+.006537
+-.128980
+.032299
+.190016
+-.348757
+.306073
+-.069129
+-.230956
+.442710
+-.493348
+.414133
+-.289514
+.184247
+-.107772
+.032593
+.064086
+-.179651
+.301629
+-.433479
+.592934
+-.774666
+.914444
+-.904846
+.672579
+-.263743
+-.142597
+.327321
+-.177882
+-.219683
+.620847
+-.773724
+.575219
+-.123170
+-.362109
+.679839
+-.753421
+.640252
+-.463233
+.325062
+-.259464
+.236322
+-.203513
+.132927
+-.041608
+-.022850
+.020167
+.050666
+-.150399
+.228521
+-.257050
+.241834
+-.206413
+.166086
+-.115324
+.037177
+.072959
+-.186116
+.239047
+-.164671
+-.055440
+.350786
+-.576634
+.595739
+-.381572
+.062277
+.145166
+-.077559
+-.257290
+.680381
+-.961428
+.967356
+-.728424
+.382382
+-.057361
+-.203949
+.425015
+-.619952
+.748414
+-.750345
+.624742
+-.465937
+.406262
+-.502096
+.660648
+-.679004
+.378794
+.258440
+-1.051134
+1.701040
+-1.945793
+1.690075
+-1.047852
+.281770
+.324963
+-.602287
+.569413
+-.412148
+.367039
+-.572077
+.975028
+-1.364366
+1.512281
+-1.337739
+.975698
+-.695880
+.718758
+-1.052493
+1.467794
+-1.637964
+1.357678
+-.693758
+-.038609
+.466169
+-.390510
+-.092248
+.664621
+-1.000445
+.968414
+-.689400
+.418994
+-.352068
+.494680
+-.688929
+.755161
+-.630643
+.397729
+-.192349
+.082185
+-.021197
+-.087111
+.282227
+-.495276
+.599855
+-.518292
+.289290
+-.039642
+-.111241
+.128867
+-.059807
+-.039718
+.168570
+-.374740
+.685415
+-1.042642
+1.310596
+-1.356882
+1.143973
+-.758747
+.359912
+-.086926
+-.004185
+-.057442
+.202744
+-.372201
+.534786
+-.674483
+.767840
+-.778645
+.677082
+-.467683
+.201163
+.043605
+-.199222
+.246396
+-.224693
+.209934
+-.271620
+.434019
+-.662215
+.879721
+-1.006552
+.996210
+-.852694
+.620963
+-.359892
+.114275
+.098643
+-.282278
+.439715
+-.555848
+.600055
+-.552424
+.433596
+-.307546
+.243892
+-.264324
+.320839
+-.335163
+.274223
+-.196186
+.215995
+-.405618
+.707086
+-.937515
+.898197
+-.515436
+-.089335
+.655366
+-.930565
+.815391
+-.412524
+-.042341
+.319634
+-.319008
+.108090
+.137104
+-.247857
+.163083
+.041942
+-.209416
+.196104
+.046275
+-.449580
+.868488
+-1.149898
+1.194992
+-.990359
+.604004
+-.154659
+-.231329
+.460748
+-.499327
+.376287
+-.166794
+-.041474
+.185706
+-.252439
+.273737
+-.296615
+.347204
+-.416968
+.478738
+-.510930
+.501467
+-.428618
+.249915
+.070592
+-.506513
+.938240
+-1.194882
+1.157835
+-.853019
+.452966
+-.174886
+.142469
+-.310842
+.508161
+-.562638
+.424305
+-.198112
+.068923
+-.170924
+.488624
+-.854286
+1.045098
+-.920586
+.515570
+-.030959
+-.273366
+.222438
+.174176
+-.721452
+1.139064
+-1.212982
+.918434
+-.441130
+.072091
+-.028840
+.314100
+-.713739
+.943679
+-.844397
+.480350
+-.074249
+-.164255
+.177965
+-.068958
+-.013138
+-.001985
+.062888
+-.057827
+-.080960
+.313963
+-.516101
+.564498
+-.430344
+.210041
+-.069537
+.133357
+-.392581
+.698503
+-.851523
+.726561
+-.350226
+-.118081
+.479221
+-.595566
+.442993
+-.101477
+-.292063
+.600320
+-.737016
+.703647
+-.593653
+.545825
+-.655730
+.894549
+-1.099569
+1.062424
+-.670394
+.006303
+.669550
+-1.054123
+.970152
+-.461904
+-.237376
+.835929
+-1.125082
+1.053485
+-.713131
+.271001
+.104535
+-.295732
+.265998
+-.072783
+-.145394
+.219271
+-.027722
+-.431924
+1.026250
+-1.538470
+1.766971
+-1.619166
+1.155167
+-.564012
+.085404
+.092191
+.081229
+-.481694
+.854095
+-.930881
+.580542
+.095594
+-.791317
+1.156270
+-1.006442
+.449654
+.168408
+-.475674
+.306652
+.198953
+-.695507
+.855284
+-.565231
+-.022423
+.598925
+-.883283
+.770186
+-.369247
+-.071388
+.308231
+-.235778
+-.061483
+.368377
+-.476210
+.312004
+.023444
+-.330400
+.441017
+-.313343
+.030060
+.282085
+-.541548
+.743979
+-.923880
+1.088619
+-1.185440
+1.131153
+-.883024
+.493819
+-.102888
+-.139579
+.166657
+-.039528
+-.094397
+.106410
+.018186
+-.165911
+.178479
+.022054
+-.358336
+.634107
+-.663330
+.403684
+.002487
+-.312818
+.340918
+-.079759
+-.287951
+.498773
+-.368368
+-.093372
+.678903
+-1.094211
+1.124716
+-.763510
+.224095
+.179172
+-.220236
+-.095020
+.528273
+-.759984
+.596115
+-.089770
+-.504680
+.904617
+-.967708
+.737913
+-.357498
+-.057339
+.463984
+-.837866
+1.095537
+-1.101900
+.782459
+-.243696
+-.229538
+.339401
+.004240
+-.586315
+1.012248
+-.982091
+.510465
+.079960
+-.391559
+.235828
+.245138
+-.702464
+.843798
+-.632777
+.287059
+-.098186
+.220544
+-.576485
+.921632
+-1.002648
+.698142
+-.070626
+-.675204
+1.286853
+-1.561816
+1.414891
+-.899953
+.185699
+.504468
+-.968781
+1.094455
+-.892540
+.485816
+-.052069
+-.255312
+.372988
+-.345967
+.287694
+-.305322
+.435309
+-.626411
+.775336
+-.787169
+.623672
+-.318958
+-.034364
+.316743
+-.422762
+.307242
+-.020994
+-.290964
+.447541
+-.328883
+-.043633
+.505133
+-.836266
+.888889
+-.662484
+.280432
+.107154
+-.412676
+.627484
+-.770785
+.834796
+-.784009
+.605300
+-.351871
+.129816
+-.031976
+.074806
+-.190121
+.275030
+-.256346
+.123954
+.078488
+-.284341
+.431769
+-.482368
+.437151
+-.347707
+.306735
+-.404804
+.666808
+-1.009383
+1.260992
+-1.250578
+.918881
+-.377494
+-.137589
+.404155
+-.359906
+.151791
+-.040829
+.216080
+-.646794
+1.085180
+-1.226707
+.918724
+-.269628
+-.414732
+.816538
+-.782364
+.382925
+.157495
+-.591709
+.755430
+-.608621
+.224892
+.243474
+-.613985
+.737329
+-.563663
+.176646
+.239131
+-.493110
+.492463
+-.286495
+.022656
+.151608
+-.170536
+.066260
+.075086
+-.171248
+.175869
+-.081511
+-.083037
+.248026
+-.306398
+.153336
+.239463
+-.762449
+1.184253
+-1.267316
+.924947
+-.309042
+-.253647
+.453887
+-.195141
+-.347549
+.847717
+-1.035442
+.842039
+-.390847
+-.128534
+.583093
+-.923975
+1.128337
+-1.144241
+.912932
+-.455290
+-.067935
+.404837
+-.363066
+-.041443
+.559511
+-.847008
+.682226
+-.112767
+-.571833
+1.020307
+-1.024581
+.613711
+.007427
+-.605810
+1.037871
+-1.266750
+1.300447
+-1.130662
+.736143
+-.143884
+-.517621
+1.038026
+-1.223166
+1.008775
+-.508128
+-.043026
+.408396
+-.462536
+.231723
+.142024
+-.477021
+.628524
+-.544544
+.291578
+-.035584
+-.033182
+-.189088
+.637275
+-1.093093
+1.310760
+-1.176072
+.781252
+-.350867
+.070827
+.045629
+-.145638
+.387953
+-.781500
+1.147716
+-1.243461
+.950230
+-.381670
+-.176625
+.453919
+-.373861
+.100219
+.082026
+.033247
+-.428356
+.868681
+-1.054392
+.814142
+-.215021
+-.475608
+.941459
+-.982002
+.598499
+.029240
+-.642208
+1.017842
+-1.051682
+.780644
+-.347716
+-.070355
+.338012
+-.405561
+.310920
+-.150161
+.037971
+-.069288
+.283535
+-.637382
+1.004636
+-1.220934
+1.164311
+-.829745
+.347418
+.076696
+-.270168
+.191096
+.046786
+-.240391
+.219254
+.050164
+-.444459
+.762422
+-.851666
+.698458
+-.422923
+.190226
+-.103353
+.147348
+-.211737
+.166306
+.058702
+-.428323
+.812377
+-1.043590
+.999593
+-.671249
+.179904
+.271962
+-.496752
+.415430
+-.097542
+-.275405
+.504134
+-.470959
+.190132
+.214318
+-.581635
+.788930
+-.787944
+.600445
+-.297339
+-.017671
+.225595
+-.229717
+.011259
+.334772
+-.628983
+.705414
+-.519549
+.183763
+.107338
+-.213636
+.143944
+-.031692
+.009852
+-.089957
+.150667
+-.050071
+-.233065
+.555384
+-.709635
+.592779
+-.301752
+.072046
+-.101396
+.394501
+-.748119
+.887491
+-.653858
+.111432
+.493840
+-.887473
+.926371
+-.665896
+.302044
+-.036964
+-.041816
+-.005847
+.039858
+.045331
+-.237960
+.412285
+-.413609
+.167500
+.257932
+-.677675
+.889142
+-.785011
+.410381
+.070939
+-.478943
+.720221
+-.821065
+.869635
+-.914685
+.905636
+-.731613
+.336602
+.183748
+-.597989
+.678638
+-.370645
+-.145374
+.558471
+-.634294
+.371793
+.007133
+-.224132
+.139031
+.169849
+-.485936
+.619967
+-.531310
+.323661
+-.136021
+.025507
+.064732
+-.233026
+.506867
+-.787893
+.906608
+-.750402
+.364705
+.057304
+-.295494
+.244611
+.029371
+-.353889
+.575752
+-.646875
+.614707
+-.547071
+.468738
+-.360297
+.204531
+-.024190
+-.127504
+.210368
+-.228556
+.216758
+-.193899
+.130439
+.031563
+-.311128
+.626885
+-.804300
+.671720
+-.194097
+-.453836
+.948615
+-.997515
+.527370
+.248255
+-.938463
+1.195737
+-.908000
+.246437
+.448048
+-.858360
+.849446
+-.512784
+.090140
+.170030
+-.144272
+-.112967
+.418452
+-.579713
+.513165
+-.289869
+.083549
+-.056774
+.258659
+-.596329
+.892808
+-.990520
+.836266
+-.501395
+.134161
+.119234
+-.176755
+.038685
+.231823
+-.540138
+.785052
+-.878967
+.772928
+-.481849
+.088205
+.291451
+-.562188
+.689066
+-.691096
+.605706
+-.466107
+.314314
+-.223030
+.278036
+-.509806
+.829223
+-1.043286
+.969433
+-.574360
+.023598
+.412211
+-.534571
+.347269
+-.043262
+-.137280
+.069019
+.191088
+-.466074
+.591087
+-.515886
+.313620
+-.105253
+-.036130
+.131916
+-.267596
+.511159
+-.840170
+1.130444
+-1.217969
+.997003
+-.491786
+-.144111
+.699996
+-1.007795
+1.013195
+-.786602
+.479543
+-.254504
+.217143
+-.370520
+.606484
+-.747227
+.633353
+-.222888
+-.358783
+.864750
+-1.056609
+.844215
+-.343144
+-.192282
+.519037
+-.541044
+.345922
+-.127449
+.053712
+-.169773
+.391690
+-.583525
+.655924
+-.618626
+.558200
+-.564605
+.662019
+-.790426
+.848578
+-.768654
+.571556
+-.361427
+.255258
+-.290262
+.377533
+-.348855
+.077633
+.409221
+-.918715
+1.201114
+-1.108827
+.688205
+-.136671
+-.337714
+.642604
+-.819763
+.955213
+-1.069079
+1.082286
+-.886371
+.454149
+.101106
+-.565404
+.735317
+-.528854
+.034509
+.520703
+-.866246
+.808711
+-.332179
+-.370410
+.966167
+-1.137439
+.751683
+.052058
+-.923155
+1.484494
+-1.538199
+1.165262
+-.652928
+.295716
+-.204890
+.260731
+-.241480
+.029265
+.270152
+-.393860
+.127700
+.508262
+-1.241637
+1.713018
+-1.701982
+1.252113
+-.619836
+.103133
+.120130
+-.047172
+-.205128
+.495726
+-.722254
+.830233
+-.797848
+.630962
+-.373304
+.107724
+.070946
+-.102628
+-.004818
+.182254
+-.341630
+.423218
+-.416193
+.346673
+-.252926
+.171421
+-.136670
+.177866
+-.299680
+.460977
+-.583281
+.600624
+-.518265
+.422347
+-.415731
+.523791
+-.653837
+.656004
+-.444167
+.076115
+.279400
+-.464825
+.444039
+-.311396
+.198717
+-.165708
+.166161
+-.111885
+-.027908
+.180509
+-.217531
+.059545
+.244319
+-.525209
+.591674
+-.352491
+-.115691
+.603000
+-.885178
+.855493
+-.588204
+.293237
+-.187634
+.361546
+-.720823
+1.042780
+-1.113169
+.860715
+-.404906
+-.015714
+.192059
+-.074266
+-.205049
+.432907
+-.473537
+.366404
+-.288747
+.407156
+-.732096
+1.091001
+-1.245222
+1.061726
+-.609491
+.112884
+.192195
+-.188330
+-.089332
+.510405
+-.930177
+1.234114
+-1.340466
+1.198134
+-.806959
+.247799
+.317405
+-.699704
+.770886
+-.532485
+.119582
+.264830
+-.446176
+.351496
+-.026791
+-.396450
+.757307
+-.917338
+.799326
+-.413659
+-.133962
+.668337
+-1.011035
+1.065315
+-.872529
+.597325
+-.440525
+.525635
+-.826210
+1.176385
+-1.358483
+1.218577
+-.750384
+.107807
+.457681
+-.705733
+.515022
+.055875
+-.783026
+1.366095
+-1.557772
+1.276913
+-.648693
+-.055447
+.552591
+-.687779
+.498954
+-.169983
+-.095569
+.197168
+-.177791
+.163010
+-.250724
+.435014
+-.617347
+.689976
+-.622373
+.481662
+-.371357
+.338000
+-.321754
+.195816
+.128799
+-.608886
+1.059044
+-1.242990
+1.013052
+-.409963
+-.339723
+.927701
+-1.110248
+.819012
+-.184017
+-.535498
+1.073064
+-1.269191
+1.124134
+-.769253
+.381995
+-.099347
+-.022646
+-.004681
+.137811
+-.320081
+.478484
+-.526965
+.402626
+-.122150
+-.191943
+.356634
+-.231789
+-.186102
+.748634
+-1.232379
+1.454263
+-1.349795
+.975162
+-.453869
+-.082979
+.529772
+-.816631
+.916387
+-.851970
+.688247
+-.497109
+.314746
+-.129721
+-.079346
+.285562
+-.394763
+.299883
+.024531
+-.467439
+.825277
+-.924193
+.730704
+-.365820
+.014560
+.194814
+-.250472
+.223792
+-.189987
+.177177
+-.177222
+.187396
+-.226926
+.307310
+-.390722
+.389818
+-.224937
+-.102678
+.486132
+-.764824
+.819733
+-.643179
+.335902
+-.039570
+-.143080
+.188888
+-.139365
+.053792
+.032502
+-.119550
+.222946
+-.341636
+.438913
+-.454787
+.347546
+-.136880
+-.089021
+.220228
+-.199669
+.068581
+.060081
+-.085691
+-.004451
+.130469
+-.189176
+.138107
+-.025225
+-.054878
+.036739
+.069661
+-.193447
+.261122
+-.254749
+.230458
+-.283670
+.478884
+-.786880
+1.075878
+-1.176260
+.986455
+-.549116
+.037664
+.344232
+-.480642
+.396438
+-.215206
+.066098
+-.013667
+.052090
+-.145703
+.265614
+-.391866
+.492630
+-.514739
+.406077
+-.156822
+-.173799
+.470696
+-.613586
+.536684
+-.262784
+-.106667
+.437721
+-.619905
+.605822
+-.421155
+.147123
+.115573
+-.289094
+.352288
+-.349460
+.364479
+-.468413
+.667381
+-.882788
+.981534
+-.847005
+.455252
+.088885
+-.585957
+.838650
+-.759978
+.425218
+-.028729
+-.230745
+.260993
+-.110018
+-.093468
+.240321
+-.304947
+.333556
+-.381160
+.458250
+-.528804
+.549733
+-.508346
+.425325
+-.329214
+.233537
+-.137041
+.039038
+.051250
+-.118987
+.151258
+-.137711
+.070842
+.042327
+-.163396
+.227656
+-.186962
+.065980
+.023890
+.053708
+-.354244
+.785318
+-1.143755
+1.242543
+-1.038094
+.662922
+-.339201
+.236843
+-.374401
+.621794
+-.787768
+.724853
+-.391035
+-.148638
+.758449
+-1.279089
+1.574120
+-1.576152
+1.322550
+-.953646
+.652389
+-.541426
+.597292
+-.649164
+.481659
+.014074
+-.741782
+1.429218
+-1.775328
+1.623473
+-1.047954
+.300041
+.346018
+-.742026
+.915049
+-.995453
+1.086962
+-1.175703
+1.140357
+-.849824
+.275928
+.454507
+-1.099203
+1.407711
+-1.240799
+.646338
+.145205
+-.811784
+1.084107
+-.875063
+.320108
+.300998
+-.717500
+.801180
+-.601292
+.275238
+.020302
+-.199831
+.250887
+-.196864
+.069618
+.088471
+-.214650
+.239646
+-.128791
+-.080938
+.285882
+-.369751
+.272655
+-.025780
+-.272758
+.520616
+-.664704
+.708225
+-.675452
+.571651
+-.375953
+.071642
+.316427
+-.712293
+1.016703
+-1.149698
+1.078381
+-.819244
+.427000
+.015230
+-.404888
+.641364
+-.662648
+.477477
+-.164596
+-.169225
+.445133
+-.639433
+.762133
+-.810571
+.745907
+-.521206
+.140994
+.301793
+-.654556
+.791684
+-.701027
+.503350
+-.380308
+.452125
+-.688029
+.916724
+-.937235
+.655989
+-.153593
+-.366085
+.704091
+-.776466
+.633680
+-.395300
+.168288
+-.012363
+-.043246
+-.023634
+.219811
+-.505631
+.782981
+-.927990
+.850000
+-.534929
+.048116
+.491673
+-.942135
+1.163739
+-1.056713
+.615905
+.023350
+-.598615
+.821083
+-.528005
+-.204795
+1.076629
+-1.712372
+1.863869
+-1.534354
+.948293
+-.396644
+.070549
+.009956
+.051557
+-.129417
+.145726
+-.074118
+-.090478
+.345058
+-.660350
+.963135
+-1.156568
+1.176442
+-1.038664
+.831059
+-.646189
+.504057
+-.330552
+.020033
+.456277
+-.980005
+1.322869
+-1.285157
+.844289
+-.198145
+-.345201
+.563565
+-.461618
+.251059
+-.185341
+.374240
+-.714669
+.979302
+-.984994
+.713786
+-.309683
+-.027164
+.161143
+-.078702
+-.134338
+.357156
+-.489438
+.476023
+-.310475
+.034154
+.268518
+-.493774
+.566855
+-.493279
+.371489
+-.340295
+.482165
+-.747257
+.962492
+-.934925
+.585772
+-.019681
+-.526607
+.826165
+-.797988
+.545953
+-.280393
+.181567
+-.296036
+.524732
+-.697871
+.683579
+-.465803
+.150313
+.102121
+-.177190
+.081857
+.058316
+-.084179
+-.081317
+.366255
+-.583433
+.548376
+-.206120
+-.316702
+.769649
+-.913612
+.655894
+-.110399
+-.451392
+.736328
+-.583743
+.054744
+.597578
+-1.066394
+1.160186
+-.900614
+.490028
+-.174624
+.099208
+-.249059
+.504781
+-.751853
+.952474
+-1.128614
+1.283658
+-1.342111
+1.170719
+-.675878
+-.093865
+.924094
+-1.522629
+1.674693
+-1.369683
+.815692
+-.325729
+.141126
+-.298709
+.622590
+-.842516
+.762031
+-.372153
+-.153822
+.570664
+-.702699
+.532121
+-.192189
+-.118926
+.246585
+-.149300
+-.101661
+.380460
+-.577454
+.639120
+-.563815
+.376454
+-.113877
+-.171263
+.409120
+-.535969
+.534240
+-.453434
+.382910
+-.388683
+.462289
+-.525200
+.488752
+-.324546
+.090728
+.106594
+-.187755
+.153382
+-.076769
+.041634
+-.075972
+.136175
+-.154785
+.109859
+-.055452
+.085023
+-.258778
+.556608
+-.894033
+1.182319
+-1.378178
+1.483731
+-1.507652
+1.434166
+-1.235324
+.916086
+-.545548
+.235548
+-.073993
+.061847
+-.105209
+.073782
+.112300
+-.423894
+.728394
+-.854870
+.682515
+-.208506
+-.435604
+1.027451
+-1.341259
+1.242641
+-.747060
+.013180
+.725559
+-1.256253
+1.463300
+-1.357124
+1.052624
+-.715128
+.496633
+-.481784
+.660782
+-.940713
+1.193526
+-1.317314
+1.276317
+-1.098058
+.837473
+-.542955
+.252498
+-.014190
+-.104152
+.044215
+.186918
+-.484916
+.684393
+-.655435
+.395508
+-.042920
+-.207720
+.230825
+-.042695
+-.230771
+.459323
+-.596627
+.681344
+-.761480
+.820073
+-.774928
+.553649
+-.175535
+-.233098
+.505774
+-.534803
+.335386
+-.040535
+-.162732
+.121920
+.203049
+-.703844
+1.154622
+-1.312127
+1.045641
+-.424329
+-.302181
+.832224
+-.976127
+.751293
+-.346280
+-.017211
+.224642
+-.314854
+.410938
+-.600398
+.859204
+-1.069851
+1.108120
+-.928285
+.590684
+-.223047
+-.051162
+.173186
+-.168452
+.119798
+-.111987
+.180414
+-.293579
+.378326
+-.369080
+.248748
+-.058555
+-.124154
+.224359
+-.204880
+.083748
+.074607
+-.193270
+.225328
+-.179254
+.107888
+-.067630
+.079218
+-.122616
+.169763
+-.223653
+.322022
+-.493652
+.702446
+-.837106
+.774210
+-.478121
+.056173
+.291584
+-.406807
+.292917
+-.119780
+.097388
+-.310675
+.646589
+-.875268
+.825035
+-.514849
+.141752
+.064279
+-.003946
+-.231151
+.438430
+-.454933
+.264703
+.007139
+-.194751
+.205384
+-.069376
+-.093814
+.155218
+-.045909
+-.215678
+.535432
+-.778534
+.819879
+-.606847
+.212862
+.163453
+-.287159
+.035901
+.488958
+-.990526
+1.156666
+-.878535
+.342858
+.086536
+-.121197
+-.251086
+.766481
+-1.081275
+1.011392
+-.640252
+.231271
+-.030378
+.111877
+-.365042
+.601354
+-.680665
+.567738
+-.306824
+-.033224
+.388015
+-.692291
+.872151
+-.862667
+.644392
+-.267494
+-.158598
+.503571
+-.660681
+.581934
+-.300050
+-.070078
+.364961
+-.445774
+.279954
+.027310
+-.291491
+.370141
+-.260744
+.094483
+-.025209
+.101623
+-.228392
+.247847
+-.072732
+-.240556
+.533596
+-.660692
+.581355
+-.366058
+.128594
+.049694
+-.150012
+.196620
+-.221436
+.243320
+-.266670
+.285373
+-.282772
+.230629
+-.095908
+-.142519
+.473570
+-.840301
+1.142658
+-1.263543
+1.116796
+-.700380
+.123607
+.420189
+-.736033
+.726242
+-.445342
+.069866
+.204458
+-.273707
+.170851
+-.015784
+-.088846
+.134870
+-.199037
+.357743
+-.598466
+.803442
+-.822428
+.580554
+-.141508
+-.318564
+.607667
+-.624644
+.415281
+-.149729
+.031618
+-.180971
+.550713
+-.931221
+1.057783
+-.771655
+.137319
+.571079
+-1.020757
+1.019141
+-.628477
+.117675
+.214267
+-.219098
+-.037622
+.361874
+-.586392
+.674304
+-.702249
+.756103
+-.838617
+.868318
+-.763137
+.528273
+-.267456
+.107170
+-.099511
+.184870
+-.241663
+.180259
+-.008361
+-.175543
+.250379
+-.154601
+-.067553
+.283285
+-.346202
+.190089
+.116388
+-.397225
+.471766
+-.268460
+-.129607
+.539825
+-.793550
+.826469
+-.690628
+.497700
+-.347126
+.285843
+-.307412
+.370612
+-.419677
+.404232
+-.301045
+.129298
+.056123
+-.196798
+.268606
+-.294525
+.318532
+-.358813
+.380552
+-.316210
+.123431
+.164690
+-.442603
+.595003
+-.575362
+.437575
+-.290052
+.204640
+-.154821
+.040215
+.213570
+-.558784
+.820145
+-.803057
+.444850
+.107250
+-.564641
+.678045
+-.406730
+-.047347
+.369024
+-.333884
+-.053878
+.577680
+-.955178
+1.006197
+-.734435
+.289889
+.136132
+-.401746
+.444668
+-.264676
+-.097416
+.559708
+-.994287
+1.252336
+-1.227789
+.923209
+-.462524
+.028386
+.238888
+-.310240
+.258554
+-.187730
+.162023
+-.186862
+.238630
+-.298160
+.351540
+-.368580
+.301924
+-.129620
+-.090624
+.218018
+-.104546
+-.293510
+.855752
+-1.345974
+1.542259
+-1.359842
+.886150
+-.315405
+-.161852
+.442400
+-.527883
+.486067
+-.392930
+.291060
+-.180969
+.042170
+.134715
+-.327086
+.485343
+-.560754
+.538136
+-.451028
+.367689
+-.353719
+.432690
+-.569162
+.687135
+-.714052
+.620650
+-.428502
+.182128
+.086192
+-.365709
+.643897
+-.879006
+1.003265
+-.960447
+.745487
+-.410220
+.032715
+.318269
+-.593480
+.749835
+-.742885
+.545399
+-.180662
+-.262096
+.651304
+-.865904
+.848042
+-.629332
+.319807
+-.062397
+-.034167
+-.042974
+.192163
+-.248021
+.085991
+.281918
+-.693665
+.930055
+-.859066
+.529534
+-.140888
+-.094087
+.094879
+.039947
+-.118167
+.006089
+.266353
+-.522890
+.565955
+-.319184
+-.110630
+.491804
+-.606418
+.380424
+.073628
+-.523472
+.748583
+-.656031
+.317462
+.082980
+-.347925
+.356646
+-.109619
+-.276678
+.615374
+-.724185
+.512593
+-.044088
+-.471796
+.774007
+-.688727
+.227208
+.423295
+-1.008394
+1.338657
+-1.360271
+1.135001
+-.769927
+.360506
+.021525
+-.313277
+.456450
+-.419257
+.224468
+.049374
+-.305352
+.482255
+-.586500
+.677589
+-.815188
+1.003804
+-1.173703
+1.215984
+-1.055300
+.715900
+-.332295
+.084695
+-.089697
+.317190
+-.597828
+.726132
+-.592034
+.246723
+.143843
+-.419623
+.528747
+-.538717
+.557008
+-.628918
+.691496
+-.617383
+.316869
+.174911
+-.690950
+1.018650
+-1.026733
+.745815
+-.343773
+.013121
+.144793
+-.152963
+.092960
+-.007937
+-.134406
+.385339
+-.719771
+.997998
+-1.034843
+.734241
+-.184413
+-.369209
+.664952
+-.583793
+.214839
+.216169
+-.500394
+.571678
+-.521361
+.503422
+-.607727
+.794176
+-.927829
+.879366
+-.613673
+.208587
+.196808
+-.476681
+.566176
+-.466342
+.226043
+.074819
+-.337088
+.464980
+-.406798
+.193085
+.063827
+-.226625
+.217996
+-.073852
+-.081247
+.125224
+-.028469
+-.129902
+.235319
+-.240180
+.205796
+-.241792
+.390886
+-.561949
+.581862
+-.337628
+-.102725
+.497172
+-.574745
+.218929
+.444507
+-1.118314
+1.508895
+-1.482789
+1.110293
+-.593489
+.149634
+.076200
+-.044643
+-.180519
+.453422
+-.590577
+.445300
+.011858
+-.657822
+1.262500
+-1.596631
+1.537779
+-1.115643
+.485560
+.137467
+-.547816
+.607431
+-.292603
+-.283622
+.901049
+-1.323075
+1.411365
+-1.194298
+.838838
+-.542550
+.420151
+-.459401
+.564745
+-.641099
+.648923
+-.597620
+.500290
+-.343776
+.106837
+.189861
+-.454876
+.558433
+-.414184
+.049138
+.398676
+-.759707
+.930961
+-.918920
+.803302
+-.665068
+.544573
+-.453675
+.406122
+-.415623
+.456343
+-.436555
+.238349
+.184850
+-.729508
+1.164168
+-1.260875
+.950626
+-.385938
+-.143688
+.387309
+-.274333
+-.073643
+.455681
+-.732507
+.890826
+-.998505
+1.107957
+-1.195138
+1.178665
+-.992472
+.648493
+-.244381
+-.082069
+.217894
+-.124500
+-.145714
+.467376
+-.688497
+.691779
+-.448516
+.038751
+.378841
+-.638774
+.648070
+-.429304
+.102275
+.185146
+-.334829
+.338614
+-.261235
+.184377
+-.151762
+.148229
+-.118152
+.005646
+.207340
+-.481173
+.721738
+-.806479
+.628745
+-.150902
+-.553756
+1.296575
+-1.825397
+1.925970
+-1.531240
+.776123
+.047639
+-.626879
+.781342
+-.544958
+.124380
+.233508
+-.375071
+.292406
+-.080558
+-.146320
+.310914
+-.374839
+.316153
+-.126433
+-.162715
+.457851
+-.627398
+.572220
+-.294721
+-.092070
+.432341
+-.626807
+.688640
+-.712332
+.780764
+-.886940
+.936997
+-.834600
+.578569
+-.289925
+.137866
+-.216204
+.466014
+-.710323
+.781202
+-.644097
+.420413
+-.286195
+.326385
+-.465937
+.539501
+-.442734
+.232733
+-.082209
+.120876
+-.303039
+.427638
+-.306571
+-.056470
+.434147
+-.531066
+.211589
+.379500
+-.900227
+1.038166
+-.712439
+.109444
+.458590
+-.754825
+.732766
+-.502036
+.200837
+.108487
+-.442090
+.811987
+-1.146390
+1.294570
+-1.124546
+.640622
+-.026106
+-.434680
+.514328
+-.180579
+-.375292
+.840281
+-.950388
+.630491
+-.027214
+-.575680
+.905368
+-.831160
+.415224
+.134602
+-.576449
+.749042
+-.633213
+.338861
+-.038285
+-.113513
+.038005
+.240080
+-.599232
+.864255
+-.884159
+.619377
+-.185870
+-.190743
+.302312
+-.089947
+-.315143
+.679028
+-.820297
+.717491
+-.491521
+.287413
+-.160998
+.064968
+.062773
+-.198649
+.222456
+-.017479
+-.399937
+.839535
+-1.038875
+.846182
+-.349567
+-.152623
+.333905
+-.055201
+-.534383
+1.083618
+-1.256876
+.939849
+-.301439
+-.320537
+.626825
+-.523245
+.152602
+.210077
+-.323136
+.110223
+.304693
+-.668883
+.742602
+-.440582
+-.105580
+.612528
+-.812383
+.620847
+-.188275
+-.208561
+.356801
+-.236543
+-.004283
+.193790
+-.269477
+.293410
+-.354750
+.462390
+-.527477
+.444009
+-.187961
+-.152634
+.435524
+-.555485
+.498176
+-.328409
+.138626
+-.001512
+-.049211
+.016099
+.070226
+-.158343
+.188549
+-.115575
+-.066932
+.316618
+-.556993
+.709989
+-.728102
+.610662
+-.401040
+.171106
+.000341
+-.052052
+-.034989
+.221019
+-.412276
+.495569
+-.395359
+.125885
+.196317
+-.399872
+.351305
+-.043563
+-.377786
+.677809
+-.656314
+.261364
+.375900
+-1.005172
+1.378988
+-1.363323
+.983984
+-.399353
+-.174532
+.550808
+-.640503
+.481981
+-.216366
+.011607
+.032234
+.057477
+-.145266
+.080473
+.193815
+-.590470
+.923352
+-1.018387
+.815647
+-.396030
+-.078113
+.459240
+-.678984
+.745183
+-.693206
+.545080
+-.311697
+.025138
+.244514
+-.416884
+.454676
+-.391473
+.300327
+-.224548
+.132836
+.052411
+-.366139
+.723056
+-.927504
+.786137
+-.255714
+-.482443
+1.090992
+-1.261358
+.901315
+-.199997
+-.479107
+.813111
+-.706073
+.329544
+.002521
+-.036018
+-.275903
+.766055
+-1.173703
+1.301118
+-1.109131
+.711551
+-.296669
+.032498
+.001902
+.156248
+-.370881
+.470047
+-.340289
+.007882
+.353880
+-.520110
+.368675
+.009904
+-.340116
+.331392
+.114064
+-.803257
+1.348740
+-1.410277
+.923021
+-.153809
+-.459001
+.577016
+-.164369
+-.506265
+1.034151
+-1.127109
+.744771
+-.080560
+-.574485
+.983379
+-1.048749
+.815239
+-.421942
+.043052
+.168540
+-.135186
+-.103935
+.393470
+-.527892
+.365802
+.071441
+-.588985
+.917964
+-.872055
+.462974
+.100467
+-.530404
+.620498
+-.350962
+-.120872
+.569773
+-.836731
+.902805
+-.860661
+.812064
+-.770636
+.644875
+-.317572
+-.237059
+.891196
+-1.412703
+1.600133
+-1.409538
+.980297
+-.538931
+.249416
+-.116896
+.010163
+.220817
+-.622364
+1.095891
+-1.457977
+1.549033
+-1.314193
+.814356
+-.181988
+-.433685
+.900868
+-1.121539
+1.049712
+-.716058
+.236502
+.222141
+-.515791
+.592827
+-.507192
+.360261
+-.214976
+.051753
+.194622
+-.544490
+.904486
+-1.085797
+.912280
+-.352592
+-.416130
+1.070256
+-1.306265
+1.018089
+-.372198
+-.278218
+.598606
+-.472410
+.064772
+.294717
+-.335634
+.027552
+.404286
+-.640845
+.499342
+-.071180
+-.333970
+.406831
+-.069323
+-.451610
+.770114
+-.609664
+.000265
+.740301
+-1.225533
+1.256199
+-.928970
+.533081
+-.328495
+.374588
+-.522148
+.552892
+-.351665
+-.008762
+.316371
+-.356792
+.047947
+.504045
+-1.050827
+1.320309
+-1.148884
+.566790
+.205723
+-.857529
+1.140306
+-.997089
+.586258
+-.178203
+-.013550
+-.046493
+.224940
+-.345186
+.327601
+-.236044
+.201701
+-.294285
+.448876
+-.507380
+.341842
+.035631
+-.460086
+.710794
+-.653325
+.330254
+.061979
+-.296011
+.255558
+-.002352
+-.274504
+.388939
+-.276486
+.023393
+.205188
+-.278140
+.171365
+.042040
+-.262822
+.435119
+-.562471
+.667744
+-.740733
+.726775
+-.572840
+.293855
+.003321
+-.173234
+.133182
+.064761
+-.255535
+.270813
+-.057896
+-.282568
+.568638
+-.662683
+.557523
+-.367435
+.243992
+-.284678
+.489864
+-.775822
+1.015228
+-1.079517
+.879131
+-.404199
+-.248220
+.890889
+-1.320860
+1.421043
+-1.224108
+.888925
+-.600702
+.464950
+-.468858
+.527933
+-.567520
+.569281
+-.554773
+.540055
+-.515767
+.471161
+-.427900
+.437309
+-.535838
+.701656
+-.860697
+.942222
+-.932604
+.873826
+-.805031
+.703584
+-.488332
+.094211
+.439682
+-.947887
+1.215837
+-1.112517
+.686655
+-.154061
+-.222283
+.284578
+-.069125
+-.220447
+.335064
+-.123089
+-.384683
+.989650
+-1.428488
+1.510692
+-1.218773
+.715599
+-.250416
+.015088
+-.037695
+.181996
+-.253172
+.138534
+.111836
+-.316803
+.284937
+.055405
+-.597670
+1.104413
+-1.331831
+1.161188
+-.664230
+.066221
+.373402
+-.495962
+.317521
+-.002484
+-.241340
+.277945
+-.101120
+-.187762
+.452662
+-.593224
+.575999
+-.424532
+.191162
+.067120
+-.299144
+.459383
+-.506131
+.407174
+-.157175
+-.200330
+.567234
+-.820487
+.873569
+-.733902
+.510042
+-.352345
+.361561
+-.528181
+.745812
+-.885920
+.878577
+-.744375
+.562230
+-.402387
+.273805
+-.122298
+-.117287
+.446623
+-.760046
+.874386
+-.632321
+.024013
+.757307
+-1.380488
+1.540703
+-1.129124
+.301385
+.601688
+-1.234203
+1.416065
+-1.194959
+.773503
+-.362923
+.065417
+.142891
+-.334653
+.533102
+-.675356
+.664954
+-.466777
+.162104
+.088425
+-.153076
+.029034
+.143489
+-.170311
+-.063102
+.505139
+-.958337
+1.192977
+-1.080083
+.662201
+-.125162
+-.304669
+.474798
+-.372487
+.114074
+.129690
+-.230077
+.168007
+-.037182
+-.019304
+-.096875
+.370934
+-.676045
+.847198
+-.783297
+.513436
+-.184044
+-.026392
+.012255
+.197720
+-.456843
+.580932
+-.445124
+.046787
+.491730
+-.975868
+1.221214
+-1.131326
+.739457
+-.194806
+-.302878
+.589894
+-.602570
+.387395
+-.060767
+-.249565
+.446298
+-.477093
+.335702
+-.064857
+-.243440
+.470530
+-.524732
+.401097
+-.200752
+.079366
+-.145744
+.377765
+-.623079
+.695621
+-.506376
+.134672
+.215157
+-.343666
+.180377
+.183244
+-.566325
+.814041
+-.871686
+.778162
+-.606257
+.408083
+-.201384
+-.012665
+.229709
+-.435685
+.604785
+-.692554
+.636425
+-.383858
+-.054402
+.566262
+-.962867
+1.070647
+-.835935
+.364556
+.138675
+-.490949
+.627249
+-.606987
+.538049
+-.485471
+.435414
+-.333500
+.155545
+.052412
+-.196532
+.200027
+-.059633
+-.147649
+.311572
+-.358753
+.301182
+-.230844
+.259471
+-.437855
+.707915
+-.925358
+.944427
+-.711626
+.306124
+.098986
+-.328892
+.296918
+-.044508
+-.284979
+.522747
+-.564194
+.426174
+-.236906
+.155899
+-.266327
+.508697
+-.707247
+.682259
+-.379566
+-.072028
+.425972
+-.475933
+.205283
+.182813
+-.395624
+.264486
+.113258
+-.427349
+.385357
+.044453
+-.574098
+.787631
+-.454140
+-.273669
+.933796
+-1.058236
+.491172
+.501076
+-1.397226
+1.742293
+-1.406051
+.624799
+.171521
+-.611708
+.555935
+-.109719
+-.487652
+1.004060
+-1.303082
+1.356718
+-1.209930
+.937256
+-.614114
+.303930
+-.052260
+-.116004
+.194703
+-.188092
+.101255
+.060981
+-.281140
+.512197
+-.678015
+.704511
+-.568918
+.329917
+-.106524
+.009304
+-.068349
+.211620
+-.313590
+.283465
+-.131584
+-.034163
+.082264
+.046988
+-.290369
+.492815
+-.502790
+.268858
+.127451
+-.523045
+.770487
+-.814580
+.701772
+-.527334
+.367641
+-.248357
+.165361
+-.130152
+.189768
+-.391103
+.709462
+-1.006099
+1.073994
+-.768386
+.137608
+.555467
+-.967222
+.888290
+-.391061
+-.203718
+.525379
+-.380785
+-.141657
+.748583
+-1.127452
+1.109015
+-.715813
+.102012
+.541420
+-1.048264
+1.296263
+-1.220684
+.848435
+-.326761
+-.109867
+.254459
+-.063846
+-.289910
+.514885
+-.392036
+-.068000
+.618102
+-.922849
+.757447
+-.130193
+-.732206
+1.504150
+-1.905905
+1.807979
+-1.268142
+.504078
+.187040
+-.543167
+.449231
+.006606
+-.573657
+.969147
+-1.029832
+.790748
+-.437843
+.169463
+-.069052
+.081355
+-.097848
+.067672
+-.034819
+.075083
+-.198977
+.316550
+-.301650
+.101778
+.202075
+-.440367
+.473790
+-.296224
+.043979
+.096195
+-.014602
+-.248070
+.530833
+-.661715
+.567526
+-.309271
+.025346
+.168398
+-.247450
+.272662
+-.325378
+.437899
+-.566858
+.619392
+-.508265
+.204601
+.234305
+-.673115
+.946558
+-.936278
+.641725
+-.197441
+-.188345
+.346992
+-.243256
+-.014664
+.255853
+-.358899
+.317113
+-.216530
+.152430
+-.151786
+.159735
+-.098077
+-.050287
+.198326
+-.193795
+-.078091
+.596606
+-1.183949
+1.583130
+-1.591499
+1.170108
+-.468068
+-.245319
+.699734
+-.737645
+.377119
+.199784
+-.730739
+.995533
+-.917695
+.587045
+-.187788
+-.120255
+.286584
+-.367733
+.453654
+-.590547
+.760750
+-.921576
+1.053316
+-1.166028
+1.261185
+-1.293497
+1.181175
+-.870750
+.408029
+.047563
+-.292625
+.197939
+.201121
+-.706589
+1.058165
+-1.072993
+.739293
+-.208410
+-.304565
+.643647
+-.780746
+.794420
+-.785953
+.798626
+-.795636
+.702982
+-.476148
+.139045
+.226608
+-.523394
+.677502
+-.655846
+.466908
+-.159307
+-.181089
+.446996
+-.545733
+.441473
+-.177060
+-.142508
+.397168
+-.502513
+.438674
+-.249187
+.017989
+.162874
+-.225270
+.150380
+.020695
+-.199525
+.287438
+-.224147
+.023744
+.224893
+-.399442
+.409430
+-.251283
+.019118
+.140911
+-.113113
+-.113868
+.428517
+-.651295
+.637412
+-.369328
+-.018338
+.301716
+-.288083
+-.071964
+.645829
+-1.179926
+1.430789
+-1.292784
+.847961
+-.308523
+-.110359
+.305599
+-.318582
+.273142
+-.271183
+.321757
+-.348259
+.260598
+-.035316
+-.254750
+.482252
+-.549461
+.455550
+-.297948
+.204380
+-.242800
+.374186
+-.482103
+.455740
+-.264590
+-.026467
+.304848
+-.479456
+.522664
+-.464891
+.357954
+-.240020
+.125911
+-.023135
+-.046278
+.042969
+.062867
+-.250952
+.432260
+-.481092
+.310923
+.052736
+-.459168
+.701251
+-.630903
+.249766
+.284500
+-.742283
+.945706
+-.857302
+.582518
+-.288825
+.096264
+-.011848
+-.048882
+.170221
+-.344369
+.453949
+-.350584
+-.024304
+.569359
+-1.063741
+1.294894
+-1.183303
+.818174
+-.389058
+.074410
+.033557
+.065856
+-.318445
+.645307
+-.948504
+1.114913
+-1.047402
+.719721
+-.214288
+-.297918
+.636589
+-.704264
+.531269
+-.245237
+-.009662
+.145346
+-.148150
+.043872
+.147000
+-.417170
+.736501
+-1.012993
+1.103474
+-.888910
+.369808
+.292172
+-.832615
+1.019451
+-.783363
+.259734
+.286203
+-.604919
+.590216
+-.316314
+-.028376
+.261622
+-.306038
+.211859
+-.101070
+.077722
+-.164674
+.303403
+-.408822
+.435140
+-.404223
+.376538
+-.387953
+.404378
+-.337568
+.120688
+.210606
+-.504850
+.581260
+-.368934
+-.006950
+.275660
+-.193340
+-.279541
+.931093
+-1.425749
+1.519884
+-1.212088
+.726626
+-.354479
+.273009
+-.464676
+.768287
+-1.002269
+1.065833
+-.964027
+.768833
+-.566122
+.425614
+-.393967
+.489050
+-.683952
+.896474
+-1.010036
+.930318
+-.646914
+.253523
+.096539
+-.275200
+.249076
+-.086886
+-.095883
+.210820
+-.236525
+.205609
+-.163015
+.136350
+-.135322
+.162988
+-.212576
+.250217
+-.213836
+.051924
+.217870
+-.486833
+.609214
+-.504051
+.222293
+.084742
+-.275135
+.311152
+-.257430
+.192823
+-.129057
+.020658
+.145459
+-.281256
+.239386
+.052017
+-.481569
+.788632
+-.736688
+.297539
+.303278
+-.723914
+.726668
+-.322278
+-.255524
+.708654
+-.843798
+.645435
+-.234654
+-.226038
+.608165
+-.842766
+.913368
+-.844719
+.694640
+-.536714
+.428234
+-.380791
+.359161
+-.314565
+.226396
+-.116181
+.020805
+.049374
+-.125598
+.249604
+-.421197
+.575597
+-.621064
+.515234
+-.317369
+.163422
+-.169681
+.334662
+-.520679
+.541238
+-.297650
+-.135794
+.545584
+-.713164
+.557646
+-.188907
+-.162600
+.290093
+-.135327
+-.179798
+.426153
+-.396104
+.016272
+.610451
+-1.248250
+1.633169
+-1.591231
+1.117291
+-.378335
+-.362571
+.865302
+-1.014075
+.849600
+-.521549
+.199691
+-.001012
+-.031990
+-.090175
+.332534
+-.644371
+.952737
+-1.166442
+1.206243
+-1.047232
+.739749
+-.385655
+.080170
+.141057
+-.310317
+.483873
+-.679192
+.845854
+-.899362
+.795755
+-.585239
+.392248
+-.327339
+.397645
+-.491211
+.454554
+-.205924
+-.202939
+.620543
+-.891181
+.935641
+-.765313
+.441097
+-.028491
+-.414214
+.824123
+-1.132602
+1.290552
+-1.297070
+1.197323
+-1.045051
+.865957
+-.660511
+.444695
+-.281283
+.255779
+-.403415
+.649778
+-.829551
+.787771
+-.494871
+.085384
+.218228
+-.251056
+.022196
+.279472
+-.397380
+.167740
+.372427
+-.996147
+1.407771
+-1.401387
+.965532
+-.282202
+-.369375
+.746059
+-.743260
+.423724
+.031535
+-.419358
+.608346
+-.585540
+.437178
+-.280693
+.191234
+-.164252
+.131245
+-.013836
+-.217684
+.514700
+-.767211
+.860363
+-.740554
+.450724
+-.108261
+-.166381
+.326910
+-.430559
+.594317
+-.902024
+1.323999
+-1.708554
+1.860003
+-1.659483
+1.151978
+-.539715
+.080562
+.049045
+.155289
+-.534002
+.860485
+-.965067
+.812732
+-.495437
+.154903
+.105612
+-.261181
+.336966
+-.347526
+.264675
+-.049418
+-.278508
+.603089
+-.758699
+.641823
+-.303337
+-.060817
+.227130
+-.089281
+-.275611
+.663378
+-.872338
+.809567
+-.511672
+.092971
+.319840
+-.623344
+.746855
+-.663119
+.408133
+-.086470
+-.163948
+.239741
+-.129802
+-.079634
+.257999
+-.305620
+.203979
+-.015513
+-.158556
+.232393
+-.173262
+.009367
+.187835
+-.335008
+.370687
+-.284346
+.131581
+-.021077
+.063371
+-.294861
+.621967
+-.838403
+.730602
+-.219929
+-.553297
+1.275927
+-1.626197
+1.459237
+-.893780
+.240848
+.182624
+-.236901
+.022771
+.213157
+-.263332
+.104942
+.097245
+-.132271
+-.078205
+.402450
+-.587301
+.450617
+-.032007
+-.413668
+.578619
+-.304434
+-.314657
+.989548
+-1.404650
+1.383516
+-.958936
+.327732
+.261913
+-.620784
+.678751
+-.485101
+.168959
+.113154
+-.225610
+.093902
+.263566
+-.723241
+1.084381
+-1.147781
+.820756
+-.188650
+-.505261
+.977272
+-1.054365
+.762380
+-.294073
+-.117239
+.329002
+-.341103
+.249367
+-.153978
+.097516
+-.069433
+.054219
+-.069264
+.155433
+-.330522
+.550239
+-.716573
+.735356
+-.583743
+.337300
+-.132339
+.083929
+-.211896
+.424145
+-.571830
+.544091
+-.342259
+.082012
+.082346
+-.063160
+-.098556
+.260362
+-.276163
+.094092
+.214030
+-.505738
+.656725
+-.622492
+.442615
+-.204311
+-.000561
+.106167
+-.092606
+-.003226
+.097525
+-.101162
+-.020607
+.210194
+-.337899
+.277417
+.010672
+-.444933
+.861910
+-1.101334
+1.085022
+-.848542
+.517701
+-.248794
+.158779
+-.270441
+.494937
+-.666570
+.624909
+-.308082
+-.196599
+.683639
+-.934034
+.837631
+-.460813
+.016706
+.248698
+-.190197
+-.160011
+.617315
+-.954224
+1.024423
+-.823256
+.453326
+-.034655
+-.361495
+.703170
+-.935647
+.948355
+-.632846
+.004570
+.721428
+-1.201245
+1.167268
+-.627219
+-.107802
+.614716
+-.643048
+.280630
+.127962
+-.249054
+.008154
+.367295
+-.534529
+.301197
+.230237
+-.736972
+.901261
+-.616543
+.036192
+.548925
+-.899324
+.950114
+-.804843
+.633439
+-.560874
+.612838
+-.728519
+.809629
+-.772418
+.587856
+-.304079
+.040282
+.059273
+.098305
+-.487140
+.953380
+-1.283324
+1.315564
+-1.027785
+.541551
+-.043106
+-.323345
+.516289
+-.576476
+.555041
+-.459314
+.265340
+.017453
+-.297900
+.431292
+-.318508
+-.000009
+.340936
+-.485557
+.329074
+.036595
+-.372261
+.444340
+-.178946
+-.287585
+.696419
+-.835074
+.675213
+-.386382
+.214779
+-.308327
+.609151
+-.890203
+.911055
+-.582708
+.025948
+.513746
+-.827462
+.865001
+-.738748
+.619756
+-.608698
+.671360
+-.674400
+.487965
+-.083428
+-.434484
+.877289
+-1.072590
+.956388
+-.606609
+.199273
+.087044
+-.162792
+.060973
+.104694
+-.223794
+.253234
+-.216855
+.148916
+-.038960
+-.164693
+.487724
+-.857564
+1.102052
+-1.044517
+.637546
+-.032880
+-.480106
+.639883
+-.374219
+-.153171
+.642553
+-.834707
+.647069
+-.189701
+-.329536
+.730349
+-.932136
+.945420
+-.819182
+.601000
+-.335160
+.077745
+.107050
+-.176877
+.138370
+-.036822
+-.089354
+.246455
+-.471293
+.767915
+-1.052526
+1.171226
+-.999509
+.556364
+-.036069
+-.288371
+.237944
+.144082
+-.608102
+.859356
+-.757286
+.414294
+-.121449
+.149795
+-.562897
+1.169774
+-1.649910
+1.762503
+-1.493328
+1.038383
+-.642845
+.421194
+-.294843
+.089354
+.294557
+-.777619
+1.148282
+-1.216303
+.949288
+-.489608
+.051110
+.214998
+-.286004
+.233309
+-.136791
+.025255
+.116095
+-.293876
+.469212
+-.574891
+.573439
+-.501804
+.455353
+-.515705
+.678069
+-.841222
+.875638
+-.720958
+.436844
+-.164514
+.026561
+-.042533
+.126226
+-.164618
+.110635
+-.010695
+-.056010
+.071157
+-.116198
+.312454
+-.703909
+1.179512
+-1.509101
+1.482840
+-1.063291
+.441336
+.053278
+-.141724
+-.228363
+.834871
+-1.300244
+1.311937
+-.808533
+.011515
+.719801
+-1.112818
+1.133803
+-.967955
+.851556
+-.885232
+.964867
+-.874878
+.467564
+.205825
+-.905618
+1.344665
+-1.360119
+1.002618
+-.492001
+.077307
+.105578
+-.093117
+.042857
+-.113379
+.353662
+-.668987
+.879295
+-.829333
+.481274
+.064489
+-.626980
+1.038705
+-1.216958
+1.175118
+-.980366
+.696705
+-.354250
+-.039903
+.465138
+-.857928
+1.116022
+-1.141427
+.900811
+-.465850
+.001191
+.304196
+-.329318
+.084117
+.295155
+-.615801
+.723393
+-.570867
+.231561
+.143212
+-.397532
+.440919
+-.283952
+.022600
+.219238
+-.354595
+.366419
+-.292550
+.183154
+-.069202
+-.036058
+.115422
+-.138282
+.080160
+.045308
+-.176353
+.233023
+-.169101
+.006524
+.175388
+-.290031
+.300166
+-.245305
+.223005
+-.331121
+.598234
+-.940347
+1.178987
+-1.129183
+.719318
+-.066503
+-.559616
+.883518
+-.794122
+.419051
+-.041725
+-.086864
+-.089958
+.410992
+-.621267
+.548320
+-.209021
+-.213581
+.490868
+-.480908
+.196557
+.213876
+-.547756
+.643859
+-.451088
+.046264
+.402909
+-.714105
+.773119
+-.583758
+.257166
+.055225
+-.245588
+.297816
+-.270576
+.232545
+-.202072
+.137661
+.016987
+-.273025
+.571311
+-.810890
+.908310
+-.843774
+.665047
+-.453961
+.285775
+-.209271
+.250931
+-.421560
+.703939
+-1.027743
+1.266476
+-1.285774
+1.028631
+-.575934
+.121820
+.135936
+-.116839
+-.100845
+.348667
+-.490096
+.501714
+-.461269
+.469734
+-.577123
+.759167
+-.938836
+1.019040
+-.910554
+.566164
+-.026898
+-.549026
+.922637
+-.888734
+.411001
+.320737
+-.971979
+1.248071
+-1.065634
+.596797
+-.156700
+.009514
+-.216490
+.615482
+-.933984
+.957532
+-.650303
+.162677
+.266998
+-.448632
+.333285
+-.017810
+-.326475
+.547885
+-.577657
+.437706
+-.204071
+-.042955
+.252956
+-.410270
+.515988
+-.565258
+.538511
+-.412646
+.183536
+.117002
+-.421891
+.648923
+-.731416
+.646470
+-.426615
+.146818
+.109841
+-.289821
+.386784
+-.428720
+.446704
+-.451031
+.431691
+-.376988
+.290383
+-.192949
+.116259
+-.095886
+.164990
+-.337186
+.579057
+-.796673
+.867969
+-.722102
+.415176
+-.131367
+.080243
+-.344986
+.792733
+-1.130355
+1.087093
+-.604686
+-.101521
+.661941
+-.776162
+.390617
+.286020
+-.930631
+1.306423
+-1.378163
+1.276013
+-1.155683
+1.072605
+-.963317
+.734283
+-.372559
+-.017235
+.278536
+-.315036
+.159587
+.050656
+-.169348
+.133005
+.012987
+-.164858
+.243654
+-.249845
+.253677
+-.332287
+.499008
+-.674102
+.718517
+-.514360
+.046786
+.561949
+-1.093468
+1.335119
+-1.189758
+.727753
+-.145514
+-.344551
+.620814
+-.686158
+.616567
+-.477110
+.277524
+.003408
+-.358458
+.720704
+-.993301
+1.115399
+-1.106153
+1.046279
+-1.008567
+.990049
+-.900876
+.627243
+-.131935
+-.476717
+.967952
+-1.109232
+.818219
+-.242515
+-.303146
+.518137
+-.301549
+-.184817
+.621517
+-.731380
+.439384
+.104743
+-.636020
+.928496
+-.898194
+.613628
+-.234970
+-.070215
+.195642
+-.130012
+-.051537
+.236255
+-.343800
+.378761
+-.426702
+.585254
+-.871304
+1.173425
+-1.296578
+1.081812
+-.523028
+-.203554
+.824824
+-1.117813
+1.023654
+-.660955
+.241902
+.045444
+-.117000
+.001506
+.206272
+-.407251
+.540273
+-.593641
+.593814
+-.585543
+.611625
+-.693969
+.817420
+-.925120
+.937715
+-.796906
+.511290
+-.169610
+-.097012
+.183415
+-.062371
+-.213996
+.553187
+-.860730
+1.049372
+-1.033931
+.749931
+-.207061
+-.465007
+1.040234
+-1.303276
+1.176573
+-.770460
+.309402
+.014722
+-.152223
+.189772
+-.246546
+.365763
+-.489980
+.531856
+-.470553
+.386117
+-.398423
+.559881
+-.792894
+.932490
+-.850146
+.563717
+-.239913
+.076379
+-.149876
+.352431
+-.472601
+.363721
+-.067391
+-.206684
+.233002
+.059609
+-.526327
+.898039
+-.957967
+.677329
+-.218636
+-.185707
+.384731
+-.382412
+.292101
+-.222350
+.190194
+-.125694
+-.046391
+.321521
+-.596305
+.727979
+-.625729
+.309420
+.098327
+-.433721
+.566027
+-.447938
+.126925
+.278175
+-.624441
+.801183
+-.775151
+.601524
+-.389798
+.240809
+-.194307
+.221705
+-.265164
+.287945
+-.294425
+.308034
+-.334552
+.349686
+-.324022
+.259920
+-.200090
+.194961
+-.256339
+.343278
+-.398200
+.402524
+-.397127
+.440290
+-.536103
+.602108
+-.520086
+.242417
+.131553
+-.384007
+.311322
+.124854
+-.738360
+1.204700
+-1.245055
+.789431
+-.011882
+-.781691
+1.330845
+-1.541960
+1.483528
+-1.285467
+1.038091
+-.767438
+.483781
+-.235200
+.105064
+-.155353
+.372368
+-.667062
+.929766
+-1.092509
+1.150777
+-1.135234
+1.064886
+-.924303
+.685043
+-.353579
+.003334
+.244876
+-.291050
+.126183
+.153835
+-.410285
+.557553
+-.617318
+.685892
+-.839461
+1.053479
+-1.201639
+1.137240
+-.798557
+.264239
+.277764
+-.627728
+.677961
+-.462700
+.127980
+.156164
+-.285464
+.260343
+-.158453
+.070534
+-.047951
+.090809
+-.168265
+.242903
+-.281432
+.258194
+-.165618
+.030408
+.083504
+-.100225
+-.025337
+.277804
+-.587349
+.865072
+-1.040422
+1.079147
+-.983424
+.788271
+-.558596
+.374794
+-.297242
+.324406
+-.380069
+.354637
+-.182820
+-.098403
+.362890
+-.479471
+.408539
+-.237357
+.124360
+-.192262
+.447783
+-.783586
+1.054573
+-1.168487
+1.127571
+-1.001127
+.859534
+-.722019
+.552317
+-.297987
+-.058217
+.469501
+-.835258
+1.043820
+-1.026599
+.797487
+-.455362
+.143013
+.022878
+-.013963
+-.094760
+.172554
+-.117351
+-.076837
+.315036
+-.462777
+.432851
+-.241372
+-.000477
+.151111
+-.120624
+-.075483
+.319769
+-.455392
+.378335
+-.109828
+-.200068
+.351949
+-.219669
+-.163219
+.617956
+-.934210
+1.006871
+-.898614
+.783857
+-.816639
+1.018033
+-1.258175
+1.338084
+-1.112093
+.577427
+.111844
+-.705450
+.962671
+-.761101
+.165082
+.583272
+-1.161244
+1.316595
+-.998055
+.386859
+.199550
+-.483870
+.382335
+-.040876
+-.267587
+.317149
+-.061148
+-.359084
+.723807
+-.877817
+.806199
+-.601393
+.363817
+-.123575
+-.157087
+.512381
+-.899371
+1.186453
+-1.217933
+.912196
+-.329452
+-.335359
+.834987
+-.986642
+.760213
+-.288098
+-.209775
+.540818
+-.623666
+.495607
+-.254942
+-.005631
+.225658
+-.362270
+.374955
+-.244322
+.012061
+.208352
+-.285740
+.165674
+.070606
+-.246896
+.221663
+-.015511
+-.170669
+.082691
+.389690
+-1.087901
+1.640834
+-1.690155
+1.143853
+-.276306
+-.418878
+.547512
+-.093639
+-.546707
+.822171
+-.408455
+-.551393
+1.525550
+-1.940613
+1.553560
+-.592079
+-.417948
+.996502
+-.981269
+.564635
+-.114696
+-.064849
+-.120815
+.563577
+-1.054639
+1.393047
+-1.449146
+1.187890
+-.677046
+.081475
+.380740
+-.531987
+.341189
+.034564
+-.325467
+.312314
+.031284
+-.524592
+.908095
+-1.016557
+.864846
+-.591939
+.328618
+-.111349
+-.090790
+.281902
+-.386221
+.300843
+-.009985
+-.352387
+.568277
+-.493312
+.180592
+.139125
+-.218660
+-.020882
+.422422
+-.694452
+.606281
+-.136942
+-.519514
+1.079743
+-1.328735
+1.207486
+-.798238
+.250158
+.288669
+-.702574
+.918339
+-.920989
+.773065
+-.605503
+.557652
+-.690965
+.939477
+-1.146080
+1.169742
+-.987355
+.711158
+-.505601
+.466858
+-.557583
+.645578
+-.612519
+.446370
+-.246849
+.144035
+-.195847
+.341922
+-.443705
+.375631
+-.101445
+-.308565
+.716055
+-.974095
+.978071
+-.701111
+.215800
+.309483
+-.662150
+.684295
+-.372034
+-.098560
+.458125
+-.501994
+.216319
+.216527
+-.537471
+.570799
+-.317995
+-.066810
+.388081
+-.525144
+.482377
+-.355957
+.254291
+-.232052
+.278382
+-.354789
+.440990
+-.545587
+.675183
+-.796644
+.836325
+-.726135
+.460959
+-.117908
+-.182364
+.345162
+-.351853
+.258638
+-.150920
+.088211
+-.073995
+.063300
+.001467
+-.147730
+.344903
+-.507791
+.535790
+-.373030
+.055033
+.294567
+-.526398
+.553100
+-.403120
+.200810
+-.086093
+.132000
+-.315840
+.554570
+-.767256
+.915511
+-.999992
+1.028453
+-.987367
+.841759
+-.564340
+.174549
+.242594
+-.560337
+.672850
+-.560552
+.310967
+-.072886
+-.029028
+-.039761
+.222677
+-.430046
+.605625
+-.749612
+.886183
+-1.010749
+1.066093
+-.970491
+.678605
+-.231281
+-.239948
+.558132
+-.573520
+.232539
+.381670
+-1.056290
+1.514802
+-1.533022
+1.060078
+-.271408
+-.500477
+.938952
+-.920482
+.577490
+-.200152
+.044802
+-.180481
+.470688
+-.684280
+.646067
+-.330069
+-.143230
+.579716
+-.803037
+.724138
+-.370600
+-.127505
+.588377
+-.846131
+.808992
+-.486892
+-.015394
+.531719
+-.886338
+.957461
+-.734843
+.338402
+.030941
+-.196734
+.107187
+.143384
+-.393827
+.536732
+-.582476
+.613699
+-.674346
+.697799
+-.548388
+.148516
+.416953
+-.916315
+1.106776
+-.890642
+.374752
+.207374
+-.645373
+.860789
+-.906498
+.880702
+-.841744
+.790921
+-.718797
+.651295
+-.641030
+.710627
+-.809161
+.833977
+-.709435
+.456062
+-.186842
+.027351
+-.021108
+.094353
+-.107757
+-.043305
+.350444
+-.687231
+.878687
+-.801949
+.460473
+.008551
+-.398164
+.535167
+-.369960
+.003359
+.367879
+-.560608
+.508703
+-.296999
+.101010
+-.067111
+.211031
+-.404932
+.465585
+-.284612
+-.088518
+.466545
+-.631010
+.452155
+.050480
+-.730972
+1.393482
+-1.870316
+2.066618
+-1.965559
+1.608115
+-1.064916
+.413233
+.272483
+-.915999
+1.429644
+-1.717474
+1.702450
+-1.368786
+.790852
+-.120402
+-.470020
+.857836
+-1.013538
+.993128
+-.891396
+.788575
+-.719414
+.672835
+-.613392
+.511586
+-.371337
+.242104
+-.201970
+.308732
+-.541390
+.776028
+-.832013
+.579239
+-.042769
+-.574673
+.987104
+-.988544
+.579582
+.031774
+-.558441
+.803776
+-.755978
+.550454
+-.342283
+.193600
+-.058810
+-.134597
+.389112
+-.610665
+.674039
+-.522762
+.218960
+.096599
+-.298768
+.349216
+-.291900
+.186804
+-.047053
+-.160955
+.453958
+-.764460
+.941387
+-.837083
+.422329
+.163283
+-.676942
+.914399
+-.824985
+.515767
+-.148971
+-.178668
+.479140
+-.813185
+1.188906
+-1.510651
+1.623995
+-1.424104
+.946776
+-.375503
+-.044504
+.135895
+.112505
+-.536356
+.885044
+-.964766
+.754839
+-.423742
+.225715
+-.334012
+.716317
+-1.140262
+1.314506
+-1.077305
+.505595
+.131476
+-.543971
+.600088
+-.392373
+.153983
+-.093656
+.268015
+-.569973
+.821581
+-.891145
+.756646
+-.493956
+.222744
+-.053654
+.053588
+-.224042
+.490782
+-.719864
+.772815
+-.585135
+.222593
+.130863
+-.260899
+.045021
+.460351
+-1.024283
+1.345607
+-1.208848
+.607512
+.238296
+-.988055
+1.356045
+-1.257504
+.842984
+-.404166
+.209116
+-.360342
+.750047
+-1.128197
+1.238915
+-.948636
+.301367
+.519666
+-1.290069
+1.839641
+-2.094441
+2.061024
+-1.788806
+1.351222
+-.852059
+.427235
+-.208753
+.255065
+-.495253
+.741886
+-.785213
+.519356
+-.017218
+-.503014
+.804965
+-.772868
+.469960
+-.081003
+-.212436
+.331941
+-.313098
+.238352
+-.160623
+.080753
+.015067
+-.105879
+.128155
+-.019954
+-.220244
+.511457
+-.725676
+.757212
+-.578774
+.249719
+.121392
+-.428657
+.602746
+-.617911
+.486129
+-.255064
+.008014
+.151430
+-.139458
+-.058809
+.365173
+-.634411
+.724138
+-.572074
+.236160
+.128013
+-.344995
+.312395
+-.056610
+-.283693
+.538383
+-.600266
+.472625
+-.243983
+.016933
+.153207
+-.269902
+.360073
+-.428275
+.437789
+-.331589
+.078146
+.288812
+-.665342
+.917019
+-.945402
+.741445
+-.389714
+.018984
+.266593
+-.429170
+.488326
+-.478237
+.409779
+-.265513
+.026636
+.291443
+-.621204
+.856962
+-.898674
+.708139
+-.347976
+-.025372
+.224446
+-.126129
+-.250641
+.733583
+-1.068125
+1.040213
+-.588553
+-.154471
+.917776
+-1.416137
+1.479737
+-1.122260
+.516482
+.101479
+-.542356
+.732572
+-.716418
+.603405
+-.495390
+.431503
+-.377760
+.266352
+-.060370
+-.200253
+.408756
+-.456363
+.306485
+-.022740
+-.268587
+.448358
+-.453457
+.280727
+.032678
+-.416658
+.758786
+-.911907
+.750500
+-.260068
+-.406226
+.967612
+-1.153641
+.862208
+-.230314
+-.439503
+.857064
+-.910453
+.709656
+-.483864
+.411424
+-.505878
+.633031
+-.633260
+.449169
+-.163080
+-.075142
+.167299
+-.139808
+.116667
+-.215043
+.444188
+-.687540
+.787267
+-.669294
+.408914
+-.177452
+.105466
+-.174461
+.232705
+-.129618
+-.143212
+.430058
+-.536043
+.398235
+-.155963
+.052481
+-.240274
+.644339
+-.993545
+1.001190
+-.563541
+-.162062
+.846426
+-1.177029
+1.023094
+-.486436
+-.170994
+.663899
+-.807478
+.577713
+-.097864
+-.429286
+.810547
+-.937003
+.813915
+-.534341
+.214623
+.066860
+-.289242
+.462587
+-.587552
+.642270
+-.608016
+.505204
+-.399392
+.364458
+-.430746
+.560456
+-.668388
+.668463
+-.510849
+.191827
+.252860
+-.750434
+1.186540
+-1.415320
+1.306998
+-.825527
+.089259
+.643576
+-1.084935
+1.073836
+-.680358
+.174555
+.136632
+-.101731
+-.189371
+.490248
+-.588640
+.454101
+-.229465
+.084448
+-.065213
+.072885
+.013955
+-.187640
+.274585
+-.059458
+-.520888
+1.270049
+-1.808709
+1.799288
+-1.173744
+.209686
+.606093
+-.851994
+.418064
+.428454
+-1.200804
+1.476551
+-1.133168
+.396107
+.318517
+-.658830
+.531582
+-.127150
+-.222645
+.253299
+.087476
+-.636005
+1.132289
+-1.372566
+1.299881
+-.996973
+.615157
+-.301415
+.159914
+-.240641
+.532121
+-.954027
+1.369126
+-1.630051
+1.644018
+-1.414065
+1.026590
+-.595656
+.208159
+.091770
+-.280304
+.330513
+-.222501
+-.018041
+.297182
+-.485974
+.500456
+-.367319
+.212578
+-.169970
+.277652
+-.448996
+.545998
+-.496969
+.360917
+-.284025
+.382570
+-.645280
+.930800
+-1.059852
+.931894
+-.583701
+.155680
+.200775
+-.405788
+.471874
+-.464086
+.443956
+-.443535
+.478586
+-.569672
+.734748
+-.952158
+1.133597
+-1.150160
+.911472
+-.444653
+-.093040
+.489608
+-.596034
+.407558
+-.057168
+-.266004
+.413689
+-.334739
+.075347
+.255103
+-.526789
+.631785
+-.526643
+.262383
+.026347
+-.189061
+.157248
+-.005484
+-.082757
+-.059907
+.448802
+-.903613
+1.145066
+-.979403
+.446656
+.176719
+-.534252
+.407981
+.145967
+-.836716
+1.326961
+-1.441978
+1.257555
+-1.012310
+.914938
+-.989727
+1.070155
+-.939322
+.509583
+.088923
+-.572113
+.674233
+-.318144
+-.320192
+.890200
+-1.046461
+.634730
+.215000
+-1.141976
+1.732523
+-1.731277
+1.172448
+-.359149
+-.297463
+.490883
+-.169330
+-.454405
+1.033901
+-1.285968
+1.143406
+-.777390
+.478511
+-.470631
+.774999
+-1.210398
+1.523136
+-1.551888
+1.312730
+-.953485
+.626262
+-.383965
+.177322
+.057840
+-.306595
+.459564
+-.393720
+.087521
+.322296
+-.595355
+.528190
+-.092977
+-.519907
+.994034
+-1.068349
+.700193
+-.104211
+-.366484
+.428222
+-.033675
+-.607816
+1.164332
+-1.377105
+1.192927
+-.762270
+.324776
+-.067003
+.035792
+-.142892
+.241809
+-.226406
+.096545
+.045202
+-.066298
+-.094302
+.362973
+-.557065
+.494096
+-.116506
+-.454581
+.978446
+-1.230072
+1.122990
+-.743037
+.281403
+.079614
+-.253435
+.264782
+-.202481
+.152338
+-.154754
+.204696
+-.280714
+.372773
+-.485644
+.617875
+-.738363
+.786128
+-.699468
+.456044
+-.093569
+-.305149
+.653527
+-.900063
+1.038547
+-1.084730
+1.040446
+-.878434
+.566852
+-.120915
+-.361418
+.721264
+-.820928
+.636795
+-.293241
+.002049
+.060319
+.143230
+-.493724
+.793368
+-.880550
+.708305
+-.348476
+-.063168
+.395320
+-.565663
+.553524
+-.392370
+.152801
+.083684
+-.259542
+.369539
+-.457553
+.572119
+-.707352
+.780916
+-.681556
+.361903
+.095335
+-.501306
+.670653
+-.540347
+.206915
+.146902
+-.378210
+.464959
+-.485307
+.523406
+-.586258
+.599345
+-.477212
+.204378
+.140051
+-.427685
+.554659
+-.489122
+.269795
+.026205
+-.313787
+.513797
+-.559207
+.408768
+-.069186
+-.389583
+.843586
+-1.152362
+1.210818
+-.992520
+.564769
+-.067065
+-.340566
+.540717
+-.506319
+.308097
+-.074118
+-.080536
+.114739
+-.075132
+.052777
+-.111681
+.239214
+-.354142
+.366681
+-.246577
+.048976
+.120722
+-.178541
+.119851
+-.024247
+.004075
+-.130595
+.385813
+-.672301
+.876690
+-.945744
+.920688
+-.898960
+.944806
+-1.014379
+.963067
+-.646455
+.049930
+.655092
+-1.188891
+1.337193
+-1.101712
+.712147
+-.479033
+.584345
+-.955660
+1.313373
+-1.357708
+.968053
+-.284355
+-.375444
+.702258
+-.570751
+.103073
+.407016
+-.660844
+.517108
+-.059608
+-.465046
+.798724
+-.817146
+.580151
+-.263407
+.028670
+.073423
+-.106417
+.169064
+-.304285
+.465502
+-.559455
+.525680
+-.389950
+.253544
+-.228195
+.361427
+-.599882
+.811784
+-.855797
+.659846
+-.268507
+-.168820
+.467734
+-.502853
+.273729
+.096425
+-.428103
+.575233
+-.483110
+.189628
+.211713
+-.608642
+.887953
+-.949124
+.738173
+-.296534
+-.217285
+.577233
+-.603971
+.274591
+.256130
+-.749507
+1.028843
+-1.069345
+.968766
+-.834096
+.688342
+-.477566
+.163260
+.195143
+-.452319
+.478932
+-.263411
+-.075528
+.372225
+-.516438
+.492439
+-.343141
+.117979
+.137616
+-.356068
+.440498
+-.314591
+-.000161
+.353770
+-.530428
+.374299
+.108151
+-.742772
+1.285005
+-1.554556
+1.521571
+-1.295532
+1.034184
+-.839643
+.709819
+-.570533
+.355430
+-.071837
+-.193030
+.324749
+-.252372
+-.008776
+.362976
+-.677315
+.834406
+-.772311
+.501610
+-.099429
+-.316496
+.626784
+-.750384
+.668743
+-.424213
+.095814
+.231086
+-.485003
+.614880
+-.592157
+.417936
+-.131885
+-.190961
+.464715
+-.629657
+.677604
+-.645614
+.580384
+-.498767
+.374642
+-.163782
+-.149907
+.521138
+-.851073
+1.036485
+-1.029436
+.865862
+-.640929
+.447711
+-.324317
+.248245
+-.179128
+.111970
+-.094221
+.189414
+-.412667
+.687520
+-.862345
+.786981
+-.408151
+-.176881
+.752583
+-1.096893
+1.107864
+-.859898
+.544287
+-.331896
+.259823
+-.230413
+.123425
+.074653
+-.239483
+.212240
+.045500
+-.382141
+.545789
+-.371951
+-.083558
+.582315
+-.885083
+.925847
+-.831595
+.776698
+-.807507
+.798760
+-.582855
+.136991
+.342247
+-.551679
+.299582
+.340292
+-1.055605
+1.481001
+-1.409800
+.895029
+-.195254
+-.375605
+.593694
+-.399422
+-.104647
+.703638
+-1.144861
+1.228469
+-.895431
+.270494
+.383175
+-.793311
+.821936
+-.529519
+.116236
+.214272
+-.368976
+.383098
+-.349156
+.330766
+-.330796
+.322689
+-.296198
+.266028
+-.240166
+.190766
+-.069934
+-.135841
+.364365
+-.499175
+.450349
+-.233146
+-.025609
+.171494
+-.140223
+.018145
+.009826
+.203374
+-.641331
+1.103864
+-1.315546
+1.095686
+-.479376
+-.288018
+.876136
+-1.036553
+.717604
+-.075295
+-.611699
+1.073472
+-1.167274
+.932177
+-.553399
+.247955
+-.131032
+.147683
+-.124762
+-.084106
+.465296
+-.832069
+.952588
+-.726236
+.269648
+.158173
+-.334817
+.219018
+.045865
+-.260536
+.319882
+-.268591
+.232336
+-.294859
+.424919
+-.505139
+.429268
+-.187850
+-.118416
+.337437
+-.348649
+.119088
+.287999
+-.740474
+1.081141
+-1.177756
+.974923
+-.532514
+.021869
+.340018
+-.399815
+.158819
+.221375
+-.514784
+.568870
+-.385938
+.088779
+.196275
+-.436874
+.687988
+-.989361
+1.266175
+-1.336445
+1.038595
+-.385035
+-.386677
+.920720
+-.943846
+.426127
+.402083
+-1.178936
+1.595657
+-1.528530
+1.060785
+-.409344
+-.187087
+.563321
+-.674680
+.587847
+-.425724
+.293779
+-.227282
+.190693
+-.128591
+.028903
+.053029
+-.032505
+-.130500
+.378585
+-.569246
+.549551
+-.246822
+-.280219
+.859391
+-1.281134
+1.393235
+-1.168892
+.716120
+-.224131
+-.126866
+.245174
+-.153990
+-.044121
+.233564
+-.336400
+.323288
+-.198275
+-.014425
+.271713
+-.516062
+.697236
+-.797225
+.827795
+-.793803
+.659366
+-.367277
+-.085112
+.579803
+-.903562
+.878144
+-.505797
+.002666
+.330319
+-.313557
+.011803
+.326284
+-.462631
+.338829
+-.087327
+-.108892
+.175615
+-.189504
+.280311
+-.493443
+.737279
+-.854262
+.747660
+-.459096
+.145554
+.014674
+.082138
+-.417310
+.859719
+-1.219000
+1.322854
+-1.095242
+.601754
+-.029560
+-.399711
+.539441
+-.382671
+.042308
+.331443
+-.631585
+.817870
+-.884168
+.818934
+-.607253
+.273380
+.086330
+-.330170
+.353797
+-.167470
+-.099941
+.282800
+-.288931
+.157317
+-.024057
+.025302
+-.205302
+.483912
+-.695230
+.672969
+-.343395
+-.214747
+.778791
+-1.074966
+.926270
+-.376424
+-.300321
+.738289
+-.701540
+.246465
+.296299
+-.527921
+.248508
+.397031
+-1.002838
+1.167277
+-.760818
+.011004
+.655831
+-.904927
+.709903
+-.344033
+.158515
+-.316758
+.684205
+-.951902
+.890251
+-.529316
+.124047
+.061335
+.029722
+-.204554
+.183798
+.168878
+-.735153
+1.229622
+-1.407118
+1.225149
+-.847374
+.506552
+-.345740
+.353364
+-.417590
+.432058
+-.361161
+.226430
+-.051291
+-.168904
+.441378
+-.727982
+.934136
+-.958948
+.769485
+-.436484
+.101511
+.097075
+-.085618
+-.125963
+.458506
+-.788200
+.976399
+-.915159
+.583510
+-.080164
+-.406312
+.688211
+-.676057
+.415155
+-.036685
+-.334087
+.639796
+-.881420
+1.059050
+-1.125908
+1.003577
+-.650335
+.126303
+.403871
+-.745162
+.780582
+-.543918
+.206420
+.019152
+-.000856
+-.237783
+.536422
+-.698857
+.613890
+-.323265
+-.002317
+.161035
+-.032469
+-.356369
+.842170
+-1.202276
+1.258098
+-.957443
+.399010
+.214468
+-.673160
+.858876
+-.792128
+.602448
+-.443169
+.404310
+-.474827
+.569809
+-.597465
+.520071
+-.371715
+.225093
+-.133391
+.089703
+-.036158
+-.080964
+.251544
+-.387580
+.373658
+-.149600
+-.235730
+.641206
+-.912068
+.967773
+-.842832
+.658532
+-.547143
+.574533
+-.704628
+.823414
+-.808339
+.603909
+-.259250
+-.096052
+.323819
+-.352178
+.208193
+.006075
+-.170167
+.194642
+-.042206
+-.270576
+.671947
+-1.034163
+1.196810
+-1.032261
+.531611
+.149240
+-.736742
+.973970
+-.766124
+.241472
+.317220
+-.628968
+.559741
+-.172079
+-.335213
+.742444
+-.905744
+.794644
+-.479110
+.094428
+.200792
+-.276051
+.086722
+.289680
+-.674516
+.872276
+-.774770
+.419662
+.033834
+-.392313
+.522008
+-.400658
+.114562
+.184578
+-.343338
+.273549
+.000932
+-.347329
+.589924
+-.610653
+.421268
+-.154132
+-.025507
+.023521
+.136590
+-.352071
+.525501
+-.626793
+.689230
+-.754163
+.818049
+-.827196
+.720740
+-.481408
+.151669
+.192658
+-.482514
+.676140
+-.754002
+.710997
+-.563848
+.363805
+-.186958
+.093805
+-.087681
+.113673
+-.106884
+.051843
+.000318
+.026826
+-.168959
+.383193
+-.564185
+.598663
+-.422443
+.054372
+.400322
+-.777151
+.908673
+-.699197
+.186988
+.447991
+-.952495
+1.120370
+-.899184
+.417155
+.089845
+-.407916
+.452748
+-.292867
+.082149
+.047656
+-.064533
+.039198
+-.081159
+.256841
+-.544099
+.846388
+-1.047656
+1.066924
+-.882275
+.524467
+-.060925
+-.413600
+.785544
+-.946800
+.839088
+-.494734
+.037771
+.370672
+-.616295
+.689248
+-.672260
+.666126
+-.708052
+.745305
+-.683424
+.470494
+-.152275
+-.142037
+.272201
+-.168742
+-.124829
+.469904
+-.698255
+.692014
+-.439884
+.041367
+.344494
+-.578968
+.607318
+-.472020
+.275082
+-.118964
+.061349
+-.099724
+.180904
+-.224588
+.155452
+.059930
+-.383053
+.699734
+-.856169
+.726856
+-.284391
+-.365632
+1.008910
+-1.403008
+1.383477
+-.948260
+.276167
+.338867
+-.616686
+.426484
+.139655
+-.800342
+1.218061
+-1.167983
+.652684
+.101197
+-.762002
+1.058710
+-.901476
+.399577
+.215874
+-.709244
+.935504
+-.878976
+.634309
+-.348268
+.148056
+-.085228
+.121135
+-.164349
+.140041
+-.046812
+-.041020
+.032575
+.098027
+-.268052
+.319950
+-.120263
+-.337353
+.896281
+-1.303097
+1.345723
+-.981895
+.374070
+.197471
+-.492725
+.442004
+-.167823
+-.107731
+.202782
+-.073455
+-.180057
+.387357
+-.409001
+.210227
+.124659
+-.440546
+.598034
+-.552776
+.379464
+-.220574
+.190016
+-.296276
+.439434
+-.483375
+.351382
+-.080726
+-.195389
+.322725
+-.213315
+-.098209
+.455970
+-.647793
+.514041
+-.051092
+-.556194
+1.014498
+-1.088718
+.756771
+-.239566
+-.133913
+.147244
+.151611
+-.484985
+.552278
+-.261127
+-.191513
+.458590
+-.307742
+-.182820
+.649671
+-.684933
+.127942
+.798944
+-1.610109
+1.854412
+-1.392552
+.474923
+.420431
+-.873817
+.750112
+-.236267
+-.309352
+.582738
+-.493476
+.175791
+.130005
+-.234420
+.096430
+.183642
+-.451276
+.598830
+-.617780
+.579654
+-.567943
+.609461
+-.649519
+.587590
+-.353028
+-.025844
+.407522
+-.596696
+.451589
+.021495
+-.646869
+1.153462
+-1.309415
+1.043200
+-.480675
+-.125584
+.534246
+-.638235
+.498904
+-.275144
+.102815
+-.013190
+-.052035
+.150653
+-.258984
+.277500
+-.125523
+-.155736
+.389091
+-.365799
+-.001541
+.594088
+-1.140929
+1.379313
+-1.210002
+.743159
+-.212112
+-.174749
+.339687
+-.337231
+.270889
+-.200814
+.112138
+.042737
+-.274335
+.521698
+-.682015
+.677338
+-.503294
+.222956
+.082632
+-.362681
+.605667
+-.810214
+.953070
+-.988824
+.884743
+-.661676
+.405168
+-.232921
+.236071
+-.428559
+.733797
+-1.016566
+1.144956
+-1.051146
+.760669
+-.375858
+.024310
+.198668
+-.263757
+.205777
+-.094828
+-.000544
+.042600
+-.037788
+.029651
+-.070884
+.185154
+-.341744
+.466479
+-.489008
+.395344
+-.243550
+.124681
+-.095503
+.135652
+-.164929
+.109561
+.033087
+-.181613
+.220798
+-.080543
+-.210637
+.533498
+-.741958
+.743853
+-.551229
+.272307
+-.051539
+-.006970
+-.110384
+.329062
+-.534404
+.630944
+-.576697
+.379363
+-.073170
+-.295521
+.663831
+-.946516
+1.053387
+-.932517
+.611521
+-.201718
+-.146268
+.311119
+-.252768
+.020098
+.282470
+-.543790
+.683579
+-.667270
+.503628
+-.235956
+-.068499
+.334251
+-.502066
+.556278
+-.538332
+.532529
+-.625439
+.857922
+-1.194813
+1.528301
+-1.717248
+1.651764
+-1.320401
+.844069
+-.441235
+.319587
+-.545330
+.979570
+-1.345989
+1.404075
+-1.112529
+.659763
+-.330737
+.305027
+-.535641
+.795967
+-.853100
+.632503
+-.254333
+-.074474
+.219826
+-.209088
+.188985
+-.294602
+.532467
+-.762300
+.786123
+-.481957
+-.103225
+.755239
+-1.189311
+1.194333
+-.754228
+.078655
+.488889
+-.652466
+.338343
+.249192
+-.740453
+.822398
+-.429715
+-.220514
+.771214
+-.945300
+.697439
+-.208789
+-.251153
+.488782
+-.469528
+.285363
+-.056587
+-.146793
+.310022
+-.420797
+.424046
+-.241087
+-.152052
+.655569
+-1.061768
+1.168472
+-.917081
+.446936
+-.012770
+-.182802
+.118831
+.049685
+-.125840
+.026932
+.156927
+-.241865
+.099622
+.238790
+-.599772
+.784680
+-.698813
+.403374
+-.064970
+-.152420
+.178065
+-.055674
+-.105253
+.207177
+-.220105
+.184488
+-.167316
+.206427
+-.283259
+.341863
+-.336090
+.265894
+-.173837
+.108538
+-.089789
+.106635
+-.146784
+.224931
+-.377128
+.620122
+-.909427
+1.137073
+-1.182361
+.987388
+-.606853
+.193586
+.078781
+-.113429
+-.049872
+.252553
+-.306932
+.107573
+.302923
+-.757558
+1.065962
+-1.128224
+.984452
+-.766451
+.588628
+-.461883
+.297202
+.005541
+-.455782
+.939298
+-1.280287
+1.351517
+-1.152669
+.806667
+-.483384
+.304905
+-.288845
+.356014
+-.390644
+.315176
+-.135312
+-.070872
+.212482
+-.252194
+.231008
+-.232019
+.311054
+-.449821
+.569410
+-.593215
+.506906
+-.364920
+.238191
+-.148172
+.047353
+.130710
+-.389908
+.632286
+-.708189
+.531593
+-.172382
+-.158641
+.240046
+.000172
+-.414744
+.717855
+-.667989
+.227772
+.407537
+-.927579
+1.085880
+-.824693
+.279790
+.315322
+-.749317
+.906152
+-.770520
+.394271
+.133321
+-.693314
+1.138932
+-1.320389
+1.140834
+-.615491
+-.109888
+.805984
+-1.253481
+1.333047
+-1.066081
+.592851
+-.107634
+-.217928
+.296871
+-.156512
+-.076797
+.237547
+-.203024
+-.044099
+.408470
+-.735124
+.890695
+-.826895
+.593838
+-.302079
+.057554
+.095186
+-.190989
+.311358
+-.518292
+.795934
+-1.043903
+1.134966
+-1.004165
+.706359
+-.394939
+.227360
+-.258681
+.398429
+-.466178
+.312910
+.072420
+-.543733
+.880433
+-.918825
+.649343
+-.220659
+-.148329
+.293623
+-.194109
+-.026875
+.185566
+-.156486
+-.046837
+.281596
+-.372505
+.232973
+.072492
+-.370925
+.499747
+-.416518
+.218860
+-.062396
+.041315
+-.123934
+.190525
+-.139473
+-.024127
+.187032
+-.212670
+.045387
+.244809
+-.507478
+.610394
+-.519484
+.306583
+-.086119
+-.070499
+.181329
+-.330003
+.589954
+-.952194
+1.311156
+-1.522093
+1.492347
+-1.242280
+.893115
+-.591325
+.421489
+-.363492
+.315569
+-.163958
+-.142066
+.549411
+-.917579
+1.090092
+-.987763
+.667330
+-.298095
+.060379
+-.032494
+.151002
+-.275602
+.302926
+-.232256
+.132060
+-.050025
+-.038789
+.192226
+-.410062
+.588395
+-.578578
+.313665
+.102495
+-.427575
+.427140
+-.039275
+-.557211
+1.024688
+-1.057554
+.570182
+.232381
+-.950388
+1.204273
+-.847145
+.049354
+.798050
+-1.305430
+1.298629
+-.897210
+.415328
+-.156444
+.236816
+-.545927
+.854781
+-.982208
+.898692
+-.704395
+.519499
+-.387073
+.266162
+-.105773
+-.079767
+.206847
+-.189394
+.007679
+.285775
+-.620295
+.956707
+-1.277691
+1.533868
+-1.618520
+1.423698
+-.947196
+.352989
+.090980
+-.174353
+-.109133
+.545453
+-.833679
+.775941
+-.392516
+-.108894
+.473608
+-.547128
+.338405
+.020892
+-.372869
+.615017
+-.723625
+.724618
+-.650657
+.521215
+-.352169
+.171567
+-.015585
+-.094137
+.164579
+-.214147
+.237127
+-.191788
+.038736
+.195157
+-.391207
+.395422
+-.131409
+-.315813
+.722335
+-.855839
+.629564
+-.169261
+-.260545
+.425074
+-.267170
+-.067339
+.341004
+-.388877
+.217408
+.025635
+-.174549
+.160955
+-.038157
+-.088121
+.152209
+-.166521
+.184760
+-.234779
+.285344
+-.273168
+.161896
+.019492
+-.190249
+.270710
+-.233442
+.117370
+.001131
+-.058561
+.043687
+-.002953
+.009454
+-.113991
+.308568
+-.527370
+.686849
+-.739204
+.701474
+-.638917
+.615330
+-.648455
+.702932
+-.721989
+.668248
+-.543268
+.380305
+-.229320
+.150262
+-.204917
+.426371
+-.769882
+1.091176
+-1.202563
+.999700
+-.570641
+.179324
+-.098957
+.401976
+-.874681
+1.146202
+-.952269
+.336206
+.371146
+-.779735
+.700619
+-.243773
+-.304029
+.703262
+-.902411
+.999143
+-1.085132
+1.130420
+-1.012468
+.656335
+-.148363
+-.290633
+.461263
+-.341901
+.111295
+-.013437
+.170286
+-.490409
+.742187
+-.730826
+.442570
+-.052786
+-.198742
+.168613
+.105745
+-.446972
+.665402
+-.682226
+.567305
+-.473087
+.515222
+-.686664
+.866914
+-.920211
+.808431
+-.630232
+.550150
+-.666343
+.917111
+-1.103334
+1.020372
+-.610334
+.025831
+.445783
+-.552954
+.234252
+.344477
+-.893521
+1.173133
+-1.124429
+.879036
+-.654594
+.616325
+-.793952
+1.090083
+-1.349801
+1.433886
+-1.261084
+.824150
+-.197576
+-.465102
+.967934
+-1.152202
+.983883
+-.584166
+.164290
+.101279
+-.171675
+.131421
+-.086389
+.054994
+.048333
+-.320061
+.744283
+-1.149117
+1.291059
+-1.014525
+.373715
+.371754
+-.890120
+.957815
+-.577853
+-.030743
+.558769
+-.768645
+.600010
+-.171000
+-.307254
+.642142
+-.737583
+.612394
+-.367048
+.123666
+.034262
+-.098517
+.131100
+-.215531
+.388990
+-.598714
+.717205
+-.614233
+.242286
+.319214
+-.889879
+1.269528
+-1.329381
+1.068161
+-.611050
+.155728
+.111395
+-.094809
+-.167689
+.521555
+-.765635
+.744217
+-.417284
+-.121379
+.682468
+-1.057038
+1.100192
+-.791794
+.248186
+.325750
+-.727449
+.846310
+-.703048
+.418294
+-.135053
+-.052509
+.122940
+-.102316
+.022201
+.102754
+-.265560
+.442623
+-.582252
+.621103
+-.520512
+.296959
+-.022452
+-.209849
+.335344
+-.351487
+.314004
+-.299290
+.357179
+-.482565
+.619729
+-.694664
+.656305
+-.504766
+.290549
+-.084811
+-.061910
+.145213
+-.198436
+.256368
+-.318460
+.339443
+-.255364
+.027671
+.322019
+-.705814
+.995548
+-1.071020
+.873966
+-.446960
+-.065622
+.468762
+-.609577
+.468327
+-.187721
+.003416
+-.100213
+.479483
+-.933811
+1.163101
+-.966793
+.384746
+.312615
+-.782504
+.811442
+-.430508
+-.120712
+.543599
+-.641549
+.400909
+.034926
+-.460205
+.706300
+-.700067
+.471501
+-.126638
+-.194450
+.363802
+-.310374
+.052471
+.300881
+-.592297
+.690938
+-.562340
+.288992
+-.023015
+-.105202
+.067200
+.046989
+-.090975
+-.032219
+.288629
+-.515630
+.517859
+-.202291
+-.337964
+.855657
+-1.086062
+.902826
+-.391198
+-.207251
+.637916
+-.770785
+.651671
+-.448456
+.337654
+-.402918
+.599316
+-.792930
+.845601
+-.694947
+.389672
+-.064918
+-.127954
+.102109
+.114028
+-.386251
+.546079
+-.489491
+.244120
+.043056
+-.195752
+.118070
+.152542
+-.485292
+.753293
+-.908197
+.975394
+-.985483
+.916399
+-.710892
+.359752
+.029982
+-.263645
+.185820
+.186512
+-.639624
+.885861
+-.755114
+.317196
+.156503
+-.365316
+.166187
+.346992
+-.910933
+1.247135
+-1.199689
+.784379
+-.147009
+-.518998
+1.042556
+-1.312750
+1.296435
+-1.049301
+.711578
+-.465639
+.451937
+-.681821
+1.011079
+-1.211713
+1.111333
+-.709697
+.184178
+.229551
+-.401812
+.397189
+-.416813
+.634294
+-1.048487
+1.465941
+-1.626788
+1.379227
+-.775068
+.027306
+.623028
+-1.027472
+1.164559
+-1.093865
+.889223
+-.603563
+.272937
+.066670
+-.373816
+.609932
+-.750583
+.792066
+-.752819
+.668734
+-.578157
+.497974
+-.406470
+.254917
+-.012353
+-.285172
+.526303
+-.580935
+.391619
+-.031745
+-.322919
+.498075
+-.425471
+.169713
+.138530
+-.403484
+.616248
+-.823068
+1.048487
+-1.247106
+1.326550
+-1.219736
+.943101
+-.591289
+.272454
+-.036655
+-.144347
+.328206
+-.523418
+.650434
+-.586011
+.268423
+.217204
+-.652353
+.807159
+-.593402
+.135348
+.301960
+-.482451
+.345946
+-.028162
+-.253073
+.350649
+-.263746
+.094376
+.054391
+-.138753
+.150681
+-.062197
+-.176958
+.565839
+-.977206
+1.182364
+-.994314
+.427840
+.265323
+-.737708
+.769641
+-.407141
+-.087357
+.425474
+-.474824
+.304649
+-.085152
+-.059999
+.131291
+-.217753
+.396334
+-.653325
+.883709
+-.959926
+.816356
+-.493348
+.117323
+.167098
+-.271207
+.201494
+-.044818
+-.088924
+.131124
+-.087987
+.024931
+-.013576
+.076798
+-.168663
+.204784
+-.125838
+-.047706
+.210795
+-.231177
+.039900
+.302831
+-.616155
+.688613
+-.403108
+-.178138
+.825900
+-1.255278
+1.277506
+-.905362
+.347201
+.111990
+-.275011
+.142318
+.103649
+-.229768
+.110558
+.195000
+-.497103
+.610844
+-.469168
+.136893
+.262449
+-.628754
+.909275
+-1.068626
+1.065053
+-.877852
+.563115
+-.267913
+.161427
+-.319918
+.656314
+-.959356
+1.023183
+-.778311
+.337097
+.070162
+-.222522
+.024015
+.448125
+-.979597
+1.320705
+-1.308375
+.951148
+-.430088
+.007330
+.111944
+.112663
+-.540818
+.932100
+-1.071446
+.868661
+-.387431
+-.196224
+.674498
+-.889533
+.787771
+-.432189
+-.028534
+.420031
+-.605539
+.527716
+-.220137
+-.205068
+.585725
+-.757269
+.622232
+-.220384
+-.251753
+.516512
+-.371185
+-.165700
+.828991
+-1.243911
+1.149695
+-.560280
+-.249214
+.917347
+-1.205099
+1.097087
+-.746631
+.335568
+.030140
+-.322394
+.524983
+-.590464
+.475003
+-.216456
+-.034426
+.087121
+.148701
+-.564838
+.889578
+-.851672
+.368645
+.371456
+-.999271
+1.176215
+-.798259
+.063091
+.641904
+-.960775
+.763313
+-.199734
+-.404271
+.736405
+-.657307
+.251459
+.239698
+-.552925
+.534452
+-.205620
+-.265543
+.668212
+-.866992
+.861591
+-.752601
+.644577
+-.563425
+.449923
+-.226667
+-.122773
+.526008
+-.860020
+1.017747
+-.955699
+.704070
+-.352384
+.026698
+.143034
+-.073380
+-.216556
+.584047
+-.815209
+.743815
+-.367963
+-.124145
+.456900
+-.442260
+.106130
+.328033
+-.590756
+.545128
+-.267933
+-.014531
+.079443
+.158477
+-.609518
+1.072730
+-1.348981
+1.337691
+-1.074101
+.698965
+-.382597
+.243869
+-.301629
+.476038
+-.631156
+.636002
+-.422401
+.022956
+.428120
+-.745660
+.787717
+-.548102
+.180533
+.083532
+-.086606
+-.136033
+.367769
+-.362029
+.032095
+.464023
+-.817459
+.780045
+-.339669
+-.269679
+.727458
+-.835393
+.626995
+-.311513
+.109113
+-.103191
+.208937
+-.265433
+.172809
+.027613
+-.185391
+.158315
+.072639
+-.376374
+.554558
+-.475385
+.162154
+.224691
+-.493405
+.534863
+-.368645
+.104528
+.135384
+-.274333
+.292910
+-.214141
+.091178
+-.002930
+.035276
+-.232902
+.545798
+-.823426
+.889318
+-.662454
+.237570
+.150772
+-.271449
+.050627
+.376800
+-.756377
+.876911
+-.690056
+.312988
+.067351
+-.305015
+.347561
+-.219417
+-.021880
+.310043
+-.568593
+.710690
+-.665220
+.419918
+-.043779
+-.340057
+.621380
+-.765489
+.826085
+-.897917
+1.039722
+-1.218729
+1.315197
+-1.190992
+.786891
+-.190291
+-.377610
+.663956
+-.526857
+.032313
+.564295
+-.953380
+.946806
+-.585090
+.107431
+.197046
+-.161519
+-.170900
+.595361
+-.889938
+.956066
+-.860449
+.756246
+-.747916
+.804399
+-.786713
+.567896
+-.150613
+-.311206
+.606680
+-.608609
+.357740
+-.032329
+-.171169
+.161433
+-.000367
+-.147696
+.126439
+.112099
+-.476216
+.790113
+-.903997
+.791648
+-.569383
+.416604
+-.445452
+.610233
+-.727374
+.599584
+-.159972
+-.465877
+1.025460
+-1.288460
+1.180477
+-.818774
+.434695
+-.237773
+.305272
+-.557494
+.823515
+-.949759
+.884049
+-.690241
+.494645
+-.406020
+.458959
+-.608534
+.769807
+-.872657
+.898593
+-.880427
+.867638
+-.881942
+.895923
+-.854181
+.725378
+-.546216
+.417552
+-.444424
+.654034
+-.949017
+1.137588
+-1.036151
+.591134
+.056147
+-.615720
+.799225
+-.497726
+-.124156
+.695668
+-.850715
+.461806
+.258009
+-.869340
+.978187
+-.491187
+-.318988
+.983438
+-1.125812
+.675291
+.125468
+-.896421
+1.340207
+-1.364363
+1.061479
+-.607852
+.172653
+.117613
+-.179905
+-.017370
+.428904
+-.920795
+1.307824
+-1.437069
+1.269134
+-.899121
+.498477
+-.215794
+.104241
+-.120710
+.186182
+-.252341
+.322698
+-.420568
+.540788
+-.631481
+.620382
+-.463049
+.177302
+.156174
+-.422884
+.518947
+-.395395
+.086451
+.295528
+-.606040
+.737088
+-.668445
+.466756
+-.235208
+.052605
+.053912
+-.092113
+.071566
+.009109
+-.144212
+.296383
+-.398200
+.389604
+-.264690
+.087989
+.039583
+-.044894
+-.070408
+.236449
+-.370878
+.440594
+-.480601
+.555539
+-.694288
+.848683
+-.910208
+.775911
+-.422267
+-.060693
+.498263
+-.710881
+.604174
+-.222134
+-.266578
+.644377
+-.745245
+.529099
+-.093273
+-.380505
+.712040
+-.796623
+.634908
+-.314147
+-.040505
+.317000
+-.448686
+.421748
+-.264359
+.029719
+.219228
+-.423066
+.539775
+-.558254
+.502579
+-.420213
+.358002
+-.340927
+.366213
+-.411960
+.448972
+-.449061
+.393967
+-.289569
+.176338
+-.116961
+.155277
+-.272249
+.380630
+-.376654
+.217293
+.038719
+-.265173
+.356840
+-.303093
+.188618
+-.121853
+.149514
+-.223216
+.239274
+-.115587
+-.152548
+.491816
+-.794688
+.970679
+-.975287
+.811579
+-.519394
+.165417
+.164644
+-.380090
+.411910
+-.246316
+-.051500
+.344480
+-.472130
+.327935
+.072966
+-.581680
+.980586
+-1.097695
+.903058
+-.523755
+.165840
+.005701
+.049705
+-.250468
+.467597
+-.610495
+.663303
+-.654708
+.598126
+-.460521
+.192556
+.202633
+-.623860
+.900865
+-.891643
+.582899
+-.116919
+-.280189
+.421560
+-.250888
+-.151750
+.636977
+-1.066453
+1.352605
+-1.451181
+1.341411
+-1.029922
+.577958
+-.115377
+-.195112
+.238891
+-.024719
+-.305498
+.550776
+-.564706
+.333705
+.029336
+-.363227
+.549309
+-.558108
+.437232
+-.266854
+.118946
+-.036568
+.028939
+-.073626
+.125651
+-.136527
+.078289
+.042070
+-.188534
+.317390
+-.396191
+.405931
+-.330296
+.151700
+.130268
+-.466682
+.745013
+-.823572
+.610779
+-.142054
+-.407755
+.802435
+-.873158
+.614367
+-.181094
+-.209563
+.402944
+-.376672
+.222605
+-.071433
+.019073
+-.092693
+.254841
+-.423653
+.498415
+-.396966
+.106616
+.276668
+-.564137
+.564769
+-.211675
+-.361555
+.867594
+-1.028214
+.755838
+-.225747
+-.224999
+.316362
+-.016815
+-.427754
+.655366
+-.435423
+-.165346
+.813519
+-1.118647
+.883855
+-.232395
+-.470816
+.848861
+-.743937
+.303436
+.129721
+-.247610
+-.022005
+.475352
+-.778209
+.698598
+-.268052
+-.239363
+.493876
+-.330251
+-.152053
+.671339
+-.958462
+.919782
+-.659780
+.366398
+-.160149
+.022291
+.154527
+-.445702
+.805087
+-1.078053
+1.108168
+-.857338
+.448948
+-.099430
+-.015219
+-.136110
+.435855
+-.710439
+.845180
+-.836737
+.754530
+-.657324
+.541340
+-.360416
+.091011
+.221748
+-.477885
+.580452
+-.486332
+.214584
+.177113
+-.611798
+.989402
+-1.181201
+1.059640
+-.570670
+-.194814
+.994830
+-1.525300
+1.566919
+-1.104618
+.344208
+.388421
+-.810589
+.819373
+-.529868
+.198475
+-.074316
+.259923
+-.657575
+1.033102
+-1.160908
+.963243
+-.555297
+.165902
+.014201
+.046765
+-.214596
+.299045
+-.198994
+-.024986
+.204939
+-.204969
+.036357
+.144820
+-.160300
+-.042203
+.335702
+-.504525
+.413501
+-.124155
+-.137847
+.146611
+.147870
+-.563049
+.794030
+-.618179
+.054256
+.634855
+-1.101161
+1.129139
+-.768872
+.296783
+-.029689
+.115695
+-.441068
+.715104
+-.674584
+.267702
+.307283
+-.731210
+.767372
+-.399556
+-.178569
+.696232
+-.956650
+.911758
+-.637484
+.256468
+.128743
+-.460271
+.714138
+-.877361
+.932344
+-.857764
+.646189
+-.327425
+-.023029
+.306240
+-.446218
+.431465
+-.321208
+.211640
+-.185825
+.277775
+-.464929
+.682140
+-.844692
+.874732
+-.729345
+.422446
+-.025772
+-.358741
+.643343
+-.787866
+.799949
+-.705501
+.517552
+-.233719
+-.132448
+.515216
+-.796444
+.858754
+-.664382
+.301385
+.046826
+-.198504
+.075886
+.256230
+-.638223
+.911180
+-.993727
+.897962
+-.692780
+.454957
+-.242145
+.091554
+-.025237
+.045423
+-.121152
+.182967
+-.141096
+-.071478
+.448438
+-.881521
+1.182492
+-1.163426
+.747618
+-.050776
+-.629657
+.938114
+-.648359
+-.187488
+1.226332
+-1.985940
+2.091645
+-1.482908
+.456515
+.488624
+-.922506
+.713697
+-.079620
+-.570092
+.890719
+-.788999
+.424079
+-.047583
+-.178932
+.250722
+-.244453
+.197810
+-.067337
+-.200222
+.564751
+-.872186
+.951845
+-.751376
+.388573
+-.070557
+-.053349
+-.015563
+.154463
+-.231303
+.199675
+-.105486
+.018927
+.036778
+-.099040
+.219596
+-.402691
+.577657
+-.625737
+.446596
+-.028626
+-.517722
+.991235
+-1.191508
+1.026789
+-.572751
+.038393
+.346333
+-.453526
+.313197
+-.070283
+-.122670
+.201884
+-.215597
+.266965
+-.425423
+.672361
+-.914980
+1.048547
+-1.014584
+.816049
+-.493080
+.093888
+.330907
+-.715262
+.974789
+-1.034306
+.873522
+-.555232
+.206517
+.043181
+-.129838
+.083470
+.001702
+-.032993
+-.026976
+.155208
+-.305546
+.446754
+-.564498
+.633317
+-.602842
+.431342
+-.146768
+-.128366
+.234413
+-.088229
+-.234490
+.524849
+-.569073
+.290681
+.197075
+-.663810
+.903806
+-.848450
+.582375
+-.269852
+.052055
+.020050
+.012447
+-.067044
+.085520
+-.076139
+.108030
+-.258410
+.541816
+-.868240
+1.068689
+-.987227
+.588523
+-.006257
+-.514021
+.754839
+-.662651
+.384287
+-.170047
+.202908
+-.470756
+.773217
+-.861656
+.616373
+-.139020
+-.300536
+.424282
+-.108853
+-.544201
+1.260673
+-1.728168
+1.738177
+-1.270696
+.489312
+.342998
+-.982926
+1.301293
+-1.309836
+1.118376
+-.861218
+.639594
+-.501357
+.447473
+-.445556
+.446033
+-.406238
+.318302
+-.218013
+.157145
+-.153097
+.160081
+-.095824
+-.088303
+.349573
+-.561413
+.588514
+-.376538
+-.008527
+.417263
+-.699835
+.777601
+-.665682
+.449482
+-.243058
+.150624
+-.231909
+.468658
+-.748229
+.895673
+-.764195
+.341851
+.205778
+-.611264
+.669395
+-.379900
+-.040650
+.296992
+-.208821
+-.177752
+.636256
+-.921352
+.925659
+-.726775
+.506313
+-.409710
+.444880
+-.482249
+.350157
+.037467
+-.602460
+1.125413
+-1.362843
+1.189738
+-.677770
+.055956
+.422437
+-.619115
+.565094
+-.401073
+.256295
+-.159066
+.040675
+.179566
+-.501962
+.820955
+-.985915
+.901765
+-.597730
+.219576
+.045529
+-.064491
+-.175624
+.558355
+-.888549
+.985900
+-.785085
+.390465
+-.039421
+-.027380
+-.276863
+.803722
+-1.234802
+1.268678
+-.813897
+.057802
+.638941
+-.955318
+.792525
+-.313536
+-.175368
+.416696
+-.345594
+.104752
+.065443
+.015782
+-.362505
+.824600
+-1.187607
+1.298966
+-1.138596
+.796211
+-.386293
+-.027231
+.440981
+-.860646
+1.243616
+-1.491924
+1.504389
+-1.245839
+.779530
+-.241695
+-.218036
+.490570
+-.531972
+.363713
+-.063842
+-.247321
+.436934
+-.410816
+.167113
+.185487
+-.473063
+.550645
+-.388370
+.087820
+.187714
+-.321834
+.314478
+-.263322
+.276175
+-.384904
+.526571
+-.601152
+.555172
+-.423000
+.295963
+-.248231
+.281239
+-.329586
+.319837
+-.232945
+.122029
+-.075279
+.154880
+-.354571
+.600004
+-.787255
+.837342
+-.741225
+.573389
+-.460521
+.509389
+-.727306
+.987230
+-1.077228
+.823435
+-.217445
+-.540943
+1.131410
+-1.290379
+.966909
+-.349701
+-.256944
+.621157
+-.699957
+.606078
+-.469966
+.326266
+-.124675
+-.155524
+.410697
+-.448531
+.143175
+.421513
+-.957023
+1.142572
+-.841509
+.197819
+.459970
+-.834189
+.836129
+-.607712
+.386904
+-.323926
+.379366
+-.368699
+.114667
+.403442
+-1.009756
+1.430321
+-1.461690
+1.091522
+-.491280
+-.102373
+.520438
+-.713697
+.707671
+-.527659
+.175523
+.323402
+-.861576
+1.255469
+-1.335918
+1.063032
+-.575180
+.125590
+.058953
+.091959
+-.453916
+.779914
+-.835211
+.516006
+.107658
+-.835074
+1.429230
+-1.710366
+1.611197
+-1.185070
+.578119
+.020166
+-.438811
+.587969
+-.498096
+.307125
+-.187259
+.243906
+-.449350
+.659807
+-.709858
+.521752
+-.154939
+-.234669
+.492350
+-.549375
+.441637
+-.260227
+.077760
+.093914
+-.286068
+.512694
+-.718207
+.782740
+-.595319
+.150948
+.400667
+-.804616
+.833169
+-.423355
+-.271077
+.954483
+-1.351348
+1.357589
+-1.086294
+.777297
+-.626870
+.648422
+-.660618
+.417677
+.200489
+-1.068561
+1.854674
+-2.200599
+1.929770
+-1.152920
+.211702
+.495566
+-.699409
+.361906
+.334841
+-1.085528
+1.589430
+-1.661030
+1.291369
+-.641176
+-.034148
+.500152
+-.645662
+.518846
+-.278291
+.092262
+-.049172
+.130482
+-.250230
+.323262
+-.313250
+.236502
+-.131631
+.023995
+.091210
+-.240282
+.444594
+-.691567
+.921007
+-1.040568
+.972497
+-.710425
+.348441
+-.050714
+-.034181
+-.134093
+.453761
+-.738814
+.835929
+-.717938
+.483056
+-.261745
+.109328
+.024601
+-.226201
+.513815
+-.798667
+.948317
+-.896009
+.696214
+-.478806
+.346542
+-.308750
+.303230
+-.273771
+.225194
+-.207661
+.253713
+-.332886
+.367396
+-.294097
+.119714
+.073959
+-.175761
+.107656
+.133338
+-.471462
+.782534
+-.944344
+.890057
+-.644541
+.322251
+-.077286
+.023175
+-.166459
+.398939
+-.560209
+.532941
+-.309069
+-.015644
+.309388
+-.482311
+.521975
+-.472470
+.386659
+-.293190
+.196438
+-.095513
+-.001628
+.078106
+-.113118
+.084395
+.026713
+-.217566
+.442436
+-.614158
+.649250
+-.535087
+.362198
+-.275550
+.363605
+-.568346
+.701605
+-.576315
+.163584
+.350485
+-.667816
+.579695
+-.121132
+-.440323
+.779974
+-.730650
+.381572
+.005924
+-.195705
+.136746
+.027091
+-.089332
+-.057901
+.355519
+-.638875
+.765155
+-.705602
+.546490
+-.417537
+.409800
+-.532780
+.720552
+-.869352
+.885548
+-.730125
+.444427
+-.139037
+-.061510
+.095697
+-.014465
+-.040704
+-.069793
+.377402
+-.762246
+1.013628
+-.961142
+.588330
+-.048873
+-.426046
+.663214
+-.632634
+.432704
+-.201004
+.024094
+.094200
+-.201870
+.345961
+-.540848
+.768189
+-.990052
+1.157057
+-1.213435
+1.113354
+-.849603
+.475167
+-.091935
+-.195619
+.334063
+-.343216
+.291345
+-.244078
+.228028
+-.236057
+.263489
+-.335514
+.491163
+-.729094
+.963761
+-1.045906
+.854378
+-.399281
+-.150867
+.557977
+-.666621
+.506984
+-.267161
+.154517
+-.254375
+.491661
+-.712743
+.809182
+-.782325
+.709459
+-.656201
+.614695
+-.513797
+.284879
+.071640
+-.465716
+.755605
+-.821900
+.636753
+-.289004
+-.054517
+.235946
+-.193092
+-.009495
+.227556
+-.330689
+.277945
+-.125631
+-.029788
+.123244
+-.151690
+.147768
+-.128944
+.072367
+.059731
+-.266553
+.477081
+-.576193
+.478240
+-.196943
+-.142155
+.362371
+-.334823
+.054822
+.351007
+-.691636
+.814607
+-.687570
+.412711
+-.165105
+.089512
+-.216751
+.451589
+-.640103
+.671830
+-.546782
+.361188
+-.225906
+.180855
+-.172540
+.111267
+.039655
+-.216819
+.293257
+-.173615
+-.124233
+.463749
+-.667387
+.625663
+-.365823
+.036475
+.181881
+-.185889
+.010799
+.195457
+-.272761
+.159531
+.063492
+-.233540
+.232763
+-.087989
+-.040022
+-.017648
+.286804
+-.595992
+.679231
+-.374830
+-.226118
+.805710
+-1.019678
+.737228
+-.144383
+-.371930
+.483560
+-.141666
+-.397112
+.754786
+-.692884
+.266651
+.228306
+-.468473
+.317739
+.100632
+-.509168
+.667682
+-.513350
+.167966
+.166205
+-.332895
+.290614
+-.103387
+-.114059
+.254810
+-.260710
+.144214
+.011383
+-.082797
+-.029951
+.333982
+-.714248
+.978631
+-.964340
+.644046
+-.158803
+-.253235
+.394715
+-.228138
+-.103144
+.369823
+-.408965
+.233313
+-.020753
+-.014973
+-.212295
+.577978
+-.809722
+.663053
+-.096041
+-.676322
+1.290382
+-1.440621
+1.056308
+-.339329
+-.356431
+.725097
+-.665458
+.307620
+.090613
+-.300482
+.235946
+.028624
+-.324731
+.486439
+-.425560
+.160537
+.200175
+-.507350
+.635090
+-.536016
+.262049
+.062843
+-.305665
+.389243
+-.324579
+.196903
+-.118235
+.172389
+-.376460
+.672072
+-.950004
+1.100800
+-1.071893
+.901332
+-.701710
+.592714
+-.616438
+.693010
+-.659438
+.381428
+.130771
+-.690250
+1.024611
+-.944007
+.475632
+.131125
+-.540964
+.524962
+-.087012
+-.552239
+1.095102
+-1.335027
+1.247004
+-.952787
+.599986
+-.251877
+-.129458
+.598222
+-1.114928
+1.513056
+-1.587097
+1.246381
+-.617258
+.004362
+.277460
+-.092984
+-.428609
+.971415
+-1.222708
+1.053771
+-.579904
+.068023
+.242275
+-.285319
+.189727
+-.166107
+.345275
+-.682018
+.989352
+-1.073690
+.871063
+-.488904
+.129911
+.042294
+-.000497
+-.147468
+.248880
+-.217493
+.090435
+.004128
+.055822
+-.289929
+.585582
+-.757856
+.664045
+-.299710
+-.189382
+.589909
+-.744986
+.637156
+-.377453
+.115261
+.060845
+-.158365
+.233089
+-.305066
+.314568
+-.160969
+-.201496
+.687991
+-1.095176
+1.205689
+-.919934
+.326913
+.333580
+-.793684
+.888943
+-.623803
+.142937
+.361242
+-.743442
+.949661
+-.998958
+.932651
+-.777226
+.547375
+-.277883
+.047154
+.039589
+.093989
+-.434835
+.860217
+-1.181598
+1.238128
+-.989733
+.551330
+-.138279
+-.052514
+-.045339
+.335851
+-.630265
+.768168
+-.704356
+.506501
+-.280469
+.091882
+.056758
+-.191351
+.321193
+-.430699
+.508948
+-.578247
+.683830
+-.848161
+1.030899
+-1.136071
+1.070155
+-.811793
+.441786
+-.107402
+-.061147
+.031056
+.108966
+-.202416
+.128337
+.111126
+-.381190
+.496400
+-.343401
+-.038153
+.472676
+-.751808
+.755000
+-.511806
+.176089
+.062311
+-.072842
+-.159384
+.533108
+-.877623
+1.026250
+-.890725
+.506289
+-.021649
+-.370985
+.535528
+-.463704
+.272042
+-.123480
+.125871
+-.273688
+.463749
+-.562033
+.471224
+-.166761
+-.297788
+.800041
+-1.171709
+1.247681
+-.940630
+.306821
+.446778
+-1.039084
+1.244572
+-1.005258
+.458435
+.139031
+-.548579
+.671854
+-.584735
+.463245
+-.450593
+.558254
+-.673461
+.666126
+-.507687
+.301209
+-.195445
+.255870
+-.405445
+.488737
+-.405657
+.200335
+-.029201
+.035485
+-.235119
+.505654
+-.681940
+.676170
+-.526536
+.344244
+-.212443
+.124018
+-.003860
+-.211321
+.506096
+-.783971
+.925471
+-.859412
+.599873
+-.234750
+-.116983
+.353773
+-.429703
+.374725
+-.287421
+.291477
+-.462309
+.759441
+-1.016253
+1.018277
+-.641710
+-.033251
+.725941
+-1.098130
+.957946
+-.388877
+-.291217
+.718171
+-.689373
+.255002
+.352038
+-.875891
+1.167384
+-1.211301
+1.070918
+-.821739
+.526998
+-.248321
+.049046
+.032913
+-.020301
+-.004619
+-.046989
+.201516
+-.397481
+.530425
+-.534422
+.432865
+-.317459
+.275846
+-.329616
+.428514
+-.494159
+.469570
+-.339994
+.127935
+.113930
+-.304601
+.352139
+-.205364
+-.081133
+.329240
+-.315223
+-.079794
+.746435
+-1.361091
+1.563497
+-1.197964
+.448364
+.249346
+-.480326
+.130092
+.529188
+-1.014903
+.953872
+-.322454
+-.556558
+1.244057
+-1.466948
+1.255707
+-.864518
+.563398
+-.467999
+.516181
+-.572325
+.551035
+-.462202
+.364714
+-.291615
+.217670
+-.087332
+-.132599
+.420440
+-.703054
+.883405
+-.878773
+.664534
+-.310538
+-.021279
+.143865
+.043346
+-.472076
+.925415
+-1.163718
+1.071499
+-.717265
+.286266
+.052258
+-.236071
+.299472
+-.293733
+.224395
+-.061330
+-.199420
+.493050
+-.713277
+.790009
+-.747186
+.684515
+-.694378
+.784328
+-.871701
+.855040
+-.700690
+.471397
+-.276246
+.188665
+-.203746
+.266753
+-.339347
+.437840
+-.606648
+.853079
+-1.108514
+1.259072
+-1.224251
+1.015025
+-.718105
+.419659
+-.138136
+-.170724
+.539569
+-.913660
+1.147781
+-1.090220
+.695594
+-.082703
+-.507288
+.827146
+-.743895
+.296304
+.333655
+-.910825
+1.248822
+-1.277882
+1.055032
+-.719625
+.420452
+-.250503
+.220640
+-.280820
+.368204
+-.445550
+.503085
+-.529275
+.485873
+-.320576
+.017678
+.354613
+-.649903
+.716791
+-.497428
+.080832
+.335309
+-.555726
+.499038
+-.235338
+-.071987
+.275221
+-.325065
+.275862
+-.220949
+.215015
+-.243001
+.253053
+-.218494
+.170918
+-.172118
+.246112
+-.332734
+.313468
+-.103361
+-.258132
+.596887
+-.698983
+.451720
+.071157
+-.646562
+1.037480
+-1.130256
+.979743
+-.741794
+.554457
+-.456995
+.395478
+-.293422
+.124604
+.064146
+-.186683
+.173478
+-.009663
+-.262004
+.562417
+-.803078
+.909633
+-.844087
+.623988
+-.324585
+.049630
+.122326
+-.181100
+.179590
+-.175856
+.167704
+-.081825
+-.159107
+.538639
+-.906432
+1.050746
+-.847100
+.372255
+.117604
+-.346593
+.207871
+.158331
+-.459293
+.449964
+-.095816
+-.412363
+.791079
+-.843318
+.565481
+-.126654
+-.247166
+.401815
+-.323598
+.120499
+.062427
+-.140367
+.141119
+-.178852
+.363474
+-.705668
+1.088008
+-1.329241
+1.299219
+-1.000031
+.553756
+-.111245
+-.242030
+.510009
+-.731249
+.904897
+-.968876
+.849472
+-.533754
+.095400
+.350891
+-.724588
+1.015523
+-1.250730
+1.427665
+-1.481686
+1.324729
+-.927310
+.374746
+.153086
+-.471349
+.490472
+-.261867
+-.059101
+.307516
+-.401126
+.373819
+-.330987
+.358422
+-.449082
+.503136
+-.405481
+.125208
+.241071
+-.521660
+.584047
+-.426416
+.177852
+-.008770
+.020923
+-.194672
+.421307
+-.583948
+.624873
+-.559774
+.443574
+-.321777
+.202684
+-.066418
+-.099392
+.266090
+-.363602
+.321429
+-.125151
+-.157196
+.407308
+-.529549
+.510274
+-.417090
+.340235
+-.326624
+.359671
+-.395213
+.413358
+-.436078
+.496284
+-.592464
+.675681
+-.684772
+.598475
+-.457806
+.337601
+-.291065
+.312744
+-.348041
+.339526
+-.272277
+.184099
+-.133087
+.145976
+-.185646
+.166412
+-.014568
+-.262837
+.552472
+-.682986
+.528297
+-.102060
+-.424279
+.803850
+-.854411
+.569881
+-.129685
+-.206213
+.253664
+-.012630
+-.344161
+.594934
+-.617610
+.456149
+-.256822
+.127817
+-.040042
+-.141840
+.516313
+-1.008284
+1.366229
+-1.319886
+.792152
+.000801
+-.655840
+.838999
+-.514772
+-.020224
+.333339
+-.150894
+-.453860
+1.113566
+-1.424002
+1.223819
+-.699018
+.240295
+-.159229
+.468497
+-.880758
+1.020268
+-.690494
+.010860
+.661452
+-.956859
+.709921
+-.038448
+-.740521
+1.286779
+-1.400522
+1.097537
+-.575055
+.097186
+.140103
+-.096906
+-.114651
+.319113
+-.392862
+.331219
+-.229481
+.200917
+-.294083
+.461749
+-.591388
+.569192
+-.340164
+-.060306
+.511955
+-.850736
+.933271
+-.700076
+.207509
+.390620
+-.904674
+1.184128
+-1.170743
+.909714
+-.520062
+.142491
+.110302
+-.180996
+.067364
+.193551
+-.538490
+.880627
+-1.114391
+1.141293
+-.917913
+.498066
+-.031626
+-.293025
+.336471
+-.077268
+-.372654
+.810085
+-1.020161
+.866175
+-.360160
+-.319855
+.892072
+-1.103095
+.867149
+-.323771
+-.235604
+.534756
+-.466297
+.132898
+.240062
+-.448078
+.409054
+-.174140
+-.129833
+.370147
+-.453478
+.346560
+-.084286
+-.237066
+.494585
+-.598919
+.545739
+-.415784
+.313721
+-.286401
+.284243
+-.200246
+-.039806
+.403648
+-.753272
+.923772
+-.828791
+.522530
+-.177114
+-.012608
+-.060919
+.359588
+-.727747
+.987921
+-1.041030
+.906802
+-.684661
+.473522
+-.316272
+.205808
+-.131785
+.110856
+-.164620
+.267520
+-.325124
+.221438
+.089321
+-.520014
+.876115
+-.962873
+.703438
+-.188412
+-.373289
+.764329
+-.859001
+.660904
+-.274420
+-.156266
+.501842
+-.679255
+.662347
+-.479528
+.199057
+.098623
+-.352309
+.538085
+-.661813
+.732864
+-.741734
+.661473
+-.473462
+.197196
+.101114
+-.332379
+.428532
+-.379962
+.242918
+-.113253
+.080915
+-.188212
+.408437
+-.652287
+.801922
+-.765116
+.528708
+-.180748
+-.122345
+.236228
+-.112414
+-.169650
+.447595
+-.571863
+.490785
+-.270859
+.042642
+.088909
+-.109778
+.095800
+-.147234
+.303936
+-.501297
+.603193
+-.496790
+.186187
+.187192
+-.424764
+.404876
+-.173814
+-.083183
+.179473
+-.070606
+-.113921
+.181970
+-.042774
+-.217444
+.416377
+-.441697
+.350762
+-.309334
+.421423
+-.607497
+.652061
+-.391178
+-.120834
+.619586
+-.823036
+.657810
+-.330787
+.175508
+-.384904
+.837398
+-1.159152
+.987930
+-.250964
+-.745949
+1.488911
+-1.573744
+.957085
+.026166
+-.884517
+1.275605
+-1.190471
+.903362
+-.740199
+.840117
+-1.077541
+1.185627
+-.974038
+.473856
+.089067
+-.455130
+.494522
+-.258954
+-.089793
+.391821
+-.549384
+.515877
+-.266695
+-.191019
+.774609
+-1.310041
+1.592634
+-1.499709
+1.070805
+-.486737
+-.039655
+.377533
+-.516500
+.519034
+-.445905
+.321986
+-.159111
+-.004013
+.094889
+-.046222
+-.151301
+.427739
+-.663998
+.755689
+-.670594
+.464804
+-.248115
+.120297
+-.117605
+.203007
+-.304041
+.367504
+-.387479
+.386784
+-.373134
+.315733
+-.168922
+-.075379
+.355692
+-.564203
+.612939
+-.492332
+.276083
+-.068716
+-.064575
+.135708
+-.216111
+.380373
+-.651417
+.980389
+-1.267948
+1.407824
+-1.326982
+1.009640
+-.507654
+-.058632
+.517955
+-.698801
+.509824
+-.010846
+-.582130
+.985820
+-.995760
+.603101
+-.004213
+-.507529
+.701155
+-.522151
+.100120
+.340191
+-.599790
+.588163
+-.335347
+-.050104
+.436657
+-.708481
+.785419
+-.639060
+.311799
+.077786
+-.368249
+.431205
+-.253379
+-.034771
+.221019
+-.140104
+-.212022
+.662698
+-.967263
+.966575
+-.685371
+.300607
+-.007837
+-.108448
+.102841
+-.085583
+.110270
+-.132338
+.070256
+.091091
+-.250808
+.246104
+.026111
+-.512253
+1.006558
+-1.263063
+1.145400
+-.715342
+.197791
+.158274
+-.231140
+.087817
+.083461
+-.114739
+-.033243
+.270869
+-.473999
+.586881
+-.650773
+.743764
+-.890558
+1.018456
+-.992195
+.699313
+-.127242
+-.611542
+1.313913
+-1.758381
+1.786383
+-1.365222
+.609178
+.255991
+-.977787
+1.372926
+-1.383808
+1.068555
+-.545283
+-.058303
+.616945
+-.998168
+1.078125
+-.803153
+.257096
+.336817
+-.712329
+.705820
+-.351129
+-.147306
+.545831
+-.705975
+.657694
+-.551804
+.547122
+-.710240
+.984049
+-1.231205
+1.317668
+-1.186751
+.885476
+-.533608
+.257138
+-.127011
+.136839
+-.224643
+.315208
+-.353454
+.316395
+-.212398
+.078382
+.027487
+-.047685
+-.039834
+.196487
+-.334245
+.366550
+-.268484
+.102165
+.016134
+.010361
+-.193822
+.450474
+-.652651
+.708761
+-.616459
+.454849
+-.326928
+.296877
+-.363268
+.474941
+-.567231
+.592782
+-.539471
+.438865
+-.362416
+.394519
+-.583373
+.895699
+-1.212711
+1.381552
+-1.293228
+.937188
+-.400220
+-.179663
+.666430
+-.958042
+.998296
+-.786775
+.391860
+.051849
+-.384668
+.494889
+-.379879
+.145140
+.067290
+-.171750
+.180787
+-.163307
+.157877
+-.121416
+-.035776
+.354598
+-.754929
+1.056439
+-1.088068
+.808297
+-.347278
+-.061804
+.217465
+-.063705
+-.285321
+.620161
+-.761402
+.659894
+-.412989
+.189739
+-.115125
+.191380
+-.308315
+.330588
+-.194484
+-.054900
+.303611
+-.445270
+.437101
+-.309379
+.141356
+-.026903
+.037877
+-.184531
+.388132
+-.499267
+.378552
+-.003690
+-.477289
+.808321
+-.782218
+.387196
+.171286
+-.602010
+.723515
+-.579770
+.389726
+-.371188
+.575320
+-.855073
+.983948
+-.825748
+.425572
+.035959
+-.373959
+.507970
+-.475102
+.361486
+-.226610
+.082150
+.074307
+-.221286
+.314949
+-.325870
+.267701
+-.182626
+.094144
+.025398
+-.234262
+.557327
+-.931617
+1.213352
+-1.253144
+.991265
+-.506960
+-.013261
+.367751
+-.433822
+.212168
+.191176
+-.618489
+.913818
+-.959839
+.705331
+-.190582
+-.441700
+.976560
+-1.208151
+1.040887
+-.547774
+-.061040
+.548993
+-.773125
+.733544
+-.524434
+.234386
+.116203
+-.546535
+1.022426
+-1.391316
+1.426578
+-.976214
+.113538
+.838027
+-1.455220
+1.458907
+-.887971
+.076808
+.555217
+-.759981
+.589438
+-.317876
+.224909
+-.397493
+.683213
+-.813707
+.601017
+-.070797
+-.549172
+.966182
+-.989402
+.623598
+-.045762
+-.502695
+.831491
+-.863001
+.627281
+-.221592
+-.229916
+.604794
+-.808020
+.800137
+-.614054
+.341031
+-.085997
+-.081024
+.144552
+-.125361
+.046404
+.084864
+-.265527
+.473108
+-.655614
+.748163
+-.704663
+.522709
+-.248259
+-.037058
+.236689
+-.264478
+.075584
+.303784
+-.768025
+1.164201
+-1.358837
+1.303126
+-1.054496
+.741395
+-.497032
+.403496
+-.467701
+.624697
+-.757814
+.738244
+-.488970
+.051960
+.391964
+-.591528
+.364055
+.276441
+-1.092565
+1.726764
+-1.876572
+1.440630
+-.560751
+-.448820
+1.238224
+-1.560922
+1.362125
+-.786224
+.101247
+.427864
+-.655956
+.602621
+-.403594
+.206349
+-.083575
+.019954
+.031685
+-.081376
+.081325
+.030493
+-.262355
+.536350
+-.722239
+.716061
+-.508325
+.194627
+.078478
+-.198387
+.149617
+-.018076
+-.065027
+.002907
+.214801
+-.519138
+.815614
+-1.038586
+1.165429
+-1.190659
+1.099862
+-.879676
+.558114
+-.229332
+.022874
+-.026557
+.219430
+-.471665
+.619842
+-.570036
+.358580
+-.128559
+.034196
+-.133617
+.342480
+-.486192
+.423423
+-.157142
+-.152150
+.291805
+-.152197
+-.182344
+.479391
+-.512146
+.210914
+.295076
+-.768690
+1.015592
+-.987513
+.778349
+-.535867
+.362607
+-.268404
+.187882
+-.035557
+-.236731
+.602919
+-.959300
+1.162296
+-1.100899
+.768719
+-.284952
+-.162564
+.421018
+-.450167
+.319178
+-.136198
+-.021701
+.122956
+-.150124
+.080548
+.083889
+-.269335
+.334918
+-.160347
+-.241251
+.689841
+-.938937
+.850444
+-.506751
+.159171
+-.040700
+.188045
+-.418759
+.486284
+-.288911
+-.040500
+.240615
+-.140109
+-.189291
+.470556
+-.422815
+-.028772
+.692530
+-1.238665
+1.414882
+-1.193070
+.754214
+-.343860
+.115743
+-.072269
+.123020
+-.191809
+.277992
+-.428669
+.656943
+-.885208
+.969287
+-.793442
+.368231
+.144231
+-.506772
+.543164
+-.246740
+-.213593
+.596818
+-.733949
+.614802
+-.363534
+.132473
+-.000833
+-.049681
+.079539
+-.115660
+.120205
+-.022539
+-.218762
+.572354
+-.935036
+1.171467
+-1.170752
+.898316
+-.424431
+-.087663
+.441643
+-.498877
+.255893
+.142298
+-.473430
+.560939
+-.375399
+.045944
+.229904
+-.319515
+.239651
+-.132802
+.155305
+-.361769
+.669157
+-.919761
+.988505
+-.855305
+.601161
+-.346137
+.179418
+-.121605
+.128818
+-.127753
+.064118
+.055030
+-.148896
+.099241
+.171824
+-.625425
+1.089227
+-1.330821
+1.190983
+-.695033
+.061410
+.411820
+-.518646
+.265118
+.142888
+-.436946
+.455267
+-.230838
+-.053937
+.203588
+-.135493
+-.086516
+.318660
+-.441357
+.425104
+-.324317
+.221745
+-.172042
+.179095
+-.209098
+.218784
+-.178770
+.084391
+.042256
+-.154939
+.191796
+-.095069
+-.156065
+.511535
+-.839658
+.964426
+-.750634
+.198771
+.513588
+-1.089826
+1.257707
+-.918637
+.205710
+.591832
+-1.188411
+1.438124
+-1.363502
+1.081254
+-.706285
+.315518
+.018201
+-.186455
+.070191
+.367346
+-.995095
+1.527556
+-1.662506
+1.269039
+-.496478
+-.286079
+.698980
+-.580649
+.082868
+.434072
+-.635403
+.413790
+.073487
+-.540940
+.771056
+-.727881
+.523943
+-.293776
+.087649
+.133824
+-.414860
+.713196
+-.887372
+.780814
+-.341991
+-.311498
+.937164
+-1.293318
+1.262759
+-.898111
+.374317
+.103505
+-.374648
+.353653
+-.037718
+-.483694
+1.026035
+-1.353958
+1.290850
+-.843058
+.239047
+.181354
+-.179807
+-.210851
+.694247
+-.904542
+.653527
+-.055930
+-.550266
+.824904
+-.634503
+.119613
+.406527
+-.651533
+.509380
+-.106219
+-.291634
+.446173
+-.290070
+-.042673
+.313304
+-.338113
+.108829
+.201357
+-.348381
+.174957
+.280335
+-.789094
+1.054234
+-.880100
+.293372
+.459782
+-1.045402
+1.228221
+-1.000049
+.570345
+-.227506
+.162719
+-.369086
+.671643
+-.854471
+.794328
+-.521120
+.183724
+.043169
+-.052772
+-.145153
+.436594
+-.664686
+.708118
+-.538890
+.233268
+.065581
+-.211615
+.117849
+.205480
+-.646809
+1.027052
+-1.167453
+.972122
+-.487879
+-.098859
+.541626
+-.658585
+.434174
+-.031463
+-.303117
+.390978
+-.230546
+-.014861
+.148095
+-.094264
+-.039500
+.053565
+.170715
+-.552185
+.847923
+-.826776
+.446456
+.105104
+-.539018
+.666260
+-.516494
+.288465
+-.181250
+.246473
+-.375378
+.415430
+-.304067
+.104390
+.075262
+-.190133
+.291200
+-.454697
+.681678
+-.866419
+.867972
+-.627886
+.237021
+.105293
+-.214264
+.041392
+.287159
+-.542565
+.533787
+-.231171
+-.204797
+.514161
+-.496999
+.141978
+.363346
+-.751942
+.846978
+-.664609
+.381703
+-.201318
+.220648
+-.393058
+.592967
+-.715813
+.734623
+-.687782
+.630396
+-.595015
+.580035
+-.555261
+.472550
+-.284280
+-.025144
+.408545
+-.755799
+.940868
+-.895622
+.660284
+-.371217
+.190277
+-.220679
+.460408
+-.814088
+1.147549
+-1.351207
+1.383328
+-1.278013
+1.116275
+-.972491
+.864127
+-.740050
+.524899
+-.197643
+-.153142
+.350211
+-.228827
+-.241185
+.898570
+-1.450564
+1.625670
+-1.328836
+.701266
+-.043499
+-.353349
+.364756
+-.084117
+-.255656
+.430407
+-.343422
+.046563
+.329720
+-.670176
+.923501
+-1.087206
+1.165095
+-1.146187
+1.020417
+-.804870
+.544102
+-.280687
+.026424
+.230868
+-.485036
+.673294
+-.686956
+.438573
+.057084
+-.651948
+1.117849
+-1.260014
+1.022590
+-.520041
+-.023952
+.390614
+-.465275
+.270668
+.070041
+-.404879
+.613953
+-.635251
+.461624
+-.130787
+-.277863
+.647933
+-.851580
+.802557
+-.511955
+.103177
+.239655
+-.367006
+.240871
+.060133
+-.406145
+.695323
+-.885846
+.968426
+-.924282
+.721980
+-.361111
+-.083460
+.471525
+-.668039
+.623106
+-.397523
+.115632
+.111522
+-.229776
+.228423
+-.103653
+-.148086
+.492594
+-.820842
+.972554
+-.829527
+.415024
+.091051
+-.454015
+.539182
+-.401001
+.230791
+-.198698
+.314386
+-.420797
+.329693
+.009242
+-.444039
+.716612
+-.646750
+.261061
+.229579
+-.580178
+.669592
+-.551956
+.380770
+-.282413
+.279768
+-.308476
+.289440
+-.189893
+.034178
+.123554
+-.230438
+.250032
+-.166831
+-.007730
+.227790
+-.416443
+.489110
+-.392099
+.138454
+.181285
+-.428937
+.485110
+-.320570
+.023933
+.245324
+-.357388
+.295355
+-.153773
+.050867
+-.028171
+.026166
+.043234
+-.195358
+.339413
+-.348304
+.171383
+.110952
+-.341618
+.406771
+-.321572
+.212713
+-.213716
+.358085
+-.552919
+.649334
+-.552671
+.290627
+.005697
+-.187880
+.180280
+-.015739
+-.199192
+.358288
+-.417117
+.403997
+-.381098
+.390194
+-.425769
+.453741
+-.455553
+.456241
+-.508513
+.642658
+-.822550
+.946579
+-.899830
+.626498
+-.175494
+-.312463
+.672212
+-.797764
+.692560
+-.456125
+.218054
+-.065583
+.013107
+-.027190
+.076225
+-.156780
+.274740
+-.404256
+.469513
+-.374579
+.063780
+.431536
+-.992454
+1.457247
+-1.683545
+1.599376
+-1.229297
+.692548
+-.170183
+-.159546
+.200791
+.005033
+-.292466
+.461743
+-.398393
+.144121
+.134309
+-.262191
+.179514
+.016962
+-.141849
+.052288
+.247551
+-.597882
+.776269
+-.633376
+.186906
+.383935
+-.837950
+1.001446
+-.848107
+.487685
+-.085515
+-.225924
+.392885
+-.435703
+.417501
+-.409671
+.460181
+-.567115
+.671270
+-.685126
+.551476
+-.292285
+.005899
+.191263
+-.233741
+.132726
+.056599
+-.287723
+.541799
+-.795827
+.978998
+-.977403
+.709328
+-.222228
+-.279112
+.528726
+-.376842
+-.079127
+.526267
+-.631868
+.270219
+.388677
+-.997894
+1.268750
+-1.145642
+.800065
+-.471057
+.290995
+-.226885
+.157967
+-.002030
+-.220835
+.428001
+-.565499
+.660075
+-.784254
+.967007
+-1.131979
+1.125526
+-.825378
+.255154
+.381113
+-.781691
+.708103
+-.132113
+-.723855
+1.487936
+-1.833036
+1.652491
+-1.107801
+.515275
+-.145503
+.070302
+-.158762
+.211388
+-.119998
+-.069830
+.227918
+-.263650
+.191779
+-.091309
+.010533
+.083167
+-.259929
+.533370
+-.808774
+.929259
+-.789717
+.428019
+-.018777
+-.229932
+.202842
+.061317
+-.410509
+.683255
+-.796611
+.761870
+-.634113
+.451768
+-.219576
+-.058481
+.338289
+-.535650
+.577424
+-.465597
+.298577
+-.223907
+.347573
+-.659867
+1.028718
+-1.267996
+1.240417
+-.934419
+.471477
+-.041725
+-.193284
+.176323
+.029938
+-.287370
+.452191
+-.427772
+.183143
+.248342
+-.768109
+1.212869
+-1.387539
+1.150327
+-.518059
+-.288496
+.923513
+-1.098550
+.757877
+-.122022
+-.440081
+.628640
+-.376725
+-.138152
+.623079
+-.840567
+.716144
+-.340259
+-.107395
+.451803
+-.590115
+.516429
+-.306970
+.076194
+.079056
+-.121996
+.082053
+-.022536
+-.006824
+-.001949
+.022725
+-.025380
+-.000976
+.047699
+-.100358
+.145034
+-.160183
+.109493
+.043118
+-.296879
+.584041
+-.780770
+.766317
+-.498704
+.054483
+.400095
+-.692786
+.731264
+-.536356
+.207201
+.147790
+-.459281
+.695233
+-.826538
+.806112
+-.591483
+.196149
+.277078
+-.659459
+.792969
+-.615804
+.201696
+.274236
+-.624375
+.739427
+-.627904
+.386024
+-.125410
+-.088031
+.246849
+-.369966
+.462455
+-.502096
+.457770
+-.317623
+.103097
+.136689
+-.339747
+.446298
+-.415522
+.247825
+-.004084
+-.200116
+.240475
+-.056935
+-.291534
+.638700
+-.799463
+.686098
+-.371340
+.045180
+.111272
+-.045430
+-.142449
+.286943
+-.286160
+.170972
+-.064613
+.071254
+-.184526
+.286059
+-.231810
+-.040407
+.458646
+-.852429
+1.047760
+-.959654
+.628745
+-.189383
+-.202923
+.439914
+-.492230
+.398247
+-.228872
+.054429
+.070119
+-.104056
+.019708
+.185042
+-.466014
+.728319
+-.860715
+.800867
+-.586810
+.344459
+-.204488
+.204891
+-.260790
+.236131
+-.064592
+-.184577
+.360166
+-.362854
+.241807
+-.161607
+.258578
+-.507675
+.719989
+-.682262
+.327217
+.205518
+-.668766
+.885628
+-.862166
+.749496
+-.696115
+.717631
+-.690610
+.470524
+-.034574
+-.465946
+.784441
+-.731026
+.292559
+.354774
+-.940326
+1.238569
+-1.174165
+.842349
+-.443199
+.170987
+-.118237
+.242153
+-.405430
+.462193
+-.337422
+.058363
+.270927
+-.527549
+.624554
+-.539086
+.310881
+-.021211
+-.237083
+.392221
+-.422452
+.368356
+-.313873
+.334373
+-.435676
+.527704
+-.465218
+.144680
+.402575
+-.992040
+1.369850
+-1.354143
+.943584
+-.321923
+-.243526
+.543384
+-.522190
+.280810
+.002812
+-.179070
+.198331
+-.115706
+.036049
+-.037528
+.121682
+-.219861
+.250447
+-.186953
+.087994
+-.064625
+.204648
+-.506253
+.869546
+-1.154854
+1.268452
+-1.215438
+1.083457
+-.971484
+.916202
+-.867638
+.726009
+-.408500
+-.099293
+.732268
+-1.366873
+1.853366
+-2.050318
+1.868787
+-1.325823
+.577761
+.113538
+-.498463
+.489250
+-.236340
+.051724
+-.203532
+.716830
+-1.332553
+1.672249
+-1.499784
+.888406
+-.165992
+-.321357
+.448167
+-.372201
+.379750
+-.641787
+1.073300
+-1.403446
+1.395235
+-1.038276
+.561479
+-.257858
+.261823
+-.455001
+.572107
+-.418899
+.029195
+.358234
+-.476941
+.221764
+.289561
+-.812330
+1.138614
+-1.204729
+1.082116
+-.887157
+.693805
+-.506882
+.293337
+-.029420
+-.272636
+.565225
+-.780448
+.848948
+-.722275
+.399726
+.050316
+-.493631
+.769921
+-.760735
+.454343
+.031846
+-.495187
+.746312
+-.710791
+.468932
+-.199046
+.055014
+-.063204
+.118278
+-.085019
+-.073263
+.246740
+-.257758
+.008664
+.418309
+-.793535
+.887825
+-.631278
+.167739
+.237434
+-.376546
+.243237
+-.037414
+.020147
+-.314472
+.795442
+-1.158267
+1.125783
+-.648097
+-.054175
+.635773
+-.851648
+.695501
+-.362660
+.086381
+.016626
+.014083
+-.058135
+.021750
+.107408
+-.277759
+.424025
+-.501428
+.489965
+-.388284
+.217011
+-.027868
+-.102356
+.104461
+.039149
+-.271946
+.485018
+-.574867
+.501559
+-.309197
+.095934
+.045893
+-.080442
+.039961
+.005896
+.000529
+-.068235
+.154775
+-.195551
+.145377
+-.005803
+-.178138
+.349469
+-.477391
+.575084
+-.682766
+.826165
+-.981325
+1.075642
+-1.030601
+.818928
+-.494820
+.171231
+.043949
+-.111526
+.082215
+-.061894
+.142445
+-.338915
+.567830
+-.679693
+.534347
+-.085863
+-.567738
+1.206553
+-1.585457
+1.558773
+-1.158320
+.571863
+-.032775
+-.305677
+.430061
+-.431772
+.418681
+-.445005
+.502427
+-.558710
+.598174
+-.630736
+.673911
+-.734015
+.803791
+-.870193
+.916461
+-.915737
+.829494
+-.623875
+.297882
+.098678
+-.474520
+.730084
+-.795124
+.653667
+-.350387
+-.020694
+.345755
+-.536210
+.572202
+-.515019
+.468661
+-.506477
+.612662
+-.687159
+.618629
+-.375268
+.043377
+.221127
+-.298175
+.190325
+-.025238
+-.031678
+-.105234
+.377813
+-.620656
+.675154
+-.500477
+.200721
+.054539
+-.159616
+.154127
+-.189671
+.402354
+-.788435
+1.182853
+-1.361958
+1.193466
+-.721104
+.127020
+.387771
+-.709438
+.835440
+-.823793
+.727670
+-.568721
+.354837
+-.110253
+-.113998
+.256470
+-.273845
+.162838
+.035232
+-.250370
+.415892
+-.502969
+.535784
+-.570369
+.643981
+-.730477
+.742655
+-.591519
+.263440
+.146378
+-.477248
+.594902
+-.462894
+.143877
+.257929
+-.655539
+.993560
+-1.226254
+1.304527
+-1.200664
+.948937
+-.652261
+.431819
+-.352476
+.383914
+-.430195
+.403371
+-.283175
+.121405
+.004167
+-.045957
+.013386
+.042242
+-.068473
+.049457
+-.018231
+.037536
+-.159940
+.388799
+-.660973
+.862658
+-.875429
+.635969
+-.183767
+-.331690
+.700491
+-.746953
+.423835
+.151205
+-.746804
+1.130757
+-1.178018
+.911502
+-.463439
+-.004481
+.369051
+-.573120
+.619061
+-.549551
+.428270
+-.321181
+.275501
+-.300395
+.357701
+-.369337
+.244531
+.075927
+-.571326
+1.116096
+-1.510102
+1.571342
+-1.250208
+.687636
+-.156643
+-.097179
+.017187
+.219188
+-.318129
+.078604
+.451893
+-.989447
+1.193523
+-.897759
+.238004
+.411492
+-.660830
+.351028
+.332018
+-.958310
+1.118791
+-.692202
+-.064603
+.675434
+-.758234
+.283070
+.406789
+-.829938
+.694729
+-.090514
+-.586839
+.911931
+-.707200
+.132447
+.454697
+-.745207
+.651870
+-.308133
+-.068511
+.323005
+-.417602
+.390355
+-.288744
+.145694
+-.001030
+-.081168
+.039773
+.126815
+-.331330
+.437333
+-.350590
+.094029
+.196346
+-.359048
+.315852
+-.119882
+-.093473
+.213115
+-.230061
+.224566
+-.276972
+.382186
+-.445178
+.364508
+-.132714
+-.135586
+.277807
+-.204316
+-.028661
+.250467
+-.286316
+.064893
+.347129
+-.793171
+1.111163
+-1.199245
+1.039662
+-.692023
+.274072
+.068501
+-.210518
+.106890
+.169919
+-.452304
+.564787
+-.430719
+.126978
+.159242
+-.250644
+.098035
+.187868
+-.416357
+.453276
+-.314532
+.146874
+-.108632
+.239199
+-.416547
+.439050
+-.175815
+-.322174
+.833744
+-1.100088
+.990586
+-.587984
+.132474
+.137085
+-.132873
+-.046990
+.219003
+-.268197
+.235358
+-.273679
+.516485
+-.964509
+1.475666
+-1.852206
+1.948329
+-1.725152
+1.240113
+-.610460
+-.013496
+.470321
+-.631454
+.466870
+-.086257
+-.296526
+.474333
+-.362795
+.036082
+.343243
+-.640938
+.821697
+-.927579
+.999613
+-1.020617
+.927862
+-.677344
+.298893
+.105581
+-.417856
+.569636
+-.571854
+.490567
+-.392373
+.301158
+-.196403
+.049989
+.130785
+-.290033
+.350333
+-.258497
+.017441
+.313054
+-.639165
+.861826
+-.903383
+.735311
+-.404953
+.041674
+.183009
+-.142949
+-.151335
+.526622
+-.727896
+.573988
+-.088677
+-.491676
+.852870
+-.794545
+.348041
+.257865
+-.750950
+.975212
+-.951497
+.816493
+-.704815
+.663068
+-.642720
+.555363
+-.340218
+.003177
+.383866
+-.714111
+.892695
+-.882535
+.727148
+-.531939
+.406023
+-.399058
+.478839
+-.569511
+.620242
+-.646049
+.704461
+-.827527
+.971388
+-1.031806
+.919200
+-.634512
+.284269
+-.019512
+-.059999
+-.030194
+.169815
+-.211056
+.072615
+.208481
+-.496582
+.633919
+-.526738
+.192688
+.252140
+-.653104
+.888284
+-.916458
+.783282
+-.588160
+.430764
+-.363635
+.374904
+-.409394
+.414690
+-.381169
+.347159
+-.364181
+.448406
+-.557780
+.616489
+-.570667
+.431721
+-.272270
+.178167
+-.195164
+.310264
+-.474768
+.641498
+-.783357
+.885077
+-.927787
+.888415
+-.756896
+.553819
+-.330108
+.145060
+-.035581
+-.004458
+.020310
+-.065390
+.157529
+-.251459
+.254656
+-.087757
+-.246175
+.637460
+-.919752
+.968810
+-.781789
+.477784
+-.218032
+.105543
+-.137573
+.238573
+-.334698
+.401281
+-.446349
+.457728
+-.377295
+.141868
+.237396
+-.631230
+.840552
+-.719983
+.292268
+.235867
+-.581215
+.552388
+-.170628
+-.337067
+.671881
+-.642339
+.277694
+.194145
+-.488427
+.433971
+-.064358
+-.421176
+.790754
+-.911788
+.799785
+-.569594
+.342411
+-.179013
+.073593
+.009135
+-.095560
+.192043
+-.297537
+.417140
+-.558000
+.708821
+-.823012
+.827986
+-.667899
+.360363
+-.025729
+-.148674
+.010368
+.443300
+-1.020033
+1.411964
+-1.372148
+.879116
+-.168765
+-.403314
+.583156
+-.369724
+-.009241
+.271956
+-.275009
+.086858
+.094200
+-.099752
+-.092750
+.357874
+-.514587
+.436031
+-.108432
+-.378335
+.879587
+-1.246074
+1.359916
+-1.165119
+.700178
+-.115885
+-.355871
+.497568
+-.227930
+-.327974
+.883801
+-1.142452
+.964307
+-.445351
+-.144299
+.520065
+-.538100
+.255060
+.130667
+-.404783
+.445917
+-.259482
+-.061337
+.399943
+-.657700
+.763566
+-.676984
+.406184
+-.028810
+-.320669
+.511723
+-.493914
+.330039
+-.153942
+.079021
+-.121265
+.188115
+-.137158
+-.134068
+.617419
+-1.177312
+1.598035
+-1.680892
+1.352024
+-.724466
+.066963
+.322049
+-.273627
+-.156191
+.720877
+-1.131815
+1.223921
+-1.029770
+.719497
+-.461645
+.313188
+-.215609
+.085089
+.088917
+-.222908
+.211466
+-.027113
+-.239313
+.432478
+-.435864
+.243957
+.045077
+-.296327
+.406748
+-.335037
+.097763
+.241105
+-.578262
+.794000
+-.801606
+.598663
+-.273649
+-.050702
+.296787
+-.464384
+.584699
+-.642404
+.549679
+-.214008
+-.348414
+.956418
+-1.332404
+1.266076
+-.761307
+.055648
+.512974
+-.709647
+.539515
+-.223172
+.026779
+-.069592
+.250753
+-.349198
+.216724
+.090593
+-.349117
+.344375
+-.047403
+-.349245
+.565797
+-.438436
+.040874
+.363653
+-.503327
+.282281
+.160593
+-.556480
+.697865
+-.578077
+.380025
+-.326388
+.506128
+-.809170
+1.016814
+-.975510
+.718409
+-.440835
+.350184
+-.504945
+.763641
+-.879635
+.671431
+-.148123
+-.492239
+.982249
+-1.137597
+.946877
+-.555649
+.172556
+.034919
+.000330
+-.245076
+.602117
+-.950817
+1.175029
+-1.180984
+.916137
+-.392254
+-.297689
+.987605
+-1.484190
+1.642352
+-1.437957
+.995378
+-.542657
+.305415
+-.389038
+.714299
+-1.050076
+1.135720
+-.831619
+.210904
+.470336
+-.916303
+.964822
+-.678817
+.294290
+-.061187
+.089088
+-.301468
+.517269
+-.586899
+.482988
+-.296250
+.160706
+-.170112
+.332352
+-.572384
+.771083
+-.822550
+.688590
+-.422616
+.141717
+.043881
+-.098558
+.075070
+-.062962
+.114024
+-.205882
+.269539
+-.249936
+.144063
+.010332
+-.173909
+.329428
+-.472103
+.587409
+-.649772
+.648639
+-.612856
+.598785
+-.640708
+.702213
+-.677034
+.452647
+.002925
+-.597199
+1.150848
+-1.494726
+1.555173
+-1.367254
+1.017848
+-.581171
+.109885
+.319533
+-.575490
+.520277
+-.124945
+-.450405
+.909910
+-1.003169
+.706478
+-.252161
+-.034085
+-.028875
+.349198
+-.642088
+.650556
+-.332033
+-.124661
+.446277
+-.460575
+.187954
+.201915
+-.510015
+.614722
+-.513442
+.301671
+-.117373
+.074621
+-.204324
+.424797
+-.568775
+.471886
+-.084104
+-.467260
+.921352
+-1.026292
+.697430
+-.083341
+-.513666
+.813886
+-.714636
+.321804
+.149010
+-.517549
+.725699
+-.821906
+.880368
+-.928947
+.934156
+-.840164
+.623332
+-.323497
+.032771
+.151904
+-.185989
+.107148
+-.012403
+-.008736
+-.061768
+.160600
+-.199518
+.143346
+-.042952
+-.007058
+-.049447
+.179989
+-.289886
+.303057
+-.226841
+.144690
+-.143746
+.240100
+-.365465
+.423566
+-.364046
+.209770
+-.019966
+-.167679
+.356083
+-.551905
+.716374
+-.763811
+.622140
+-.304613
+-.077142
+.380338
+-.528044
+.556290
+-.572664
+.662266
+-.818088
+.949491
+-.956242
+.805957
+-.555547
+.306073
+-.131584
+.036401
+.032947
+-.138352
+.304121
+-.503538
+.677005
+-.760142
+.704192
+-.488743
+.134728
+.284652
+-.652019
+.846897
+-.807492
+.575716
+-.287585
+.105123
+-.126992
+.332734
+-.594094
+.744879
+-.667652
+.351812
+.100556
+-.517651
+.729061
+-.638846
+.274360
+.212115
+-.599378
+.695364
+-.432025
+-.096162
+.676030
+-1.078387
+1.160589
+-.915606
+.454358
+.052729
+-.439178
+.592884
+-.491327
+.216163
+.070287
+-.197235
+.083153
+.200483
+-.456092
+.479617
+-.202765
+-.244635
+.609390
+-.688008
+.478493
+-.196577
+.132744
+-.443616
+1.023964
+-1.553194
+1.688784
+-1.278055
+.450847
+.458140
+-1.095734
+1.262556
+-.976196
+.413460
+.204638
+-.705304
+.994353
+-1.040732
+.856238
+-.494028
+.052754
+.341925
+-.586953
+.653068
+-.594237
+.498552
+-.414816
+.315891
+-.135371
+-.148401
+.453976
+-.624021
+.530434
+-.180081
+-.265396
+.579302
+-.607548
+.354619
+.040004
+-.406631
+.646121
+-.756225
+.782316
+-.751132
+.648583
+-.454536
+.194302
+.045873
+-.159930
+.092621
+.111992
+-.322734
+.392176
+-.245455
+-.065839
+.378552
+-.496412
+.293086
+.211922
+-.844733
+1.345676
+-1.488071
+1.191427
+-.568346
+-.125061
+.613175
+-.733422
+.506385
+-.110363
+-.218138
+.302020
+-.101969
+-.276102
+.642377
+-.821441
+.738703
+-.449955
+.098597
+.171648
+-.293124
+.294204
+-.258767
+.261528
+-.323002
+.404450
+-.432198
+.331908
+-.060471
+-.367587
+.866914
+-1.295577
+1.503325
+-1.397500
+.991143
+-.401988
+-.200308
+.668755
+-.932651
+1.002555
+-.932666
+.775166
+-.562441
+.325732
+-.121864
+.029928
+-.106995
+.335595
+-.611962
+.794432
+-.781002
+.561711
+-.214272
+-.144042
+.411561
+-.536288
+.524047
+-.427623
+.323283
+-.281220
+.342220
+-.511797
+.768606
+-1.070221
+1.345446
+-1.488360
+1.384660
+-.978863
+.344396
+.308905
+-.723956
+.741249
+-.401255
+-.077274
+.437399
+-.545578
+.458754
+-.352941
+.374713
+-.531385
+.697728
+-.722871
+.549366
+-.257106
+.009018
+.055776
+.091746
+-.353242
+.556877
+-.545998
+.256101
+.254151
+-.826436
+1.265829
+-1.414834
+1.210151
+-.704168
+.046398
+.567678
+-.963267
+1.044896
+-.824880
+.411352
+.036083
+-.361012
+.453487
+-.273763
+-.138627
+.667044
+-1.138295
+1.374011
+-1.266652
+.843780
+-.271054
+-.225305
+.476887
+-.454226
+.254869
+-.014095
+-.185585
+.335973
+-.452873
+.515660
+-.461704
+.242516
+.112622
+-.488502
+.745329
+-.804238
+.693150
+-.522041
+.410214
+-.418872
+.530678
+-.678849
+.793130
+-.827912
+.764058
+-.604144
+.380895
+-.170347
+.077330
+-.175134
+.429706
+-.676259
+.694869
+-.355901
+-.263610
+.889801
+-1.200452
+1.020915
+-.435843
+-.258373
+.727008
+-.782066
+.467144
+-.005303
+-.340089
+.400149
+-.160118
+-.268529
+.724820
+-1.070295
+1.224320
+-1.164520
+.915019
+-.539510
+.136984
+.175016
+-.296983
+.190556
+.099732
+-.465695
+.789246
+-.999306
+1.096291
+-1.129675
+1.145946
+-1.145182
+1.080256
+-.901693
+.616039
+-.308943
+.105791
+-.089163
+.231487
+-.397296
+.422660
+-.222485
+-.146020
+.507675
+-.668349
+.529656
+-.152040
+-.271246
+.516637
+-.452390
+.108153
+.351567
+-.732650
+.922995
+-.933423
+.846623
+-.726805
+.571991
+-.347263
+.059333
+.207083
+-.334638
+.264206
+-.048248
+-.185127
+.327190
+-.357856
+.328716
+-.281770
+.187932
+.028271
+-.394486
+.815081
+-1.095698
+1.063750
+-.693984
+.136168
+.381670
+-.699924
+.812389
+-.831900
+.878267
+-.986723
+1.105560
+-1.167006
+1.153430
+-1.095805
+1.013300
+-.864658
+.572479
+-.111400
+-.419516
+.820693
+-.917975
+.702821
+-.370353
+.205949
+-.388254
+.851034
+-1.312527
+1.460826
+-1.166365
+.570903
+.008662
+-.291473
+.211616
+.052592
+-.210420
+.058142
+.383747
+-.877981
+1.112999
+-.891810
+.255227
+.529999
+-1.108791
+1.220717
+-.827390
+.120431
+.583772
+-.998824
+.992222
+-.623818
+.091877
+.378061
+-.641531
+.685719
+-.599846
+.490442
+-.401845
+.295862
+-.099087
+-.224389
+.632488
+-1.022703
+1.286430
+-1.356086
+1.219381
+-.907836
+.481998
+-.023786
+-.373837
+.632098
+-.720075
+.670814
+-.558695
+.446140
+-.338385
+.184785
+.069803
+-.423560
+.797281
+-1.073502
+1.164478
+-1.057199
+.808783
+-.507985
+.238161
+-.058856
+-.003623
+-.031429
+.094238
+-.091928
+-.029500
+.228662
+-.374183
+.329226
+-.062911
+-.301215
+.552138
+-.536672
+.276723
+.035449
+-.168274
+.014816
+.329825
+-.631496
+.670650
+-.376862
+-.141088
+.673526
+-1.030277
+1.124734
+-.985948
+.714830
+-.426037
+.206297
+-.095245
+.080476
+-.102011
+.072541
+.079661
+-.356676
+.661330
+-.829849
+.727902
+-.355826
+-.118579
+.441986
+-.429304
+.083869
+.403734
+-.776200
+.860676
+-.648699
+.266853
+.120355
+-.400995
+.551211
+-.614102
+.649799
+-.688154
+.706884
+-.646729
+.457383
+-.146027
+-.207817
+.487390
+-.601184
+.526881
+-.306783
+.007703
+.314109
+-.615151
+.847124
+-.955708
+.913317
+-.759045
+.598064
+-.539548
+.609121
+-.707468
+.663375
+-.359686
+-.155149
+.662591
+-.900492
+.745558
+-.321289
+-.060198
+.098601
+.285558
+-.885259
+1.338734
+-1.370834
+.974649
+-.407776
+.012406
+.008979
+.291799
+-.669994
+.866378
+-.773226
+.481390
+-.192686
+.068921
+-.122106
+.215674
+-.173305
+-.077501
+.427653
+-.638026
+.498781
+.008862
+-.669392
+1.154675
+-1.234021
+.922419
+-.455347
+.109240
+-.005433
+.048288
+-.039346
+-.131236
+.375128
+-.468706
+.239206
+.274047
+-.812038
+1.051852
+-.814458
+.180178
+.560465
+-1.078971
+1.189708
+-.933036
+.523916
+-.209150
+.122307
+-.220946
+.338554
+-.313262
+.105486
+.176206
+-.357492
+.327241
+-.117724
+-.121042
+.229243
+-.145928
+-.058001
+.236765
+-.267482
+.119505
+.142108
+-.406160
+.578089
+-.621300
+.565595
+-.486436
+.463132
+-.528974
+.638106
+-.678125
+.537534
+-.196116
+-.223098
+.490260
+-.389196
+-.141832
+.935143
+-1.639690
+1.876551
+-1.429060
+.369140
+.950671
+-2.042888
+2.500202
+-2.176317
+1.242870
+-.102625
+-.796912
+1.153036
+-.912685
+.253706
+.529874
+-1.167265
+1.505327
+-1.527744
+1.315203
+-.984032
+.634345
+-.323533
+.069837
+.118072
+-.206733
+.133082
+.149785
+-.599959
+1.052544
+-1.277333
+1.112445
+-.583287
+-.090338
+.619005
+-.818586
+.712946
+-.495962
+.386856
+-.482353
+.699784
+-.837503
+.707685
+-.261815
+-.359838
+.884514
+-1.046189
+.737699
+-.088263
+-.588577
+.956325
+-.834242
+.286890
+.425074
+-.993650
+1.217143
+-1.075401
+.703140
+-.297936
+.022806
+.050422
+.057726
+-.274753
+.528848
+-.783130
+1.035102
+-1.286800
+1.510305
+-1.635875
+1.575807
+-1.273930
+.753197
+-.131264
+-.412545
+.711602
+-.693743
+.424776
+-.080733
+-.144270
+.143705
+.048983
+-.297512
+.463698
+-.498644
+.456790
+-.426228
+.437020
+-.429149
+.313232
+-.075649
+-.164696
+.210305
+.075573
+-.643987
+1.250301
+-1.581598
+1.441575
+-.867415
+.097823
+.581725
+-1.003163
+1.175249
+-1.210565
+1.197481
+-1.130775
+.953366
+-.655909
+.327863
+-.101473
+.035889
+-.052584
+-.008067
+.249427
+-.618665
+.934168
+-1.019785
+.833691
+-.486815
+.143179
+.106458
+-.290295
+.489926
+-.728710
+.916435
+-.901666
+.593149
+-.054857
+-.503115
+.839363
+-.827733
+.536809
+-.185760
+.001077
+-.066529
+.267982
+-.375560
+.212034
+.207839
+-.668850
+.890454
+-.715211
+.219420
+.332990
+-.662096
+.651924
+-.417841
+.219010
+-.276559
+.617282
+-1.044893
+1.259007
+-1.049322
+.443744
+.285476
+-.766958
+.742909
+-.220860
+-.526986
+1.116949
+-1.267188
+.945864
+-.369870
+-.137896
+.341115
+-.214314
+-.071892
+.283335
+-.277123
+.075875
+.177715
+-.338027
+.352697
+-.273525
+.190110
+-.151422
+.138427
+-.099149
+.003548
+.133504
+-.276466
+.409066
+-.545113
+.698157
+-.842122
+.908456
+-.832460
+.610641
+-.315426
+.049543
+.121145
+-.196467
+.210175
+-.176394
+.075648
+.098929
+-.282318
+.337213
+-.137347
+-.321363
+.878484
+-1.287127
+1.368357
+-1.129321
+.753024
+-.464652
+.376022
+-.426496
+.460697
+-.373331
+.198387
+-.068813
+.082554
+-.192127
+.219754
+.002764
+-.476458
+.992109
+-1.251624
+1.077740
+-.559351
+.017387
+.198002
+.055911
+-.609419
+1.083409
+-1.133043
+.667574
+.098086
+-.785732
+1.086277
+-.928648
+.489515
+-.060189
+-.128409
+.014980
+.296488
+-.627398
+.831762
+-.856345
+.732039
+-.522208
+.277348
+-.029863
+-.180145
+.290583
+-.246527
+.055359
+.189459
+-.357474
+.377366
+-.298339
+.253040
+-.341645
+.532568
+-.668859
+.581421
+-.220296
+-.298983
+.764523
+-.993828
+.925975
+-.631526
+.258211
+.038192
+-.144931
+.023586
+.274130
+-.617842
+.854688
+-.897744
+.790441
+-.683439
+.718025
+-.894352
+1.038336
+-.917695
+.435220
+.252326
+-.799481
+.891431
+-.460918
+-.258546
+.882284
+-1.116501
+.922568
+-.502790
+.140103
+-.015897
+.122206
+-.301173
+.359752
+-.177964
+-.240501
+.778218
+-1.251529
+1.476408
+-1.342627
+.877462
+-.262000
+-.234073
+.388495
+-.162930
+-.255520
+.555085
+-.493646
+.061569
+.502540
+-.863245
+.808631
+-.389759
+-.115722
+.388403
+-.271811
+-.138424
+.570188
+-.754351
+.588100
+-.186951
+-.193961
+.314353
+-.090630
+-.351695
+.744694
+-.830534
+.515281
+.068946
+-.636792
+.915037
+-.796167
+.384117
+.088691
+-.408598
+.495849
+-.426335
+.364693
+-.459246
+.755409
+-1.164439
+1.500791
+-1.575521
+1.304059
+-.766314
+.171589
+.261879
+-.437887
+.431658
+-.419719
+.542290
+-.802095
+1.074277
+-1.214094
+1.173452
+-1.033638
+.930183
+-.932061
+.973490
+-.896766
+.577543
+-.037110
+-.547202
+.946946
+-1.027886
+.830904
+-.534911
+.337911
+-.345329
+.533802
+-.790495
+.978902
+-.988279
+.762177
+-.322499
+-.213450
+.652705
+-.803871
+.583489
+-.080109
+-.480729
+.858679
+-.927549
+.723148
+-.385068
+.045917
+.244635
+-.510188
+.774341
+-.995983
+1.075368
+-.932902
+.598275
+-.230466
+.035032
+-.124928
+.425140
+-.702777
+.716740
+-.386483
+-.146959
+.619538
+-.832299
+.784892
+-.650526
+.615088
+-.713098
+.795451
+-.656368
+.218338
+.373843
+-.829301
+.907559
+-.594070
+.125057
+.162433
+-.055264
+-.392033
+.896909
+-1.144294
+.997867
+-.575418
+.139492
+.105957
+-.153307
+.161363
+-.292260
+.553506
+-.774213
+.732403
+-.331148
+-.310735
+.915323
+-1.200712
+1.026393
+-.446555
+-.335440
+1.060963
+-1.503813
+1.529860
+-1.132015
+.441235
+.301767
+-.827286
+.951032
+-.666889
+.155711
+.309984
+-.517621
+.430559
+-.193013
+.020019
+-.047746
+.247144
+-.458745
+.518771
+-.382287
+.153958
+-.008019
+.060955
+-.291208
+.560462
+-.712603
+.674465
+-.489834
+.274456
+-.134282
+.104840
+-.144002
+.172134
+-.129356
+.017155
+.098280
+-.125284
+.011404
+.204857
+-.395860
+.413773
+-.192043
+-.189368
+.531984
+-.636947
+.441783
+-.079501
+-.191572
+.152250
+.224092
+-.734814
+1.061574
+-.967481
+.451759
+.241308
+-.767301
+.885116
+-.585078
+.063326
+.424884
+-.719902
+.816577
+-.809847
+.795171
+-.807174
+.825217
+-.812938
+.745931
+-.615959
+.430731
+-.221296
+.042957
+.048953
+-.039004
+-.029645
+.083346
+-.075943
+.028544
+-.016232
+.111571
+-.327747
+.599652
+-.810383
+.843479
+-.634491
+.202056
+.351302
+-.870643
+1.203635
+-1.259302
+1.046139
+-.671985
+.303170
+-.096681
+.131367
+-.368988
+.667348
+-.845213
+.769930
+-.423423
+-.087949
+.582983
+-.887998
+.912956
+-.689764
+.358050
+-.101226
+.055315
+-.232077
+.503979
+-.672969
+.593462
+-.273157
+-.122658
+.376871
+-.368344
+.155863
+.066700
+-.114416
+-.051196
+.294281
+-.408533
+.275647
+.040360
+-.334859
+.411045
+-.226131
+-.072496
+.248463
+-.142967
+-.210989
+.604135
+-.781804
+.600156
+-.108727
+-.483360
+.925498
+-1.051736
+.847180
+-.431941
+-.012157
+.324451
+-.419087
+.297924
+-.033081
+-.264524
+.481492
+-.538541
+.419125
+-.175880
+-.093776
+.294897
+-.380832
+.371673
+-.335499
+.343028
+-.421063
+.531105
+-.587877
+.511162
+-.281560
+-.037017
+.328242
+-.491283
+.500152
+-.411612
+.316231
+-.269963
+.258697
+-.222241
+.117006
+.035480
+-.157805
+.179300
+-.100124
+-.003019
+.040913
+.008801
+-.082664
+.096971
+-.038859
+-.009340
+-.053351
+.235242
+-.415617
+.430412
+-.212777
+-.136069
+.414270
+-.473531
+.333795
+-.164978
+.151085
+-.343568
+.614093
+-.739457
+.555246
+-.070242
+-.534696
+1.017821
+-1.219205
+1.139877
+-.909964
+.677759
+-.504400
+.339916
+-.092811
+-.265840
+.649063
+-.897830
+.892433
+-.646285
+.307209
+-.061480
+.012941
+-.127884
+.282109
+-.363990
+.347606
+-.285678
+.245362
+-.252706
+.289429
+-.327160
+.352378
+-.357716
+.320803
+-.207675
+.006880
+.241171
+-.459958
+.594463
+-.661241
+.739162
+-.899899
+1.135669
+-1.351023
+1.432702
+-1.340105
+1.135907
+-.927650
+.772147
+-.632074
+.426499
+-.128060
+-.186325
+.382263
+-.372991
+.192338
+.021573
+-.110411
+-.021017
+.371170
+-.855913
+1.341244
+-1.678806
+1.748769
+-1.508013
+1.020107
+-.437351
+-.066894
+.377581
+-.479623
+.438755
+-.342620
+.246964
+-.159967
+.064252
+.051217
+-.177490
+.295528
+-.392033
+.460190
+-.484067
+.427140
+-.247586
+-.060306
+.428901
+-.722314
+.796876
+-.587534
+.163356
+.292624
+-.575740
+.569973
+-.306023
+-.069053
+.386933
+-.552165
+.575916
+-.536568
+.504936
+-.491572
+.451785
+-.340346
+.171973
+-.038413
+.061402
+-.307286
+.721732
+-1.136450
+1.353401
+-1.255677
+.872729
+-.357528
+-.105038
+.393842
+-.490466
+.447088
+-.320514
+.129572
+.132389
+-.445991
+.726689
+-.843711
+.697641
+-.304637
+-.181337
+.538374
+-.600478
+.352166
+.071264
+-.473498
+.709337
+-.743126
+.627880
+-.441536
+.237776
+-.040787
+-.132617
+.258191
+-.313319
+.295327
+-.224537
+.125764
+-.006515
+-.145509
+.342340
+-.572682
+.796775
+-.962656
+1.027740
+-.970357
+.791362
+-.516927
+.206488
+.046430
+-.137243
+-.002694
+.358226
+-.813695
+1.184730
+-1.290561
+1.036813
+-.472521
+-.210399
+.747871
+-.925635
+.695990
+-.217881
+-.221275
+.370198
+-.166082
+-.230184
+.545161
+-.575970
+.315793
+.062787
+-.344593
+.419277
+-.332066
+.212951
+-.154298
+.138377
+-.068078
+-.132331
+.433062
+-.701462
+.791016
+-.648323
+.356607
+-.083609
+-.028234
+-.048061
+.213107
+-.312952
+.244221
+-.024610
+-.217029
+.327109
+-.236984
+.020374
+.149730
+-.125507
+-.094702
+.344393
+-.397025
+.136252
+.336701
+-.747287
+.823647
+-.484100
+-.097992
+.600713
+-.760380
+.537992
+-.136245
+-.137954
+.069073
+.340802
+-.887229
+1.296382
+-1.381104
+1.123470
+-.647683
+.121289
+.338084
+-.692148
+.945068
+-1.087806
+1.078456
+-.877325
+.504698
+-.066178
+-.285588
+.433092
+-.361087
+.159091
+.042676
+-.154771
+.168289
+-.130475
+.086487
+-.039967
+-.036567
+.157566
+-.291826
+.375020
+-.359504
+.259263
+-.151115
+.129249
+-.247486
+.490883
+-.789952
+1.057992
+-1.221572
+1.233717
+-1.080873
+.794518
+-.457451
+.181925
+-.055366
+.084600
+-.186354
+.242226
+-.181999
+.030419
+.119902
+-.183397
+.138254
+-.020314
+-.128816
+.300753
+-.506507
+.728850
+-.897878
+.926055
+-.779422
+.521379
+-.284397
+.185455
+-.249646
+.400271
+-.520327
+.534452
+-.448981
+.326898
+-.229474
+.179417
+-.172888
+.217058
+-.343824
+.574041
+-.859904
+1.065440
+-1.023731
+.647474
+-.017611
+-.623657
+.988100
+-.900149
+.397240
+.294546
+-.891980
+1.201978
+-1.188906
+.932714
+-.533379
+.049476
+.485024
+-.999244
+1.355952
+-1.401494
+1.069905
+-.459651
+-.188179
+.613073
+-.684661
+.476240
+-.206904
+.088063
+-.181251
+.367072
+-.443351
+.275583
+.109572
+-.545766
+.832537
+-.843890
+.577296
+-.137889
+-.310520
+.600499
+-.617082
+.351305
+.072870
+-.433849
+.516694
+-.238390
+-.286848
+.797147
+-1.027040
+.857129
+-.374004
+-.192995
+.607065
+-.738009
+.590279
+-.251552
+-.178193
+.619961
+-1.003577
+1.247991
+-1.275137
+1.059330
+-.671574
+.270958
+-.031428
+.043730
+-.259083
+.518461
+-.653802
+.593668
+-.399004
+.205048
+-.115195
+.128628
+-.153847
+.090069
+.092381
+-.333348
+.529573
+-.600767
+.524092
+-.324913
+.050693
+.239814
+-.467239
+.527486
+-.320329
+-.189504
+.915120
+-1.641901
+2.097329
+-2.071891
+1.529034
+-.641155
+-.272876
+.880362
+-.974288
+.556361
+.170440
+-.893723
+1.326338
+-1.325054
+.939843
+-.372737
+-.130165
+.395770
+-.390951
+.211665
+-.010535
+-.092501
+.070076
+.007907
+-.022871
+-.117290
+.416440
+-.776940
+1.043411
+-1.079314
+.832940
+-.358869
+-.207160
+.696711
+-.956361
+.886996
+-.478556
+-.166498
+.844790
+-1.318768
+1.422983
+-1.153516
+.677255
+-.243333
+.045636
+-.122518
+.355647
+-.562736
+.619106
+-.530297
+.415546
+-.418508
+.603199
+-.899616
+1.134360
+-1.131970
+.827921
+-.321450
+-.171204
+.439768
+-.403380
+.154406
+.106360
+-.199174
+.072050
+.184865
+-.419435
+.527501
+-.510969
+.448501
+-.414315
+.417585
+-.409987
+.345803
+-.235215
+.142417
+-.132614
+.215584
+-.332853
+.397058
+-.351254
+.206001
+-.032392
+-.078824
+.064864
+.078691
+-.294161
+.482028
+-.537703
+.394703
+-.059104
+-.383965
+.801937
+-1.071443
+1.125681
+-.963800
+.626053
+-.169591
+-.325759
+.734718
+-.896221
+.687186
+-.125847
+-.582613
+1.124471
+-1.251207
+.932621
+-.372600
+-.129884
+.374848
+-.370586
+.288048
+-.307948
+.482088
+-.707420
+.820013
+-.729228
+.489405
+-.256635
+.164778
+-.215166
+.268385
+-.152474
+-.189879
+.631785
+-.935453
+.922384
+-.609679
+.198850
+.083050
+-.166096
+.192011
+-.386203
+.842614
+-1.397062
+1.705239
+-1.484434
+.744935
+.167496
+-.765870
+.729434
+-.116057
+-.667464
+1.118835
+-.948555
+.242675
+.614135
+-1.186331
+1.234108
+-.810640
+.178680
+.367644
+-.652812
+.667714
+-.520297
+.344825
+-.227111
+.175049
+-.134602
+.033393
+.171785
+-.464783
+.769798
+-.979626
+.999062
+-.784886
+.366592
+.158580
+-.653784
+.985179
+-1.066900
+.893977
+-.547298
+.160637
+.141362
+-.302273
+.351245
+-.362991
+.389184
+-.416020
+.385148
+-.260465
+.081415
+.048507
+-.034088
+-.135555
+.369161
+-.529012
+.517168
+-.330167
+.048722
+.220477
+-.404545
+.487781
+-.493545
+.448668
+-.360655
+.223397
+-.044009
+-.132524
+.225575
+-.156851
+-.092930
+.446465
+-.747043
+.835187
+-.645209
+.257922
+.134449
+-.337416
+.268769
+-.002248
+-.287837
+.440033
+-.399523
+.235204
+-.079893
+.040196
+-.132187
+.274162
+-.334355
+.206319
+.126054
+-.568331
+.954134
+-1.123604
+.998287
+-.611020
+.079892
+.450355
+-.863448
+1.101554
+-1.168481
+1.113190
+-.999691
+.870541
+-.721923
+.510986
+-.200164
+-.188539
+.552868
+-.749880
+.678843
+-.355293
+-.073750
+.387121
+-.390963
+.015388
+.637555
+-1.319582
+1.735581
+-1.685458
+1.182719
+-.473898
+-.076849
+.189733
+.162692
+-.738486
+1.181261
+-1.244891
+.932213
+-.455422
+.060853
+.140161
+-.208890
+.274477
+-.392638
+.494004
+-.460405
+.250590
+.044557
+-.269458
+.332474
+-.278106
+.237794
+-.304038
+.441977
+-.517350
+.416416
+-.152904
+-.131684
+.275911
+-.225532
+.074552
+.013742
+.058676
+-.244173
+.389878
+-.366997
+.182947
+.018536
+-.072821
+-.068132
+.291115
+-.410107
+.317205
+-.072135
+-.143861
+.173251
+-.009366
+-.196190
+.251626
+-.076931
+-.226966
+.445321
+-.405359
+.107416
+.264927
+-.466777
+.360833
+-.012102
+-.361105
+.543608
+-.470819
+.258432
+-.097760
+.104812
+-.243770
+.379354
+-.403988
+.325867
+-.242299
+.227256
+-.239853
+.145151
+.160594
+-.625049
+1.031335
+-1.131341
+.827277
+-.259545
+-.274462
+.515094
+-.405660
+.108331
+.132029
+-.166637
+.033123
+.095279
+-.047948
+-.222002
+.607586
+-.911588
+.954474
+-.669652
+.147755
+.386877
+-.666033
+.505270
+.089348
+-.900847
+1.593815
+-1.877585
+1.648312
+-1.029344
+.294454
+.271972
+-.498236
+.377959
+-.044643
+-.306619
+.512354
+-.512414
+.370589
+-.233006
+.242494
+-.453285
+.793314
+-1.096032
+1.185905
+-.972944
+.507353
+.037143
+-.447935
+.585591
+-.461135
+.228851
+-.092423
+.178404
+-.456575
+.759429
+-.889807
+.747505
+-.394176
+.016797
+.185689
+-.121709
+-.139491
+.409975
+-.494597
+.306923
+.076542
+-.455588
+.616695
+-.449604
+.000227
+.569389
+-1.079541
+1.417699
+-1.555116
+1.502898
+-1.265379
+.843190
+-.281676
+-.292194
+.697546
+-.787422
+.533999
+-.045813
+-.494248
+.920121
+-1.139821
+1.136167
+-.938728
+.606159
+-.225916
+-.093940
+.261265
+-.247093
+.102163
+.078857
+-.218940
+.294981
+-.323172
+.317420
+-.268476
+.164177
+-.025021
+-.088733
+.114549
+-.040119
+-.076088
+.138811
+-.082388
+-.077673
+.245252
+-.298303
+.165407
+.121548
+-.432830
+.607861
+-.549950
+.292242
+.012118
+-.178419
+.105785
+.157085
+-.442531
+.571019
+-.459952
+.160452
+.195095
+-.485530
+.662031
+-.741395
+.753922
+-.700771
+.558307
+-.319661
+.031132
+.213715
+-.322686
+.262361
+-.083588
+-.103517
+.189866
+-.127134
+-.047745
+.236890
+-.341481
+.323414
+-.231569
+.172100
+-.234195
+.415614
+-.602147
+.628941
+-.396241
+-.037624
+.462771
+-.639784
+.464595
+-.058570
+-.295465
+.342363
+-.041813
+-.385249
+.596535
+-.366195
+-.245855
+.917716
+-1.271581
+1.120421
+-.583457
+-.006032
+.328668
+-.279559
+.009429
+.204774
+-.154189
+-.176654
+.622390
+-.957535
+1.034902
+-.857055
+.550472
+-.272165
+.113301
+-.059374
+.027197
+.052072
+-.166242
+.222333
+-.115071
+-.185858
+.593584
+-.939035
+1.061938
+-.901282
+.531978
+-.127562
+-.129951
+.144916
+.042709
+-.282931
+.405746
+-.327384
+.107607
+.084616
+-.084918
+-.142634
+.460146
+-.634640
+.500835
+-.097513
+-.330194
+.481367
+-.206900
+-.374353
+.940123
+-1.168365
+.937721
+-.390429
+-.171458
+.471507
+-.401913
+.050734
+.374624
+-.663241
+.692512
+-.465060
+.090705
+.269368
+-.471307
+.442328
+-.198783
+-.173930
+.561491
+-.856739
+.981048
+-.897917
+.629308
+-.268140
+-.037641
+.145297
+-.001927
+-.302431
+.564012
+-.574920
+.248142
+.326665
+-.934773
+1.357046
+-1.476596
+1.308229
+-.951702
+.521737
+-.107706
+-.225948
+.427676
+-.466980
+.362756
+-.200699
+.109007
+-.193618
+.470091
+-.838051
+1.120960
+-1.155191
+.882359
+-.393657
+-.103397
+.385387
+-.331073
+-.008594
+.432594
+-.697331
+.651006
+-.317962
+-.116897
+.416050
+-.428204
+.176926
+.154474
+-.334480
+.224124
+.140504
+-.574920
+.861665
+-.876767
+.647829
+-.316600
+.043567
+.078176
+-.053151
+-.042141
+.107666
+-.058692
+-.153071
+.524679
+-.984607
+1.386273
+-1.540262
+1.298864
+-.662481
+-.162689
+.820818
+-.977621
+.520008
+.345651
+-1.180352
+1.551584
+-1.283563
+.559565
+.191146
+-.549983
+.346295
+.266906
+-.929498
+1.291753
+-1.192584
+.705551
+-.056002
+-.512647
+.838948
+-.873778
+.659691
+-.298056
+-.076487
+.322388
+-.332933
+.087266
+.318827
+-.693466
+.825110
+-.584607
+.003382
+.714293
+-1.260571
+1.355893
+-.892221
+.016508
+.905884
+-1.452797
+1.358682
+-.656535
+-.343916
+1.230069
+-1.698018
+1.668538
+-1.257296
+.660019
+-.056693
+-.413272
+.638944
+-.551890
+.179779
+.317480
+-.693525
+.740378
+-.409922
+-.160779
+.739910
+-1.135782
+1.276770
+-1.194292
+.952230
+-.602156
+.199698
+.157287
+-.337902
+.256984
+.034839
+-.342280
+.435485
+-.214728
+-.194769
+.503491
+-.443199
+-.051466
+.795064
+-1.467413
+1.805705
+-1.738391
+1.383420
+-.938925
+.562438
+-.318484
+.201633
+-.182555
+.225507
+-.275199
+.252867
+-.093085
+-.195442
+.501124
+-.655608
+.539298
+-.174496
+-.268018
+.566620
+-.591027
+.391058
+-.164459
+.118832
+-.319473
+.631165
+-.800354
+.626423
+-.105960
+-.549432
+1.033588
+-1.123130
+.796867
+-.229104
+-.323980
+.663244
+-.727965
+.589441
+-.383819
+.236519
+-.213744
+.307188
+-.442945
+.510378
+-.412565
+.125903
+.264752
+-.592264
+.696148
+-.526103
+.187592
+.112097
+-.192435
+.021508
+.253287
+-.395377
+.239489
+.181662
+-.637475
+.840269
+-.641236
+.144391
+.351996
+-.555920
+.382287
+-.003206
+-.292500
+.322847
+-.145073
+-.003942
+-.094445
+.465075
+-.919066
+1.190659
+-1.112645
+.702708
+-.123827
+-.419546
+.765057
+-.824252
+.588258
+-.137555
+-.353844
+.658606
+-.595614
+.146112
+.495840
+-.996934
+1.061342
+-.609151
+-.163003
+.890186
+-1.252739
+1.154771
+-.749618
+.305418
+-.017457
+-.095993
+.152053
+-.267702
+.445544
+-.567511
+.492871
+-.179544
+-.264720
+.639245
+-.775470
+.644821
+-.377846
+.184441
+-.227357
+.526598
+-.946844
+1.269161
+-1.304533
+.991590
+-.432228
+-.152744
+.530911
+-.578899
+.351910
+-.055367
+-.075116
+-.079570
+.440653
+-.773798
+.834856
+-.527030
+-.033801
+.586926
+-.878457
+.794304
+-.396924
+-.136212
+.611455
+-.889992
+.911356
+-.691609
+.319128
+.059035
+-.283130
+.259886
+-.031822
+-.222248
+.280090
+-.018595
+-.484812
+.970095
+-1.137755
+.838009
+-.185517
+-.484037
+.802643
+-.593808
+-.010580
+.642073
+-.918485
+.679836
+-.085652
+-.490704
+.702783
+-.450522
+-.063751
+.475349
+-.496835
+.097988
+.487825
+-.925239
+.990049
+-.691069
+.229101
+.161520
+-.367134
+.438320
+-.506990
+.655280
+-.842584
+.941876
+-.847112
+.561470
+-.198197
+-.099750
+.253195
+-.281949
+.263336
+-.258453
+.270263
+-.264613
+.227998
+-.205108
+.275814
+-.482216
+.761960
+-.948746
+.859564
+-.423182
+-.237126
+.837977
+-1.084894
+.850271
+-.262806
+-.355796
+.669923
+-.513803
+-.028023
+.678364
+-1.117989
+1.144864
+-.767056
+.190151
+.295549
+-.476014
+.334525
+-.052335
+-.123546
+.060749
+.161985
+-.322245
+.239488
+.066768
+-.377229
+.440260
+-.179938
+-.220134
+.430696
+-.211657
+-.401880
+1.099161
+-1.481356
+1.306700
+-.626185
+-.272497
+1.056764
+-1.532891
+1.703019
+-1.685604
+1.590008
+-1.450225
+1.251576
+-.999074
+.751659
+-.592872
+.570670
+-.661521
+.784340
+-.847276
+.793702
+-.624754
+.395422
+-.188732
+.076041
+-.078235
+.148634
+-.193878
+.128063
+.069634
+-.330927
+.528988
+-.552281
+.380358
+-.111646
+-.084649
+.073827
+.145644
+-.421543
+.533912
+-.341913
+-.106166
+.584181
+-.825283
+.697853
+-.295444
+-.129188
+.343264
+-.293646
+.123127
+-.028084
+.071764
+-.110349
+-.096953
+.672567
+-1.471732
+2.127217
+-2.268649
+1.764575
+-.818317
+-.146948
+.734480
+-.791550
+.466879
+-.085512
+-.066848
+-.091375
+.422702
+-.699927
+.777369
+-.678951
+.545515
+-.492973
+.500632
+-.423203
+.119831
+.402918
+-.952409
+1.255764
+-1.138491
+.646300
+-.021306
+-.449774
+.606087
+-.485459
+.260585
+-.098753
+.051870
+-.049265
+-.017332
+.191496
+-.411054
+.552332
+-.518491
+.303105
+.012320
+-.313390
+.509738
+-.554552
+.430904
+-.142198
+-.268818
+.693257
+-.970715
+.966003
+-.663893
+.200561
+.211550
+-.419122
+.419036
+-.333169
+.293256
+-.336486
+.395306
+-.376415
+.249613
+-.071278
+-.064601
+.094845
+-.018014
+-.123064
+.276681
+-.401278
+.462149
+-.425256
+.268336
+-.007373
+-.284155
+.487870
+-.488907
+.237188
+.214939
+-.724245
+1.114072
+-1.247463
+1.079687
+-.668445
+.143902
+.343141
+-.672438
+.788999
+-.712642
+.521862
+-.318731
+.188246
+-.167373
+.234239
+-.320251
+.340674
+-.234493
+.000586
+.286991
+-.498886
+.507261
+-.258596
+-.176049
+.608975
+-.811260
+.625010
+-.055711
+-.709685
+1.376965
+-1.678069
+1.495850
+-.914390
+.172271
+.449362
+-.740694
+.628071
+-.177959
+-.439184
+1.001828
+-1.299571
+1.203483
+-.726349
+.035259
+.611795
+-.987861
+1.012528
+-.787499
+.525478
+-.414851
+.504844
+-.682653
+.753728
+-.572968
+.143710
+.376624
+-.767018
+.871242
+-.681961
+.327780
+.021597
+-.261741
+.395121
+-.485515
+.571934
+-.618799
+.545330
+-.306383
+-.047153
+.383372
+-.568384
+.546251
+-.360416
+.110297
+.112070
+-.255925
+.304517
+-.252906
+.101855
+.127757
+-.380907
+.575692
+-.632521
+.507711
+-.213208
+-.183834
+.577442
+-.850551
+.912473
+-.738560
+.394364
+-.021159
+-.223691
+.246767
+-.071119
+-.176609
+.341156
+-.329085
+.157134
+.068778
+-.224248
+.238042
+-.122263
+-.050680
+.204231
+-.309948
+.403654
+-.553858
+.799248
+-1.094297
+1.304351
+-1.266836
+.893518
+-.254099
+-.420645
+.838802
+-.808506
+.366288
+.219126
+-.590944
+.519612
+-.050719
+-.521752
+.847377
+-.747815
+.322376
+.139777
+-.369560
+.293540
+-.054262
+-.122766
+.103568
+.067303
+-.218329
+.188166
+.056528
+-.400030
+.655727
+-.682480
+.463856
+-.110610
+-.202107
+.318719
+-.166943
+-.217783
+.704735
+-1.109047
+1.254619
+-1.045900
+.522327
+.137393
+-.677320
+.873614
+-.639781
+.072609
+.588547
+-1.070537
+1.188143
+-.917463
+.387968
+.193690
+-.639311
+.845318
+-.809060
+.607426
+-.359307
+.182657
+-.147618
+.237733
+-.346101
+.326832
+-.086225
+-.339711
+.778433
+-.999804
+.840087
+-.299564
+-.442382
+1.104624
+-1.435528
+1.333474
+-.896036
+.369760
+-.020723
+-.009058
+-.220658
+.486261
+-.537915
+.257858
+.257768
+-.747129
+.934097
+-.692285
+.123992
+.489497
+-.834579
+.726984
+-.205863
+-.482520
+1.000323
+-1.079973
+.659661
+.073279
+-.760514
+1.046461
+-.766124
+.044485
+.758809
+-1.241774
+1.185571
+-.677842
+.053293
+.315402
+-.243660
+-.169201
+.633981
+-.883715
+.851505
+-.691320
+.636893
+-.810383
+1.122898
+-1.334710
+1.226537
+-.759385
+.117249
+.390206
+-.501240
+.150885
+.483963
+-1.065073
+1.260714
+-.920106
+.162359
+.679541
+-1.242665
+1.344430
+-1.082819
+.750446
+-.615163
+.724805
+-.884859
+.828427
+-.447219
+-.098370
+.478255
+-.427405
+-.058280
+.705942
+-1.136921
+1.103063
+-.631415
+-.008694
+.482627
+-.590586
+.365262
+-.015654
+-.231635
+.279568
+-.200218
+.153274
+-.255003
+.495613
+-.755644
+.895643
+-.846346
+.639531
+-.371766
+.139807
+.004697
+-.060293
+.053500
+-.016936
+-.017053
+.014144
+.055975
+-.200691
+.387583
+-.550209
+.619669
+-.562084
+.394456
+-.170195
+-.051038
+.225441
+-.329533
+.355329
+-.308160
+.208690
+-.092140
+.000154
+.031525
+.014566
+-.125239
+.246548
+-.289504
+.167160
+.143655
+-.557157
+.899577
+-1.003199
+.815155
+-.437753
+.063697
+.144923
+-.140956
+-.015433
+.229434
+-.434025
+.594764
+-.676748
+.629764
+-.420124
+.080616
+.275004
+-.498144
+.484594
+-.232370
+-.159259
+.544421
+-.801722
+.881948
+-.812515
+.666111
+-.517514
+.412393
+-.358187
+.331538
+-.290909
+.189589
+.006351
+-.290910
+.592946
+-.778379
+.700780
+-.290861
+-.363292
+1.009342
+-1.330902
+1.120311
+-.425864
+-.433602
+1.023895
+-1.046469
+.530795
+.166783
+-.574634
+.402748
+.267660
+-1.029427
+1.403938
+-1.139064
+.356998
+.538016
+-1.120820
+1.196542
+-.881462
+.478702
+-.252774
+.263793
+-.362967
+.330513
+-.044195
+-.437509
+.920241
+-1.198110
+1.166317
+-.856357
+.393663
+.072350
+-.414890
+.543819
+-.414294
+.052387
+.420747
+-.811823
+.945417
+-.775232
+.430189
+-.142588
+.095451
+-.297693
+.580998
+-.720782
+.590511
+-.239198
+-.153828
+.402083
+-.421552
+.260396
+-.047075
+-.095004
+.111466
+-.031608
+-.062013
+.087593
+-.014583
+-.115061
+.211490
+-.200023
+.085780
+.028388
+.005181
+-.280769
+.759307
+-1.265218
+1.571100
+-1.524876
+1.144887
+-.624867
+.238952
+-.192214
+.495694
+-.940165
+1.196515
+-1.000967
+.326516
+.565133
+-1.239869
+1.326115
+-.737893
+-.252895
+1.153075
+-1.524233
+1.234668
+-.530935
+-.118319
+.308997
+.061167
+-.749466
+1.336347
+-1.488065
+1.146434
+-.536195
+.002199
+.209674
+-.089952
+-.155286
+.258453
+-.073425
+-.330048
+.716797
+-.842543
+.609744
+-.122405
+-.386701
+.697454
+-.717205
+.506593
+-.220179
+.013723
+.026222
+.097743
+-.318821
+.550308
+-.719828
+.776928
+-.683287
+.413147
+.016764
+-.505899
+.868157
+-.907025
+.541229
+.108756
+-.758532
+1.121923
+-1.092184
+.805481
+-.529668
+.457129
+-.560060
+.621613
+-.417945
+-.092855
+.721598
+-1.172075
+1.237717
+-.923960
+.419397
+.041772
+-.313089
+.378803
+-.304404
+.159872
+.018150
+-.209435
+.373950
+-.442051
+.345424
+-.064064
+-.349514
+.787935
+-1.134512
+1.304763
+-1.261722
+1.008453
+-.578962
+.042535
+.485608
+-.852876
+.916548
+-.617663
+.037834
+.609542
+-1.066757
+1.156526
+-.871716
+.375047
+.090053
+-.323783
+.262448
+.002903
+-.283038
+.392140
+-.247284
+-.084566
+.423170
+-.582542
+.486398
+-.212631
+-.067713
+.212780
+-.200224
+.118494
+-.075480
+.108136
+-.167980
+.184879
+-.141555
+.089255
+-.095138
+.176433
+-.283004
+.340557
+-.311116
+.217983
+-.120814
+.070547
+-.083027
+.144304
+-.230075
+.315489
+-.369828
+.350894
+-.217147
+-.039697
+.360950
+-.616677
+.652901
+-.380308
+-.143521
+.701951
+-1.011127
+.879366
+-.336152
+-.365975
+.894892
+-1.039647
+.831071
+-.497491
+.290621
+-.312013
+.464265
+-.552808
+.449332
+-.189072
+-.066315
+.161863
+-.069644
+-.094878
+.166570
+-.057720
+-.178558
+.390170
+-.434260
+.269649
+.024645
+-.301767
+.422782
+-.311215
+-.024949
+.493089
+-.933948
+1.168478
+-1.073771
+.654729
+-.058074
+-.496558
+.832195
+-.899386
+.774719
+-.585495
+.427155
+-.331717
+.290699
+-.289262
+.313700
+-.336742
+.314541
+-.214869
+.055339
+.089756
+-.131340
+.028736
+.175177
+-.374043
+.456888
+-.363862
+.107998
+.237373
+-.567988
+.781437
+-.809898
+.648744
+-.365951
+.076746
+.111093
+-.150401
+.071348
+.048417
+-.136956
+.168190
+-.167627
+.187452
+-.269591
+.415015
+-.572649
+.656800
+-.592449
+.367858
+-.056628
+-.219562
+.374073
+-.424523
+.483647
+-.662031
+.951267
+-1.187738
+1.145949
+-.707060
+-.021892
+.738611
+-1.118799
+1.017323
+-.558042
+.050665
+.207296
+-.110218
+-.208534
+.482419
+-.490985
+.193021
+.265465
+-.659757
+.828198
+-.751770
+.529921
+-.288043
+.095331
+.049537
+-.171033
+.264996
+-.295743
+.242881
+-.147241
+.102677
+-.188551
+.395228
+-.607977
+.673207
+-.505434
+.156655
+.207359
+-.414857
+.406903
+-.280915
+.221525
+-.360944
+.665560
+-.933694
+.914789
+-.475009
+-.301188
+1.143704
+-1.743696
+1.919729
+-1.697022
+1.255433
+-.791684
+.396224
+-.028370
+-.403082
+.924023
+-1.436568
+1.762262
+-1.752116
+1.382127
+-.769539
+.109146
+.416184
+-.692521
+.681636
+-.403719
+-.069913
+.610194
+-1.038413
+1.177160
+-.934672
+.372272
+.299618
+-.809755
+.954501
+-.694294
+.166242
+.387199
+-.729359
+.725816
+-.391222
+-.122174
+.585862
+-.789118
+.635952
+-.201816
+-.290666
+.582059
+-.521519
+.158832
+.283714
+-.548624
+.498290
+-.180637
+-.233800
+.581582
+-.792784
+.872410
+-.816175
+.563148
+-.050137
+-.671750
+1.374246
+-1.731444
+1.515503
+-.775253
+-.143006
+.770269
+-.784024
+.200328
+.634393
+-1.244495
+1.291014
+-.742560
+-.137049
+.955234
+-1.398797
+1.367084
+-.976953
+.464038
+-.051968
+-.139854
+.114415
+.048749
+-.259817
+.457275
+-.600147
+.638351
+-.508447
+.177356
+.296685
+-.750849
+.989727
+-.905955
+.557917
+-.134456
+-.175090
+.305421
+-.335070
+.389300
+-.512536
+.621383
+-.576810
+.310276
+.106098
+-.503643
+.734051
+-.758187
+.636825
+-.444293
+.195023
+.142676
+-.557118
+.919588
+-1.016978
+.692810
+.005332
+-.799552
+1.321468
+-1.332928
+.872607
+-.223852
+-.270063
+.411060
+-.237730
+-.037507
+.180055
+-.066810
+-.268708
+.680128
+-.992633
+1.075392
+-.876067
+.421707
+.194238
+-.825173
+1.291410
+-1.425138
+1.144786
+-.525013
+-.197191
+.716654
+-.820991
+.518870
+-.040529
+-.301015
+.298092
+.039308
+-.512632
+.869096
+-.943017
+.724072
+-.336689
+-.034190
+.226228
+-.164384
+-.108909
+.451285
+-.688062
+.703823
+-.506727
+.221306
+-.010412
+-.023538
+-.106671
+.294035
+-.412551
+.392519
+-.250317
+.062651
+.089793
+-.171599
+.206826
+-.252339
+.347853
+-.475000
+.555562
+-.497109
+.261316
+.091436
+-.418464
+.570205
+-.479280
+.203704
+.106423
+-.297355
+.296502
+-.140198
+-.066536
+.222750
+-.284262
+.266560
+-.208160
+.130910
+-.029190
+-.108141
+.266489
+-.395359
+.432225
+-.345126
+.161557
+.041271
+-.180425
+.213776
+-.154461
+.045902
+.077072
+-.206259
+.344429
+-.475245
+.549679
+-.503964
+.298473
+.046476
+-.437727
+.729449
+-.776037
+.503860
+.030531
+-.636214
+1.058141
+-1.096240
+.709501
+-.042567
+-.642518
+1.091638
+-1.175592
+.943685
+-.591170
+.353507
+-.372645
+.604275
+-.830600
+.792981
+-.377008
+-.273712
+.812017
+-.897243
+.430508
+.347904
+-.978336
+1.052350
+-.464393
+-.516390
+1.402293
+-1.776473
+1.535874
+-.934302
+.397842
+-.234679
+.437145
+-.713140
+.721646
+-.335774
+-.263213
+.726099
+-.794027
+.472783
+.000669
+-.352455
+.459401
+-.389422
+.290640
+-.247560
+.229935
+-.159012
+.008998
+.157968
+-.251371
+.242207
+-.195686
+.215380
+-.349701
+.542585
+-.671091
+.639492
+-.456423
+.236215
+-.124546
+.201450
+-.426720
+.659667
+-.735884
+.553899
+-.128356
+-.407934
+.848390
+-.990583
+.728358
+-.124195
+-.583564
+1.068778
+-1.076381
+.568805
+.235872
+-.971496
+1.319531
+-1.174683
+.683392
+-.143907
+-.159125
+.085633
+.322409
+-.891530
+1.407684
+-1.700113
+1.693252
+-1.421341
+1.007470
+-.611422
+.361358
+-.296261
+.348134
+-.377196
+.247821
+.089417
+-.552403
+.950626
+-1.077478
+.830031
+-.286963
+-.312773
+.689058
+-.670164
+.280420
+.285034
+-.773169
+.997181
+-.901848
+.551828
+-.072241
+-.413889
+.821241
+-1.103411
+1.230528
+-1.166144
+.870339
+-.340769
+-.331741
+.946424
+-1.257779
+1.106082
+-.531042
+-.223893
+.839693
+-1.104365
+1.024095
+-.786099
+.607029
+-.582264
+.642494
+-.634908
+.454289
+-.122126
+-.236734
+.488195
+-.573582
+.522142
+-.394647
+.219946
+.011214
+-.288711
+.524190
+-.567779
+.314380
+.177759
+-.667705
+.858077
+-.591891
+-.026109
+.683392
+-1.056460
+1.008331
+-.648872
+.230081
+.029983
+-.064162
+-.051035
+.191065
+-.278460
+.311459
+-.326075
+.338751
+-.319330
+.211403
+.019029
+-.343532
+.669786
+-.883304
+.907869
+-.744900
+.466697
+-.171185
+-.065417
+.206620
+-.243755
+.180319
+-.034295
+-.149582
+.303504
+-.367125
+.322308
+-.197078
+.032130
+.156553
+-.375691
+.610898
+-.788698
+.799451
+-.582142
+.202686
+.155837
+-.308028
+.206951
+.005203
+-.091429
+-.103328
+.528279
+-.955598
+1.142560
+-1.003133
+.658523
+-.333863
+.187624
+-.208013
+.252117
+-.187759
+.018055
+.113998
+-.045032
+-.262332
+.666480
+-.934329
+.905803
+-.610367
+.247816
+-.048797
+.119207
+-.378877
+.629591
+-.692878
+.516026
+-.181633
+-.166989
+.416798
+-.529781
+.528714
+-.457740
+.356929
+-.260136
+.196844
+-.180871
+.194477
+-.191312
+.126430
+.009433
+-.184518
+.356953
+-.511800
+.665309
+-.829253
+.970730
+-1.011592
+.876565
+-.553291
+.115411
+.309924
+-.604981
+.712347
+-.647102
+.474246
+-.271478
+.097522
+.023374
+-.097491
+.143039
+-.169847
+.172973
+-.145486
+.097919
+-.062854
+.075792
+-.146914
+.251119
+-.349260
+.424043
+-.496633
+.604412
+-.755972
+.904367
+-.968012
+.887676
+-.674468
+.409257
+-.195313
+.104016
+-.152529
+.316240
+-.547950
+.781804
+-.932419
+.916908
+-.703367
+.349776
+.011644
+-.248781
+.311200
+-.254292
+.186843
+-.186805
+.253003
+-.324004
+.335932
+-.265300
+.128297
+.045655
+-.229161
+.386284
+-.459123
+.384212
+-.141487
+-.202133
+.502668
+-.612990
+.476541
+-.171169
+-.134955
+.288928
+-.246111
+.084785
+.065127
+-.123461
+.115921
+-.144747
+.297793
+-.565374
+.827897
+-.926115
+.766141
+-.386817
+-.055102
+.369641
+-.431164
+.232878
+.121765
+-.471573
+.662335
+-.602359
+.300264
+.126161
+-.484892
+.591247
+-.366276
+-.103927
+.594905
+-.854295
+.737141
+-.285895
+-.293933
+.747177
+-.903440
+.755140
+-.440406
+.147989
+-.004925
+.012593
+-.066267
+.042819
+.102181
+-.295021
+.395312
+-.307608
+.072871
+.137436
+-.135194
+-.137263
+.539331
+-.807871
+.735022
+-.323116
+-.198750
+.514366
+-.419763
+-.054875
+.677455
+-1.164570
+1.337372
+-1.182510
+.800611
+-.309319
+-.212939
+.708618
+-1.090297
+1.231303
+-1.031481
+.515216
+.127095
+-.610889
+.712606
+-.405117
+-.123941
+.586592
+-.763751
+.617103
+-.279366
+-.053211
+.242394
+-.265928
+.191045
+-.104078
+.055788
+-.054787
+.093017
+-.164515
+.255553
+-.324940
+.311739
+-.181772
+-.023650
+.192314
+-.214894
+.075893
+.119957
+-.221667
+.154152
+.013099
+-.113398
+.012146
+.285660
+-.633919
+.844721
+-.806518
+.536902
+-.151393
+-.205333
+.410783
+-.385917
+.111678
+.343246
+-.809412
+1.064018
+-.945935
+.474813
+.123033
+-.530264
+.538291
+-.194067
+-.223202
+.395890
+-.202800
+-.177666
+.383503
+-.133862
+-.544028
+1.298402
+-1.675196
+1.430798
+-.710305
+-.048000
+.421948
+-.304216
+-.034835
+.169492
+.143535
+-.772204
+1.306676
+-1.365743
+.874580
+-.109973
+-.502307
+.671526
+-.403240
+-.052302
+.392620
+-.444009
+.220309
+.142083
+-.491017
+.721807
+-.774233
+.604865
+-.190757
+-.423951
+1.084718
+-1.549912
+1.598965
+-1.169861
+.428004
+.300208
+-.705453
+.676930
+-.364335
+.072382
+-.054233
+.343892
+-.742083
+.962280
+-.830692
+.399979
+.095297
+-.397827
+.382487
+-.105316
+-.267654
+.580470
+-.764177
+.829020
+-.803144
+.686140
+-.460298
+.143475
+.175111
+-.363608
+.333356
+-.118810
+-.119059
+.186723
+.004847
+-.358199
+.634426
+-.611884
+.255330
+.230192
+-.516468
+.372302
+.165539
+-.798098
+1.150500
+-1.010886
+.457347
+.206975
+-.651983
+.709930
+-.440203
+.054681
+.221769
+-.262717
+.075949
+.227598
+-.496650
+.605119
+-.502570
+.234922
+.077401
+-.301042
+.360804
+-.275997
+.136245
+-.033460
+.000831
+-.003559
+-.017187
+.089401
+-.192263
+.285856
+-.352279
+.402214
+-.439264
+.422619
+-.280038
+-.024054
+.420938
+-.741883
+.812252
+-.573240
+.135162
+.285994
+-.504781
+.473617
+-.285903
+.084937
+.040187
+-.092760
+.127845
+-.186453
+.267027
+-.347967
+.421438
+-.493616
+.550347
+-.532607
+.363113
+-.015525
+-.431247
+.810291
+-.958519
+.823030
+-.503893
+.195714
+-.062607
+.131418
+-.279988
+.333118
+-.198591
+-.059496
+.271368
+-.300950
+.163668
+-.021855
+.054722
+-.306711
+.641430
+-.843777
+.788677
+-.537238
+.281844
+-.188420
+.270020
+-.397368
+.433551
+-.370869
+.343839
+-.499077
+.832847
+-1.145689
+1.171023
+-.784036
+.118457
+.513120
+-.838775
+.811480
+-.611190
+.468458
+-.460336
+.447324
+-.202005
+-.377819
+1.144089
+-1.763934
+1.930178
+-1.563941
+.864810
+-.177358
+-.227781
+.307608
+-.238726
+.267444
+-.529251
+.957359
+-1.329995
+1.414191
+-1.110710
+.515052
+.133771
+-.582050
+.694053
+-.516679
+.241617
+-.087722
+.172828
+-.451845
+.756380
+-.904304
+.803701
+-.484991
+.053737
+.385762
+-.773405
+1.079159
+-1.263176
+1.262932
+-1.031341
+.597945
+-.094381
+-.294062
+.431760
+-.320463
+.101529
+.039359
+-.000894
+-.167741
+.316001
+-.318627
+.177891
+-.017777
+-.024491
+-.081895
+.231452
+-.267745
+.113506
+.160862
+-.384051
+.406080
+-.200913
+-.122441
+.396465
+-.494883
+.390412
+-.150039
+-.108513
+.267614
+-.253566
+.069419
+.195367
+-.396703
+.408205
+-.196616
+-.151561
+.474893
+-.623231
+.528056
+-.220650
+-.194234
+.578348
+-.796041
+.750074
+-.419859
+-.116599
+.704458
+-1.179225
+1.441742
+-1.490619
+1.392925
+-1.222916
+1.019192
+-.787225
+.531602
+-.278705
+.066886
+.083316
+-.185218
+.266576
+-.329011
+.326817
+-.196453
+-.075845
+.404953
+-.632494
+.628411
+-.398605
+.105763
+.031249
+.105905
+-.443369
+.766428
+-.877152
+.733288
+-.459177
+.228565
+-.124671
+.095184
+-.030109
+-.118045
+.283304
+-.349186
+.266211
+-.117270
+.067907
+-.236165
+.585132
+-.928830
+1.056353
+-.887083
+.538389
+-.247220
+.195892
+-.370863
+.565985
+-.535325
+.183629
+.350387
+-.781321
+.867895
+-.564128
+.028345
+.496841
+-.827044
+.898897
+-.736742
+.389792
+.086299
+-.595757
+.978103
+-1.054272
+.736772
+-.122169
+-.522238
+.893255
+-.828386
+.404923
+.109214
+-.422398
+.394933
+-.112581
+-.182362
+.251198
+-.006791
+-.437408
+.838832
+-.968423
+.740050
+-.256251
+-.250476
+.545318
+-.515609
+.223771
+.138273
+-.362070
+.333166
+-.077014
+-.276110
+.571997
+-.706240
+.657295
+-.479146
+.270549
+-.134994
+.136881
+-.265669
+.429256
+-.494376
+.363572
+-.045838
+-.330391
+.580872
+-.571645
+.299931
+.104742
+-.459082
+.630345
+-.598156
+.441226
+-.270043
+.158399
+-.115992
+.107415
+-.091169
+.048199
+.013640
+-.070978
+.097820
+-.071769
+-.022715
+.186954
+-.397422
+.603020
+-.741916
+.774359
+-.709110
+.598714
+-.500018
+.426255
+-.329825
+.134705
+.199713
+-.628038
+1.020664
+-1.224087
+1.147430
+-.823429
+.403073
+-.080864
+-.008198
+-.143317
+.425733
+-.691844
+.847595
+-.890341
+.876028
+-.852870
+.820821
+-.744500
+.596818
+-.388567
+.159996
+.049405
+-.220061
+.344763
+-.408315
+.380236
+-.232482
+-.028735
+.341016
+-.593909
+.672257
+-.519233
+.185282
+.174960
+-.371453
+.282805
+.069618
+-.532058
+.910942
+-1.084286
+1.054526
+-.914506
+.764809
+-.651372
+.561109
+-.458575
+.319426
+-.136333
+-.088964
+.341910
+-.577373
+.714806
+-.670334
+.415176
+-.017145
+-.373700
+.595021
+-.556245
+.284923
+.091559
+-.416991
+.589286
+-.609455
+.568390
+-.577490
+.684584
+-.832072
+.892019
+-.761358
+.450420
+-.094108
+-.133310
+.143626
+-.003302
+-.116445
+.079036
+.095009
+-.225556
+.104186
+.335932
+-.944323
+1.435829
+-1.573616
+1.315969
+-.820282
+.309811
+.085951
+-.390856
+.700756
+-1.038497
+1.279020
+-1.223602
+.776356
+-.077042
+-.538654
+.749460
+-.481107
+-.024851
+.377229
+-.321897
+-.070618
+.468130
+-.546084
+.251563
+.150573
+-.291994
+.009871
+.493366
+-.772108
+.458333
+.452390
+-1.558377
+2.286034
+-2.242105
+1.451461
+-.332909
+-.561327
+.871421
+-.618608
+.148615
+.122483
+.011787
+-.427691
+.784689
+-.785130
+.390435
+.159070
+-.524258
+.503643
+-.151680
+-.292703
+.591033
+-.654633
+.558361
+-.436341
+.362374
+-.310168
+.207364
+-.019803
+-.212294
+.411832
+-.533364
+.595674
+-.648788
+.709802
+-.732894
+.649209
+-.445604
+.208743
+-.083914
+.169954
+-.431366
+.701140
+-.779345
+.558456
+-.090103
+-.444036
+.826889
+-.904912
+.646011
+-.145802
+-.409561
+.813030
+-.921874
+.724448
+-.347159
+-.013315
+.197428
+-.162849
+-.012244
+.196020
+-.285638
+.249923
+-.116715
+-.066561
+.260077
+-.431327
+.543843
+-.560152
+.466241
+-.297666
+.139039
+-.087418
+.199606
+-.458566
+.780674
+-1.055533
+1.190873
+-1.138643
+.899702
+-.517651
+.069137
+.352983
+-.668430
+.840969
+-.891044
+.873888
+-.833384
+.764466
+-.617771
+.350673
+.008216
+-.333684
+.451213
+-.242668
+-.253461
+.822755
+-1.170260
+1.086586
+-.581859
+-.107892
+.657161
+-.844397
+.672537
+-.335994
+.065152
+.033190
+-.023674
+.054422
+-.213868
+.448960
+-.605795
+.553738
+-.291917
+-.042652
+.266962
+-.271807
+.083372
+.169482
+-.348932
+.393049
+-.337300
+.269410
+-.258501
+.309325
+-.366943
+.359284
+-.242448
+.018824
+.277168
+-.605867
+.934520
+-1.222740
+1.397285
+-1.349994
+.984619
+-.298953
+-.553041
+1.284180
+-1.599424
+1.361538
+-.684813
+-.122807
+.742828
+-1.030059
+1.065610
+-1.048001
+1.117333
+-1.253913
+1.321489
+-1.202583
+.904557
+-.554021
+.298279
+-.204028
+.231439
+-.289297
+.313292
+-.304583
+.309149
+-.366714
+.472482
+-.575323
+.607393
+-.524661
+.337756
+-.117629
+-.032663
+.034861
+.107965
+-.298270
+.398408
+-.326630
+.124176
+.067980
+-.115786
+.001689
+.154811
+-.187645
+.014490
+.299248
+-.593316
+.735720
+-.714117
+.625842
+-.582500
+.611804
+-.634932
+.532455
+-.243910
+-.174408
+.571874
+-.785833
+.727246
+-.420783
+-.014042
+.420020
+-.666531
+.697042
+-.548207
+.333932
+-.195274
+.230831
+-.440543
+.718096
+-.903344
+.867993
+-.584258
+.136356
+.326960
+-.665807
+.805651
+-.752553
+.569454
+-.333479
+.098050
+.122222
+-.338051
+.552731
+-.733279
+.809087
+-.705709
+.395848
+.064281
+-.538124
+.853243
+-.867823
+.532091
+.078738
+-.774275
+1.305520
+-1.454832
+1.127094
+-.399946
+-.496123
+1.264434
+-1.658866
+1.580587
+-1.114984
+.494031
+.003444
+-.177831
+.006851
+.338796
+-.585674
+.516700
+-.108424
+-.446182
+.854816
+-.910670
+.619696
+-.181978
+-.154048
+.252819
+-.151385
+-.013002
+.132071
+-.200316
+.279673
+-.402068
+.510167
+-.498701
+.322689
+-.071810
+-.068184
+-.048088
+.396644
+-.772666
+.918786
+-.702929
+.212494
+.304723
+-.603891
+.587191
+-.332134
+.006101
+.248639
+-.373539
+.376222
+-.280517
+.098733
+.157873
+-.454390
+.723312
+-.880386
+.854444
+-.617914
+.209848
+.258217
+-.628286
+.759963
+-.609479
+.272079
+.057558
+-.199261
+.104271
+.114767
+-.273015
+.259308
+-.121754
+.018088
+-.067536
+.229556
+-.319429
+.157687
+.265173
+-.747171
+.999292
+-.846981
+.358899
+.190773
+-.495506
+.400271
+.026059
+-.562862
+.984085
+-1.168999
+1.112985
+-.863329
+.461871
+.046926
+-.563392
+.915502
+-.934007
+.582288
+-.029095
+-.423471
+.528747
+-.265204
+-.146446
+.394742
+-.282135
+-.166060
+.749549
+-1.234421
+1.470784
+-1.418727
+1.105879
+-.586276
+-.059178
+.702309
+-1.176424
+1.334272
+-1.122167
+.615711
+.009702
+-.553062
+.860962
+-.868053
+.602842
+-.171430
+-.274204
+.583257
+-.660537
+.504173
+-.202790
+-.108356
+.306011
+-.319944
+.144191
+.171541
+-.536443
+.838027
+-.974563
+.898298
+-.648025
+.342966
+-.130404
+.112350
+-.294504
+.588717
+-.863370
+1.006823
+-.966715
+.754142
+-.427843
+.077394
+.193694
+-.298384
+.211000
+.000981
+-.195765
+.232756
+-.060441
+-.249283
+.549122
+-.710097
+.688953
+-.525284
+.288314
+-.030597
+-.213777
+.400992
+-.464756
+.345410
+-.042501
+-.355737
+.699266
+-.850647
+.761131
+-.497515
+.199489
+.005545
+-.072498
+.046354
+-.007764
+.004523
+-.024126
+.022645
+.025595
+-.106906
+.190313
+-.263126
+.338984
+-.429959
+.512578
+-.524384
+.399192
+-.115153
+-.277113
+.661914
+-.896212
+.865319
+-.541688
+.023717
+.478949
+-.733478
+.617592
+-.216988
+-.198811
+.336704
+-.082884
+-.398510
+.760219
+-.708416
+.214388
+.457052
+-.927966
+.966351
+-.636089
+.235866
+-.082832
+.303713
+-.774224
+1.226463
+-1.426572
+1.296638
+-.920801
+.465081
+-.082990
+-.141925
+.207727
+-.173516
+.120185
+-.103710
+.121723
+-.117640
+.027134
+.162961
+-.389729
+.546812
+-.553071
+.407168
+-.189672
+.013745
+.040862
+.029325
+-.150972
+.211406
+-.115353
+-.161093
+.543211
+-.877927
+1.005944
+-.857022
+.510280
+-.167011
+.035551
+-.195990
+.539685
+-.834463
+.876386
+-.623633
+.219677
+.106625
+-.190804
+.030223
+.228482
+-.392537
+.343147
+-.098699
+-.207312
+.407725
+-.389580
+.143648
+.237903
+-.603715
+.803362
+-.746655
+.445073
+-.016599
+-.358184
+.518855
+-.408122
+.104569
+.221073
+-.404828
+.382209
+-.215494
+.040728
+.025753
+.043580
+-.184040
+.292584
+-.293940
+.176879
+.010221
+-.186771
+.269245
+-.195552
+-.052146
+.429819
+-.832838
+1.127571
+-1.205635
+1.033749
+-.670242
+.235918
+.147949
+-.422514
+.618832
+-.827253
+1.119515
+-1.470849
+1.742629
+-1.754814
+1.411842
+-.794915
+.143489
+.276717
+-.335425
+.117022
+.139795
+-.199261
+-.027505
+.447383
+-.871224
+1.147093
+-1.241413
+1.218448
+-1.152309
+1.054770
+-.882165
+.609175
+-.294322
+.064346
+-.017876
+.130201
+-.253702
+.232350
+-.042647
+-.164360
+.172812
+.113497
+-.563529
+.887986
+-.844724
+.425793
+.122053
+-.465725
+.420416
+-.076630
+-.273854
+.355138
+-.103835
+-.299641
+.582616
+-.592446
+.404250
+-.242791
+.283353
+-.491667
+.633961
+-.457827
+-.089451
+.774242
+-1.200366
+1.069291
+-.396519
+-.474252
+1.079964
+-1.132748
+.698956
+-.140765
+-.136648
+-.044143
+.526854
+-.943745
+.973093
+-.554454
+-.077018
+.550433
+-.600308
+.232284
+.286622
+-.596833
+.461314
+.104823
+-.857695
+1.469806
+-1.699305
+1.487746
+-.950701
+.291698
+.298118
+-.706925
+.922109
+-1.011777
+1.079269
+-1.201099
+1.369797
+-1.478920
+1.379242
+-.988878
+.384349
+.210164
+-.553631
+.556364
+-.352247
+.201138
+-.282301
+.541253
+-.724430
+.587614
+-.115064
+-.435169
+.710562
+-.535417
+.061283
+.327318
+-.285667
+-.242059
+.979743
+-1.507151
+1.536557
+-1.082441
+.419775
+.116233
+-.332790
+.249621
+-.017873
+-.217449
+.395034
+-.513225
+.560853
+-.490993
+.268958
+.059664
+-.363543
+.508548
+-.466443
+.350530
+-.333953
+.505845
+-.780087
+.938424
+-.786355
+.308738
+.295395
+-.732972
+.810723
+-.563586
+.224435
+-.056700
+.170977
+-.455335
+.663509
+-.590571
+.207668
+.333061
+-.811623
+1.076653
+-1.107238
+.974321
+-.756997
+.493130
+-.195368
+-.103808
+.336996
+-.436278
+.379974
+-.202292
+-.042192
+.315942
+-.593644
+.821831
+-.899547
+.728218
+-.309623
+-.192168
+.502260
+-.392552
+-.155287
+.904304
+-1.481552
+1.592739
+-1.192411
+.499992
+.143355
+-.478651
+.464241
+-.266654
+.127413
+-.199400
+.453812
+-.707188
+.743111
+-.450799
+-.101697
+.700067
+-1.100160
+1.159006
+-.904343
+.505410
+-.169078
+.027391
+-.080740
+.218669
+-.291601
+.188109
+.113998
+-.531385
+.895044
+-1.010906
+.755871
+-.171463
+-.510834
+.958766
+-.916888
+.368753
+.431989
+-1.099102
+1.339032
+-1.116841
+.654243
+-.268389
+.167992
+-.343642
+.612609
+-.767119
+.711080
+-.494627
+.241329
+-.040825
+-.106317
+.258524
+-.458256
+.684336
+-.872875
+.983230
+-1.042392
+1.119494
+-1.246316
+1.355562
+-1.304897
+.985495
+-.434445
+-.148697
+.513830
+-.527293
+.266139
+.038220
+-.167270
+.064875
+.142671
+-.261429
+.181436
+.050384
+-.276101
+.338116
+-.167137
+-.200865
+.661169
+-1.082232
+1.328657
+-1.281357
+.880392
+-.182764
+-.613944
+1.230117
+-1.437793
+1.193433
+-.673756
+.176308
+.057516
+.020609
+-.259516
+.429167
+-.377432
+.116089
+.210618
+-.435148
+.468524
+-.330519
+.107392
+.112610
+-.273500
+.344930
+-.307358
+.163577
+.027164
+-.138512
+.030259
+.349090
+-.884383
+1.317382
+-1.380911
+.966149
+-.209595
+-.563696
+1.009017
+-.940651
+.420112
+.283957
+-.829208
+.952540
+-.574634
+-.179266
+1.040204
+-1.708160
+1.970176
+-1.778017
+1.254962
+-.630995
+.137554
+.087612
+-.041015
+-.175636
+.428720
+-.621434
+.718168
+-.722537
+.641281
+-.472154
+.224625
+.052257
+-.270635
+.344056
+-.241634
+.014677
+.227588
+-.379649
+.398349
+-.320728
+.232112
+-.207326
+.262819
+-.347052
+.371942
+-.266061
+.020672
+.295046
+-.558433
+.647552
+-.499944
+.147025
+.293560
+-.664445
+.832528
+-.742971
+.441139
+-.052874
+-.270326
+.417588
+-.362118
+.156908
+.111821
+-.377011
+.608278
+-.786283
+.867862
+-.787285
+.505306
+-.067124
+-.388895
+.697278
+-.769274
+.658958
+-.533149
+.553902
+-.750419
+.976771
+-.999593
+.667488
+-.044633
+-.596055
+.929614
+-.782215
+.236367
+.436260
+-.958593
+1.206252
+-1.226940
+1.128903
+-.953172
+.648651
+-.167721
+-.414604
+.882150
+-.998403
+.681445
+-.091351
+-.451130
+.666445
+-.495586
+.127042
+.147081
+-.139684
+-.107713
+.371077
+-.417754
+.175854
+.221861
+-.539912
+.599190
+-.373351
+-.032495
+.475859
+-.852983
+1.104836
+-1.180814
+1.027919
+-.636548
+.102792
+.368457
+-.554877
+.355975
+.118584
+-.586738
+.748539
+-.465072
+-.151256
+.793988
+-1.134033
+1.002272
+-.478073
+-.160768
+.588804
+-.596279
+.183212
+.450957
+-1.004832
+1.210884
+-.952549
+.315357
+.452516
+-1.055611
+1.286752
+-1.109673
+.644315
+-.073289
+-.460909
+.899154
+-1.234251
+1.451494
+-1.505015
+1.354489
+-1.027007
+.641242
+-.358974
+.289830
+-.416684
+.599050
+-.656365
+.476845
+-.081566
+-.392227
+.769807
+-.927447
+.843082
+-.593098
+.307194
+-.104090
+.031768
+-.038486
+-.001568
+.206778
+-.590434
+1.016191
+-1.254420
+1.117834
+-.586926
+-.165898
+.871927
+-1.308885
+1.389873
+-1.153656
+.696553
+-.122324
+-.456530
+.901079
+-1.069672
+.892469
+-.439068
+-.093400
+.484761
+-.620796
+.550239
+-.427319
+.387139
+-.451449
+.531462
+-.513785
+.354098
+-.107672
+-.117388
+.239288
+-.254736
+.233182
+-.265527
+.404301
+-.631380
+.868160
+-1.018358
+1.015997
+-.851964
+.568739
+-.234570
+-.083537
+.337794
+-.510295
+.618948
+-.710997
+.835121
+-1.000886
+1.154660
+-1.200789
+1.063750
+-.750670
+.365876
+-.061895
+-.042746
+-.073418
+.326543
+-.572736
+.677005
+-.572283
+.286318
+.071119
+-.356366
+.458000
+-.349645
+.098170
+.181081
+-.393473
+.510122
+-.558388
+.573365
+-.558897
+.494376
+-.376475
+.247515
+-.173721
+.187214
+-.247000
+.263266
+-.171503
+-.006367
+.170048
+-.214417
+.106123
+.100686
+-.316249
+.481072
+-.586011
+.639257
+-.628334
+.527385
+-.345863
+.162978
+-.097848
+.226083
+-.511270
+.815069
+-.984350
+.947452
+-.743955
+.470276
+-.194319
+-.085298
+.403669
+-.756231
+1.061628
+-1.203621
+1.124626
+-.892135
+.674569
+-.634271
+.814002
+-1.102428
+1.304873
+-1.268234
+.971838
+-.527433
+.097975
+.203117
+-.365283
+.458420
+-.556844
+.666117
+-.706475
+.568483
+-.204833
+-.308014
+.787842
+-1.038276
+.954796
+-.577457
+.062516
+.399258
+-.665291
+.685693
+-.502874
+.219781
+.046511
+-.211755
+.255284
+-.219382
+.175098
+-.175696
+.228768
+-.302661
+.354470
+-.351597
+.273580
+-.107139
+-.144423
+.437247
+-.677261
+.754473
+-.613532
+.309695
+.005367
+-.175068
+.145865
+-.006121
+-.083194
+.017699
+.163357
+-.304994
+.258277
+.004108
+-.372743
+.693835
+-.884058
+.968864
+-1.019162
+1.056323
+-1.020721
+.835565
+-.503661
+.140130
+.099707
+-.140655
+.050701
+.014124
+.056816
+-.228202
+.338993
+-.233181
+-.102821
+.509085
+-.756190
+.706726
+-.411171
+.069657
+.105718
+-.023699
+-.247204
+.544862
+-.723801
+.732936
+-.623836
+.502790
+-.465376
+.546341
+-.700258
+.817036
+-.769804
+.481376
+.019475
+-.587307
+1.015380
+-1.140530
+.942529
+-.571469
+.269903
+-.224272
+.439682
+-.733148
+.866395
+-.732516
+.454638
+-.305573
+.493545
+-.974786
+1.448928
+-1.558067
+1.146631
+-.382510
+-.356953
+.748351
+-.733958
+.525814
+-.411141
+.519144
+-.729336
+.782480
+-.497491
+-.076453
+.684381
+-1.039367
+1.010933
+-.693352
+.319998
+-.102576
+.115163
+-.288114
+.486380
+-.596505
+.567562
+-.405359
+.150924
+.136397
+-.395267
+.583686
+-.693597
+.739350
+-.724451
+.620841
+-.392981
+.055168
+.293252
+-.504787
+.481349
+-.257207
+-.010159
+.147925
+-.093710
+-.064355
+.170781
+-.142563
+.048015
+-.053908
+.278683
+-.669881
+1.009300
+-1.052436
+.704791
+-.106579
+-.440126
+.657488
+-.468115
+.043332
+.308744
+-.340733
+.019216
+.462420
+-.811516
+.814658
+-.454757
+-.094761
+.580852
+-.813886
+.762183
+-.550773
+.368905
+-.341901
+.449109
+-.546958
+.485354
+-.231652
+-.098220
+.331437
+-.379363
+.307894
+-.274088
+.381569
+-.580017
+.699453
+-.595495
+.286511
+.035471
+-.139331
+-.062941
+.427566
+-.661372
+.526288
+-.022227
+-.587367
+.934565
+-.786230
+.200288
+.507613
+-.962757
+.961499
+-.585176
+.134217
+.063417
+.154300
+-.698965
+1.291765
+-1.621897
+1.511846
+-1.004433
+.332048
+.212129
+-.431801
+.328764
+-.090199
+-.033166
+-.112021
+.479632
+-.847762
+.958781
+-.690750
+.148758
+.389041
+-.642440
+.506197
+-.111678
+-.272172
+.429265
+-.339717
+.170842
+-.126636
+.275953
+-.493926
+.559586
+-.329369
+-.147710
+.654970
+-.944409
+.880153
+-.496150
+-.050109
+.573222
+-.935337
+1.069887
+-.971514
+.685821
+-.309388
+-.022542
+.184365
+-.132262
+-.052560
+.200655
+-.165116
+-.067951
+.359346
+-.514253
+.428046
+-.165469
+-.092571
+.192655
+-.125201
+.018909
+-.020692
+.164118
+-.337154
+.375503
+-.202418
+-.100837
+.351007
+-.398232
+.232243
+.020661
+-.199686
+.224063
+-.131532
+.021301
+.039653
+-.062635
+.099408
+-.161725
+.180579
+-.055187
+-.241912
+.597903
+-.807850
+.721446
+-.378338
+.013102
+.094985
+.174493
+-.680966
+1.106046
+-1.164263
+.786692
+-.149296
+-.458372
+.812261
+-.852500
+.658526
+-.359167
+.066176
+.134304
+-.169289
+-.002930
+.344962
+-.718546
+.938123
+-.880928
+.573093
+-.178710
+-.104579
+.165255
+-.026586
+-.199876
+.405725
+-.548591
+.649000
+-.741558
+.828517
+-.870237
+.812184
+-.622882
+.316857
+.047396
+-.387962
+.625517
+-.706246
+.619359
+-.406596
+.155238
+.033450
+-.094740
+.041181
+.040704
+-.047001
+-.067560
+.251116
+-.387377
+.377828
+-.210914
+-.033668
+.244066
+-.348628
+.347433
+-.289609
+.227168
+-.186371
+.169712
+-.170468
+.176063
+-.160413
+.085685
+.072978
+-.295699
+.513177
+-.645105
+.656019
+-.580479
+.490806
+-.432865
+.386784
+-.290554
+.106499
+.131249
+-.336403
+.444445
+-.473483
+.510393
+-.625815
+.790799
+-.876478
+.751346
+-.402468
+-.022817
+.301135
+-.287827
+.027068
+.267904
+-.354112
+.122393
+.324636
+-.729684
+.835342
+-.539757
+-.040231
+.635665
+-.980372
+.958733
+-.656213
+.287452
+-.059092
+.063495
+-.265514
+.567264
+-.881000
+1.153212
+-1.343396
+1.405699
+-1.307666
+1.067532
+-.760732
+.473450
+-.240541
+.030201
+.201867
+-.437342
+.578157
+-.519150
+.256585
+.066240
+-.232584
+.102126
+.275678
+-.677148
+.844087
+-.648970
+.172096
+.354053
+-.683752
+.686271
+-.395610
+-.026021
+.375029
+-.499369
+.363498
+-.060344
+-.241729
+.397997
+-.376770
+.275954
+-.249158
+.392394
+-.676578
+.973618
+-1.148106
+1.139326
+-.979662
+.755197
+-.553628
+.433676
+-.413600
+.462819
+-.498412
+.409189
+-.117805
+-.348572
+.835929
+-1.126102
+1.061074
+-.651522
+.090286
+.351060
+-.483176
+.312675
+-.028887
+-.131021
+.046029
+.211927
+-.442817
+.474622
+-.292958
+.048197
+.059658
+.072695
+-.382504
+.691463
+-.828651
+.734110
+-.477251
+.192725
+.009905
+-.099526
+.113510
+-.105994
+.101340
+-.088677
+.054761
+-.017493
+.020132
+-.083275
+.157588
+-.131163
+-.095904
+.519555
+-.998806
+1.319951
+-1.321027
+.991524
+-.479197
+.004008
+.260756
+-.268300
+.102595
+.080286
+-.133983
+-.013116
+.331649
+-.707256
+.988031
+-1.045972
+.832102
+-.405648
+-.078514
+.430049
+-.513818
+.327819
+-.014990
+-.216660
+.229010
+-.055896
+-.109550
+.048260
+.318514
+-.852748
+1.276809
+-1.355407
+1.053625
+-.558078
+.147179
+-.003194
+.097309
+-.224584
+.161108
+.167591
+-.624265
+.947330
+-.929107
+.562915
+-.058957
+-.281303
+.247638
+.156767
+-.723497
+1.160985
+-1.251102
+.954766
+-.421921
+-.087952
+.331529
+-.196000
+-.250547
+.797332
+-1.198730
+1.293157
+-1.068102
+.642681
+-.192333
+-.131057
+.243066
+-.133855
+-.137700
+.448829
+-.630912
+.526321
+-.080811
+-.580813
+1.169602
+-1.369353
+1.035474
+-.322749
+-.372928
+.654424
+-.396838
+-.144588
+.491756
+-.275070
+-.490511
+1.388124
+-1.862942
+1.589231
+-.688917
+-.343177
+.949258
+-.842796
+.155163
+.679189
+-1.202211
+1.189028
+-.734435
+.145895
+.261884
+-.336143
+.132858
+.157712
+-.340566
+.322606
+-.148947
+-.036756
+.080372
+.090905
+-.420291
+.745928
+-.890406
+.765423
+-.425814
+.035837
+.231095
+-.291412
+.185297
+-.031853
+-.053040
+.017061
+.120611
+-.301305
+.465984
+-.578476
+.629734
+-.630453
+.595542
+-.524881
+.392280
+-.158552
+-.190749
+.608367
+-.984982
+1.198673
+-1.185058
+.976056
+-.675371
+.387512
+-.154070
+-.056369
+.301087
+-.598195
+.892489
+-1.075902
+1.049021
+-.785804
+.363936
+.058776
+-.314311
+.307170
+-.065707
+-.268696
+.511317
+-.522643
+.267020
+.184272
+-.694428
+1.115885
+-1.335053
+1.301279
+-1.040574
+.646926
+-.243453
+-.076622
+.294914
+-.463984
+.652532
+-.878827
+1.083746
+-1.165441
+1.050526
+-.751504
+.371590
+-.054137
+-.093267
+.058005
+.068298
+-.138227
+.030819
+.279483
+-.710168
+1.121744
+-1.395691
+1.484542
+-1.405595
+1.197868
+-.888862
+.501318
+-.086564
+-.256635
+.408080
+-.288366
+-.083436
+.579931
+-1.016388
+1.237190
+-1.188313
+.932613
+-.601035
+.313656
+-.123942
+.019343
+.034059
+-.047706
+.007193
+.091327
+-.203018
+.236019
+-.100892
+-.223551
+.654720
+-1.028301
+1.170847
+-.987244
+.520041
+.052174
+-.485879
+.589233
+-.327431
+-.148823
+.584291
+-.771262
+.674733
+-.437935
+.259268
+-.234245
+.289902
+-.265658
+.069964
+.224202
+-.428037
+.387726
+-.108341
+-.249550
+.489172
+-.508328
+.340495
+-.091217
+-.158118
+.392793
+-.628193
+.844683
+-.967824
+.920968
+-.703939
+.419188
+-.207685
+.138614
+-.146523
+.078980
+.174160
+-.573144
+.934967
+-1.057366
+.867144
+-.478455
+.116425
+.035266
+.050688
+-.246672
+.374591
+-.326349
+.113299
+.173726
+-.439512
+.624194
+-.688351
+.584890
+-.272022
+-.228560
+.783389
+-1.172972
+1.199037
+-.808354
+.142546
+.530303
+-.963055
+1.060344
+-.907773
+.685791
+-.533969
+.463821
+-.379992
+.188710
+.092691
+-.313542
+.280784
+.094230
+-.695579
+1.228078
+-1.367952
+.955005
+-.107634
+-.817045
+1.402218
+-1.386624
+.790608
+.114877
+-.966489
+1.492169
+-1.616576
+1.445706
+-1.164857
+.926172
+-.789326
+.731660
+-.697936
+.646419
+-.565034
+.460909
+-.342059
+.206496
+-.043254
+-.156659
+.382194
+-.585841
+.686330
+-.605145
+.328099
+.050322
+-.348631
+.396551
+-.154766
+-.233633
+.516026
+-.493059
+.159616
+.284068
+-.567761
+.538681
+-.263237
+-.030295
+.121197
+.050894
+-.358133
+.589722
+-.600913
+.397305
+-.108141
+-.112428
+.176885
+-.094176
+-.062204
+.210154
+-.301549
+.336408
+-.352354
+.398837
+-.505947
+.661107
+-.808229
+.873882
+-.806509
+.603697
+-.310601
+-.005416
+.283292
+-.482705
+.583087
+-.578563
+.478711
+-.314284
+.138742
+-.017460
+.005318
+-.122364
+.340781
+-.591519
+.788420
+-.859001
+.770275
+-.542135
+.245233
+.019120
+-.156511
+.122749
+.050764
+-.270821
+.433223
+-.479888
+.423793
+-.326674
+.249073
+-.209594
+.177886
+-.101966
+-.048688
+.247637
+-.406566
+.414097
+-.208874
+-.155757
+.510858
+-.659193
+.506462
+-.141427
+-.208283
+.328960
+-.175054
+-.093539
+.225925
+-.065670
+-.328111
+.710228
+-.806002
+.485980
+.151979
+-.834341
+1.254491
+-1.221873
+.745689
+-.023963
+-.647772
+1.005422
+-.928887
+.489509
+.091065
+-.553318
+.728197
+-.613446
+.356089
+-.152122
+.124264
+-.252626
+.401517
+-.424353
+.276269
+-.054866
+-.064867
+-.037505
+.321110
+-.585278
+.591808
+-.231611
+-.381077
+.962298
+-1.232969
+1.098857
+-.710523
+.359287
+-.280882
+.502370
+-.835378
+1.014814
+-.882559
+.491235
+-.063240
+-.160298
+.076209
+.220457
+-.506912
+.582735
+-.398790
+.082514
+.152618
+-.149786
+-.089862
+.408494
+-.589000
+.485193
+-.109368
+-.368982
+.710028
+-.730191
+.401833
+.129838
+-.625648
+.883056
+-.838367
+.576983
+-.252266
+-.020827
+.218070
+-.375208
+.516754
+-.615816
+.619940
+-.512703
+.347988
+-.222060
+.208719
+-.315152
+.493348
+-.687636
+.868208
+-1.021574
+1.117914
+-1.101513
+.926982
+-.612692
+.257611
+.004387
+-.082617
+-.022175
+.236524
+-.478201
+.706061
+-.914315
+1.085615
+-1.158070
+1.048842
+-.722284
+.244822
+.227719
+-.531781
+.591680
+-.460506
+.278055
+-.180389
+.227436
+-.394870
+.620739
+-.856715
+1.079329
+-1.261358
+1.343879
+-1.249579
+.936737
+-.450724
+-.075430
+.480502
+-.655560
+.588172
+-.344301
+.010494
+.352771
+-.712740
+1.031224
+-1.239362
+1.256333
+-1.046696
+.672367
+-.288601
+.071951
+-.120945
+.397472
+-.752920
+1.022852
+-1.121682
+1.069613
+-.939927
+.780576
+-.584065
+.331491
+-.062942
+-.106689
+.061681
+.202262
+-.530640
+.689204
+-.526166
+.093924
+.372651
+-.613172
+.516551
+-.181289
+-.177023
+.388251
+-.429348
+.395726
+-.385255
+.404426
+-.375342
+.227122
+.017712
+-.242168
+.319008
+-.204600
+-.037834
+.297985
+-.496963
+.609855
+-.621243
+.477578
+-.108471
+-.482922
+1.143844
+-1.603352
+1.620183
+-1.149841
+.401964
+.264926
+-.544374
+.344578
+.184988
+-.760577
+1.120898
+-1.140289
+.855141
+-.417531
+.015373
+.206185
+-.199177
+.025546
+.180480
+-.288311
+.245443
+-.103886
+-.021340
+.035527
+.066913
+-.194223
+.214556
+-.041109
+-.306076
+.696649
+-.948010
+.919308
+-.596732
+.121859
+.265678
+-.354691
+.090043
+.384677
+-.810282
+.973356
+-.832391
+.514840
+-.191481
+-.063268
+.303909
+-.612540
+.959645
+-1.164463
+1.009547
+-.426362
+-.404712
+1.135720
+-1.464310
+1.319620
+-.883193
+.437452
+-.166310
+.056821
+.040645
+-.260812
+.603548
+-.924622
+1.027236
+-.783079
+.212387
+.509598
+-1.115595
+1.353067
+-1.097203
+.422654
+.407981
+-1.050055
+1.237973
+-.920551
+.289789
+.325771
+-.650592
+.620012
+-.400566
+.253230
+-.333729
+.577218
+-.757829
+.678677
+-.342232
+-.037935
+.198131
+-.033552
+-.308783
+.526440
+-.373936
+-.167282
+.879608
+-1.452579
+1.662732
+-1.466993
+.973069
+-.347719
+-.251658
+.691662
+-.861168
+.699596
+-.248322
+-.331997
+.821831
+-1.055691
+1.006060
+-.774442
+.500999
+-.269132
+.077361
+.113642
+-.312943
+.473343
+-.525901
+.441610
+-.269205
+.120709
+-.113152
+.299182
+-.623866
+.934010
+-1.047074
+.855299
+-.410175
+-.076327
+.338465
+-.221777
+-.200735
+.652839
+-.818985
+.542797
+.075136
+-.743883
+1.159298
+-1.168871
+.826904
+-.330555
+-.099155
+.314833
+-.280036
+.052266
+.261640
+-.553506
+.750059
+-.829393
+.813465
+-.740518
+.630390
+-.464265
+.198269
+.188477
+-.640163
+1.013270
+-1.138667
+.931924
+-.472550
+-.023647
+.339830
+-.407832
+.351144
+-.377292
+.600266
+-.938332
+1.174409
+-1.131133
+.816794
+-.423993
+.186690
+-.214250
+.430991
+-.656076
+.747066
+-.691549
+.586896
+-.541825
+.587972
+-.667700
+.695895
+-.636998
+.534902
+-.477239
+.527066
+-.674751
+.841625
+-.928565
+.874085
+-.686965
+.438981
+-.227851
+.133083
+-.185166
+.357647
+-.580655
+.768886
+-.854161
+.810658
+-.660672
+.456384
+-.248106
+.061800
+.097083
+-.220493
+.282744
+-.254719
+.137626
+.019454
+-.142958
+.183217
+-.143137
+.057664
+.054884
+-.216578
+.455517
+-.739949
+.947569
+-.917621
+.565064
+.024864
+-.604454
+.891142
+-.745141
+.277427
+.199625
+-.367250
+.121284
+.337803
+-.627728
+.453937
+.159184
+-.851702
+1.156863
+-.824958
+.011947
+.806455
+-1.138310
+.785640
+.047611
+-.907600
+1.379871
+-1.316396
+.869149
+-.344679
+.005143
+.053181
+.107591
+-.359191
+.598889
+-.781884
+.895801
+-.923442
+.837601
+-.632533
+.357144
+-.108576
+-.021463
+.010652
+.073218
+-.118327
+.052389
+.099079
+-.226767
+.216458
+-.034607
+-.243235
+.483206
+-.586133
+.554519
+-.484147
+.486088
+-.596174
+.739848
+-.781488
+.625696
+-.297511
+-.058504
+.262374
+-.208058
+-.077069
+.458825
+-.783073
+.958656
+-.983716
+.910006
+-.782543
+.604293
+-.350721
+.019765
+.324958
+-.558594
+.556322
+-.277456
+-.184722
+.628784
+-.839464
+.697519
+-.241253
+-.353212
+.857138
+-1.092232
+1.001458
+-.660642
+.233190
+.106422
+-.244407
+.164418
+.062108
+-.320323
+.504447
+-.553461
+.459481
+-.254165
+-.012885
+.292053
+-.543608
+.741815
+-.875486
+.943959
+-.947202
+.874526
+-.704216
+.423006
+-.056021
+-.319891
+.602889
+-.724626
+.697385
+-.605220
+.538070
+-.519341
+.491342
+-.376046
+.161745
+.061662
+-.157590
+.051302
+.192221
+-.386623
+.334295
+.042700
+-.638232
+1.207856
+-1.499137
+1.388830
+-.945932
+.384632
+.062535
+-.273110
+.286939
+-.252323
+.305409
+-.465165
+.616304
+-.594282
+.317283
+.124466
+-.488681
+.508843
+-.058512
+-.748893
+1.593156
+-2.104837
+2.060753
+-1.501861
+.700810
+.001138
+-.382859
+.438460
+-.327977
+.236061
+-.250865
+.344065
+-.441184
+.501166
+-.533486
+.554191
+-.543700
+.461019
+-.302661
+.141373
+-.092712
+.225247
+-.487375
+.717828
+-.741654
+.485059
+-.025939
+-.455109
+.785506
+-.893658
+.823566
+-.674540
+.523442
+-.390501
+.262672
+-.137155
+.037372
+.010560
+-.010588
+.001033
+-.024939
+.095242
+-.187600
+.264265
+-.302863
+.303498
+-.273237
+.210916
+-.112368
+-.009194
+.113745
+-.154114
+.112992
+-.023607
+-.049180
+.055578
+.002972
+-.077576
+.110225
+-.072967
+-.021509
+.138668
+-.248438
+.337473
+-.404089
+.447073
+-.459761
+.432719
+-.361590
+.255361
+-.140794
+.058026
+-.044754
+.113315
+-.234625
+.344542
+-.377786
+.312359
+-.191308
+.096811
+-.085243
+.131142
+-.133603
+-.003788
+.272386
+-.522020
+.536708
+-.186649
+-.447598
+1.075735
+-1.341333
+1.029171
+-.209857
+-.771357
+1.464304
+-1.551316
+1.020817
+-.179021
+-.508602
+.659655
+-.170380
+-.735985
+1.625399
+-2.066949
+1.838207
+-1.029683
+.005287
+.764919
+-.930613
+.442039
+.412953
+-1.154100
+1.372887
+-.969108
+.210661
+.429489
+-.561338
+.106179
+.677961
+-1.376148
+1.666833
+-1.476968
+.964983
+-.383920
+-.057717
+.256319
+-.199886
+-.062606
+.432415
+-.767879
+.921516
+-.809808
+.472130
+-.068100
+-.196629
+.174219
+.153039
+-.668048
+1.175947
+-1.487609
+1.490604
+-1.183949
+.670477
+-.113646
+-.326099
+.554406
+-.578741
+.495422
+-.427906
+.448933
+-.537349
+.602251
+-.558132
+.393005
+-.175134
+-.004528
+.103603
+-.153280
+.219335
+-.336039
+.467978
+-.527296
+.429295
+-.145797
+-.273652
+.716994
+-1.047074
+1.145349
+-.950528
+.483375
+.151654
+-.792530
+1.268633
+-1.455229
+1.313725
+-.902295
+.353576
+.173203
+-.548469
+.715599
+-.702517
+.597751
+-.504274
+.494451
+-.584258
+.730945
+-.849991
+.848435
+-.671830
+.349540
+-.008032
+-.174709
+.064544
+.338084
+-.878690
+1.325358
+-1.497566
+1.363439
+-1.043993
+.729011
+-.565377
+.586294
+-.712386
+.809170
+-.760964
+.525621
+-.151532
+-.243852
+.525370
+-.602436
+.477465
+-.252981
+.083667
+-.089112
+.274495
+-.516578
+.639433
+-.542174
+.291136
+-.099752
+.191214
+-.629436
+1.237750
+-1.674642
+1.630701
+-1.026092
+.081940
+.784972
+-1.186173
+.972959
+-.311271
+-.421945
+.854652
+-.816014
+.400343
+.123352
+-.481057
+.531173
+-.300872
+-.068831
+.410479
+-.597974
+.581513
+-.399040
+.165719
+-.029225
+.091912
+-.337261
+.618713
+-.738214
+.575403
+-.179622
+-.245599
+.461010
+-.334131
+-.087133
+.609753
+-1.004659
+1.116296
+-.917490
+.500552
+-.028417
+-.327467
+.448140
+-.313977
+.017168
+.279330
+-.427202
+.377205
+-.205756
+.060317
+-.057797
+.205147
+-.395982
+.481826
+-.367957
+.073051
+.278951
+-.524500
+.544827
+-.325494
+-.037618
+.387649
+-.584664
+.569359
+-.378973
+.113275
+.120127
+-.244560
+.222398
+-.047216
+-.256542
+.621499
+-.932380
+1.052603
+-.882782
+.421543
+.211514
+-.810369
+1.161775
+-1.132873
+.729613
+-.101637
+-.512080
+.881730
+-.890919
+.594851
+-.192492
+-.083369
+.100571
+.094903
+-.309692
+.325345
+-.035271
+-.489318
+1.043468
+-1.410647
+1.483028
+-1.305192
+1.019475
+-.758452
+.564954
+-.396441
+.202961
+-.007278
+-.087351
+-.024589
+.348295
+-.748974
+1.014641
+-.978872
+.615050
+-.039704
+-.564641
+1.041355
+-1.305183
+1.332770
+-1.136253
+.758404
+-.287868
+-.142426
+.401946
+-.434680
+.297871
+-.122332
+.013795
+.027175
+-.094675
+.279423
+-.565711
+.817659
+-.874347
+.677097
+-.320737
+-.015578
+.199918
+-.232959
+.222062
+-.275101
+.407594
+-.537179
+.560960
+-.443923
+.244800
+-.063501
+-.040209
+.086859
+-.144563
+.253582
+-.375074
+.411087
+-.284699
+.017934
+.257759
+-.374064
+.232636
+.128747
+-.556346
+.868079
+-.944955
+.768964
+-.399276
+-.074630
+.559032
+-.953094
+1.147612
+-1.056183
+.672495
+-.106647
+-.443342
+.781747
+-.811212
+.569529
+-.187927
+-.190331
+.469269
+-.607625
+.594678
+-.436141
+.167636
+.127558
+-.334051
+.362327
+-.213557
+-.002850
+.125257
+-.040610
+-.237726
+.572787
+-.791031
+.796116
+-.631046
+.446000
+-.394960
+.532991
+-.782167
+.984422
+-1.002224
+.801731
+-.470154
+.162504
+-.013299
+.065153
+-.251745
+.439947
+-.503136
+.384150
+-.116742
+-.199797
+.453529
+-.569332
+.530187
+-.364470
+.114564
+.185326
+-.502751
+.780731
+-.925236
+.837610
+-.485581
+-.036510
+.516986
+-.721342
+.522914
+.014861
+-.662156
+1.141114
+-1.266091
+1.024149
+-.557297
+.069617
+.279653
+-.438850
+.459007
+-.436871
+.446072
+-.496218
+.538946
+-.511270
+.384624
+-.187446
+-.010810
+.137926
+-.150725
+.043705
+.157602
+-.399237
+.593373
+-.624730
+.392620
+.118019
+-.782826
+1.356060
+-1.574504
+1.297794
+-.599289
+-.255872
+.938541
+-1.215060
+1.046285
+-.577275
+.039700
+.362330
+-.519472
+.421006
+-.124736
+-.271007
+.644222
+-.872744
+.876908
+-.664364
+.339922
+-.058218
+-.060319
+-.002650
+.158853
+-.277606
+.276788
+-.178894
+.092791
+-.130787
+.315447
+-.541128
+.623612
+-.415188
+-.084547
+.697197
+-1.146691
+1.215203
+-.879924
+.336799
+.117206
+-.274378
+.150468
+.037326
+-.040193
+-.225879
+.605649
+-.813036
+.642354
+-.121196
+-.511186
+.977245
+-1.144917
+1.079973
+-.941119
+.824755
+-.700559
+.488937
+-.197869
+-.019446
+-.044246
+.475176
+-1.125145
+1.663525
+-1.770378
+1.336597
+-.532389
+-.298279
+.839008
+-.963234
+.762142
+-.440379
+.167345
+.011263
+-.152318
+.319402
+-.498674
+.595441
+-.510375
+.229039
+.149582
+-.467612
+.601688
+-.526592
+.311322
+-.062794
+-.137129
+.265532
+-.353865
+.455687
+-.603217
+.772305
+-.879429
+.825092
+-.567615
+.177315
+.181018
+-.341803
+.248317
+.005682
+-.240456
+.315775
+-.222633
+.073414
+-.003243
+.061919
+-.176515
+.207236
+-.052080
+-.273052
+.630870
+-.836847
+.765808
+-.426350
+-.042055
+.448459
+-.656869
+.652192
+-.525767
+.396855
+-.329869
+.305239
+-.256196
+.133442
+.055891
+-.259505
+.421814
+-.516921
+.549587
+-.535182
+.484916
+-.409266
+.328063
+-.267156
+.238264
+-.222048
+.177807
+-.080713
+-.041237
+.106280
+-.026020
+-.225298
+.568802
+-.843520
+.889482
+-.643215
+.183811
+.304574
+-.633740
+.712839
+-.585263
+.380257
+-.215856
+.120156
+-.023559
+-.175927
+.518789
+-.925123
+1.214291
+-1.201978
+.824374
+-.212735
+-.342647
+.538291
+-.237198
+-.431637
+1.128945
+-1.493382
+1.347866
+-.793755
+.136507
+.302434
+-.363832
+.112539
+.239313
+-.480019
+.514390
+-.381557
+.184688
+-.001477
+-.154345
+.304035
+-.449634
+.552594
+-.563085
+.466035
+-.294380
+.096671
+.106689
+-.332278
+.596586
+-.867972
+1.055524
+-1.051906
+.803326
+-.357784
+-.142352
+.522101
+-.656082
+.526831
+-.229555
+-.076676
+.243212
+-.195459
+-.039478
+.347344
+-.577972
+.618742
+-.463096
+.231687
+-.112441
+.233748
+-.548221
+.824919
+-.785488
+.307453
+.454623
+-1.136784
+1.391983
+-1.117104
+.514682
+.054507
+-.313146
+.223337
+.044400
+-.277497
+.373673
+-.364330
+.320669
+-.254875
+.116316
+.121882
+-.384624
+.517824
+-.407588
+.093955
+.227966
+-.335368
+.140511
+.237124
+-.546853
+.576664
+-.295788
+-.125989
+.428392
+-.420282
+.086612
+.414595
+-.850080
+1.037155
+-.927093
+.609410
+-.247281
+-.013855
+.113703
+-.088172
+.024422
+.007074
+.003495
+-.015854
+-.004240
+.028951
+.036989
+-.294424
+.756887
+-1.293962
+1.663930
+-1.633714
+1.123425
+-.285869
+-.539027
+.984431
+-.848703
+.209875
+.607798
+-1.200780
+1.293672
+-.871096
+.164275
+.493050
+-.851711
+.869942
+-.706276
+.594294
+-.681386
+.934359
+-1.171023
+1.193409
+-.929462
+.485769
+-.078443
+-.103398
+.003666
+.291637
+-.631540
+.891801
+-1.014382
+.985543
+-.799731
+.460512
+-.020299
+-.391663
+.605587
+-.509729
+.144379
+.289204
+-.529790
+.410208
+.037920
+-.600308
+1.007953
+-1.092950
+.873227
+-.518163
+.226322
+-.102042
+.111467
+-.139485
+.096287
+.010657
+-.092743
+.066889
+.062030
+-.194615
+.214510
+-.087053
+-.105443
+.226208
+-.197223
+.069989
+.009273
+.080731
+-.324555
+.558689
+-.578986
+.292791
+.197479
+-.644851
+.810765
+-.614141
+.175171
+.268387
+-.505768
+.458965
+-.192987
+-.151698
+.441682
+-.597924
+.601769
+-.482645
+.303269
+-.137337
+.033239
+.019360
+-.085015
+.226204
+-.429474
+.581549
+-.535173
+.230051
+.226371
+-.598293
+.670623
+-.402164
+-.038109
+.387512
+-.474005
+.327270
+-.133306
+.074097
+-.183158
+.329488
+-.335514
+.129364
+.189265
+-.417334
+.395136
+-.122554
+-.235975
+.457034
+-.401684
+.103675
+.252151
+-.446865
+.367268
+-.079419
+-.214556
+.312177
+-.149557
+-.154648
+.386936
+-.398936
+.221145
+-.040043
+.049278
+-.285930
+.581862
+-.676423
+.410965
+.142380
+-.720019
+1.048547
+-1.032387
+.807078
+-.621079
+.640875
+-.828159
+.977576
+-.878276
+.472625
+.102571
+-.611404
+.869763
+-.842203
+.630375
+-.383464
+.205908
+-.119194
+.081639
+-.035096
+-.052459
+.161947
+-.222009
+.138901
+.143595
+-.583576
+1.028163
+-1.277948
+1.201036
+-.821358
+.312928
+.102466
+-.284408
+.239825
+-.084978
+-.058794
+.150403
+-.229700
+.340101
+-.447139
+.435238
+-.201005
+-.228063
+.659491
+-.840412
+.640994
+-.175695
+-.247225
+.330158
+-.001312
+-.521192
+.870550
+-.780516
+.266173
+.389038
+-.824520
+.833440
+-.476052
+.010982
+.288707
+-.296914
+.072263
+.223663
+-.439482
+.491810
+-.354568
+.033705
+.422082
+-.887646
+1.168847
+-1.092682
+.638044
+-.001433
+-.481310
+.528714
+-.094376
+-.599405
+1.205552
+-1.473040
+1.387825
+-1.140137
+.954760
+-.918649
+.932806
+-.814383
+.462888
+.037904
+-.456256
+.556868
+-.249897
+-.354196
+1.010552
+-1.473243
+1.609137
+-1.434383
+1.072712
+-.677776
+.365775
+-.182747
+.106368
+-.071772
+.011409
+.104328
+-.245316
+.337699
+-.315900
+.178095
+.000640
+-.116934
+.118180
+-.047495
+.011268
+-.089395
+.261043
+-.410986
+.417513
+-.253099
+.014922
+.144226
+-.133660
+-.001134
+.110445
+-.057457
+-.169724
+.441932
+-.584392
+.509762
+-.283276
+.069401
+-.005892
+.104875
+-.253812
+.306675
+-.191131
+-.043497
+.262403
+-.334069
+.214487
+.021024
+-.216107
+.223241
+.003086
+-.366621
+.674575
+-.747841
+.530482
+-.127701
+-.255111
+.435348
+-.361146
+.137852
+.042218
+-.023001
+-.213688
+.530965
+-.718120
+.625740
+-.272726
+-.147909
+.380257
+-.272220
+-.110779
+.510584
+-.636285
+.357913
+.200639
+-.738590
+.974080
+-.821834
+.431962
+-.073197
+-.047583
+-.094804
+.351093
+-.505887
+.406631
+-.041095
+-.461704
+.892352
+-1.052493
+.845100
+-.329834
+-.287788
+.744011
+-.849600
+.595665
+-.161564
+-.192333
+.285729
+-.126723
+-.108253
+.209192
+-.083663
+-.186277
+.419662
+-.481849
+.384755
+-.265184
+.261715
+-.390200
+.518941
+-.466813
+.150261
+.334158
+-.757906
+.906092
+-.715110
+.307137
+.093282
+-.291443
+.213720
+.083920
+-.466393
+.779205
+-.890153
+.718636
+-.263694
+-.378728
+1.032503
+-1.499581
+1.636328
+-1.408751
+.902265
+-.289490
+-.225040
+.467481
+-.355314
+-.059713
+.593018
+-.992988
+1.056451
+-.736709
+.175578
+.370356
+-.670433
+.642053
+-.380603
+.086019
+.060374
+.008351
+-.226274
+.452450
+-.563866
+.528687
+-.419105
+.356387
+-.421358
+.589990
+-.743567
+.752342
+-.574581
+.295280
+-.072199
+.027447
+-.164716
+.370276
+-.491101
+.430788
+-.200731
+-.097160
+.334271
+-.423617
+.358074
+-.205201
+.066693
+-.025877
+.110808
+-.290009
+.495920
+-.654612
+.703429
+-.597584
+.321736
+.087043
+-.522741
+.829581
+-.866732
+.588890
+-.090736
+-.421778
+.724391
+-.682870
+.318779
+.200691
+-.642795
+.819364
+-.673720
+.300321
+.113429
+-.391440
+.458173
+-.360559
+.214695
+-.120248
+.103171
+-.119564
+.105231
+-.026486
+-.101503
+.230828
+-.308595
+.295352
+-.170267
+-.067806
+.395177
+-.756073
+1.064170
+-1.221944
+1.156738
+-.858068
+.394569
+.103811
+-.493879
+.674415
+-.620817
+.383235
+-.053344
+-.278686
+.552305
+-.735547
+.802286
+-.713480
+.428681
+.049523
+-.629800
+1.131806
+-1.353288
+1.175795
+-.643522
+-.040015
+.600919
+-.819328
+.622432
+-.104732
+-.523829
+1.029976
+-1.248295
+1.137016
+-.779756
+.335535
+.037902
+-.249359
+.296497
+-.238393
+.140551
+-.030240
+-.107768
+.293801
+-.504629
+.658314
+-.657739
+.471310
+-.189594
+-.000508
+-.073034
+.438189
+-.927087
+1.252280
+-1.172791
+.644547
+.144318
+-.876991
+1.283962
+-1.281664
+.992806
+-.645307
+.421277
+-.354107
+.334897
+-.216791
+-.058343
+.399562
+-.615640
+.540615
+-.150636
+-.408527
+.902847
+-1.145835
+1.097769
+-.864574
+.603810
+-.410184
+.264581
+-.080617
+-.193348
+.501452
+-.699430
+.655286
+-.355770
+-.065120
+.402286
+-.509639
+.394146
+-.207728
+.141354
+-.291564
+.589590
+-.842689
+.863555
+-.602210
+.189977
+.136739
+-.182163
+-.092020
+.553077
+-.985954
+1.216770
+-1.192244
+.980267
+-.711974
+.510182
+-.438326
+.481477
+-.558746
+.564238
+-.426147
+.157996
+.133159
+-.299725
+.245304
+.002189
+-.291422
+.432818
+-.319283
+.003225
+.326090
+-.456918
+.291142
+.086746
+-.456325
+.597104
+-.425304
+.039976
+.351674
+-.574238
+.587996
+-.485280
+.393431
+-.369492
+.370603
+-.314538
+.167893
+.018803
+-.156797
+.200741
+-.191360
+.221178
+-.352104
+.554048
+-.717196
+.731482
+-.574178
+.337920
+-.174636
+.193659
+-.387634
+.640136
+-.806837
+.807463
+-.662460
+.456957
+-.271338
+.134319
+-.023949
+-.099978
+.262864
+-.457275
+.639522
+-.740655
+.697555
+-.497470
+.205804
+.055989
+-.179628
+.136546
+.014704
+-.187196
+.334781
+-.466241
+.595721
+-.687472
+.662454
+-.469835
+.155577
+.146152
+-.303707
+.286896
+-.188307
+.149068
+-.252046
+.467528
+-.683502
+.780784
+-.690125
+.404169
+.033649
+-.532809
+.955046
+-1.141758
+.985915
+-.513579
+-.091935
+.562707
+-.683886
+.409087
+.122965
+-.676671
+1.048428
+-1.152812
+1.025341
+-.763304
+.459246
+-.169576
+-.076580
+.252099
+-.318955
+.241134
+-.016246
+-.297337
+.583322
+-.711751
+.607923
+-.304321
+-.064253
+.329178
+-.381166
+.228718
+.015779
+-.210718
+.270260
+-.207630
+.116511
+-.108515
+.244551
+-.494442
+.742858
+-.840179
+.679639
+-.265711
+-.265833
+.699459
+-.847237
+.654204
+-.233772
+-.198442
+.456319
+-.494901
+.424556
+-.417227
+.572098
+-.838498
+1.051804
+-1.054424
+.812443
+-.443816
+.140735
+-.043455
+.153088
+-.339198
+.432207
+-.337425
+.096787
+.140092
+-.215909
+.071581
+.213035
+-.472103
+.563794
+-.459538
+.250272
+-.071508
+.010354
+-.065322
+.180036
+-.308329
+.447500
+-.612996
+.785985
+-.891360
+.836430
+-.585021
+.207713
+.136397
+-.280110
+.140555
+.233298
+-.683171
+1.017136
+-1.095862
+.887044
+-.466640
+-.026535
+.453425
+-.721008
+.795442
+-.691657
+.461320
+-.188306
+-.021756
+.074402
+.065754
+-.346563
+.648309
+-.843911
+.857490
+-.684596
+.375727
+-.012211
+-.306824
+.478687
+-.433661
+.184652
+.153842
+-.414527
+.475844
+-.340441
+.130112
+.002045
+.025839
+-.182857
+.364860
+-.470834
+.454203
+-.323816
+.116225
+.125203
+-.351332
+.503306
+-.522276
+.373459
+-.068924
+-.326621
+.709483
+-.963791
+.995474
+-.769354
+.339270
+.148905
+-.500465
+.557062
+-.285269
+-.187809
+.626846
+-.810348
+.653682
+-.256299
+-.159776
+.383789
+-.338179
+.111944
+.111920
+-.179374
+.051154
+.203504
+-.486153
+.745877
+-.987853
+1.216669
+-1.381790
+1.392177
+-1.199364
+.875268
+-.602156
+.561643
+-.797722
+1.161119
+-1.387718
+1.264932
+-.772970
+.103878
+.451544
+-.669437
+.502501
+-.075327
+-.408899
+.772901
+-.919728
+.831300
+-.547566
+.155293
+.220832
+-.452769
+.473516
+-.332376
+.186325
+-.210825
+.478622
+-.892695
+1.231011
+-1.281837
+.979945
+-.448328
+-.083191
+.422768
+-.520932
+.464682
+-.377238
+.309999
+-.213646
+.007251
+.318663
+-.657074
+.841064
+-.761158
+.451022
+-.073486
+-.184425
+.230973
+-.120925
+.009320
+-.046094
+.281616
+-.636285
+.943336
+-1.035600
+.831548
+-.381011
+-.150819
+.556874
+-.687245
+.524327
+-.191487
+-.114002
+.229678
+-.117608
+-.116909
+.290184
+-.253247
+-.012049
+.373062
+-.621151
+.603128
+-.330376
+-.008418
+.150287
+.079471
+-.646371
+1.308307
+-1.745214
+1.740349
+-1.303517
+.661262
+-.120245
+-.114099
+.052693
+.101233
+-.103584
+-.148246
+.526834
+-.749445
+.574020
+.018236
+-.787687
+1.379617
+-1.546267
+1.288677
+-.822133
+.404110
+-.161649
+.042239
+.093839
+-.330799
+.620093
+-.819042
+.801675
+-.552352
+.179821
+.146182
+-.285680
+.192352
+.075416
+-.391493
+.624450
+-.698279
+.625788
+-.497089
+.425218
+-.476076
+.624387
+-.766043
+.783625
+-.626396
+.355126
+-.121180
+.087564
+-.333038
+.791908
+-1.266955
+1.516895
+-1.379495
+.865671
+-.166856
+-.438376
+.733505
+-.683270
+.447497
+-.275288
+.341761
+-.631034
+.943762
+-1.028175
+.751486
+-.199847
+-.359895
+.633075
+-.467850
+-.061461
+.702762
+-1.166976
+1.271536
+-1.009258
+.521993
+-.013088
+-.346539
+.477999
+-.406232
+.229767
+-.064581
+-.013902
+.003080
+.039504
+-.047040
+-.002440
+.069327
+-.088082
+.027093
+.076551
+-.138789
+.092259
+.057920
+-.229804
+.316243
+-.255085
+.070535
+.139502
+-.260098
+.226092
+-.061199
+-.132465
+.231286
+-.162386
+-.052044
+.308631
+-.487274
+.522515
+-.431628
+.283459
+-.138787
+.014277
+.102157
+-.205940
+.250787
+-.175854
+-.034592
+.315044
+-.546979
+.636187
+-.577397
+.451806
+-.358819
+.338528
+-.347117
+.301158
+-.152076
+-.067292
+.254771
+-.297998
+.142045
+.171729
+-.514748
+.726656
+-.695415
+.424192
+-.044445
+-.243067
+.274532
+-.015594
+-.418291
+.826514
+-1.030408
+.956993
+-.658320
+.272017
+.042628
+-.163689
+.050178
+.235778
+-.541858
+.686968
+-.556504
+.180099
+.266447
+-.551527
+.521916
+-.196031
+-.244504
+.558680
+-.576759
+.279369
+.212614
+-.715545
+1.071079
+-1.196238
+1.083499
+-.773581
+.332027
+.157571
+-.594943
+.878982
+-.942883
+.789935
+-.500197
+.192793
+.040138
+-.186693
+.316967
+-.525621
+.849842
+-1.220129
+1.486080
+-1.509315
+1.262926
+-.861689
+.490332
+-.275102
+.196035
+-.115212
+-.094761
+.424928
+-.715375
+.771190
+-.517722
+.068286
+.350050
+-.549902
+.494361
+-.288112
+.075020
+.063100
+-.130075
+.162149
+-.162902
+.090540
+.094467
+-.370207
+.641430
+-.791148
+.755892
+-.564668
+.313107
+-.098876
+-.026572
+.056439
+.005606
+-.165676
+.419039
+-.710606
+.926622
+-.945208
+.719265
+-.329032
+-.043939
+.213381
+-.096521
+-.235254
+.595817
+-.790110
+.723381
+-.449163
+.127813
+.079045
+-.112680
+.052584
+-.056820
+.243103
+-.589724
+.929113
+-1.048568
+.839023
+-.390596
+-.039742
+.180348
+.078435
+-.604967
+1.104657
+-1.305815
+1.124903
+-.699808
+.279385
+-.060673
+.089956
+-.279935
+.502003
+-.669589
+.759081
+-.778284
+.730090
+-.606209
+.408822
+-.171080
+-.047247
+.188942
+-.230808
+.192116
+-.112281
+.015932
+.102729
+-.259107
+.437256
+-.570006
+.568396
+-.384936
+.059366
+.296047
+-.564084
+.689806
+-.694840
+.634136
+-.539700
+.402372
+-.202375
+-.046946
+.288494
+-.456536
+.527495
+-.539957
+.563428
+-.637725
+.730668
+-.749645
+.603092
+-.270614
+-.168920
+.573925
+-.819778
+.868374
+-.779097
+.653560
+-.554752
+.462429
+-.301507
+.024423
+.316475
+-.569818
+.570244
+-.253863
+-.278699
+.801982
+-1.087561
+1.030005
+-.696142
+.270781
+.059939
+-.209179
+.214262
+-.180682
+.191951
+-.247754
+.267069
+-.148532
+-.152296
+.575585
+-.966974
+1.144116
+-.990940
+.533236
+.052138
+-.514450
+.663476
+-.484666
+.155730
+.060414
+.013904
+-.349642
+.726439
+-.880743
+.687704
+-.252078
+-.154858
+.269028
+-.001527
+-.506376
+.969567
+-1.124826
+.872338
+-.314976
+-.314279
+.781959
+-.961097
+.859561
+-.569413
+.188628
+.221672
+-.618048
+.927370
+-1.036142
+.850694
+-.391479
+-.164123
+.550972
+-.570456
+.224531
+.275071
+-.638899
+.682584
+-.429623
+.065075
+.214604
+-.335067
+.363358
+-.414494
+.536425
+-.671255
+.713894
+-.603914
+.366729
+-.079227
+-.191906
+.414199
+-.562355
+.588431
+-.442972
+.141736
+.189685
+-.358884
+.229717
+.164204
+-.615380
+.867519
+-.782969
+.423835
+.015304
+-.364359
+.592171
+-.786978
+1.030122
+-1.283700
+1.397232
+-1.230692
+.789452
+-.255021
+-.117850
+.162762
+.093382
+-.450435
+.660105
+-.571693
+.210093
+.252799
+-.606630
+.720642
+-.602040
+.366449
+-.148011
+.010566
+.083539
+-.232112
+.510366
+-.904033
+1.302474
+-1.556478
+1.564058
+-1.329352
+.958382
+-.595524
+.341618
+-.204663
+.111379
+.031363
+-.267125
+.557902
+-.808053
+.924643
+-.870830
+.679171
+-.424452
+.184729
+-.018014
+-.042657
+-.007936
+.137918
+-.277466
+.346679
+-.307274
+.199528
+-.125227
+.177868
+-.370085
+.616671
+-.789955
+.806810
+-.683103
+.518187
+-.425140
+.457946
+-.583567
+.710633
+-.747776
+.649590
+-.424726
+.113528
+.235425
+-.570190
+.830281
+-.957288
+.929629
+-.793595
+.648475
+-.578253
+.578050
+-.544442
+.353642
+.026734
+-.484782
+.822586
+-.888388
+.684375
+-.370523
+.163787
+-.205068
+.480949
+-.840847
+1.087946
+-1.085445
+.822225
+-.410980
+.026556
+.182125
+-.161485
+-.031013
+.272144
+-.450182
+.525266
+-.534687
+.543626
+-.580741
+.608963
+-.555130
+.377104
+-.115812
+-.112508
+.187794
+-.075890
+-.129155
+.250651
+-.143744
+-.194798
+.601822
+-.835470
+.723401
+-.272442
+-.334549
+.850241
+-1.103203
+1.075335
+-.877808
+.659044
+-.515132
+.452671
+-.408873
+.301373
+-.078695
+-.245512
+.585287
+-.812458
+.822538
+-.606585
+.278713
+-.025844
+-.001149
+-.214459
+.537674
+-.761119
+.730212
+-.434499
+.011413
+.333601
+-.440126
+.275857
+.051911
+-.358327
+.480133
+-.356339
+.046981
+.315098
+-.603247
+.753922
+-.769956
+.680328
+-.498579
+.218043
+.152838
+-.549968
+.851964
+-.932526
+.737612
+-.334391
+-.106106
+.387428
+-.385315
+.112644
+.281556
+-.580718
+.608108
+-.322987
+-.145204
+.551306
+-.656773
+.356372
+.262060
+-.958951
+1.461461
+-1.591719
+1.337402
+-.833074
+.271650
+.198331
+-.529385
+.756851
+-.926962
+1.031224
+-1.001780
+.774689
+-.369930
+-.080871
+.390352
+-.420967
+.167242
+.240229
+-.607712
+.776278
+-.686918
+.386540
+.011566
+-.380966
+.625258
+-.702929
+.633570
+-.485241
+.344027
+-.277129
+.308142
+-.417343
+.561485
+-.693430
+.767590
+-.736569
+.557881
+-.219227
+-.231795
+.681836
+-.985462
+1.026619
+-.775002
+.307128
+.217994
+-.617115
+.751358
+-.579654
+.176015
+.299534
+-.667512
+.803689
+-.685246
+.386698
+-.035197
+-.244916
+.371453
+-.323017
+.144802
+.058994
+-.160287
+.073652
+.177265
+-.449973
+.561160
+-.414500
+.085339
+.214451
+-.280487
+.067222
+.269543
+-.476723
+.381437
+-.012596
+-.418923
+.661944
+-.582926
+.234113
+.200116
+-.523537
+.627648
+-.518912
+.284478
+-.040356
+-.106018
+.079365
+.140644
+-.499747
+.874210
+-1.115843
+1.120695
+-.878809
+.469442
+-.006586
+-.423003
+.784376
+-1.071726
+1.268857
+-1.333709
+1.219939
+-.913809
+.452876
+.085438
+-.609118
+1.028151
+-1.260244
+1.244411
+-.975063
+.539229
+-.114956
+-.096812
+-.015746
+.390149
+-.800390
+.974056
+-.749293
+.172559
+.524437
+-1.048952
+1.192652
+-.918387
+.359319
+.248116
+-.657691
+.704192
+-.370338
+-.195617
+.735371
+-1.001321
+.884827
+-.471197
+-.021548
+.382916
+-.531400
+.532631
+-.509833
+.525683
+-.532863
+.429256
+-.165007
+-.193790
+.500632
+-.634026
+.583606
+-.445687
+.334865
+-.290578
+.259897
+-.169877
+.022505
+.076601
+.010593
+-.335428
+.792113
+-1.158124
+1.223172
+-.918616
+.360416
+.216717
+-.584369
+.625618
+-.369656
+-.044189
+.436826
+-.656603
+.624897
+-.356288
+-.047541
+.434454
+-.665861
+.685082
+-.550135
+.399103
+-.355469
+.431256
+-.503044
+.395559
+-.026571
+-.492370
+.888266
+-.889548
+.416449
+.334757
+-.980679
+1.163992
+-.759066
+-.054943
+.894558
+-1.382031
+1.343107
+-.883792
+.309853
+.060620
+-.083063
+-.137628
+.327875
+-.234340
+-.200746
+.798325
+-1.267257
+1.407312
+-1.239833
+.968047
+-.800485
+.779777
+-.753203
+.507088
+.041805
+-.746119
+1.294474
+-1.398472
+.974259
+-.203825
+-.557485
+.969052
+-.880660
+.400554
+.176494
+-.535587
+.507121
+-.140747
+-.344584
+.694437
+-.753987
+.533563
+-.182097
+-.103203
+.179536
+-.026417
+-.248391
+.466497
+-.473382
+.222823
+.195323
+-.599897
+.809093
+-.724138
+.365656
+.144268
+-.632277
+.931239
+-.931975
+.621639
+-.096995
+-.462309
+.861499
+-.974187
+.799260
+-.457213
+.124509
+.058976
+-.057482
+-.056604
+.162932
+-.178771
+.113820
+-.057151
+.104807
+-.278858
+.497491
+-.621723
+.549229
+-.289533
+-.033755
+.256617
+-.272952
+.090777
+.187307
+-.437065
+.584649
+-.631996
+.629219
+-.621678
+.608731
+-.537700
+.336322
+.030702
+-.510364
+.951622
+-1.161873
+1.013413
+-.538469
+-.062116
+.523341
+-.676724
+.555446
+-.361450
+.312496
+-.480922
+.744485
+-.882922
+.742953
+-.347678
+-.123219
+.457600
+-.545396
+.434731
+-.283531
+.249461
+-.391610
+.640598
+-.845419
+.860491
+-.618945
+.156798
+.411087
+-.939322
+1.300033
+-1.420596
+1.306491
+-1.039126
+.739791
+-.509949
+.382633
+-.320433
+.261671
+-.176801
+.088904
+-.044896
+.067010
+-.128402
+.170403
+-.142862
+.033431
+.132332
+-.312451
+.470741
+-.584798
+.639832
+-.619172
+.503899
+-.287570
+-.000945
+.286237
+-.465859
+.460840
+-.267612
+-.029607
+.302303
+-.448072
+.433995
+-.283577
+.030803
+.304389
+-.692700
+1.054585
+-1.260655
+1.197031
+-.852718
+.354336
+.089641
+-.300494
+.220128
+.073620
+-.422183
+.665458
+-.701725
+.514632
+-.172151
+-.199561
+.467874
+-.556653
+.484821
+-.347669
+.246647
+-.218332
+.219814
+-.182082
+.082730
+.029252
+-.081111
+.053049
+-.010264
+.052675
+-.219541
+.433295
+-.541790
+.436648
+-.153419
+-.136880
+.251036
+-.138922
+-.069481
+.161628
+-.012372
+-.308020
+.573910
+-.560954
+.200640
+.375128
+-.916163
+1.191186
+-1.089391
+.643444
+.008490
+-.679657
+1.184790
+-1.381772
+1.209072
+-.711304
+.035884
+.608919
+-1.025693
+1.102478
+-.858068
+.433217
+-.025427
+-.205890
+.214019
+-.074740
+-.075981
+.134536
+-.089279
+.010723
+.010799
+.072236
+-.243834
+.447154
+-.621076
+.723366
+-.736322
+.666454
+-.543339
+.409391
+-.294179
+.185848
+-.028050
+-.239688
+.617288
+-1.006185
+1.242832
+-1.197534
+.874145
+-.430967
+.092982
+-.008491
+.152087
+-.348307
+.402149
+-.242233
+-.028948
+.213651
+-.167535
+-.092225
+.397019
+-.544421
+.434609
+-.129319
+-.200413
+.389500
+-.372353
+.199442
+.015730
+-.169662
+.214964
+-.165057
+.071015
+.008565
+-.032417
+-.008512
+.087750
+-.152870
+.146260
+-.031682
+-.182457
+.433876
+-.620310
+.638208
+-.433333
+.037843
+.431354
+-.818314
+.995918
+-.917996
+.628614
+-.229955
+-.163805
+.459019
+-.594753
+.548421
+-.347719
+.081385
+.114512
+-.108282
+-.155278
+.605986
+-1.060993
+1.302852
+-1.186414
+.717879
+-.062224
+-.529746
+.841359
+-.796626
+.495986
+-.158296
+-.001692
+-.107319
+.405290
+-.690974
+.760327
+-.523114
+.053303
+.451323
+-.772248
+.777956
+-.482636
+.032722
+.366896
+-.550743
+.470017
+-.211885
+-.050841
+.153959
+-.025720
+-.288109
+.663962
+-.966184
+1.092294
+-.986163
+.643796
+-.130866
+-.407016
+.780948
+-.848811
+.604970
+-.195042
+-.168730
+.335255
+-.293853
+.154231
+-.054788
+.072683
+-.192372
+.336614
+-.424127
+.414610
+-.322236
+.200211
+-.108567
+.080418
+-.102030
+.118652
+-.066550
+-.083956
+.300291
+-.494558
+.565490
+-.453279
+.176173
+.171218
+-.456962
+.570435
+-.475593
+.235156
+.011331
+-.115559
+.005521
+.265168
+-.546073
+.689189
+-.650642
+.514956
+-.417552
+.426711
+-.484511
+.458333
+-.259220
+-.075358
+.404539
+-.589876
+.590684
+-.470094
+.316210
+-.157942
+-.044228
+.324242
+-.624691
+.787139
+-.644517
+.153176
+.538848
+-1.149337
+1.414635
+-1.236728
+.728859
+-.136680
+-.305731
+.492305
+-.471415
+.383068
+-.357600
+.438263
+-.568307
+.641799
+-.581513
+.391210
+-.148688
+-.051018
+.156268
+-.177498
+.157389
+-.128200
+.095866
+-.055797
+.009689
+.043018
+-.126893
+.286681
+-.540940
+.829342
+-1.015127
+.965177
+-.654854
+.207284
+.179179
+-.366616
+.369209
+-.326585
+.383697
+-.578119
+.823667
+-.993280
+1.022307
+-.944832
+.840340
+-.746074
+.616307
+-.367259
+-.027441
+.471698
+-.775187
+.768264
+-.425358
+-.098230
+.552591
+-.747356
+.662627
+-.436999
+.247989
+-.182893
+.199443
+-.197660
+.133416
+-.076028
+.163061
+-.488397
+1.007258
+-1.526659
+1.790868
+-1.615286
+.997813
+-.146839
+-.597316
+.921105
+-.701641
+.082369
+.598743
+-1.001750
+.986523
+-.690443
+.423513
+-.446927
+.787514
+-1.218600
+1.420742
+-1.207638
+.657852
+-.061112
+-.281041
+.260352
+-.030971
+-.103735
+-.091923
+.614319
+-1.211796
+1.545150
+-1.409416
+.867686
+-.208740
+-.240703
+.321029
+-.125649
+-.084183
+.069705
+.223557
+-.639826
+.930735
+-.926938
+.645996
+-.273449
+.043379
+-.103932
+.447300
+-.929778
+1.351243
+-1.541555
+1.416635
+-.996350
+.393741
+.216075
+-.647093
+.769420
+-.571001
+.177762
+.194410
+-.344882
+.195375
+.170382
+-.566268
+.826782
+-.907186
+.888376
+-.887530
+.952230
+-1.029120
+1.031209
+-.938424
+.834108
+-.839896
+1.007121
+-1.264467
+1.469341
+-1.514674
+1.395953
+-1.187651
+.964441
+-.747230
+.517979
+-.275230
+.067184
+.031198
+.026660
+-.222537
+.483602
+-.724930
+.888937
+-.958656
+.946090
+-.870798
+.742640
+-.556799
+.305501
+-.003824
+-.287808
+.471471
+-.463192
+.262978
+.014704
+-.194764
+.160566
+.049362
+-.257494
+.284366
+-.107256
+-.095655
+.070240
+.304228
+-.885903
+1.332532
+-1.320243
+.763912
+.114675
+-.911129
+1.264610
+-1.041116
+.377441
+.415710
+-1.017273
+1.235756
+-1.066468
+.657056
+-.214565
+-.093398
+.197016
+-.125021
+-.036496
+.193560
+-.276414
+.250761
+-.120136
+-.072753
+.253299
+-.342948
+.304309
+-.175609
+.060419
+-.066184
+.228317
+-.478923
+.692226
+-.777607
+.745713
+-.689555
+.694008
+-.752583
+.769414
+-.649373
+.397532
+-.135154
+.010351
+-.076834
+.245805
+-.355549
+.301924
+-.120623
+-.046324
+.069021
+.068008
+-.263695
+.395589
+-.428004
+.439783
+-.548153
+.791756
+-1.070334
+1.193418
+-1.005038
+.494102
+.187856
+-.809761
+1.183622
+-1.245514
+1.053631
+-.723968
+.360184
+-.022587
+-.259629
+.461281
+-.550862
+.505672
+-.337058
+.101846
+.113915
+-.232965
+.225645
+-.125741
+.012432
+.032033
+.035240
+-.198805
+.396799
+-.552752
+.608910
+-.547998
+.400015
+-.234842
+.140921
+-.191221
+.406754
+-.736900
+1.074286
+-1.303019
+1.354480
+-1.235309
+1.009133
+-.747740
+.490463
+-.241462
+.000863
+.204364
+-.322058
+.309990
+-.173281
+-.030150
+.223876
+-.360985
+.449151
+-.534273
+.654884
+-.800152
+.901157
+-.864065
+.627079
+-.207390
+-.290501
+.711864
+-.914086
+.823363
+-.463007
+-.051008
+.541787
+-.826436
+.788191
+-.443559
+-.037197
+.392093
+-.402325
+.029823
+.535599
+-.967940
+.992723
+-.555348
+-.140639
+.753606
+-1.005780
+.838114
+-.424782
+.049409
+.068285
+.113414
+-.461028
+.764103
+-.858092
+.702675
+-.385974
+.066686
+.109985
+-.082530
+-.101460
+.315945
+-.428425
+.373971
+-.188104
+-.023180
+.156602
+-.178033
+.134427
+-.102424
+.114671
+-.125954
+.052641
+.140817
+-.379804
+.501956
+-.360532
+-.060840
+.608582
+-1.032050
+1.128671
+-.869883
+.425599
+-.066855
+.001525
+-.241764
+.587629
+-.744795
+.509776
+.091154
+-.800962
+1.273745
+-1.271340
+.790492
+-.045807
+-.666919
+1.125660
+-1.257451
+1.109834
+-.774522
+.339264
+.105864
+-.448155
+.573752
+-.436680
+.117167
+.198148
+-.321372
+.183817
+.119344
+-.394739
+.477277
+-.326621
+.035606
+.238543
+-.362902
+.284021
+-.033417
+-.302643
+.625901
+-.863457
+.986064
+-1.001047
+.927313
+-.775491
+.552296
+-.283571
+.024712
+.166027
+-.276288
+.360738
+-.498451
+.708395
+-.897050
+.899577
+-.600132
+.040500
+.577716
+-1.010778
+1.124546
+-.963532
+.689198
+-.447792
+.281049
+-.145302
+.003141
+.110036
+-.108828
+-.057192
+.344819
+-.646991
+.886579
+-1.085025
+1.335110
+-1.692829
+2.081169
+-2.298433
+2.142695
+-1.565917
+.738590
+.032672
+-.482094
+.532389
+-.314264
+.058053
+.053008
+.034654
+-.260998
+.524023
+-.738071
+.848328
+-.822299
+.652150
+-.372156
+.063086
+.179547
+-.299013
+.308297
+-.267821
+.227328
+-.184785
+.101238
+.043862
+-.213636
+.334102
+-.357629
+.306708
+-.250651
+.233066
+-.220305
+.126150
+.102134
+-.411218
+.650010
+-.660475
+.386623
+.074043
+-.508855
+.694464
+-.511574
+.014698
+.578086
+-.979409
+.974250
+-.538529
+-.137791
+.746563
+-1.025484
+.892984
+-.474413
+.013183
+.269713
+-.282443
+.084562
+.170842
+-.330918
+.321065
+-.171566
+-.013898
+.126424
+-.117035
+.020746
+.073284
+-.085352
+.000137
+.123323
+-.193322
+.151536
+-.019249
+-.108723
+.121283
+.036299
+-.323458
+.626825
+-.830239
+.884707
+-.831470
+.765742
+-.769852
+.860688
+-.980148
+1.027150
+-.909758
+.594171
+-.133533
+-.337654
+.651918
+-.690288
+.458101
+-.102363
+-.158922
+.167513
+.064334
+-.344796
+.415430
+-.121375
+-.472613
+1.100675
+-1.441304
+1.298155
+-.705459
+-.097759
+.795669
+-1.142587
+1.051635
+-.598422
+-.037667
+.651185
+-1.074909
+1.216964
+-1.070716
+.701400
+-.217748
+-.259649
+.621768
+-.784403
+.700884
+-.383664
+-.072239
+.491327
+-.671872
+.485626
+.030544
+-.662198
+1.116543
+-1.186167
+.873671
+-.389181
+.019354
+.043383
+.201195
+-.589248
+.910009
+-1.024480
+.916977
+-.669729
+.397890
+-.191235
+.087590
+-.077653
+.125675
+-.189033
+.228119
+-.209529
+.113013
+.053414
+-.241493
+.373807
+-.384758
+.269545
+-.101720
+-.004620
+-.030824
+.195840
+-.389613
+.490689
+-.441416
+.286724
+-.138607
+.092537
+-.156922
+.246536
+-.243713
+.084047
+.192335
+-.457365
+.567398
+-.444614
+.118206
+.295520
+-.656708
+.868848
+-.913433
+.841532
+-.736262
+.669878
+-.673523
+.727681
+-.775017
+.750452
+-.615336
+.376803
+-.080417
+-.216159
+.465770
+-.633865
+.687034
+-.592359
+.342411
+.009346
+-.339651
+.498567
+-.390456
+.043087
+.387553
+-.690917
+.714907
+-.448990
+.024608
+.365486
+-.573141
+.558292
+-.379989
+.138455
+.081609
+-.235133
+.313551
+-.336867
+.348676
+-.402280
+.528887
+-.704142
+.846137
+-.861099
+.711554
+-.454724
+.213870
+-.096708
+.120197
+-.202246
+.232292
+-.168334
+.080007
+-.093602
+.274409
+-.542404
+.704040
+-.594499
+.226649
+.180402
+-.337633
+.099317
+.408503
+-.854363
+.927042
+-.559866
+-.012185
+.405701
+-.343600
+-.164851
+.832937
+-1.273858
+1.223837
+-.678951
+-.115349
+.797833
+-1.071452
+.845514
+-.277573
+-.307286
+.586869
+-.416002
+-.097030
+.663205
+-.992273
+.962039
+-.665831
+.314973
+-.077516
+-.024751
+.093941
+-.242689
+.490487
+-.749203
+.895395
+-.858575
+.655518
+-.359597
+.050166
+.212259
+-.381065
+.419561
+-.318678
+.119436
+.094716
+-.245985
+.318538
+-.374886
+.512158
+-.784895
+1.147555
+-1.457580
+1.540899
+-1.285291
+.711748
+.014562
+-.643227
+.943420
+-.807662
+.304962
+.344977
+-.868580
+1.061837
+-.879334
+.443884
+.026149
+-.329085
+.370076
+-.186901
+-.089838
+.308306
+-.359597
+.211479
+.090072
+-.443684
+.731794
+-.866705
+.827631
+-.669896
+.495574
+-.396885
+.403544
+-.467224
+.494087
+-.403961
+.177396
+.136784
+-.451115
+.681308
+-.777205
+.736525
+-.605366
+.464861
+-.398104
+.444668
+-.571359
+.690163
+-.720081
+.647280
+-.530121
+.442057
+-.404947
+.377673
+-.311894
+.217694
+-.166553
+.218774
+-.342036
+.408864
+-.294111
+-.001866
+.316153
+-.421927
+.198254
+.260842
+-.690783
+.828302
+-.583257
+.083700
+.431402
+-.778653
+.924294
+-.945426
+.913394
+-.813486
+.571266
+-.152192
+-.363853
+.805230
+-1.011455
+.932082
+-.648449
+.313334
+-.062644
+-.042099
+.018712
+.067313
+-.144904
+.170915
+-.142936
+.085617
+-.017944
+-.073078
+.225202
+-.457681
+.725327
+-.915493
+.905934
+-.650532
+.230673
+.172828
+-.378412
+.309042
+-.031648
+-.297229
+.539128
+-.654231
+.697415
+-.742378
+.804181
+-.827611
+.746852
+-.557190
+.328704
+-.145258
+.022431
+.117545
+-.380084
+.787040
+-1.213316
+1.438243
+-1.290024
+.780272
+-.120359
+-.404262
+.615279
+-.545071
+.388152
+-.344474
+.478231
+-.694878
+.838978
+-.823691
+.688980
+-.553455
+.511320
+-.560254
+.611911
+-.567526
+.396832
+-.164134
+-.010138
+.021932
+.156301
+-.460441
+.770433
+-.975859
+1.033993
+-.983832
+.904933
+-.849544
+.802199
+-.704550
+.528273
+-.329249
+.223020
+-.289128
+.483974
+-.648896
+.624766
+-.387112
+.086496
+.050241
+.112180
+-.509058
+.908462
+-1.055950
+.823745
+-.268546
+-.418121
+1.011118
+-1.336555
+1.312289
+-.956748
+.385431
+.207513
+-.598615
+.617043
+-.227817
+-.434290
+1.112815
+-1.545373
+1.587997
+-1.278845
+.806026
+-.399278
+.207903
+-.232214
+.342927
+-.373566
+.229976
+.048219
+-.312237
+.399967
+-.240935
+-.099425
+.464995
+-.708139
+.770669
+-.693284
+.558707
+-.422979
+.288739
+-.131479
+-.055902
+.243763
+-.384793
+.448406
+-.437101
+.373468
+-.276172
+.151532
+-.007824
+-.126614
+.205712
+-.192323
+.086244
+.073368
+-.235881
+.372866
+-.486290
+.583173
+-.640291
+.594425
+-.373930
+-.045787
+.601324
+-1.145943
+1.502812
+-1.541442
+1.240569
+-.707483
+.142246
+.242577
+-.315763
+.091255
+.276354
+-.573499
+.649864
+-.509803
+.308660
+-.244536
+.410798
+-.712734
+.917135
+-.811212
+.362195
+.239735
+-.691481
+.764755
+-.440919
+-.093814
+.574098
+-.803204
+.726799
+-.409218
+-.037538
+.505797
+-.900859
+1.133177
+-1.132614
+.890054
+-.489715
+.089663
+.152890
+-.165060
+-.011019
+.263305
+-.492660
+.664946
+-.793225
+.875298
+-.853705
+.645590
+-.225070
+-.312776
+.769807
+-.945935
+.758419
+-.296432
+-.227637
+.598383
+-.711751
+.614933
+-.455624
+.380907
+-.452414
+.625931
+-.797296
+.873933
+-.818580
+.639519
+-.348026
+-.065768
+.603011
+-1.191061
+1.649785
+-1.748325
+1.341429
+-.497422
+-.485009
+1.204476
+-1.359052
+.898975
+-.042321
+-.842927
+1.411273
+-1.476083
+1.059503
+-.357069
+-.354023
+.826219
+-.936562
+.729371
+-.383631
+.112656
+-.045731
+.161675
+-.320070
+.372624
+-.276474
+.124593
+-.067419
+.185290
+-.412729
+.577412
+-.524998
+.232362
+.177707
+-.526530
+.698580
+-.697349
+.605157
+-.495288
+.378046
+-.223969
+.032370
+.128035
+-.154513
+-.001761
+.271537
+-.490317
+.501681
+-.266151
+-.108625
+.441509
+-.599953
+.579186
+-.481933
+.420851
+-.424049
+.417698
+-.296218
+.021388
+.328686
+-.598684
+.654049
+-.466607
+.130162
+.199872
+-.397484
+.427778
+-.344918
+.236390
+-.156711
+.095458
+.001557
+-.177053
+.415591
+-.641710
+.765277
+-.740032
+.590872
+-.391327
+.213588
+-.094361
+.041441
+-.064799
+.191498
+-.439408
+.769041
+-1.061726
+1.159471
+-.953097
+.461570
+.156142
+-.672337
+.905261
+-.807606
+.476815
+-.086035
+-.214950
+.363569
+-.378540
+.303847
+-.158472
+-.063264
+.347409
+-.623729
+.784170
+-.751588
+.539626
+-.245112
+-.027874
+.246531
+-.456957
+.708812
+-.965129
+1.087451
+-.926020
+.451332
+.182769
+-.707823
+.902504
+-.732552
+.366392
+-.055328
+-.035048
+-.075809
+.216737
+-.199447
+-.042547
+.402757
+-.666728
+.647772
+-.307981
+-.207787
+.645429
+-.781246
+.547375
+-.068379
+-.414464
+.686217
+-.679782
+.500498
+-.342507
+.356211
+-.554761
+.815847
+-.968843
+.905124
+-.641781
+.305427
+-.053217
+-.017740
+-.079954
+.240496
+-.333795
+.283559
+-.107517
+-.102568
+.245386
+-.276344
+.234301
+-.215070
+.311274
+-.554954
+.892439
+-1.201788
+1.344889
+-1.234075
+.886546
+-.436087
+.083275
+.003526
+.214542
+-.615970
+.985459
+-1.141844
+1.041373
+-.783470
+.518470
+-.333029
+.203888
+-.051113
+-.161321
+.367590
+-.436335
+.274121
+.085616
+-.478550
+.697150
+-.611741
+.246341
+.235369
+-.618829
+.743487
+-.564230
+.146234
+.386179
+-.905425
+1.313132
+-1.548455
+1.588158
+-1.448108
+1.179839
+-.851693
+.517150
+-.191348
+-.143609
+.504164
+-.866935
+1.158028
+-1.281995
+1.173709
+-.840588
+.370496
+.098373
+-.429131
+.536928
+-.419871
+.159917
+.107255
+-.244585
+.170768
+.099477
+-.450712
+.705516
+-.698547
+.359626
+.233837
+-.870175
+1.289858
+-1.308691
+.911022
+-.256962
+-.401597
+.843210
+-.964381
+.791383
+-.431721
+.015038
+.340626
+-.539277
+.520992
+-.291773
+-.054718
+.362336
+-.493840
+.421707
+-.254248
+.158295
+-.223979
+.378019
+-.429313
+.226749
+.191872
+-.589578
+.685857
+-.369814
+-.192206
+.644175
+-.668874
+.199909
+.526708
+-1.111917
+1.229297
+-.807966
+.058564
+.657661
+-1.026509
+.929826
+-.476941
+-.076304
+.461046
+-.514629
+.240303
+.206787
+-.598204
+.743916
+-.585963
+.221757
+.161548
+-.403928
+.463162
+-.416285
+.374108
+-.378379
+.365021
+-.223961
+-.093135
+.507165
+-.845914
+.956677
+-.811969
+.527471
+-.278990
+.181599
+-.218859
+.267787
+-.192942
+-.062303
+.446355
+-.838355
+1.115521
+-1.202303
+1.084700
+-.803147
+.440981
+-.106250
+-.105484
+.161125
+-.118020
+.094011
+-.186586
+.399639
+-.641439
+.801624
+-.843237
+.827929
+-.849687
+.934055
+-.992922
+.878517
+-.497810
+-.099071
+.721530
+-1.130376
+1.161027
+-.808136
+.229964
+.324558
+-.628715
+.576786
+-.222695
+-.259285
+.670143
+-.886880
+.915376
+-.868458
+.882430
+-1.019061
+1.211629
+-1.295026
+1.113551
+-.644395
+.048968
+.401141
+-.490904
+.210422
+.227311
+-.522408
+.484669
+-.148220
+-.274599
+.555515
+-.599253
+.471802
+-.304321
+.164957
+-.005717
+-.278924
+.735443
+-1.272189
+1.682156
+-1.757311
+1.421552
+-.794241
+.136974
+.292812
+-.394632
+.284038
+-.210001
+.375429
+-.778794
+1.190712
+-1.292743
+.890981
+-.059671
+-.886543
+1.573920
+-1.779095
+1.524283
+-1.005238
+.427217
+.111357
+-.601223
+1.011857
+-1.219188
+1.067634
+-.529716
+-.185393
+.702198
+-.711521
+.200048
+.507601
+-.945977
+.815224
+-.180416
+-.578080
+1.026837
+-.967269
+.547548
+-.128809
+.015052
+-.251456
+.632947
+-.894984
+.917964
+-.781151
+.642136
+-.569389
+.484687
+-.261352
+-.121783
+.517746
+-.700640
+.532342
+-.070314
+-.464175
+.823766
+-.873382
+.641665
+-.273917
+-.061389
+.248924
+-.255007
+.114714
+.098222
+-.298774
+.409203
+-.374025
+.178363
+.132853
+-.452086
+.643236
+-.612194
+.378177
+-.089275
+-.049033
+-.096933
+.487423
+-.916500
+1.138709
+-1.034494
+.694428
+-.354440
+.224586
+-.339383
+.544457
+-.627952
+.487998
+-.200648
+-.061737
+.183495
+-.195386
+.227889
+-.377715
+.610844
+-.785941
+.773649
+-.566507
+.290346
+-.115524
+.144612
+-.359084
+.650070
+-.894501
+1.017973
+-1.012242
+.914312
+-.772916
+.623434
+-.478046
+.329607
+-.164685
+-.020114
+.207196
+-.359373
+.434618
+-.407648
+.288430
+-.128115
+.007416
+-.006991
+.168306
+-.462196
+.785726
+-.997444
+.980765
+-.703829
+.241164
+.259253
+-.647191
+.838638
+-.842638
+.735162
+-.604347
+.506426
+-.455788
+.441768
+-.446739
+.449946
+-.425256
+.350810
+-.232482
+.119275
+-.085102
+.177718
+-.369858
+.555211
+-.603259
+.442623
+-.118363
+-.217414
+.381735
+-.262934
+-.108437
+.562206
+-.868059
+.851812
+-.484684
+-.104588
+.699686
+-1.104463
+1.226302
+-1.094470
+.816413
+-.505797
+.222725
+.047174
+-.366174
+.782379
+-1.266368
+1.690620
+-1.878891
+1.705913
+-1.185118
+.480949
+.167389
+-.561055
+.621750
+-.396075
+.001848
+.433357
+-.804312
+1.032562
+-1.067628
+.900167
+-.576247
+.190477
+.150039
+-.374159
+.477322
+-.514289
+.557237
+-.642628
+.739714
+-.764258
+.636926
+-.352735
+.008849
+.242720
+-.296097
+.173027
+-.014545
+-.020978
+-.123077
+.362041
+-.542693
+.565964
+-.457097
+.330471
+-.290537
+.360675
+-.495205
+.645686
+-.803111
+.970375
+-1.100291
+1.081377
+-.814041
+.325449
+.187785
+-.457669
+.334483
+.076139
+-.451645
+.460676
+.003188
+-.736408
+1.356241
+-1.553948
+1.286478
+-.774615
+.323849
+-.111388
+.094993
+-.093263
+-.045148
+.322218
+-.604642
+.743171
+-.692241
+.538326
+-.426487
+.451162
+-.594943
+.752249
+-.809954
+.723595
+-.541614
+.371337
+-.314580
+.409269
+-.602412
+.764973
+-.747543
+.461108
+.052294
+-.606040
+.940892
+-.860730
+.357156
+.361582
+-.969758
+1.200718
+-.994570
+.525403
+-.092769
+-.053425
+-.151776
+.569115
+-.953023
+1.098821
+-.948868
+.601259
+-.230317
+-.019641
+.099597
+-.050537
+-.050619
+.146053
+-.217217
+.269275
+-.304362
+.309385
+-.266015
+.172790
+-.060844
+-.009912
+-.023216
+.188031
+-.448686
+.708329
+-.851094
+.805910
+-.594297
+.325843
+-.136370
+.103722
+-.197075
+.297486
+-.279719
+.101281
+.161744
+-.356548
+.345290
+-.088879
+-.324683
+.716767
+-.895646
+.739365
+-.254360
+-.411367
+1.013756
+-1.312974
+1.192617
+-.734000
+.188789
+.151854
+-.121947
+-.224360
+.651966
+-.894457
+.815814
+-.480514
+.093593
+.140858
+-.146296
+.007737
+.099790
+-.034289
+-.219679
+.543393
+-.762952
+.760997
+-.550698
+.266842
+-.081528
+.098090
+-.289724
+.519913
+-.629275
+.531775
+-.260581
+-.058373
+.278382
+-.300881
+.108749
+.237282
+-.623049
+.916500
+-1.012713
+.879328
+-.578119
+.240461
+-.002576
+-.062039
+-.029724
+.196971
+-.351475
+.445029
+-.481361
+.494820
+-.518265
+.563172
+-.621219
+.678408
+-.725407
+.755501
+-.757292
+.717596
+-.638184
+.549899
+-.501249
+.518920
+-.570837
+.571949
+-.442173
+.176353
+.135562
+-.366183
+.445458
+-.411937
+.370293
+-.387500
+.421802
+-.357060
+.120092
+.224669
+-.499458
+.548621
+-.370478
+.123846
+.006274
+.028807
+-.094960
+-.009250
+.370589
+-.867406
+1.243312
+-1.286698
+.971612
+-.458050
+-.030206
+.341365
+-.447336
+.399821
+-.254857
+.034436
+.259970
+-.615300
+.991605
+-1.328648
+1.558442
+-1.617897
+1.471159
+-1.144655
+.748399
+-.445368
+.362643
+-.496817
+.693284
+-.737365
+.508092
+-.083484
+-.290549
+.357966
+-.029622
+-.547157
+1.076638
+-1.296319
+1.124611
+-.679338
+.171060
+.238647
+-.512173
+.706118
+-.878913
+1.014328
+-1.014575
+.762198
+-.208904
+-.559309
+1.317740
+-1.772935
+1.690134
+-1.024262
+-.021719
+1.065720
+-1.726067
+1.815824
+-1.431066
+.874085
+-.461147
+.342879
+-.451526
+.595659
+-.619198
+.505419
+-.358941
+.295358
+-.333842
+.376213
+-.282638
+-.019616
+.476637
+-.936216
+1.236802
+-1.293091
+1.127225
+-.837694
+.538639
+-.311590
+.193055
+-.190426
+.300202
+-.506718
+.762973
+-.977776
+1.035117
+-.848715
+.423352
+.119790
+-.579680
+.763355
+-.581045
+.097577
+.489530
+-.937861
+1.072489
+-.867406
+.452593
+-.040649
+-.187375
+.170471
+.021709
+-.255652
+.423990
+-.491810
+.475003
+-.386659
+.211643
+.064034
+-.402250
+.699874
+-.840370
+.774037
+-.558746
+.322591
+-.175265
+.138655
+-.150546
+.132874
+-.062893
+-.013353
+.033216
+.014386
+-.066585
+.031538
+.134495
+-.379315
+.573713
+-.586151
+.364350
+.027565
+-.439720
+.716055
+-.773247
+.628468
+-.360839
+.041641
+.306011
+-.683690
+1.056117
+-1.317802
+1.333667
+-1.031958
+.476622
+.142330
+-.599480
+.745937
+-.576137
+.218973
+.131487
+-.307540
+.240940
+.014370
+-.322284
+.548728
+-.640088
+.643316
+-.652589
+.722051
+-.811513
+.807340
+-.603584
+.185020
+.344897
+-.807725
+1.036664
+-.955702
+.610439
+-.138171
+-.303942
+.613470
+-.779056
+.858444
+-.914861
+.959583
+-.945777
+.819796
+-.584532
+.313048
+-.090760
+-.068342
+.251321
+-.579120
+1.082873
+-1.623169
+1.931266
+-1.762646
+1.065848
+-.049682
+-.903803
+1.434321
+-1.390574
+.898748
+-.274276
+-.164735
+.265647
+-.091649
+-.163715
+.324189
+-.335258
+.264185
+-.218969
+.261753
+-.378165
+.505422
+-.578634
+.557947
+-.433575
+.227906
+-.001961
+-.150749
+.142787
+.046494
+-.332492
+.552340
+-.555810
+.303751
+.098763
+-.465463
+.648112
+-.627433
+.510638
+-.440075
+.484624
+-.596180
+.661643
+-.603873
+.447079
+-.292992
+.229795
+-.254401
+.276644
+-.202119
+.019772
+.184847
+-.302664
+.294939
+-.224948
+.202119
+-.291127
+.465180
+-.638020
+.738480
+-.758908
+.739597
+-.711214
+.652440
+-.502984
+.222334
+.155003
+-.515103
+.719840
+-.685874
+.433935
+-.075376
+-.254453
+.470777
+-.571931
+.608701
+-.616006
+.564340
+-.378827
+.021074
+.429974
+-.778537
+.819748
+-.490311
+-.055333
+.519841
+-.652788
+.422422
+-.038918
+-.193323
+.088092
+.299829
+-.726182
+.935998
+-.832898
+.518861
+-.188967
+-.025397
+.140807
+-.274219
+.511216
+-.802879
+.978568
+-.868261
+.440773
+.149004
+-.642678
+.833926
+-.689946
+.359400
+-.068346
+-.021792
+-.098951
+.307841
+-.452140
+.460369
+-.385047
+.350786
+-.449604
+.661801
+-.858128
+.878141
+-.628387
+.140047
+.438588
+-.901097
+1.064996
+-.850122
+.326576
+.297667
+-.763027
+.887470
+-.664856
+.262712
+.086215
+-.226214
+.156007
+.005259
+-.124168
+.143529
+-.095807
+.049006
+-.043504
+.069830
+-.090147
+.070104
+.006667
+-.139474
+.308377
+-.463803
+.526759
+-.420049
+.124005
+.281600
+-.631526
+.753737
+-.573964
+.179260
+.212808
+-.376576
+.224267
+.124096
+-.409290
+.407844
+-.093263
+-.342647
+.636387
+-.660618
+.526708
+-.490487
+.729508
+-1.172883
+1.531258
+-1.513673
+1.061777
+-.410113
+-.082001
+.196705
+-.010497
+-.185875
+.130520
+.203980
+-.606695
+.818878
+-.751188
+.545253
+-.436451
+.545259
+-.778334
+.918047
+-.814291
+.510116
+-.198636
+.058204
+-.113049
+.234707
+-.271364
+.183434
+-.066587
+.049359
+-.164132
+.309155
+-.334274
+.172526
+.097969
+-.312544
+.345523
+-.197159
+-.022090
+.183485
+-.224481
+.161665
+-.039205
+-.126026
+.347973
+-.625296
+.897765
+-1.057527
+1.017401
+-.782418
+.461034
+-.199863
+.090886
+-.124657
+.222451
+-.311903
+.376383
+-.439238
+.509544
+-.551059
+.508835
+-.368434
+.188997
+-.074981
+.106213
+-.279594
+.503833
+-.647918
+.610787
+-.374111
+.014511
+.328817
+-.517105
+.476985
+-.235214
+-.095776
+.373450
+-.491110
+.421191
+-.219766
+-.004424
+.141673
+-.133563
+.001735
+.167753
+-.284207
+.321524
+-.343860
+.456846
+-.711313
+1.033522
+-1.248736
+1.196897
+-.862729
+.417561
+-.126231
+.171834
+-.519534
+.921337
+-1.067720
+.786421
+-.154418
+-.549297
+1.012775
+-1.068808
+.774534
+-.358631
+.082527
+-.098918
+.378373
+-.732587
+.917391
+-.764460
+.276038
+.366878
+-.890317
+1.062793
+-.808741
+.242062
+.393344
+-.842054
+.955967
+-.758887
+.426884
+-.191402
+.209716
+-.469749
+.786674
+-.902671
+.639561
+-.016189
+-.743174
+1.320640
+-1.474623
+1.167840
+-.577186
+-.018371
+.400581
+-.522151
+.498167
+-.492570
+.585290
+-.716359
+.744140
+-.569508
+.227669
+.125309
+-.322931
+.310949
+-.186364
+.120661
+-.226098
+.469060
+-.697856
+.759462
+-.609557
+.328266
+-.035996
+-.212303
+.461043
+-.787717
+1.196071
+-1.564078
+1.697893
+-1.459321
+.876267
+-.157359
+-.404336
+.581793
+-.330740
+-.193025
+.723691
+-1.030640
+1.037334
+-.848152
+.669321
+-.671172
+.875203
+-1.137567
+1.243088
+-1.053393
+.611652
+-.129073
+-.145591
+.089639
+.209565
+-.510718
+.577454
+-.329005
+-.119410
+.546108
+-.768427
+.739234
+-.538499
+.287672
+-.063885
+-.125640
+.308076
+-.494132
+.656961
+-.749212
+.733413
+-.597700
+.353323
+-.030567
+-.314165
+.590842
+-.693641
+.554582
+-.205146
+-.207005
+.479864
+-.472690
+.198239
+.180692
+-.455022
+.499860
+-.336328
+.086663
+.129586
+-.270065
+.364380
+-.453463
+.538899
+-.584717
+.557017
+-.456748
+.317712
+-.180351
+.068315
+.017956
+-.097261
+.200822
+-.358029
+.568191
+-.771161
+.849493
+-.684748
+.247559
+.341177
+-.838549
+1.001914
+-.736587
+.169018
+.413895
+-.729497
+.663706
+-.327124
+-.031616
+.192363
+-.095044
+-.148501
+.358834
+-.425459
+.376380
+-.337455
+.421122
+-.631812
+.857064
+-.947506
+.824588
+-.538592
+.237251
+-.069733
+.093739
+-.247926
+.402959
+-.449482
+.359087
+-.179513
+-.021634
+.212169
+-.402700
+.605557
+-.789806
+.881691
+-.816938
+.599089
+-.308139
+.048014
+.119507
+-.193383
+.192417
+-.108321
+-.083595
+.354381
+-.567732
+.525752
+-.112141
+-.575093
+1.229801
+-1.511884
+1.275432
+-.675926
+.065989
+.247591
+-.202264
+-.013254
+.138028
+-.053917
+-.135487
+.218211
+-.077971
+-.184765
+.318091
+-.117490
+-.404169
+1.011640
+-1.404829
+1.408993
+-1.056308
+.524622
+-.013741
+-.337207
+.460941
+-.348336
+.056774
+.275399
+-.463335
+.374284
+-.025668
+-.408485
+.708854
+-.761641
+.630903
+-.496790
+.513052
+-.696142
+.921829
+-1.015607
+.861355
+-.460608
+-.072894
+.557515
+-.800944
+.663497
+-.124022
+-.677437
+1.462906
+-1.924098
+1.873421
+-1.348486
+.594666
+.072929
+-.441899
+.499196
+-.398349
+.335341
+-.424276
+.645209
+-.874005
+.956227
+-.782808
+.344918
+.243450
+-.770558
+1.008230
+-.824934
+.268860
+.437700
+-1.000975
+1.197543
+-.973761
+.452763
+.142011
+-.595837
+.787905
+-.718153
+.473498
+-.160997
+-.147951
+.426860
+-.658505
+.795240
+-.763674
+.524142
+-.139417
+-.215839
+.336209
+-.115118
+-.367963
+.876153
+-1.153650
+1.086434
+-.774528
+.461999
+-.370633
+.552814
+-.867331
+1.092848
+-1.091928
+.901970
+-.687472
+.599176
+-.658177
+.757641
+-.770842
+.664159
+-.515874
+.433196
+-.452414
+.516289
+-.543211
+.515085
+-.496501
+.566754
+-.727699
+.873459
+-.855049
+.595837
+-.170486
+-.217804
+.358738
+-.180687
+-.181468
+.458047
+-.424195
+.068469
+.378987
+-.597092
+.407037
+.084337
+-.547870
+.666492
+-.370171
+-.106404
+.389413
+-.233539
+-.305680
+.917201
+-1.255916
+1.171530
+-.780427
+.342334
+-.052118
+-.087774
+.223386
+-.484454
+.842832
+-1.110016
+1.072149
+-.652988
+-.017116
+.667163
+-1.029576
+.967299
+-.522157
+-.118252
+.702604
+-1.011699
+.940347
+-.538991
+-.007210
+.462405
+-.651900
+.543813
+-.254672
+-.023605
+.131803
+-.025387
+-.212887
+.430976
+-.499190
+.381920
+-.150356
+-.068767
+.174770
+-.153945
+.081072
+-.061100
+.149967
+-.308684
+.424604
+-.389580
+.184716
+.088943
+-.262504
+.207867
+.069099
+-.421233
+.652112
+-.645158
+.432892
+-.152763
+-.071646
+.221456
+-.367238
+.566232
+-.772239
+.849821
+-.690446
+.331819
+.028366
+-.149422
+-.086788
+.583659
+-1.079368
+1.302971
+-1.132772
+.657980
+-.115279
+-.249821
+.309656
+-.100976
+-.221341
+.482550
+-.575073
+.488782
+-.281004
+.020350
+.251320
+-.517433
+.760407
+-.945169
+1.032813
+-1.010915
+.906656
+-.764100
+.605846
+-.420517
+.194064
+.045084
+-.219336
+.252854
+-.138191
+-.048393
+.206249
+-.293273
+.350697
+-.439425
+.545703
+-.553562
+.327163
+.156435
+-.740044
+1.156702
+-1.197290
+.850936
+-.311006
+-.156236
+.377467
+-.350715
+.193856
+-.028099
+-.096588
+.181536
+-.208127
+.105022
+.200381
+-.689794
+1.211790
+-1.541504
+1.505950
+-1.083889
+.412133
+.294903
+-.847642
+1.144008
+-1.176150
+1.005223
+-.731893
+.470169
+-.317986
+.323834
+-.462855
+.639957
+-.727109
+.625156
+-.324332
+-.070525
+.377345
+-.433590
+.203670
+.178161
+-.477096
+.511219
+-.286975
+.011689
+.041612
+.269301
+-.837625
+1.357735
+-1.514820
+1.186513
+-.523230
+-.139920
+.474419
+-.331172
+-.198945
+.851565
+-1.327337
+1.426539
+-1.123383
+.559070
+.035815
+-.452256
+.594112
+-.501994
+.298974
+-.097796
+-.063406
+.212920
+-.379977
+.535447
+-.596872
+.499020
+-.269847
+.040796
+.029709
+.132561
+-.455860
+.760786
+-.873671
+.735851
+-.434466
+.138678
+.010056
+.020497
+-.148550
+.244358
+-.216984
+.064415
+.138752
+-.297529
+.352712
+-.303135
+.192654
+-.084015
+.039331
+-.106609
+.301346
+-.583924
+.853383
+-.980133
+.873155
+-.543566
+.116093
+.230660
+-.364893
+.279042
+-.090020
+-.041731
+.022200
+.113411
+-.231181
+.203390
+-.013322
+-.218638
+.312049
+-.154213
+-.214168
+.619532
+-.868193
+.869039
+-.678200
+.440024
+-.275698
+.204761
+-.151718
+.022326
+.212914
+-.486907
+.670999
+-.647984
+.378210
+.073128
+-.554758
+.883664
+-.915368
+.607285
+-.049706
+-.556233
+.976026
+-1.048088
+.766040
+-.285453
+-.159916
+.389681
+-.375062
+.237832
+-.150932
+.211855
+-.378517
+.507037
+-.454125
+.166253
+.298121
+-.808154
+1.218886
+-1.413154
+1.324777
+-.957693
+.401827
+.175027
+-.578780
+.671559
+-.439348
+-.003115
+.478955
+-.844233
+1.047384
+-1.117884
+1.106830
+-1.037155
+.903690
+-.709936
+.493724
+-.310007
+.188184
+-.111522
+.044144
+.018483
+-.027429
+-.085237
+.338915
+-.659447
+.897968
+-.907112
+.626757
+-.124347
+-.434683
+.867021
+-1.054213
+.982872
+-.728531
+.403678
+-.106628
+-.101990
+.192715
+-.148657
+-.041615
+.368365
+-.773080
+1.137928
+-1.318896
+1.219992
+-.865716
+.413081
+-.077235
+.008391
+-.201446
+.503815
+-.717989
+.728430
+-.567896
+.384123
+-.334441
+.478219
+-.732462
+.916151
+-.857967
+.505336
+.032581
+-.541074
+.826392
+-.831995
+.663199
+-.499553
+.459401
+-.521370
+.565225
+-.496954
+.348527
+-.261135
+.359138
+-.621842
+.869763
+-.889551
+.601187
+-.128874
+-.287357
+.470473
+-.429804
+.329151
+-.329753
+.441869
+-.510313
+.345562
+.108625
+-.708046
+1.194485
+-1.364840
+1.191392
+-.809725
+.400495
+-.068626
+-.191534
+.439589
+-.709134
+.975191
+-1.182596
+1.293193
+-1.305359
+1.238063
+-1.108362
+.929644
+-.728734
+.556948
+-.474500
+.512611
+-.638506
+.751644
+-.722829
+.463260
+.011610
+-.563413
+.978625
+-1.068048
+.770186
+-.201500
+-.381369
+.698404
+-.589018
+.106035
+.497962
+-.896725
+.866601
+-.411212
+-.244642
+.791949
+-1.018682
+.916035
+-.642741
+.382504
+-.206759
+.046756
+.210962
+-.590708
+.970789
+-1.153179
+1.005914
+-.566572
+.028911
+.374171
+-.504859
+.383470
+-.151125
+-.029064
+.064339
+.030596
+-.158861
+.202313
+-.082620
+-.202470
+.576449
+-.912360
+1.082560
+-1.012504
+.713611
+-.273607
+-.194606
+.613214
+-.963296
+1.251564
+-1.449140
+1.465014
+-1.196479
+.633436
+.067070
+-.617759
+.755522
+-.420580
+-.173920
+.654565
+-.723923
+.358044
+.182706
+-.543652
+.526965
+-.216315
+-.112162
+.211830
+-.042220
+-.228037
+.374928
+-.294272
+.064513
+.134537
+-.168136
+.043269
+.106520
+-.125058
+-.053620
+.358753
+-.627436
+.705110
+-.534550
+.179335
+.225362
+-.553601
+.744509
+-.803403
+.763128
+-.646294
+.458024
+-.206383
+-.076196
+.332316
+-.500725
+.541611
+-.449955
+.252913
+.000539
+-.249001
+.425951
+-.472154
+.359340
+-.119037
+-.144027
+.277893
+-.152050
+-.262224
+.851565
+-1.397524
+1.679765
+-1.587225
+1.169032
+-.596025
+.062996
+.302914
+-.475862
+.502990
+-.452507
+.380513
+-.328624
+.333112
+-.423212
+.606856
+-.860885
+1.137269
+-1.377149
+1.517777
+-1.493668
+1.250712
+-.783500
+.173352
+.416050
+-.806884
+.904912
+-.755659
+.507776
+-.303227
+.175024
+-.033402
+-.245405
+.693719
+-1.187788
+1.499229
+-1.434214
+.967716
+-.280247
+-.332588
+.624977
+-.537921
+.222229
+.067557
+-.140887
+-.008087
+.205468
+-.224639
+-.050796
+.538064
+-.998788
+1.183824
+-.983161
+.488815
+.059095
+-.401097
+.385330
+-.032032
+-.484401
+.918032
+-1.061744
+.841562
+-.354926
+-.170090
+.483179
+-.437738
+.066939
+.435145
+-.817379
+.900564
+-.658839
+.214518
+.239116
+-.535760
+.601533
+-.462622
+.204181
+.087355
+-.363027
+.611103
+-.824392
+.967758
+-.981090
+.826037
+-.542323
+.258265
+-.127087
+.222188
+-.469111
+.677183
+-.661271
+.371620
+.063249
+-.415048
+.501941
+-.301358
+-.044313
+.324972
+-.390605
+.226015
+.063753
+-.330197
+.459827
+-.409320
+.194600
+.135931
+-.514927
+.853103
+-1.042258
+.986568
+-.657792
+.138195
+.391628
+-.731434
+.766988
+-.533075
+.185870
+.099408
+-.232317
+.237208
+-.193253
+.141616
+-.043698
+-.170903
+.506885
+-.845020
+.986911
+-.785413
+.268939
+.340310
+-.744265
+.752607
+-.405597
+-.056450
+.361397
+-.391407
+.247941
+-.145242
+.217328
+-.397800
+.478017
+-.302503
+-.061250
+.333702
+-.227494
+-.305161
+.982553
+-1.351145
+1.092384
+-.260125
+-.728289
+1.349944
+-1.308187
+.711337
+.018892
+-.436585
+.353436
+.074052
+-.491238
+.600997
+-.343749
+-.105270
+.486269
+-.624480
+.507043
+-.246557
+-.009508
+.152463
+-.141687
+.004222
+.176483
+-.284838
+.221097
+.037495
+-.401243
+.695799
+-.751448
+.504492
+-.045145
+-.421328
+.678671
+-.608388
+.245091
+.245109
+-.645018
+.783783
+-.608528
+.203617
+.249187
+-.553479
+.589549
+-.371199
+.037174
+.222313
+-.267778
+.086478
+.199847
+-.400059
+.357924
+-.041460
+-.428118
+.825798
+-.931903
+.651381
+-.081789
+-.514891
+.835762
+-.698613
+.151748
+.539268
+-1.030011
+1.083686
+-.693439
+.068099
+.502510
+-.809629
+.814881
+-.627073
+.406613
+-.274006
+.274036
+-.393952
+.597113
+-.838769
+1.060305
+-1.182999
+1.124105
+-.837899
+.360202
+.178445
+-.594446
+.737210
+-.572161
+.203111
+.188906
+-.454328
+.556018
+-.564611
+.575540
+-.617252
+.627076
+-.515797
+.267365
+.012317
+-.146073
+.005605
+.386081
+-.847875
+1.138581
+-1.094324
+.715211
+-.151298
+-.391717
+.758345
+-.896978
+.843657
+-.667911
+.429739
+-.173264
+-.056604
+.209280
+-.253535
+.213042
+-.170773
+.219298
+-.382963
+.573442
+-.626679
+.410706
+.066620
+-.631988
+1.033621
+-1.090774
+.806214
+-.362663
+.005190
+.108061
+.016744
+-.249084
+.448096
+-.556012
+.603652
+-.638700
+.649367
+-.554218
+.268296
+.208120
+-.749293
+1.146667
+-1.210562
+.870824
+-.221170
+-.511815
+1.056967
+-1.204428
+.888326
+-.215131
+-.576861
+1.216305
+-1.515339
+1.445691
+-1.131893
+.766630
+-.503973
+.396918
+-.408059
+.467290
+-.523883
+.560286
+-.573880
+.555130
+-.482660
+.334018
+-.100204
+-.204754
+.541167
+-.847618
+1.051939
+-1.088032
+.915207
+-.536624
+.012394
+.540505
+-.973600
+1.161697
+-1.068471
+.782558
+-.487599
+.367566
+-.496370
+.783553
+-1.019171
+.998576
+-.652735
+.101288
+.407886
+-.638315
+.499857
+-.098016
+-.330114
+.553017
+-.473337
+.174022
+.140906
+-.272427
+.144601
+.152866
+-.419996
+.465806
+-.221640
+-.217744
+.649161
+-.879170
+.832794
+-.586017
+.305054
+-.138320
+.137903
+-.260111
+.429489
+-.601101
+.766228
+-.907478
+.962620
+-.849338
+.540419
+-.120586
+-.238203
+.376618
+-.248208
+-.057829
+.384030
+-.602663
+.669795
+-.609369
+.462536
+-.255501
+.007253
+.244957
+-.437363
+.502501
+-.407397
+.179533
+.097421
+-.317295
+.398459
+-.320922
+.134715
+.065286
+-.183460
+.162227
+.002755
+-.269907
+.568420
+-.813698
+.923990
+-.846009
+.586041
+-.226069
+-.097730
+.255180
+-.190100
+-.048625
+.337049
+-.549160
+.623720
+-.583123
+.499783
+-.443890
+.450885
+-.521642
+.637025
+-.763587
+.848098
+-.822159
+.635803
+-.309146
+-.040030
+.233057
+-.130157
+-.263798
+.766186
+-1.097865
+1.041614
+-.578536
+-.092048
+.667038
+-.912894
+.782573
+-.406736
+-.016760
+.343875
+-.534017
+.616271
+-.625028
+.566823
+-.434406
+.236645
+-.005774
+-.223583
+.435545
+-.628053
+.787404
+-.873030
+.837154
+-.668346
+.421090
+-.197887
+.088291
+-.106103
+.173712
+-.171628
+.023649
+.241081
+-.496799
+.601524
+-.498331
+.265904
+-.076203
+.081212
+-.305260
+.622092
+-.836928
+.815561
+-.565571
+.212830
+.099904
+-.305477
+.424821
+-.503586
+.543032
+-.493327
+.312422
+-.029170
+-.253909
+.425778
+-.445169
+.366043
+-.292519
+.303570
+-.405475
+.537772
+-.612579
+.552543
+-.313581
+-.096280
+.593590
+-1.013139
+1.155152
+-.891634
+.276594
+.429551
+-.871546
+.799195
+-.228864
+-.550361
+1.139949
+-1.259209
+.887587
+-.238252
+-.399177
+.825784
+-1.002046
+.998967
+-.900781
+.748390
+-.558594
+.377995
+-.299552
+.407412
+-.688315
+.991253
+-1.091284
+.833896
+-.263363
+-.366571
+.725941
+-.608409
+.065389
+.617634
+-1.087141
+1.119160
+-.724039
+.107304
+.467260
+-.814345
+.887578
+-.751683
+.507428
+-.224360
+-.084999
+.445261
+-.871444
+1.324693
+-1.701386
+1.871728
+-1.754521
+1.382559
+-.907535
+.527817
+-.379569
+.463892
+-.658961
+.802697
+-.783389
+.582100
+-.259626
+-.079740
+.318371
+-.350616
+.119522
+.339386
+-.882210
+1.302969
+-1.433400
+1.238325
+-.838445
+.437974
+-.202763
+.172215
+-.262163
+.346810
+-.349925
+.276365
+-.172302
+.064094
+.062326
+-.226116
+.402581
+-.516867
+.494689
+-.328015
+.096431
+.078831
+-.115122
+.021974
+.110855
+-.179466
+.135363
+-.007931
+-.133332
+.244121
+-.343466
+.489375
+-.706863
+.927695
+-1.002025
+.792784
+-.294138
+-.317384
+.753752
+-.776719
+.346032
+.347380
+-.987888
+1.309025
+-1.220606
+.816607
+-.279922
+-.232638
+.644437
+-.933376
+1.074226
+-1.016620
+.726674
+-.256154
+-.231392
+.523263
+-.485024
+.166769
+.199127
+-.327950
+.065199
+.500921
+-1.079818
+1.349988
+-1.147206
+.546535
+.203763
+-.833229
+1.175205
+-1.199370
+.966331
+-.570334
+.115702
+.282600
+-.515079
+.526071
+-.361456
+.163722
+-.096205
+.237464
+-.519201
+.757790
+-.767539
+.485426
+-.024340
+-.385392
+.533090
+-.356360
+-.023228
+.378606
+-.514989
+.375423
+-.053727
+-.277902
+.467659
+-.448930
+.247423
+.054352
+-.364383
+.616230
+-.781834
+.863710
+-.876252
+.829378
+-.725026
+.566939
+-.374433
+.187353
+-.054783
+.010525
+-.047083
+.106242
+-.099479
+-.044675
+.331917
+-.687329
+.991533
+-1.146211
+1.121410
+-.951079
+.688795
+-.370660
+.022739
+.298732
+-.484979
+.412029
+-.025717
+-.586383
+1.197955
+-1.534476
+1.405234
+-.804205
+-.073676
+.909734
+-1.396385
+1.368902
+-.873769
+.139436
+.536165
+-.923105
+.948463
+-.694917
+.324662
+.012461
+-.231358
+.311393
+-.271439
+.154261
+-.026182
+-.030140
+-.050867
+.271247
+-.549780
+.758550
+-.801487
+.679937
+-.492114
+.360786
+-.340614
+.376234
+-.345365
+.156089
+.175395
+-.526085
+.746014
+-.757486
+.601745
+-.402670
+.277968
+-.263484
+.301701
+-.296523
+.190240
+-.006580
+-.168554
+.250464
+-.213416
+.100467
+.017041
+-.091929
+.121262
+-.123355
+.104211
+-.052375
+-.032531
+.114615
+-.137854
+.078481
+.016933
+-.054313
+-.031775
+.211912
+-.367188
+.369185
+-.172546
+-.152892
+.471352
+-.666609
+.696771
+-.588592
+.396596
+-.172540
+-.035990
+.179554
+-.221855
+.171626
+-.094813
+.076978
+-.155044
+.278200
+-.344632
+.294038
+-.175766
+.119606
+-.217521
+.413761
+-.513660
+.331336
+.129416
+-.618277
+.782015
+-.422994
+-.322400
+1.038285
+-1.296730
+.949491
+-.228698
+-.418348
+.637454
+-.393484
+-.041260
+.309253
+-.222620
+-.135242
+.514244
+-.701555
+.656365
+-.485700
+.312466
+-.168700
+.004979
+.209960
+-.408169
+.445145
+-.213165
+-.250790
+.754434
+-1.051095
+.983295
+-.574670
+.015771
+.442001
+-.618745
+.489891
+-.179054
+-.128819
+.296989
+-.301626
+.217189
+-.142695
+.128041
+-.153050
+.166353
+-.144201
+.116841
+-.142278
+.251743
+-.413927
+.546707
+-.567079
+.443831
+-.220583
+-.000706
+.105394
+-.021903
+-.234577
+.553744
+-.772347
+.755972
+-.477638
+.039879
+.380779
+-.634035
+.671830
+-.550528
+.365629
+-.176403
+-.020247
+.252096
+-.509404
+.718373
+-.781434
+.659488
+-.430532
+.265871
+-.322588
+.620090
+-.995775
+1.190036
+-1.016975
+.504048
+.106694
+-.507255
+.522086
+-.216658
+-.156947
+.331464
+-.188804
+-.187048
+.583901
+-.794828
+.725351
+-.426833
+.058477
+.192541
+-.198105
+-.050633
+.438004
+-.781029
+.922029
+-.805808
+.499226
+-.149047
+-.090841
+.123968
+.055487
+-.365400
+.671622
+-.848092
+.837759
+-.678712
+.471889
+-.306228
+.197047
+-.090308
+-.066901
+.250688
+-.353361
+.263812
+.025505
+-.378171
+.585594
+-.506033
+.167082
+.247160
+-.515946
+.521689
+-.312297
+.051165
+.099531
+-.078436
+-.051824
+.158045
+-.121512
+-.095350
+.427551
+-.732957
+.853043
+-.689150
+.263397
+.271702
+-.692497
+.808860
+-.557249
+.029186
+.576679
+-1.044952
+1.228019
+-1.094106
+.731395
+-.310475
+.011268
+.065293
+.042387
+-.170757
+.127965
+.177557
+-.662591
+1.106919
+-1.285846
+1.110478
+-.680212
+.212000
+.102916
+-.214188
+.221061
+-.274558
+.450945
+-.693186
+.862077
+-.851290
+.669878
+-.425137
+.225285
+-.091809
+-.037833
+.219857
+-.412205
+.474962
+-.276953
+-.174090
+.689308
+-.990186
+.875057
+-.345815
+-.388707
+1.027502
+-1.332329
+1.232334
+-.831607
+.333052
+.069228
+-.271143
+.278247
+-.165416
+.011324
+.145187
+-.299349
+.438609
+-.510352
+.440212
+-.197495
+-.144480
+.416184
+-.445130
+.180778
+.241781
+-.560143
+.541116
+-.135455
+-.474887
+.973356
+-1.091197
+.763155
+-.163495
+-.397687
+.656365
+-.548394
+.242078
+-.025026
+.111718
+-.495762
+.948853
+-1.171646
+.993155
+-.480320
+-.113760
+.515979
+-.590216
+.382785
+-.046437
+-.280262
+.545029
+-.766532
+.966822
+-1.120063
+1.161694
+-1.046103
+.800992
+-.530795
+.361757
+-.364684
+.506671
+-.664540
+.694428
+-.517722
+.171879
+.207417
+-.465537
+.522288
+-.418011
+.280359
+-.233782
+.316061
+-.460348
+.551238
+-.508665
+.337422
+-.114024
+-.066028
+.134666
+-.065546
+-.131349
+.408753
+-.671929
+.787032
+-.635287
+.197026
+.393917
+-.883906
+1.022471
+-.706082
+.050314
+.658868
+-1.107068
+1.104076
+-.665577
+-.010745
+.652088
+-1.040380
+1.100806
+-.908796
+.619049
+-.363739
+.185224
+-.044644
+-.107066
+.256437
+-.315322
+.182701
+.166220
+-.634127
+1.038309
+-1.208476
+1.081842
+-.735675
+.341004
+-.069890
+.010849
+-.135742
+.329360
+-.461555
+.464303
+-.373545
+.308389
+-.389681
+.639015
+-.927620
+1.028852
+-.762437
+.140865
+.595668
+-1.102082
+1.137463
+-.713578
+.075560
+.466917
+-.727333
+.715235
+-.562867
+.390334
+-.226460
+.035972
+.194783
+-.402655
+.472631
+-.317953
+-.053429
+.536771
+-.989984
+1.308605
+-1.465195
+1.493426
+-1.437045
+1.306417
+-1.076551
+.726301
+-.284940
+-.155753
+.478857
+-.604460
+.532163
+-.335660
+.117785
+.040739
+-.110267
+.110840
+-.090077
+.091785
+-.125733
+.152605
+-.101117
+-.078731
+.353445
+-.585233
+.589927
+-.255666
+-.353782
+.995089
+-1.364783
+1.274377
+-.764466
+.078945
+.481337
+-.721813
+.628807
+-.325038
+-.036555
+.352446
+-.576232
+.678605
+-.619276
+.366824
+.050721
+-.516688
+.856849
+-.923454
+.682429
+-.245460
+-.180164
+.401880
+-.350417
+.119879
+.091458
+-.109616
+-.096415
+.385127
+-.527954
+.359194
+.106369
+-.665914
+1.038711
+-1.026619
+.626968
+-.030573
+-.491414
+.740429
+-.688801
+.465642
+-.248019
+.138356
+-.114879
+.083543
+.017930
+-.150186
+.191641
+-.031940
+-.330459
+.756610
+-1.027135
+.963869
+-.546883
+-.043041
+.494588
+-.528515
+.069555
+.681460
+-1.340385
+1.559492
+-1.241243
+.600678
+-.026314
+-.171698
+-.045051
+.438755
+-.675857
+.560477
+-.158125
+-.267671
+.450039
+-.303105
+-.028923
+.282348
+-.259264
+-.043642
+.447318
+-.725044
+.755489
+-.584404
+.361352
+-.215522
+.174869
+-.186012
+.200685
+-.240027
+.375959
+-.649498
+1.004344
+-1.299937
+1.397777
+-1.253481
+.943941
+-.613243
+.381354
+-.282532
+.271814
+-.284753
+.298187
+-.341159
+.445935
+-.581260
+.631898
+-.459696
+.013380
+.596070
+-1.126748
+1.338117
+-1.137514
+.636452
+-.078601
+-.305611
+.416595
+-.309337
+.131063
+-.029408
+.083680
+-.278377
+.516110
+-.664376
+.625243
+-.396885
+.081473
+.181428
+-.317712
+.376827
+-.486964
+.733213
+-1.056967
+1.268556
+-1.175688
+.733800
+-.102251
+-.438952
+.653706
+-.482705
+.063342
+.362261
+-.580896
+.502811
+-.178006
+-.251630
+.623198
+-.813441
+.776987
+-.560939
+.290481
+-.119356
+.154954
+-.394015
+.712669
+-.928371
+.903005
+-.624209
+.212627
+.149178
+-.319500
+.267431
+-.071258
+-.144320
+.282986
+-.314827
+.263113
+-.166857
+.059806
+.019281
+-.009655
+-.155811
+.492874
+-.905952
+1.189767
+-1.122790
+.612847
+.199963
+-.968933
+1.305603
+-1.000162
+.164308
+.802742
+-1.422321
+1.405494
+-.822746
+.063748
+.397058
+-.288966
+-.293601
+.960757
+-1.281947
+1.057905
+-.431050
+-.232579
+.600329
+-.587510
+.384817
+-.291110
+.482508
+-.887297
+1.251278
+-1.333730
+1.082295
+-.661241
+.325574
+-.244929
+.404092
+-.634759
+.734286
+-.581510
+.186106
+.331831
+-.798199
+1.046797
+-.976503
+.597208
+-.043921
+-.466756
+.736772
+-.695415
+.444632
+-.198848
+.147814
+-.329878
+.601837
+-.728960
+.539042
+-.043263
+-.552838
+.957195
+-.955285
+.533260
+.114106
+-.695439
+.984374
+-.929441
+.648782
+-.327744
+.100394
+.005630
+-.042175
+.076575
+-.147838
+.262023
+-.402518
+.527775
+-.564316
+.427667
+-.084241
+-.384248
+.780847
+-.890412
+.626259
+-.119612
+-.332999
+.449705
+-.152282
+-.377005
+.820243
+-.941834
+.735153
+-.390814
+.125330
+-.020586
+.004649
+.028387
+-.085482
+.059532
+.152938
+-.512811
+.813745
+-.808625
+.392647
+.302723
+-.980375
+1.358298
+-1.324401
+.960489
+-.441992
+-.084528
+.545983
+-.897401
+1.065184
+-.961723
+.572330
+-.027082
+-.433777
+.602445
+-.451928
+.166703
+-.017243
+.164351
+-.538830
+.888290
+-.957699
+.670445
+-.178891
+-.248039
+.412336
+-.311545
+.115666
+-.023476
+.111456
+-.284454
+.355543
+-.186621
+-.214705
+.703873
+-1.094166
+1.262136
+-1.195499
+.969085
+-.685541
+.428815
+-.250320
+.175224
+-.206311
+.318457
+-.455630
+.545164
+-.528667
+.392107
+-.173898
+-.056079
+.233312
+-.326323
+.337401
+-.279884
+.155229
+.045656
+-.313021
+.584598
+-.742950
+.663184
+-.293989
+-.276952
+.826719
+-1.091048
+.912000
+-.354846
+-.292566
+.663005
+-.524354
+-.069745
+.802104
+-1.281968
+1.277894
+-.835703
+.211501
+.312893
+-.588482
+.630691
+-.537709
+.391914
+-.226475
+.058352
+.073609
+-.116903
+.051146
+.080806
+-.193188
+.213904
+-.128364
+-.023534
+.187271
+-.330087
+.444382
+-.523370
+.540475
+-.457883
+.260138
+.015608
+-.282095
+.442093
+-.442972
+.309095
+-.127599
+-.006144
+.047809
+-.025171
+.002414
+-.013570
+.021131
+.057004
+-.263833
+.530577
+-.688479
+.577335
+-.179643
+-.327148
+.657590
+-.596591
+.145447
+.471686
+-.948591
+1.085776
+-.897738
+.574506
+-.339970
+.313113
+-.460575
+.651948
+-.760037
+.733332
+-.604397
+.448227
+-.331294
+.283394
+-.298065
+.346789
+-.392045
+.397279
+-.341368
+.237772
+-.141927
+.126857
+-.229518
+.403988
+-.526810
+.467346
+-.181622
+-.238368
+.601471
+-.720546
+.516664
+-.061502
+-.461415
+.848614
+-.970166
+.820764
+-.507824
+.186349
+.025000
+-.101114
+.108799
+-.148647
+.279314
+-.475686
+.649203
+-.714001
+.648556
+-.506680
+.370472
+-.285240
+.230275
+-.149073
+.010710
+.154180
+-.275508
+.303674
+-.252200
+.186092
+-.170317
+.226710
+-.333130
+.454730
+-.570062
+.669550
+-.739314
+.758631
+-.720284
+.651939
+-.607598
+.623499
+-.669503
+.642246
+-.423256
+-.024070
+.583716
+-1.005694
+1.025350
+-.523534
+-.371885
+1.319048
+-1.924214
+1.943498
+-1.405109
+.580157
+.174926
+-.604880
+.662043
+-.484502
+.280724
+-.203025
+.281003
+-.435524
+.547309
+-.534935
+.402354
+-.233263
+.134936
+-.163442
+.281179
+-.382779
+.375313
+-.249866
+.083364
+.033225
+-.076262
+.103880
+-.186038
+.313027
+-.373083
+.235039
+.122384
+-.545628
+.778999
+-.641445
+.180155
+.327649
+-.549771
+.338620
+.142473
+-.514289
+.445744
+.100062
+-.822764
+1.284665
+-1.212830
+.684104
+-.061837
+-.262818
+.132566
+.293950
+-.679276
+.745388
+-.440376
+-.063877
+.510092
+-.715506
+.652058
+-.421963
+.172986
+-.018814
+.003981
+-.113456
+.301653
+-.514486
+.695856
+-.790659
+.760422
+-.610886
+.405323
+-.236839
+.164533
+-.160187
+.118017
+.064935
+-.393961
+.747052
+-.946120
+.885447
+-.622605
+.358282
+-.309858
+.561181
+-.992419
+1.342496
+-1.368530
+1.000198
+-.388865
+-.180889
+.460482
+-.379297
+.071935
+.222022
+-.316648
+.192397
+.009292
+-.101840
+-.003914
+.232568
+-.399025
+.340539
+-.025601
+-.436457
+.877152
+-1.166335
+1.254292
+-1.151540
+.894600
+-.540171
+.178069
+.079814
+-.153311
+.053906
+.108739
+-.193842
+.124869
+.059360
+-.235273
+.280655
+-.152898
+-.089711
+.328895
+-.457380
+.435962
+-.305480
+.149058
+-.031021
+-.042863
+.111895
+-.203920
+.287317
+-.281285
+.123859
+.159893
+-.455159
+.631010
+-.633281
+.519806
+-.410130
+.392641
+-.463937
+.542675
+-.539015
+.423420
+-.247251
+.107963
+-.087103
+.199606
+-.381005
+.516974
+-.500117
+.286645
+.074414
+-.455687
+.705972
+-.722749
+.508876
+-.182164
+-.075408
+.110743
+.113452
+-.491476
+.830615
+-.960489
+.828457
+-.521776
+.207541
+-.035158
+.063184
+-.245840
+.471197
+-.618459
+.606034
+-.420574
+.125851
+.152831
+-.274490
+.150140
+.199653
+-.638300
+.974965
+-1.065804
+.892227
+-.563526
+.242204
+-.045090
+-.011599
+-.008797
+.034734
+-.047889
+.087953
+-.202053
+.382844
+-.547765
+.581367
+-.416583
+.098603
+.219609
+-.360109
+.236408
+.073498
+-.356103
+.387875
+-.082170
+-.440138
+.908808
+-1.058531
+.783401
+-.197604
+-.429351
+.817978
+-.819581
+.479262
+.003748
+-.391058
+.533558
+-.446987
+.292895
+-.271786
+.486129
+-.857385
+1.156815
+-1.141999
+.717545
+-.013953
+-.672468
+1.043590
+-.962417
+.514646
+.058010
+-.498018
+.656237
+-.539432
+.275151
+-.028305
+-.085950
+.054874
+.036358
+-.066392
+-.036175
+.236978
+-.412059
+.428842
+-.235151
+-.106892
+.462941
+-.709134
+.797508
+-.768147
+.712043
+-.713718
+.803156
+-.937369
+1.021889
+-.967988
+.758726
+-.479930
+.283736
+-.295795
+.523984
+-.835589
+1.027746
+-.950698
+.602967
+-.134684
+-.244980
+.396045
+-.329428
+.191450
+-.164037
+.346104
+-.689019
+1.021374
+-1.143093
+.933289
+-.416270
+-.243019
+.810297
+-1.089188
+1.017204
+-.700169
+.356315
+-.189636
+.262999
+-.455988
+.545283
+-.361582
+-.082445
+.583877
+-.869671
+.765793
+-.304556
+-.296448
+.766073
+-.937214
+.832415
+-.625499
+.503818
+-.522747
+.555613
+-.385312
+-.115872
+.845803
+-1.486157
+1.683488
+-1.286531
+.473796
+.329449
+-.701733
+.480174
+.150950
+-.792608
+1.086420
+-.917749
+.442501
+.053054
+-.340685
+.359820
+-.201339
+.012627
+.094908
+-.085944
+-.007437
+.114045
+-.153954
+.071962
+.126264
+-.355349
+.477614
+-.380335
+.061070
+.343314
+-.620048
+.604448
+-.282812
+-.198677
+.625454
+-.844072
+.845085
+-.750694
+.720403
+-.835014
+1.030363
+-1.125309
+.937265
+-.420654
+-.263770
+.811716
+-.948585
+.605756
+.025066
+-.608248
+.877984
+-.801442
+.576417
+-.468115
+.605697
+-.887208
+1.060078
+-.915964
+.454825
+.103319
+-.467472
+.473811
+-.186551
+-.166199
+.360872
+-.315205
+.098603
+.164588
+-.394089
+.568167
+-.663330
+.606019
+-.308318
+-.231665
+.861406
+-1.320449
+1.390040
+-1.040631
+.463043
+.046250
+-.265486
+.167476
+.096893
+-.324490
+.395523
+-.327261
+.226863
+-.196666
+.265880
+-.385467
+.471361
+-.455130
+.313456
+-.073163
+-.198257
+.412130
+-.490704
+.406908
+-.210714
+.017004
+.049593
+.075272
+-.354622
+.665336
+-.859001
+.830022
+-.554591
+.089876
+.452694
+-.940561
+1.250384
+-1.297049
+1.061193
+-.604967
+.060104
+.417522
+-.711191
+.791568
+-.720332
+.606257
+-.541954
+.562331
+-.645838
+.745278
+-.815215
+.815072
+-.698968
+.421030
+.029912
+-.588046
+1.103864
+-1.399014
+1.363091
+-1.031850
+.586556
+-.259716
+.198125
+-.372055
+.596967
+-.660353
+.469308
+-.115772
+-.185930
+.242222
+-.001010
+-.429021
+.860664
+-1.142110
+1.225065
+-1.156246
+1.017896
+-.866136
+.702559
+-.487390
+.181175
+.208530
+-.603619
+.876252
+-.911985
+.680951
+-.268082
+-.165113
+.466372
+-.568584
+.505088
+-.360884
+.203179
+-.044559
+-.140390
+.367766
+-.607741
+.785929
+-.819075
+.660454
+-.328957
+-.092541
+.488448
+-.756196
+.844093
+-.760988
+.554591
+-.275625
+-.045363
+.394185
+-.750500
+1.069789
+-1.285664
+1.331933
+-1.171652
+.820982
+-.358899
+-.086308
+.378946
+-.435843
+.273159
+-.004289
+-.220580
+.301063
+-.243212
+.146555
+-.127919
+.233223
+-.398200
+.488973
+-.399556
+.139954
+.154097
+-.308324
+.238790
+-.024757
+-.140592
+.094249
+.166409
+-.473585
+.613607
+-.491008
+.203382
+.032409
+-.046025
+-.153215
+.372770
+-.364598
+-.003947
+.647465
+-1.292504
+1.623083
+-1.458886
+.865734
+-.133832
+-.370705
+.404828
+.012439
+-.606105
+1.002543
+-.951026
+.476380
+.135005
+-.509669
+.413203
+.112244
+-.778707
+1.224064
+-1.216043
+.772505
+-.138335
+-.358679
+.489771
+-.244647
+-.176875
+.494469
+-.518694
+.256481
+.114882
+-.383995
+.453478
+-.396307
+.382031
+-.529352
+.795562
+-.988946
+.902140
+-.473850
+-.141757
+.656287
+-.827760
+.613953
+-.190685
+-.172036
+.281374
+-.122051
+-.167451
+.403040
+-.461225
+.322457
+-.048768
+-.268247
+.553080
+-.770257
+.925674
+-1.047524
+1.153564
+-1.222514
+1.193621
+-1.003965
+.643063
+-.183230
+-.243842
+.512951
+-.566480
+.425808
+-.150456
+-.211712
+.632861
+-1.065306
+1.400993
+-1.490765
+1.235345
+-.687391
+.074358
+.301808
+-.238519
+-.233915
+.854816
+-1.276648
+1.259728
+-.796834
+.098025
+.542469
+-.905276
+.935477
+-.723291
+.410136
+-.095226
+-.197488
+.484842
+-.764717
+.984410
+-1.062293
+.946809
+-.670445
+.357847
+-.172421
+.221787
+-.475966
+.758562
+-.836320
+.566316
+-.006559
+-.595337
+.942985
+-.874282
+.462628
+.033033
+-.332406
+.297578
+.008638
+-.392745
+.662350
+-.724337
+.596562
+-.353427
+.066268
+.217991
+-.464935
+.643793
+-.742438
+.787693
+-.834534
+.915555
+-.989510
+.944666
+-.674251
+.176081
+.403526
+-.828788
+.908027
+-.614489
+.112613
+.329026
+-.482872
+.277351
+.181176
+-.681827
+1.026286
+-1.121082
+1.001205
+-.784722
+.594607
+-.494698
+.471501
+-.464488
+.419900
+-.331559
+.243049
+-.213375
+.273134
+-.402939
+.544964
+-.632903
+.616942
+-.475266
+.220893
+.089935
+-.359796
+.482332
+-.402372
+.165216
+.093014
+-.224984
+.172483
+-.010249
+-.108139
+.067816
+.114387
+-.294899
+.304911
+-.073886
+-.314717
+.671908
+-.817361
+.680778
+-.331705
+-.067664
+.349034
+-.415364
+.277016
+-.037676
+-.160395
+.206898
+-.076250
+-.164655
+.398176
+-.522029
+.501732
+-.382355
+.259300
+-.228692
+.342381
+-.583823
+.870041
+-1.079192
+1.098380
+-.877232
+.462727
+.009714
+-.375813
+.526393
+-.465323
+.300404
+-.168825
+.147562
+-.211849
+.268724
+-.234056
+.090274
+.116126
+-.322999
+.495104
+-.621991
+.682232
+-.621648
+.381235
+.040551
+-.546457
+.965535
+-1.136676
+.992973
+-.588681
+.056242
+.466124
+-.883187
+1.146542
+-1.235389
+1.149409
+-.922840
+.634202
+-.381145
+.224906
+-.148744
+.076816
+.049396
+-.198795
+.254269
+-.106215
+-.233135
+.594931
+-.745171
+.547557
+-.078278
+-.399764
+.594454
+-.369107
+-.171189
+.747308
+-1.078661
+1.044943
+-.736298
+.371810
+-.152440
+.146906
+-.274119
+.375146
+-.316269
+.061308
+.315247
+-.667607
+.846563
+-.770630
+.473915
+-.103007
+-.151833
+.168484
+.015732
+-.203701
+.150710
+.269646
+-.957303
+1.620499
+-1.943125
+1.776544
+-1.224591
+.564972
+-.067972
+-.157955
+.192819
+-.204404
+.310121
+-.503839
+.686521
+-.758523
+.695418
+-.555866
+.427238
+-.357939
+.325813
+-.260158
+.095952
+.178699
+-.510259
+.803466
+-.961148
+.919880
+-.674415
+.292548
+.085374
+-.280346
+.152262
+.304187
+-.908301
+1.348752
+-1.345908
+.835354
+-.044684
+-.613470
+.784597
+-.396471
+-.293202
+.864798
+-1.005533
+.692446
+-.172538
+-.225054
+.296113
+-.049262
+-.353883
+.726874
+-.952796
+1.002534
+-.905997
+.723965
+-.535376
+.421048
+-.428049
+.532017
+-.633323
+.606040
+-.376871
+-.017690
+.438451
+-.717163
+.754282
+-.579013
+.329410
+-.159272
+.130172
+-.165379
+.107890
+.148204
+-.545637
+.865841
+-.864697
+.458733
+.175827
+-.682056
+.745442
+-.312574
+-.353671
+.833908
+-.823635
+.330147
+.338811
+-.780200
+.747463
+-.281997
+-.344050
+.808953
+-.915081
+.658755
+-.189381
+-.282460
+.565580
+-.535695
+.161002
+.483501
+-1.222201
+1.823028
+-2.079750
+1.900943
+-1.358343
+.660549
+-.057716
+-.275598
+.315429
+-.179274
+.041615
+-.028520
+.155551
+-.340504
+.471051
+-.477143
+.363990
+-.196255
+.054821
+.003205
+.035754
+-.141350
+.250295
+-.285382
+.184393
+.065609
+-.406324
+.720907
+-.885372
+.832195
+-.584389
+.236499
+.101152
+-.353123
+.493709
+-.530443
+.483259
+-.378421
+.250735
+-.135600
+.046689
+.042131
+-.186813
+.430913
+-.756285
+1.065827
+-1.221369
+1.122298
+-.776645
+.312180
+.088497
+-.291800
+.287801
+-.185363
+.133512
+-.224829
+.443667
+-.684748
+.818383
+-.755620
+.479632
+-.042563
+-.452429
+.869605
+-1.065923
+.938535
+-.490332
+-.127549
+.649560
+-.820028
+.546698
+.024509
+-.586887
+.868276
+-.810711
+.598249
+-.506549
+.685478
+-1.042437
+1.315287
+-1.274890
+.897681
+-.377610
+-.022308
+.156207
+-.078401
+-.026404
+-.004783
+.201602
+-.464357
+.661280
+-.729723
+.703757
+-.659459
+.635481
+-.598174
+.476729
+-.234029
+-.088197
+.387124
+-.565279
+.593176
+-.520747
+.432487
+-.385398
+.378618
+-.373396
+.339821
+-.287882
+.260127
+-.298220
+.413904
+-.583868
+.764389
+-.910643
+.991080
+-.995939
+.938353
+-.843634
+.729294
+-.591084
+.412533
+-.195662
+-.014152
+.138803
+-.115798
+-.048575
+.264345
+-.398977
+.351877
+-.117320
+-.201575
+.437160
+-.440159
+.162852
+.299990
+-.742429
+.946981
+-.804908
+.383837
+.108899
+-.452075
+.543816
+-.449583
+.333070
+-.325667
+.434299
+-.552522
+.556087
+-.401776
+.154498
+.069576
+-.190462
+.213988
+-.213587
+.268513
+-.408479
+.597074
+-.752038
+.781038
+-.617294
+.252076
+.241923
+-.714675
+.988219
+-.939974
+.572736
+-.018680
+-.533081
+.937110
+-1.148392
+1.199075
+-1.127318
+.929391
+-.583060
+.121293
+.318019
+-.530571
+.367861
+.137201
+-.743451
+1.117875
+-1.038082
+.547244
+.057973
+-.417629
+.354232
+.004316
+-.323780
+.318177
+.031494
+-.463090
+.634098
+-.381059
+-.159818
+.653626
+-.801865
+.535048
+-.037088
+-.392450
+.525585
+-.321357
+-.081535
+.461308
+-.626363
+.486934
+-.068853
+-.514176
+1.104118
+-1.541472
+1.703856
+-1.539490
+1.088357
+-.476818
+-.122784
+.556454
+-.746336
+.710451
+-.535718
+.324859
+-.150885
+.039814
+.021298
+-.066393
+.133916
+-.251743
+.421510
+-.607351
+.740110
+-.743496
+.575239
+-.262614
+-.091724
+.346462
+-.391067
+.212338
+.086457
+-.336963
+.405162
+-.275543
+.059075
+.085246
+-.060438
+-.107749
+.302908
+-.413325
+.412524
+-.362404
+.342319
+-.368592
+.375125
+-.273640
+.042828
+.231917
+-.410598
+.407958
+-.271491
+.154977
+-.196953
+.398659
+-.607706
+.632351
+-.398727
+.018429
+.296919
+-.407138
+.356831
+-.331804
+.493193
+-.829247
+1.150139
+-1.232230
+.993381
+-.557500
+.158486
+.037395
+-.048223
+.042492
+-.184272
+.481492
+-.757891
+.771843
+-.392555
+-.299069
+1.057095
+-1.622776
+1.863580
+-1.802245
+1.538050
+-1.150068
+.673553
+-.156897
+-.279139
+.464956
+-.291925
+-.179661
+.717864
+-1.044177
+1.002430
+-.646875
+.186877
+.164603
+-.321143
+.340402
+-.330817
+.334635
+-.284771
+.066534
+.369432
+-.934207
+1.425114
+-1.633702
+1.466718
+-1.005118
+.466411
+-.091678
+.019239
+-.213840
+.491351
+-.626715
+.483173
+-.086203
+-.399821
+.772043
+-.898453
+.769259
+-.470574
+.113197
+.227308
+-.522816
+.761870
+-.911967
+.912760
+-.711685
+.318037
+.167396
+-.578130
+.758145
+-.647155
+.323494
+.025112
+-.192640
+.062103
+.328859
+-.804065
+1.143105
+-1.201954
+.986923
+-.635242
+.320186
+-.150946
+.135843
+-.220193
+.348882
+-.492087
+.620364
+-.671288
+.560808
+-.245815
+-.212894
+.651012
+-.881992
+.809683
+-.491616
+.103814
+.171274
+-.256332
+.212720
+-.174804
+.234793
+-.363382
+.426842
+-.292419
+-.051086
+.447893
+-.649614
+.472887
+.060445
+-.702654
+1.109894
+-1.051974
+.566507
+.053256
+-.440588
+.390456
+.013577
+-.470646
+.679335
+-.540165
+.196371
+.107381
+-.226698
+.214153
+-.237412
+.397398
+-.609735
+.658359
+-.380785
+-.171465
+.737365
+-1.019204
+.886403
+-.449169
+-.048010
+.414029
+-.622641
+.767003
+-.917323
+1.020369
+-.932991
+.557348
+.043830
+-.652925
+1.021454
+-1.015139
+.677923
+-.185416
+-.258960
+.509270
+-.507428
+.274368
+.106328
+-.504876
+.778421
+-.829086
+.661357
+-.393446
+.200094
+-.216229
+.463531
+-.845833
+1.207853
+-1.411359
+1.385119
+-1.137091
+.743853
+-.330227
+.036046
+.034665
+.132813
+-.442835
+.727145
+-.830761
+.697099
+-.397189
+.081834
+.112478
+-.141151
+.061429
+.027112
+-.063556
+.065831
+-.102370
+.223025
+-.408753
+.580718
+-.657643
+.611860
+-.480371
+.329479
+-.208921
+.131882
+-.087791
+.064628
+-.055946
+.050292
+-.022191
+-.055383
+.179105
+-.290191
+.287665
+-.089220
+-.290603
+.703894
+-.920521
+.756935
+-.206994
+-.520813
+1.102300
+-1.280248
+1.012590
+-.486496
+-.009887
+.269167
+-.278967
+.199733
+-.231527
+.466035
+-.822469
+1.103918
+-1.128724
+.843842
+-.347108
+-.186584
+.611273
+-.870073
+.977498
+-.960191
+.821232
+-.561616
+.229428
+.064171
+-.193743
+.101650
+.154460
+-.430964
+.582947
+-.539876
+.322505
+-.005738
+-.327697
+.605253
+-.758735
+.728522
+-.498275
+.137692
+.197715
+-.339267
+.218505
+.061693
+-.269902
+.195884
+.190498
+-.695486
+1.022316
+-.979868
+.622778
+-.209391
+.004113
+-.077119
+.262287
+-.308088
+.098827
+.235889
+-.415915
+.236264
+.256507
+-.779220
+1.009887
+-.817659
+.351740
+.073435
+-.205255
+.020164
+.287477
+-.473480
+.431515
+-.258171
+.157371
+-.270910
+.569326
+-.877963
+1.004543
+-.866005
+.528303
+-.146631
+-.139298
+.282846
+-.338927
+.409856
+-.568131
+.803400
+-1.022807
+1.102714
+-.960617
+.605449
+-.138266
+-.295860
+.576420
+-.658624
+.581421
+-.432117
+.292577
+-.200162
+.144054
+-.090686
+.013143
+.097424
+-.239772
+.411543
+-.603581
+.784364
+-.896072
+.877775
+-.705429
+.416813
+-.095837
+-.177734
+.375119
+-.522831
+.658785
+-.778311
+.820991
+-.717855
+.462154
+-.138722
+-.124513
+.250909
+-.275487
+.312592
+-.450391
+.661169
+-.809331
+.757406
+-.482600
+.102787
+.213546
+-.379953
+.455645
+-.585334
+.863224
+-1.231658
+1.499131
+-1.468996
+1.085010
+-.486830
+-.065876
+.346879
+-.288861
+.001055
+.320290
+-.516056
+.537992
+-.436451
+.292831
+-.158075
+.037818
+.081308
+-.200094
+.300020
+-.362744
+.393094
+-.421835
+.483662
+-.587209
+.700574
+-.764118
+.721762
+-.549461
+.263368
+.092797
+-.467296
+.811430
+-1.078939
+1.223870
+-1.209573
+1.029084
+-.722010
+.368556
+-.056662
+-.158596
+.272910
+-.313411
+.299862
+-.222752
+.059740
+.185796
+-.463108
+.691868
+-.803069
+.765492
+-.580935
+.268328
+.132869
+-.540004
+.823122
+-.854050
+.594708
+-.158815
+-.216647
+.294208
+.018086
+-.594896
+1.150848
+-1.397095
+1.201898
+-.656433
+.007942
+.491897
+-.721935
+.725553
+-.634432
+.550379
+-.477060
+.345108
+-.098769
+-.232398
+.532887
+-.669580
+.576593
+-.297935
+-.037633
+.290205
+-.383500
+.336713
+-.238491
+.185872
+-.229673
+.357319
+-.511791
+.622811
+-.630512
+.502531
+-.251735
+-.053325
+.309504
+-.439118
+.453949
+-.462342
+.590648
+-.865904
+1.157119
+-1.243410
+.977328
+-.423641
+-.143585
+.402605
+-.199191
+-.336373
+.857314
+-1.011917
+.660681
+.038585
+-.726036
+1.051012
+-.870529
+.322591
+.260892
+-.545882
+.383142
+.112243
+-.629079
+.835571
+-.563467
+-.098955
+.852745
+-1.343840
+1.341631
+-.845440
+.068515
+.683183
+-1.164505
+1.294322
+-1.161310
+.943071
+-.794009
+.766678
+-.803710
+.794268
+-.653426
+.375164
+-.031299
+-.274443
+.460885
+-.498260
+.403794
+-.222824
+.016762
+.141391
+-.181168
+.068044
+.161670
+-.399559
+.516530
+-.443783
+.229206
+-.023084
+-.007891
+-.210841
+.600141
+-.957237
+1.067619
+-.835515
+.351153
+.154181
+-.445807
+.432141
+-.221629
+.046556
+-.100284
+.399439
+-.769664
+.967114
+-.849150
+.470702
+-.039311
+-.230609
+.250980
+-.087021
+-.122127
+.265674
+-.301874
+.228088
+-.043791
+-.235586
+.530240
+-.689329
+.573031
+-.174941
+-.328704
+.671255
+-.674567
+.371778
+.029872
+-.315462
+.417024
+-.431095
+.498486
+-.661938
+.824517
+-.831977
+.596165
+-.157388
+-.347275
+.762279
+-.973475
+.928795
+-.642047
+.198050
+.257211
+-.567395
+.646648
+-.532303
+.355630
+-.241062
+.213054
+-.191920
+.085138
+.106525
+-.266095
+.246420
+.007390
+-.405219
+.774314
+-.981939
+1.014471
+-.953470
+.881730
+-.808002
+.672453
+-.417102
+.052516
+.334438
+-.628149
+.740518
+-.636947
+.333598
+.107611
+-.574476
+.911043
+-.964194
+.666060
+-.102183
+-.495601
+.849490
+-.779402
+.302401
+.375032
+-.965648
+1.241794
+-1.128528
+.710478
+-.169993
+-.296237
+.543936
+-.519210
+.270821
+.065814
+-.320007
+.365802
+-.193907
+-.073745
+.248858
+-.188374
+-.117842
+.539897
+-.882088
+.987867
+-.814342
+.445061
+-.046400
+-.207228
+.209744
+.027324
+-.377235
+.657784
+-.722972
+.536797
+-.186879
+-.167581
+.379053
+-.378186
+.193157
+.078004
+-.319989
+.451440
+-.455586
+.381136
+-.314699
+.336027
+-.475623
+.694801
+-.899967
+.986791
+-.893819
+.638309
+-.312419
+.038103
+.097805
+-.090534
+.016148
+.020557
+.043164
+-.185629
+.316320
+-.339484
+.222810
+-.024885
+-.135984
+.151563
+.010785
+-.284654
+.536380
+-.634455
+.520438
+-.244238
+-.054460
+.210736
+-.113600
+-.238112
+.730361
+-1.181175
+1.418503
+-1.351973
+1.006418
+-.504251
+.006869
+.356157
+-.537215
+.576280
+-.560492
+.562447
+-.596162
+.619830
+-.580354
+.461698
+-.296757
+.135403
+-.002412
+-.111488
+.215154
+-.274065
+.208496
+.049800
+-.478443
+.927760
+-1.171876
+1.033227
+-.507583
+-.198389
+.759760
+-.912926
+.612495
+-.059127
+-.425107
+.592353
+-.406783
+.041391
+.248212
+-.278752
+.028247
+.376025
+-.740641
+.903285
+-.798152
+.471325
+-.051529
+-.303573
+.462450
+-.361102
+.026764
+.416503
+-.771119
+.833020
+-.495715
+-.157843
+.850483
+-1.233547
+1.089096
+-.485086
+-.238945
+.670328
+-.583340
+.080428
+.488394
+-.768568
+.628801
+-.216074
+-.180978
+.337458
+-.213484
+-.071802
+.355877
+-.531725
+.569946
+-.484806
+.301600
+-.055627
+-.194978
+.377822
+-.444021
+.405678
+-.335142
+.316722
+-.383306
+.486666
+-.529051
+.439169
+-.239428
+.052209
+-.029788
+.245934
+-.620903
+.939080
+-.962894
+.579585
+.113600
+-.847860
+1.327388
+-1.389843
+1.080298
+-.595846
+.147382
+.161324
+-.356363
+.515210
+-.660815
+.719679
+-.582026
+.215947
+.262122
+-.630837
+.702705
+-.459448
+.079835
+.168219
+-.100243
+-.265058
+.716058
+-.975931
+.861990
+-.382093
+-.279208
+.865957
+-1.183470
+1.188608
+-.994672
+.793383
+-.739729
+.864378
+-1.063315
+1.169858
+-1.065735
+.763057
+-.405353
+.183377
+-.215188
+.464774
+-.754601
+.871274
+-.703540
+.326084
+.030302
+-.113015
+-.191419
+.772242
+-1.347246
+1.628936
+-1.500761
+1.084450
+-.647832
+.413972
+-.407493
+.451985
+-.321244
+-.070658
+.586407
+-.953816
+.958605
+-.597238
+.080273
+.309984
+-.399740
+.216314
+.060672
+-.240184
+.244783
+-.133792
+.020811
+.039337
+-.100023
+.268558
+-.592297
+.979346
+-1.224469
+1.132617
+-.657909
+-.039300
+.663342
+-.944955
+.796843
+-.366273
+-.051540
+.190541
+.025768
+-.440039
+.760812
+-.742417
+.334090
+.289145
+-.823548
+.998907
+-.716511
+.096754
+.581391
+-1.018003
+1.041531
+-.693278
+.197147
+.172945
+-.249184
+.051388
+.252980
+-.470124
+.490892
+-.322522
+.045889
+.244576
+-.470691
+.572703
+-.517093
+.322967
+-.077981
+-.094198
+.111167
+.003005
+-.125438
+.119076
+.068746
+-.370824
+.651074
+-.794253
+.763420
+-.593456
+.346202
+-.075085
+-.179300
+.379026
+-.490627
+.503023
+-.441777
+.359349
+-.304058
+.290961
+-.297284
+.284415
+-.227258
+.127132
+-.000658
+-.140968
+.298071
+-.463803
+.597441
+-.622170
+.465415
+-.122749
+-.304112
+.636828
+-.714275
+.495616
+-.101662
+-.242158
+.333428
+-.114350
+-.289345
+.638169
+-.716838
+.458989
+.014799
+-.466637
+.678450
+-.576518
+.270203
+.020071
+-.103128
+-.063472
+.355573
+-.580935
+.624557
+-.531587
+.461555
+-.547515
+.771930
+-.962173
+.913138
+-.542216
+-.043624
+.616710
+-.974136
+1.047572
+-.905759
+.669878
+-.424481
+.192031
+.029907
+-.224623
+.355472
+-.404634
+.402855
+-.410920
+.465856
+-.545259
+.591018
+-.574035
+.537072
+-.566063
+.706633
+-.899410
+.999944
+-.878243
+.520601
+-.048595
+-.363093
+.604955
+-.693236
+.730564
+-.807567
+.931632
+-1.037221
+1.058263
+-.990893
+.889136
+-.799022
+.694375
+-.478380
+.061269
+.542174
+-1.174582
+1.598527
+-1.627384
+1.240179
+-.604397
+-.007738
+.355218
+-.335017
+.007599
+.455827
+-.861203
+1.069324
+-1.039221
+.833426
+-.587215
+.447884
+-.502421
+.728120
+-1.000147
+1.160302
+-1.109637
+.865773
+-.547208
+.296385
+-.193676
+.217387
+-.269765
+.246517
+-.103983
+-.114660
+.306371
+-.371656
+.278163
+-.087811
+-.071175
+.074901
+.121610
+-.449002
+.750270
+-.858217
+.685237
+-.280168
+-.181764
+.480145
+-.468560
+.167434
+.233210
+-.478267
+.404152
+-.045823
+-.383184
+.628938
+-.558856
+.236681
+.134798
+-.353066
+.336659
+-.151177
+-.061654
+.189555
+-.214759
+.202294
+-.233882
+.343225
+-.498719
+.635576
+-.702437
+.684378
+-.594383
+.454530
+-.288124
+.121397
+.021941
+-.137108
+.246899
+-.383199
+.550844
+-.709584
+.799880
+-.794363
+.725616
+-.657623
+.622340
+-.581403
+.455147
+-.200093
+-.131452
+.405815
+-.492180
+.354843
+-.084344
+-.156349
+.233659
+-.127109
+-.056943
+.149715
+-.026422
+-.305939
+.695588
+-.926839
+.856122
+-.517225
+.115124
+.103480
+-.021940
+-.257338
+.481602
+-.433444
+.098932
+.310416
+-.504209
+.323128
+.141624
+-.606445
+.785514
+-.573624
+.095700
+.397350
+-.696294
+.744467
+-.633522
+.516181
+-.511940
+.658737
+-.913216
+1.177670
+-1.338555
+1.313189
+-1.092398
+.753066
+-.422830
+.213414
+-.167784
+.257111
+-.421414
+.613267
+-.808640
+.985766
+-1.104106
+1.112314
+-.982085
+.737240
+-.449136
+.196742
+-.019099
+-.104307
+.227933
+-.384403
+.539492
+-.598419
+.471942
+-.161399
+-.206758
+.441080
+-.411957
+.150913
+.165774
+-.349841
+.347317
+-.272405
+.291860
+-.454793
+.619404
+-.552370
+.129293
+.527930
+-1.097018
+1.260619
+-.922124
+.275737
+.316869
+-.554308
+.374773
+.023308
+-.319470
+.271964
+.143645
+-.733809
+1.210744
+-1.356718
+1.130444
+-.664314
+.170815
+.174286
+-.305698
+.270543
+-.173378
+.104018
+-.086683
+.074067
+.012175
+-.217469
+.505613
+-.760416
+.843204
+-.672599
+.274898
+.228063
+-.681627
+.965803
+-1.027365
+.871990
+-.543971
+.117783
+.303135
+-.605113
+.709271
+-.616963
+.414059
+-.219829
+.112825
+-.086457
+.064101
+.041474
+-.264354
+.552370
+-.779103
+.799263
+-.530273
+.022539
+.531760
+-.880287
+.850343
+-.459827
+-.085154
+.514849
+-.659536
+.536961
+-.306222
+.132309
+-.070344
+.054754
+.009130
+-.136507
+.233631
+-.176925
+-.062624
+.356518
+-.482216
+.278412
+.221391
+-.784877
+1.122304
+-1.078217
+.734626
+-.348855
+.170218
+-.269915
+.507061
+-.648842
+.548436
+-.247057
+-.066754
+.196705
+-.065859
+-.254765
+.617905
+-.902671
+1.072119
+-1.158356
+1.203397
+-1.207114
+1.117834
+-.869963
+.444212
+.087977
+-.570471
+.829023
+-.770189
+.454676
+-.090286
+-.068130
+-.135592
+.651957
+-1.229414
+1.539236
+-1.357440
+.698437
+.182164
+-.919659
+1.227819
+-1.030947
+.471817
+.188553
+-.701996
+.919239
+-.808181
+.431357
+.081491
+-.559422
+.831900
+-.794390
+.470279
+-.020803
+-.322934
+.377843
+-.107510
+-.360082
+.804891
+-1.029296
+.948129
+-.612597
+.170159
+.207514
+-.393103
+.344986
+-.113026
+-.188711
+.430207
+-.517341
+.429530
+-.229469
+.038575
+.017603
+.125986
+-.432141
+.772666
+-.993766
+.999244
+-.798158
+.486970
+-.182498
+-.044631
+.194062
+-.311045
+.441044
+-.596422
+.749403
+-.845338
+.825050
+-.650723
+.332856
+.052913
+-.377774
+.509869
+-.384823
+.053916
+.328957
+-.583045
+.596511
+-.382320
+.061157
+.214837
+-.347916
+.340375
+-.276723
+.256956
+-.322549
+.423191
+-.450319
+.319935
+-.047868
+-.242736
+.396310
+-.333109
+.110122
+.113780
+-.184727
+.054970
+.191732
+-.400247
+.438862
+-.263600
+-.076575
+.475462
+-.809355
+.964381
+-.861865
+.494144
+.042854
+-.557208
+.831911
+-.734772
+.301352
+.269281
+-.711676
+.828007
+-.580583
+.095551
+.413364
+-.751066
+.823474
+-.665026
+.409385
+-.221707
+.220885
+-.423095
+.733273
+-.992201
+1.058350
+-.880267
+.517341
+-.097557
+-.256994
+.487247
+-.604445
+.654943
+-.678522
+.691946
+-.702386
+.728841
+-.806071
+.961532
+-1.179261
+1.377555
+-1.425967
+1.206538
+-.693501
+.002141
+.638154
+-.989587
+.936126
+-.553986
+.067888
+.285685
+-.399356
+.344945
+-.302640
+.423638
+-.723545
+1.073320
+-1.282982
+1.215685
+-.863013
+.347672
+.137167
+-.418580
+.425840
+-.228016
+.004045
+.051832
+.154658
+-.551297
+.933164
+-1.085710
+.919758
+-.526986
+.118047
+.109863
+-.082584
+-.133186
+.399979
+-.604335
+.708004
+-.733377
+.712126
+-.646192
+.509559
+-.282917
+-.010492
+.296434
+-.475927
+.470628
+-.263016
+-.088755
+.469626
+-.753674
+.858077
+-.776916
+.573123
+-.331690
+.106733
+.096634
+-.292049
+.464497
+-.556480
+.510796
+-.336614
+.135537
+-.051367
+.173717
+-.470226
+.804187
+-1.025538
+1.064251
+-.955526
+.784629
+-.605706
+.405239
+-.138207
+-.199131
+.527263
+-.714192
+.660692
+-.376770
+-.010312
+.326603
+-.452358
+.382400
+-.204830
+.019918
+.132516
+-.277348
+.439878
+-.577627
+.582384
+-.367697
+-.026016
+.408020
+-.538767
+.295587
+.222939
+-.742852
+.987897
+-.856715
+.477298
+-.106145
+-.045783
+-.067890
+.338453
+-.610436
+.792137
+-.886833
+.940159
+-.967386
+.930720
+-.783255
+.533960
+-.271518
+.122133
+-.171698
+.407958
+-.719762
+.949840
+-.969403
+.738450
+-.327372
+-.109823
+.404208
+-.455353
+.286793
+-.037162
+-.115186
+.051961
+.222024
+-.590896
+.901377
+-1.045161
+.999488
+-.814353
+.574119
+-.366237
+.263904
+-.304988
+.459833
+-.614281
+.607852
+-.332310
+-.166685
+.670969
+-.896006
+.671208
+-.075026
+-.578846
+.914351
+-.725363
+.118505
+.535975
+-.828788
+.576920
+.044268
+-.600049
+.672880
+-.137464
+-.750196
+1.509417
+-1.729062
+1.303314
+-.465376
+-.379581
+.892269
+-.955270
+.673517
+-.257859
+-.108071
+.335938
+-.420687
+.391604
+-.277624
+.104855
+.093074
+-.277681
+.423030
+-.525826
+.591304
+-.608069
+.545065
+-.385977
+.173826
+-.014294
+.013449
+-.186147
+.411755
+-.488845
+.266072
+.240406
+-.831694
+1.233515
+-1.258890
+.920416
+-.420890
+.031793
+.060752
+.149961
+-.506990
+.795970
+-.872434
+.736045
+-.513180
+.364395
+-.376064
+.503368
+-.600624
+.519418
+-.210573
+-.238363
+.654517
+-.883339
+.872711
+-.684569
+.437986
+-.235450
+.124967
+-.110663
+.180502
+-.314231
+.467436
+-.563174
+.522411
+-.324329
+.046358
+.164494
+-.185846
+.013776
+.223015
+-.351880
+.286350
+-.094799
+-.051719
+.013728
+.207270
+-.471841
+.611410
+-.550776
+.347359
+-.126712
+-.019203
+.082835
+-.108622
+.121893
+-.092198
+-.034980
+.270855
+-.545253
+.736253
+-.746768
+.568065
+-.280904
+-.003411
+.213314
+-.344128
+.426463
+-.470527
+.440481
+-.284142
+-.007681
+.366505
+-.671306
+.817861
+-.779014
+.611369
+-.408852
+.244497
+-.143067
+.093060
+-.071923
+.055807
+-.012917
+-.095706
+.290063
+-.534598
+.730486
+-.761775
+.573672
+-.224953
+-.133897
+.349520
+-.359820
+.225224
+-.077571
+.030427
+-.119136
+.306249
+-.530392
+.745248
+-.916622
+.993998
+-.901818
+.577671
+-.036010
+-.596967
+1.117211
+-1.335474
+1.174761
+-.713259
+.148734
+.292503
+-.452328
+.298476
+.075899
+-.500626
+.799198
+-.855040
+.654034
+-.291754
+-.061058
+.229938
+-.121200
+-.223032
+.638264
+-.922568
+.946585
+-.717548
+.354685
+.001709
+-.276029
+.474869
+-.634107
+.753930
+-.785985
+.684503
+-.470342
+.242507
+-.119070
+.153364
+-.294584
+.422788
+-.428785
+.278475
+-.024142
+-.232284
+.392164
+-.402846
+.278682
+-.096669
+-.037137
+.042700
+.084808
+-.268104
+.397156
+-.405791
+.318508
+-.227432
+.211942
+-.262662
+.274624
+-.125691
+-.212104
+.614447
+-.856834
+.755322
+-.302211
+-.304875
+.772606
+-.891434
+.660788
+-.272003
+-.034080
+.125620
+-.038562
+-.096615
+.186027
+-.246453
+.363689
+-.580419
+.821924
+-.934693
+.812735
+-.503759
+.195531
+-.079372
+.193803
+-.377023
+.376678
+-.040823
+-.553846
+1.136056
+-1.414718
+1.269006
+-.821840
+.353266
+-.122101
+.217579
+-.528965
+.835646
+-.946150
+.797275
+-.462497
+.081338
+.232803
+-.443348
+.572354
+-.638288
+.608394
+-.414059
+.026838
+.464110
+-.848745
+.896418
+-.509100
+-.177959
+.833837
+-1.104058
+.816493
+-.088857
+-.733481
+1.270613
+-1.311695
+.908816
+-.317387
+-.165839
+.362872
+-.282917
+.074857
+.090131
+-.124225
+.053132
+.035237
+-.073397
+.061662
+-.047791
+.064555
+-.083222
+.023812
+.187060
+-.558316
+1.018560
+-1.446228
+1.718440
+-1.749797
+1.514537
+-1.059083
+.503052
+-.012228
+-.266114
+.281743
+-.121086
+-.034375
+.019070
+.204630
+-.512548
+.691081
+-.569699
+.127057
+.493190
+-1.057756
+1.357201
+-1.294200
+.911213
+-.359191
+-.169335
+.513979
+-.602520
+.470860
+-.240400
+.061872
+-.048877
+.228325
+-.527442
+.804065
+-.910962
+.770201
+-.422467
+.020261
+.242714
+-.235331
+-.032546
+.409639
+-.689621
+.734960
+-.558999
+.310335
+-.167877
+.218071
+-.399812
+.555592
+-.551616
+.379026
+-.161476
+.062113
+-.157855
+.373962
+-.529608
+.463993
+-.153628
+-.262149
+.564939
+-.592484
+.336867
+.052342
+-.355355
+.404295
+-.172772
+-.211596
+.535990
+-.617869
+.408098
+-.022763
+-.321277
+.437074
+-.286517
+.006134
+.186821
+-.152396
+-.059664
+.231694
+-.131379
+-.305862
+.900087
+-1.323114
+1.311621
+-.850375
+.192772
+.301030
+-.397764
+.133836
+.230369
+-.405025
+.269711
+.065347
+-.369060
+.475236
+-.399284
+.304723
+-.359582
+.603175
+-.923221
+1.147516
+-1.168338
+1.004954
+-.769885
+.579814
+-.483769
+.454557
+-.436093
+.401073
+-.373164
+.399469
+-.497002
+.617875
+-.667285
+.569913
+-.339523
+.093297
+.014440
+.096692
+-.356759
+.568989
+-.528726
+.160367
+.423453
+-.981292
+1.277828
+-1.203233
+.808321
+-.253475
+-.277709
+.646198
+-.788191
+.721524
+-.539465
+.384850
+-.391428
+.605113
+-.932475
+1.168672
+-1.111393
+.700041
+-.082781
+-.450900
+.644172
+-.441807
+.032719
+.274328
+-.263013
+-.039120
+.382117
+-.476604
+.206615
+.285079
+-.701593
+.806637
+-.586947
+.244550
+-.034747
+.082175
+-.314290
+.549247
+-.651721
+.626018
+-.579665
+.601924
+-.667497
+.647778
+-.418893
+-.021107
+.521892
+-.865257
+.906688
+-.672394
+.340638
+-.117304
+.091296
+-.171472
+.151901
+.136080
+-.687794
+1.299130
+-1.672886
+1.594214
+-1.066135
+.320076
+.308863
+-.569258
+.430827
+-.087395
+-.177442
+.177007
+.060870
+-.322436
+.361951
+-.074704
+-.428138
+.889870
+-1.070119
+.888201
+-.459120
+.011546
+.249261
+-.247059
+.055165
+.164647
+-.258975
+.160546
+.087039
+-.362103
+.534091
+-.534958
+.396629
+-.232114
+.166019
+-.253509
+.441923
+-.606159
+.636929
+-.516935
+.326028
+-.173325
+.115168
+-.127749
+.151269
+-.156929
+.170556
+-.232575
+.338042
+-.420735
+.403365
+-.273220
+.115590
+-.070295
+.237548
+-.600630
+1.021675
+-1.316410
+1.360638
+-1.160723
+.844257
+-.578461
+.468622
+-.499512
+.553869
+-.493002
+.248782
+.126808
+-.481226
+.637633
+-.487211
+.051414
+.516849
+-.995500
+1.192077
+-1.034205
+.608463
+-.126133
+-.171629
+.127356
+.254487
+-.805010
+1.269203
+-1.428095
+1.202515
+-.684956
+.085395
+.374433
+-.559482
+.465999
+-.201628
+-.076263
+.230176
+-.193478
+-.009607
+.277964
+-.476535
+.494028
+-.292372
+-.074260
+.481632
+-.788459
+.895297
+-.781065
+.501899
+-.157334
+-.154966
+.371977
+-.474249
+.474994
+-.402247
+.283695
+-.136077
+-.040876
+.261584
+-.538347
+.856006
+-1.155960
+1.349360
+-1.362259
+1.188650
+-.913874
+.684810
+-.636592
+.814753
+-1.136593
+1.415371
+-1.440243
+1.079168
+-.361212
+-.503318
+1.187317
+-1.383429
+.958325
+-.045153
+-.988839
+1.700161
+-1.778994
+1.199645
+-.228076
+-.717247
+1.274919
+-1.310068
+.960346
+-.541182
+.363230
+-.558787
+1.010743
+-1.426783
+1.519216
+-1.183139
+.560483
+.051692
+-.385559
+.354309
+-.074321
+-.242180
+.434460
+-.475719
+.447401
+-.444656
+.492230
+-.527993
+.456024
+-.224394
+-.126842
+.479483
+-.704240
+.736840
+-.610996
+.424952
+-.268720
+.170714
+-.105400
+.048077
+-.018858
+.070568
+-.231755
+.462661
+-.668454
+.757805
+-.693352
+.495804
+-.213557
+-.101006
+.388313
+-.574381
+.592490
+-.432740
+.176146
+.030863
+-.059016
+-.117511
+.394313
+-.593286
+.569887
+-.305498
+-.072551
+.359585
+-.394277
+.159442
+.202971
+-.476669
+.501371
+-.260376
+-.130167
+.509541
+-.762848
+.850131
+-.777458
+.564057
+-.248520
+-.082010
+.295058
+-.279548
+.037822
+.278143
+-.437566
+.275170
+.190044
+-.751549
+1.135433
+-1.163354
+.848122
+-.364204
+-.075658
+.345362
+-.451019
+.483289
+-.530103
+.620134
+-.726704
+.805832
+-.821450
+.739293
+-.516441
+.123440
+.400605
+-.910825
+1.193842
+-1.081922
+.573061
+.136821
+-.747606
+1.017612
+-.885616
+.474556
+.009946
+-.401582
+.633367
+-.716573
+.684009
+-.556138
+.350840
+-.110806
+-.090953
+.181807
+-.134387
+-.011995
+.172791
+-.269585
+.275066
+-.220620
+.164293
+-.146024
+.164637
+-.190667
+.198371
+-.185297
+.161506
+-.122420
+.038092
+.120354
+-.334155
+.515705
+-.548636
+.374436
+-.061135
+-.213438
+.272182
+-.071474
+-.247817
+.443845
+-.342253
+-.031966
+.460521
+-.676683
+.546302
+-.155751
+-.252551
+.447762
+-.362738
+.131338
+.006749
+.135880
+-.574587
+1.139436
+-1.567202
+1.640119
+-1.294817
+.650589
+.049230
+-.547986
+.684685
+-.454241
+-.002761
+.470404
+-.753993
+.761304
+-.535167
+.223348
+.003466
+-.047611
+-.058976
+.179743
+-.174767
+.014780
+.180357
+-.222372
+.006393
+.383190
+-.707703
+.738030
+-.424916
+-.060191
+.449121
+-.565520
+.426210
+-.182282
+-.033422
+.209830
+-.423668
+.711164
+-.976765
+1.034759
+-.758038
+.208763
+.363343
+-.664734
+.543161
+-.084991
+-.438811
+.736921
+-.663423
+.282894
+.195403
+-.559181
+.711423
+-.691981
+.605011
+-.522771
+.445261
+-.338095
+.199799
+-.085751
+.060408
+-.120051
+.162726
+-.046902
+-.295722
+.781798
+-1.204306
+1.360173
+-1.188930
+.815751
+-.458384
+.262619
+-.191860
+.061649
+.300416
+-.888737
+1.478596
+-1.751800
+1.508028
+-.816622
+.001258
+.537551
+-.551592
+.084000
+.563353
+-1.007655
+.996135
+-.527030
+-.178223
+.816479
+-1.162296
+1.155781
+-.888943
+.524354
+-.207349
+.014824
+.050930
+-.038092
+.007476
+.006272
+-.019628
+.092356
+-.279191
+.562993
+-.819814
+.860116
+-.541268
+-.115792
+.894376
+-1.475606
+1.608923
+-1.248873
+.565523
+.174100
+-.762979
+1.138530
+-1.347807
+1.443298
+-1.408036
+1.174028
+-.713819
+.119701
+.406479
+-.658880
+.555631
+-.193871
+-.211060
+.459129
+-.475957
+.326329
+-.135827
+-.006525
+.088063
+-.137328
+.163276
+-.132800
+.006462
+.207202
+-.436034
+.586649
+-.607816
+.517725
+-.372401
+.209370
+-.024418
+-.194663
+.414306
+-.545214
+.503088
+-.295733
+.054326
+.036209
+.131501
+-.493348
+.835342
+-.923442
+.653149
+-.117179
+-.449362
+.803451
+-.821495
+.550645
+-.169055
+-.110228
+.139887
+.098454
+-.489906
+.840087
+-.966533
+.789732
+-.379113
+-.074942
+.356673
+-.342441
+.074889
+.253503
+-.406014
+.239083
+.211062
+-.749191
+1.138739
+-1.239479
+1.074218
+-.782808
+.504573
+-.281329
+.054328
+.247877
+-.606874
+.886064
+-.907735
+.582989
+.002060
+-.613076
+.996099
+-1.024563
+.766913
+-.430609
+.220867
+-.207805
+.289270
+-.272854
+.022086
+.430508
+-.880246
+1.062513
+-.810556
+.160450
+.658758
+-1.337894
+1.631839
+-1.456817
+.903139
+-.177538
+-.484290
+.898892
+-.989048
+.799675
+-.469251
+.162889
+.004033
+-.010667
+-.083085
+.196564
+-.289304
+.379581
+-.514161
+.720728
+-.982702
+1.248176
+-1.454025
+1.541665
+-1.463404
+1.196259
+-.769217
+.281825
+.118416
+-.302828
+.232583
+.021147
+-.326403
+.572861
+-.725533
+.815847
+-.888114
+.950430
+-.965839
+.881983
+-.670656
+.349889
+.020121
+-.358682
+.592216
+-.679699
+.630295
+-.506191
+.403162
+-.409895
+.561204
+-.811495
+1.049754
+-1.153224
+1.050314
+-.753173
+.340706
+.092366
+-.482139
+.807722
+-1.070125
+1.262074
+-1.353440
+1.297467
+-1.050103
+.595274
+.025789
+-.690497
+1.202005
+-1.351729
+1.027740
+-.310186
+-.522551
+1.109006
+-1.188754
+.742384
+.007842
+-.739612
+1.218511
+-1.405345
+1.418399
+-1.394341
+1.362262
+-1.227587
+.873072
+-.292317
+-.353880
+.810464
+-.885819
+.583513
+-.110145
+-.253439
+.331404
+-.155675
+-.082083
+.192394
+-.138906
+.060861
+-.149643
+.477918
+-.918330
+1.219635
+-1.186718
+.832168
+-.387297
+.161359
+-.341136
+.862491
+-1.437394
+1.722127
+-1.524245
+.920449
+-.210516
+-.265790
+.332775
+-.072106
+-.253683
+.389932
+-.255404
+-.030183
+.265878
+-.334513
+.281118
+-.248227
+.329890
+-.472613
+.511204
+-.312869
+-.090069
+.493122
+-.652100
+.454611
+.002412
+-.486120
+.788882
+-.849964
+.752288
+-.616453
+.492984
+-.341729
+.103660
+.208786
+-.486869
+.589698
+-.447029
+.119904
+.228504
+-.433116
+.428615
+-.282732
+.139710
+-.116046
+.222065
+-.362461
+.409728
+-.293808
+.044462
+.236058
+-.441804
+.520819
+-.487629
+.394528
+-.293993
+.220359
+-.194509
+.230923
+-.328400
+.449479
+-.517603
+.455529
+-.249632
+-.012698
+.181121
+-.145496
+-.071212
+.313438
+-.400486
+.261360
+.013016
+-.244350
+.305203
+-.206817
+.071348
+-.024809
+.107174
+-.265796
+.417066
+-.508867
+.533945
+-.501339
+.408443
+-.242193
+.000517
+.293344
+-.597351
+.867635
+-1.068203
+1.168985
+-1.142894
+.973183
+-.669503
+.279022
+.121299
+-.452161
+.663813
+-.751272
+.742283
+-.668796
+.546660
+-.380826
+.188836
+-.016438
+-.075036
+.042698
+.111006
+-.342507
+.597846
+-.843035
+1.068334
+-1.267176
+1.413639
+-1.462054
+1.371379
+-1.133335
+.781199
+-.375029
+-.020475
+.346393
+-.547551
+.575880
+-.414541
+.113401
+.198066
+-.350819
+.222599
+.177620
+-.688187
+1.063175
+-1.099006
+.744822
+-.129924
+-.506608
+.937846
+-1.049408
+.869340
+-.527284
+.180725
+.051311
+-.125564
+.078925
+-.001140
+-.017400
+-.059678
+.192859
+-.300175
+.326898
+-.295682
+.288180
+-.365414
+.492514
+-.539918
+.374567
+.023665
+-.514462
+.867519
+-.910903
+.652657
+-.283473
+.050631
+-.087368
+.318234
+-.511201
+.442990
+-.061723
+-.468509
+.871766
+-.936824
+.643131
+-.158061
+-.275308
+.470536
+-.367987
+.024325
+.439697
+-.888788
+1.207579
+-1.330392
+1.264279
+-1.082309
+.873397
+-.676504
+.457448
+-.160803
+-.198142
+.485888
+-.507607
+.144621
+.526515
+-1.232570
+1.638590
+-1.539555
+.983272
+-.242331
+-.348029
+.581627
+-.482001
+.254357
+-.131437
+.222251
+-.463207
+.693102
+-.785517
+.735767
+-.640273
+.592526
+-.586190
+.510694
+-.250664
+-.187812
+.632256
+-.833580
+.640440
+-.133133
+-.391496
+.592425
+-.306678
+-.330844
+.960227
+-1.221703
+.985674
+-.430764
+-.085072
+.272275
+-.102942
+-.186783
+.286063
+-.051796
+-.374457
+.663604
+-.541262
+-.000909
+.678748
+-1.092899
+.982848
+-.381610
+-.425125
+1.090098
+-1.403705
+1.373856
+-1.159319
+.932735
+-.780519
+.696074
+-.640840
+.603062
+-.601620
+.640607
+-.666111
+.575156
+-.281821
+-.206249
+.762532
+-1.195052
+1.347240
+-1.178218
+.770496
+-.268104
+-.200983
+.562331
+-.780519
+.830016
+-.695656
+.407406
+-.067979
+-.173303
+.200989
+-.013982
+-.260797
+.442787
+-.413358
+.190459
+.092037
+-.284434
+.326793
+-.282187
+.274619
+-.380990
+.561079
+-.680653
+.610323
+-.324958
+-.071982
+.416011
+-.589432
+.590750
+-.520899
+.503350
+-.597825
+.763379
+-.887449
+.856465
+-.626128
+.255922
+.107411
+-.291966
+.183498
+.207783
+-.733937
+1.165375
+-1.295434
+1.042058
+-.491810
+-.137596
+.595524
+-.707313
+.444778
+.067550
+-.607956
+.950945
+-.961332
+.649575
+-.160809
+-.298744
+.561321
+-.571374
+.398191
+-.188537
+.089872
+-.180977
+.434916
+-.724516
+.871897
+-.732748
+.286049
+.320836
+-.816371
+.938344
+-.591325
+-.073129
+.722141
+-1.028226
+.863224
+-.369450
+-.142621
+.400474
+-.337675
+.112289
+.026762
+.077915
+-.389377
+.715304
+-.848200
+.703921
+-.369441
+.040424
+.100541
+.013565
+-.307158
+.616403
+-.785929
+.749543
+-.551715
+.305590
+-.121672
+.055055
+-.098749
+.212088
+-.349895
+.468255
+-.514110
+.427399
+-.173370
+-.212417
+.608913
+-.853672
+.831393
+-.549002
+.139387
+.215718
+-.391541
+.378263
+-.254257
+.107813
+.020123
+-.126881
+.196111
+-.168523
+-.024249
+.389655
+-.836606
+1.212297
+-1.388141
+1.326067
+-1.077299
+.726176
+-.333368
+-.076923
+.486013
+-.843893
+1.064573
+-1.063291
+.811704
+-.372746
+-.112492
+.483238
+-.629871
+.534777
+-.262873
+-.081944
+.396769
+-.592958
+.593465
+-.343356
+-.154022
+.799824
+-1.403184
+1.745020
+-1.677330
+1.201099
+-.474589
+-.255854
+.763858
+-.931483
+.776963
+-.420952
+.024787
+.262071
+-.332507
+.142201
+.268437
+-.763015
+1.138921
+-1.211200
+.918318
+-.381575
+-.137575
+.376335
+-.229263
+-.175640
+.543092
+-.590482
+.234854
+.334119
+-.752118
+.700291
+-.116195
+-.739812
+1.416030
+-1.529323
+.998317
+-.102621
+-.675574
+.934419
+-.585176
+-.108965
+.706559
+-.857853
+.499255
+.141065
+-.712737
+.964873
+-.876019
+.620909
+-.416422
+.365650
+-.408443
+.401025
+-.250406
+-.004869
+.224422
+-.272567
+.112806
+.176320
+-.461281
+.632303
+-.645730
+.516769
+-.288746
+.010020
+.270915
+-.502915
+.636792
+-.641522
+.521737
+-.320850
+.101378
+.088831
+-.239488
+.368496
+-.483477
+.547482
+-.487122
+.249073
+.135360
+-.536759
+.791568
+-.806682
+.627773
+-.414762
+.336161
+-.456545
+.696801
+-.892096
+.902382
+-.698565
+.373694
+-.084669
+-.030528
+-.085246
+.386489
+-.740581
+.974786
+-.949050
+.635212
+-.158472
+-.244271
+.352229
+-.106475
+-.331392
+.669380
+-.677464
+.347409
+.104579
+-.401359
+.411624
+-.238504
+.121498
+-.232974
+.534523
+-.805949
+.818738
+-.513201
+.042603
+.339800
+-.455952
+.308374
+-.049205
+-.146779
+.202394
+-.167349
+.149521
+-.213687
+.329148
+-.401377
+.355138
+-.199622
+.026528
+.052756
+.020053
+-.218310
+.455559
+-.643078
+.739791
+-.764359
+.765322
+-.771038
+.756109
+-.653679
+.412953
+-.062460
+-.273521
+.429959
+-.297324
+-.107312
+.645125
+-1.130849
+1.422974
+-1.470471
+1.300057
+-.975984
+.573842
+-.181263
+-.099090
+.173981
+-.011239
+-.317789
+.647510
+-.789535
+.632160
+-.210836
+-.294354
+.638583
+-.633105
+.247287
+.362875
+-.921898
+1.169816
+-.995944
+.495890
+.082716
+-.475263
+.535665
+-.295032
+-.082305
+.406452
+-.561225
+.541572
+-.424684
+.312285
+-.284682
+.380677
+-.589465
+.841535
+-1.009237
+.942883
+-.549694
+-.121854
+.857332
+-1.353380
+1.370825
+-.875203
+.071535
+.697638
+-1.133174
+1.129931
+-.808711
+.419194
+-.183363
+.179342
+-.328752
+.479179
+-.515034
+.423888
+-.286432
+.212005
+-.269677
+.454364
+-.696583
+.900522
+-.988592
+.936240
+-.784325
+.620972
+-.536210
+.571475
+-.695039
+.821241
+-.860899
+.768654
+-.558441
+.285346
+-.013731
+-.205881
+.344641
+-.393011
+.354867
+-.240583
+.063058
+.157051
+-.375158
+.510563
+-.463666
+.173134
+.314344
+-.820687
+1.103948
+-.997062
+.528568
+.073731
+-.519776
+.648797
+-.532932
+.406873
+-.470759
+.718275
+-.929912
+.844817
+-.381542
+-.267309
+.749546
+-.800232
+.437387
+.043923
+-.282240
+.113574
+.306166
+-.613017
+.501318
+.050332
+-.759456
+1.239547
+-1.270303
+.939134
+-.554591
+.405746
+-.554093
+.809290
+-.891333
+.641296
+-.122497
+-.442132
+.821936
+-.898725
+.690381
+-.301969
+-.133869
+.493396
+-.684888
+.674504
+-.505189
+.281362
+-.113426
+.053627
+-.069193
+.072625
+.012871
+-.196515
+.404855
+-.513925
+.412083
+-.066773
+-.434901
+.898757
+-1.099826
+.898874
+-.338918
+-.345848
+.835747
+-.899160
+.529999
+.045979
+-.510274
+.649465
+-.478201
+.204596
+-.068328
+.174172
+-.442308
+.700944
+-.835926
+.871951
+-.922941
+1.060776
+-1.218302
+1.214353
+-.889038
+.248449
+.493712
+-1.019258
+1.093319
+-.716603
+.138681
+.286682
+-.322326
+.006006
+.364678
+-.426967
+.009463
+.723422
+-1.351511
+1.464441
+-.936916
+.021167
+.811296
+-1.168907
+.973648
+-.476341
+.060477
+.016489
+.231010
+-.564844
+.709381
+-.538770
+.145131
+.241641
+-.414625
+.319357
+-.071833
+-.136320
+.173474
+-.051678
+-.093276
+.105129
+.079782
+-.384951
+.641296
+-.697898
+.523710
+-.233939
+.021541
+-.035794
+.287159
+-.641126
+.903180
+-.934079
+.718263
+-.350759
+-.030267
+.307671
+-.411355
+.316776
+-.046833
+-.312902
+.610957
+-.671956
+.384436
+.211569
+-.903315
+1.386690
+-1.422703
+.983227
+-.288972
+-.301209
+.497044
+-.252696
+-.207998
+.542186
+-.517418
+.163448
+.256916
+-.432967
+.214162
+.299302
+-.832212
+1.110240
+-1.015064
+.630757
+-.174694
+-.128670
+.157515
+.062355
+-.387291
+.639668
+-.703853
+.585278
+-.396903
+.278278
+-.296553
+.398182
+-.448212
+.332230
+-.048168
+-.278570
+.468029
+-.396474
+.071666
+.371614
+-.746810
+.911564
+-.829661
+.569267
+-.247080
+-.042531
+.268873
+-.453797
+.623779
+-.768085
+.839252
+-.794566
+.639293
+-.430532
+.236564
+-.087411
+-.039104
+.184278
+-.357352
+.509747
+-.556722
+.433205
+-.148037
+-.198276
+.447631
+-.457812
+.178649
+.314368
+-.854122
+1.266237
+-1.450046
+1.404895
+-1.192906
+.880717
+-.513571
+.137881
+.164652
+-.282952
+.136431
+.254766
+-.752902
+1.165936
+-1.352704
+1.297073
+-1.099805
+.896850
+-.764037
+.673014
+-.526342
+.246628
+.141300
+-.495109
+.628193
+-.434344
+-.015967
+.482785
+-.681791
+.459377
+.096192
+-.689594
+.987170
+-.815394
+.262988
+.375605
+-.773181
+.747394
+-.340206
+-.231262
+.703271
+-.889995
+.743138
+-.338537
+-.177870
+.644923
+-.923796
+.924997
+-.636071
+.144707
+.366768
+-.676972
+.621648
+-.185087
+-.469397
+1.058794
+-1.308605
+1.088575
+-.485864
+-.228709
+.734972
+-.836567
+.577496
+-.221494
+.089475
+-.346718
+.882097
+-1.371540
+1.491233
+-1.133991
+.476404
+.144330
+-.446087
+.353949
+.002874
+-.416994
+.738360
+-.925847
+1.006799
+-1.010120
+.940728
+-.807567
+.660359
+-.583012
+.635045
+-.786054
+.903598
+-.817987
+.430016
+.208314
+-.896048
+1.373910
+-1.455515
+1.126337
+-.553151
+-.005729
+.341168
+-.401645
+.300965
+-.220702
+.276907
+-.446942
+.605664
+-.635648
+.520920
+-.353162
+.253008
+-.274013
+.365563
+-.420967
+.371822
+-.255775
+.203722
+-.350348
+.729872
+-1.233714
+1.664631
+-1.849876
+1.731918
+-1.375793
+.901327
+-.406005
+-.058192
+.448221
+-.685436
+.661643
+-.306911
+-.327619
+1.040914
+-1.545048
+1.597960
+-1.134256
+.315256
+.539730
+-1.110901
+1.238012
+-.991012
+.611306
+-.362333
+.382096
+-.622909
+.903440
+-1.029081
+.903705
+-.571895
+.178393
+.122671
+-.253257
+.244388
+-.200586
+.220556
+-.327142
+.455553
+-.510328
+.450733
+-.338972
+.308246
+-.467168
+.808905
+-1.195856
+1.438201
+-1.414119
+1.145800
+-.774838
+.454647
+-.239138
+.051722
+.240715
+-.702496
+1.246802
+-1.660547
+1.724866
+-1.351401
+.645710
+.139318
+-.726081
+.937441
+-.761960
+.340471
+.104855
+-.362222
+.310842
+.031400
+-.509574
+.891396
+-.973460
+.691516
+-.170328
+-.332954
+.575591
+-.477978
+.167222
+.125806
+-.244407
+.218743
+-.217586
+.375864
+-.645140
+.804402
+-.636202
+.129406
+.464271
+-.782075
+.607121
+-.038290
+-.558784
+.791159
+-.500391
+-.135689
+.726907
+-.927179
+.643909
+-.066884
+-.482872
+.761808
+-.725488
+.499926
+-.252959
+.074934
+.051746
+-.194488
+.388006
+-.594451
+.728829
+-.721333
+.568968
+-.344417
+.160701
+-.113792
+.232906
+-.462390
+.686178
+-.787312
+.714269
+-.514617
+.307370
+-.202129
+.214652
+-.240895
+.118168
+.259321
+-.845675
+1.434935
+-1.749595
+1.578647
+-.892969
+-.117569
+1.104189
+-1.697451
+1.672624
+-1.067851
+.183690
+.560513
+-.852563
+.664764
+-.258786
+-.001943
+-.086325
+.419039
+-.664531
+.524148
+.019826
+-.659420
+.962829
+-.682125
+-.054314
+.804896
+-1.094282
+.723771
+.090579
+-.840295
+1.030113
+-.476902
+-.580634
+1.625589
+-2.165296
+2.001871
+-1.308256
+.481086
+.113067
+-.326415
+.250686
+-.095359
+.036296
+-.136690
+.360386
+-.625353
+.838617
+-.901628
+.720332
+-.249688
+-.444942
+1.166657
+-1.650604
+1.694987
+-1.280016
+.590181
+.083646
+-.500868
+.584577
+-.425247
+.189781
+-.013956
+-.049257
+.011551
+.095500
+-.242892
+.394256
+-.494478
+.487810
+-.359933
+.165818
+-.010750
+-.009517
+-.132000
+.377262
+-.619464
+.765262
+-.781401
+.698640
+-.574065
+.439044
+-.269758
+.006417
+.385276
+-.851401
+1.239982
+-1.369567
+1.145340
+-.646869
+.117898
+.152075
+.008898
+-.545128
+1.185776
+-1.577917
+1.469109
+-.841890
+-.071078
+.900289
+-1.322860
+1.220058
+-.724480
+.132088
+.267287
+-.338933
+.145080
+.134404
+-.335875
+.404116
+-.387595
+.359573
+-.340873
+.289085
+-.157266
+-.034606
+.182933
+-.160795
+-.085792
+.479429
+-.841866
+1.001438
+-.907308
+.668820
+-.485298
+.507979
+-.727073
+.966474
+-.996865
+.694446
+-.136749
+-.432952
+.751042
+-.691475
+.332257
+.107344
+-.406241
+.458739
+-.298095
+.032066
+.241929
+-.473468
+.635397
+-.686014
+.572557
+-.283374
+-.100477
+.416261
+-.504695
+.313951
+.058352
+-.422589
+.614716
+-.588437
+.419283
+-.228339
+.092660
+-.010100
+-.066063
+.163912
+-.257199
+.282197
+-.187613
+-.022117
+.276815
+-.466583
+.490159
+-.307966
+-.022965
+.356852
+-.522819
+.422687
+-.104004
+-.251545
+.433920
+-.342316
+.058317
+.203127
+-.236130
+-.018054
+.431631
+-.772770
+.850146
+-.624149
+.220296
+.152334
+-.320904
+.237553
+.005085
+-.233637
+.295610
+-.150766
+-.099131
+.266404
+-.194458
+-.135156
+.581644
+-.932180
+1.039343
+-.907174
+.660913
+-.427909
+.230295
+.019651
+-.415859
+.932908
+-1.386443
+1.524382
+-1.193341
+.464554
+.373900
+-.963100
+1.068653
+-.703391
+.103938
+.416214
+-.638011
+.528056
+-.210116
+-.140618
+.396906
+-.513535
+.497425
+-.361844
+.111335
+.234118
+-.607729
+.897357
+-.992287
+.847544
+-.517785
+.131681
+.179452
+-.349546
+.395547
+-.377798
+.340328
+-.279968
+.163437
+.030908
+-.286280
+.554713
+-.783026
+.929507
+-.962063
+.854602
+-.602725
+.254731
+.074761
+-.241217
+.152908
+.151261
+-.495628
+.659545
+-.520277
+.148145
+.224834
+-.353913
+.148086
+.267879
+-.644264
+.784441
+-.677976
+.491464
+-.428329
+.566984
+-.800253
+.920482
+-.784492
+.433757
+-.078953
+-.042051
+-.169225
+.599912
+-.999649
+1.146333
+-.987742
+.663521
+-.399895
+.356097
+-.527826
+.763566
+-.869143
+.722638
+-.330662
+-.190663
+.677115
+-.977245
+.994684
+-.716409
+.229206
+.293756
+-.655524
+.733255
+-.554767
+.290966
+-.152200
+.249781
+-.517985
+.754676
+-.753960
+.439908
+.087335
+-.616984
+.953315
+-1.017136
+.865790
+-.634035
+.446263
+-.357266
+.348688
+-.368025
+.374806
+-.363778
+.357635
+-.382794
+.449264
+-.546144
+.650252
+-.736414
+.781777
+-.767387
+.685830
+-.555890
+.430508
+-.379813
+.447672
+-.606740
+.751069
+-.746283
+.516107
+-.109921
+-.302023
+.517216
+-.427337
+.101821
+.236942
+-.347934
+.138408
+.252035
+-.525853
+.430392
+.043257
+-.616191
+.886952
+-.607658
+-.122143
+.894156
+-1.250664
+.989224
+-.297948
+-.374317
+.617353
+-.314487
+-.317706
+.908676
+-1.178987
+1.071893
+-.705164
+.226836
+.283029
+-.793335
+1.237860
+-1.478828
+1.377439
+-.919525
+.280943
+.242541
+-.407704
+.180070
+.240321
+-.547306
+.527620
+-.195594
+-.228795
+.483194
+-.451183
+.238036
+-.077338
+.139000
+-.387041
+.598961
+-.533897
+.121519
+.470825
+-.940460
+1.043000
+-.739797
+.205964
+.289766
+-.539596
+.487015
+-.215825
+-.127128
+.410995
+-.561607
+.565824
+-.461523
+.323962
+-.241357
+.275312
+-.423280
+.611041
+-.726254
+.673032
+-.414732
+-.012339
+.508307
+-.930401
+1.125956
+-.984270
+.497133
+.206341
+-.886189
+1.283223
+-1.236325
+.765253
+-.073343
+-.536955
+.802020
+-.625687
+.132154
+.394510
+-.661676
+.529418
+-.084764
+-.417456
+.707539
+-.648961
+.293392
+.175300
+-.554382
+.715798
+-.635257
+.364374
+.013748
+-.411314
+.740539
+-.917531
+.885414
+-.651215
+.304520
+.012339
+-.177133
+.157620
+-.024360
+-.107951
+.170163
+-.191507
+.274305
+-.506543
+.873063
+-1.228621
+1.358158
+-1.095456
+.433768
+.441205
+-1.226746
+1.653591
+-1.625944
+1.263367
+-.815349
+.502775
+-.390733
+.375682
+-.288387
+.034198
+.330808
+-.638628
+.728757
+-.558686
+.228408
+.090427
+-.260471
+.241977
+-.078380
+-.166110
+.454676
+-.773086
+1.086020
+-1.304188
+1.302527
+-.986544
+.364708
+.422630
+-1.143314
+1.568579
+-1.578361
+1.220040
+-.682101
+.188725
+.125776
+-.279642
+.394596
+-.566867
+.759212
+-.810273
+.568405
+-.050648
+-.507332
+.769220
+-.513544
+-.205071
+1.065938
+-1.660953
+1.723364
+-1.261653
+.525033
+.161167
+-.576509
+.693779
+-.636172
+.551932
+-.500638
+.426198
+-.223960
+-.156134
+.647882
+-1.090688
+1.315820
+-1.238838
+.903860
+-.462116
+.105226
+.011269
+.173985
+-.603068
+1.112347
+-1.486068
+1.539072
+-1.198825
+.545745
+.215719
+-.845157
+1.166529
+-1.128057
+.798167
+-.315143
+-.172504
+.548341
+-.748265
+.764720
+-.636870
+.426761
+-.190484
+-.037512
+.234986
+-.370124
+.397219
+-.287765
+.077223
+.119461
+-.157396
+-.042052
+.415936
+-.773089
+.904897
+-.724689
+.334105
+.039755
+-.195930
+.089005
+.159656
+-.370124
+.435500
+-.366654
+.223348
+-.012421
+-.333887
+.864735
+-1.487957
+1.950547
+-1.976322
+1.471282
+-.628626
+-.169135
+.591957
+-.567606
+.296283
+-.071980
+.058633
+-.193682
+.278517
+-.165178
+-.116372
+.383944
+-.448602
+.259684
+.057726
+-.291611
+.284644
+-.027779
+-.350590
+.678903
+-.847392
+.856259
+-.787771
+.734829
+-.739916
+.779533
+-.792444
+.722332
+-.544660
+.267744
+.079096
+-.451097
+.783139
+-.989873
+.989471
+-.748798
+.320695
+.161092
+-.537143
+.696389
+-.622170
+.384379
+-.091728
+-.159694
+.314869
+-.364791
+.341314
+-.307084
+.334787
+-.474008
+.722159
+-1.023570
+1.301016
+-1.494088
+1.570024
+-1.501927
+1.248542
+-.775986
+.119511
+.569296
+-1.052436
+1.119387
+-.718466
+.011394
+.695773
+-1.107551
+1.085788
+-.704130
+.186916
+.224220
+-.398068
+.367173
+-.281709
+.295597
+-.457985
+.681550
+-.808458
+.725187
+-.440728
+.070886
+.253547
+-.477495
+.637942
+-.797746
+.958322
+-1.029481
+.886636
+-.474419
+-.122918
+.700810
+-1.037480
+1.016790
+-.693096
+.257830
+.070375
+-.162585
+.033241
+.195821
+-.387524
+.473313
+-.478806
+.487307
+-.576348
+.768675
+-1.018453
+1.230510
+-1.299824
+1.158589
+-.814479
+.359752
+.063053
+-.329795
+.400271
+-.336227
+.254492
+-.243530
+.302148
+-.346238
+.280030
+-.077242
+-.192523
+.415421
+-.522986
+.546853
+-.590812
+.739776
+-.977466
+1.179816
+-1.193311
+.943148
+-.495342
+.031340
+.246632
+-.220093
+-.090066
+.541611
+-.943888
+1.142282
+-1.073073
+.770934
+-.338224
+-.101827
+.447821
+-.649054
+.715462
+-.705584
+.693364
+-.725345
+.789803
+-.817245
+.715080
+-.420544
+-.054222
+.606621
+-1.067479
+1.259645
+-1.072575
+.521955
+.238143
+-.967916
+1.443095
+-1.556231
+1.360727
+-1.028628
+.745216
+-.605175
+.575287
+-.543336
+.412834
+-.173280
+-.101639
+.317158
+-.424165
+.435727
+-.387562
+.288334
+-.112683
+-.152166
+.450510
+-.652580
+.620700
+-.306389
+-.194497
+.677148
+-.938550
+.894275
+-.625830
+.327485
+-.187168
+.276889
+-.519901
+.749963
+-.818654
+.680003
+-.404396
+.125023
+.039891
+-.042127
+-.084661
+.248817
+-.342825
+.288593
+-.073497
+-.238386
+.530210
+-.684632
+.636846
+-.398620
+.044630
+.322406
+-.603751
+.724826
+-.650642
+.402769
+-.068403
+-.218588
+.332108
+-.223233
+-.038211
+.285938
+-.344733
+.139464
+.242417
+-.585948
+.674230
+-.432508
+-.006085
+.368335
+-.407001
+.057141
+.524622
+-1.063494
+1.337712
+-1.298110
+1.062421
+-.804735
+.630697
+-.523841
+.385735
+-.125826
+-.265873
+.703623
+-1.046168
+1.161927
+-.985805
+.546916
+.039363
+-.610078
+1.010653
+-1.148601
+1.025976
+-.737380
+.431414
+-.247757
+.252842
+-.404667
+.570012
+-.594648
+.395484
+-.021865
+-.358336
+.549882
+-.448471
+.109559
+.281779
+-.522813
+.510826
+-.286968
+-.017200
+.279847
+-.455901
+.567779
+-.644133
+.671014
+-.599086
+.395562
+-.090156
+-.225499
+.443267
+-.491843
+.362985
+-.102792
+-.213848
+.505392
+-.697012
+.733684
+-.598854
+.331547
+-.025167
+-.203470
+.267503
+-.158757
+-.040823
+.199745
+-.212564
+.065479
+.153013
+-.308616
+.310013
+-.169735
+-.005227
+.084704
+.002494
+-.229635
+.492970
+-.668999
+.671055
+-.482994
+.167109
+.153090
+-.336659
+.289229
+-.018966
+-.354536
+.655897
+-.747481
+.602171
+-.308028
+.005743
+.194534
+-.260992
+.230062
+-.161116
+.097972
+-.062441
+.068637
+-.129809
+.243180
+-.370287
+.442778
+-.403544
+.255122
+-.073134
+-.034430
+-.002910
+.169424
+-.371050
+.494236
+-.475763
+.338134
+-.170082
+.067034
+-.072259
+.158862
+-.264813
+.352765
+-.443604
+.590321
+-.808586
+1.023573
+-1.088211
+.874899
+-.379509
+-.240411
+.729953
+-.867170
+.578247
+.031580
+-.741719
+1.325480
+-1.636230
+1.630990
+-1.341560
+.835774
+-.202940
+-.438361
+.941399
+-1.168239
+1.054093
+-.655924
+.141969
+.283984
+-.481835
+.435992
+-.241464
+.031178
+.100254
+-.125235
+.057373
+.089561
+-.311423
+.584148
+-.835342
+.964360
+-.911493
+.718320
+-.513168
+.416675
+-.441077
+.475719
+-.381762
+.119946
+.201802
+-.408712
+.402685
+-.244995
+.103547
+-.105936
+.222009
+-.278364
+.098440
+.341031
+-.861570
+1.182987
+-1.098699
+.601634
+.119662
+-.795833
+1.213826
+-1.293380
+1.081764
+-.701099
+.292625
+.024204
+-.181163
+.179325
+-.083856
+-.013939
+.052351
+-.037978
+.038037
+-.127771
+.326558
+-.566620
+.720257
+-.675112
+.413415
+-.041268
+-.260835
+.344712
+-.191350
+-.071372
+.250306
+-.215701
+-.013818
+.291569
+-.450009
+.411582
+-.221949
+-.006290
+.178856
+-.260763
+.255840
+-.171791
+.024165
+.124274
+-.148655
+-.078306
+.577624
+-1.196557
+1.659620
+-1.723200
+1.330657
+-.656338
+.005557
+.360965
+-.363817
+.123631
+.135265
+-.225835
+.097280
+.158144
+-.382427
+.458763
+-.382633
+.257240
+-.218707
+.338143
+-.562259
+.733076
+-.681255
+.340173
+.189626
+-.672599
+.858372
+-.625666
+.064103
+.561795
+-.953655
+.944627
+-.587063
+.106895
+.242709
+-.328322
+.188292
+.030626
+-.188135
+.227054
+-.169109
+.059991
+.073360
+-.219740
+.355337
+-.435384
+.424183
+-.336578
+.244328
+-.229504
+.316272
+-.437986
+.472673
+-.326332
+.003511
+.386379
+-.690047
+.793109
+-.670343
+.380829
+-.027933
+-.279757
+.448334
+-.409755
+.143301
+.293295
+-.751972
+1.034485
+-.985373
+.590389
+-.008949
+-.499986
+.727351
+-.643444
+.413093
+-.277897
+.385762
+-.691812
+1.001414
+-1.116248
+.966933
+-.635692
+.270103
+.023850
+-.219615
+.326904
+-.334027
+.206374
+.057286
+-.377879
+.621672
+-.689523
+.590413
+-.427220
+.302395
+-.230514
+.141443
+.025463
+-.226092
+.312916
+-.146841
+-.269330
+.752160
+-1.036819
+.945426
+-.501559
+-.088739
+.566510
+-.763036
+.665661
+-.384117
+.064277
+.184782
+-.315635
+.327783
+-.241991
+.084518
+.115536
+-.322904
+.494114
+-.581686
+.546809
+-.377920
+.106362
+.193370
+-.426985
+.523168
+-.477376
+.369116
+-.329637
+.461478
+-.749394
+1.029490
+-1.064322
+.701581
+-.014646
+-.692867
+1.054290
+-.882275
+.312398
+.271766
+-.494397
+.245393
+.248906
+-.596851
+.531081
+-.106181
+-.338393
+.422517
+-.002016
+-.718084
+1.312393
+-1.415869
+.963270
+-.226974
+-.366085
+.508861
+-.196584
+-.294056
+.600383
+-.505154
+.055250
+.496361
+-.872160
+.948999
+-.819244
+.701367
+-.767268
+1.007339
+-1.228290
+1.187240
+-.770618
+.092098
+.562090
+-.906927
+.835291
+-.479715
+.121483
+-.013280
+.234445
+-.666585
+1.090294
+-1.325811
+1.324574
+-1.165849
+.979468
+-.855001
+.792206
+-.712308
+.515481
+-.150524
+-.339186
+.817751
+-1.111092
+1.091141
+-.749081
+.216171
+.284848
+-.538660
+.438320
+-.036507
+-.480481
+.882982
+-1.005983
+.820285
+-.434233
+.032108
+.214330
+-.218448
+.008325
+.291783
+-.518369
+.544898
+-.348855
+.035256
+.207203
+-.206638
+-.087634
+.564644
+-1.009398
+1.227136
+-1.153570
+.879381
+-.579364
+.403865
+-.407773
+.552418
+-.754723
+.932359
+-1.017052
+.951655
+-.702160
+.291311
+.175727
+-.531635
+.618593
+-.374049
+-.125228
+.692387
+-1.117631
+1.261120
+-1.099116
+.705388
+-.194091
+-.328987
+.777452
+-1.069598
+1.126444
+-.905779
+.451586
+.090510
+-.524375
+.698240
+-.579537
+.255944
+.134154
+-.485405
+.761137
+-.964578
+1.085126
+-1.078349
+.903449
+-.585582
+.239089
+-.014491
+-.002999
+-.135423
+.267906
+-.237219
+.011602
+.285227
+-.462584
+.402131
+-.139432
+-.171856
+.378195
+-.431369
+.404777
+-.419304
+.541781
+-.729464
+.854038
+-.786394
+.489688
+-.064627
+-.286620
+.368848
+-.118605
+-.333410
+.715465
+-.766669
+.398062
+.244565
+-.864208
+1.190003
+-1.128313
+.787651
+-.372815
+.040430
+.173166
+-.311030
+.400378
+-.402596
+.257585
+.022236
+-.305167
+.400387
+-.191349
+-.259503
+.723241
+-.936135
+.763915
+-.286870
+-.249697
+.583084
+-.579677
+.289495
+.113606
+-.452683
+.642953
+-.704380
+.700160
+-.661634
+.563172
+-.363921
+.075403
+.209259
+-.358482
+.290047
+-.034860
+-.276845
+.499008
+-.558471
+.482168
+-.349123
+.216090
+-.081213
+-.090232
+.311271
+-.543688
+.717393
+-.776066
+.707703
+-.540305
+.318162
+-.086681
+-.104539
+.196023
+-.131688
+-.107060
+.469698
+-.836701
+1.062609
+-1.043528
+.771286
+-.342143
+-.086906
+.370976
+-.440945
+.325554
+-.122913
+-.059696
+.162898
+-.197569
+.221625
+-.288668
+.402450
+-.505717
+.508805
+-.339335
+-.013246
+.477328
+-.910903
+1.146691
+-1.062355
+.648937
+-.035080
+-.564036
+.956105
+-1.072385
+.987239
+-.842117
+.735598
+-.667837
+.577391
+-.427557
+.259762
+-.168466
+.224391
+-.414729
+.646973
+-.806861
+.822311
+-.692661
+.476428
+-.257631
+.113075
+-.089749
+.191334
+-.373566
+.553881
+-.640381
+.575737
+-.376090
+.137181
+.008823
+.028702
+-.231801
+.469212
+-.569925
+.434326
+-.107215
+-.243291
+.432001
+-.375256
+.138999
+.114815
+-.239885
+.192697
+-.037533
+-.120379
+.211376
+-.228454
+.197613
+-.134267
+.032590
+.106179
+-.243932
+.313337
+-.262654
+.098407
+.112944
+-.286188
+.366934
+-.353555
+.282943
+-.199542
+.130478
+-.076275
+.014229
+.088926
+-.255980
+.475343
+-.687067
+.794030
+-.701921
+.374746
+.121838
+-.619774
+.908346
+-.840769
+.436057
+.094764
+-.439893
+.363158
+.139530
+-.815516
+1.295908
+-1.318223
+.884022
+-.246034
+-.260925
+.423203
+-.247689
+-.095496
+.423873
+-.663870
+.857195
+-1.066906
+1.276937
+-1.377144
+1.246310
+-.859514
+.327172
+.166197
+-.470151
+.536776
+-.407156
+.148209
+.192335
+-.575827
+.932675
+-1.147093
+1.096735
+-.726790
+.106303
+.575031
+-1.076039
+1.209766
+-.936583
+.395851
+.149508
+-.438078
+.341818
+.072427
+-.590842
+.979519
+-1.107602
+.991292
+-.744187
+.484588
+-.269969
+.094994
+.064232
+-.207530
+.305063
+-.327735
+.283255
+-.224713
+.222751
+-.320704
+.505288
+-.712958
+.865579
+-.909025
+.830281
+-.649894
+.405368
+-.142421
+-.086061
+.226385
+-.244651
+.150993
+-.005016
+-.109602
+.128641
+-.039337
+-.119631
+.285726
+-.405004
+.450054
+-.421638
+.342915
+-.252050
+.188976
+-.175079
+.196787
+-.210074
+.169728
+-.063553
+-.077359
+.203102
+-.284441
+.334373
+-.395610
+.506110
+-.669074
+.844248
+-.961529
+.949148
+-.768910
+.445804
+-.071083
+-.236063
+.394489
+-.409966
+.365236
+-.353513
+.407612
+-.483334
+.508176
+-.448507
+.335413
+-.231870
+.178268
+-.167291
+.163549
+-.139234
+.087869
+-.009118
+-.107704
+.272948
+-.463978
+.607402
+-.608460
+.418842
+-.092300
+-.224138
+.371179
+-.280929
+.029317
+.205631
+-.257517
+.082929
+.205540
+-.408464
+.366174
+-.059724
+-.378132
+.744530
+-.883304
+.762145
+-.470437
+.153961
+.061898
+-.116789
+.019709
+.168436
+-.356205
+.448119
+-.384248
+.182132
+.052735
+-.177287
+.105867
+.115507
+-.323244
+.346399
+-.139289
+-.166973
+.342843
+-.217576
+-.198644
+.715256
+-1.078834
+1.118734
+-.823486
+.314562
+.239920
+-.701525
+.988756
+-1.066909
+.934979
+-.626614
+.214349
+.201991
+-.523266
+.677693
+-.629767
+.375459
+.058091
+-.600144
+1.125726
+-1.474769
+1.512704
+-1.207564
+.672134
+-.127866
+-.205457
+.235222
+-.054819
+-.113972
+.068826
+.228134
+-.609783
+.805507
+-.623586
+.090968
+.549491
+-.986312
+1.030220
+-.716648
+.255909
+.120616
+-.299531
+.316418
+-.278713
+.262092
+-.265257
+.244012
+-.175209
+.085860
+-.027011
+.024799
+-.055826
+.065042
+-.005651
+-.130152
+.304225
+-.444298
+.468706
+-.324943
+.034947
+.283782
+-.460155
+.376076
+-.073083
+-.236149
+.292688
+.017550
+-.552680
+.987411
+-1.034035
+.650729
+-.074869
+-.349290
+.419584
+-.213776
+.016201
+-.093896
+.493092
+-1.004397
+1.316214
+-1.239958
+.845225
+-.413841
+.250613
+-.482487
+.977370
+-1.428336
+1.542807
+-1.216091
+.587528
+.045847
+-.399019
+.349269
+.014917
+-.463594
+.762818
+-.797183
+.613896
+-.375009
+.252864
+-.328200
+.543632
+-.736283
+.733404
+-.459964
+-.005764
+.467564
+-.723145
+.685415
+-.432806
+.152104
+-.009540
+.038577
+-.122507
+.084292
+.179680
+-.614170
+1.025442
+-1.191693
+.991969
+-.476801
+-.155463
+.656657
+-.845875
+.688148
+-.302670
+-.097374
+.301907
+-.194866
+-.198081
+.722460
+-1.161757
+1.330991
+-1.158031
+.715798
+-.187487
+-.219777
+.369551
+-.249793
+-.038171
+.342501
+-.537408
+.576086
+-.500969
+.412264
+-.409794
+.531626
+-.721133
+.847827
+-.781798
+.483855
+-.049863
+-.333821
+.508212
+-.454927
+.315626
+-.288795
+.471397
+-.768922
+.956426
+-.855904
+.493661
+-.105594
+-.026210
+-.214525
+.681520
+-1.060764
+1.085710
+-.713298
+.139155
+.344417
+-.533090
+.409406
+-.107337
+-.205617
+.431530
+-.566218
+.650922
+-.707888
+.713694
+-.624620
+.425829
+-.161329
+-.082336
+.230931
+-.278269
+.299033
+-.400742
+.640691
+-.966211
+1.228424
+-1.271215
+1.039576
+-.630137
+.241641
+-.052383
+.106062
+-.286006
+.398250
+-.308070
+.035087
+.259520
+-.384171
+.247966
+.079131
+-.413865
+.575794
+-.489476
+.210280
+.128198
+-.394611
+.511115
+-.455279
+.236661
+.114175
+-.532160
+.903619
+-1.087358
+.978685
+-.580610
+.026786
+.473161
+-.741162
+.726117
+-.526524
+.326004
+-.280949
+.427489
+-.661682
+.803651
+-.709292
+.364449
+.094702
+-.450641
+.525215
+-.282024
+-.150345
+.548165
+-.713855
+.578089
+-.225111
+-.168813
+.442480
+-.534398
+.494630
+-.423364
+.385044
+-.361200
+.272003
+-.044993
+-.321843
+.744080
+-1.085865
+1.220845
+-1.086485
+.711146
+-.201578
+-.308443
+.727538
+-1.050457
+1.336284
+-1.626352
+1.865970
+-1.908701
+1.622025
+-1.019544
+.303030
+.241245
+-.425489
+.280966
+-.017109
+-.147859
+.146771
+-.086305
+.123569
+-.307838
+.522581
+-.574208
+.353767
+.057950
+-.424073
+.502072
+-.205730
+-.330948
+.828621
+-1.025862
+.826654
+-.343416
+-.183655
+.532845
+-.620093
+.523057
+-.407439
+.411588
+-.564215
+.780391
+-.928511
+.917817
+-.750053
+.506280
+-.284428
+.134044
+-.033893
+-.072780
+.212806
+-.339153
+.348688
+-.158153
+-.212568
+.617005
+-.850668
+.776719
+-.422595
+-.027863
+.349365
+-.417850
+.277104
+-.083869
+-.018533
+-.005570
+.091702
+-.164631
+.221170
+-.330200
+.551828
+-.852107
+1.094682
+-1.125538
+.885941
+-.463564
+.039521
+.228828
+-.301975
+.262795
+-.235625
+.285698
+-.374046
+.396861
+-.275829
+.030879
+.219247
+-.331398
+.236369
+.010294
+-.264500
+.394668
+-.372991
+.285882
+-.251300
+.305146
+-.349376
+.212819
+.209450
+-.838692
+1.411753
+-1.614675
+1.272446
+-.470890
+-.474291
+1.186617
+-1.429564
+1.213528
+-.750306
+.299954
+-.020156
+-.087947
+.122135
+-.172295
+.247865
+-.282500
+.196853
+.034198
+-.354902
+.652535
+-.811456
+.765900
+-.526974
+.175557
+.170837
+-.398673
+.429638
+-.238003
+-.140428
+.605479
+-1.006010
+1.183645
+-1.041757
+.604773
+-.023037
+-.492528
+.771938
+-.760741
+.524118
+-.188873
+-.126338
+.345383
+-.427536
+.352262
+-.129833
+-.166286
+.389351
+-.373754
+.042693
+.505130
+-1.013842
+1.209969
+-.978315
+.443333
+.115480
+-.456152
+.527787
+-.468133
+.457797
+-.560289
+.680599
+-.666001
+.451487
+-.123072
+-.146117
+.221724
+-.090293
+-.155351
+.392510
+-.532252
+.530732
+-.371161
+.063213
+.329589
+-.674686
+.814726
+-.665127
+.294573
+.089720
+-.262164
+.123995
+.236574
+-.614930
+.831783
+-.833172
+.682113
+-.475805
+.278803
+-.125899
+.061818
+-.143232
+.377175
+-.656070
+.777944
+-.571195
+.037910
+.607318
+-1.053703
+1.091153
+-.745391
+.253927
+.095065
+-.143342
+-.057331
+.305102
+-.392552
+.237685
+.071518
+-.332519
+.344220
+-.021170
+-.550153
+1.143129
+-1.499325
+1.459446
+-1.043286
+.428797
+.156361
+-.558349
+.753299
+-.806789
+.782501
+-.682715
+.470002
+-.145025
+-.196715
+.391523
+-.310142
+-.039455
+.493324
+-.821915
+.872607
+-.665208
+.372085
+-.196538
+.235341
+-.421292
+.582634
+-.572876
+.376910
+-.120649
+-.017601
+-.071657
+.359418
+-.702666
+.940004
+-.990294
+.890361
+-.752536
+.676027
+-.673193
+.659351
+-.512486
+.163733
+.341365
+-.853368
+1.196527
+-1.262547
+1.059011
+-.685359
+.263351
+.121658
+-.431092
+.644959
+-.736182
+.677729
+-.474270
+.183753
+.096780
+-.275384
+.310243
+-.227938
+.106220
+-.031862
+.055044
+-.163290
+.290442
+-.357129
+.319226
+-.191686
+.032542
+.098477
+-.174098
+.203562
+-.211289
+.213781
+-.212428
+.200076
+-.167539
+.103934
+.002303
+-.153102
+.325926
+-.471275
+.533277
+-.483283
+.341684
+-.168699
+.029723
+.040103
+-.047916
+.026917
+-.007946
+-.000057
+.009200
+-.035580
+.079536
+-.117109
+.110113
+-.031106
+-.111060
+.263861
+-.353424
+.328337
+-.197872
+.034891
+.063828
+-.036049
+-.108899
+.298357
+-.439822
+.466616
+-.359772
+.147026
+.105707
+-.304544
+.351937
+-.192591
+-.139694
+.517317
+-.779822
+.829977
+-.695141
+.500892
+-.374126
+.352092
+-.370991
+.338802
+-.224085
+.080666
+.011123
+-.027712
+.027881
+-.093511
+.241443
+-.394823
+.449094
+-.376102
+.267431
+-.268212
+.453347
+-.753770
+.999959
+-1.047721
+.883232
+-.626340
+.438424
+-.412083
+.520896
+-.650183
+.673705
+-.523472
+.219634
+.145839
+-.458506
+.639156
+-.680259
+.638959
+-.589751
+.568721
+-.548511
+.460524
+-.246897
+-.092448
+.482887
+-.794068
+.886749
+-.675237
+.183853
+.434937
+-.949491
+1.158165
+-1.003342
+.613723
+-.234807
+.083900
+-.222720
+.531128
+-.794214
+.838266
+-.625720
+.258204
+.098798
+-.313641
+.353534
+-.290249
+.251216
+-.341708
+.576229
+-.858277
+1.027117
+-.950236
+.605452
+-.098087
+-.396307
+.720162
+-.795124
+.631096
+-.303713
+-.068868
+.346575
+-.408092
+.217372
+.124183
+-.401359
+.402029
+-.063770
+-.458381
+.869686
+-.918902
+.563988
+-.002192
+-.456965
+.587152
+-.374892
+.001960
+.294743
+-.378001
+.271788
+-.100613
+-.028690
+.101963
+-.176548
+.298613
+-.443270
+.532321
+-.506277
+.376982
+-.210535
+.062136
+.068731
+-.217645
+.394015
+-.547145
+.601572
+-.532550
+.407880
+-.348393
+.434189
+-.636285
+.835515
+-.914736
+.846808
+-.704231
+.585528
+-.526121
+.472819
+-.343055
+.113032
+.145939
+-.318362
+.341386
+-.265997
+.228530
+-.349305
+.631377
+-.933301
+1.040476
+-.794521
+.201997
+.546177
+-1.161408
+1.403133
+-1.199970
+.677493
+-.080786
+-.358246
+.531969
+-.490147
+.386570
+-.374892
+.511115
+-.714910
+.813564
+-.648401
+.183763
+.451908
+-1.026044
+1.330875
+-1.299517
+1.033162
+-.725595
+.541337
+-.531832
+.637212
+-.754407
+.808908
+-.779112
+.674027
+-.504999
+.286986
+-.063846
+-.081061
+.058324
+.165302
+-.525841
+.883608
+-1.100022
+1.117405
+-.983698
+.805475
+-.664633
+.559541
+-.410861
+.126626
+.317429
+-.834490
+1.249418
+-1.380756
+1.143123
+-.614295
+.020772
+.366204
+-.376615
+.044265
+.405087
+-.682012
+.600901
+-.181283
+-.375748
+.808440
+-.929367
+.699230
+-.219420
+-.329100
+.762356
+-.960599
+.910709
+-.704476
+.482234
+-.343726
+.283810
+-.207234
+.018869
+.280201
+-.573713
+.710559
+-.622694
+.385697
+-.173270
+.140148
+-.319813
+.606192
+-.825068
+.841759
+-.635040
+.297003
+.031070
+-.239659
+.298092
+-.248155
+.162504
+-.103268
+.102774
+-.162573
+.257096
+-.339061
+.355844
+-.279072
+.129461
+.029377
+-.133087
+.164638
+-.166180
+.199428
+-.284411
+.369447
+-.362619
+.205772
+.063841
+-.312931
+.379920
+-.171763
+-.270160
+.778314
+-1.141919
+1.219203
+-1.012996
+.662332
+-.355418
+.220805
+-.267513
+.407442
+-.532449
+.581969
+-.555109
+.473298
+-.341010
+.145515
+.107672
+-.365307
+.541077
+-.570557
+.461457
+-.293689
+.165561
+-.129568
+.170485
+-.240683
+.316734
+-.425021
+.613810
+-.898522
+1.227932
+-1.497414
+1.596896
+-1.460799
+1.097221
+-.593271
+.098660
+.214798
+-.217887
+-.107858
+.639206
+-1.150395
+1.415943
+-1.323739
+.931081
+-.427495
+.027266
+.141530
+-.085571
+-.088637
+.257534
+-.348825
+.354270
+-.295535
+.186789
+-.030546
+-.156325
+.323646
+-.407096
+.377876
+-.279275
+.209847
+-.255148
+.417662
+-.603166
+.681052
+-.576619
+.323333
+-.033039
+-.190142
+.319646
+-.402483
+.490472
+-.573794
+.580017
+-.439703
+.157745
+.174356
+-.435986
+.555500
+-.547530
+.488555
+-.459448
+.500090
+-.598654
+.708720
+-.776239
+.765462
+-.677845
+.553065
+-.443425
+.372201
+-.310988
+.206687
+-.046504
+-.097634
+.101720
+.109587
+-.475507
+.811376
+-.926637
+.757441
+-.403660
+.042431
+.201810
+-.321038
+.383518
+-.450310
+.534607
+-.625851
+.724823
+-.831253
+.895622
+-.806354
+.461529
+.116250
+-.730501
+1.100464
+-1.047432
+.637889
+-.157701
+-.082670
+-.025427
+.303832
+-.415552
+.116670
+.551935
+-1.272213
+1.648924
+-1.460093
+.790191
+.031909
+-.635668
+.817248
+-.630620
+.321008
+-.156355
+.265073
+-.575779
+.886594
+-1.009372
+.889497
+-.622793
+.366142
+-.213140
+.127724
+.018317
+-.335854
+.820118
+-1.333807
+1.680922
+-1.718261
+1.433474
+-.949622
+.465341
+-.169889
+.171253
+-.457714
+.899744
+-1.294155
+1.444144
+-1.250170
+.767116
+-.187666
+-.253910
+.411171
+-.310860
+.134705
+-.100636
+.316702
+-.705119
+1.051003
+-1.144873
+.922896
+-.512152
+.154580
+-.063007
+.298738
+-.739544
+1.149433
+-1.308745
+1.133830
+-.720633
+.284602
+-.028012
+.014635
+-.134500
+.184960
+-.014004
+-.373176
+.817158
+-1.109956
+1.125890
+-.886570
+.521978
+-.163981
+-.145530
+.463347
+-.865773
+1.343661
+-1.758685
+1.907756
+-1.662336
+1.086819
+-.442188
+.054148
+-.118694
+.568346
+-1.090527
+1.297553
+-.951840
+.112957
+.883080
+-1.602413
+1.745544
+-1.296376
+.504775
+.277032
+-.793404
+.993748
+-.993763
+.936666
+-.867012
+.711068
+-.370973
+-.148999
+.691844
+-1.023439
+.986327
+-.616963
+.132332
+.213457
+-.299847
+.209051
+-.140932
+.241699
+-.484827
+.699859
+-.722433
+.537978
+-.298583
+.200973
+-.329452
+.593128
+-.802408
+.814288
+-.626942
+.357644
+-.139451
+.030331
+-.001500
+-.006914
+.029438
+-.069854
+.136533
+-.262743
+.473275
+-.723086
+.879632
+-.795919
+.437062
+.045291
+-.376442
+.338963
+.058713
+-.563711
+.838987
+-.689946
+.188668
+.392885
+-.780561
+.872330
+-.766502
+.645531
+-.623988
+.679621
+-.702234
+.598749
+-.361024
+.053617
+.245349
+-.485524
+.636464
+-.658707
+.503869
+-.157716
+-.314788
+.777616
+-1.093424
+1.201624
+-1.137567
+.979686
+-.779881
+.547214
+-.296086
+.097832
+-.062889
+.249619
+-.578399
+.842954
+-.833157
+.484046
+.065329
+-.551509
+.747254
+-.589713
+.197528
+.217004
+-.470154
+.489912
+-.328233
+.117195
+-.002768
+.086088
+-.387136
+.834966
+-1.284430
+1.558246
+-1.510564
+1.096655
+-.418815
+-.286951
+.738873
+-.743183
+.304434
+.359257
+-.919129
+1.106523
+-.854029
+.323271
+.196308
+-.454319
+.369834
+-.050292
+-.302750
+.529868
+-.598186
+.583528
+-.577281
+.599572
+-.589823
+.478470
+-.273705
+.082831
+-.041546
+.202684
+-.474219
+.662177
+-.594320
+.237420
+.275472
+-.724734
+.931751
+-.847174
+.550591
+-.180525
+-.143716
+.358598
+-.447052
+.414088
+-.276205
+.066941
+.160993
+-.351335
+.471731
+-.531021
+.568715
+-.618757
+.671681
+-.666054
+.523838
+-.212248
+-.210994
+.607890
+-.829408
+.803159
+-.583084
+.327321
+-.214524
+.343785
+-.672027
+1.025845
+-1.191979
+1.047113
+-.652812
+.243870
+-.095270
+.341445
+-.871173
+1.382410
+-1.567372
+1.299648
+-.693665
+.006421
+.531573
+-.829909
+.931545
+-.921120
+.838248
+-.661560
+.360178
+.041443
+-.441813
+.702640
+-.725732
+.516617
+-.191387
+-.084238
+.190523
+-.122788
+-.015638
+.094544
+-.053456
+-.060898
+.146165
+-.142346
+.093144
+-.115580
+.298595
+-.611667
+.899681
+-.974047
+.737395
+-.255394
+-.273415
+.629958
+-.699367
+.532723
+-.307924
+.211528
+-.313116
+.515934
+-.625150
+.496218
+-.159620
+-.176846
+.263423
+.010203
+-.521877
+.986008
+-1.136861
+.895515
+-.407365
+-.062635
+.293221
+-.220294
+-.055918
+.350223
+-.496230
+.417590
+-.144409
+-.216191
+.531164
+-.691060
+.644476
+-.412625
+.083440
+.215384
+-.363182
+.301889
+-.075862
+-.173127
+.268397
+-.097021
+-.308005
+.758950
+-1.000335
+.854497
+-.341863
+-.306982
+.770707
+-.826335
+.491327
+-.021636
+-.242610
+.090858
+.421701
+-1.005372
+1.314825
+-1.158255
+.603089
+.080029
+-.583653
+.723837
+-.502927
+.065512
+.393255
+-.703149
+.758568
+-.539796
+.127616
+.307385
+-.567630
+.534055
+-.254370
+-.058447
+.141264
+.149332
+-.722928
+1.285011
+-1.507676
+1.238030
+-.604794
+-.055159
+.407212
+-.326436
+-.037283
+.374561
+-.424401
+.129081
+.359924
+-.807841
+1.050278
+-1.068349
+.951053
+-.794349
+.621535
+-.380779
+.013726
+.462306
+-.924404
+1.195591
+-1.148854
+.793803
+-.283885
+-.164661
+.388084
+-.350074
+.136131
+.112984
+-.274535
+.281872
+-.125093
+-.162588
+.513928
+-.833792
+1.015407
+-.972375
+.675255
+-.172786
+-.417456
+.948114
+-1.294376
+1.396192
+-1.273495
+1.011204
+-.722370
+.503234
+-.394930
+.369691
+-.354774
+.289851
+-.182846
+.116028
+-.181268
+.383762
+-.595912
+.619422
+-.330281
+-.198331
+.700303
+-.866595
+.547852
+.129812
+-.820049
+1.152371
+-.946969
+.317500
+.394960
+-.811790
+.717473
+-.160849
+-.589456
+1.197305
+-1.427630
+1.240760
+-.774239
+.239870
+.192432
+-.456271
+.572232
+-.584917
+.513606
+-.355573
+.129728
+.091435
+-.203857
+.139397
+.076055
+-.325920
+.470583
+-.431819
+.237007
+.000185
+-.143646
+.104662
+.115381
+-.425787
+.690795
+-.799225
+.723491
+-.530783
+.333675
+-.209620
+.144862
+-.045605
+-.186507
+.564092
+-.972134
+1.212020
+-1.116057
+.667968
+-.048037
+-.444343
+.561562
+-.268318
+-.224340
+.593069
+-.622077
+.350545
+-.031071
+-.075400
+-.089331
+.333494
+-.375104
+.084683
+.384355
+-.688610
+.547065
+.038405
+-.764836
+1.229977
+-1.207185
+.792644
+-.321882
+.123439
+-.292734
+.646678
+-.881319
+.807123
+-.486970
+.180084
+-.139876
+.417039
+-.810667
+1.000350
+-.763930
+.130216
+.633049
+-1.180027
+1.285479
+-.957744
+.407981
+.087703
+-.340858
+.331577
+-.186924
+.087402
+-.163875
+.437920
+-.823319
+1.171896
+-1.333331
+1.206914
+-.776966
+.128749
+.563958
+-1.089928
+1.284236
+-1.109772
+.685305
+-.229406
+-.055383
+.084546
+.090634
+-.357507
+.640723
+-.936663
+1.254664
+-1.527213
+1.590152
+-1.277924
+.572652
+.318687
+-1.042088
+1.295488
+-1.014871
+.416756
+.132650
+-.330731
+.095345
+.420756
+-.943375
+1.230504
+-1.176969
+.832868
+-.354190
+-.071698
+.291427
+-.227933
+-.100096
+.581129
+-1.039546
+1.292981
+-1.227390
+.857672
+-.333356
+-.128529
+.354786
+-.304875
+.078973
+.158108
+-.280556
+.261054
+-.154693
+.035915
+.054210
+-.114554
+.154318
+-.166496
+.133236
+-.056391
+-.022778
+.044527
+.015148
+-.104673
+.120080
+.007901
+-.225623
+.350676
+-.178418
+-.361251
+1.115020
+-1.764724
+2.006464
+-1.730415
+1.078700
+-.346715
+-.197302
+.450554
+-.488147
+.459630
+-.457609
+.456435
+-.361105
+.121470
+.184114
+-.370344
+.267307
+.141435
+-.670597
+1.021484
+-.958268
+.460125
+.249581
+-.817400
+.950120
+-.571076
+-.144804
+.873599
+-1.320172
+1.366941
+-1.107021
+.748697
+-.461594
+.273238
+-.086290
+-.205262
+.597185
+-.950331
+1.081949
+-.902927
+.494907
+-.066245
+-.184307
+.201368
+-.111502
+.138105
+-.445762
+1.012432
+-1.614091
+1.940238
+-1.779131
+1.160556
+-.360166
+-.251389
+.428314
+-.195980
+-.179450
+.381539
+-.261107
+-.076128
+.372445
+-.427107
+.246919
+-.024736
+-.028145
+-.144943
+.405812
+-.538997
+.425614
+-.133404
+-.141469
+.225508
+-.089581
+-.146842
+.320371
+-.348697
+.282743
+-.255288
+.373378
+-.635350
+.928166
+-1.099102
+1.047212
+-.774198
+.371039
+.038149
+-.351940
+.518238
+-.531471
+.417221
+-.217793
+-.019542
+.253748
+-.457207
+.613619
+-.709703
+.732656
+-.680954
+.578408
+-.470062
+.391735
+-.335014
+.245054
+-.066249
+-.195931
+.454825
+-.593417
+.551375
+-.372597
+.166049
+-.010667
+-.110527
+.284057
+-.568119
+.912047
+-1.169733
+1.202703
+-.989602
+.652019
+-.375986
+.292013
+-.406134
+.626816
+-.851305
+1.029794
+-1.154610
+1.198056
+-1.076325
+.696318
+-.060016
+-.668069
+1.211268
+-1.336859
+1.009583
+-.422523
+-.125712
+.418807
+-.437044
+.320457
+-.223387
+.185664
+-.123479
+-.059928
+.343329
+-.552928
+.464652
+.026287
+-.794200
+1.519392
+-1.858051
+1.638227
+-.956829
+.119668
+.532464
+-.802244
+.716239
+-.471516
+.293313
+-.294204
+.417358
+-.492421
+.363832
+-.006820
+-.446906
+.791568
+-.881038
+.718883
+-.441398
+.210647
+-.101053
+.064487
+.006713
+-.176207
+.404083
+-.574992
+.585948
+-.421692
+.161752
+.079979
+-.231314
+.295775
+-.325279
+.362088
+-.401770
+.407066
+-.355934
+.275893
+-.226755
+.240605
+-.271765
+.209846
+.039073
+-.460298
+.903750
+-1.156762
+1.074525
+-.678942
+.155629
+.250645
+-.372758
+.204069
+.118688
+-.411677
+.552466
+-.532786
+.430502
+-.329541
+.249347
+-.134603
+-.089081
+.435411
+-.812953
+1.052895
+-.999378
+.612665
+-.022978
+-.506578
+.702347
+-.431262
+-.205443
+.903461
+-1.312554
+1.237529
+-.757719
+.177418
+.172247
+-.151919
+-.101860
+.293585
+-.204763
+-.130545
+.452793
+-.493110
+.209555
+.153095
+-.242435
+-.113810
+.738757
+-1.199636
+1.105363
+-.390117
+-.626068
+1.440148
+-1.679610
+1.305511
+-.584783
+-.112821
+.527796
+-.599918
+.420783
+-.134199
+-.130303
+.275121
+-.242414
+.038330
+.248977
+-.480013
+.544436
+-.435685
+.253945
+-.128354
+.118868
+-.176432
+.188947
+-.070396
+-.177731
+.472971
+-.710162
+.824344
+-.819531
+.755477
+-.708186
+.726254
+-.801147
+.864816
+-.820335
+.597822
+-.208774
+-.235664
+.564468
+-.632491
+.406178
+.005956
+-.405233
+.611917
+-.565258
+.349669
+-.130001
+.041537
+-.110974
+.260066
+-.380901
+.420184
+-.408098
+.415170
+-.478064
+.556713
+-.556462
+.397168
+-.077089
+-.312037
+.625815
+-.736358
+.592359
+-.245568
+-.163864
+.459028
+-.501643
+.263223
+.147953
+-.532103
+.702830
+-.590869
+.276626
+.073798
+-.321822
+.434394
+-.472047
+.507133
+-.546991
+.526965
+-.374615
+.086824
+.246503
+-.491381
+.552394
+-.427155
+.198758
+.017984
+-.131975
+.100061
+.075971
+-.354682
+.650300
+-.836734
+.788036
+-.453899
+-.077028
+.587030
+-.832132
+.685564
+-.226446
+-.294662
+.599509
+-.543229
+.188024
+.254467
+-.566089
+.652252
+-.577946
+.496090
+-.523519
+.648169
+-.727190
+.579034
+-.114173
+-.577341
+1.242715
+-1.587144
+1.433307
+-.826320
+.020927
+.643686
+-.911564
+.728424
+-.248841
+-.265264
+.591340
+-.650422
+.512274
+-.311760
+.145275
+-.022621
+-.101573
+.256550
+-.410044
+.484162
+-.413945
+.198390
+.091928
+-.350366
+.484630
+-.454039
+.281752
+-.043651
+-.160602
+.247576
+-.189026
+.031234
+.121918
+-.160957
+.033306
+.220755
+-.484267
+.626924
+-.580369
+.379867
+-.143963
+.001853
+-.012014
+.124643
+-.213517
+.156830
+.087664
+-.461010
+.841965
+-1.111846
+1.201999
+-1.106392
+.871131
+-.577978
+.322543
+-.179228
+.159486
+-.193982
+.168202
+-.002706
+-.275154
+.529176
+-.596204
+.399720
+-.012351
+-.379643
+.583421
+-.502468
+.173073
+.269266
+-.651647
+.815087
+-.651939
+.146515
+.585969
+-1.301756
+1.710530
+-1.621321
+1.070444
+-.335467
+-.197865
+.248138
+.200763
+-.895208
+1.468546
+-1.656685
+1.433379
+-.984046
+.549914
+-.261890
+.082302
+.114978
+-.402643
+.716105
+-.894111
+.804011
+-.443994
+-.060199
+.551273
+-.937918
+1.210833
+-1.377856
+1.397482
+-1.189210
+.721008
+-.093434
+-.467400
+.723169
+-.568840
+.107172
+.401210
+-.680277
+.585373
+-.171671
+-.346274
+.715473
+-.780305
+.563914
+-.251622
+.080348
+-.190749
+.528136
+-.860747
+.916420
+-.560152
+-.101873
+.768001
+-1.116889
+1.002728
+-.540606
+.024456
+.264831
+-.227902
+-.019195
+.254432
+-.309829
+.165590
+.073030
+-.274699
+.370624
+-.375277
+.344465
+-.319548
+.301731
+-.267739
+.204799
+-.133848
+.100682
+-.139376
+.233551
+-.307316
+.261345
+-.038250
+-.324269
+.692798
+-.899079
+.829485
+-.488168
+-.006553
+.488204
+-.825044
+.966497
+-.932240
+.768505
+-.514977
+.206209
+.108126
+-.357567
+.476753
+-.443741
+.295385
+-.103523
+-.068001
+.187888
+-.244348
+.214863
+-.060907
+-.232150
+.598460
+-.879933
+.897461
+-.575257
+.027946
+.471916
+-.646944
+.393344
+.142319
+-.648005
+.836868
+-.613199
+.108153
+.420547
+-.739970
+.744438
+-.468264
+.036653
+.393684
+-.679299
+.725076
+-.515874
+.128204
+.299591
+-.633734
+.806050
+-.825417
+.735791
+-.564152
+.309063
+.022513
+-.371992
+.629940
+-.690405
+.518244
+-.177053
+-.201355
+.481492
+-.581916
+.500746
+-.307575
+.110659
+-.009833
+.049651
+-.196147
+.355218
+-.427024
+.363283
+-.191326
+-.006235
+.136308
+-.135759
+-.006783
+.245616
+-.486448
+.614015
+-.539921
+.252288
+.167200
+-.580417
+.867227
+-.986619
+.977901
+-.899950
+.758616
+-.489542
+.025487
+.593888
+-1.163041
+1.378646
+-1.024107
+.157319
+.846021
+-1.464543
+1.338758
+-.517770
+-.535399
+1.206056
+-1.096714
+.259094
+.862285
+-1.727185
+2.026507
+-1.821755
+1.424443
+-1.128829
+1.000749
+-.865674
+.484529
+.224767
+-1.082986
+1.734356
+-1.860668
+1.383748
+-.527486
+-.297695
+.717548
+-.591963
+.074411
+.495458
+-.794638
+.689651
+-.281890
+-.184008
+.471653
+-.463973
+.182596
+.262884
+-.737404
+1.115777
+-1.296382
+1.218612
+-.891267
+.408437
+.075222
+-.409242
+.515728
+-.416732
+.205662
+.011587
+-.162215
+.215066
+-.165594
+.027317
+.157987
+-.312851
+.349153
+-.225664
+-.004432
+.206237
+-.244998
+.085047
+.170890
+-.341586
+.292040
+-.036896
+-.254084
+.357659
+-.141082
+-.346110
+.890966
+-1.232895
+1.204393
+-.817161
+.254007
+.220630
+-.384466
+.161691
+.335908
+-.853675
+1.114934
+-.965952
+.465704
+.141280
+-.564396
+.635564
+-.397395
+.052718
+.183098
+-.216561
+.104524
+.027496
+-.094821
+.097947
+-.076742
+.032878
+.096939
+-.387270
+.837160
+-1.330270
+1.680931
+-1.734055
+1.445852
+-.895664
+.236220
+.371417
+-.802596
+.992645
+-.953756
+.780343
+-.616963
+.579481
+-.672537
+.775607
+-.730471
+.474827
+-.113104
+-.142861
+.121538
+.190152
+-.648571
+1.060138
+-1.295666
+1.327256
+-1.186638
+.911454
+-.535370
+.112888
+.273400
+-.550668
+.704902
+-.781717
+.824818
+-.810509
+.655164
+-.306848
+-.159010
+.543012
+-.645394
+.416067
+-.000561
+-.363412
+.513457
+-.455451
+.315676
+-.213297
+.174481
+-.152540
+.109288
+-.061208
+.044211
+-.044246
+-.019322
+.223260
+-.540466
+.808920
+-.818109
+.461919
+.156809
+-.757045
+1.035081
+-.841374
+.259239
+.462530
+-1.067345
+1.425797
+-1.562907
+1.580468
+-1.551918
+1.474942
+-1.306676
+1.034127
+-.708249
+.408971
+-.175059
+-.035027
+.310979
+-.708532
+1.181520
+-1.582301
+1.733444
+-1.524370
+.975615
+-.239826
+-.454575
+.888859
+-.937691
+.623416
+-.116785
+-.328117
+.488761
+-.287689
+-.161743
+.614579
+-.832081
+.714725
+-.345073
+-.085067
+.405967
+-.563437
+.613020
+-.635165
+.652532
+-.619890
+.487804
+-.273749
+.070915
+.017567
+.038300
+-.168100
+.255381
+-.229167
+.118074
+-.024960
+.046302
+-.202016
+.428407
+-.631195
+.748583
+-.772713
+.720448
+-.591525
+.362091
+-.024843
+-.362148
+.672078
+-.771438
+.608928
+-.262960
+-.093550
+.289234
+-.243699
+-.007063
+.352315
+-.670448
+.867862
+-.884964
+.696360
+-.327822
+-.123536
+.503926
+-.670200
+.574837
+-.302288
+.017522
+.141910
+-.147807
+.073994
+-.013877
+.001322
+-.004996
+-.009954
+.026152
+.010246
+-.115177
+.214633
+-.183674
+-.042166
+.380183
+-.627803
+.600550
+-.280470
+-.143763
+.385485
+-.248332
+-.235391
+.813230
+-1.165643
+1.104487
+-.687269
+.173081
+.148283
+-.138511
+-.118008
+.396519
+-.503708
+.413436
+-.271968
+.274566
+-.507163
+.868744
+-1.128811
+1.078542
+-.671577
+.061310
+.486147
+-.742509
+.635135
+-.264476
+-.175826
+.513007
+-.668057
+.654422
+-.525451
+.324576
+-.074659
+-.198231
+.441261
+-.581969
+.566599
+-.403204
+.176694
+-.019834
+.048714
+-.293368
+.662522
+-.971657
+1.032181
+-.759754
+.236682
+.318684
+-.666266
+.675872
+-.393258
+.001146
+.293707
+-.371095
+.240403
+-.005233
+-.210815
+.325300
+-.319000
+.224362
+-.099995
+.003516
+.032292
+-.014679
+-.013223
+.001238
+.066866
+-.146865
+.145610
+.029287
+-.408458
+.924839
+-1.427114
+1.740498
+-1.747219
+1.445775
+-.954084
+.448638
+-.069172
+-.153140
+.294384
+-.459299
+.679893
+-.869564
+.876460
+-.605584
+.121939
+.348366
+-.532747
+.274837
+.359146
+-1.100565
+1.615709
+-1.680785
+1.296033
+-.678212
+.139470
+.078868
+.073101
+-.443106
+.777577
+-.870455
+.668105
+-.270481
+-.158876
+.498936
+-.716728
+.834460
+-.869436
+.813680
+-.670290
+.496934
+-.392775
+.420935
+-.532726
+.575555
+-.400483
+-.006920
+.482425
+-.774335
+.711033
+-.321774
+-.179431
+.534639
+-.604973
+.442543
+-.229181
+.136609
+-.211356
+.360631
+-.435995
+.343353
+-.098563
+-.200525
+.448733
+-.590234
+.621538
+-.558143
+.409195
+-.184612
+-.083349
+.339937
+-.539593
+.680059
+-.799403
+.930490
+-1.053634
+1.096979
+-.993047
+.745376
+-.444653
+.215319
+-.134077
+.186983
+-.298142
+.400745
+-.485056
+.580506
+-.690521
+.746229
+-.635272
+.297169
+.190066
+-.615452
+.750363
+-.500152
+-.020325
+.548251
+-.829309
+.756920
+-.402429
+-.066435
+.501163
+-.835196
+1.066117
+-1.198020
+1.206440
+-1.055748
+.747356
+-.351585
+-.009124
+.217764
+-.223522
+.065681
+.152729
+-.323521
+.388340
+-.361337
+.311063
+-.313882
+.403874
+-.546397
+.654740
+-.647850
+.517007
+-.352092
+.295012
+-.439282
+.744414
+-1.036899
+1.111652
+-.870431
+.398232
+.080968
+-.341255
+.291388
+-.021371
+-.264450
+.376338
+-.246418
+-.043998
+.321476
+-.420640
+.271925
+.063934
+-.426109
+.631764
+-.563905
+.226765
+.257089
+-.703584
+.945902
+-.896707
+.571514
+-.074102
+-.441619
+.819542
+-.949294
+.803156
+-.446814
+.013441
+.353510
+-.564107
+.620245
+-.605750
+.630837
+-.759003
+.959988
+-1.122486
+1.126191
+-.928955
+.606910
+-.311066
+.165709
+-.182336
+.256508
+-.251878
+.105457
+.129072
+-.331825
+.415591
+-.390373
+.342951
+-.352977
+.417892
+-.449091
+.344524
+-.084223
+-.223595
+.387222
+-.249470
+-.191158
+.740277
+-1.093033
+1.011172
+-.485948
+-.228237
+.751486
+-.811597
+.420291
+.134449
+-.483632
+.430293
+-.083213
+-.226027
+.186309
+.262136
+-.876663
+1.279000
+-1.219244
+.744008
+-.148546
+-.245280
+.313825
+-.191454
+.130375
+-.280944
+.568238
+-.757510
+.649063
+-.244747
+-.244051
+.550004
+-.544353
+.324123
+-.128677
+.152991
+-.401004
+.689779
+-.797576
+.638121
+-.323840
+.069487
+-.015664
+.115259
+-.173864
+.010077
+.395052
+-.877912
+1.213757
+-1.279736
+1.132638
+-.947932
+.876115
+-.931194
+.993164
+-.914417
+.641436
+-.256756
+-.087100
+.283605
+-.342611
+.362175
+-.433000
+.561404
+-.673812
+.689946
+-.593900
+.444295
+-.325995
+.294232
+-.354241
+.474991
+-.607604
+.692014
+-.665706
+.491631
+-.194405
+-.132894
+.375682
+-.475239
+.474526
+-.484028
+.581606
+-.722370
+.740569
+-.461630
+-.146759
+.899690
+-1.468107
+1.565953
+-1.129136
+.361787
+.383580
+-.808807
+.820469
+-.539477
+.187641
+.052701
+-.112359
+.018670
+.165486
+-.385306
+.597915
+-.758881
+.824064
+-.771059
+.616155
+-.404417
+.179743
+.035119
+-.228192
+.370824
+-.409966
+.302449
+-.069583
+-.181194
+.304571
+-.215291
+-.036423
+.278766
+-.324528
+.097911
+.310845
+-.703960
+.905019
+-.865910
+.680203
+-.502599
+.439726
+-.490061
+.567723
+-.581451
+.502975
+-.373283
+.248463
+-.136624
+-.015087
+.267204
+-.611434
+.941873
+-1.111304
+1.040833
+-.797928
+.570915
+-.543104
+.752473
+-1.045668
+1.173360
+-.967630
+.473734
+.066213
+-.373730
+.324919
+-.031691
+-.247970
+.303301
+-.121344
+-.118774
+.199139
+-.039914
+-.241879
+.436671
+-.422246
+.270990
+-.196646
+.382862
+-.829041
+1.332323
+-1.616767
+1.512543
+-1.061145
+.484627
+-.051708
+-.068607
+-.117445
+.454015
+-.735580
+.819703
+-.691066
+.444740
+-.205116
+.036617
+.089911
+-.251240
+.483030
+-.723255
+.842200
+-.743666
+.458372
+-.146618
+-.005274
+-.076549
+.287380
+-.409597
+.269584
+.127662
+-.588550
+.858098
+-.794840
+.467469
+-.104028
+-.067218
+-.032096
+.294971
+-.523683
+.573475
+-.437434
+.222476
+-.055473
+.001443
+-.047650
+.142321
+-.238497
+.306643
+-.320302
+.244613
+-.049413
+-.258300
+.608811
+-.878425
+.942213
+-.751811
+.392036
+-.065691
+-.008689
+-.261624
+.756911
+-1.188936
+1.265841
+-.874455
+.153300
+.596374
+-1.096583
+1.242230
+-1.117449
+.888561
+-.671246
+.473024
+-.236842
+-.070071
+.402921
+-.661277
+.761471
+-.700306
+.563496
+-.474485
+.518795
+-.690405
+.891434
+-.983459
+.860744
+-.505842
+.001439
+.502710
+-.848051
+.924619
+-.708365
+.268152
+.258955
+-.717348
+.989525
+-1.035701
+.896841
+-.660111
+.408005
+-.181530
+-.022892
+.227326
+-.440874
+.647143
+-.816276
+.925352
+-.966727
+.939301
+-.839673
+.672778
+-.479614
+.351710
+-.400602
+.685654
+-1.148047
+1.610034
+-1.857965
+1.762601
+-1.356638
+.815543
+-.355329
+.117126
+-.110735
+.242131
+-.391365
+.480767
+-.492874
+.441771
+-.335818
+.168065
+.061005
+-.316845
+.534496
+-.657611
+.681654
+-.660236
+.661810
+-.708052
+.744476
+-.672048
+.420544
+-.011319
+-.437318
+.768514
+-.871421
+.737752
+-.457314
+.161120
+.046650
+-.127072
+.101825
+-.022713
+-.058883
+.110805
+-.130405
+.147075
+-.206727
+.332954
+-.486615
+.567085
+-.476994
+.214114
+.089358
+-.233273
+.088688
+.296904
+-.720349
+.962790
+-.941563
+.754264
+-.584741
+.554194
+-.640461
+.724472
+-.712126
+.620745
+-.557306
+.614203
+-.778090
+.930547
+-.936732
+.744301
+-.413656
+.065651
+.199211
+-.343624
+.378585
+-.324746
+.196423
+-.019139
+-.149136
+.229253
+-.165955
+-.029778
+.282195
+-.499831
+.632146
+-.684348
+.679186
+-.606615
+.418458
+-.084862
+-.335702
+.687892
+-.804837
+.635540
+-.310911
+.077829
+-.130298
+.455231
+-.813811
+.887685
+-.498740
+-.248934
+1.008287
+-1.389796
+1.192313
+-.514566
+-.318183
+.952042
+-1.190915
+1.059768
+-.731061
+.393613
+-.162610
+.073560
+-.125353
+.308350
+-.588258
+.877435
+-1.048344
+1.005193
+-.764243
+.465648
+-.286417
+.309557
+-.454453
+.533799
+-.399478
+.060673
+.325002
+-.580002
+.644807
+-.606913
+.600180
+-.669845
+.728677
+-.644097
+.373483
+-.019117
+-.250317
+.338164
+-.287081
+.212169
+-.167897
+.085066
+.151311
+-.550609
+.941172
+-1.062051
+.762529
+-.145081
+-.476586
+.782212
+-.656842
+.249517
+.155616
+-.344691
+.295568
+-.136616
+.000079
+.095419
+-.237689
+.508492
+-.874389
+1.182450
+-1.268380
+1.088002
+-.763361
+.504400
+-.464840
+.639135
+-.872172
+.968250
+-.817665
+.454015
+-.011875
+-.371629
+.632730
+-.782680
+.849326
+-.823194
+.663598
+-.361084
+-.004888
+.275107
+-.293523
+.007560
+.486317
+-.982744
+1.266756
+-1.215098
+.851422
+-.334400
+-.116360
+.327640
+-.262197
+.035446
+.162042
+-.192680
+.060609
+.107752
+-.177073
+.116724
+-.019191
+.009279
+-.124799
+.273726
+-.305850
+.139373
+.161277
+-.417713
+.453463
+-.206922
+-.234423
+.691418
+-.993444
+1.055885
+-.899505
+.619860
+-.337872
+.157089
+-.135402
+.270454
+-.501646
+.733377
+-.875048
+.878693
+-.752202
+.541268
+-.294908
+.040890
+.211533
+-.445449
+.609929
+-.621526
+.406885
+.030291
+-.563446
+.966766
+-1.019219
+.639194
+.039313
+-.716642
+1.089901
+-1.031475
+.663998
+-.276973
+.137029
+-.317900
+.661435
+-.890305
+.791851
+-.351454
+-.243595
+.719950
+-.871760
+.659634
+-.208807
+-.274301
+.607825
+-.704613
+.581421
+-.321089
+.022406
+.232352
+-.385074
+.397928
+-.255364
+-.024572
+.382910
+-.731046
+.980607
+-1.074587
+1.001360
+-.788969
+.492767
+-.189597
+-.025795
+.058859
+.144786
+-.555738
+1.049137
+-1.447578
+1.603358
+-1.472846
+1.135970
+-.749275
+.463096
+-.353451
+.403475
+-.534747
+.659363
+-.719375
+.697656
+-.606883
+.473984
+-.330319
+.204267
+-.108569
+.026102
+.089507
+-.283461
+.550317
+-.803257
+.902125
+-.741490
+.345269
+.109967
+-.383455
+.327542
+-.005404
+-.329413
+.396349
+-.089013
+-.432478
+.834355
+-.830031
+.374195
+.306219
+-.861493
+1.037835
+-.814166
+.377581
+.022306
+-.226964
+.233856
+-.153895
+.113070
+-.169285
+.287214
+-.371736
+.332003
+-.139319
+-.151842
+.431038
+-.593131
+.597557
+-.488296
+.361632
+-.302771
+.331357
+-.389380
+.378075
+-.223436
+-.066241
+.386614
+-.584550
+.549056
+-.291769
+-.043468
+.262464
+-.245317
+.023169
+.253411
+-.429438
+.449645
+-.370153
+.281378
+-.223802
+.174976
+-.107736
+.045356
+-.045464
+.123527
+-.197990
+.128607
+.166854
+-.613011
+.989542
+-1.065118
+.761551
+-.225937
+-.249028
+.406768
+-.186314
+-.250725
+.642160
+-.805600
+.745269
+-.609780
+.541405
+-.543831
+.480371
+-.207855
+-.264839
+.731648
+-.909195
+.639424
+-.022377
+-.625672
+.963907
+-.834862
+.346521
+.218888
+-.595083
+.685207
+-.580539
+.449935
+-.396456
+.392793
+-.337452
+.175059
+.026325
+-.110581
+-.044698
+.419936
+-.849121
+1.124263
+-1.127079
+.889107
+-.544827
+.226651
+.013295
+-.203850
+.394250
+-.591331
+.744691
+-.786263
+.687624
+-.487769
+.267096
+-.084754
+-.071941
+.279399
+-.604350
+1.012364
+-1.333787
+1.334639
+-.867412
+.007856
+.926348
+-1.512889
+1.453679
+-.759909
+-.227922
+1.010835
+-1.200345
+.727413
+.133779
+-.938308
+1.328308
+-1.215128
+.781881
+-.325932
+.062912
+-.023474
+.091642
+-.128436
+.076900
+.018543
+-.067613
+.004164
+.179010
+-.435637
+.686691
+-.839968
+.814434
+-.578476
+.186503
+.222032
+-.481274
+.490636
+-.278246
+-.013988
+.219472
+-.250847
+.146733
+-.030022
+.009373
+-.095946
+.195514
+-.182480
+.002016
+.274729
+-.485313
+.479224
+-.218704
+-.190811
+.560105
+-.724859
+.635567
+-.377068
+.111464
+.018104
+.033567
+-.196127
+.335061
+-.339568
+.192495
+.020247
+-.166046
+.151671
+.015045
+-.227620
+.349555
+-.309540
+.162419
+-.067427
+.183904
+-.544290
+.994287
+-1.258214
+1.105414
+-.512781
+-.292026
+.947387
+-1.163802
+.883366
+-.290193
+-.323676
+.733622
+-.878723
+.831643
+-.692697
+.505702
+-.256139
+-.067059
+.415126
+-.681764
+.758482
+-.593933
+.215360
+.289564
+-.804384
+1.209608
+-1.407082
+1.352009
+-1.080977
+.707086
+-.367256
+.148420
+-.045573
+-.013275
+.093590
+-.191989
+.236783
+-.151495
+-.069763
+.336194
+-.506355
+.475406
+-.242769
+-.086033
+.364085
+-.489995
+.459174
+-.346941
+.240092
+-.169583
+.097919
+.027815
+-.201106
+.327834
+-.282027
+.013024
+.382400
+-.695537
+.740313
+-.490549
+.107082
+.179196
+-.244655
+.168422
+-.161486
+.376698
+-.750169
+1.009428
+-.859519
+.218120
+.675154
+-1.366834
+1.455390
+-.844802
+-.178929
+1.100174
+-1.463997
+1.129672
+-.337219
+-.449160
+.821012
+-.655778
+.157689
+.305069
+-.447720
+.230893
+.162324
+-.494502
+.646172
+-.664284
+.670772
+-.728930
+.788644
+-.749820
+.575722
+-.347326
+.209037
+-.255769
+.461245
+-.705551
+.868586
+-.902337
+.824559
+-.658582
+.396271
+-.032286
+-.363307
+.620879
+-.550466
+.086116
+.616069
+-1.220141
+1.387083
+-.975910
+.133783
+.785017
+-1.414489
+1.557650
+-1.247034
+.670975
+-.040498
+-.507270
+.921540
+-1.190074
+1.291157
+-1.188042
+.863710
+-.360717
+-.207620
+.684295
+-.919734
+.824049
+-.402092
+-.238186
+.908062
+-1.389655
+1.507044
+-1.194849
+.535104
+.261317
+-.930148
+1.259382
+-1.178954
+.789833
+-.314428
+-.011166
+.050171
+.175765
+-.513204
+.772225
+-.833676
+.706675
+-.507887
+.381589
+-.409835
+.561449
+-.705188
+.681696
+-.401421
+-.082686
+.576789
+-.837324
+.710067
+-.233516
+-.368341
+.809871
+-.909490
+.690235
+-.351120
+.133937
+-.177437
+.451589
+-.803329
+1.068877
+-1.170853
+1.137696
+-1.044785
+.932344
+-.769590
+.494463
+-.094502
+-.343630
+.666773
+-.753167
+.600818
+-.335124
+.128621
+-.095423
+.237342
+-.469463
+.689204
+-.831643
+.883745
+-.870956
+.840602
+-.846808
+.927018
+-1.072855
+1.219903
+-1.277897
+1.188638
+-.965568
+.678078
+-.392015
+.122417
+.151870
+-.419507
+.579636
+-.467194
+-.031593
+.848152
+-1.695624
+2.187110
+-2.057549
+1.348272
+-.415814
+-.264992
+.389833
+-.015146
+-.484332
+.669473
+-.332027
+-.369769
+1.026026
+-1.256339
+.959556
+-.362717
+-.154227
+.325276
+-.168101
+-.054618
+.044605
+.303716
+-.814368
+1.139555
+-.993307
+.351394
+.517767
+-1.213331
+1.444746
+-1.191508
+.675860
+-.182964
+-.127229
+.277431
+-.377500
+.479820
+-.521686
+.402366
+-.117559
+-.180628
+.266415
+-.010229
+-.500450
+.993316
+-1.183419
+.961815
+-.463365
+-.031085
+.279003
+-.210950
+-.069059
+.391392
+-.636121
+.771116
+-.809081
+.749206
+-.567484
+.261937
+.099722
+-.386936
+.476413
+-.336286
+.057593
+.196155
+-.287966
+.184497
+.041628
+-.277885
+.448742
+-.545330
+.595751
+-.616263
+.593280
+-.509675
+.382996
+-.272158
+.240902
+-.308958
+.434269
+-.543253
+.585373
+-.569275
+.554030
+-.604475
+.744250
+-.938293
+1.111965
+-1.189407
+1.125696
+-.919519
+.610492
+-.272209
+.002632
+.098273
+.028965
+-.356342
+.753257
+-1.032238
+1.044180
+-.766305
+.320216
+.097587
+-.326162
+.314898
+-.117923
+-.171154
+.481790
+-.779941
+1.040026
+-1.221360
+1.283151
+-1.224412
+1.102565
+-1.001008
+.966256
+-.969505
+.930157
+-.784441
+.541167
+-.278471
+.088025
+-.015863
+.044279
+-.117144
+.177575
+-.189493
+.142643
+-.055567
+-.021480
+.019122
+.113477
+-.365930
+.655560
+-.866139
+.912062
+-.779297
+.515970
+-.189766
+-.144137
+.438582
+-.630578
+.638855
+-.404566
+-.049005
+.590246
+-1.021726
+1.174153
+-.992085
+.553753
+-.015347
+-.476902
+.846340
+-1.085275
+1.211051
+-1.224058
+1.104234
+-.846879
+.506093
+-.204618
+.088955
+-.246220
+.631359
+-1.059688
+1.286871
+-1.141934
+.636640
+.022161
+-.533975
+.664743
+-.371694
+-.179002
+.706461
+-.960641
+.837169
+-.408417
+-.129407
+.553151
+-.706279
+.556191
+-.200242
+-.181405
+.412464
+-.410113
+.226056
+-.004905
+-.121139
+.129506
+-.120357
+.228260
+-.496409
+.814935
+-.980887
+.845154
+-.439691
+-.014921
+.238550
+-.073756
+-.405177
+.934806
+-1.227905
+1.145427
+-.757620
+.263865
+.154446
+-.432394
+.608382
+-.732045
+.785249
+-.685955
+.368836
+.127535
+-.642053
+.963621
+-.950820
+.619988
+-.141106
+-.259774
+.431092
+-.375327
+.227319
+-.150504
+.227000
+-.416205
+.602159
+-.684280
+.641358
+-.529075
+.425140
+-.369763
+.342283
+-.283140
+.141029
+.083571
+-.321971
+.458608
+-.386135
+.071950
+.400551
+-.849407
+1.073958
+-.958939
+.540657
+.010166
+-.482752
+.739708
+-.778510
+.705399
+-.645102
+.651989
+-.684751
+.660031
+-.542469
+.398286
+-.363567
+.542237
+-.909472
+1.301592
+-1.512373
+1.430282
+-1.113029
+.740626
+-.482469
+.382311
+-.348903
+.255528
+-.066630
+-.110694
+.095619
+.221139
+-.758705
+1.246790
+-1.364718
+.944984
+-.112956
+-.742175
+1.172308
+-.941983
+.195625
+.602958
+-.943506
+.591939
+.249761
+-1.063995
+1.348015
+-.935515
+.091753
+.675347
+-.947476
+.640902
+-.013962
+-.534505
+.713950
+-.477733
+-.005841
+.484684
+-.757391
+.748989
+-.520414
+.227066
+-.042952
+.072088
+-.286913
+.536759
+-.634256
+.470854
+-.083193
+-.376934
+.745219
+-.941688
+.992431
+-.968810
+.903750
+-.758753
+.469817
+-.031890
+-.454152
+.819227
+-.926455
+.759096
+-.429205
+.104477
+.085948
+-.097911
+-.046344
+.301251
+-.615571
+.918080
+-1.109855
+1.099537
+-.868276
+.508623
+-.190724
+.067247
+-.180891
+.440653
+-.682578
+.772529
+-.683824
+.504984
+-.378356
+.409624
+-.601366
+.849079
+-1.002809
+.959201
+-.727488
+.427384
+-.218573
+.205987
+-.378639
+.615956
+-.753525
+.669840
+-.351212
+-.092963
+.470941
+-.590684
+.351296
+.197342
+-.859314
+1.367400
+-1.498803
+1.178901
+-.521519
+-.217375
+.752205
+-.892227
+.615601
+-.058798
+-.566301
+1.077088
+-1.389363
+1.519789
+-1.533418
+1.479216
+-1.359508
+1.150741
+-.852784
+.519502
+-.237259
+.062584
+.028870
+-.131956
+.338513
+-.655715
+.984118
+-1.177628
+1.138831
+-.872905
+.461222
+.012002
+-.505756
+.998153
+-1.424154
+1.652670
+-1.548512
+1.080539
+-.382850
+-.294111
+.715080
+-.778713
+.544222
+-.165111
+-.204948
+.469266
+-.594970
+.596726
+-.522035
+.435169
+-.387595
+.383914
+-.373867
+.289402
+-.106203
+-.120503
+.280578
+-.280081
+.105703
+.165614
+-.414553
+.544591
+-.518163
+.351120
+-.090199
+-.195994
+.411188
+-.440016
+.197879
+.292668
+-.857448
+1.217045
+-1.127830
+.544609
+.306559
+-1.017252
+1.218085
+-.804551
+.016142
+.698628
+-.957434
+.681463
+-.132834
+-.275750
+.267230
+.116471
+-.556781
+.687719
+-.347016
+-.319119
+.955100
+-1.219369
+.982905
+-.386972
+-.258202
+.656117
+-.674620
+.384358
+.017924
+-.336668
+.471963
+-.434919
+.298375
+-.134468
+-.017895
+.150417
+-.268541
+.379834
+-.487828
+.584696
+-.645996
+.640303
+-.556975
+.431989
+-.342569
+.360580
+-.491253
+.644830
+-.672915
+.458256
+-.004891
+-.532464
+.909511
+-.918381
+.508095
+.174444
+-.852971
+1.262977
+-1.283098
+.981105
+-.555103
+.214436
+-.076333
+.133017
+-.293571
+.459123
+-.578089
+.652571
+-.706192
+.748578
+-.767012
+.745213
+-.681711
+.582050
+-.431146
+.183677
+.196343
+-.664901
+1.062480
+-1.173181
+.865185
+-.217261
+-.479900
+.878112
+-.790915
+.323402
+.189893
+-.403618
+.185474
+.312708
+-.781616
+.978777
+-.882949
+.671595
+-.554448
+.602594
+-.705554
+.679627
+-.430639
+.039356
+.292221
+-.383965
+.199260
+.138043
+-.429855
+.522440
+-.379190
+.075996
+.257599
+-.504003
+.596547
+-.527501
+.338700
+-.105386
+-.087240
+.176908
+-.156807
+.084569
+-.052066
+.127173
+-.306717
+.517767
+-.669264
+.714374
+-.673416
+.600186
+-.523129
+.415021
+-.220157
+-.081489
+.427256
+-.685573
+.728611
+-.516712
+.135937
+.239949
+-.441226
+.390543
+-.134354
+-.196638
+.466107
+-.597411
+.590696
+-.494481
+.362705
+-.228291
+.103231
+.006882
+-.091209
+.133030
+-.117004
+.037794
+.093914
+-.248816
+.383068
+-.452328
+.433986
+-.345821
+.245902
+-.206767
+.274816
+-.438039
+.623019
+-.726975
+.671974
+-.455633
+.170340
+.027633
+.005590
+-.313641
+.792480
+-1.222448
+1.374395
+-1.134694
+.574730
+.081104
+-.574611
+.753638
+-.652267
+.462885
+-.413284
+.619064
+-1.004308
+1.348361
+-1.435006
+1.202971
+-.785351
+.404459
+-.202938
+.150220
+-.103319
+-.031795
+.185307
+-.166074
+-.165676
+.743386
+-1.298459
+1.534629
+-1.340040
+.869760
+-.433163
+.271194
+-.389714
+.566987
+-.523013
+.125250
+.512131
+-1.097710
+1.347696
+-1.160165
+.666990
+-.135977
+-.205654
+.308088
+-.308717
+.415242
+-.746378
+1.238170
+-1.675673
+1.824798
+-1.577789
+1.022524
+-.395544
+-.051676
+.195515
+-.108728
+.011249
+-.126561
+.526768
+-1.064987
+1.447003
+-1.407959
+.886752
+-.083960
+-.641763
+.979358
+-.844802
+.419599
+-.024861
+-.085804
+-.120933
+.455371
+-.645176
+.517666
+-.102240
+-.404721
+.771930
+-.861522
+.672903
+-.297177
+-.156068
+.594395
+-.930982
+1.072554
+-.953386
+.603035
+-.179388
+-.092401
+.056950
+.255301
+-.630932
+.806306
+-.636816
+.179102
+.366723
+-.797466
+1.017779
+-1.050460
+.967356
+-.820502
+.631013
+-.424967
+.259557
+-.201311
+.275473
+-.438430
+.603536
+-.697820
+.699874
+-.631016
+.520163
+-.384457
+.243632
+-.142331
+.141261
+-.269827
+.480797
+-.658466
+.689624
+-.547587
+.318433
+-.141698
+.108603
+-.197935
+.299799
+-.306285
+.196430
+-.051603
+-.005523
+-.102212
+.357111
+-.664072
+.913615
+-1.041572
+1.046905
+-.965332
+.828645
+-.644908
+.412300
+-.148760
+-.093780
+.247661
+-.269971
+.175756
+-.038300
+-.046347
+.011751
+.139493
+-.331583
+.451699
+-.409019
+.186042
+.147044
+-.464101
+.644315
+-.628962
+.445148
+-.187609
+-.028076
+.117112
+-.059935
+-.093498
+.251884
+-.332596
+.310738
+-.238502
+.217012
+-.329658
+.575171
+-.847383
+.983215
+-.854891
+.448561
+.121661
+-.671055
+1.032291
+-1.118218
+.931563
+-.534997
+.016319
+.528208
+-.997560
+1.294585
+-1.348901
+1.143957
+-.731160
+.222488
+.234115
+-.490326
+.443336
+-.087539
+-.450617
+.933474
+-1.109870
+.856816
+-.278703
+-.320377
+.600219
+-.392581
+-.184795
+.792775
+-1.078590
+.891658
+-.367557
+-.170034
+.419394
+-.285533
+-.074787
+.368568
+-.361877
+.027602
+.447756
+-.797460
+.854092
+-.652135
+.386385
+-.263234
+.356589
+-.571508
+.732772
+-.721256
+.551333
+-.337750
+.191116
+-.133482
+.100760
+-.020266
+-.110220
+.212712
+-.196796
+.045362
+.156907
+-.279767
+.245301
+-.089101
+-.066183
+.106616
+-.018100
+-.099877
+.111920
+.042397
+-.292237
+.480326
+-.476043
+.267466
+.038760
+-.303746
+.453076
+-.506319
+.527063
+-.550350
+.554454
+-.491745
+.336695
+-.102712
+-.177327
+.471471
+-.741389
+.922324
+-.932410
+.727225
+-.359755
+-.019123
+.242438
+-.236658
+.068406
+.116297
+-.211929
+.230169
+-.269737
+.411203
+-.632897
+.818556
+-.842745
+.658198
+-.321148
+-.048441
+.329080
+-.443449
+.378552
+-.186632
+-.034900
+.189858
+-.241721
+.243057
+-.300854
+.489682
+-.775479
+1.016128
+-1.049015
+.804122
+-.356813
+-.119902
+.464739
+-.615523
+.614713
+-.542809
+.443619
+-.302211
+.084996
+.200063
+-.477742
+.636300
+-.592952
+.348453
+.006047
+-.335112
+.530783
+-.567323
+.505148
+-.441857
+.442728
+-.497977
+.536392
+-.483381
+.318797
+-.090035
+-.127046
+.284581
+-.387944
+.469767
+-.538374
+.550338
+-.436701
+.164894
+.215338
+-.582548
+.805996
+-.813474
+.617976
+-.294293
+-.063946
+.369873
+-.544877
+.521180
+-.269659
+-.156295
+.605494
+-.879584
+.838066
+-.491470
+.007104
+.392474
+-.577084
+.597030
+-.640121
+.879739
+-1.321149
+1.763558
+-1.917622
+1.605307
+-.902033
+.112808
+.412062
+-.499753
+.260543
+.000308
+-.002730
+-.313787
+.758592
+-1.037474
+.964641
+-.583793
+.119072
+.193622
+-.261680
+.166991
+-.066193
+.052666
+-.093591
+.085478
+.028234
+-.183966
+.235883
+-.076959
+-.256931
+.589113
+-.715029
+.542159
+-.151910
+-.260258
+.517093
+-.565195
+.481930
+-.389860
+.350917
+-.321095
+.196385
+.086565
+-.470610
+.781732
+-.822329
+.498922
+.100423
+-.736432
+1.144497
+-1.177553
+.874759
+-.416890
+.008950
+.224910
+-.271494
+.186376
+-.033402
+-.142627
+.303418
+-.397961
+.371256
+-.199713
+-.080380
+.384612
+-.630324
+.785291
+-.872267
+.924094
+-.930613
+.831938
+-.574432
+.186338
+.197824
+-.400846
+.318612
+-.002565
+-.359623
+.558760
+-.495273
+.232978
+.061189
+-.244282
+.294561
+-.306064
+.388200
+-.554701
+.698708
+-.682351
+.470628
+-.190903
+.051240
+-.168513
+.446486
+-.619252
+.447666
+.076257
+-.682754
+.986687
+-.746822
+.032943
+.819861
+-1.430199
+1.601105
+-1.406376
+1.093451
+-.894457
+.884043
+-.966489
+.973433
+-.786561
+.404715
+.070410
+-.500904
+.780784
+-.869650
+.785988
+-.578607
+.302014
+-.011123
+-.231001
+.353704
+-.304735
+.093983
+.178901
+-.349406
+.271373
+.082535
+-.571591
+.939897
+-.961386
+.596174
+-.049579
+-.328790
+.264182
+.244481
+-.893598
+1.256184
+-1.066328
+.408357
+.333678
+-.739943
+.644503
+-.239399
+-.081504
+.017250
+.429444
+-.975293
+1.279170
+-1.182942
+.790900
+-.349263
+.042600
+.127054
+-.297638
+.596982
+-1.016283
+1.403607
+-1.570078
+1.418879
+-1.003080
+.484550
+-.039302
+-.220412
+.268987
+-.147325
+-.065253
+.269418
+-.365012
+.286745
+-.047054
+-.248088
+.439217
+-.398620
+.109492
+.317009
+-.704642
+.917838
+-.942138
+.884728
+-.892227
+1.039486
+-1.266476
+1.412328
+-1.328201
+.990279
+-.526580
+.131144
+.075091
+-.131132
+.200092
+-.434227
+.842984
+-1.267725
+1.486807
+-1.375466
+1.001643
+-.584658
+.343675
+-.344882
+.458390
+-.457222
+.186782
+.318442
+-.854283
+1.184754
+-1.195496
+.954817
+-.649206
+.452203
+-.423712
+.500173
+-.563464
+.527689
+-.386045
+.199671
+-.047235
+-.029588
+.055340
+-.108244
+.267085
+-.541176
+.827947
+-.941077
+.715631
+-.137602
+-.592800
+1.131192
+-1.174501
+.654070
+.196114
+-.955824
+1.255439
+-.984026
+.338441
+.309441
+-.632625
+.518479
+-.097479
+-.363495
+.624071
+-.593194
+.351466
+-.072777
+-.099448
+.140831
+-.140958
+.210442
+-.373363
+.534693
+-.553950
+.366431
+-.047867
+-.235360
+.349883
+-.287930
+.154288
+-.067433
+.066396
+-.100643
+.099684
+-.049625
+.005946
+-.036481
+.152300
+-.290223
+.360407
+-.314305
+.174789
+-.008670
+-.126361
+.210641
+-.247277
+.229306
+-.132349
+-.051772
+.272765
+-.420103
+.381625
+-.126843
+-.250682
+.574596
+-.690730
+.564468
+-.299704
+.063945
+.027382
+.015773
+-.078001
+.033452
+.155994
+-.410697
+.588580
+-.581740
+.384892
+-.093447
+-.157950
+.269934
+-.221670
+.067310
+.101174
+-.200713
+.192863
+-.095752
+-.032531
+.130935
+-.171451
+.170920
+-.172133
+.211454
+-.299382
+.424887
+-.570083
+.714338
+-.823432
+.840847
+-.701415
+.368562
+.127648
+-.679308
+1.130396
+-1.337393
+1.232716
+-.858160
+.347636
+.136230
+-.477847
+.652308
+-.711247
+.725318
+-.729276
+.709936
+-.639349
+.516015
+-.372669
+.242367
+-.116681
+-.059282
+.341511
+-.723887
+1.112189
+-1.365362
+1.382046
+-1.170773
+.850665
+-.579469
+.460023
+-.490636
+.589295
+-.663962
+.671532
+-.625278
+.558579
+-.485813
+.393851
+-.262195
+.084371
+.128959
+-.358249
+.574983
+-.730152
+.753200
+-.583117
+.220894
+.238128
+-.629773
+.798572
+-.678981
+.329568
+.094666
+-.407475
+.460399
+-.197181
+-.313873
+.884317
+-1.264595
+1.251707
+-.796271
+.040467
+.747436
+-1.306888
+1.504764
+-1.372095
+1.050466
+-.697221
+.411153
+-.210804
+.058669
+.095863
+-.280922
+.486308
+-.668308
+.767736
+-.732954
+.542389
+-.224265
+-.132728
+.391526
+-.414068
+.134996
+.377008
+-.920700
+1.247958
+-1.197514
+.796021
+-.254103
+-.150464
+.234040
+-.009538
+-.335571
+.568644
+-.559178
+.345278
+-.082191
+-.079176
+.088590
+-.000591
+-.101137
+.182407
+-.268828
+.385890
+-.497759
+.516998
+-.386957
+.159729
+.016202
+-.005015
+-.200274
+.462733
+-.610737
+.579797
+-.460691
+.411156
+-.513520
+.709808
+-.870029
+.922348
+-.916211
+.956948
+-1.075711
+1.162487
+-1.034655
+.590207
+.080894
+-.721112
+1.051775
+-.939286
+.473218
+.083611
+-.433718
+.392823
+.024744
+-.619350
+1.111110
+-1.289300
+1.129395
+-.806238
+.582416
+-.630068
+.898781
+-1.126289
+.999208
+-.367387
+-.628527
+1.605617
+-2.139401
+1.996750
+-1.263662
+.298598
+.454790
+-.688092
+.367209
+.272162
+-.859981
+1.084494
+-.845896
+.296341
+.252938
+-.508119
+.356127
+.079175
+-.521746
+.717289
+-.585942
+.257143
+.031460
+-.097498
+-.071109
+.321014
+-.444796
+.317029
+.033511
+-.454206
+.770412
+-.887238
+.827870
+-.693835
+.586267
+-.548457
+.564912
+-.601539
+.640339
+-.675237
+.681466
+-.602296
+.382424
+-.029613
+-.350551
+.589170
+-.547959
+.213230
+.276604
+-.694714
+.845893
+-.671044
+.274075
+.142313
+-.390337
+.391499
+-.201118
+-.040947
+.195181
+-.192922
+.062268
+.093901
+-.151419
+.028397
+.265111
+-.616233
+.852375
+-.828803
+.518321
+-.046238
+-.363885
+.514360
+-.356118
+.029158
+.213892
+-.158454
+-.241917
+.839875
+-1.386529
+1.675712
+-1.645910
+1.383364
+-1.041906
+.745090
+-.533003
+.374406
+-.220202
+.056074
+.079228
+-.118485
+.016993
+.204222
+-.456256
+.630372
+-.668203
+.603083
+-.536246
+.559854
+-.682772
+.817790
+-.843184
+.693853
+-.413686
+.130638
+.027249
+-.014985
+-.102604
+.195808
+-.154525
+-.042193
+.313235
+-.525537
+.574774
+-.447899
+.229956
+-.053000
+.019497
+-.146202
+.358878
+-.535754
+.571925
+-.430484
+.157833
+.141846
+-.361504
+.449195
+-.436025
+.410583
+-.449008
+.546761
+-.607339
+.506665
+-.190934
+-.268058
+.708183
+-.979820
+1.037242
+-.948868
+.823617
+-.719664
+.613577
+-.453189
+.243409
+-.082397
+.104140
+-.364374
+.762621
+-1.075112
+1.090184
+-.751385
+.198962
+.326129
+-.644562
+.743272
+-.745451
+.778987
+-.857579
+.873957
+-.707063
+.348092
+.064266
+-.331643
+.335839
+-.118388
+-.159010
+.334057
+-.344509
+.238423
+-.105104
+-.000139
+.073667
+-.123613
+.127430
+-.037670
+-.164981
+.422228
+-.604359
+.579752
+-.303480
+-.136613
+.550844
+-.739749
+.594469
+-.150651
+-.429435
+.932541
+-1.188074
+1.138065
+-.856760
+.513395
+-.291600
+.296761
+-.494898
+.722755
+-.778978
+.556862
+-.139401
+-.218504
+.233280
+.214264
+-.964992
+1.640781
+-1.857863
+1.460081
+-.612814
+-.307140
+.944782
+-1.157259
+1.038857
+-.790173
+.551750
+-.329318
+.047578
+.334325
+-.747972
+1.037555
+-1.055065
+.756935
+-.238081
+-.312085
+.699024
+-.804461
+.620069
+-.227833
+-.247692
+.682453
+-.974944
+1.055697
+-.901550
+.555229
+-.127789
+-.239880
+.449830
+-.507389
+.516557
+-.600550
+.799818
+-1.027877
+1.127842
+-.994031
+.667679
+-.329002
+.183187
+-.316889
+.626423
+-.870309
+.816455
+-.392754
+-.251674
+.813412
+-.994219
+.664943
+.058310
+-.869546
+1.430908
+-1.543600
+1.234454
+-.711468
+.223828
+.079570
+-.204294
+.254835
+-.326349
+.432442
+-.519755
+.542803
+-.523013
+.534926
+-.632652
+.786894
+-.893795
+.851401
+-.639942
+.341836
+-.090868
+-.006272
+-.074786
+.265922
+-.434904
+.440552
+-.203348
+-.233902
+.698676
+-.964757
+.885095
+-.498159
+.023808
+.263771
+-.208369
+-.126142
+.492230
+-.609911
+.337297
+.240781
+-.854232
+1.193079
+-1.075493
+.546916
+.144598
+-.683314
+.853317
+-.640801
+.214307
+.194649
+-.426627
+.460295
+-.382039
+.300777
+-.276325
+.303614
+-.345064
+.372889
+-.388450
+.411513
+-.455174
+.507350
+-.531653
+.487423
+-.357281
+.164841
+.031137
+-.166289
+.207269
+-.170575
+.108812
+-.073227
+.080714
+-.111126
+.135690
+-.150214
+.181676
+-.260201
+.380314
+-.485962
+.495044
+-.348131
+.049684
+.323306
+-.648648
+.809093
+-.743639
+.478169
+-.119730
+-.187021
+.322484
+-.242859
+-.007397
+.325619
+-.604141
+.777607
+-.841810
+.838546
+-.817456
+.797615
+-.751928
+.626021
+-.381750
+.037902
+.320692
+-.575070
+.628339
+-.454626
+.114798
+.267323
+-.555997
+.659560
+-.569141
+.363781
+-.176682
+.132858
+-.283326
+.568650
+-.835875
+.909025
+-.683568
+.195386
+.380546
+-.812363
+.934285
+-.737562
+.367939
+-.027865
+-.150371
+.170267
+-.130245
+.114510
+-.109964
+.021591
+.225078
+-.583448
+.879760
+-.917621
+.615586
+-.070870
+-.499637
+.892624
+-1.023964
+.937423
+-.731520
+.480839
+-.216133
+-.037950
+.222935
+-.255791
+.085888
+.251259
+-.633418
+.909860
+-.976560
+.818335
+-.498936
+.119370
+.221914
+-.449744
+.519886
+-.426371
+.209149
+.049930
+-.252211
+.320225
+-.227686
+.005400
+.275529
+-.529254
+.678706
+-.677472
+.531128
+-.307718
+.118432
+-.063847
+.172314
+-.375330
+.546147
+-.580449
+.462220
+-.267175
+.103564
+-.035840
+.044634
+-.046052
+-.047637
+.265731
+-.551196
+.782445
+-.835595
+.656857
+-.303838
+-.073462
+.308997
+-.312407
+.118511
+.139630
+-.316982
+.342924
+-.248159
+.117080
+-.008131
+-.090506
+.232289
+-.435551
+.628396
+-.672003
+.455696
+.006084
+-.554153
+.967716
+-1.097051
+.954152
+-.697603
+.522232
+-.529701
+.667643
+-.776227
+.706216
+-.425355
+.040846
+.270332
+-.366619
+.208192
+.147153
+-.590115
+.997366
+-1.243461
+1.216857
+-.870687
+.288131
+.306380
+-.639853
+.551914
+-.112794
+-.402488
+.681055
+-.566757
+.144952
+.335952
+-.637701
+.671041
+-.513955
+.321762
+-.214422
+.220521
+-.296023
+.377575
+-.421692
+.411746
+-.348244
+.243389
+-.124209
+.033544
+-.019568
+.115058
+-.316436
+.574101
+-.802086
+.908983
+-.840132
+.609396
+-.298232
+.018068
+.142071
+-.150074
+.029760
+.165555
+-.379917
+.566331
+-.687132
+.716606
+-.650911
+.516882
+-.367873
+.264311
+-.248535
+.326752
+-.466381
+.608808
+-.692154
+.674820
+-.550481
+.347511
+-.113927
+-.103560
+.275590
+-.395282
+.473057
+-.524354
+.553172
+-.537018
+.425155
+-.163046
+-.259030
+.761647
+-1.179476
+1.333161
+-1.138974
+.681183
+-.183242
+-.118400
+.116834
+.107203
+-.353329
+.444880
+-.343687
+.159539
+-.057649
+.137452
+-.366759
+.608072
+-.710526
+.604663
+-.344775
+.080877
+.019002
+.144641
+-.546675
+1.037451
+-1.404012
+1.471127
+-1.195478
+.698002
+-.206430
+-.065662
+.032185
+.229213
+-.535098
+.704106
+-.646425
+.390909
+-.050467
+-.243816
+.404742
+-.420386
+.340957
+-.227560
+.096254
+.096738
+-.406518
+.820454
+-1.220350
+1.436267
+-1.365937
+1.065628
+-.726501
+.541861
+-.566992
+.688989
+-.735401
+.632408
+-.477465
+.461499
+-.700276
+1.110424
+-1.432276
+1.388648
+-.869403
+.014048
+.862434
+-1.450600
+1.616216
+-1.452546
+1.189332
+-1.028876
+1.025791
+-1.089695
+1.093555
+-.990279
+.839470
+-.729127
+.672301
+-.581552
+.352223
+.017972
+-.387828
+.559881
+-.432555
+.090784
+.244417
+-.369685
+.234436
+.044443
+-.287027
+.379873
+-.330111
+.219072
+-.113922
+.017323
+.113027
+-.305826
+.535143
+-.727395
+.805284
+-.733058
+.534872
+-.277296
+.027632
+.188655
+-.403848
+.678984
+-1.039957
+1.421427
+-1.671444
+1.634510
+-1.267754
+.702714
+-.189614
+-.055417
+-.002393
+.186632
+-.230580
+-.030640
+.534529
+-1.026074
+1.231405
+-1.047358
+.614039
+-.223272
+.131204
+-.404459
+.894468
+-1.341512
+1.528298
+-1.387611
+1.014453
+-.595170
+.303376
+-.215460
+.280859
+-.359221
+.307483
+-.071212
+-.276581
+.579311
+-.697689
+.597977
+-.365975
+.143438
+-.042910
+.105091
+-.315271
+.639773
+-1.034023
+1.416736
+-1.653901
+1.598419
+-1.180930
+.488725
+.239690
+-.724767
+.802950
+-.529638
+.154500
+.025297
+.152211
+-.609738
+1.075493
+-1.254724
+1.022357
+-.509961
+.022679
+.165122
+.002425
+-.327202
+.505762
+-.356694
+-.043532
+.421903
+-.520429
+.291301
+.077693
+-.322049
+.307307
+-.112292
+-.071774
+.125677
+-.100430
+.142820
+-.324594
+.544016
+-.603461
+.399729
+-.049123
+-.182087
+.097178
+.248947
+-.571615
+.577373
+-.207165
+-.298524
+.568933
+-.374967
+-.204482
+.841166
+-1.184376
+1.080637
+-.634959
+.095995
+.323911
+-.557059
+.661923
+-.727872
+.795273
+-.842871
+.826040
+-.718302
+.527507
+-.290193
+.058699
+.115425
+-.203594
+.219537
+-.217870
+.263906
+-.390638
+.572012
+-.730993
+.775896
+-.643662
+.329837
+.104444
+-.550534
+.890352
+-1.041957
+.992702
+-.802855
+.576521
+-.413117
+.361853
+-.399058
+.440078
+-.384513
+.178662
+.137904
+-.436093
+.562534
+-.433980
+.098361
+.286572
+-.549414
+.610054
+-.518414
+.403177
+-.376943
+.473719
+-.657581
+.876964
+-1.105673
+1.336597
+-1.547170
+1.681360
+-1.670842
+1.476417
+-1.115154
+.657933
+-.209290
+-.117419
+.233243
+-.120655
+-.127425
+.323795
+-.282915
+-.048757
+.527790
+-.886555
+.910360
+-.589894
+.127526
+.209692
+-.273495
+.113123
+.097228
+-.204798
+.175696
+-.081559
+.013918
+-.012168
+.057040
+-.111802
+.157049
+-.184987
+.168835
+-.050747
+-.224367
+.647802
+-1.111846
+1.445241
+-1.512484
+1.312294
+-.995712
+.774576
+-.774576
+.937295
+-1.048806
+.883187
+-.365283
+-.357716
+.984789
+-1.227870
+.976983
+-.368294
+-.283112
+.650112
+-.569186
+.126251
+.399308
+-.702544
+.633597
+-.280262
+-.096718
+.231313
+-.014654
+-.446176
+.899875
+-1.098797
+.931531
+-.469647
+-.083875
+.504933
+-.655393
+.536443
+-.268999
+.017788
+.098817
+-.065266
+-.036700
+.088016
+-.007403
+-.203520
+.467644
+-.681353
+.771676
+-.728284
+.595030
+-.429629
+.259264
+-.065897
+-.183628
+.482004
+-.749496
+.865215
+-.750372
+.439545
+-.072454
+-.199031
+.320031
+-.368848
+.489420
+-.773900
+1.186042
+-1.576903
+1.770854
+-1.657674
+1.239756
+-.625121
+-.016098
+.511305
+-.745067
+.699304
+-.452745
+.135618
+.134946
+-.297336
+.343422
+-.287571
+.144757
+.061235
+-.275421
+.412053
+-.395067
+.213829
+.054220
+-.280990
+.362717
+-.276385
+.076515
+.156723
+-.366908
+.527659
+-.613956
+.585606
+-.416017
+.146361
+.094049
+-.142553
+-.089627
+.534854
+-.982741
+1.195627
+-1.055119
+.638917
+-.171278
+-.122927
+.160367
+-.038110
+-.054832
+-.017120
+.245519
+-.505690
+.667780
+-.691126
+.625475
+-.532786
+.415468
+-.225160
+-.058255
+.362041
+-.545307
+.503789
+-.263781
+-.023322
+.188465
+-.165943
+.028079
+.089971
+-.105661
+.048592
+-.023624
+.120098
+-.344286
+.618832
+-.833962
+.904522
+-.801576
+.557607
+-.256141
+.006345
+.101411
+-.046310
+-.100771
+.213123
+-.189105
+.021132
+.203849
+-.374514
+.437262
+-.421039
+.388263
+-.361602
+.295241
+-.114432
+-.213976
+.639731
+-1.045596
+1.304044
+-1.334299
+1.132662
+-.772618
+.382147
+-.103820
+.043295
+-.220509
+.547175
+-.850092
+.941736
+-.713447
+.206881
+.381309
+-.780010
+.780516
+-.357012
+-.305537
+.902724
+-1.171598
+1.024748
+-.579731
+.076852
+.254265
+-.300720
+.099172
+.202155
+-.421933
+.430138
+-.208329
+-.139771
+.440010
+-.543947
+.416681
+-.157433
+-.066270
+.127663
+-.014575
+-.183159
+.355549
+-.452191
+.498269
+-.545128
+.609670
+-.658111
+.641331
+-.541378
+.385020
+-.218475
+.074925
+.033438
+-.098296
+.101429
+-.028166
+-.100052
+.209697
+-.206007
+.042020
+.224138
+-.439160
+.443854
+-.188898
+-.210058
+.531602
+-.593456
+.382227
+-.070690
+-.096585
+-.028289
+.390966
+-.763683
+.887599
+-.636121
+.099934
+.453705
+-.722728
+.535513
+.048561
+-.760520
+1.259585
+-1.315779
+.933882
+-.341910
+-.151277
+.339377
+-.223829
+-.024048
+.207055
+-.240687
+.186435
+-.167086
+.243384
+-.355624
+.372466
+-.200636
+-.135332
+.501878
+-.740503
+.761844
+-.589337
+.336104
+-.140904
+.101539
+-.233195
+.462682
+-.659324
+.693999
+-.505267
+.139813
+.260177
+-.524032
+.540824
+-.317748
+-.026415
+.327840
+-.462646
+.401880
+-.212667
+.015245
+.074611
+.006984
+-.247659
+.560969
+-.816356
+.892326
+-.734927
+.391619
+.004169
+-.297295
+.391789
+-.300962
+.134360
+-.028216
+.062496
+-.217330
+.395174
+-.490409
+.456864
+-.327521
+.176723
+-.057331
+-.038054
+.162636
+-.359218
+.605807
+-.806557
+.839977
+-.634548
+.221538
+.271379
+-.683395
+.901145
+-.907487
+.771602
+-.592055
+.433661
+-.299185
+.150165
+.044288
+-.269373
+.464524
+-.558450
+.511472
+-.336140
+.087031
+.169066
+-.381905
+.531412
+-.621019
+.655676
+-.619404
+.473427
+-.187967
+-.205553
+.584616
+-.770481
+.628047
+-.171833
+-.406113
+.827059
+-.890010
+.600228
+-.168913
+-.120550
+.088454
+.241413
+-.675830
+.980598
+-1.007804
+.746616
+-.292002
+-.219485
+.656070
+-.907797
+.896740
+-.600722
+.081773
+.512259
+-.994138
+1.217730
+-1.146697
+.868008
+-.540204
+.307900
+-.231947
+.270547
+-.314329
+.252040
+-.034348
+-.292838
+.603831
+-.757051
+.679520
+-.421137
+.134729
+.016475
+.035403
+-.222123
+.396987
+-.445702
+.360968
+-.224004
+.119024
+-.064002
+.019852
+.039233
+-.073452
+.005324
+.190575
+-.422067
+.512814
+-.324478
+-.126471
+.658585
+-1.041671
+1.155456
+-1.066871
+.961460
+-.979489
+1.086900
+-1.090440
+.795684
+-.189312
+-.503020
+.944868
+-.920598
+.498209
+.007272
+-.252429
+.105932
+.270892
+-.563529
+.552346
+-.273774
+-.028555
+.116223
+.043900
+-.253577
+.249248
+.074605
+-.562030
+.891661
+-.798578
+.258114
+.495378
+-1.117008
+1.355720
+-1.179661
+.759140
+-.344062
+.127849
+-.170680
+.398554
+-.651781
+.754965
+-.594040
+.182700
+.319980
+-.677034
+.710496
+-.422204
+-.002264
+.327419
+-.441637
+.424541
+-.445023
+.579341
+-.719497
+.666555
+-.332918
+-.133014
+.427730
+-.326624
+-.123113
+.619347
+-.827241
+.629910
+-.208288
+-.107783
+.090542
+.233688
+-.640503
+.906602
+-.978470
+.978288
+-1.061718
+1.265996
+-1.482101
+1.565241
+-1.473520
+1.304885
+-1.200482
+1.205185
+-1.213799
+1.053697
+-.634354
+.037883
+.524041
+-.850340
+.876708
+-.695770
+.469290
+-.313706
+.249139
+-.236359
+.246680
+-.288525
+.368207
+-.438442
+.408312
+-.226764
+-.034406
+.193474
+-.085309
+-.290974
+.733622
+-.957583
+.788081
+-.278800
+-.334271
+.798268
+-.993703
+.962447
+-.817522
+.632116
+-.405773
+.122327
+.172236
+-.357895
+.317319
+-.041198
+-.328212
+.561312
+-.476237
+.053680
+.547557
+-1.083683
+1.364578
+-1.347118
+1.129428
+-.862428
+.649262
+-.502608
+.378910
+-.248291
+.135653
+-.098563
+.164891
+-.288808
+.368916
+-.318597
+.131077
+.116784
+-.327717
+.460921
+-.555419
+.677213
+-.835676
+.945482
+-.874905
+.549142
+-.028840
+-.499324
+.818356
+-.799350
+.466399
+.028380
+-.496263
+.808330
+-.939018
+.940395
+-.878875
+.788224
+-.671473
+.536699
+-.419069
+.356184
+-.334489
+.264074
+-.024095
+-.440975
+1.048106
+-1.593150
+1.859231
+-1.743845
+1.315218
+-.761191
+.272920
+.053093
+-.233589
+.341162
+-.426890
+.483304
+-.468053
+.359024
+-.190154
+.036595
+.038943
+-.034178
+.007452
+-.027085
+.109639
+-.199945
+.212378
+-.100733
+-.101669
+.304064
+-.420228
+.416458
+-.311238
+.141028
+.065558
+-.281777
+.461812
+-.540180
+.463549
+-.231805
+-.087217
+.382248
+-.545316
+.511490
+-.276672
+-.105287
+.537933
+-.906507
+1.109792
+-1.092792
+.865662
+-.497482
+.085556
+.284444
+-.566441
+.757054
+-.876502
+.941825
+-.948820
+.871531
+-.679231
+.363936
+.034040
+-.419689
+.671911
+-.704964
+.531099
+-.275428
+.114800
+-.168253
+.415054
+-.708425
+.883062
+-.876434
+.766800
+-.696041
+.741046
+-.841571
+.846957
+-.646672
+.279433
+.070237
+-.193319
+.009838
+.359680
+-.662567
+.679836
+-.375691
+-.073140
+.388450
+-.364726
+-.009489
+.556158
+-1.022104
+1.219751
+-1.107271
+.775378
+-.371155
+.019761
+.211905
+-.306204
+.269216
+-.118573
+-.109494
+.352503
+-.533480
+.592335
+-.513439
+.326323
+-.078696
+-.193374
+.470819
+-.727968
+.904608
+-.907490
+.654749
+-.142537
+-.512644
+1.096672
+-1.389518
+1.280702
+-.835753
+.263363
+.204089
+-.440993
+.481709
+-.462536
+.499559
+-.596201
+.648553
+-.539852
+.246524
+.128942
+-.424118
+.529015
+-.454241
+.300243
+-.155831
+.016846
+.197908
+-.541453
+.937810
+-1.187136
+1.093409
+-.623064
+-.034501
+.562736
+-.708124
+.429095
+.098163
+-.611649
+.931981
+-1.050386
+1.087895
+-1.171235
+1.323277
+-1.445542
+1.399649
+-1.124176
+.699236
+-.307701
+.113617
+-.140039
+.235917
+-.167384
+-.217795
+.862059
+-1.500884
+1.807121
+-1.589761
+.918980
+-.096824
+-.507306
+.654183
+-.350303
+-.176186
+.614784
+-.743704
+.540249
+-.173538
+-.112935
+.159110
+.011894
+-.218817
+.257893
+-.053950
+-.283478
+.540964
+-.555065
+.319223
+.034843
+-.354002
+.573219
+-.727711
+.870339
+-.982553
+.967815
+-.736229
+.302530
+.194175
+-.571055
+.716797
+-.648475
+.470118
+-.277540
+.094214
+.112520
+-.359328
+.592404
+-.705358
+.619425
+-.359412
+.058975
+.116921
+-.078936
+-.127938
+.356887
+-.459162
+.379968
+-.184788
+.002120
+.070746
+-.030215
+-.045479
+.067553
+-.009740
+-.072730
+.089127
+.015822
+-.221799
+.448391
+-.604320
+.627672
+-.496311
+.222820
+.143953
+-.513529
+.771873
+-.836168
+.715950
+-.523752
+.407856
+-.445988
+.580437
+-.650621
+.505535
+-.117186
+-.384424
+.779118
+-.883488
+.659056
+-.237047
+-.153784
+.312472
+-.170301
+-.185587
+.576786
+-.838513
+.898707
+-.791738
+.614871
+-.465841
+.398885
+-.414550
+.477292
+-.543497
+.581114
+-.569681
+.485897
+-.296316
+-.022267
+.439908
+-.844876
+1.071553
+-.989480
+.602055
+-.078091
+-.324347
+.406029
+-.151168
+-.258167
+.551580
+-.533194
+.193823
+.293129
+-.679925
+.784391
+-.580506
+.197937
+.156852
+-.308642
+.195122
+.112502
+-.451702
+.648464
+-.597247
+.309069
+.090769
+-.417203
+.514599
+-.342721
+.009963
+.276881
+-.329115
+.091279
+.321563
+-.692145
+.829166
+-.669801
+.296175
+.129787
+-.458393
+.616742
+-.626155
+.582786
+-.613959
+.814157
+-1.172657
+1.531821
+-1.627670
+1.227277
+-.301257
+-.887405
+1.870897
+-2.220026
+1.800018
+-.861099
+-.112366
+.700690
+-.791383
+.601369
+-.476473
+.626760
+-.990800
+1.311815
+-1.347309
+1.046684
+-.574751
+.183179
+-.037147
+.118769
+-.260685
+.272240
+-.069551
+-.268283
+.543614
+-.555273
+.221254
+.355576
+-.917463
+1.170099
+-.935983
+.262319
+.580944
+-1.221012
+1.360304
+-.918893
+.069141
+.847610
+-1.473523
+1.583371
+-1.170311
+.439101
+.288182
+-.715646
+.703820
+-.323274
+-.196012
+.590935
+-.695758
+.507267
+-.158287
+-.172640
+.355540
+-.354878
+.211243
+.013418
+-.277623
+.557085
+-.808118
+.946057
+-.878130
+.578917
+-.146655
+-.220206
+.327428
+-.104054
+-.347952
+.808449
+-1.058382
+.984082
+-.609479
+.058049
+.509106
+-.936502
+1.095704
+-.913502
+.422082
+.201207
+-.667387
+.710621
+-.263321
+-.455571
+1.035126
+-1.117521
+.632867
+.150632
+-.806551
+1.031019
+-.818455
+.414297
+-.102945
+.008983
+-.056771
+.089069
+-.019309
+-.113983
+.217791
+-.255188
+.286005
+-.402933
+.626995
+-.861782
+.953655
+-.811340
+.486332
+-.144919
+-.048147
+.041884
+.083257
+-.202329
+.257419
+-.292462
+.379765
+-.510390
+.561195
+-.387687
+-.028018
+.510429
+-.785625
+.681058
+-.271609
+-.157960
+.318105
+-.130196
+-.219811
+.433587
+-.334605
+-.004690
+.339747
+-.460473
+.350524
+-.172243
+.104460
+-.181969
+.272314
+-.198216
+-.108156
+.548505
+-.934830
+1.123622
+-1.099039
+.952126
+-.791189
+.661101
+-.527305
+.323765
+-.021756
+-.329848
+.617470
+-.720794
+.582059
+-.246050
+-.154919
+.464873
+-.579475
+.485748
+-.243311
+-.072448
+.415975
+-.766311
+1.079204
+-1.250098
+1.144181
+-.696813
+.017003
+.603315
+-.820359
+.451541
+.372532
+-1.243583
+1.704625
+-1.531255
+.869251
+-.124495
+-.320284
+.356580
+-.188065
+.136267
+-.369924
+.766723
+-1.008948
+.834513
+-.249024
+-.461719
+.927534
+-.950728
+.634813
+-.293613
+.212864
+-.442772
+.770302
+-.883739
+.602475
+-.005494
+-.626658
+1.005103
+-1.019210
+.788379
+-.551950
+.483825
+-.568173
+.624304
+-.459278
+.031740
+.497521
+-.869167
+.906483
+-.638983
+.277763
+-.066116
+.121226
+-.381256
+.681520
+-.883193
+.949771
+-.926652
+.867838
+-.789031
+.684491
+-.572566
+.507171
+-.534037
+.636083
+-.731467
+.737994
+-.647131
+.531927
+-.470163
+.448370
+-.342691
+.014691
+.542496
+-1.130957
+1.429007
+-1.192116
+.438731
+.517332
+-1.226123
+1.358262
+-.896331
+.140865
+.470023
+-.613148
+.253723
+.355814
+-.840403
+.926637
+-.594875
+.073878
+.312377
+-.348485
+.055062
+.336602
+-.540264
+.395568
+.041262
+-.543819
+.853344
+-.812762
+.424335
+.176138
+-.785246
+1.195120
+-1.244107
+.868893
+-.155246
+-.649769
+1.208526
+-1.242858
+.689290
+.244410
+-1.173369
+1.731083
+-1.745306
+1.290772
+-.605724
+-.052815
+.519046
+-.745964
+.767870
+-.645483
+.430818
+-.161104
+-.127059
+.380597
+-.527620
+.502152
+-.289377
+-.039187
+.337914
+-.456471
+.330242
+-.027189
+-.290929
+.473653
+-.479653
+.393568
+-.348447
+.414711
+-.545381
+.622697
+-.567896
+.420449
+-.314350
+.363096
+-.544696
+.686849
+-.578047
+.129176
+.536529
+-1.140491
+1.418834
+-1.286731
+.882010
+-.463821
+.244994
+-.275972
+.447836
+-.591036
+.587364
+-.422788
+.165198
+.097214
+-.308148
+.459049
+-.571055
+.662981
+-.727848
+.732754
+-.643570
+.459043
+-.228849
+.036626
+.046792
+-.010565
+-.082454
+.127794
+-.038358
+-.204346
+.534729
+-.829444
+.962831
+-.867647
+.574423
+-.207115
+-.069787
+.130045
+.052198
+-.393189
+.745952
+-.972223
+.999944
+-.844257
+.592818
+-.366365
+.266425
+-.326245
+.489369
+-.635665
+.647894
+-.479557
+.178348
+.148727
+-.398176
+.513335
+-.485176
+.327771
+-.061757
+-.278905
+.633779
+-.921945
+1.072894
+-1.060743
+.914116
+-.694059
+.457597
+-.233314
+.022595
+.178319
+-.352211
+.448710
+-.398232
+.153124
+.262419
+-.728057
+1.059735
+-1.096395
+.793857
+-.262133
+-.284287
+.633111
+-.669559
+.408730
+.035367
+-.506927
+.858414
+-.987024
+.864309
+-.551732
+.182300
+.097889
+-.201232
+.137938
+.002279
+-.110462
+.118194
+-.023187
+-.123967
+.253261
+-.307602
+.263479
+-.139076
+-.008854
+.101321
+-.068647
+-.109004
+.372639
+-.595232
+.644610
+-.471686
+.162581
+.098761
+-.149194
+-.033140
+.303418
+-.451022
+.356789
+-.085310
+-.160291
+.185205
+.062208
+-.464062
+.820413
+-.973511
+.881584
+-.610764
+.275749
+.021457
+-.227232
+.344375
+-.417161
+.495202
+-.587912
+.639433
+-.555100
+.276615
+.143326
+-.531277
+.673729
+-.445252
+-.100045
+.739210
+-1.191064
+1.260005
+-.928353
+.348637
+.250975
+-.687648
+.901270
+-.949685
+.933834
+-.909579
+.851657
+-.697626
+.437545
+-.170975
+.068988
+-.251196
+.665536
+-1.075466
+1.188262
+-.849961
+.169127
+.527993
+-.889455
+.748530
+-.213571
+-.413668
+.822740
+-.856372
+.561795
+-.130217
+-.213025
+.302866
+-.085286
+-.372803
+.907520
+-1.315853
+1.439379
+-1.242903
+.841592
+-.447371
+.252242
+-.313554
+.516181
+-.644911
+.528422
+-.163684
+-.264492
+.487682
+-.318782
+-.225725
+.922100
+-1.455363
+1.585401
+-1.267924
+.665229
+-.045562
+-.367626
+.508748
+-.482162
+.473105
+-.619920
+.930330
+-1.288793
+1.538551
+-1.576051
+1.398451
+-1.086715
+.750336
+-.475283
+.300100
+-.217965
+.190153
+-.162971
+.091201
+.032036
+-.155600
+.187214
+-.053977
+-.226235
+.520181
+-.636640
+.440001
+.055834
+-.680229
+1.190468
+-1.389554
+1.206768
+-.710970
+.073905
+.485989
+-.767909
+.661288
+-.209154
+-.381136
+.815581
+-.861341
+.483399
+.123430
+-.641757
+.818774
+-.614421
+.214816
+.096311
+-.120493
+-.137275
+.485903
+-.679419
+.570360
+-.189817
+-.282898
+.627058
+-.693650
+.469197
+-.072251
+-.304491
+.482109
+-.383703
+.084720
+.211873
+-.281854
+.018323
+.486043
+-.979674
+1.202077
+-1.046812
+.625323
+-.187865
+-.040879
+-.002952
+.202690
+-.358503
+.326272
+-.105805
+-.169961
+.326123
+-.254237
+-.026582
+.385392
+-.656150
+.727959
+-.597697
+.357871
+-.130399
+-.011024
+.080330
+-.154221
+.299209
+-.502161
+.658362
+-.635913
+.378764
+.025061
+-.370243
+.453586
+-.212643
+-.214342
+.558635
+-.582852
+.228550
+.349624
+-.884624
+1.163539
+-1.149835
+.986309
+-.883521
+.969281
+-1.195463
+1.361892
+-1.246334
+.764112
+-.055391
+-.565404
+.779843
+-.455869
+-.263084
+1.030363
+-1.484619
+1.435325
+-.937468
+.229544
+.404798
+-.761292
+.770731
+-.487491
+.044140
+.399866
+-.705703
+.795892
+-.678304
+.438296
+-.196430
+.049091
+-.024415
+.077131
+-.123667
+.094169
+.029409
+-.209111
+.377917
+-.477057
+.478526
+-.381023
+.188175
+.106154
+-.503926
+.963091
+-1.364590
+1.529627
+-1.303895
+.671458
+.180658
+-.914068
+1.202941
+-.920753
+.227744
+.509192
+-.922536
+.846951
+-.391184
+-.158734
+.529293
+-.611905
+.486514
+-.322055
+.241644
+-.251004
+.268479
+-.217274
+.100400
+-.001002
+.012350
+-.153948
+.338891
+-.419489
+.282426
+.070242
+-.509383
+.846531
+-.939375
+.769587
+-.445807
+.134364
+.035481
+-.031243
+-.089888
+.239107
+-.356249
+.428729
+-.464241
+.452480
+-.358759
+.160440
+.107230
+-.345094
+.442898
+-.357316
+.153065
+.030364
+-.066149
+-.081000
+.338572
+-.577305
+.686924
+-.626825
+.431411
+-.181456
+-.036446
+.168298
+-.219357
+.253686
+-.354050
+.554191
+-.789219
+.913815
+-.794331
+.418181
+.063995
+-.407394
+.417096
+-.072653
+-.451854
+.887783
+-1.029272
+.849285
+-.504727
+.230367
+-.191427
+.388722
+-.674394
+.861904
+-.851463
+.685743
+-.504167
+.437116
+-.518306
+.672435
+-.775965
+.740089
+-.558438
+.295834
+-.037611
+-.158481
+.277468
+-.329989
+.328957
+-.285260
+.223102
+-.189490
+.232528
+-.354589
+.482311
+-.495828
+.314270
+.023850
+-.360634
+.518521
+-.433655
+.215646
+-.075375
+.167570
+-.469227
+.791291
+-.916151
+.754124
+-.398846
+.045539
+.155969
+-.195087
+.173997
+-.195248
+.265187
+-.294556
+.190864
+.040969
+-.278410
+.359948
+-.199387
+-.151140
+.530258
+-.757346
+.719047
+-.409212
+-.077331
+.577028
+-.905952
+.926824
+-.622280
+.131628
+.295665
+-.429813
+.203910
+.229554
+-.580920
+.598085
+-.218375
+-.401866
+.989510
+-1.309299
+1.270204
+-.935173
+.456945
+.002355
+-.325965
+.463704
+-.430609
+.290419
+-.126366
+.006522
+.039298
+-.017169
+-.053602
+.160581
+-.295321
+.430123
+-.500182
+.417856
+-.120792
+-.373101
+.943655
+-1.402293
+1.572662
+-1.378583
+.890215
+-.296440
+-.188431
+.432833
+-.443369
+.329753
+-.205747
+.103494
+.028538
+-.244132
+.509940
+-.696574
+.669750
+-.408807
+.047678
+.204486
+-.204151
+-.033954
+.358971
+-.592338
+.634068
+-.497241
+.269619
+-.050669
+-.092563
+.142127
+-.128093
+.112497
+-.152213
+.251781
+-.343129
+.325178
+-.147563
+-.126994
+.344828
+-.363963
+.158853
+.160668
+-.435256
+.577558
+-.629871
+.713482
+-.913141
+1.190346
+-1.393655
+1.359633
+-1.031874
+.513842
+-.016819
+-.263072
+.256614
+-.047203
+-.202463
+.364157
+-.412819
+.404855
+-.396122
+.377929
+-.288544
+.088214
+.172897
+-.359993
+.337258
+-.067939
+-.345794
+.715408
+-.874431
+.768311
+-.469382
+.116580
+.170363
+-.343326
+.420225
+-.442859
+.440537
+-.423408
+.394879
+-.357936
+.308395
+-.233829
+.133378
+-.041670
+.017559
+-.086059
+.181358
+-.164247
+-.066746
+.448683
+-.735559
+.642929
+-.070567
+-.769623
+1.443212
+-1.560892
+1.040860
+-.174584
+-.556573
+.787169
+-.483703
+-.070042
+.490892
+-.550940
+.293865
+.045680
+-.233733
+.190788
+-.011675
+-.133790
+.128250
+.024133
+-.213799
+.297240
+-.176097
+-.151448
+.584461
+-.962635
+1.146777
+-1.098634
+.908375
+-.738960
+.712395
+-.815012
+.898391
+-.788146
+.426413
+.061450
+-.436406
+.509520
+-.282784
+-.037288
+.166295
+.078322
+-.663518
+1.360015
+-1.869860
+1.976438
+-1.635079
+.974527
+-.230375
+-.349302
+.593614
+-.471266
+.104407
+.282763
+-.470816
+.359781
+-.025011
+-.326144
+.476482
+-.328624
+-.035533
+.400068
+-.538612
+.346634
+.091991
+-.545640
+.767393
+-.647683
+.292950
+.028837
+-.052656
+-.310267
+.906733
+-1.430884
+1.609149
+-1.356250
+.804545
+-.203457
+-.227116
+.391160
+-.318633
+.107345
+.136444
+-.327491
+.411412
+-.375459
+.259018
+-.142119
+.101485
+-.157588
+.254094
+-.291458
+.193728
+.038301
+-.322394
+.537370
+-.582911
+.423945
+-.103308
+-.275738
+.585620
+-.717381
+.620242
+-.328728
+-.034011
+.290151
+-.282528
+-.031659
+.524267
+-.934484
+1.008626
+-.667998
+.085750
+.401275
+-.504009
+.173853
+.363349
+-.760249
+.780173
+-.444647
+-.001927
+.274155
+-.238265
+-.016688
+.264381
+-.306997
+.098155
+.253099
+-.578810
+.763218
+-.789315
+.705474
+-.561595
+.375718
+-.151210
+-.087214
+.285969
+-.398223
+.429226
+-.440299
+.494197
+-.583489
+.611905
+-.463680
+.117642
+.289616
+-.521224
+.393759
+.082545
+-.686772
+1.111742
+-1.141540
+.758300
+-.118716
+-.558209
+1.096961
+-1.401595
+1.432762
+-1.182599
+.684763
+-.043792
+-.563794
+.943467
+-.968727
+.645039
+-.109222
+-.435047
+.808086
+-.924619
+.814485
+-.592025
+.393583
+-.312413
+.358747
+-.460405
+.501023
+-.376991
+.047098
+.444385
+-.978387
+1.400272
+-1.574877
+1.439623
+-1.034831
+.493768
+.009360
+-.332123
+.419787
+-.314466
+.116934
+.070132
+-.182699
+.204466
+-.153666
+.064870
+.025649
+-.091961
+.127847
+-.147236
+.172217
+-.215409
+.269918
+-.313501
+.321742
+-.281239
+.199589
+-.111662
+.076564
+-.154961
+.368720
+-.667622
+.935876
+-1.048594
+.946981
+-.679100
+.373685
+-.162579
+.104298
+-.157232
+.214000
+-.168993
+-.024124
+.334513
+-.678510
+.965278
+-1.135132
+1.170877
+-1.082560
+.885464
+-.593441
+.232527
+.143563
+-.461377
+.664090
+-.749364
+.771852
+-.799907
+.858527
+-.907231
+.874318
+-.719032
+.469531
+-.206978
+.013523
+.072839
+-.067091
+.014114
+.042529
+-.081310
+.108155
+-.147270
+.219686
+-.318755
+.400754
+-.405359
+.297958
+-.103232
+-.098477
+.212762
+-.182765
+.018886
+.205460
+-.382963
+.412962
+-.243480
+-.095656
+.487101
+-.764028
+.784227
+-.503115
+.000139
+.558370
+-.994925
+1.188495
+-1.103647
+.784480
+-.334608
+-.106292
+.396015
+-.438811
+.232599
+.119139
+-.450209
+.611074
+-.539131
+.281319
+.035451
+-.261537
+.281087
+-.053319
+-.365781
+.829774
+-1.147632
+1.165384
+-.850340
+.325509
+.180877
+-.455690
+.423903
+-.194841
+-.005026
+-.023078
+.319217
+-.734414
+1.023699
+-1.003068
+.666823
+-.189613
+-.184363
+.286858
+-.108992
+-.225451
+.563362
+-.817745
+.985161
+-1.085132
+1.089725
+-.920303
+.525755
+.025374
+-.533206
+.769369
+-.626417
+.194569
+.301123
+-.655614
+.805972
+-.828695
+.830314
+-.839100
+.792393
+-.619347
+.332933
+-.044431
+-.109877
+.064667
+.131462
+-.348554
+.449005
+-.352110
+.063684
+.328048
+-.683264
+.864160
+-.799609
+.529549
+-.194113
+-.039781
+.075635
+.054175
+-.211116
+.243477
+-.091083
+-.167631
+.361954
+-.345502
+.107517
+.202887
+-.369992
+.266627
+.041626
+-.329124
+.366309
+-.085947
+-.367048
+.739764
+-.847458
+.688202
+-.418044
+.220856
+-.181769
+.254405
+-.327500
+.320841
+-.234024
+.125238
+-.056767
+.056989
+-.116958
+.204939
+-.278406
+.294633
+-.231028
+.110428
+-.004224
+-.007703
+-.098023
+.250010
+-.313438
+.181952
+.131803
+-.477131
+.642655
+-.488842
+.050910
+.461293
+-.779214
+.742161
+-.406667
+.016910
+.155676
+-.000178
+-.350303
+.603855
+-.507660
+.020792
+.657262
+-1.215566
+1.422095
+-1.245541
+.839524
+-.420347
+.133754
+.004133
+-.071098
+.152303
+-.269983
+.372317
+-.379601
+.250200
+-.020538
+-.208383
+.331193
+-.306812
+.187243
+-.081438
+.075825
+-.169702
+.277518
+-.298384
+.196537
+-.024885
+-.127061
+.211512
+-.253686
+.307236
+-.379005
+.400813
+-.285034
+.019624
+.288044
+-.473889
+.450483
+-.303138
+.254798
+-.503505
+1.044711
+-1.622341
+1.869976
+-1.560600
+.787610
+.066129
+-.566301
+.510209
+-.052574
+-.415889
+.544916
+-.253675
+-.244619
+.620194
+-.659613
+.387881
+-.015852
+-.219260
+.196559
+.045557
+-.363719
+.604126
+-.679082
+.597101
+-.443893
+.326007
+-.302684
+.344480
+-.351624
+.230046
+.024023
+-.297229
+.420336
+-.280791
+-.094207
+.547628
+-.888940
+1.005118
+-.905961
+.679592
+-.408306
+.122334
+.173889
+-.442615
+.595504
+-.552177
+.327986
+-.062181
+-.058812
+-.066762
+.376946
+-.691662
+.850825
+-.833262
+.759495
+-.778767
+.935325
+-1.122269
+1.157447
+-.917236
+.425560
+.162110
+-.654618
+.922115
+-.931575
+.720308
+-.357156
+-.066906
+.426547
+-.575606
+.416473
+.008327
+-.484362
+.713995
+-.495005
+-.128507
+.863773
+-1.337098
+1.323233
+-.874961
+.262816
+.220628
+-.440242
+.455326
+-.411910
+.399979
+-.395410
+.316207
+-.121493
+-.142173
+.379813
+-.522804
+.565857
+-.539635
+.458691
+-.304178
+.060408
+.232462
+-.468279
+.529400
+-.371450
+.071703
+.202461
+-.291424
+.143756
+.149546
+-.411668
+.489381
+-.341413
+.048555
+.252989
+-.459293
+.542925
+-.533099
+.466080
+-.359275
+.228647
+-.119022
+.099798
+-.213356
+.416279
+-.572876
+.524762
+-.197860
+-.329151
+.850966
+-1.149361
+1.123869
+-.853517
+.545542
+-.402721
+.496695
+-.731458
+.919081
+-.911815
+.697337
+-.393714
+.153241
+-.049087
+.028989
+.029885
+-.206349
+.450370
+-.600636
+.500772
+-.130724
+-.351457
+.700634
+-.749230
+.525862
+-.238705
+.134691
+-.336501
+.770263
+-1.225584
+1.494648
+-1.489987
+1.269200
+-.968685
+.707903
+-.531269
+.413469
+-.305239
+.178207
+-.043445
+-.055462
+.064447
+.051362
+-.276475
+.529254
+-.684748
+.639686
+-.385357
+.031896
+.247605
+-.324284
+.197277
+.008385
+-.127287
+.058035
+.185825
+-.501732
+.764630
+-.879599
+.797529
+-.510951
+.056948
+.473245
+-.943959
+1.220872
+-1.233044
+1.006179
+-.640977
+.255097
+.065322
+-.276978
+.366729
+-.345451
+.255558
+-.167835
+.146827
+-.203967
+.286835
+-.328084
+.315214
+-.309572
+.383792
+-.529942
+.631728
+-.543161
+.215363
+.240436
+-.615962
+.746941
+-.616745
+.343717
+-.076939
+-.100842
+.186424
+-.197044
+.117551
+.083575
+-.387035
+.683603
+-.823512
+.729279
+-.475274
+.251541
+-.224634
+.403710
+-.627511
+.692539
+-.523421
+.244548
+-.088265
+.207503
+-.540404
+.836024
+-.826675
+.422145
+.214091
+-.758464
+.924801
+-.633561
+.048290
+.532321
+-.846754
+.797117
+-.464905
+.030631
+.330859
+-.512900
+.481161
+-.251377
+-.121481
+.537534
+-.857213
+.941622
+-.718344
+.231827
+.360395
+-.851001
+1.074212
+-.978235
+.644604
+-.246828
+-.031258
+.079424
+.092535
+-.369215
+.597942
+-.675338
+.603548
+-.482821
+.442844
+-.553717
+.774999
+-.980303
+1.045024
+-.934878
+.727199
+-.545187
+.457180
+-.425539
+.349943
+-.165946
+-.091533
+.319807
+-.445523
+.493592
+-.558963
+.703835
+-.877212
+.937149
+-.763539
+.365999
+.107190
+-.468279
+.616224
+-.588801
+.505023
+-.453854
+.425659
+-.340963
+.144320
+.125612
+-.356950
+.459290
+-.443372
+.405844
+-.427101
+.478255
+-.435473
+.204060
+.156009
+-.429438
+.394620
+-.010655
+-.517439
+.864592
+-.815444
+.421104
+.040263
+-.268743
+.156501
+.149311
+-.372907
+.321232
+-.020189
+-.317673
+.457579
+-.310103
+-.016849
+.306878
+-.388084
+.238694
+.018315
+-.210795
+.226866
+-.069226
+-.163699
+.340203
+-.358589
+.186123
+.129617
+-.473528
+.699871
+-.690092
+.413227
+.042550
+-.493288
+.734680
+-.635323
+.199527
+.431909
+-1.042356
+1.430196
+-1.487296
+1.231697
+-.784486
+.306929
+.068809
+-.283316
+.352607
+-.338566
+.309170
+-.308327
+.344274
+-.395469
+.429667
+-.427566
+.397928
+-.370034
+.363567
+-.357284
+.287183
+-.086920
+-.251955
+.645945
+-.945545
+1.012590
+-.802089
+.394972
+.039599
+-.328987
+.378830
+-.207807
+-.077498
+.346909
+-.511675
+.556498
+-.525418
+.473930
+-.419295
+.323822
+-.127332
+-.189216
+.556340
+-.829086
+.866065
+-.627252
+.218635
+.156573
+-.315033
+.201338
+.085303
+-.360443
+.468920
+-.369897
+.145084
+.062669
+-.136232
+.047301
+.132462
+-.273587
+.262715
+-.071417
+-.220450
+.466825
+-.544254
+.431822
+-.226026
+.076885
+-.089266
+.259597
+-.489459
+.658085
+-.694816
+.602833
+-.430559
+.227526
+-.022080
+-.170533
+.329443
+-.421707
+.413507
+-.288104
+.059042
+.225660
+-.488752
+.641248
+-.614364
+.396018
+-.049701
+-.303746
+.537754
+-.576292
+.420681
+-.133556
+-.203660
+.529412
+-.815850
+1.057783
+-1.251207
+1.378625
+-1.410152
+1.319838
+-1.107381
+.811024
+-.499494
+.243966
+-.085868
+.021536
+-.013634
+.019295
+-.013619
+-.006284
+.034355
+-.070265
+.122524
+-.199922
+.301504
+-.414843
+.522664
+-.609557
+.661390
+-.659482
+.581036
+-.414953
+.187352
+.026246
+-.125462
+.045406
+.183619
+-.428043
+.519075
+-.364166
+.025680
+.297319
+-.383750
+.129991
+.379002
+-.914208
+1.232439
+-1.209635
+.900081
+-.494263
+.206403
+-.156185
+.307710
+-.497542
+.536022
+-.323920
+-.085792
+.519818
+-.788894
+.794560
+-.569630
+.234052
+.090039
+-.338602
+.506137
+-.604275
+.625860
+-.545339
+.347871
+-.055644
+-.270452
+.550186
+-.706729
+.683728
+-.460831
+.070608
+.394775
+-.804500
+1.038243
+-1.036181
+.815677
+-.446701
+.014009
+.398366
+-.697272
+.780683
+-.581710
+.140021
+.365259
+-.679183
+.614981
+-.184991
+-.384638
+.780361
+-.789154
+.422002
+.105789
+-.514643
+.622474
+-.428439
+.083502
+.214575
+-.329801
+.243965
+-.045717
+-.127253
+.159529
+-.011944
+-.263800
+.556987
+-.760684
+.828234
+-.785398
+.690214
+-.574804
+.421474
+-.196139
+-.091012
+.357075
+-.484821
+.403082
+-.145127
+-.163470
+.379688
+-.424720
+.315846
+-.132826
+-.049114
+.207846
+-.371793
+.572810
+-.793025
+.949717
+-.934714
+.685424
+-.238333
+-.275543
+.694112
+-.906891
+.904355
+-.765754
+.598991
+-.475772
+.403055
+-.343311
+.260728
+-.154715
+.055467
+.009991
+-.046706
+.086337
+-.151632
+.226382
+-.262625
+.220795
+-.103136
+-.053266
+.216150
+-.387190
+.587239
+-.812097
+1.008039
+-1.100732
+1.056031
+-.913430
+.753075
+-.621446
+.485375
+-.265824
+-.069828
+.438624
+-.668895
+.619246
+-.302831
+-.086213
+.279175
+-.105011
+-.393088
+.979519
+-1.369916
+1.395819
+-1.084083
+.614027
+-.199517
+-.021200
+.031001
+.086841
+-.203516
+.202667
+-.028367
+-.283707
+.606841
+-.771256
+.651006
+-.243614
+-.315933
+.828275
+-1.145180
+1.242888
+-1.198002
+1.092145
+-.933897
+.671324
+-.283531
+-.139723
+.419692
+-.413877
+.148505
+.159790
+-.232522
+-.073002
+.643131
+-1.164588
+1.330693
+-1.053628
+.526187
+-.082336
+-.043508
+-.121032
+.323321
+-.290015
+-.063074
+.574673
+-.967097
+1.047083
+-.823146
+.468387
+-.184968
+.085494
+-.162772
+.334325
+-.502033
+.587149
+-.542746
+.360607
+-.072941
+-.261702
+.586935
+-.868819
+1.088956
+-1.220672
+1.220240
+-1.052740
+.733994
+-.347278
+.010938
+.185067
+-.227024
+.174992
+-.114511
+.100716
+-.134524
+.181463
+-.210437
+.216942
+-.213489
+.200834
+-.151833
+.028536
+.178057
+-.419856
+.604278
+-.645564
+.520789
+-.291205
+.073026
+.024481
+.043026
+-.230822
+.423638
+-.486928
+.331404
+.034114
+-.489375
+.848522
+-.956695
+.786450
+-.465922
+.203736
+-.150470
+.294424
+-.473391
+.496653
+-.283098
+-.090682
+.460769
+-.694583
+.756270
+-.677133
+.481787
+-.157521
+-.296450
+.791267
+-1.134521
+1.123109
+-.689174
+-.014637
+.670361
+-.967380
+.779059
+-.225254
+-.413254
+.858581
+-.963839
+.737022
+-.280149
+-.281668
+.826108
+-1.223408
+1.341679
+-1.097289
+.520125
+.230803
+-.932499
+1.403998
+-1.575410
+1.475505
+-1.168582
+.712234
+-.173115
+-.333556
+.650183
+-.654651
+.356872
+.075763
+-.404900
+.465961
+-.263857
+-.050779
+.299889
+-.395240
+.373009
+-.341621
+.404932
+-.620075
+.994484
+-1.483847
+1.970358
+-2.254605
+2.115260
+-1.441212
+.356464
+.774025
+-1.503301
+1.547304
+-.955216
+.081510
+.628736
+-.897285
+.741389
+-.400340
+.133900
+-.049873
+.077770
+-.080892
+-.004840
+.121050
+-.152303
+.035162
+.185896
+-.393479
+.480654
+-.410580
+.216472
+.037467
+-.291325
+.500862
+-.637317
+.692768
+-.687892
+.662353
+-.641987
+.605077
+-.482782
+.206391
+.225152
+-.707408
+1.058421
+-1.107754
+.799755
+-.246509
+-.312443
+.633695
+-.609136
+.331088
+-.032875
+-.061399
+-.122660
+.475111
+-.791419
+.915004
+-.830180
+.649575
+-.519448
+.516119
+-.598374
+.637466
+-.501932
+.148726
+.331324
+-.747350
+.913171
+-.765462
+.415111
+-.085737
+-.029844
+-.100291
+.323756
+-.406745
+.192101
+.295271
+-.863144
+1.269757
+-1.361743
+1.145534
+-.757081
+.362982
+-.064526
+-.134703
+.287444
+-.430466
+.543006
+-.567761
+.473015
+-.298762
+.143205
+-.095893
+.169213
+-.283389
+.319935
+-.206729
+-.026709
+.265453
+-.388257
+.354297
+-.233079
+.151548
+-.194940
+.336444
+-.453386
+.421101
+-.214554
+-.061663
+.241093
+-.214774
+.017200
+.184095
+-.195232
+-.066587
+.495428
+-.837998
+.839899
+-.409537
+-.307996
+1.002496
+-1.375009
+1.305657
+-.904501
+.417975
+-.061745
+-.103241
+.172810
+-.291097
+.520593
+-.788101
+.940713
+-.862214
+.560158
+-.164278
+-.153537
+.275633
+-.191993
+-.008699
+.192184
+-.244464
+.123627
+.122782
+-.386719
+.564873
+-.622083
+.607625
+-.609858
+.683967
+-.811239
+.920101
+-.944782
+.866932
+-.708809
+.496290
+-.238456
+-.052727
+.327071
+-.494651
+.479850
+-.295185
+.065672
+.036139
+.088239
+-.376168
+.629547
+-.648860
+.382102
+.026640
+-.332918
+.365906
+-.151349
+-.108120
+.180010
+.032278
+-.422675
+.756130
+-.826228
+.589426
+-.192129
+-.121510
+.162012
+.086544
+-.454733
+.694640
+-.640887
+.320380
+.066340
+-.282663
+.216032
+.053277
+-.320636
+.407111
+-.279976
+.062616
+.062086
+.021157
+-.288631
+.599688
+-.786415
+.748250
+-.497607
+.140535
+.183777
+-.365951
+.363945
+-.209950
+-.006947
+.176246
+-.214575
+.110841
+.061710
+-.189249
+.201494
+-.138376
+.136683
+-.326686
+.705724
+-1.091290
+1.210678
+-.882082
+.161972
+.655474
+-1.199224
+1.238239
+-.808413
+.171037
+.355308
+-.567529
+.450152
+-.129540
+-.227183
+.492019
+-.603673
+.561142
+-.412112
+.240303
+-.137205
+.154640
+-.263347
+.353442
+-.289898
+-.005070
+.493262
+-1.025242
+1.408713
+-1.502749
+1.283998
+-.847571
+.344843
+.099724
+-.437068
+.677291
+-.830314
+.860759
+-.703936
+.336581
+.157535
+-.592076
+.766639
+-.586079
+.127020
+.399290
+-.767611
+.865460
+-.744199
+.565094
+-.481426
+.538830
+-.659295
+.712612
+-.617494
+.398328
+-.161764
+.018854
+-.013955
+.107229
+-.211504
+.246738
+-.173925
+-.001797
+.242544
+-.485179
+.645698
+-.637257
+.411194
+-.003215
+-.453806
+.778084
+-.833935
+.616987
+-.266505
+-.014670
+.086201
+.042047
+-.223849
+.284065
+-.143128
+-.130813
+.376642
+-.455603
+.337714
+-.099213
+-.154444
+.367635
+-.551536
+.734790
+-.901541
+.975677
+-.865695
+.533817
+-.037620
+-.483724
+.869289
+-1.008862
+.891217
+-.604108
+.285753
+-.054518
+-.041275
+.024807
+.049241
+-.137226
+.216155
+-.260909
+.223657
+-.048396
+-.282960
+.711551
+-1.108454
+1.331265
+-1.296143
+1.020226
+-.611157
+.212662
+.063829
+-.188817
+.224181
+-.285679
+.472366
+-.795639
+1.150994
+-1.359794
+1.269176
+-.854497
+.255133
+.290216
+-.576563
+.549774
+-.328257
+.113577
+-.053268
+.152942
+-.295232
+.340295
+-.223509
+-.021339
+.313113
+-.584249
+.789726
+-.867957
+.719506
+-.260437
+-.471158
+1.253233
+-1.750957
+1.709049
+-1.139415
+.353943
+.207743
+-.252768
+-.176176
+.731535
+-.989206
+.715941
+.000174
+-.824842
+1.385221
+-1.465985
+1.085701
+-.442001
+-.209243
+.662198
+-.814461
+.668752
+-.307456
+-.138853
+.522917
+-.716684
+.652633
+-.357698
+-.044336
+.379369
+-.507499
+.401663
+-.169281
+-.005420
+-.031733
+.312344
+-.723458
+1.066844
+-1.162717
+.940502
+-.473585
+-.052524
+.420413
+-.474166
+.186762
+.328892
+-.872628
+1.248205
+-1.345258
+1.170487
+-.820997
+.428371
+-.111984
+-.042639
+-.008661
+.258769
+-.639027
+1.029108
+-1.300265
+1.376607
+-1.274350
+1.086604
+-.918133
+.814330
+-.737442
+.609837
+-.390784
+.123472
+.089304
+-.163196
+.098791
+.020503
+-.097237
+.095526
+-.059989
+.066869
+-.155102
+.296218
+-.420547
+.466691
+-.409224
+.250631
+-.001233
+-.322287
+.675777
+-.971821
+1.099841
+-.984112
+.644425
+-.210030
+-.137397
+.267102
+-.184600
+.036451
+-.020695
+.254307
+-.685120
+1.111438
+-1.302244
+1.141528
+-.702416
+.203506
+.121411
+-.153660
+-.061286
+.368201
+-.611512
+.721318
+-.724555
+.690175
+-.662883
+.637203
+-.581823
+.480857
+-.350944
+.223177
+-.114049
+.016644
+.081411
+-.176578
+.250509
+-.293817
+.325387
+-.381059
+.474956
+-.567881
+.577680
+-.434371
+.142621
+.198032
+-.439348
+.472380
+-.298524
+.031048
+.177083
+-.228643
+.131413
+.031257
+-.177321
+.282488
+-.372758
+.472559
+-.566954
+.616468
+-.604934
+.565231
+-.552036
+.585999
+-.625293
+.595113
+-.451580
+.225899
+-.013306
+-.082414
+.007923
+.211695
+-.482550
+.675675
+-.671032
+.404095
+.095060
+-.690697
+1.179437
+-1.375257
+1.203469
+-.747925
+.216811
+.157175
+-.223976
+-.029100
+.495810
+-1.015821
+1.440267
+-1.670642
+1.672353
+-1.476572
+1.171211
+-.869927
+.657560
+-.539873
+.440135
+-.259895
+-.031386
+.349514
+-.540171
+.493384
+-.242362
+-.038892
+.150304
+-.013545
+-.263168
+.461180
+-.417108
+.150400
+.150751
+-.278061
+.169430
+.041005
+-.130525
+-.031596
+.372937
+-.662347
+.675976
+-.361650
+-.115493
+.475072
+-.498167
+.160803
+.358533
+-.793940
+.950424
+-.807615
+.515162
+-.296022
+.320850
+-.619499
+1.066808
+-1.444228
+1.549739
+-1.304715
+.799782
+-.245048
+-.153724
+.316106
+-.321917
+.335067
+-.474318
+.728400
+-.976181
+1.088855
+-1.028682
+.867325
+-.714839
+.621213
+-.533215
+.342775
+.008289
+-.448453
+.787103
+-.818055
+.452411
+.205992
+-.895729
+1.328520
+-1.340958
+.978199
+-.460152
+.052085
+.081105
+.050513
+-.296826
+.478434
+-.493551
+.353922
+-.140701
+-.070227
+.250086
+-.399395
+.499646
+-.489703
+.298819
+.085951
+-.576929
+1.013103
+-1.246775
+1.227181
+-1.017890
+.737705
+-.478383
+.267459
+-.098846
+-.013091
+.021328
+.102767
+-.304595
+.442573
+-.371954
+.060294
+.361427
+-.664829
+.667691
+-.351767
+-.128306
+.545935
+-.736924
+.678686
+-.476827
+.287394
+-.232410
+.350727
+-.593164
+.849034
+-.989480
+.915573
+-.598910
+.098301
+.457442
+-.917206
+1.166216
+-1.169515
+.979626
+-.703316
+.443717
+-.249836
+.104834
+.039744
+-.211673
+.391151
+-.532833
+.613944
+-.658853
+.710106
+-.770395
+.775619
+-.637177
+.326203
+.074452
+-.404712
+.528723
+-.422863
+.179826
+.070378
+-.250659
+.364473
+-.448623
+.508942
+-.507100
+.410428
+-.250480
+.122918
+-.117295
+.236464
+-.383035
+.434597
+-.348274
+.204588
+-.148875
+.273478
+-.534008
+.764446
+-.779539
+.490022
+.045317
+-.657047
+1.158705
+-1.435677
+1.481040
+-1.367132
+1.178665
+-.952302
+.660868
+-.251950
+-.285888
+.877590
+-1.374524
+1.624859
+-1.559304
+1.236832
+-.820267
+.496230
+-.386182
+.494803
+-.716129
+.888439
+-.871257
+.613062
+-.179661
+-.274142
+.581218
+-.647271
+.491202
+-.213042
+-.085809
+.368115
+-.660874
+.994108
+-1.334973
+1.578424
+-1.607906
+1.379689
+-.963124
+.502456
+-.128013
+-.115254
+.268144
+-.390528
+.488478
+-.501935
+.367021
+-.097732
+-.193348
+.367379
+-.373041
+.303582
+-.335896
+.586601
+-.995307
+1.333888
+-1.348039
+.934788
+-.230513
+-.453097
+.801886
+-.670298
+.151542
+.481542
+-.919907
+.967138
+-.625243
+.083390
+.382758
+-.554394
+.383562
+-.014251
+-.305912
+.373384
+-.145236
+-.247714
+.595244
+-.741708
+.668027
+-.471632
+.270841
+-.113662
+-.038620
+.248572
+-.520616
+.772695
+-.882040
+.762449
+-.411010
+-.099032
+.653575
+-1.125166
+1.388943
+-1.350206
+.992764
+-.416136
+-.185014
+.607768
+-.743451
+.625234
+-.389887
+.187598
+-.104454
+.138393
+-.223124
+.269864
+-.204867
+-.000403
+.308449
+-.616844
+.795270
+-.750500
+.483274
+-.096993
+-.252861
+.438814
+-.421116
+.253654
+-.039257
+-.133276
+.232987
+-.290421
+.364115
+-.491411
+.653086
+-.773908
+.761844
+-.564629
+.210063
+.195731
+-.513115
+.633996
+-.534434
+.289227
+-.040145
+-.070839
+-.025900
+.286271
+-.569988
+.713733
+-.622155
+.323044
+.047311
+-.318746
+.375685
+-.209980
+-.082995
+.351060
+-.446140
+.277998
+.148400
+-.719959
+1.241243
+-1.505175
+1.386598
+-.907052
+.224241
+.453788
+-.973078
+1.284823
+-1.415264
+1.394669
+-1.216809
+.865966
+-.380192
+-.120116
+.481846
+-.618665
+.579057
+-.516289
+.570867
+-.753102
+.924231
+-.901905
+.613267
+-.171126
+-.197687
+.323068
+-.225573
+.099633
+-.153643
+.434990
+-.785717
+.967791
+-.854822
+.532878
+-.231058
+.146676
+-.311408
+.597438
+-.835694
+.929975
+-.876708
+.702863
+-.410369
+-.006358
+.492469
+-.898686
+1.039599
+-.814556
+.295968
+.292473
+-.701018
+.796316
+-.622960
+.348089
+-.137222
+.053397
+-.046321
+.025411
+.050455
+-.139380
+.161350
+-.079133
+-.053127
+.113791
+.005911
+-.321104
+.726135
+-1.039400
+1.094950
+-.830382
+.323041
+.244693
+-.669792
+.814458
+-.648914
+.239925
+.289417
+-.794417
+1.127356
+-1.158595
+.820252
+-.161538
+-.628092
+1.268926
+-1.509086
+1.251460
+-.611485
+-.135917
+.693937
+-.888049
+.737893
+-.424180
+.179773
+-.169360
+.416968
+-.807340
+1.150527
+-1.275730
+1.111816
+-.716558
+.237696
+.175028
+-.454197
+.638419
+-.818702
+1.048594
+-1.288534
+1.428032
+-1.366351
+1.087603
+-.675589
+.265058
+.027721
+-.146744
+.094722
+.091339
+-.357099
+.628670
+-.806157
+.779834
+-.480267
+-.059203
+.675404
+-1.125365
+1.207301
+-.887062
+.339580
+.140410
+-.314138
+.145895
+.181862
+-.397174
+.318976
+.037248
+-.494028
+.847222
+-.995280
+.973850
+-.888844
+.816386
+-.752297
+.643266
+-.463719
+.268658
+-.176233
+.288590
+-.604913
+.986744
+-1.205483
+1.055831
+-.480007
+-.366207
+1.155441
+-1.535961
+1.316637
+-.584190
+-.326832
+1.005905
+-1.182191
+.853883
+-.257862
+-.289643
+.572289
+-.566259
+.409135
+-.287800
+.324779
+-.523326
+.786218
+-.983555
+1.028429
+-.921904
+.746071
+-.609524
+.576858
+-.625982
+.663032
+-.588258
+.370854
+-.080808
+-.147076
+.196416
+-.045165
+-.217214
+.442242
+-.506456
+.370329
+-.081256
+-.263153
+.551858
+-.677243
+.549578
+-.135233
+-.489423
+1.118561
+-1.479114
+1.363189
+-.754625
+-.139358
+.980825
+-1.463839
+1.449271
+-1.000844
+.322430
+.347365
+-.820607
+.998707
+-.876702
+.534273
+-.116853
+-.206093
+.307829
+-.168090
+-.110538
+.356124
+-.424615
+.279666
+-.005281
+-.249932
+.352321
+-.237603
+-.076956
+.505815
+-.912995
+1.136575
+-1.035793
+.560629
+.191504
+-.982267
+1.521768
+-1.603245
+1.205737
+-.501512
+-.236376
+.768779
+-.989510
+.940883
+-.754351
+.565553
+-.455177
+.436815
+-.478973
+.534729
+-.561744
+.532419
+-.439947
+.301245
+-.151359
+.027797
+.046660
+-.068910
+.043315
+.035294
+-.182276
+.398545
+-.638634
+.806712
+-.801651
+.589200
+-.244693
+-.079552
+.250261
+-.242553
+.150166
+-.105794
+.174980
+-.306801
+.374508
+-.267277
+-.036005
+.453463
+-.841446
+1.057581
+-1.016692
+.723589
+-.273156
+-.185922
+.511785
+-.625687
+.534568
+-.312198
+.056351
+.150989
+-.264261
+.275208
+-.201805
+.074342
+.074390
+-.211758
+.304148
+-.321506
+.251861
+-.118507
+-.017994
+.083637
+-.030960
+-.130627
+.336033
+-.497616
+.548773
+-.471278
+.293005
+-.063032
+-.176250
+.401946
+-.602210
+.756726
+-.824022
+.750953
+-.503356
+.100286
+.372958
+-.787416
+1.021553
+-1.015669
+.800906
+-.486511
+.209699
+-.071095
+.087421
+-.187837
+.258510
+-.212937
+.045982
+.162479
+-.297053
+.275582
+-.092902
+-.183760
+.454355
+-.627564
+.642807
+-.476961
+.152022
+.255122
+-.620745
+.818243
+-.783571
+.556984
+-.261402
+.025906
+.089450
+-.110053
+.097334
+-.084506
+.057797
+.003877
+-.078430
+.099680
+-.019292
+-.120845
+.179562
+.001951
+-.477835
+1.126844
+-1.694769
+1.930164
+-1.725718
+1.173795
+-.506313
+-.035754
+.320275
+-.365376
+.294679
+-.245478
+.286887
+-.390286
+.460280
+-.401860
+.184830
+.127682
+-.398721
+.476371
+-.269585
+-.189083
+.727988
+-1.092616
+1.065920
+-.596362
+-.149058
+.858891
+-1.247019
+1.210342
+-.865740
+.443246
+-.121919
+-.065669
+.197931
+-.347573
+.496689
+-.557914
+.473197
+-.291537
+.146896
+-.150706
+.290949
+-.427474
+.391914
+-.114180
+-.322663
+.737952
+-.970974
+.971129
+-.802318
+.576122
+-.377402
+.236506
+-.150114
+.110843
+-.110492
+.121541
+-.093204
+-.014206
+.177882
+-.297507
+.249907
+.014006
+-.407242
+.742196
+-.851422
+.704532
+-.424347
+.182256
+-.054949
+-.034708
+.234166
+-.598100
+.987432
+-1.132784
+.833572
+-.142534
+-.619684
+1.052639
+-.940278
+.397943
+.209113
+-.515383
+.388182
+.022550
+-.436889
+.664677
+-.715590
+.726111
+-.786883
+.833712
+-.701617
+.293475
+.290702
+-.786489
+.943599
+-.707650
+.258947
+.119498
+-.235991
+.098766
+.126864
+-.255840
+.200710
+.004293
+-.257700
+.457314
+-.530732
+.435354
+-.162516
+-.240082
+.654302
+-.923153
+.930777
+-.681597
+.313823
+-.023105
+-.059105
+-.051035
+.204616
+-.222994
+.018178
+.349952
+-.713593
+.903547
+-.850963
+.620474
+-.357686
+.190546
+-.154832
+.195513
+-.238054
+.267470
+-.345359
+.546427
+-.867850
+1.193234
+-1.351807
+1.234215
+-.877477
+.453848
+-.168727
+.136072
+-.308914
+.504593
+-.508775
+.203323
+.349636
+-.919695
+1.224511
+-1.097045
+.603587
+-.023902
+-.314094
+.245786
+.120784
+-.484550
+.569174
+-.319074
+-.073208
+.324719
+-.275991
+-.006122
+.305862
+-.437196
+.371539
+-.220120
+.106497
+-.051336
+-.032179
+.237874
+-.555890
+.849231
+-.937912
+.722776
+-.253503
+-.303868
+.765682
+-1.017413
+1.035653
+-.856095
+.539665
+-.171198
+-.128172
+.223263
+-.038392
+-.364422
+.779732
+-.957723
+.755000
+-.232446
+-.371387
+.774123
+-.801919
+.471391
+.032585
+-.455770
+.597527
+-.407522
+.017489
+.315474
+-.343544
+-.019956
+.624054
+-1.144452
+1.268607
+-.892779
+.201203
+.433247
+-.669825
+.403314
+.177934
+-.711417
+.874911
+-.558900
+-.100353
+.825223
+-1.352069
+1.537838
+-1.375537
+.947685
+-.375432
+-.204713
+.650431
+-.839458
+.719515
+-.352348
+-.089718
+.391461
+-.399952
+.110247
+.320380
+-.645289
+.656013
+-.298408
+-.287642
+.832421
+-1.074510
+.898540
+-.395139
+-.191310
+.597134
+-.677556
+.469442
+-.145314
+-.105964
+.191790
+-.149308
+.086605
+-.086807
+.154435
+-.241595
+.319140
+-.417841
+.596028
+-.862837
+1.133410
+-1.267349
+1.167017
+-.856661
+.476356
+-.193488
+.098051
+-.156454
+.249235
+-.257800
+.136282
+.075693
+-.297008
+.464643
+-.562829
+.604257
+-.589218
+.488144
+-.272788
+-.027348
+.301924
+-.409847
+.279995
+.016183
+-.290000
+.354604
+-.152359
+-.207601
+.530360
+-.669193
+.609658
+-.450146
+.311706
+-.258389
+.282487
+-.342858
+.403329
+-.435414
+.399165
+-.243485
+-.056004
+.451449
+-.820899
+1.029704
+-1.017022
+.839869
+-.637260
+.539834
+-.591173
+.731699
+-.845127
+.827038
+-.634315
+.299376
+.086096
+-.407421
+.573600
+-.558015
+.412220
+-.241118
+.150108
+-.192503
+.344536
+-.518932
+.611100
+-.558659
+.385562
+-.200354
+.137315
+-.267860
+.542076
+-.810035
+.916446
+-.802533
+.539787
+-.273551
+.124130
+-.119470
+.197914
+-.260697
+.226160
+-.056512
+-.235820
+.584461
+-.869906
+.947518
+-.714830
+.189995
+.457129
+-.965398
+1.117768
+-.872198
+.395267
+.037321
+-.216321
+.132150
+.030994
+-.039382
+-.212103
+.621368
+-.958966
+1.043271
+-.873251
+.615219
+-.457487
+.451753
+-.471871
+.327321
+.055587
+-.530094
+.795967
+-.603637
+-.044914
+.846674
+-1.348096
+1.207284
+-.402483
+-.743496
+1.734290
+-2.159797
+1.894699
+-1.135714
+.276554
+.296296
+-.376436
+.001322
+.605432
+-1.164451
+1.466832
+-1.437304
+1.122886
+-.639480
+.121173
+.307954
+-.550656
+.561383
+-.375202
+.111477
+.072314
+-.063794
+-.135431
+.407135
+-.588804
+.574962
+-.378880
+.113697
+.089893
+-.167886
+.149250
+-.111722
+.109259
+-.133997
+.141575
+-.110755
+.076575
+-.102664
+.217578
+-.377005
+.491652
+-.499130
+.416091
+-.323044
+.294919
+-.337222
+.382147
+-.345955
+.198624
+.010871
+-.191025
+.273342
+-.254369
+.184797
+-.121132
+.083395
+-.053045
+.008197
+.038597
+-.036793
+-.064430
+.265668
+-.496212
+.646055
+-.634324
+.466405
+-.234238
+.052702
+.025467
+-.050964
+.138771
+-.371846
+.718037
+-1.025371
+1.105787
+-.854101
+.323685
+.290598
+-.751931
+.902507
+-.735651
+.381595
+-.022949
+-.204772
+.269594
+-.232265
+.187426
+-.199587
+.270670
+-.348673
+.363730
+-.268886
+.067650
+.181580
+-.385655
+.456149
+-.354631
+.122991
+.120956
+-.231949
+.114187
+.214070
+-.614933
+.902879
+-.958620
+.808282
+-.604901
+.516375
+-.599506
+.756452
+-.810556
+.646338
+-.307638
+-.021852
+.145134
+.001552
+-.284101
+.438898
+-.240367
+-.332474
+1.041003
+-1.495298
+1.376801
+-.643784
+-.416118
+1.332824
+-1.717909
+1.482291
+-.870774
+.296465
+-.086973
+.304348
+-.743532
+1.091340
+-1.128781
+.847991
+-.427441
+.105460
+-.043896
+.255870
+-.617026
+.934738
+-1.036655
+.846256
+-.419692
+-.074714
+.433146
+-.516345
+.319685
+.027791
+-.333741
+.440290
+-.296858
+-.023056
+.360151
+-.541197
+.456411
+-.113781
+-.354947
+.748056
+-.890677
+.726936
+-.351505
+-.045270
+.290084
+-.325637
+.230379
+-.146871
+.172381
+-.291823
+.399025
+-.383881
+.215029
+.042423
+-.278593
+.410706
+-.418717
+.327703
+-.167478
+-.046897
+.298154
+-.538124
+.686119
+-.669598
+.482362
+-.212861
+.011158
+-.006225
+.225253
+-.569407
+.865117
+-.959332
+.800020
+-.456188
+.073534
+.201631
+-.287577
+.194686
+-.011302
+-.141713
+.170601
+-.060676
+-.104865
+.178544
+-.029647
+-.364306
+.872172
+-1.251350
+1.270663
+-.851556
+.140281
+.546910
+-.888475
+.741040
+-.227370
+-.333804
+.618716
+-.491411
+.074742
+.342885
+-.496415
+.297816
+.141232
+-.612358
+.945309
+-1.074849
+1.013070
+-.785315
+.409257
+.061084
+-.484013
+.652222
+-.409475
+-.211520
+.947065
+-1.419380
+1.357589
+-.777843
+-.008714
+.577582
+-.646160
+.234652
+.368285
+-.800915
+.846376
+-.534583
+.081558
+.267502
+-.376010
+.255563
+-.011230
+-.243071
+.436031
+-.540326
+.551732
+-.479188
+.350461
+-.212066
+.106220
+-.038588
+-.028904
+.141124
+-.293576
+.409811
+-.386540
+.181485
+.127083
+-.369381
+.395002
+-.187838
+-.104843
+.261749
+-.139704
+-.215769
+.581412
+-.687520
+.388284
+.236104
+-.911883
+1.320836
+-1.277247
+.826520
+-.207713
+-.292180
+.497506
+-.417820
+.199048
+-.000405
+-.107665
+.154749
+-.198893
+.247124
+-.243669
+.137577
+.034397
+-.133926
+.004863
+.402277
+-.964250
+1.437587
+-1.600273
+1.385012
+-.914569
+.422174
+-.118648
+.091573
+-.286959
+.564411
+-.780012
+.850513
+-.773423
+.602353
+-.396629
+.177866
+.074962
+-.384427
+.717074
+-.960376
+.966578
+-.645388
+.044480
+.643534
+-1.161816
+1.314652
+-1.064516
+.546186
+.007258
+-.381834
+.478774
+-.343398
+.122677
+.014895
+.047023
+-.333243
+.775360
+-1.237753
+1.562329
+-1.624230
+1.384228
+-.912536
+.362008
+.105448
+-.401117
+.546761
+-.639039
+.764061
+-.925757
+1.042696
+-1.014885
+.805823
+-.474905
+.138919
+.100619
+-.206507
+.201761
+-.130232
+.021304
+.117495
+-.287722
+.487137
+-.705921
+.925018
+-1.108550
+1.196900
+-1.117473
+.821796
+-.332224
+-.237082
+.713199
+-.945452
+.889583
+-.638199
+.368750
+-.235037
+.270654
+-.370818
+.369098
+-.160834
+-.209118
+.554752
+-.652112
+.375080
+.218530
+-.901744
+1.384854
+-1.453247
+1.062153
+-.343734
+-.466980
+1.139496
+-1.531842
+1.618541
+-1.465735
+1.181187
+-.867972
+.597843
+-.404396
+.288492
+-.228224
+.189606
+-.138427
+.053584
+.060708
+-.170929
+.224940
+-.175066
+.003665
+.261843
+-.551414
+.770827
+-.832084
+.689388
+-.370287
+-.017391
+.319730
+-.408130
+.252380
+.054860
+-.347809
+.485089
+-.429095
+.249874
+-.054205
+-.099584
+.229039
+-.375539
+.523153
+-.570027
+.393547
+.032123
+-.564167
+.941238
+-.940901
+.539113
+.049972
+-.495762
+.557529
+-.231064
+-.266261
+.655190
+-.776633
+.666561
+-.486159
+.382248
+-.394498
+.469859
+-.547029
+.621434
+-.732882
+.897166
+-1.054976
+1.093006
+-.923099
+.551363
+-.077626
+-.371933
+.717071
+-.938126
+1.028932
+-.948090
+.634169
+-.087155
+-.558573
+1.057077
+-1.184507
+.896072
+-.379700
+-.051629
+.161600
+.060892
+-.417093
+.661005
+-.677931
+.539688
+-.402640
+.346283
+-.296738
+.102443
+.305698
+-.815161
+1.189744
+-1.246083
+1.004433
+-.684661
+.543584
+-.680778
+.965815
+-1.142178
+1.023421
+-.629520
+.165952
+.127252
+-.136979
+-.062502
+.274172
+-.302980
+.053644
+.441407
+-1.049435
+1.584367
+-1.858641
+1.745705
+-1.248861
+.539569
+.084687
+-.333970
+.091607
+.493190
+-1.064436
+1.254521
+-.902337
+.153496
+.626527
+-1.071720
+1.023925
+-.598484
+.078223
+.276615
+-.369989
+.281707
+-.167477
+.136485
+-.190721
+.250222
+-.226536
+.086626
+.127080
+-.320219
+.394295
+-.298214
+.066691
+.175356
+-.260565
+.073934
+.351880
+-.812237
+1.021109
+-.782394
+.132979
+.653131
+-1.221572
+1.355401
+-1.099096
+.698386
+-.405299
+.302187
+-.278978
+.170066
+.073594
+-.326105
+.390900
+-.176719
+-.205801
+.511827
+-.541998
+.290522
+.054563
+-.254767
+.191713
+.064832
+-.331813
+.457690
+-.419516
+.307322
+-.226764
+.208759
+-.195078
+.098644
+.118417
+-.410121
+.674707
+-.818064
+.807099
+-.681422
+.522142
+-.401067
+.341368
+-.310875
+.249640
+-.113588
+-.092912
+.316651
+-.489017
+.571350
+-.579469
+.565943
+-.571055
+.582217
+-.541724
+.404053
+-.195089
+.014691
+.032389
+.076552
+-.257347
+.388018
+-.416261
+.406640
+-.475731
+.665837
+-.871638
+.897443
+-.611804
+.077653
+.453168
+-.689061
+.488687
+.042799
+-.617130
+.939107
+-.876922
+.520640
+-.103830
+-.150357
+.159429
+-.015199
+-.088904
+-.013600
+.353767
+-.799445
+1.123574
+-1.131973
+.779118
+-.203706
+-.341317
+.626679
+-.570840
+.274529
+.052838
+-.222602
+.166292
+.052750
+-.305197
+.477903
+-.514775
+.407603
+-.173182
+-.148276
+.477787
+-.701936
+.721497
+-.520765
+.199913
+.070737
+-.154928
+.042143
+.142836
+-.223945
+.093055
+.220830
+-.579731
+.836942
+-.931084
+.905052
+-.843002
+.784075
+-.686849
+.473689
+-.117446
+-.301015
+.613845
+-.657235
+.375342
+.128990
+-.631418
+.895512
+-.797651
+.397401
+.090145
+-.409594
+.403031
+-.088152
+-.367444
+.751457
+-.917308
+.831914
+-.548579
+.149417
+.287278
+-.679168
+.924932
+-.927054
+.657980
+-.220998
+-.160265
+.247800
+.061225
+-.641916
+1.185100
+-1.368733
+1.057160
+-.398170
+-.252821
+.540875
+-.323047
+-.248844
+.824347
+-1.066668
+.848924
+-.317721
+-.206737
+.425986
+-.233724
+-.235008
+.695203
+-.880895
+.690053
+-.226371
+-.276190
+.592684
+-.626310
+.442701
+-.209632
+.087979
+-.142324
+.319915
+-.500835
+.580986
+-.535522
+.426314
+-.352133
+.373557
+-.462065
+.511031
+-.408613
+.127603
+.233044
+-.494680
+.511574
+-.275226
+-.066624
+.297144
+-.269270
+.003081
+.325446
+-.499297
+.405147
+-.113471
+-.161006
+.198016
+.076740
+-.528413
+.886123
+-.910447
+.546105
+.042721
+-.574643
+.816094
+-.697591
+.317778
+.142386
+-.519564
+.721762
+-.729258
+.574551
+-.327431
+.082574
+.067071
+-.072858
+-.034388
+.146805
+-.130483
+-.096748
+.503964
+-.943166
+1.216469
+-1.186781
+.870094
+-.444117
+.151487
+-.146471
+.385276
+-.643933
+.662734
+-.320523
+-.285341
+.909222
+-1.319191
+1.427174
+-1.299770
+1.065586
+-.814103
+.568837
+-.335175
+.150308
+-.070088
+.101801
+-.159360
+.106891
+.126569
+-.459043
+.686611
+-.629332
+.280335
+.171519
+-.476583
+.512337
+-.368723
+.259493
+-.337046
+.569800
+-.782427
+.815066
+-.658490
+.454030
+-.371483
+.479495
+-.714424
+.956075
+-1.127589
+1.230895
+-1.300641
+1.335766
+-1.280809
+1.075556
+-.725828
+.327908
+-.019684
+-.105763
+.055588
+.083466
+-.226112
+.363736
+-.567934
+.909702
+-1.352924
+1.714625
+-1.747965
+1.312652
+-.514259
+-.308452
+.770901
+-.690700
+.216371
+.270659
+-.421182
+.157607
+.289672
+-.569711
+.471543
+-.060055
+-.400986
+.657679
+-.635904
+.454405
+-.298071
+.269395
+-.330364
+.359060
+-.257738
+.028121
+.228274
+-.369873
+.291595
+.019828
+-.471999
+.900078
+-1.138149
+1.100207
+-.828955
+.479125
+-.238518
+.229857
+-.449628
+.775712
+-1.033457
+1.079866
+-.865036
+.449133
+.024579
+-.387923
+.517543
+-.391127
+.103155
+.175446
+-.282445
+.151562
+.150343
+-.464163
+.635683
+-.607121
+.442382
+-.272479
+.204521
+-.260867
+.384248
+-.490332
+.517001
+-.437223
+.244510
+.055592
+-.431792
+.810038
+-1.084768
+1.165730
+-1.030533
+.742375
+-.417146
+.163486
+-.037590
+.039427
+-.142104
+.321867
+-.559032
+.810798
+-.988547
+.976878
+-.699620
+.191512
+.384093
+-.800596
+.883986
+-.605983
+.094953
+.437175
+-.800268
+.901029
+-.757409
+.465001
+-.148219
+-.079208
+.139954
+-.010678
+-.267831
+.596797
+-.850068
+.923650
+-.781530
+.472506
+-.108836
+-.179641
+.291169
+-.180480
+-.130871
+.556814
+-.962951
+1.205218
+-1.188712
+.920604
+-.517520
+.147449
+.067159
+-.122300
+.127024
+-.218388
+.454423
+-.760243
+.966500
+-.916038
+.569535
+-.041673
+-.456933
+.737893
+-.740342
+.555348
+-.353725
+.268539
+-.317029
+.416935
+-.475832
+.473936
+-.468920
+.523510
+-.626957
+.686646
+-.601667
+.354244
+-.037251
+-.207446
+.286942
+-.208431
+.045483
+.139866
+-.340307
+.569365
+-.787568
+.873304
+-.689141
+.206161
+.416720
+-.882484
+.923576
+-.480589
+-.234412
+.842441
+-1.009211
+.632032
+.111692
+-.876636
+1.345109
+-1.385173
+1.085776
+-.667172
+.339848
+-.202956
+.232454
+-.342358
+.460149
+-.563079
+.663840
+-.774379
+.885679
+-.977662
+1.042446
+-1.092977
+1.145057
+-1.187610
+1.169056
+-1.018113
+.690849
+-.213375
+-.312845
+.754217
+-1.014146
+1.081120
+-1.017988
+.896194
+-.726895
+.452325
+-.017399
+-.530529
+1.004794
+-1.160395
+.854053
+-.169795
+-.593373
+1.077875
+-1.067276
+.596597
+.090475
+-.691430
+.992577
+-.932550
+.578420
+-.068368
+-.431363
+.755442
+-.781518
+.490782
+-.005445
+-.449043
+.661527
+-.563711
+.274294
+-.018184
+-.023167
+-.181346
+.522482
+-.852313
+1.080965
+-1.191389
+1.182930
+-1.022784
+.668865
+-.146027
+-.405919
+.776427
+-.802154
+.472014
+.060196
+-.561905
+.843142
+-.835846
+.597036
+-.254872
+-.060350
+.268023
+-.358640
+.383109
+-.414902
+.502129
+-.637013
+.764279
+-.822755
+.785985
+-.667580
+.489551
+-.250138
+-.068086
+.448716
+-.797553
+.961067
+-.815578
+.368770
+.209922
+-.666808
+.803704
+-.585337
+.146532
+.292735
+-.537364
+.488630
+-.161399
+-.330331
+.801460
+-1.045075
+.914283
+-.412729
+-.267978
+.816726
+-.963138
+.638729
+-.028368
+-.534902
+.770517
+-.615151
+.242792
+.068285
+-.123723
+-.072591
+.345821
+-.482752
+.368007
+-.037478
+-.365930
+.682980
+-.810878
+.727118
+-.475492
+.139877
+.180327
+-.394638
+.448531
+-.343752
+.136886
+.089703
+-.270212
+.384480
+-.453800
+.506274
+-.539617
+.513582
+-.383682
+.152603
+.106022
+-.281815
+.303716
+-.199074
+.079479
+-.052053
+.122001
+-.172669
+.054348
+.278540
+-.694503
+.950129
+-.858831
+.438609
+.080246
+-.401863
+.360154
+-.019447
+-.386874
+.622730
+-.593405
+.374555
+-.130282
+-.000609
+-.028043
+.171727
+-.338847
+.438001
+-.411153
+.252337
+-.011685
+-.221064
+.354130
+-.337198
+.185413
+.033515
+-.242742
+.402590
+-.527233
+.658541
+-.814741
+.954275
+-.988490
+.842942
+-.526017
+.151116
+.113160
+-.138169
+-.086288
+.442734
+-.751567
+.868357
+-.754568
+.485578
+-.198930
+.015884
+.022981
+.024653
+-.042851
+-.063629
+.296839
+-.549801
+.666346
+-.542949
+.203002
+.210918
+-.523036
+.627165
+-.535611
+.348298
+-.175144
+.071967
+-.028501
+.003529
+.027712
+-.047715
+.004992
+.151435
+-.430210
+.770913
+-1.050734
+1.131380
+-.930067
+.478601
+.068395
+-.492540
+.616552
+-.402092
+-.017308
+.397341
+-.514989
+.298780
+.126142
+-.515994
+.664931
+-.535525
+.271420
+-.084694
+.103685
+-.293614
+.501216
+-.577576
+.481089
+-.290421
+.134852
+-.107695
+.223358
+-.430380
+.647310
+-.788209
+.775369
+-.560412
+.161231
+.313316
+-.692211
+.830633
+-.705155
+.438254
+-.219214
+.171789
+-.269827
+.369253
+-.331181
+.136326
+.100402
+-.222384
+.151959
+.056762
+-.267171
+.363754
+-.325455
+.218794
+-.128540
+.088922
+-.069055
+.016119
+.086162
+-.194541
+.235962
+-.162221
+-.016260
+.241685
+-.449163
+.597653
+-.669446
+.650604
+-.524130
+.290181
+.007758
+-.286232
+.466118
+-.525805
+.514179
+-.502889
+.513341
+-.483799
+.316639
+.022590
+-.436898
+.731306
+-.742566
+.473507
+-.120597
+-.045354
+-.129867
+.562942
+-.979919
+1.105337
+-.857186
+.404947
+-.049390
+.012995
+-.289538
+.653101
+-.812985
+.606260
+-.104314
+-.428749
+.693561
+-.531433
+.015933
+.587963
+-.968408
+.930037
+-.488222
+-.150460
+.702604
+-.952042
+.849556
+-.520783
+.184165
+-.027091
+.110070
+-.350923
+.591933
+-.701719
+.645730
+-.486261
+.324695
+-.234646
+.230525
+-.280786
+.342146
+-.384322
+.393660
+-.365423
+.298792
+-.199050
+.080988
+.032458
+-.115029
+.141483
+-.091005
+-.044938
+.248876
+-.466038
+.611378
+-.603855
+.415960
+-.106725
+-.192687
+.344059
+-.282598
+.059448
+.185491
+-.303108
+.212332
+.072920
+-.470860
+.876392
+-1.185544
+1.299469
+-1.140152
+.699444
+-.094637
+-.432329
+.612808
+-.310130
+-.366452
+1.092893
+-1.511750
+1.452186
+-1.032935
+.567699
+-.337857
+.400402
+-.573287
+.602609
+-.374448
+.002277
+.275020
+-.295226
+.108390
+.062766
+-.002089
+-.326731
+.748467
+-1.005959
+.946844
+-.626390
+.257371
+-.053845
+.087353
+-.254214
+.365519
+-.286115
+.022751
+.292468
+-.500051
+.515877
+-.369367
+.162824
+.004993
+-.091423
+.110178
+-.095992
+.070228
+-.029188
+-.048836
+.190586
+-.412634
+.700428
+-.989504
+1.172639
+-1.149522
+.899881
+-.525790
+.215278
+-.133197
+.308839
+-.605387
+.804640
+-.755361
+.481900
+-.173275
+.055776
+-.235595
+.619499
+-.968867
+1.051843
+-.794244
+.332424
+.065346
+-.160688
+-.108066
+.583707
+-.980056
+1.052585
+-.746724
+.231831
+.201811
+-.318043
+.070890
+.380958
+-.782182
+.934782
+-.800822
+.500728
+-.222563
+.107346
+-.178549
+.350184
+-.499309
+.552609
+-.530193
+.518461
+-.591841
+.742119
+-.872261
+.865600
+-.682432
+.409168
+-.216527
+.250686
+-.533713
+.944326
+-1.291199
+1.426205
+-1.322279
+1.072045
+-.818875
+.669914
+-.641716
+.664451
+-.638202
+.508420
+-.315641
+.183352
+-.241893
+.531680
+-.952489
+1.303642
+-1.398287
+1.178603
+-.752634
+.325959
+-.076504
+.059198
+-.201674
+.381446
+-.516527
+.598332
+-.650547
+.662156
+-.565279
+.287900
+.157752
+-.631028
+.917281
+-.858327
+.468449
+.057157
+-.460825
+.589963
+-.491202
+.358491
+-.372806
+.556710
+-.756819
+.766422
+-.490311
+.021847
+.424913
+-.671115
+.693844
+-.622382
+.619750
+-.745400
+.902218
+-.903571
+.608436
+-.028808
+-.661828
+1.221065
+-1.468611
+1.373474
+-1.048702
+.667825
+-.365540
+.186463
+-.102620
+.066904
+-.052229
+.051601
+-.057923
+.057159
+-.045661
+.047524
+-.102753
+.226830
+-.378704
+.474893
+-.449145
+.311677
+-.153770
+.083799
+-.140348
+.254832
+-.303048
+.213469
+-.045766
+-.033587
+-.125691
+.524902
+-.981784
+1.233509
+-1.110445
+.654857
+-.096928
+-.293092
+.368833
+-.176689
+-.102831
+.281116
+-.261950
+.063635
+.221946
+-.483253
+.622846
+-.575558
+.330442
+.044388
+-.402977
+.576062
+-.467045
+.132530
+.218383
+-.327208
+.042401
+.568006
+-1.228022
+1.596756
+-1.463646
+.876502
+-.118398
+-.456879
+.630014
+-.431739
+.095257
+.120019
+-.110215
+-.014470
+.035527
+.182664
+-.561625
+.842081
+-.763891
+.262800
+.462858
+-1.068164
+1.279286
+-1.058397
+.602755
+-.186304
+-.034960
+.111814
+-.224524
+.503380
+-.888049
+1.139466
+-1.006078
+.427793
+.375023
+-1.004776
+1.122158
+-.656523
+-.152106
+.905308
+-1.285068
+1.218338
+-.869701
+.490299
+-.245541
+.141004
+-.078125
+-.027838
+.170316
+-.269323
+.255459
+-.140513
+.013770
+.029482
+.035042
+-.141610
+.186770
+-.109004
+-.065257
+.238964
+-.304780
+.201551
+.064667
+-.431053
+.797016
+-1.041271
+1.049861
+-.767229
+.251672
+.314791
+-.697856
+.738679
+-.453782
+.025234
+.323789
+-.479930
+.500608
+-.536699
+.680933
+-.868580
+.915180
+-.663798
+.125148
+.498927
+-.925483
+.951223
+-.555658
+-.105534
+.787347
+-1.254518
+1.347831
+-1.017359
+.339377
+.486418
+-1.184376
+1.505006
+-1.343139
+.799010
+-.130575
+-.381262
+.567615
+-.421698
+.049053
+.419152
+-.872333
+1.207403
+-1.307889
+1.076817
+-.520095
+-.194512
+.783535
+-.999157
+.789321
+-.342861
+-.027780
+.092778
+.144480
+-.458787
+.565216
+-.313554
+-.218795
+.787195
+-1.135386
+1.133714
+-.821492
+.353895
+.089729
+-.380516
+.477435
+-.432818
+.369676
+-.426699
+.679121
+-1.074784
+1.436684
+-1.552940
+1.311627
+-.792036
+.238710
+.079503
+-.038088
+-.261800
+.559801
+-.607867
+.330337
+.134760
+-.534258
+.663169
+-.480756
+.112534
+.244983
+-.439324
+.423069
+-.240204
+-.027214
+.300598
+-.511797
+.595036
+-.499035
+.228502
+.117475
+-.359459
+.321554
+.055601
+-.650162
+1.199132
+-1.432243
+1.222916
+-.664045
+.022298
+.401645
+-.425769
+.070311
+.465984
+-.915293
+1.074349
+-.895819
+.497366
+-.090904
+-.128423
+.076458
+.187154
+-.498719
+.677496
+-.615824
+.331819
+.036889
+-.297004
+.297666
+-.019172
+-.398465
+.716886
+-.729646
+.389514
+.151022
+-.621997
+.796712
+-.630447
+.285488
+-.021791
+.020842
+-.258192
+.515180
+-.532803
+.210734
+.290507
+-.633451
+.536148
+.003504
+-.662519
+.983757
+-.685874
+-.125600
+1.008114
+-1.470212
+1.298492
+-.689445
+.093622
+.108845
+.138921
+-.567711
+.813796
+-.696059
+.330340
+-.012531
+-.018172
+-.252821
+.631150
+-.875700
+.867427
+-.662126
+.410670
+-.230855
+.136097
+-.064279
+-.034662
+.135791
+-.156779
+.041397
+.163266
+-.308785
+.239828
+.081433
+-.518244
+.826144
+-.810339
+.465135
+.009480
+-.334865
+.338066
+-.062217
+-.275940
+.447249
+-.369641
+.151303
+.006666
+.031582
+-.237363
+.445932
+-.484138
+.297950
+.013887
+-.279731
+.382141
+-.332796
+.239781
+-.198995
+.203523
+-.149454
+-.064617
+.427691
+-.791568
+.957967
+-.814011
+.413701
+.053741
+-.382194
+.467832
+-.351192
+.165424
+-.037013
+.009651
+-.036034
+.033268
+.042803
+-.156071
+.208243
+-.103757
+-.180497
+.565276
+-.899106
+1.033421
+-.901410
+.557109
+-.153159
+-.131010
+.172594
+.041147
+-.413618
+.788152
+-1.017142
+1.018271
+-.797559
+.438802
+-.069657
+-.184226
+.247702
+-.132397
+-.061316
+.191099
+-.152845
+-.053301
+.320204
+-.502209
+.507002
+-.344804
+.105043
+.109494
+-.233845
+.248017
+-.159538
+-.001445
+.167667
+-.234580
+.108951
+.209458
+-.580986
+.777667
+-.625431
+.143225
+.434469
+-.791249
+.738590
+-.353648
+-.060340
+.170211
+.168984
+-.823131
+1.470557
+-1.804927
+1.711573
+-1.312068
+.867564
+-.617091
+.650952
+-.882222
+1.115399
+-1.161411
+.933733
+-.481197
+-.047267
+.475385
+-.668969
+.577117
+-.244409
+-.197621
+.561625
+-.667589
+.431697
+.062078
+-.568688
+.795186
+-.572649
+-.022181
+.691227
+-1.087561
+1.027850
+-.599253
+.086982
+.220420
+-.206132
+-.036419
+.305671
+-.438275
+.391726
+-.229754
+.056551
+.036278
+.010030
+-.211031
+.521370
+-.828153
+.987963
+-.904474
+.594347
+-.182528
+-.179782
+.415015
+-.559219
+.711837
+-.937375
+1.197549
+-1.365564
+1.309025
+-.978640
+.441667
+.155031
+-.656699
+.958173
+-1.022495
+.871403
+-.570262
+.215289
+.085956
+-.245995
+.227037
+-.047938
+-.235652
+.558588
+-.858697
+1.074137
+-1.145540
+1.036899
+-.762514
+.390465
+-.009499
+-.319333
+.586136
+-.808470
+.979665
+-1.037337
+.890272
+-.497738
+-.053951
+.547664
+-.735395
+.497226
+.047680
+-.575272
+.742131
+-.410443
+-.247649
+.853407
+-1.068319
+.809379
+-.280613
+-.190681
+.379697
+-.285821
+.079962
+.056043
+-.064138
+.026838
+-.075331
+.272887
+-.559976
+.791300
+-.831208
+.642407
+-.314338
+.016870
+.093114
+.040579
+-.340477
+.636923
+-.761680
+.641120
+-.334754
+-.003454
+.216697
+-.233177
+.097449
+.069475
+-.150165
+.097716
+.049309
+-.204970
+.295159
+-.297290
+.239082
+-.163863
+.091807
+-.006322
+-.125506
+.315495
+-.530333
+.700815
+-.758014
+.669380
+-.449762
+.145070
+.190910
+-.503956
+.729094
+-.784239
+.593924
+-.144339
+-.465111
+1.024620
+-1.296483
+1.143874
+-.623171
+-.035351
+.561428
+-.806688
+.815659
+-.751188
+.733902
+-.729336
+.579349
+-.154055
+-.502781
+1.159978
+-1.535150
+1.478706
+-1.068805
+.553795
+-.195870
+.132962
+-.342721
+.702660
+-1.074235
+1.345974
+-1.431930
+1.269996
+-.853991
+.278116
+.264855
+-.564152
+.511165
+-.171099
+-.255115
+.554072
+-.615672
+.459499
+-.171958
+-.171789
+.527725
+-.842474
+1.019106
+-.949902
+.604478
+-.093460
+-.365271
+.570700
+-.466321
+.175227
+.083748
+-.136940
+-.044844
+.349475
+-.614427
+.734891
+-.716511
+.647715
+-.622083
+.670802
+-.748926
+.775756
+-.692062
+.492364
+-.217275
+-.076377
+.340095
+-.540529
+.657509
+-.686435
+.644568
+-.566533
+.479671
+-.372609
+.188554
+.133878
+-.587862
+1.048103
+-1.300551
+1.161042
+-.616853
+-.114527
+.677574
+-.784644
+.402617
+.218125
+-.705480
+.809179
+-.551598
+.179957
+.033441
+.016648
+-.226411
+.404703
+-.442147
+.386266
+-.373274
+.489763
+-.686763
+.812875
+-.730742
+.420967
+-.001055
+-.342390
+.453687
+-.281579
+-.101616
+.532225
+-.823217
+.846957
+-.600547
+.215788
+.106017
+-.207819
+.070894
+.176236
+-.343201
+.298327
+-.040810
+-.317930
+.635028
+-.809761
+.801472
+-.602132
+.212153
+.345427
+-.986228
+1.550565
+-1.849497
+1.756322
+-1.284513
+.594398
+.081678
+-.548868
+.724656
+-.639251
+.379566
+-.032525
+-.329065
+.625296
+-.758726
+.649832
+-.301698
+-.164896
+.550725
+-.677583
+.481033
+-.035315
+-.496847
+.943756
+-1.182659
+1.160833
+-.898564
+.489491
+-.087710
+-.140539
+.096234
+.186660
+-.545780
+.780868
+-.780275
+.595963
+-.407573
+.395002
+-.609512
+.939047
+-1.194065
+1.247741
+-1.120984
+.947244
+-.849297
+.832820
+-.786176
+.585695
+-.215537
+-.201736
+.490704
+-.553160
+.434397
+-.275199
+.197218
+-.221442
+.282284
+-.311536
+.308201
+-.331264
+.426717
+-.559577
+.615541
+-.476932
+.115992
+.366046
+-.786334
+.985423
+-.920428
+.684110
+-.437339
+.303850
+-.301510
+.356354
+-.379968
+.342784
+-.283314
+.253208
+-.256016
+.241604
+-.163186
+.041024
+.035139
+.022220
+-.212267
+.426031
+-.519689
+.423715
+-.195265
+-.031355
+.150661
+-.154529
+.107495
+-.061562
+-.002184
+.147921
+-.401943
+.695278
+-.890570
+.872362
+-.622057
+.216010
+.242488
+-.688530
+1.101358
+-1.458194
+1.697508
+-1.741938
+1.566207
+-1.242438
+.907112
+-.663843
+.500531
+-.294856
+-.087244
+.673115
+-1.335593
+1.852883
+-2.032602
+1.815627
+-1.298176
+.672552
+-.136180
+-.178428
+.231582
+-.072734
+-.179704
+.375268
+-.391213
+.200311
+.096092
+-.311566
+.288198
+-.011835
+-.358965
+.585158
+-.504698
+.142615
+.307903
+-.618942
+.675198
+-.528354
+.328755
+-.199933
+.157392
+-.126275
+.027743
+.145872
+-.325846
+.425045
+-.402629
+.283502
+-.126813
+-.019311
+.136775
+-.222851
+.268016
+-.255906
+.186769
+-.097040
+.046838
+-.077961
+.176466
+-.274939
+.297273
+-.211393
+.048354
+.124890
+-.254248
+.330266
+-.383297
+.453213
+-.560638
+.697910
+-.838132
+.948850
+-1.000838
+.973472
+-.861406
+.682191
+-.476529
+.295267
+-.178546
+.140586
+-.169289
+.236236
+-.305641
+.337708
+-.293406
+.149085
+.083365
+-.347922
+.560614
+-.646547
+.576929
+-.384755
+.150518
+.035476
+-.116532
+.097020
+-.035968
+.006376
+-.043305
+.117093
+-.153854
+.090111
+.078252
+-.287735
+.442841
+-.468941
+.350947
+-.141593
+-.060194
+.152406
+-.080818
+-.124363
+.351305
+-.458348
+.353358
+-.054081
+-.310866
+.567398
+-.593301
+.392301
+-.099708
+-.090041
+.038700
+.243846
+-.592237
+.778355
+-.652806
+.243824
+.255624
+-.606955
+.669690
+-.472255
+.169715
+.068753
+-.155414
+.103937
+.017470
+-.143313
+.232864
+-.258283
+.194487
+-.035128
+-.179260
+.358410
+-.403871
+.272732
+-.015348
+-.244758
+.378406
+-.321441
+.105194
+.166513
+-.373679
+.436370
+-.345797
+.161030
+.025247
+-.138910
+.171050
+-.189648
+.298500
+-.559526
+.928318
+-1.256309
+1.371308
+-1.188757
+.775348
+-.314726
+-.006255
+.113186
+-.080574
+.063127
+-.172147
+.387857
+-.574453
+.588577
+-.399335
+.125397
+.044838
+.006747
+-.233267
+.447437
+-.449645
+.169160
+.280343
+-.666603
+.779905
+-.557303
+.112629
+.341970
+-.628411
+.701343
+-.649697
+.605539
+-.631818
+.676292
+-.628411
+.434430
+-.174909
+.032653
+-.161903
+.551011
+-.987882
+1.170728
+-.901195
+.229860
+.552811
+-1.083335
+1.142086
+-.776168
+.249435
+.139954
+-.246828
+.148288
+-.059998
+.168090
+-.494859
+.884174
+-1.108362
+1.020045
+-.648875
+.182968
+.150013
+-.225244
+.097156
+.036884
+.037999
+-.416443
+1.004582
+-1.558875
+1.808116
+-1.592482
+.950534
+-.114262
+-.586738
+.871811
+-.641343
+.027508
+.669926
+-1.135416
+1.194742
+-.886338
+.409299
+.009707
+-.239173
+.281241
+-.220286
+.137318
+-.057922
+-.039715
+.181663
+-.365566
+.561288
+-.731869
+.845726
+-.870273
+.765837
+-.504733
+.113199
+.301206
+-.578542
+.594010
+-.351683
+.011452
+.186283
+-.059839
+-.399943
+1.018659
+-1.537841
+1.758444
+-1.636221
+1.277521
+-.853383
+.500558
+-.273913
+.166383
+-.160188
+.255551
+-.452891
+.713292
+-.947521
+1.059256
+-1.014090
+.872961
+-.751552
+.731568
+-.795270
+.838591
+-.751984
+.503529
+-.162103
+-.146782
+.310666
+-.277175
+.063795
+.255049
+-.568852
+.761507
+-.754881
+.548558
+-.223878
+-.102877
+.349597
+-.504999
+.601840
+-.654165
+.623651
+-.455422
+.154702
+.172356
+-.366952
+.329264
+-.105092
+-.128622
+.176249
+.047065
+-.460858
+.871918
+-1.089203
+1.023117
+-.716472
+.305629
+.052965
+-.251802
+.271810
+-.182270
+.102831
+-.141030
+.331413
+-.607655
+.827020
+-.841494
+.582846
+-.115576
+-.377610
+.681574
+-.666612
+.371840
+.003969
+-.211887
+.104883
+.263397
+-.664272
+.836320
+-.653697
+.205457
+.271337
+-.556975
+.591465
+-.489625
+.423063
+-.468226
+.544675
+-.492362
+.221154
+.192627
+-.542326
+.630861
+-.405138
+-.011536
+.401025
+-.575961
+.465254
+-.124230
+-.310180
+.681016
+-.869000
+.839616
+-.663548
+.485459
+-.437628
+.544457
+-.692461
+.705850
+-.486231
+.112310
+.188375
+-.190809
+-.155849
+.664391
+-1.011494
+.944379
+-.452203
+-.219075
+.722486
+-.830129
+.566200
+-.164204
+-.114323
+.166148
+-.106938
+.169885
+-.521385
+1.126567
+-1.756107
+2.124573
+-2.061489
+1.601400
+-.943315
+.322850
+.106016
+-.305909
+.308854
+-.150424
+-.149731
+.551211
+-.948814
+1.181306
+-1.108529
+.709974
+-.129066
+-.382624
+.597659
+-.439804
+.021277
+.434368
+-.729199
+.792784
+-.686092
+.521239
+-.371363
+.241344
+-.109900
+-.009034
+.049734
+.056905
+-.310267
+.607184
+-.783920
+.707563
+-.352959
+-.187089
+.757900
+-1.217602
+1.479296
+-1.509238
+1.310947
+-.929862
+.475003
+-.116686
+.024388
+-.262035
+.712055
+-1.102022
+1.142995
+-.704404
+-.087833
+.900686
+-1.367982
+1.286248
+-.719169
+-.044576
+.649477
+-.856012
+.649477
+-.220855
+-.162621
+.318180
+-.242696
+.087434
+-.035080
+.166995
+-.412837
+.613157
+-.644270
+.511442
+-.342864
+.290567
+-.411919
+.618271
+-.730561
+.604528
+-.236920
+-.225635
+.584112
+-.721077
+.670641
+-.571144
+.538499
+-.563896
+.523269
+-.296930
+-.096642
+.469016
+-.572584
+.280439
+.301614
+-.882362
+1.165250
+-1.033054
+.606931
+-.146550
+-.124496
+.138347
+.024370
+-.235778
+.418821
+-.568635
+.703581
+-.812470
+.854009
+-.803463
+.691677
+-.590648
+.553580
+-.562513
+.531370
+-.365030
+.030234
+.412008
+-.831744
+1.094160
+-1.124379
+.941312
+-.647498
+.381789
+-.255095
+.297174
+-.439381
+.544615
+-.473957
+.160886
+.342769
+-.875924
+1.235398
+-1.275173
+.986908
+-.511907
+.067145
+.177133
+-.191787
+.090829
+-.038912
+.131197
+-.332078
+.512539
+-.551905
+.425855
+-.221885
+.080187
+-.106502
+.311203
+-.603926
+.839205
+-.887414
+.698458
+-.328951
+-.083144
+.389237
+-.510396
+.477820
+-.402703
+.391800
+-.468607
+.561669
+-.570983
+.457439
+-.277028
+.126351
+-.045455
+-.031912
+.225985
+-.589391
+1.017413
+-1.276788
+1.150816
+-.602731
+-.167560
+.827658
+-1.114478
+.993047
+-.658058
+.379727
+-.312022
+.406372
+-.485116
+.401255
+-.150620
+-.144025
+.342593
+-.385947
+.305549
+-.159548
+-.025605
+.248196
+-.475945
+.613461
+-.544770
+.227593
+.241388
+-.656338
+.817283
+-.648851
+.237196
+.234873
+-.597897
+.768952
+-.750023
+.579567
+-.294928
+-.064337
+.433488
+-.722838
+.857889
+-.829774
+.707638
+-.593209
+.548692
+-.554623
+.531000
+-.402387
+.153135
+.168397
+-.491008
+.764592
+-.970241
+1.097224
+-1.120197
+1.004642
+-.736721
+.347433
+.093535
+-.509621
+.847267
+-1.079976
+1.190006
+-1.154392
+.959350
+-.637075
+.288014
+-.050699
+.020942
+-.173902
+.358193
+-.385512
+.161937
+.236134
+-.603605
+.739126
+-.573019
+.203792
+.169665
+-.360172
+.273616
+.073909
+-.586041
+1.127899
+-1.560460
+1.769629
+-1.695112
+1.352853
+-.836027
+.286499
+.155465
+-.403198
+.454268
+-.385109
+.309736
+-.318865
+.428967
+-.570846
+.629532
+-.518694
+.247259
+.065901
+-.246826
+.165194
+.181748
+-.657006
+1.058683
+-1.237631
+1.180114
+-.996907
+.827840
+-.735085
+.668570
+-.529304
+.274980
+.023366
+-.223742
+.220768
+-.030367
+-.216173
+.361382
+-.323539
+.139335
+.072759
+-.191500
+.160798
+-.013392
+-.151212
+.218923
+-.121680
+-.120131
+.400670
+-.586404
+.601235
+-.481516
+.354035
+-.342629
+.467495
+-.615938
+.616224
+-.368544
+-.061838
+.465072
+-.618164
+.439565
+-.054775
+-.281873
+.359269
+-.153260
+-.161200
+.334763
+-.211064
+-.181389
+.662692
+-1.017592
+1.104872
+-.901833
+.487739
+-.005120
+-.376827
+.503988
+-.296993
+-.189690
+.757090
+-1.135147
+1.118615
+-.686149
+.020009
+.594526
+-.928035
+.922115
+-.693960
+.441518
+-.322585
+.383631
+-.566596
+.767581
+-.899342
+.924768
+-.857070
+.739547
+-.618435
+.516974
+-.419757
+.278719
+-.046283
+-.278389
+.623332
+-.867033
+.907881
+-.736301
+.453320
+-.212383
+.118359
+-.155572
+.200641
+-.115226
+-.146447
+.494346
+-.758103
+.803359
+-.624363
+.343985
+-.120304
+.031588
+-.030115
+.001624
+.119877
+-.281416
+.349853
+-.231277
+-.032257
+.279544
+-.357278
+.255252
+-.131894
+.197490
+-.540422
+1.035191
+-1.412465
+1.445954
+-1.116928
+.630620
+-.268771
+.187413
+-.310139
+.395291
+-.223547
+-.235918
+.801701
+-1.208234
+1.283840
+-1.049816
+.682864
+-.386972
+.274370
+-.329041
+.454125
+-.550254
+.567475
+-.508969
+.402757
+-.272860
+.130119
+.018584
+-.158859
+.268739
+-.330021
+.339440
+-.309897
+.262999
+-.220792
+.199334
+-.200347
+.201891
+-.161282
+.043534
+.135343
+-.288846
+.300273
+-.111767
+-.202299
+.448912
+-.429283
+.081050
+.455946
+-.908027
+1.032112
+-.767349
+.273242
+.168061
+-.316892
+.101822
+.366419
+-.886275
+1.286653
+-1.494276
+1.514317
+-1.365159
+1.043045
+-.557187
+.000138
+.431617
+-.521370
+.182072
+.441604
+-1.017848
+1.212666
+-.897005
+.230866
+.436019
+-.779118
+.684763
+-.290837
+-.128781
+.345064
+-.299409
+.104966
+.055340
+-.052280
+-.123407
+.377238
+-.577728
+.623523
+-.479805
+.183052
+.175262
+-.480037
+.635531
+-.606287
+.431783
+-.199788
+-.007919
+.158223
+-.264472
+.342724
+-.369158
+.285994
+-.063526
+-.230391
+.424696
+-.334781
+-.100390
+.736590
+-1.277104
+1.443608
+-1.153531
+.576193
+-.023762
+-.247067
+.184234
+.055725
+-.235822
+.197013
+.059251
+-.399308
+.651989
+-.696854
+.504298
+-.131702
+-.301305
+.648431
+-.787493
+.678870
+-.400396
+.122895
+-.023853
+.185045
+-.540115
+.908095
+-1.091901
+.979012
+-.587215
+.041012
+.492078
+-.861838
+.969365
+-.779953
+.331234
+.261008
+-.817081
+1.145174
+-1.121941
+.760964
+-.220865
+-.264737
+.502385
+-.433521
+.152128
+.163735
+-.361567
+.395776
+-.332808
+.282977
+-.309388
+.377181
+-.376186
+.201352
+.163045
+-.610919
+.957553
+-1.035302
+.786269
+-.295862
+-.254195
+.685147
+-.910810
+.961452
+-.932013
+.897357
+-.859564
+.763945
+-.564146
+.277471
+.019108
+-.248487
+.395198
+-.510548
+.652085
+-.810404
+.894975
+-.802956
+.518900
+-.155002
+-.115713
+.189694
+-.120921
+.088653
+-.264596
+.683627
+-1.219214
+1.675253
+-1.911449
+1.901855
+-1.697422
+1.351714
+-.892758
+.364291
+.120261
+-.390149
+.313912
+.087972
+-.613002
+.972315
+-.956042
+.555515
+.040828
+-.568781
+.837834
+-.812175
+.588717
+-.313775
+.108266
+-.041152
+.137574
+-.385479
+.724853
+-1.040485
+1.189222
+-1.066030
+.672492
+-.139094
+-.322677
+.517186
+-.359695
+-.079176
+.601035
+-.966998
+1.006597
+-.699230
+.186319
+.298279
+-.548990
+.495527
+-.232146
+-.050705
+.189967
+-.148667
+.025387
+.028569
+.075447
+-.295899
+.487006
+-.498159
+.278602
+.082267
+-.404050
+.522172
+-.386030
+.089718
+.182817
+-.266016
+.110193
+.190644
+-.458715
+.543581
+-.413856
+.170139
+.028428
+-.073707
+-.019917
+.128939
+-.107628
+-.111588
+.471412
+-.825185
+1.028658
+-1.026494
+.879021
+-.716439
+.653873
+-.722153
+.853958
+-.929882
+.854253
+-.615672
+.295487
+-.016341
+-.139174
+.185454
+-.220469
+.342173
+-.550209
+.711682
+-.633409
+.206133
+.477000
+-1.123807
+1.389232
+-1.083561
+.305754
+.598117
+-1.235708
+1.397765
+-1.158162
+.778147
+-.495694
+.366902
+-.278722
+.105312
+.140895
+-.302070
+.217089
+.117293
+-.514515
+.727544
+-.630792
+.305489
+.032182
+-.188821
+.109172
+.125211
+-.385363
+.585772
+-.712925
+.791335
+-.832335
+.809927
+-.678560
+.418005
+-.073779
+-.238784
+.381774
+-.274042
+-.046160
+.425745
+-.678104
+.694712
+-.511675
+.282511
+-.172931
+.249209
+-.437023
+.579412
+-.552978
+.359841
+-.129334
+.026370
+-.131732
+.380925
+-.606108
+.650937
+-.476237
+.182852
+.061077
+-.135087
+.043957
+.093665
+-.135640
+.022545
+.175097
+-.303373
+.233634
+.045093
+-.416762
+.715318
+-.826195
+.737457
+-.514491
+.237054
+.042785
+-.296536
+.494832
+-.601324
+.594094
+-.487530
+.325107
+-.144898
+-.050571
+.289635
+-.592398
+.927438
+-1.199853
+1.285473
+-1.095957
+.639358
+-.038633
+-.510855
+.829804
+-.843166
+.613684
+-.295751
+.037394
+.102485
+-.164256
+.223000
+-.307575
+.373053
+-.347472
+.206198
+-.002350
+-.176203
+.281790
+-.341091
+.414315
+-.518312
+.590076
+-.531438
+.300735
+.029248
+-.301194
+.371751
+-.203007
+-.120046
+.451884
+-.675136
+.751173
+-.708106
+.592896
+-.433870
+.238626
+-.016599
+-.202871
+.373831
+-.452393
+.413671
+-.257386
+.005767
+.299439
+-.601152
+.836919
+-.955878
+.935253
+-.787595
+.556099
+-.300956
+.081269
+.063971
+-.129717
+.142937
+-.140116
+.134722
+-.100658
+-.007666
+.206048
+-.440299
+.596359
+-.567708
+.337669
+-.011317
+-.238957
+.284984
+-.131593
+-.088362
+.216544
+-.195139
+.117282
+-.156276
+.420741
+-.845151
+1.205048
+-1.256911
+.907195
+-.289150
+-.312741
+.642029
+-.629102
+.417978
+-.245130
+.262045
+-.433521
+.584276
+-.550615
+.313146
+-.005289
+-.203700
+.250176
+-.224335
+.288364
+-.536258
+.910948
+-1.242709
+1.372783
+-1.262479
+1.006281
+-.747379
+.567207
+-.434961
+.252844
+.041543
+-.397949
+.666019
+-.695182
+.450647
+-.056124
+-.275800
+.380117
+-.244568
+.008955
+.135176
+-.066534
+-.205105
+.563467
+-.856855
+.962125
+-.820553
+.455514
+.022935
+-.443980
+.647343
+-.572810
+.304574
+-.023782
+-.106910
+.042493
+.136620
+-.308344
+.410291
+-.477546
+.595769
+-.817677
+1.111059
+-1.369925
+1.470560
+-1.333357
+.962590
+-.455657
+-.021219
+.292512
+-.254458
+-.062765
+.500230
+-.855585
+.999414
+-.937033
+.765572
+-.561327
+.298756
+.117988
+-.727404
+1.399205
+-1.854504
+1.831736
+-1.285127
+.457526
+.247369
+-.517639
+.333923
+.026708
+-.188730
+-.061806
+.634971
+-1.202601
+1.416292
+-1.126119
+.464139
+.241557
+-.651170
+.582252
+-.081925
+-.614373
+1.199770
+-1.429537
+1.217003
+-.658991
+-.014586
+.542144
+-.739594
+.572137
+-.161987
+-.269802
+.503392
+-.420616
+.060363
+.401278
+-.740080
+.797818
+-.559491
+.151258
+.237381
+-.459544
+.483900
+-.394888
+.324654
+-.360523
+.486067
+-.594040
+.564587
+-.358407
+.059109
+.170981
+-.199254
+.022307
+.219721
+-.335175
+.221250
+.050493
+-.276053
+.267720
+-.002699
+-.343720
+.512712
+-.343836
+-.108233
+.605011
+-.877280
+.791458
+-.421909
+-.005682
+.253198
+-.205139
+-.070984
+.364186
+-.435551
+.151362
+.434454
+-1.095716
+1.545084
+-1.584373
+1.209823
+-.609151
+.051114
+.265512
+-.309548
+.202197
+-.105484
+.096261
+-.117415
+.039976
+.213643
+-.583093
+.892489
+-.970134
+.776358
+-.438075
+.156683
+-.055766
+.088014
+-.081536
+-.103602
+.433605
+-.698938
+.671184
+-.303573
+-.192055
+.474622
+-.328761
+-.148108
+.584080
+-.587355
+.037802
+.802151
+-1.445360
+1.497948
+-.912718
+.006243
+.757036
+-1.049885
+.842584
+-.354887
+-.129400
+.435286
+-.548838
+.551920
+-.525066
+.500296
+-.477018
+.455225
+-.440424
+.422532
+-.367393
+.245700
+-.076501
+-.064157
+.090776
+.021713
+-.207281
+.346232
+-.340459
+.166914
+.122664
+-.437688
+.681845
+-.769876
+.647099
+-.326826
+-.078218
+.378818
+-.404831
+.123250
+.312061
+-.634750
+.626682
+-.256159
+-.304905
+.794518
+-1.021907
+.967386
+-.764630
+.592750
+-.558582
+.642407
+-.732003
+.712728
+-.550746
+.313444
+-.115924
+.035377
+-.061082
+.119028
+-.147202
+.153226
+-.201676
+.342641
+-.547423
+.711074
+-.723241
+.550978
+-.269161
+.016914
+.087330
+-.014210
+-.166064
+.332090
+-.383497
+.291460
+-.102019
+-.100402
+.239431
+-.276089
+.214683
+-.094661
+-.023789
+.082040
+-.053467
+-.031474
+.089681
+-.029238
+-.187781
+.506066
+-.793639
+.908948
+-.778317
+.437554
+-.016710
+-.317894
+.431822
+-.272438
+-.112065
+.586273
+-.971317
+1.111497
+-.942481
+.527635
+-.035663
+-.335950
+.451320
+-.289622
+-.063322
+.467484
+-.784239
+.906939
+-.770457
+.361334
+.261235
+-.952284
+1.506910
+-1.737494
+1.571628
+-1.109474
+.587301
+-.248654
+.193654
+-.309945
+.348879
+-.110271
+-.393011
+.922831
+-1.182274
+1.043161
+-.654141
+.332397
+-.316258
+.575788
+-.838635
+.813662
+-.429924
+-.104666
+.471299
+-.494579
+.275400
+-.100019
+.208069
+-.611586
+1.103569
+-1.432151
+1.484881
+-1.333691
+1.121079
+-.903881
+.598395
+-.075126
+-.681115
+1.486548
+-2.029714
+2.057492
+-1.546926
+.742894
+-.032285
+-.269473
+.090991
+.363999
+-.742569
+.749880
+-.317095
+-.366058
+.968506
+-1.211918
+1.025162
+-.571529
+.140455
+.023164
+.151880
+-.545533
+.937670
+-1.140029
+1.086834
+-.840117
+.527316
+-.266416
+.125610
+-.123385
+.241522
+-.427033
+.589599
+-.622614
+.459550
+-.135328
+-.203064
+.367811
+-.251252
+-.085482
+.428624
+-.535435
+.288789
+.222385
+-.754902
+1.063545
+-1.051861
+.821465
+-.589191
+.533203
+-.676244
+.884469
+-.975770
+.853341
+-.566471
+.260314
+-.062577
+-.000838
+-.000732
+-.015889
+.068384
+-.101639
+.055846
+.056532
+-.141340
+.099758
+.069672
+-.236471
+.216340
+.085669
+-.574906
+.996132
+-1.084211
+.737979
+-.097350
+-.529218
+.839217
+-.700815
+.210750
+.378445
+-.806920
+.941426
+-.824442
+.622575
+-.512983
+.574017
+-.738188
+.829730
+-.666352
+.173052
+.551607
+-1.256974
+1.649299
+-1.539692
+.951533
+-.119324
+-.628909
+1.037832
+-1.036312
+.729273
+-.293048
+-.135736
+.498516
+-.776481
+.940120
+-.949872
+.805725
+-.584029
+.406619
+-.356157
+.411978
+-.470595
+.440075
+-.327008
+.235743
+-.274114
+.443223
+-.607223
+.577552
+-.254409
+-.280317
+.793645
+-1.042595
+.931322
+-.573564
+.212927
+-.054918
+.131785
+-.298449
+.358854
+-.221039
+-.039964
+.253889
+-.293636
+.164709
+.018919
+-.137995
+.155336
+-.119603
+.096914
+-.101297
+.086147
+.001863
+-.160825
+.322281
+-.402399
+.372040
+-.285286
+.239874
+-.299430
+.439658
+-.562653
+.570736
+-.443276
+.256290
+-.126916
+.122234
+-.201780
+.240683
+-.122435
+-.163190
+.489685
+-.659727
+.528944
+-.107044
+-.433396
+.851043
+-.975618
+.803457
+-.486684
+.223691
+-.127434
+.163730
+-.200483
+.127151
+.048404
+-.198559
+.169033
+.104980
+-.544296
+.967621
+-1.196151
+1.150035
+-.881131
+.534100
+-.268463
+.185485
+-.289010
+.488478
+-.639391
+.608498
+-.340823
+-.104362
+.575597
+-.905779
+1.000734
+-.882415
+.657995
+-.439670
+.275245
+-.136415
+-.037132
+.281033
+-.579901
+.879816
+-1.115393
+1.227029
+-1.167625
+.917114
+-.510268
+.054634
+.294574
+-.406658
+.252061
+.076457
+-.421540
+.657745
+-.753436
+.754568
+-.714293
+.636029
+-.479003
+.215258
+.118921
+-.424878
+.596264
+-.583021
+.420264
+-.208151
+.061978
+-.061200
+.217448
+-.469206
+.705480
+-.812369
+.726018
+-.465463
+.124734
+.173889
+-.339231
+.348342
+-.242606
+.090303
+.056751
+-.184201
+.302470
+-.411609
+.472202
+-.409493
+.159069
+.270078
+-.760666
+1.119565
+-1.174627
+.881301
+-.362947
+-.153969
+.474014
+-.543059
+.455281
+-.357275
+.331473
+-.353314
+.347552
+-.280044
+.194932
+-.164582
+.206188
+-.250772
+.198047
+-.007740
+-.257317
+.475042
+-.553452
+.485849
+-.329404
+.138366
+.078464
+-.336194
+.615476
+-.832436
+.875921
+-.685913
+.306064
+.137318
+-.514125
+.762082
+-.895309
+.951360
+-.931996
+.794963
+-.503973
+.087840
+.349841
+-.683955
+.840254
+-.825980
+.697519
+-.501118
+.244296
+.078438
+-.436525
+.745892
+-.908331
+.879396
+-.707241
+.506751
+-.384150
+.367364
+-.393639
+.365373
+-.234786
+.056387
+.034701
+.088968
+-.447616
+.911913
+-1.253895
+1.268097
+-.893485
+.262349
+.356750
+-.693901
+.617446
+-.199675
+-.329729
+.716767
+-.822460
+.681893
+-.448319
+.268022
+-.180915
+.119182
+.004390
+-.199443
+.377223
+-.421906
+.290133
+-.051595
+-.163665
+.267168
+-.280252
+.315566
+-.486565
+.812658
+-1.187180
+1.431436
+-1.401375
+1.080965
+-.602412
+.176199
+.031435
+.000676
+-.135072
+.162367
+.064744
+-.535116
+1.080238
+-1.467252
+1.522575
+-1.214651
+.659885
+-.062193
+-.376877
+.539414
+-.435068
+.190582
+.013931
+-.034422
+-.169510
+.525883
+-.898221
+1.151325
+-1.194882
+.997411
+-.590869
+.078799
+.369629
+-.569088
+.409576
+.060265
+-.624122
+.990824
+-.947539
+.486299
+.174484
+-.693791
+.786099
+-.378701
+-.341901
+1.026441
+-1.352787
+1.199320
+-.695975
+.121625
+.282672
+-.455013
+.511004
+-.606809
+.778925
+-.894492
+.760508
+-.309605
+-.290774
+.708922
+-.664648
+.137381
+.590812
+-1.099072
+1.093060
+-.593188
+-.079171
+.506033
+-.432439
+-.083651
+.718996
+-1.089776
+.979734
+-.453553
+-.201380
+.654639
+-.718052
+.430833
+-.009655
+-.291554
+.323086
+-.106117
+-.200799
+.404524
+-.387357
+.165632
+.129703
+-.334999
+.349114
+-.185883
+-.047298
+.228657
+-.304237
+.317116
+-.365811
+.526246
+-.794343
+1.086339
+-1.288117
+1.314691
+-1.143209
+.809898
+-.385485
+-.050112
+.422431
+-.667416
+.735478
+-.602785
+.289316
+.129107
+-.533051
+.802867
+-.874812
+.773682
+-.595235
+.446695
+-.385530
+.397127
+-.419713
+.390069
+-.275814
+.081670
+.159239
+-.395213
+.568504
+-.639090
+.614272
+-.556382
+.546245
+-.616334
+.707218
+-.696816
+.495276
+-.133554
+-.235235
+.437744
+-.411874
+.260814
+-.179302
+.304935
+-.607649
+.901207
+-.966626
+.699266
+-.183241
+-.346909
+.626676
+-.496144
+-.017559
+.705703
+-1.269882
+1.461336
+-1.203367
+.633359
+-.036718
+-.297595
+.224330
+.188811
+-.706982
+1.061023
+-1.090357
+.816920
+-.414032
+.095438
+.007614
+.087988
+-.241504
+.282711
+-.117925
+-.216060
+.579886
+-.819876
+.856208
+-.714508
+.488985
+-.275280
+.127417
+-.060926
+.078894
+-.180638
+.340650
+-.485414
+.507139
+-.322195
+-.062111
+.525275
+-.880934
+.970065
+-.745010
+.295218
+.198028
+-.549607
+.651372
+-.503342
+.183604
+.216943
+-.646440
+1.091373
+-1.524665
+1.850013
+-1.904600
+1.544071
+-.764371
+-.232313
+1.097981
+-1.509271
+1.343241
+-.738578
+-.001319
+.593238
+-.917019
+1.027856
+-1.054153
+1.078605
+-1.093889
+1.048055
+-.917409
+.734757
+-.554957
+.402632
+-.260336
+.110208
+.016003
+-.037975
+-.106854
+.382513
+-.636005
+.675020
+-.396334
+-.128975
+.681723
+-1.018805
+1.010951
+-.705212
+.282199
+.050687
+-.161210
+.041776
+.200969
+-.399344
+.399675
+-.136761
+-.322213
+.795818
+-1.075088
+1.039731
+-.731261
+.326871
+-.022975
+-.093136
+.090083
+-.123448
+.306476
+-.623416
+.951097
+-1.163429
+1.225268
+-1.196992
+1.152231
+-1.089537
+.922369
+-.563148
+.032676
+.500239
+-.793797
+.679940
+-.183420
+-.471120
+.973281
+-1.090863
+.782829
+-.199088
+-.418720
+.863001
+-1.038386
+.964089
+-.725953
+.424162
+-.145292
+-.044813
+.106276
+-.037855
+-.113605
+.264937
+-.334835
+.288905
+-.160304
+.025926
+.049411
+-.061460
+.068804
+-.141855
+.292918
+-.440364
+.440218
+-.172189
+-.372112
+1.056663
+-1.649371
+1.928044
+-1.787778
+1.293270
+-.650159
+.111133
+.137243
+-.052959
+-.254147
+.588836
+-.775065
+.741830
+-.542845
+.304163
+-.140590
+.099686
+-.164315
+.293414
+-.451681
+.599569
+-.666889
+.561192
+-.231579
+-.256876
+.717220
+-.938833
+.832001
+-.502325
+.180709
+-.052609
+.122011
+-.222739
+.165998
+.103361
+-.471462
+.759385
+-.863028
+.805764
+-.673610
+.513752
+-.301635
+.003098
+.341517
+-.606648
+.667047
+-.507094
+.252324
+-.087485
+.122270
+-.310380
+.482854
+-.465740
+.192865
+.260120
+-.728218
+1.047355
+-1.125935
+.971895
+-.679305
+.387190
+-.221136
+.233097
+-.368300
+.485980
+-.433357
+.134712
+.357236
+-.878696
+1.230612
+-1.272714
+.991828
+-.515436
+.062800
+.151356
+-.021342
+-.391225
+.884472
+-1.221167
+1.250265
+-.969567
+.495595
+.026598
+-.501655
+.898507
+-1.208562
+1.399408
+-1.412051
+1.205129
+-.807501
+.332245
+.065538
+-.263244
+.230819
+-.038292
+-.193397
+.365000
+-.447270
+.476020
+-.503777
+.549485
+-.585582
+.568557
+-.483319
+.362714
+-.267342
+.245296
+-.304157
+.411943
+-.517114
+.567136
+-.518709
+.350241
+-.084436
+-.194214
+.359200
+-.311152
+.060496
+.244324
+-.386504
+.217733
+.230448
+-.746283
+1.056609
+-.987641
+.563723
+.012287
+-.474917
+.635096
+-.467191
+.105660
+.240442
+-.405773
+.353537
+-.178260
+.028498
+-.005876
+.111501
+-.270642
+.403716
+-.480493
+.518679
+-.542746
+.550031
+-.515782
+.427894
+-.314317
+.234718
+-.239329
+.325816
+-.428299
+.451633
+-.332966
+.090082
+.179909
+-.356565
+.372272
+-.254656
+.102503
+-.011561
+.005851
+-.027617
+-.006272
+.126309
+-.274325
+.341344
+-.252010
+.029798
+.210664
+-.342238
+.316693
+-.199948
+.124945
+-.199187
+.435414
+-.750449
+1.022316
+-1.156356
+1.117050
+-.921376
+.620537
+-.294115
+.050874
+-.008507
+.236611
+-.686724
+1.165274
+-1.396451
+1.166165
+-.469740
+-.441106
+1.168168
+-1.386624
+1.041409
+-.385983
+-.171694
+.319456
+-.022500
+-.481137
+.858301
+-.902057
+.645260
+-.300530
+.085975
+-.071042
+.150588
+-.152492
+-.014741
+.289440
+-.507839
+.529629
+-.339407
+.054686
+.152949
+-.159981
+-.048662
+.385804
+-.716394
+.923084
+-.953288
+.832871
+-.648169
+.507702
+-.500299
+.663014
+-.965648
+1.313967
+-1.573905
+1.616293
+-1.370226
+.860128
+-.201602
+-.446498
+.945688
+-1.218827
+1.249848
+-1.058117
+.679386
+-.169126
+-.386340
+.876475
+-1.198900
+1.297285
+-1.176790
+.887527
+-.492028
+.041325
+.426836
+-.872657
+1.237631
+-1.444147
+1.421707
+-1.154151
+.720206
+-.288583
+.047054
+-.092827
+.353493
+-.605595
+.598731
+-.215972
+-.435044
+1.068358
+-1.380443
+1.223983
+-.683287
+.008880
+.534511
+-.798965
+.784814
+-.576983
+.259119
+.120367
+-.517210
+.844444
+-.971925
+.788262
+-.283832
+-.408175
+1.047814
+-1.386544
+1.277491
+-.745448
+-.013796
+.705820
+-1.056406
+.929531
+-.391163
+-.317557
+.890773
+-1.097495
+.877325
+-.346581
+-.276062
+.772496
+-1.002734
+.934091
+-.631257
+.225258
+.130041
+-.311885
+.281101
+-.106812
+-.061452
+.072481
+.134784
+-.482231
+.785234
+-.858053
+.633230
+-.218914
+-.149989
+.244010
+.024288
+-.544186
+1.064871
+-1.331277
+1.217831
+-.788814
+.258113
+.126737
+-.216737
+.040505
+.217470
+-.334742
+.198648
+.113813
+-.385837
+.415203
+-.166876
+-.188819
+.387211
+-.255611
+-.156598
+.599134
+-.782966
+.572679
+-.074003
+-.446376
+.750849
+-.790107
+.712085
+-.717444
+.881068
+-1.086974
+1.129437
+-.892978
+.458164
+-.046256
+-.147048
+.089361
+.085964
+-.201406
+.172710
+-.054971
+-.024340
+-.022123
+.174939
+-.330176
+.381741
+-.297059
+.134517
+.000521
+-.021640
+-.097779
+.328400
+-.615237
+.900406
+-1.121860
+1.205006
+-1.077928
+.719241
+-.207326
+-.279484
+.535236
+-.439890
+.042086
+.450087
+-.775184
+.762726
+-.428275
+-.039563
+.394668
+-.480550
+.316585
+-.068663
+-.074902
+.035849
+.104722
+-.173214
+.035751
+.300482
+-.688423
+.941903
+-.962584
+.803981
+-.630035
+.599563
+-.757987
+1.010176
+-1.188820
+1.165757
+-.926047
+.558498
+-.182004
+-.125764
+.343162
+-.465347
+.464640
+-.301352
+-.018576
+.397577
+-.671053
+.702023
+-.477546
+.126935
+.159506
+-.252899
+.159761
+-.000458
+-.078859
+-.011399
+.278165
+-.669169
+1.102782
+-1.475711
+1.662890
+-1.546252
+1.083350
+-.375357
+-.331073
+.740423
+-.663071
+.132026
+.603020
+-1.211987
+1.469404
+-1.369245
+1.096741
+-.880997
+.835342
+-.896927
+.902724
+-.736003
+.426609
+-.128470
+-.003570
+-.064173
+.219608
+-.292130
+.177812
+.094458
+-.397219
+.598579
+-.636533
+.524390
+-.303111
+-.002192
+.379387
+-.790465
+1.145296
+-1.326937
+1.259105
+-.964018
+.561327
+-.204840
+.002975
+.020033
+.096890
+-.301778
+.557667
+-.824880
+1.022837
+-1.024548
+.714153
+-.082143
+-.712776
+1.379719
+-1.633312
+1.360834
+-.711429
+.037479
+.291004
+-.093496
+-.518670
+1.208747
+-1.608613
+1.521348
+-1.012835
+.348277
+.172309
+-.371584
+.256304
+.033706
+-.335026
+.550186
+-.668880
+.727464
+-.752685
+.736375
+-.656365
+.520122
+-.387947
+.346724
+-.443133
+.622376
+-.727047
+.576888
+-.092236
+-.619419
+1.284412
+-1.597761
+1.397646
+-.769930
+.011566
+.528479
+-.634503
+.325861
+.177366
+-.594231
+.741713
+-.623496
+.405701
+-.300229
+.426219
+-.732763
+1.030500
+-1.113399
+.893077
+-.456840
+.010330
+.255594
+-.281571
+.161239
+-.057313
+.077938
+-.204716
+.322117
+-.319271
+.180903
+.004778
+-.124601
+.137130
+-.104051
+.127845
+-.247594
+.383139
+-.381107
+.132848
+.326597
+-.818097
+1.121622
+-1.110177
+.820252
+-.415188
+.076336
+.096551
+-.111687
+.036637
+.071458
+-.197140
+.342763
+-.484523
+.559258
+-.500516
+.294611
+-.006951
+-.245206
+.353561
+-.268688
+.011686
+.345269
+-.704648
+.962095
+-1.027040
+.857353
+-.496898
+.082146
+.208597
+-.247450
+.032421
+.311364
+-.611917
+.755525
+-.742530
+.659807
+-.603253
+.614412
+-.671237
+.721560
+-.720174
+.644046
+-.490236
+.273375
+-.027699
+-.196116
+.346620
+-.393291
+.338847
+-.214523
+.063553
+.074906
+-.174997
+.228155
+-.245809
+.259380
+-.310121
+.424025
+-.580592
+.699516
+-.669190
+.416184
+.023401
+-.487444
+.757435
+-.685371
+.298345
+.195781
+-.516727
+.472404
+-.072316
+-.476100
+.885315
+-.948105
+.647063
+-.153584
+-.277483
+.452444
+-.338426
+.064579
+.166966
+-.201488
+.012894
+.291490
+-.532294
+.545551
+-.256254
+-.285468
+.914533
+-1.406334
+1.563444
+-1.301147
+.690226
+.070095
+-.738188
+1.130471
+-1.185622
+.968727
+-.626623
+.324215
+-.184883
+.245599
+-.434874
+.590571
+-.531254
+.165229
+.421140
+-.968500
+1.170043
+-.859534
+.141489
+.636881
+-1.070942
+.931456
+-.298089
+-.488117
+1.019386
+-1.044446
+.595736
+.040989
+-.490815
+.497747
+-.065392
+-.549867
+.993903
+-1.028664
+.669744
+-.157257
+-.216428
+.295676
+-.132995
+-.096945
+.257735
+-.354163
+.502710
+-.806473
+1.241884
+-1.645734
+1.807723
+-1.598250
+1.046112
+-.324811
+-.332897
+.737472
+-.810708
+.597423
+-.228829
+-.136606
+.368642
+-.400459
+.241009
+.031569
+-.292360
+.409829
+-.300533
+-.020744
+.429667
+-.743186
+.817262
+-.634077
+.315948
+-.049321
+-.032795
+-.071409
+.247484
+-.357641
+.343729
+-.268957
+.271926
+-.463123
+.829768
+-1.212523
+1.379820
+-1.167280
+.600529
+.086540
+-.570077
+.630301
+-.294796
+-.174658
+.453192
+-.367221
+.002852
+.365236
+-.468688
+.224384
+.219717
+-.586744
+.638518
+-.300041
+-.318231
+.986794
+-1.458546
+1.556121
+-1.224543
+.546889
+.277485
+-.993113
+1.377197
+-1.326744
+.902215
+-.300434
+-.235544
+.525439
+-.523269
+.316603
+-.060699
+-.109845
+.142102
+-.072805
+-.008437
+.011496
+.111376
+-.341243
+.588941
+-.719429
+.611977
+-.241235
+-.270512
+.687222
+-.787705
+.517073
+-.046858
+-.320430
+.348986
+-.026504
+-.439932
+.783389
+-.863591
+.736581
+-.566805
+.470589
+-.425134
+.309516
+-.030665
+-.375533
+.747862
+-.901404
+.749898
+-.363140
+-.074977
+.373945
+-.435312
+.281692
+-.009156
+-.287819
+.557175
+-.773199
+.898245
+-.877790
+.687347
+-.390286
+.141064
+-.109731
+.372481
+-.849055
+1.336299
+-1.617867
+1.579067
+-1.259242
+.820112
+-.456802
+.301975
+-.369456
+.560897
+-.729562
+.765843
+-.654430
+.467725
+-.301471
+.201839
+-.140926
+.059484
+.062103
+-.171386
+.185838
+-.077600
+-.075193
+.127537
+.021359
+-.330436
+.618021
+-.675276
+.416112
+.046031
+-.456685
+.579746
+-.351189
+-.079385
+.449914
+-.562569
+.413764
+-.185280
+.102633
+-.264662
+.571389
+-.802977
+.785839
+-.516238
+.150126
+.122448
+-.212307
+.172434
+-.127909
+.164771
+-.268730
+.351099
+-.327655
+.183467
+.018355
+-.178411
+.217294
+-.113006
+-.092081
+.310574
+-.446492
+.438981
+-.298166
+.112165
+-.011178
+.098136
+-.382668
+.762720
+-1.073481
+1.178516
+-1.044890
+.750703
+-.420616
+.139040
+.091172
+-.314264
+.545697
+-.726680
+.755495
+-.573469
+.230644
+.130948
+-.369730
+.440820
+-.417835
+.421280
+-.509824
+.621535
+-.615315
+.385819
+.034787
+-.470753
+.707364
+-.636256
+.334400
+-.012027
+-.137383
+.074325
+.068117
+-.100210
+-.064885
+.337121
+-.524536
+.498650
+-.312311
+.164216
+-.229646
+.495569
+-.746458
+.728152
+-.364347
+-.155186
+.499100
+-.441667
+.038426
+.411382
+-.587123
+.380841
+.032996
+-.335783
+.297184
+.071213
+-.540964
+.833586
+-.799183
+.488001
+-.085751
+-.221426
+.352950
+-.349067
+.305772
+-.290184
+.299603
+-.286844
+.222628
+-.140206
+.121777
+-.233029
+.454876
+-.669506
+.721044
+-.516593
+.100022
+.355212
+-.638002
+.624179
+-.358246
+.036613
+.107109
+.048023
+-.419105
+.754807
+-.789100
+.421659
+.196235
+-.739287
+.909851
+-.635302
+.126690
+.246635
+-.188612
+-.336200
+1.080706
+-1.669659
+1.826062
+-1.523914
+.977707
+-.490159
+.267987
+-.323357
+.508379
+-.636694
+.597825
+-.395937
+.114671
+.140593
+-.278372
+.235892
+-.001093
+-.352378
+.655614
+-.705900
+.390957
+.202925
+-.793863
+1.045835
+-.773116
+.074037
+.703248
+-1.153251
+1.049706
+-.480013
+-.207343
+.610859
+-.511007
+-.012096
+.644234
+-1.034062
+.991462
+-.568745
+-.006010
+.479081
+-.700559
+.664099
+-.460232
+.199786
+.034989
+-.195857
+.255932
+-.209653
+.088081
+.038116
+-.091378
+.042301
+.058730
+-.109745
+.032922
+.159828
+-.366520
+.464622
+-.398364
+.218812
+-.049816
+.008234
+-.134518
+.373623
+-.608245
+.717429
+-.630822
+.359579
+.004006
+-.320794
+.466554
+-.395803
+.167400
+.096688
+-.303009
+.462789
+-.680778
+1.046264
+-1.505721
+1.835543
+-1.771528
+1.219855
+-.383720
+-.321160
+.530839
+-.192537
+-.382335
+.725863
+-.537578
+-.112011
+.843950
+-1.243669
+1.135985
+-.665482
+.144374
+.194341
+-.343144
+.465844
+-.709298
+1.048425
+-1.293392
+1.247383
+-.878764
+.362291
+.044310
+-.186595
+.111441
+-.001710
+.007703
+-.117377
+.171787
+-.010692
+-.372991
+.797791
+-1.009470
+.860998
+-.421486
+-.065043
+.337255
+-.276825
+-.033909
+.382451
+-.564462
+.497774
+-.252109
+-.006853
+.115751
+-.000865
+-.285359
+.593844
+-.762273
+.711569
+-.498725
+.285353
+-.232725
+.390006
+-.656967
+.853174
+-.844856
+.634047
+-.343734
+.114810
+.001274
+-.072273
+.219474
+-.509949
+.885691
+-1.176755
+1.188635
+-.813403
+.105189
+.718603
+-1.355917
+1.550166
+-1.215703
+.494814
+.295807
+-.816383
+.879396
+-.547485
+.088894
+.187274
+-.113801
+-.248782
+.671082
+-.908095
+.840310
+-.519007
+.107220
+.225340
+-.382525
+.361462
+-.222254
+.040643
+.128603
+-.266369
+.382606
+-.495434
+.608564
+-.702127
+.746357
+-.728960
+.673336
+-.627219
+.625591
+-.655757
+.656478
+-.557866
+.336009
+-.040850
+-.227756
+.382835
+-.409007
+.373092
+-.375783
+.476303
+-.643131
+.766124
+-.722555
+.454861
+-.013768
+-.454474
+.769718
+-.802992
+.551127
+-.162832
+-.113987
+.059374
+.375962
+-1.005729
+1.485776
+-1.508603
+.997077
+-.162961
+-.618519
+1.037045
+-1.021076
+.740387
+-.447988
+.290719
+-.231779
+.132118
+.091885
+-.373077
+.539229
+-.456247
+.145893
+.219611
+-.437840
+.411975
+-.198685
+-.056512
+.232291
+-.302589
+.322788
+-.359245
+.426138
+-.474482
+.431605
+-.256492
+-.026030
+.330108
+-.548758
+.608409
+-.510063
+.332036
+-.186936
+.154433
+-.231529
+.336268
+-.365704
+.269208
+-.083340
+-.098640
+.199708
+-.217020
+.217965
+-.277262
+.408214
+-.546606
+.601509
+-.528962
+.365045
+-.192150
+.072081
+-.008338
+-.029829
+.049250
+-.004465
+-.161415
+.433494
+-.677475
+.690589
+-.337511
+-.322692
+1.025186
+-1.434488
+1.346749
+-.821286
+.147759
+.330123
+-.413972
+.143656
+.263798
+-.569982
+.651310
+-.532580
+.318475
+-.094552
+-.123527
+.364750
+-.638115
+.890051
+-1.019311
+.936532
+-.625580
+.168970
+.275749
+-.537930
+.509550
+-.201312
+-.252832
+.655030
+-.841377
+.761703
+-.491157
+.169988
+.080408
+-.206873
+.218755
+-.155948
+.070394
+-.028489
+.103315
+-.330489
+.648002
+-.880576
+.812857
+-.325211
+-.499366
+1.385703
+-2.003012
+2.142513
+-1.816944
+1.221635
+-.597542
+.102533
+.225266
+-.412378
+.477307
+-.415608
+.250339
+-.084191
+.079704
+-.357528
+.884585
+-1.450842
+1.776365
+-1.688638
+1.245550
+-.706705
+.362365
+-.337467
+.513523
+-.627818
+.476970
+-.071192
+-.376660
+.614570
+-.536410
+.245479
+.044207
+-.178673
+.165502
+-.132618
+.194818
+-.350473
+.493506
+-.517195
+.407210
+-.239616
+.094980
+.020040
+-.162089
+.360631
+-.539882
+.542404
+-.250888
+-.290518
+.865716
+-1.209722
+1.176239
+-.822228
+.348092
+.053814
+-.320916
+.523102
+-.756717
+1.026727
+-1.217730
+1.176960
+-.841073
+.303397
+.234908
+-.595536
+.739699
+-.783869
+.901070
+-1.178525
+1.537657
+-1.780612
+1.735190
+-1.391786
+.924836
+-.574989
+.476824
+-.562766
+.618116
+-.445097
+.013554
+.508563
+-.858578
+.837890
+-.423149
+-.226332
+.853040
+-1.223223
+1.228919
+-.930869
+.526550
+-.252291
+.259175
+-.525436
+.860980
+-1.012683
+.814970
+-.293793
+-.343371
+.825596
+-.968199
+.760037
+-.341770
+-.096725
+.424109
+-.613503
+.712308
+-.774916
+.813915
+-.799475
+.694583
+-.490666
+.218289
+.064283
+-.287748
+.385750
+-.315563
+.091581
+.188207
+-.361415
+.283129
+.069120
+-.546970
+.894617
+-.898188
+.521418
+.069555
+-.609145
+.887303
+-.850131
+.592276
+-.269987
+.009525
+.132879
+-.157185
+.088870
+.034719
+-.159181
+.213082
+-.134505
+-.084626
+.371942
+-.596794
+.637308
+-.449899
+.094480
+.297922
+-.586562
+.672236
+-.522515
+.182417
+.222640
+-.508775
+.503252
+-.146371
+-.440072
+.988568
+-1.229712
+1.059059
+-.607658
+.158430
+.037431
+.084399
+-.380287
+.617991
+-.644756
+.485465
+-.308821
+.293437
+-.490183
+.775539
+-.926517
+.767292
+-.289990
+-.329598
+.830958
+-1.016778
+.855794
+-.482669
+.108011
+.095089
+-.061489
+-.163117
+.465922
+-.719887
+.822687
+-.720880
+.427405
+-.029787
+-.325172
+.481998
+-.351531
+-.029379
+.499044
+-.848456
+.936413
+-.767784
+.476806
+-.223465
+.077667
+.020496
+-.192924
+.500415
+-.862324
+1.086798
+-.995462
+.553485
+.090374
+-.683758
+1.014963
+-1.022992
+.805919
+-.536034
+.350697
+-.290927
+.311995
+-.337595
+.310908
+-.215569
+.069392
+.091967
+-.230311
+.317310
+-.344331
+.325399
+-.289469
+.263764
+-.257855
+.258822
+-.241665
+.188609
+-.104074
+.012708
+.059278
+-.104476
+.135140
+-.158226
+.145114
+-.029810
+-.247947
+.678998
+-1.153313
+1.499793
+-1.583258
+1.392782
+-1.051116
+.730170
+-.532291
+.431307
+-.323497
+.145957
+.043476
+-.104573
+-.052753
+.357063
+-.594919
+.562403
+-.232431
+-.200574
+.442269
+-.297563
+-.198723
+.808434
+-1.243824
+1.334377
+-1.098651
+.691516
+-.282091
+-.046074
+.311229
+-.571246
+.843935
+-1.075609
+1.177559
+-1.093135
+.835855
+-.471564
+.069921
+.325297
+-.684950
+.966223
+-1.109789
+1.074700
+-.877989
+.593998
+-.305143
+.046963
+.198244
+-.448081
+.657858
+-.717911
+.531608
+-.117716
+-.353230
+.635865
+-.558209
+.138737
+.411513
+-.804595
+.833673
+-.477611
+-.100198
+.645796
+-.940615
+.893217
+-.557935
+.084087
+.365602
+-.679121
+.814586
+-.781935
+.616185
+-.364482
+.083878
+.169204
+-.365262
+.523820
+-.698971
+.921024
+-1.133323
+1.188042
+-.933283
+.347803
+.380740
+-.919594
+.982833
+-.528071
+-.191456
+.775491
+-.933995
+.672164
+-.269414
+.066805
+-.218587
+.588920
+-.866491
+.808545
+-.430353
+-.002436
+.172680
+.049250
+-.508435
+.882034
+-.915752
+.594824
+-.122978
+-.258750
+.454560
+-.549682
+.684733
+-.893345
+1.050609
+-.974718
+.587504
+.005533
+-.576703
+.916589
+-.937417
+.676754
+-.237005
+-.262677
+.689880
+-.897580
+.770263
+-.309414
+-.316791
+.828919
+-.984166
+.718749
+-.181138
+-.367358
+.710463
+-.784152
+.673261
+-.520983
+.426857
+-.397893
+.367933
+-.255618
+.019873
+.312371
+-.650809
+.873143
+-.874893
+.623687
+-.194769
+-.239329
+.475739
+-.383980
+-.007403
+.497351
+-.796807
+.679052
+-.114642
+-.694980
+1.417776
+-1.773611
+1.686546
+-1.307696
+.894609
+-.633728
+.531200
+-.443237
+.211514
+.204331
+-.692551
+1.065813
+-1.180680
+1.013234
+-.651513
+.229704
+.139747
+-.396474
+.523579
+-.525302
+.415743
+-.224329
+.005316
+.166213
+-.218411
+.116151
+.118057
+-.413278
+.688315
+-.895863
+1.041713
+-1.162875
+1.278976
+-1.355738
+1.315683
+-1.097349
+.722734
+-.317807
+.058242
+-.067536
+.334188
+-.708776
+.988890
+-1.038088
+.858676
+-.569049
+.305736
+-.125609
+-.017191
+.205913
+-.465832
+.721646
+-.844304
+.748601
+-.461907
+.112670
+.147120
+-.225597
+.128665
+.058079
+-.218788
+.259069
+-.143366
+-.090090
+.344226
+-.508528
+.516867
+-.383774
+.191998
+-.036289
+-.037502
+.053290
+-.070303
+.121367
+-.173461
+.143747
+.039088
+-.373462
+.770314
+-1.098383
+1.259027
+-1.239577
+1.110278
+-.970879
+.887116
+-.860512
+.845541
+-.791896
+.675523
+-.500695
+.286327
+-.062075
+-.118249
+.168976
+-.002142
+-.403392
+.937477
+-1.363344
+1.421040
+-.985707
+.178358
+.663029
+-1.158598
+1.108499
+-.614099
+.008983
+.360678
+-.356640
+.116040
+.077602
+-.018378
+-.271426
+.570265
+-.631931
+.364529
+.116882
+-.585838
+.857463
+-.880231
+.717002
+-.460661
+.169704
+.130063
+-.401937
+.574789
+-.574098
+.383458
+-.075931
+-.223834
+.424097
+-.528810
+.621127
+-.775023
+.965371
+-1.055089
+.879512
+-.372129
+-.357740
+1.052827
+-1.428983
+1.321668
+-.778549
+.049165
+.527549
+-.687365
+.374916
+.228458
+-.806929
+1.088697
+-.991346
+.641424
+-.260008
+.002790
+.126220
+-.229887
+.391866
+-.583427
+.685445
+-.605086
+.381750
+-.181216
+.170554
+-.370249
+.607789
+-.623997
+.265491
+.376055
+-.987689
+1.220302
+-.916429
+.225372
+.479089
+-.827849
+.678507
+-.181342
+-.346256
+.636205
+-.619702
+.419358
+-.217832
+.121651
+-.117241
+.125137
+-.082035
+-.020598
+.155369
+-.295893
+.430344
+-.546573
+.617344
+-.609047
+.508826
+-.343433
+.171793
+-.059157
+.054406
+-.181365
+.435241
+-.772827
+1.104517
+-1.311803
+1.300769
+-1.063565
+.696425
+-.346542
+.118369
+-.011623
+-.056692
+.162714
+-.295322
+.357281
+-.253080
+-.007169
+.277918
+-.358538
+.133965
+.325923
+-.785717
+.977200
+-.758443
+.194017
+.491140
+-1.043367
+1.303648
+-1.250709
+.961848
+-.547888
+.117208
+.224121
+-.373676
+.266964
+.070128
+-.503181
+.842427
+-.945008
+.794504
+-.496761
+.196177
+.019261
+-.150056
+.238791
+-.298712
+.289206
+-.161623
+-.069505
+.301910
+-.398966
+.282844
+.009016
+-.350885
+.615968
+-.750026
+.772031
+-.709316
+.535903
+-.182445
+-.378442
+1.043170
+-1.574376
+1.714574
+-1.350856
+.613369
+.174613
+-.674924
+.727833
+-.432973
+.066678
+.102553
+.026335
+-.352125
+.664853
+-.783610
+.640604
+-.276392
+-.213064
+.714287
+-1.098705
+1.225166
+-.985650
+.387205
+.394471
+-1.056040
+1.305314
+-1.020298
+.324171
+.478028
+-1.063059
+1.250482
+-1.066474
+.687207
+-.317405
+.090249
+-.040420
+.138645
+-.335720
+.576596
+-.790298
+.893449
+-.829634
+.619657
+-.369209
+.206177
+-.184847
+.236479
+-.218132
+.030361
+.289882
+-.579373
+.656293
+-.441586
+.005230
+.484571
+-.856885
+1.008674
+-.921266
+.642440
+-.264510
+-.094658
+.322040
+-.355960
+.223994
+-.036210
+-.077723
+.054779
+.052076
+-.104053
+-.024258
+.341481
+-.708958
+.916008
+-.817358
+.437065
+.040609
+-.390209
+.487393
+-.369513
+.177317
+-.036155
+-.022839
+.047083
+-.085294
+.130344
+-.132675
+.061703
+.052827
+-.142963
+.167065
+-.152290
+.169290
+-.256691
+.362762
+-.364192
+.158438
+.239596
+-.678525
+.955064
+-.946540
+.694488
+-.376305
+.184813
+-.202668
+.358330
+-.489324
+.463353
+-.272727
+.039327
+.072068
+.025802
+-.270031
+.477036
+-.462122
+.172884
+.256863
+-.577165
+.575833
+-.215305
+-.337875
+.809239
+-.973540
+.774582
+-.340772
+-.102577
+.364076
+-.383330
+.244025
+-.104834
+.095816
+-.244903
+.474312
+-.659539
+.704550
+-.584813
+.341836
+-.050061
+-.212801
+.378698
+-.396098
+.245373
+.039741
+-.364485
+.598156
+-.629296
+.424952
+-.059430
+-.307575
+.498710
+-.401764
+.026722
+.493044
+-.958680
+1.195645
+-1.131124
+.822219
+-.423885
+.115111
+-.018591
+.147932
+-.403836
+.621419
+-.650908
+.435753
+-.045920
+-.358753
+.620054
+-.673076
+.576294
+-.458232
+.421075
+-.474848
+.550418
+-.572989
+.527698
+-.459466
+.410676
+-.360059
+.226993
+.051794
+-.434290
+.754872
+-.807418
+.481465
+.147044
+-.845020
+1.360778
+-1.576197
+1.559280
+-1.476807
+1.438267
+-1.402302
+1.227804
+-.827915
+.289966
+.152940
+-.286627
+.084007
+.264677
+-.487587
+.426538
+-.142480
+-.140939
+.203452
+.019826
+-.398930
+.694545
+-.702735
+.369313
+.184871
+-.728829
+1.032327
+-.964265
+.540138
+.088859
+-.690628
+1.032282
+-.966644
+.498027
+.205869
+-.875847
+1.257594
+-1.225116
+.829968
+-.263338
+-.240727
+.505726
+-.472726
+.206533
+.141420
+-.394873
+.419704
+-.176335
+-.261570
+.732772
+-1.052532
+1.091609
+-.837822
+.411257
+-.020252
+-.130752
+-.056072
+.510617
+-1.015952
+1.312333
+-1.234451
+.802575
+-.209573
+-.290969
+.525376
+-.480803
+.282703
+-.097683
+.036114
+-.114872
+.285125
+-.484428
+.667998
+-.807132
+.874696
+-.842519
+.695433
+-.446796
+.139665
+.167260
+-.417137
+.566074
+-.588711
+.484261
+-.282545
+.041018
+.173118
+-.309078
+.350262
+-.314097
+.239755
+-.176032
+.172402
+-.263948
+.446653
+-.660075
+.805361
+-.803949
+.661184
+-.477927
+.383953
+-.431313
+.530884
+-.496159
+.179690
+.390421
+-.982097
+1.279813
+-1.087409
+.478058
+.219696
+-.605044
+.446716
+.171015
+-.891926
+1.293613
+-1.127401
+.449631
+.424529
+-1.104797
+1.332183
+-1.093173
+.592452
+-.119470
+-.105324
+.024488
+.254820
+-.534207
+.628339
+-.454521
+.072455
+.345257
+-.604120
+.596896
+-.365578
+.070517
+.118967
+-.138285
+.062385
+-.035852
+.151744
+-.373119
+.558889
+-.575442
+.410113
+-.199071
+.142813
+-.362923
+.798232
+-1.216925
+1.346117
+-1.041030
+.384731
+.350256
+-.857874
+.972095
+-.744852
+.379226
+-.070029
+-.131156
+.327387
+-.657745
+1.141385
+-1.610034
+1.792820
+-1.501849
+.785249
+.071774
+-.710982
+.922181
+-.767003
+.518056
+-.457699
+.681046
+-1.040997
+1.267340
+-1.164776
+.742620
+-.187269
+-.289494
+.601751
+-.822967
+1.083204
+-1.422029
+1.723620
+-1.791730
+1.506216
+-.934338
+.306371
+.125643
+-.235141
+.066712
+.236663
+-.545554
+.798330
+-.972017
+1.028908
+-.915239
+.623118
+-.248154
+-.033731
+.074696
+.133825
+-.444000
+.652237
+-.642813
+.463943
+-.281164
+.249035
+-.401392
+.637105
+-.801290
+.792334
+-.615735
+.355346
+-.098411
+-.118715
+.304038
+-.460250
+.548519
+-.507595
+.314845
+-.031155
+-.218166
+.317682
+-.230877
+.008809
+.261731
+-.517654
+.734501
+-.895941
+.963517
+-.888245
+.657038
+-.324963
+-.005581
+.246998
+-.376019
+.428362
+-.447869
+.441768
+-.383428
+.254463
+-.078565
+-.089024
+.203701
+-.258298
+.265348
+-.216783
+.073012
+.194822
+-.545026
+.852614
+-.972670
+.837339
+-.507186
+.131305
+.152728
+-.298929
+.352983
+-.381381
+.395076
+-.332889
+.118811
+.252738
+-.673449
+.962259
+-.973934
+.702893
+-.302571
+-.006590
+.084230
+.034373
+-.170627
+.142077
+.098064
+-.431137
+.674012
+-.725813
+.640291
+-.567442
+.615738
+-.748887
+.802086
+-.607932
+.138334
+.443783
+-.864986
+.903282
+-.526667
+-.079341
+.610147
+-.804697
+.576613
+-.044280
+-.546099
+.950105
+-1.031987
+.799669
+-.370147
+-.094984
+.444290
+-.570268
+.433807
+-.083335
+-.349892
+.701894
+-.857993
+.813158
+-.658621
+.499565
+-.371113
+.225920
+-.002401
+-.292827
+.567714
+-.708857
+.666969
+-.488043
+.271304
+-.102431
+.021557
+-.036551
+.142852
+-.313077
+.469588
+-.488073
+.260840
+.212707
+-.781762
+1.198631
+-1.253859
+.908983
+-.335643
+-.173382
+.371968
+-.203849
+-.169389
+.472878
+-.486886
+.170791
+.332686
+-.805370
+1.093731
+-1.186471
+1.185210
+-1.199776
+1.247887
+-1.231694
+1.006293
+-.491381
+-.252792
+1.037454
+-1.637222
+1.900681
+-1.812092
+1.476485
+-1.052055
+.678072
+-.433920
+.333595
+-.341457
+.395547
+-.433304
+.415561
+-.340781
+.240955
+-.160519
+.131305
+-.156973
+.212164
+-.252351
+.229528
+-.111866
+-.096459
+.346226
+-.556930
+.653483
+-.605604
+.442445
+-.230686
+.032556
+.123653
+-.241871
+.335520
+-.410175
+.464798
+-.498311
+.501732
+-.439864
+.254018
+.090539
+-.536800
+.914068
+-1.011124
+.716061
+-.121139
+-.502528
+.862071
+-.824761
+.491941
+-.112469
+-.093559
+.068235
+.082400
+-.199250
+.195788
+-.105900
+.035011
+-.068771
+.212086
+-.393517
+.516885
+-.515505
+.377044
+-.136384
+-.145700
+.401895
+-.572697
+.621237
+-.547956
+.394760
+-.227395
+.101336
+-.033881
+.005873
+.008109
+-.009852
+-.021133
+.094651
+-.180267
+.218241
+-.170733
+.068667
+-.004696
+.066634
+-.260477
+.488472
+-.608126
+.533638
+-.305582
+.074610
+-.007258
+.178059
+-.521975
+.877867
+-1.088741
+1.087609
+-.914551
+.666129
+-.426022
+.228249
+-.065961
+-.080037
+.224015
+-.373858
+.528225
+-.664132
+.731893
+-.680185
+.503810
+-.270910
+.090247
+-.030440
+.057559
+-.054546
+-.080093
+.333082
+-.566027
+.613318
+-.413364
+.064130
+.248424
+-.395842
+.410250
+-.459108
+.705703
+-1.160106
+1.636245
+-1.854790
+1.625995
+-.987721
+.202678
+.387383
+-.557529
+.320394
+.102610
+-.433509
+.507854
+-.351278
+.123204
+.017152
+-.020139
+-.042405
+.056854
+.030133
+-.162565
+.210390
+-.062214
+-.285025
+.697361
+-.960811
+.900072
+-.491584
+-.103728
+.621353
+-.844972
+.730719
+-.417778
+.119345
+.022825
+-.012153
+-.047934
+.068610
+-.058539
+.106954
+-.287564
+.569264
+-.812434
+.858795
+-.648508
+.277564
+.049954
+-.146880
+-.034816
+.365116
+-.609378
+.569964
+-.206468
+-.342960
+.849848
+-1.130006
+1.133726
+-.939822
+.673476
+-.416661
+.173566
+.096248
+-.413337
+.735660
+-.969561
+1.027183
+-.890215
+.633835
+-.388287
+.258974
+-.258576
+.301445
+-.267699
+.091413
+.193922
+-.488129
+.709134
+-.859895
+1.019258
+-1.260217
+1.561432
+-1.789521
+1.775283
+-1.430679
+.817116
+-.112626
+-.495279
+.908992
+-1.143305
+1.266583
+-1.317305
+1.263984
+-1.037233
+.609253
+-.063626
+-.399308
+.540723
+-.214694
+-.521573
+1.396719
+-2.041776
+2.180228
+-1.777191
+1.048976
+-.323885
+-.151136
+.326689
+-.318296
+.266722
+-.210316
+.070428
+.246293
+-.721154
+1.183276
+-1.395756
+1.207477
+-.660403
+-.022360
+.556620
+-.745230
+.566852
+-.164383
+-.246595
+.492266
+-.519540
+.405663
+-.300723
+.335595
+-.543852
+.837702
+-1.050630
+1.024682
+-.697975
+.147638
+.435110
+-.828561
+.883298
+-.593030
+.095697
+.397067
+-.703057
+.747689
+-.575529
+.297746
+-.018266
+-.209591
+.374082
+-.466434
+.457731
+-.316481
+.049706
+.276748
+-.564706
+.737887
+-.774630
+.689794
+-.488955
+.151207
+.327536
+-.863108
+1.260628
+-1.293467
+.853538
+-.067518
+-.725303
+1.149856
+-1.025952
+.495753
+.053431
+-.234095
+-.088578
+.709545
+-1.223870
+1.296438
+-.874812
+.205220
+.345749
+-.529534
+.352569
+-.035292
+-.156414
+.079894
+.223907
+-.598141
+.895977
+-1.066009
+1.143990
+-1.177288
+1.158043
+-1.026122
+.736906
+-.329750
+-.069419
+.321527
+-.366803
+.260209
+-.120832
+.038505
+-.016181
+-.007263
+.080783
+-.184316
+.243690
+-.202981
+.088479
+-.005886
+.070040
+-.321253
+.689713
+-1.032035
+1.211903
+-1.173086
+.963010
+-.699090
+.501368
+-.431095
+.467209
+-.530756
+.540761
+-.467960
+.354208
+-.284996
+.330033
+-.489631
+.684331
+-.799335
+.756726
+-.565115
+.310639
+-.095939
+-.026416
+.076812
+-.114806
+.180281
+-.258152
+.292495
+-.234887
+.086882
+.095560
+-.235760
+.280262
+-.221471
+.089150
+.075860
+-.243360
+.399329
+-.538669
+.653831
+-.726120
+.723592
+-.610841
+.374159
+-.052109
+-.254092
+.414160
+-.342623
+.070852
+.241212
+-.383062
+.227721
+.164841
+-.558605
+.680289
+-.404080
+-.147187
+.668126
+-.869883
+.675633
+-.271564
+-.023563
+-.026089
+.427504
+-.976372
+1.405982
+-1.547590
+1.394704
+-1.055017
+.657488
+-.294071
+.020909
+.116481
+-.080961
+-.127114
+.442281
+-.743847
+.905547
+-.852849
+.591903
+-.198769
+-.215159
+.539572
+-.692160
+.637519
+-.399425
+.060156
+.262536
+-.460181
+.481411
+-.354852
+.169431
+-.021269
+-.039819
+.030701
+-.011804
+.040613
+-.134726
+.265772
+-.380627
+.430353
+-.389547
+.263272
+-.087878
+-.071671
+.136547
+-.049721
+-.177789
+.443124
+-.583439
+.462190
+-.060717
+-.491163
+.976399
+-1.209251
+1.133657
+-.838996
+.490511
+-.227895
+.097950
+-.053745
+.004439
+.125797
+-.363456
+.681976
+-1.014671
+1.271137
+-1.357067
+1.202092
+-.790608
+.178448
+.516366
+-1.142339
+1.545966
+-1.601644
+1.252172
+-.562295
+-.249455
+.856754
+-.968473
+.504972
+.314103
+-1.056841
+1.310885
+-.920470
+.075626
+.801296
+-1.293401
+1.202321
+-.621365
+-.146613
+.754148
+-.960414
+.708794
+-.122789
+-.556760
+1.065395
+-1.213739
+.961040
+-.430639
+-.147127
+.542550
+-.629788
+.432380
+-.092077
+-.212917
+.353496
+-.300410
+.126021
+.037425
+-.065040
+-.094371
+.385676
+-.672584
+.814198
+-.749862
+.533838
+-.290136
+.116620
+-.011013
+-.117517
+.353421
+-.670242
+.909779
+-.879578
+.506727
+.072799
+-.573943
+.745087
+-.543018
+.163280
+.105962
+-.099358
+-.107864
+.273405
+-.193438
+-.125673
+.467892
+-.578464
+.366076
+.025499
+-.330051
+.361969
+-.148303
+-.108863
+.199903
+-.065919
+-.175538
+.346435
+-.358640
+.269857
+-.203964
+.215811
+-.228688
+.106193
+.203294
+-.581984
+.803350
+-.698917
+.297958
+.176971
+-.460265
+.426377
+-.168364
+-.081402
+.121927
+.084003
+-.406783
+.664633
+-.758699
+.726316
+-.683937
+.719482
+-.826183
+.924679
+-.941923
+.870956
+-.762163
+.663142
+-.570548
+.441494
+-.253279
+.052519
+.058366
+.004232
+-.225830
+.476908
+-.583302
+.444731
+-.120913
+-.184139
+.246178
+.018222
+-.465394
+.790441
+-.722337
+.224913
+.442579
+-.865129
+.731574
+-.042297
+-.876237
+1.559652
+-1.671557
+1.179979
+-.348128
+-.432687
+.852477
+-.816130
+.448328
+.004543
+-.306732
+.334713
+-.113409
+-.216697
+.481298
+-.564927
+.467946
+-.294573
+.177094
+-.185462
+.283864
+-.362449
+.316952
+-.117487
+-.175210
+.445124
+-.576059
+.497255
+-.209069
+-.211553
+.629257
+-.896141
+.914533
+-.685511
+.310019
+.064251
+-.320117
+.424150
+-.425185
+.406044
+-.426401
+.494651
+-.579642
+.644121
+-.670871
+.664135
+-.631245
+.563988
+-.438329
+.235412
+.030973
+-.304163
+.505428
+-.577522
+.523686
+-.413674
+.347222
+-.392698
+.535963
+-.673604
+.664454
+-.421298
+-.006678
+.419516
+-.551306
+.223740
+.520107
+-1.397142
+2.012874
+-2.071384
+1.539025
+-.659768
+-.183183
+.665691
+-.660314
+.249759
+.357170
+-.930851
+1.289509
+-1.328794
+1.041730
+-.539983
+.046463
+.179587
+.021299
+-.584869
+1.210190
+-1.500839
+1.197523
+-.356983
+-.652869
+1.356766
+-1.450895
+.972625
+-.250481
+-.320701
+.514709
+-.361143
+.052631
+.224795
+-.396972
+.482550
+-.505622
+.444424
+-.265834
+-.000254
+.236199
+-.303143
+.149795
+.132719
+-.364487
+.401162
+-.230916
+-.029590
+.227273
+-.272158
+.169295
+.022851
+-.250010
+.477781
+-.663825
+.737708
+-.633204
+.357674
+-.029250
+-.174097
+.134259
+.110014
+-.375837
+.461427
+-.291412
+-.029703
+.294752
+-.337422
+.134377
+.198017
+-.490743
+.620593
+-.558853
+.358494
+-.106413
+-.123993
+.298083
+-.418058
+.502051
+-.559428
+.578399
+-.532088
+.397830
+-.177519
+-.090978
+.337210
+-.479325
+.460777
+-.289165
+.051998
+.111873
+-.081475
+-.172262
+.556448
+-.897735
+1.036828
+-.918789
+.620301
+-.295765
+.080914
+-.020838
+.069325
+-.148835
+.214976
+-.272330
+.336116
+-.382844
+.341472
+-.138623
+-.236625
+.701042
+-1.105799
+1.309010
+-1.246143
+.957583
+-.562286
+.197878
+.037796
+-.116065
+.070515
+.033585
+-.130830
+.171943
+-.124138
+-.030555
+.285694
+-.593972
+.864920
+-.995936
+.928207
+-.690381
+.391011
+-.156161
+.052715
+-.054125
+.074585
+-.044590
+-.031733
+.082149
+-.028428
+-.145689
+.373721
+-.545727
+.573681
+-.434648
+.169725
+.145740
+-.431101
+.616257
+-.653310
+.533254
+-.297631
+.027108
+.195789
+-.325646
+.366258
+-.349442
+.302547
+-.230799
+.121778
+.038287
+-.247862
+.475728
+-.652505
+.683308
+-.495294
+.106130
+.336221
+-.595367
+.473617
+.045402
+-.743380
+1.264133
+-1.318983
+.871233
+-.168515
+-.410703
+.598514
+-.401183
+.071977
+.081520
+.088535
+-.487608
+.873158
+-1.037489
+.938302
+-.695618
+.485739
+-.428198
+.539450
+-.755495
+.977540
+-1.104311
+1.054257
+-.796500
+.386674
+.027963
+-.266418
+.220052
+.059920
+-.367843
+.459508
+-.214404
+-.265970
+.700872
+-.796876
+.432371
+.261047
+-.970643
+1.375343
+-1.307886
+.817012
+-.116328
+-.528279
+.905216
+-.918193
+.597629
+-.075148
+-.465174
+.846313
+-.953506
+.767196
+-.362276
+-.125812
+.554776
+-.826836
+.914527
+-.848963
+.679720
+-.437494
+.131243
+.215227
+-.521999
+.657590
+-.509791
+.083703
+.451669
+-.825152
+.814166
+-.390427
+-.243919
+.765524
+-.917844
+.653966
+-.142081
+-.361403
+.674444
+-.774964
+.762800
+-.745856
+.747558
+-.704809
+.546904
+-.282271
+.017432
+.110135
+-.033279
+-.190261
+.416178
+-.518396
+.479042
+-.391613
+.374260
+-.465659
+.591701
+-.631436
+.524413
+-.324311
+.150119
+-.076189
+.057397
+.042689
+-.337288
+.804592
+-1.268750
+1.496934
+-1.350030
+.883870
+-.328001
+-.048786
+.099508
+.120157
+-.403812
+.540919
+-.456414
+.251324
+-.124125
+.231150
+-.577582
+1.002227
+-1.260702
+1.158908
+-.666743
+-.048238
+.689791
+-.975248
+.778007
+-.190891
+-.524881
+1.072459
+-1.255379
+1.046624
+-.570903
+.029177
+.388105
+-.566554
+.498761
+-.276881
+.047795
+.056401
+.016828
+-.215977
+.419170
+-.510700
+.455270
+-.322570
+.242288
+-.313185
+.523412
+-.738048
+.771506
+-.506143
+-.018077
+.605822
+-1.005714
+1.046770
+-.726236
+.197193
+.327241
+-.684491
+.821504
+-.782006
+.651295
+-.503172
+.374114
+-.264338
+.154107
+-.026809
+-.109621
+.217786
+-.254179
+.212188
+-.150620
+.173940
+-.364332
+.711337
+-1.096282
+1.352641
+-1.364819
+1.135767
+-.777306
+.434958
+-.205586
+.103502
+-.085770
+.101284
+-.119139
+.121851
+-.087253
+-.009565
+.168981
+-.342259
+.441321
+-.385568
+.154607
+.190080
+-.526625
+.720487
+-.674483
+.367775
+.121754
+-.625073
+.936091
+-.906432
+.532976
+.027879
+-.546481
+.857043
+-.945503
+.919555
+-.887077
+.849961
+-.709366
+.381414
+.080395
+-.474255
+.578220
+-.323050
+-.132760
+.496874
+-.543563
+.270582
+.107195
+-.322376
+.253245
+-.007981
+-.164535
+.067021
+.293372
+-.701319
+.878893
+-.676555
+.178483
+.344921
+-.600520
+.443246
+.050421
+-.640419
+1.063932
+-1.168216
+.963192
+-.580759
+.183783
+.111585
+-.260880
+.268040
+-.151038
+-.068395
+.346125
+-.596982
+.710836
+-.610349
+.316329
+.032088
+-.233853
+.137144
+.260723
+-.793216
+1.206288
+-1.297049
+1.025475
+-.531579
+.052274
+.205602
+-.160244
diff --git a/src/libmpg123/dnoise.sh b/src/libmpg123/dnoise.sh
new file mode 100755
index 0000000..079bbc1
--- /dev/null
+++ b/src/libmpg123/dnoise.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# A script to generate dnoise.c from a plain text file with the noise numbers.
+# In future, the plain text file (or a binary version) may be used by mpg123 at runtime instead of compiling it in.
+
+# copyright 2006-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+# initially written by Thomas Orgis
+
+echo '/*
+ dnoise: Noise for dithered output.
+
+ copyright 2006-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by (in assembler) Adrian Bacon
+*/
+
+#include "mpg123lib_intern.h"
+
+float dithernoise[DITHERSIZE] =
+{'
+
+# If sed is there, use it.
+# not using echo -n, not portable -- the extra empty line does not matter
+if echo | sed '' >&2; then
+ sed -e 's/$/f,/' < "$1"
+else
+# Plain sh... very slow, but works.
+ while read i
+ do
+ echo "${i}f,"
+ done < "$1"
+fi
+
+echo '};';
diff --git a/src/libmpg123/equalizer.c b/src/libmpg123/equalizer.c
new file mode 100644
index 0000000..bc5d5d9
--- /dev/null
+++ b/src/libmpg123/equalizer.c
@@ -0,0 +1,17 @@
+/*
+ equalizer.c: equalizer settings
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+
+#include "mpg123lib_intern.h"
+
+void do_equalizer(real *bandPtr,int channel, real equalizer[2][32])
+{
+ int i;
+ for(i=0;i<32;i++)
+ bandPtr[i] = REAL_MUL(bandPtr[i], equalizer[channel][i]);
+}
diff --git a/src/libmpg123/equalizer_3dnow.S b/src/libmpg123/equalizer_3dnow.S
new file mode 100644
index 0000000..e4eb21b
--- /dev/null
+++ b/src/libmpg123/equalizer_3dnow.S
@@ -0,0 +1,73 @@
+/*
+ equalizer_3dnow: 3DNow! optimized do_equalizer()
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by KIMURA Takuhiro
+*/
+
+#include "mangle.h"
+
+.text
+ ALIGN4
+.globl ASM_NAME(do_equalizer_3dnow)
+/* .type ASM_NAME(do_equalizer_3dnow),@function */
+/* void do_equalizer(real *bandPtr,int channel, real equalizer[2][32]); */
+ASM_NAME(do_equalizer_3dnow):
+ pushl %esi
+ pushl %ebx
+ /* bandPtr */
+ movl 12(%esp),%ebx
+ /* channel */
+ movl 16(%esp),%ecx
+ xorl %edx,%edx
+ /* equalizer */
+ movl 20(%esp),%esi
+ sall $7,%ecx
+ ALIGN4
+.L9:
+ movq (%ebx,%edx),%mm0
+ pfmul (%esi,%ecx),%mm0
+
+ movq 8(%ebx,%edx),%mm1
+ pfmul 8(%esi,%ecx),%mm1
+ movq %mm0,(%ebx,%edx)
+
+ movq 16(%ebx,%edx),%mm0
+ pfmul 16(%esi,%ecx),%mm0
+ movq %mm1,8(%ebx,%edx)
+
+ movq 24(%ebx,%edx),%mm1
+ pfmul 24(%esi,%ecx),%mm1
+ movq %mm0,16(%ebx,%edx)
+
+ movq 32(%ebx,%edx),%mm0
+ pfmul 32(%esi,%ecx),%mm0
+ movq %mm1,24(%ebx,%edx)
+
+ movq 40(%ebx,%edx),%mm1
+ pfmul 40(%esi,%ecx),%mm1
+ movq %mm0,32(%ebx,%edx)
+
+ movq 48(%ebx,%edx),%mm0
+ pfmul 48(%esi,%ecx),%mm0
+ movq %mm1,40(%ebx,%edx)
+
+ movq 56(%ebx,%edx),%mm1
+ pfmul 56(%esi,%ecx),%mm1
+ movq %mm0,48(%ebx,%edx)
+ movq %mm1,56(%ebx,%edx)
+
+ addl $64,%edx
+ addl $32,%ecx
+ cmpl $124,%edx
+ jle .L9
+ ALIGN4
+ popl %ebx
+ popl %esi
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/format.c b/src/libmpg123/format.c
new file mode 100644
index 0000000..0b37bfa
--- /dev/null
+++ b/src/libmpg123/format.c
@@ -0,0 +1,395 @@
+/*
+ format:routines to deal with audio (output) format
+
+ copyright 2008-9 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis, starting with parts of the old audio.c, with only faintly manage to show now
+*/
+
+#include "mpg123lib_intern.h"
+#include "debug.h"
+
+/* static int chans[NUM_CHANNELS] = { 1 , 2 }; */
+static const long my_rates[MPG123_RATES] = /* only the standard rates */
+{
+ 8000, 11025, 12000,
+ 16000, 22050, 24000,
+ 32000, 44100, 48000,
+};
+
+static const int my_encodings[MPG123_ENCODINGS] =
+{
+ MPG123_ENC_SIGNED_16,
+ MPG123_ENC_UNSIGNED_16,
+ MPG123_ENC_SIGNED_32,
+ MPG123_ENC_UNSIGNED_32,
+ MPG123_ENC_FLOAT_32,
+ MPG123_ENC_FLOAT_64,
+ MPG123_ENC_SIGNED_8,
+ MPG123_ENC_UNSIGNED_8,
+ MPG123_ENC_ULAW_8,
+ MPG123_ENC_ALAW_8
+};
+
+/* Only one type of float is supported. */
+# ifdef REAL_IS_FLOAT
+# define MPG123_FLOAT_ENC MPG123_ENC_FLOAT_32
+# else
+# define MPG123_FLOAT_ENC MPG123_ENC_FLOAT_64
+# endif
+
+/* The list of actually possible encodings. */
+static const int good_encodings[] =
+{
+#ifndef NO_16BIT
+ MPG123_ENC_SIGNED_16,
+ MPG123_ENC_UNSIGNED_16,
+#endif
+#ifndef NO_32BIT
+ MPG123_ENC_SIGNED_32,
+ MPG123_ENC_UNSIGNED_32,
+#endif
+#ifndef NO_REAL
+ MPG123_FLOAT_ENC,
+#endif
+#ifndef NO_8BIT
+ MPG123_ENC_SIGNED_8,
+ MPG123_ENC_UNSIGNED_8,
+ MPG123_ENC_ULAW_8,
+ MPG123_ENC_ALAW_8
+#endif
+};
+
+/* Check if encoding is a valid one in this build.
+ ...lazy programming: linear search. */
+static int good_enc(const int enc)
+{
+ size_t i;
+ for(i=0; i<sizeof(good_encodings)/sizeof(int); ++i)
+ if(enc == good_encodings[i]) return TRUE;
+
+ return FALSE;
+}
+
+void attribute_align_arg mpg123_rates(const long **list, size_t *number)
+{
+ if(list != NULL) *list = my_rates;
+ if(number != NULL) *number = sizeof(my_rates)/sizeof(long);
+}
+
+/* Now that's a bit tricky... One build of the library knows only a subset of the encodings. */
+void attribute_align_arg mpg123_encodings(const int **list, size_t *number)
+{
+ if(list != NULL) *list = good_encodings;
+ if(number != NULL) *number = sizeof(good_encodings)/sizeof(int);
+}
+
+/* char audio_caps[NUM_CHANNELS][MPG123_RATES+1][MPG123_ENCODINGS]; */
+
+static int rate2num(mpg123_pars *mp, long r)
+{
+ int i;
+ for(i=0;i<MPG123_RATES;i++) if(my_rates[i] == r) return i;
+#ifndef NO_NTOM
+ if(mp && mp->force_rate != 0 && mp->force_rate == r) return MPG123_RATES;
+#endif
+
+ return -1;
+}
+
+static int enc2num(int encoding)
+{
+ int i;
+ for(i=0;i<MPG123_ENCODINGS;++i)
+ if(my_encodings[i] == encoding) return i;
+
+ return -1;
+}
+
+static int cap_fit(mpg123_handle *fr, struct audioformat *nf, int f0, int f2)
+{
+ int i;
+ int c = nf->channels-1;
+ int rn = rate2num(&fr->p, nf->rate);
+ if(rn >= 0) for(i=f0;i<f2;i++)
+ {
+ if(fr->p.audio_caps[c][rn][i])
+ {
+ nf->encoding = my_encodings[i];
+ return 1;
+ }
+ }
+ return 0;
+}
+
+static int freq_fit(mpg123_handle *fr, struct audioformat *nf, int f0, int f2)
+{
+ nf->rate = frame_freq(fr)>>fr->p.down_sample;
+ if(cap_fit(fr,nf,f0,f2)) return 1;
+ nf->rate>>=1;
+ if(cap_fit(fr,nf,f0,f2)) return 1;
+ nf->rate>>=1;
+ if(cap_fit(fr,nf,f0,f2)) return 1;
+#ifndef NO_NTOM
+ /* If nothing worked, try the other rates, only without constrains from user.
+ In case you didn't guess: We enable flexible resampling if we find a working rate. */
+ if(!fr->p.force_rate && fr->p.down_sample == 0)
+ {
+ int i;
+ int c = nf->channels-1;
+ int rn = rate2num(&fr->p, frame_freq(fr));
+ int rrn;
+ if(rn < 0) return 0;
+ /* Try higher rates first. */
+ for(i=f0;i<f2;i++) for(rrn=rn+1; rrn<MPG123_RATES; ++rrn)
+ if(fr->p.audio_caps[c][rrn][i])
+ {
+ nf->rate = my_rates[rrn];
+ nf->encoding = my_encodings[i];
+ return 1;
+ }
+ /* Then lower rates. */
+ for(i=f0;i<f2;i++) for(rrn=rn-1; rrn>=0; --rrn)
+ if(fr->p.audio_caps[c][rrn][i])
+ {
+ nf->rate = my_rates[rrn];
+ nf->encoding = my_encodings[i];
+ return 1;
+ }
+ }
+#endif
+
+ return 0;
+}
+
+/* match constraints against supported audio formats, store possible setup in frame
+ return: -1: error; 0: no format change; 1: format change */
+int frame_output_format(mpg123_handle *fr)
+{
+ struct audioformat nf;
+ int f0=0;
+ int f2=MPG123_ENCODINGS; /* Omit the 32bit and float encodings. */
+ mpg123_pars *p = &fr->p;
+ /* initialize new format, encoding comes later */
+ nf.channels = fr->stereo;
+
+ /* All this forcing should be removed in favour of the capabilities table... */
+ if(p->flags & MPG123_FORCE_8BIT)
+ {
+ f0 = 6;
+ f2 = 10;
+ }
+ if(p->flags & MPG123_FORCE_FLOAT)
+ {
+ f0 = 4;
+ f2 = 6;
+ }
+
+ /* force stereo is stronger */
+ if(p->flags & MPG123_FORCE_MONO) nf.channels = 1;
+ if(p->flags & MPG123_FORCE_STEREO) nf.channels = 2;
+
+#ifndef NO_NTOM
+ if(p->force_rate)
+ {
+ nf.rate = p->force_rate;
+ if(cap_fit(fr,&nf,f0,2)) goto end; /* 16bit encodings */
+ if(cap_fit(fr,&nf,f0<=2 ? 2 : f0,f2)) goto end; /* 8bit encodings */
+
+ /* try again with different stereoness */
+ if(nf.channels == 2 && !(p->flags & MPG123_FORCE_STEREO)) nf.channels = 1;
+ else if(nf.channels == 1 && !(p->flags & MPG123_FORCE_MONO)) nf.channels = 2;
+
+ if(cap_fit(fr,&nf,f0,2)) goto end; /* 16bit encodings */
+ if(cap_fit(fr,&nf,f0<=2 ? 2 : f0,f2)) goto end; /* 8bit encodings */
+
+ if(NOQUIET)
+ error3( "Unable to set up output format! Constraints: %s%s%liHz.",
+ ( p->flags & MPG123_FORCE_STEREO ? "stereo, " :
+ (p->flags & MPG123_FORCE_MONO ? "mono, " : "") ),
+ (p->flags & MPG123_FORCE_8BIT ? "8bit, " : ""),
+ p->force_rate );
+/* if(NOQUIET && p->verbose <= 1) print_capabilities(fr); */
+
+ fr->err = MPG123_BAD_OUTFORMAT;
+ return -1;
+ }
+#endif
+
+ if(freq_fit(fr, &nf, f0, 2)) goto end; /* try rates with 16bit */
+ if(freq_fit(fr, &nf, f0<=2 ? 2 : f0, f2)) goto end; /* ... 8bit */
+
+ /* try again with different stereoness */
+ if(nf.channels == 2 && !(p->flags & MPG123_FORCE_STEREO)) nf.channels = 1;
+ else if(nf.channels == 1 && !(p->flags & MPG123_FORCE_MONO)) nf.channels = 2;
+
+ if(freq_fit(fr, &nf, f0, 2)) goto end; /* try rates with 16bit */
+ if(freq_fit(fr, &nf, f0<=2 ? 2 : f0, f2)) goto end; /* ... 8bit */
+
+ /* Here is the _bad_ end. */
+ if(NOQUIET)
+ {
+ error5( "Unable to set up output format! Constraints: %s%s%li, %li or %liHz.",
+ ( p->flags & MPG123_FORCE_STEREO ? "stereo, " :
+ (p->flags & MPG123_FORCE_MONO ? "mono, " : "") ),
+ (p->flags & MPG123_FORCE_8BIT ? "8bit, " : ""),
+ frame_freq(fr), frame_freq(fr)>>1, frame_freq(fr)>>2 );
+ }
+/* if(NOQUIET && p->verbose <= 1) print_capabilities(fr); */
+
+ fr->err = MPG123_BAD_OUTFORMAT;
+ return -1;
+
+end: /* Here is the _good_ end. */
+ /* we had a successful match, now see if there's a change */
+ if(nf.rate == fr->af.rate && nf.channels == fr->af.channels && nf.encoding == fr->af.encoding)
+ {
+ debug2("Old format with %i channels, and FORCE_MONO=%li", nf.channels, p->flags & MPG123_FORCE_MONO);
+ return 0; /* the same format as before */
+ }
+ else /* a new format */
+ {
+ debug1("New format with %i channels!", nf.channels);
+ fr->af.rate = nf.rate;
+ fr->af.channels = nf.channels;
+ fr->af.encoding = nf.encoding;
+ /* Cache the size of one sample in bytes, for ease of use. */
+ if(fr->af.encoding & MPG123_ENC_8)
+ fr->af.encsize = 1;
+ else if(fr->af.encoding & MPG123_ENC_16)
+ fr->af.encsize = 2;
+ else if(fr->af.encoding & MPG123_ENC_32 || fr->af.encoding == MPG123_ENC_FLOAT_32)
+ fr->af.encsize = 4;
+ else if(fr->af.encoding == MPG123_ENC_FLOAT_64)
+ fr->af.encsize = 8;
+ else
+ {
+ if(NOQUIET) error1("Some unknown encoding??? (%i)", fr->af.encoding);
+
+ fr->err = MPG123_BAD_OUTFORMAT;
+ return -1;
+ }
+ return 1;
+ }
+}
+
+int attribute_align_arg mpg123_format_none(mpg123_handle *mh)
+{
+ int r;
+ if(mh == NULL) return MPG123_ERR;
+
+ r = mpg123_fmt_none(&mh->p);
+ if(r != MPG123_OK){ mh->err = r; r = MPG123_ERR; }
+
+ return r;
+}
+
+int attribute_align_arg mpg123_fmt_none(mpg123_pars *mp)
+{
+ if(mp == NULL) return MPG123_BAD_PARS;
+
+ if(PVERB(mp,3)) fprintf(stderr, "Note: Disabling all formats.\n");
+
+ memset(mp->audio_caps,0,sizeof(mp->audio_caps));
+ return MPG123_OK;
+}
+
+int attribute_align_arg mpg123_format_all(mpg123_handle *mh)
+{
+ int r;
+ if(mh == NULL) return MPG123_ERR;
+
+ r = mpg123_fmt_all(&mh->p);
+ if(r != MPG123_OK){ mh->err = r; r = MPG123_ERR; }
+
+ return r;
+}
+
+int attribute_align_arg mpg123_fmt_all(mpg123_pars *mp)
+{
+ size_t rate, ch, enc;
+ if(mp == NULL) return MPG123_BAD_PARS;
+
+ if(PVERB(mp,3)) fprintf(stderr, "Note: Enabling all formats.\n");
+
+ for(ch=0; ch < NUM_CHANNELS; ++ch)
+ for(rate=0; rate < MPG123_RATES+1; ++rate)
+ for(enc=0; enc < MPG123_ENCODINGS; ++enc)
+ mp->audio_caps[ch][rate][enc] = good_enc(my_encodings[enc]) ? 1 : 0;
+
+ return MPG123_OK;
+}
+
+int attribute_align_arg mpg123_format(mpg123_handle *mh, long rate, int channels, int encodings)
+{
+ int r;
+ if(mh == NULL) return MPG123_ERR;
+ r = mpg123_fmt(&mh->p, rate, channels, encodings);
+ if(r != MPG123_OK){ mh->err = r; r = MPG123_ERR; }
+
+ return r;
+}
+
+int attribute_align_arg mpg123_fmt(mpg123_pars *mp, long rate, int channels, int encodings)
+{
+ int ie, ic, ratei;
+ int ch[2] = {0, 1};
+ if(mp == NULL) return MPG123_BAD_PARS;
+ if(!(channels & (MPG123_MONO|MPG123_STEREO))) return MPG123_BAD_CHANNEL;
+
+ if(PVERB(mp,3)) fprintf(stderr, "Note: Want to enable format %li/%i for encodings 0x%x.\n", rate, channels, encodings);
+
+ if(!(channels & MPG123_STEREO)) ch[1] = 0; /* {0,0} */
+ else if(!(channels & MPG123_MONO)) ch[0] = 1; /* {1,1} */
+ ratei = rate2num(mp, rate);
+ if(ratei < 0) return MPG123_BAD_RATE;
+
+ /* now match the encodings */
+ for(ic = 0; ic < 2; ++ic)
+ {
+ for(ie = 0; ie < MPG123_ENCODINGS; ++ie)
+ if(good_enc(my_encodings[ie]) && ((my_encodings[ie] & encodings) == my_encodings[ie]))
+ mp->audio_caps[ch[ic]][ratei][ie] = 1;
+
+ if(ch[0] == ch[1]) break; /* no need to do it again */
+ }
+
+ return MPG123_OK;
+}
+
+int attribute_align_arg mpg123_format_support(mpg123_handle *mh, long rate, int encoding)
+{
+ if(mh == NULL) return 0;
+ else return mpg123_fmt_support(&mh->p, rate, encoding);
+}
+
+int attribute_align_arg mpg123_fmt_support(mpg123_pars *mp, long rate, int encoding)
+{
+ int ch = 0;
+ int ratei, enci;
+ ratei = rate2num(mp, rate);
+ enci = enc2num(encoding);
+ if(mp == NULL || ratei < 0 || enci < 0) return 0;
+ if(mp->audio_caps[0][ratei][enci]) ch |= MPG123_MONO;
+ if(mp->audio_caps[1][ratei][enci]) ch |= MPG123_STEREO;
+ return ch;
+}
+
+/* Call this one to ensure that any valid format will be something different than this. */
+void invalidate_format(struct audioformat *af)
+{
+ af->encoding = 0;
+ af->rate = 0;
+ af->channels = 0;
+}
+
+/* take into account: channels, bytes per sample -- NOT resampling!*/
+off_t samples_to_bytes(mpg123_handle *fr , off_t s)
+{
+ return s * fr->af.encsize * fr->af.channels;
+}
+
+off_t bytes_to_samples(mpg123_handle *fr , off_t b)
+{
+ return b / fr->af.encsize / fr->af.channels;
+}
diff --git a/src/libmpg123/frame.c b/src/libmpg123/frame.c
new file mode 100644
index 0000000..cb6288d
--- /dev/null
+++ b/src/libmpg123/frame.c
@@ -0,0 +1,848 @@
+/*
+ frame: Heap of routines dealing with the core mpg123 data structure.
+
+ copyright 2008-9 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include "mpg123lib_intern.h"
+#include "getcpuflags.h"
+#include "debug.h"
+
+static void frame_fixed_reset(mpg123_handle *fr);
+
+/* that's doubled in decode_ntom.c */
+#define NTOM_MUL (32768)
+#define aligned_pointer(p,type,alignment) \
+ (((char*)(p)-(char*)NULL) % (alignment)) \
+ ? (type*)((char*)(p) + (alignment) - (((char*)(p)-(char*)NULL) % (alignment))) \
+ : (type*)(p)
+void frame_default_pars(mpg123_pars *mp)
+{
+ mp->outscale = 1.0;
+#ifdef GAPLESS
+ mp->flags = MPG123_GAPLESS;
+#else
+ mp->flags = 0;
+#endif
+#ifndef NO_NTOM
+ mp->force_rate = 0;
+#endif
+ mp->down_sample = 0;
+ mp->rva = 0;
+ mp->halfspeed = 0;
+ mp->doublespeed = 0;
+ mp->verbose = 0;
+#ifndef NO_ICY
+ mp->icy_interval = 0;
+#endif
+#ifndef WIN32
+ mp->timeout = 0;
+#endif
+ mp->resync_limit = 1024;
+#ifdef FRAME_INDEX
+ mp->index_size = INDEX_SIZE;
+#endif
+ mp->preframes = 4; /* That's good for layer 3 ISO compliance bitstream. */
+ mpg123_fmt_all(mp);
+}
+
+void frame_init(mpg123_handle *fr)
+{
+ frame_init_par(fr, NULL);
+}
+
+void frame_init_par(mpg123_handle *fr, mpg123_pars *mp)
+{
+ fr->own_buffer = FALSE;
+ fr->buffer.data = NULL;
+ fr->rawbuffs = NULL;
+ fr->rawbuffss = 0;
+ fr->rawdecwin = NULL;
+ fr->rawdecwins = 0;
+#ifndef NO_8BIT
+ fr->conv16to8_buf = NULL;
+#endif
+ fr->xing_toc = NULL;
+ fr->cpu_opts.type = defdec();
+ fr->cpu_opts.class = decclass(fr->cpu_opts.type);
+#ifndef NO_NTOM
+ /* these two look unnecessary, check guarantee for synth_ntom_set_step (in control_generic, even)! */
+ fr->ntom_val[0] = NTOM_MUL>>1;
+ fr->ntom_val[1] = NTOM_MUL>>1;
+ fr->ntom_step = NTOM_MUL;
+#endif
+ /* unnecessary: fr->buffer.size = fr->buffer.fill = 0; */
+ mpg123_reset_eq(fr);
+ init_icy(&fr->icy);
+ init_id3(fr);
+ /* frame_outbuffer is missing... */
+ /* frame_buffers is missing... that one needs cpu opt setting! */
+ /* after these... frame_reset is needed before starting full decode */
+ invalidate_format(&fr->af);
+ fr->rdat.r_read = NULL;
+ fr->rdat.r_lseek = NULL;
+ fr->decoder_change = 1;
+ fr->err = MPG123_OK;
+ if(mp == NULL) frame_default_pars(&fr->p);
+ else memcpy(&fr->p, mp, sizeof(struct mpg123_pars_struct));
+
+ fr->down_sample = 0; /* Initialize to silence harmless errors when debugging. */
+ frame_fixed_reset(fr); /* Reset only the fixed data, dynamic buffers are not there yet! */
+ fr->synth = NULL;
+ fr->synth_mono = NULL;
+ fr->make_decode_tables = NULL;
+#ifdef FRAME_INDEX
+ fi_init(&fr->index);
+ frame_index_setup(fr); /* Apply the size setting. */
+#endif
+#ifdef OPT_DITHER
+ /* The idea is to read that at runtime in the future... to avoid bloating the binary. */
+ fr->dithernoise = dithernoise;
+#endif
+}
+
+mpg123_pars attribute_align_arg *mpg123_new_pars(int *error)
+{
+ mpg123_pars *mp = malloc(sizeof(struct mpg123_pars_struct));
+ if(mp != NULL){ frame_default_pars(mp); if(error != NULL) *error = MPG123_OK; }
+ else if(error != NULL) *error = MPG123_OUT_OF_MEM;
+ return mp;
+}
+
+void attribute_align_arg mpg123_delete_pars(mpg123_pars* mp)
+{
+ if(mp != NULL) free(mp);
+}
+
+int attribute_align_arg mpg123_reset_eq(mpg123_handle *mh)
+{
+ int i;
+ mh->have_eq_settings = 0;
+ for(i=0; i < 32; ++i) mh->equalizer[0][i] = mh->equalizer[1][i] = DOUBLE_TO_REAL(1.0);
+
+ return MPG123_OK;
+}
+
+int frame_outbuffer(mpg123_handle *fr)
+{
+ size_t size = mpg123_safe_buffer()*AUDIOBUFSIZE;
+ if(!fr->own_buffer) fr->buffer.data = NULL;
+ if(fr->buffer.data != NULL && fr->buffer.size != size)
+ {
+ free(fr->buffer.data);
+ fr->buffer.data = NULL;
+ }
+ fr->buffer.size = size;
+ if(fr->buffer.data == NULL) fr->buffer.data = (unsigned char*) malloc(fr->buffer.size);
+ if(fr->buffer.data == NULL)
+ {
+ fr->err = MPG123_OUT_OF_MEM;
+ return -1;
+ }
+ fr->own_buffer = TRUE;
+ fr->buffer.fill = 0;
+ return 0;
+}
+
+int attribute_align_arg mpg123_replace_buffer(mpg123_handle *mh, unsigned char *data, size_t size)
+{
+ if(data == NULL || size < mpg123_safe_buffer())
+ {
+ mh->err = MPG123_BAD_BUFFER;
+ return MPG123_ERR;
+ }
+ if(mh->own_buffer && mh->buffer.data != NULL) free(mh->buffer.data);
+ mh->own_buffer = FALSE;
+ mh->buffer.data = data;
+ mh->buffer.size = size;
+ mh->buffer.fill = 0;
+ return MPG123_OK;
+}
+
+#ifdef FRAME_INDEX
+int frame_index_setup(mpg123_handle *fr)
+{
+ int ret = MPG123_ERR;
+ if(fr->p.index_size >= 0)
+ { /* Simple fixed index. */
+ fr->index.grow_size = 0;
+ debug1("resizing index to %li", fr->p.index_size);
+ ret = fi_resize(&fr->index, (size_t)fr->p.index_size);
+ debug2("index resized... %lu at %p", (unsigned long)fr->index.size, (void*)fr->index.data);
+ }
+ else
+ { /* A growing index. We give it a start, though. */
+ fr->index.grow_size = (size_t)(- fr->p.index_size);
+ if(fr->index.size < fr->index.grow_size)
+ ret = fi_resize(&fr->index, fr->index.grow_size);
+ else
+ ret = MPG123_OK; /* We have minimal size already... and since growing is OK... */
+ }
+ debug2("set up frame index of size %lu (ret=%i)", (unsigned long)fr->index.size, ret);
+
+ return ret;
+}
+#endif
+
+static void frame_decode_buffers_reset(mpg123_handle *fr)
+{
+ memset(fr->rawbuffs, 0, fr->rawbuffss);
+}
+
+int frame_buffers(mpg123_handle *fr)
+{
+ int buffssize = 0;
+ debug1("frame %p buffer", (void*)fr);
+/*
+ the used-to-be-static buffer of the synth functions, has some subtly different types/sizes
+
+ 2to1, 4to1, ntom, generic, i386: real[2][2][0x110]
+ mmx, sse: short[2][2][0x110]
+ i586(_dither): 4352 bytes; int/long[2][2][0x110]
+ i486: int[2][2][17*FIR_BUFFER_SIZE]
+ altivec: static real __attribute__ ((aligned (16))) buffs[4][4][0x110]
+
+ Huh, altivec looks like fun. Well, let it be large... then, the 16 byte alignment seems to be implicit on MacOSX malloc anyway.
+ Let's make a reasonable attempt to allocate enough memory...
+ Keep in mind: biggest ones are i486 and altivec (mutually exclusive!), then follows i586 and normal real.
+ mmx/sse use short but also real for resampling.
+ Thus, minimum is 2*2*0x110*sizeof(real).
+*/
+ if(fr->cpu_opts.type == altivec) buffssize = 4*4*0x110*sizeof(real);
+#ifdef OPT_I486
+ else if(fr->cpu_opts.type == ivier) buffssize = 2*2*17*FIR_BUFFER_SIZE*sizeof(int);
+#endif
+ else if(fr->cpu_opts.type == ifuenf || fr->cpu_opts.type == ifuenf_dither || fr->cpu_opts.type == dreidnow)
+ buffssize = 2*2*0x110*4; /* don't rely on type real, we need 4352 bytes */
+
+ if(2*2*0x110*sizeof(real) > buffssize)
+ buffssize = 2*2*0x110*sizeof(real);
+ buffssize += 15; /* For 16-byte alignment (SSE likes that). */
+
+ if(fr->rawbuffs != NULL && fr->rawbuffss != buffssize)
+ {
+ free(fr->rawbuffs);
+ fr->rawbuffs = NULL;
+ }
+
+ if(fr->rawbuffs == NULL) fr->rawbuffs = (unsigned char*) malloc(buffssize);
+ if(fr->rawbuffs == NULL) return -1;
+ fr->rawbuffss = buffssize;
+ fr->short_buffs[0][0] = aligned_pointer(fr->rawbuffs,short,16);
+ fr->short_buffs[0][1] = fr->short_buffs[0][0] + 0x110;
+ fr->short_buffs[1][0] = fr->short_buffs[0][1] + 0x110;
+ fr->short_buffs[1][1] = fr->short_buffs[1][0] + 0x110;
+ fr->real_buffs[0][0] = aligned_pointer(fr->rawbuffs,real,16);
+ fr->real_buffs[0][1] = fr->real_buffs[0][0] + 0x110;
+ fr->real_buffs[1][0] = fr->real_buffs[0][1] + 0x110;
+ fr->real_buffs[1][1] = fr->real_buffs[1][0] + 0x110;
+#ifdef OPT_I486
+ if(fr->cpu_opts.type == ivier)
+ {
+ fr->int_buffs[0][0] = (int*) fr->rawbuffs;
+ fr->int_buffs[0][1] = fr->int_buffs[0][0] + 17*FIR_BUFFER_SIZE;
+ fr->int_buffs[1][0] = fr->int_buffs[0][1] + 17*FIR_BUFFER_SIZE;
+ fr->int_buffs[1][1] = fr->int_buffs[1][0] + 17*FIR_BUFFER_SIZE;
+ }
+#endif
+#ifdef OPT_ALTIVEC
+ if(fr->cpu_opts.type == altivec)
+ {
+ int i,j;
+ fr->areal_buffs[0][0] = (real*) fr->rawbuffs;
+ for(i=0; i<4; ++i) for(j=0; j<4; ++j)
+ fr->areal_buffs[i][j] = fr->areal_buffs[0][0] + (i*4+j)*0x110;
+ }
+#endif
+ /* now the different decwins... all of the same size, actually */
+ /* The MMX ones want 32byte alignment, which I'll try to ensure manually */
+ {
+ int decwin_size = (512+32)*sizeof(real);
+#ifdef OPT_MMXORSSE
+#ifdef OPT_MULTI
+ if(fr->cpu_opts.class == mmxsse)
+ {
+#endif
+ /* decwin_mmx will share, decwins will be appended ... sizeof(float)==4 */
+ if(decwin_size < (512+32)*4) decwin_size = (512+32)*4;
+
+ /* the second window + alignment zone -- we align for 32 bytes for SSE as
+ requirement, 64 byte for matching cache line size (that matters!) */
+ decwin_size += (512+32)*4 + 63;
+ /* (512+32)*4/32 == 2176/32 == 68, so one decwin block retains alignment for 32 or 64 bytes */
+#ifdef OPT_MULTI
+ }
+#endif
+#endif
+#ifdef OPT_ALTIVEC
+ if(decwin_size < (512+32)*4) decwin_size = (512+32)*4;
+ decwin_size += 512*4;
+#endif
+ /* Hm, that's basically realloc() ... */
+ if(fr->rawdecwin != NULL && fr->rawdecwins != decwin_size)
+ {
+ free(fr->rawdecwin);
+ fr->rawdecwin = NULL;
+ }
+
+ if(fr->rawdecwin == NULL)
+ fr->rawdecwin = (unsigned char*) malloc(decwin_size);
+
+ if(fr->rawdecwin == NULL) return -1;
+
+ fr->rawdecwins = decwin_size;
+ fr->decwin = (real*) fr->rawdecwin;
+#ifdef OPT_MMXORSSE
+#ifdef OPT_MULTI
+ if(fr->cpu_opts.class == mmxsse)
+ {
+#endif
+ /* align decwin, assign that to decwin_mmx, append decwins */
+ /* I need to add to decwin what is missing to the next full 64 byte -- also I want to make gcc -pedantic happy... */
+ fr->decwin = aligned_pointer(fr->rawdecwin,real,64);
+ debug1("aligned decwin: %p", (void*)fr->decwin);
+ fr->decwin_mmx = (float*)fr->decwin;
+ fr->decwins = fr->decwin_mmx+512+32;
+#ifdef OPT_MULTI
+ }
+ else debug("no decwins/decwin_mmx for that class");
+#endif
+#endif
+ }
+ /* Only reset the buffers we created just now. */
+ frame_decode_buffers_reset(fr);
+
+ debug1("frame %p buffer done", (void*)fr);
+ return 0;
+}
+
+int frame_buffers_reset(mpg123_handle *fr)
+{
+ fr->buffer.fill = 0; /* hm, reset buffer fill... did we do a flush? */
+ fr->bsnum = 0;
+ /* Wondering: could it be actually _wanted_ to retain buffer contents over different files? (special gapless / cut stuff) */
+ fr->bsbuf = fr->bsspace[1];
+ fr->bsbufold = fr->bsbuf;
+ fr->bitreservoir = 0; /* Not entirely sure if this is the right place for that counter. */
+ frame_decode_buffers_reset(fr);
+ memset(fr->bsspace, 0, 2*(MAXFRAMESIZE+512));
+ memset(fr->ssave, 0, 34);
+ fr->hybrid_blc[0] = fr->hybrid_blc[1] = 0;
+ memset(fr->hybrid_block, 0, sizeof(real)*2*2*SBLIMIT*SSLIMIT);
+ return 0;
+}
+
+void frame_icy_reset(mpg123_handle* fr)
+{
+#ifndef NO_ICY
+ if(fr->icy.data != NULL) free(fr->icy.data);
+ fr->icy.data = NULL;
+ fr->icy.interval = 0;
+ fr->icy.next = 0;
+#endif
+}
+
+void frame_free_toc(mpg123_handle *fr)
+{
+ if(fr->xing_toc != NULL){ free(fr->xing_toc); fr->xing_toc = NULL; }
+}
+
+/* Just copy the Xing TOC over... */
+int frame_fill_toc(mpg123_handle *fr, unsigned char* in)
+{
+ if(fr->xing_toc == NULL) fr->xing_toc = malloc(100);
+ if(fr->xing_toc != NULL)
+ {
+ memcpy(fr->xing_toc, in, 100);
+#ifdef DEBUG
+ debug("Got a TOC! Showing the values...");
+ {
+ int i;
+ for(i=0; i<100; ++i)
+ debug2("entry %i = %i", i, fr->xing_toc[i]);
+ }
+#endif
+ return TRUE;
+ }
+ return FALSE;
+}
+
+/* Prepare the handle for a new track.
+ Reset variables, buffers... */
+int frame_reset(mpg123_handle* fr)
+{
+ frame_buffers_reset(fr);
+ frame_fixed_reset(fr);
+ frame_free_toc(fr);
+#ifdef FRAME_INDEX
+ fi_reset(&fr->index);
+#endif
+
+ return 0;
+}
+
+/* Reset everythign except dynamic memory. */
+static void frame_fixed_reset(mpg123_handle *fr)
+{
+ frame_icy_reset(fr);
+ open_bad(fr);
+ fr->to_decode = FALSE;
+ fr->to_ignore = FALSE;
+ fr->metaflags = 0;
+ fr->outblock = mpg123_safe_buffer();
+ fr->num = -1;
+ fr->playnum = -1;
+ fr->accurate = TRUE;
+ fr->silent_resync = 0;
+ fr->audio_start = 0;
+ fr->clip = 0;
+ fr->oldhead = 0;
+ fr->firsthead = 0;
+ fr->vbr = MPG123_CBR;
+ fr->abr_rate = 0;
+ fr->track_frames = 0;
+ fr->track_samples = -1;
+ fr->framesize=0;
+ fr->mean_frames = 0;
+ fr->mean_framesize = 0;
+ fr->freesize = 0;
+ fr->lastscale = -1;
+ fr->rva.level[0] = -1;
+ fr->rva.level[1] = -1;
+ fr->rva.gain[0] = 0;
+ fr->rva.gain[1] = 0;
+ fr->rva.peak[0] = 0;
+ fr->rva.peak[1] = 0;
+ fr->fsizeold = 0;
+ fr->firstframe = 0;
+ fr->ignoreframe = fr->firstframe-fr->p.preframes;
+ fr->lastframe = -1;
+ fr->fresh = 1;
+ fr->new_format = 0;
+#ifdef GAPLESS
+ frame_gapless_init(fr,0,0);
+ fr->lastoff = 0;
+ fr->firstoff = 0;
+#endif
+#ifdef OPT_I486
+ fr->i486bo[0] = fr->i486bo[1] = FIR_SIZE-1;
+#endif
+ fr->bo = 1; /* the usual bo */
+#ifdef OPT_DITHER
+ fr->ditherindex = 0;
+#endif
+ reset_id3(fr);
+ reset_icy(&fr->icy);
+ /* ICY stuff should go into icy.c, eh? */
+#ifndef NO_ICY
+ fr->icy.interval = 0;
+ fr->icy.next = 0;
+#endif
+ fr->halfphase = 0; /* here or indeed only on first-time init? */
+ fr->error_protection = 0;
+}
+
+void frame_free_buffers(mpg123_handle *fr)
+{
+ if(fr->rawbuffs != NULL) free(fr->rawbuffs);
+ fr->rawbuffs = NULL;
+ fr->rawbuffss = 0;
+ if(fr->rawdecwin != NULL) free(fr->rawdecwin);
+ fr->rawdecwin = NULL;
+ fr->rawdecwins = 0;
+#ifndef NO_8BIT
+ if(fr->conv16to8_buf != NULL) free(fr->conv16to8_buf);
+ fr->conv16to8_buf = NULL;
+#endif
+}
+
+void frame_exit(mpg123_handle *fr)
+{
+ if(fr->own_buffer && fr->buffer.data != NULL)
+ {
+ debug1("freeing buffer at %p", (void*)fr->buffer.data);
+ free(fr->buffer.data);
+ }
+ fr->buffer.data = NULL;
+ frame_free_buffers(fr);
+ frame_free_toc(fr);
+#ifdef FRAME_INDEX
+ fi_exit(&fr->index);
+#endif
+ exit_id3(fr);
+ clear_icy(&fr->icy);
+}
+
+int attribute_align_arg mpg123_info(mpg123_handle *mh, struct mpg123_frameinfo *mi)
+{
+ if(mh == NULL) return MPG123_ERR;
+ if(mi == NULL)
+ {
+ mh->err = MPG123_ERR_NULL;
+ return MPG123_ERR;
+ }
+ mi->version = mh->mpeg25 ? MPG123_2_5 : (mh->lsf ? MPG123_2_0 : MPG123_1_0);
+ mi->layer = mh->lay;
+ mi->rate = frame_freq(mh);
+ switch(mh->mode)
+ {
+ case 0: mi->mode = MPG123_M_STEREO; break;
+ case 1: mi->mode = MPG123_M_JOINT; break;
+ case 2: mi->mode = MPG123_M_DUAL; break;
+ case 3: mi->mode = MPG123_M_MONO; break;
+ default: error("That mode cannot be!");
+ }
+ mi->mode_ext = mh->mode_ext;
+ mi->framesize = mh->framesize+4; /* Include header. */
+ mi->flags = 0;
+ if(mh->error_protection) mi->flags |= MPG123_CRC;
+ if(mh->copyright) mi->flags |= MPG123_COPYRIGHT;
+ if(mh->extension) mi->flags |= MPG123_PRIVATE;
+ if(mh->original) mi->flags |= MPG123_ORIGINAL;
+ mi->emphasis = mh->emphasis;
+ mi->bitrate = frame_bitrate(mh);
+ mi->abr_rate = mh->abr_rate;
+ mi->vbr = mh->vbr;
+ return MPG123_OK;
+}
+
+
+/*
+ Fuzzy frame offset searching (guessing).
+ When we don't have an accurate position, we may use an inaccurate one.
+ Possibilities:
+ - use approximate positions from Xing TOC (not yet parsed)
+ - guess wildly from mean framesize and offset of first frame / beginning of file.
+*/
+
+off_t frame_fuzzy_find(mpg123_handle *fr, off_t want_frame, off_t* get_frame)
+{
+ /* Default is to go to the beginning. */
+ off_t ret = fr->audio_start;
+ *get_frame = 0;
+
+ /* But we try to find something better. */
+ /* Xing VBR TOC works with relative positions, both in terms of audio frames and stream bytes.
+ Thus, it only works when whe know the length of things.
+ Oh... I assume the offsets are relative to the _total_ file length. */
+ if(fr->xing_toc != NULL && fr->track_frames > 0 && fr->rdat.filelen > 0)
+ {
+ /* One could round... */
+ int toc_entry = (int) ((double)want_frame*100./fr->track_frames);
+ /* It is an index in the 100-entry table. */
+ if(toc_entry < 0) toc_entry = 0;
+ if(toc_entry > 99) toc_entry = 99;
+
+ /* Now estimate back what frame we get. */
+ *get_frame = (off_t) ((double)toc_entry/100. * fr->track_frames);
+ fr->accurate = FALSE;
+ fr->silent_resync = 1;
+ /* Question: Is the TOC for whole file size (with/without ID3) or the "real" audio data only?
+ ID3v1 info could also matter. */
+ ret = (off_t) ((double)fr->xing_toc[toc_entry]/256.* fr->rdat.filelen);
+ }
+ else if(fr->mean_framesize > 0)
+ { /* Just guess with mean framesize (may be exact with CBR files). */
+ /* Query filelen here or not? */
+ fr->accurate = FALSE; /* Fuzzy! */
+ fr->silent_resync = 1;
+ *get_frame = want_frame;
+ ret = (off_t) (fr->audio_start+fr->mean_framesize*want_frame);
+ }
+ debug5("fuzzy: want %li of %li, get %li at %li B of %li B",
+ (long)want_frame, (long)fr->track_frames, (long)*get_frame, (long)ret, (long)(fr->rdat.filelen-fr->audio_start));
+ return ret;
+}
+
+/*
+ find the best frame in index just before the wanted one, seek to there
+ then step to just before wanted one with read_frame
+ do not care tabout the stuff that was in buffer but not played back
+ everything that left the decoder is counted as played
+
+ Decide if you want low latency reaction and accurate timing info or stable long-time playback with buffer!
+*/
+
+off_t frame_index_find(mpg123_handle *fr, off_t want_frame, off_t* get_frame)
+{
+ /* default is file start if no index position */
+ off_t gopos = 0;
+ *get_frame = 0;
+#ifdef FRAME_INDEX
+ /* Possibly use VBRI index, too? I'd need an example for this... */
+ if(fr->index.fill)
+ {
+ /* find in index */
+ size_t fi;
+ /* at index fi there is frame step*fi... */
+ fi = want_frame/fr->index.step;
+ if(fi >= fr->index.fill) /* If we are beyond the end of frame index...*/
+ {
+ /* When fuzzy seek is allowed, we have some limited tolerance for the frames we want to read rather then jump over. */
+ if(fr->p.flags & MPG123_FUZZY && want_frame - (fr->index.fill-1)*fr->index.step > 10)
+ {
+ gopos = frame_fuzzy_find(fr, want_frame, get_frame);
+ if(gopos > fr->audio_start) return gopos; /* Only in that case, we have a useful guess. */
+ /* Else... just continue, fuzzyness didn't help. */
+ }
+ /* Use the last available position, slowly advancing from that one. */
+ fi = fr->index.fill - 1;
+ }
+ /* We have index position, that yields frame and byte offsets. */
+ *get_frame = fi*fr->index.step;
+ gopos = fr->index.data[fi];
+ fr->accurate = TRUE; /* When using the frame index, we are accurate. */
+ }
+ else
+ {
+#endif
+ if(fr->p.flags & MPG123_FUZZY)
+ return frame_fuzzy_find(fr, want_frame, get_frame);
+ /* A bit hackish here... but we need to be fresh when looking for the first header again. */
+ fr->firsthead = 0;
+ fr->oldhead = 0;
+#ifdef FRAME_INDEX
+ }
+#endif
+ debug2("index: 0x%lx for frame %li", (unsigned long)gopos, (long) *get_frame);
+ return gopos;
+}
+
+off_t frame_ins2outs(mpg123_handle *fr, off_t ins)
+{
+ off_t outs = 0;
+ switch(fr->down_sample)
+ {
+ case 0:
+# ifndef NO_DOWNSAMPLE
+ case 1:
+ case 2:
+# endif
+ outs = ins>>fr->down_sample;
+ break;
+# ifndef NO_NTOM
+ case 3: outs = ntom_ins2outs(fr, ins); break;
+# endif
+ default: error1("Bad down_sample (%i) ... should not be possible!!", fr->down_sample);
+ }
+ return outs;
+}
+
+off_t frame_outs(mpg123_handle *fr, off_t num)
+{
+ off_t outs = 0;
+ switch(fr->down_sample)
+ {
+ case 0:
+# ifndef NO_DOWNSAMPLE
+ case 1:
+ case 2:
+# endif
+ outs = (spf(fr)>>fr->down_sample)*num;
+ break;
+#ifndef NO_NTOM
+ case 3: outs = ntom_frmouts(fr, num); break;
+#endif
+ default: error1("Bad down_sample (%i) ... should not be possible!!", fr->down_sample);
+ }
+ return outs;
+}
+
+off_t frame_offset(mpg123_handle *fr, off_t outs)
+{
+ off_t num = 0;
+ switch(fr->down_sample)
+ {
+ case 0:
+# ifndef NO_DOWNSAMPLE
+ case 1:
+ case 2:
+# endif
+ num = outs/(spf(fr)>>fr->down_sample);
+ break;
+#ifndef NO_NTOM
+ case 3: num = ntom_frameoff(fr, outs); break;
+#endif
+ default: error("Bad down_sample ... should not be possible!!");
+ }
+ return num;
+}
+
+#ifdef GAPLESS
+/* input in _input_ samples */
+void frame_gapless_init(mpg123_handle *fr, off_t b, off_t e)
+{
+ fr->begin_s = b;
+ fr->end_s = e;
+ /* These will get proper values later, from above plus resampling info. */
+ fr->begin_os = 0;
+ fr->end_os = 0;
+ debug2("frame_gapless_init: from %lu to %lu samples", (long unsigned)fr->begin_s, (long unsigned)fr->end_s);
+}
+
+void frame_gapless_realinit(mpg123_handle *fr)
+{
+ fr->begin_os = frame_ins2outs(fr, fr->begin_s);
+ fr->end_os = frame_ins2outs(fr, fr->end_s);
+ debug2("frame_gapless_realinit: from %lu to %lu samples", (long unsigned)fr->begin_os, (long unsigned)fr->end_os);
+}
+#endif
+
+/* Compute the needed frame to ignore from, for getting accurate/consistent output for intended firstframe. */
+static off_t ignoreframe(mpg123_handle *fr)
+{
+ off_t preshift = fr->p.preframes;
+ /* Layer 3 _really_ needs at least one frame before. */
+ if(fr->lay==3 && preshift < 1) preshift = 1;
+ /* Layer 1 & 2 reall do not need more than 2. */
+ if(fr->lay!=3 && preshift > 2) preshift = 2;
+
+ return fr->firstframe - preshift;
+}
+
+/* The frame seek... This is not simply the seek to fe*spf(fr) samples in output because we think of _input_ frames here.
+ Seek to frame offset 1 may be just seek to 200 samples offset in output since the beginning of first frame is delay/padding.
+ Hm, is that right? OK for the padding stuff, but actually, should the decoder delay be better totally hidden or not?
+ With gapless, even the whole frame position could be advanced further than requested (since Homey don't play dat). */
+void frame_set_frameseek(mpg123_handle *fr, off_t fe)
+{
+ fr->firstframe = fe;
+#ifdef GAPLESS
+ if(fr->p.flags & MPG123_GAPLESS)
+ {
+ /* Take care of the beginning... */
+ off_t beg_f = frame_offset(fr, fr->begin_os);
+ if(fe <= beg_f)
+ {
+ fr->firstframe = beg_f;
+ fr->firstoff = fr->begin_os - frame_outs(fr, beg_f);
+ }
+ else fr->firstoff = 0;
+ /* The end is set once for a track at least, on the frame_set_frameseek called in get_next_frame() */
+ if(fr->end_os > 0)
+ {
+ fr->lastframe = frame_offset(fr,fr->end_os);
+ fr->lastoff = fr->end_os - frame_outs(fr, fr->lastframe);
+ } else fr->lastoff = 0;
+ } else { fr->firstoff = fr->lastoff = 0; fr->lastframe = -1; }
+#endif
+ fr->ignoreframe = ignoreframe(fr);
+#ifdef GAPLESS
+ debug5("frame_set_frameseek: begin at %li frames and %li samples, end at %li and %li; ignore from %li",
+ (long) fr->firstframe, (long) fr->firstoff,
+ (long) fr->lastframe, (long) fr->lastoff, (long) fr->ignoreframe);
+#else
+ debug3("frame_set_frameseek: begin at %li frames, end at %li; ignore from %li",
+ (long) fr->firstframe, (long) fr->lastframe, (long) fr->ignoreframe);
+#endif
+}
+
+void frame_skip(mpg123_handle *fr)
+{
+#ifndef NO_LAYER3
+ if(fr->lay == 3) set_pointer(fr, 512);
+#endif
+}
+
+/* Sample accurate seek prepare for decoder. */
+/* This gets unadjusted output samples and takes resampling into account */
+void frame_set_seek(mpg123_handle *fr, off_t sp)
+{
+ fr->firstframe = frame_offset(fr, sp);
+#ifndef NO_NTOM
+ if(fr->down_sample == 3) ntom_set_ntom(fr, fr->firstframe);
+#endif
+ fr->ignoreframe = ignoreframe(fr);
+#ifdef GAPLESS /* The sample offset is used for non-gapless mode, too! */
+ fr->firstoff = sp - frame_outs(fr, fr->firstframe);
+ debug5("frame_set_seek: begin at %li frames and %li samples, end at %li and %li; ignore from %li",
+ (long) fr->firstframe, (long) fr->firstoff,
+ (long) fr->lastframe, (long) fr->lastoff, (long) fr->ignoreframe);
+#else
+ debug3("frame_set_seek: begin at %li frames, end at %li; ignore from %li",
+ (long) fr->firstframe, (long) fr->lastframe, (long) fr->ignoreframe);
+#endif
+}
+
+int attribute_align_arg mpg123_volume_change(mpg123_handle *mh, double change)
+{
+ if(mh == NULL) return MPG123_ERR;
+ return mpg123_volume(mh, change + (double) mh->p.outscale);
+}
+
+int attribute_align_arg mpg123_volume(mpg123_handle *mh, double vol)
+{
+ if(mh == NULL) return MPG123_ERR;
+
+ if(vol >= 0) mh->p.outscale = vol;
+ else mh->p.outscale = 0.;
+
+ do_rva(mh);
+ return MPG123_OK;
+}
+
+static int get_rva(mpg123_handle *fr, double *peak, double *gain)
+{
+ double p = -1;
+ double g = 0;
+ int ret = 0;
+ if(fr->p.rva)
+ {
+ int rt = 0;
+ /* Should one assume a zero RVA as no RVA? */
+ if(fr->p.rva == 2 && fr->rva.level[1] != -1) rt = 1;
+ if(fr->rva.level[rt] != -1)
+ {
+ p = fr->rva.peak[rt];
+ g = fr->rva.gain[rt];
+ ret = 1; /* Success. */
+ }
+ }
+ if(peak != NULL) *peak = p;
+ if(gain != NULL) *gain = g;
+ return ret;
+}
+
+/* adjust the volume, taking both fr->outscale and rva values into account */
+void do_rva(mpg123_handle *fr)
+{
+ double peak = 0;
+ double gain = 0;
+ double newscale;
+ double rvafact = 1;
+ if(get_rva(fr, &peak, &gain))
+ {
+ if(NOQUIET && fr->p.verbose > 1) fprintf(stderr, "Note: doing RVA with gain %f\n", gain);
+ rvafact = pow(10,gain/20);
+ }
+
+ newscale = fr->p.outscale*rvafact;
+
+ /* if peak is unknown (== 0) this check won't hurt */
+ if((peak*newscale) > 1.0)
+ {
+ newscale = 1.0/peak;
+ warning2("limiting scale value to %f to prevent clipping with indicated peak factor of %f", newscale, peak);
+ }
+ /* first rva setting is forced with fr->lastscale < 0 */
+ if(newscale != fr->lastscale || fr->decoder_change)
+ {
+ debug3("changing scale value from %f to %f (peak estimated to %f)", fr->lastscale != -1 ? fr->lastscale : fr->p.outscale, newscale, (double) (newscale*peak));
+ fr->lastscale = newscale;
+ /* It may be too early, actually. */
+ if(fr->make_decode_tables != NULL) fr->make_decode_tables(fr); /* the actual work */
+ }
+}
+
+
+int attribute_align_arg mpg123_getvolume(mpg123_handle *mh, double *base, double *really, double *rva_db)
+{
+ if(mh == NULL) return MPG123_ERR;
+ if(base) *base = mh->p.outscale;
+ if(really) *really = mh->lastscale;
+ get_rva(mh, NULL, rva_db);
+ return MPG123_OK;
+}
+
diff --git a/src/libmpg123/frame.h b/src/libmpg123/frame.h
new file mode 100644
index 0000000..a13c109
--- /dev/null
+++ b/src/libmpg123/frame.h
@@ -0,0 +1,355 @@
+/*
+ frame: Central data structures and opmitization hooks.
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#ifndef MPG123_FRAME_H
+#define MPG123_FRAME_H
+
+#include <stdio.h>
+#include "config.h"
+#include "mpg123.h"
+#include "optimize.h"
+#include "id3.h"
+#include "icy.h"
+#include "reader.h"
+#ifdef FRAME_INDEX
+#include "index.h"
+#endif
+#include "synths.h"
+
+/* max = 1728 */
+#define MAXFRAMESIZE 3456
+
+struct al_table
+{
+ short bits;
+ short d;
+};
+
+/* the output buffer, used to be pcm_sample, pcm_point and audiobufsize */
+struct outbuffer
+{
+ unsigned char *data;
+ unsigned char *p; /* read pointer */
+ size_t fill; /* fill from read pointer */
+ size_t size; /* that's actually more like a safe size, after we have more than that, flush it */
+};
+
+struct audioformat
+{
+ int encoding;
+ int encsize; /* Size of one sample in bytes, plain int should be fine here... */
+ int channels;
+ long rate;
+};
+
+void invalidate_format(struct audioformat *af);
+
+struct mpg123_pars_struct
+{
+ int verbose; /* verbose level */
+ long flags; /* combination of above */
+#ifndef NO_NTOM
+ long force_rate;
+#endif
+ int down_sample;
+ int rva; /* (which) rva to do: 0: nothing, 1: radio/mix/track 2: album/audiophile */
+ long halfspeed;
+ long doublespeed;
+#ifndef WIN32
+ long timeout;
+#endif
+#define NUM_CHANNELS 2
+ char audio_caps[NUM_CHANNELS][MPG123_RATES+1][MPG123_ENCODINGS];
+/* long start_frame; */ /* frame offset to begin with */
+/* long frame_number;*/ /* number of frames to decode */
+#ifndef NO_ICY
+ long icy_interval;
+#endif
+ double outscale;
+ long resync_limit;
+ long index_size; /* Long, because: negative values have a meaning. */
+ long preframes;
+};
+
+
+
+/* There is a lot to condense here... many ints can be merged as flags; though the main space is still consumed by buffers. */
+struct mpg123_handle_struct
+{
+ int fresh; /* to be moved into flags */
+ int new_format;
+ real hybrid_block[2][2][SBLIMIT*SSLIMIT];
+ int hybrid_blc[2];
+ /* the scratch vars for the decoders, sometimes real, sometimes short... sometimes int/long */
+ short *short_buffs[2][2];
+ real *real_buffs[2][2];
+ unsigned char *rawbuffs;
+ int rawbuffss;
+#ifdef OPT_I486
+ int i486bo[2];
+#endif
+ int bo; /* Just have it always here. */
+#ifdef OPT_DITHER
+ int ditherindex;
+ float *dithernoise;
+#endif
+ unsigned char* rawdecwin; /* the block with all decwins */
+ int rawdecwins; /* size of rawdecwin memory */
+ real *decwin; /* _the_ decode table */
+#ifdef OPT_MMXORSSE
+ /* I am not really sure that I need both of them... used in assembler */
+ float *decwin_mmx;
+ float *decwins;
+#endif
+ int have_eq_settings;
+ real equalizer[2][32];
+
+ /* for halfspeed mode */
+ unsigned char ssave[34];
+ int halfphase;
+#ifndef NO_8BIT
+ /* a raw buffer and a pointer into the middle for signed short conversion, only allocated on demand */
+ unsigned char *conv16to8_buf;
+ unsigned char *conv16to8;
+#endif
+ /* There's some possible memory saving for stuff that is not _really_ dynamic. */
+
+ /* layer3 */
+ int longLimit[9][23];
+ int shortLimit[9][14];
+ real gainpow2[256+118+4]; /* not really dynamic, just different for mmx */
+
+ /* layer2 */
+ real muls[27][64]; /* also used by layer 1 */
+
+#ifndef NO_NTOM
+ /* decode_ntom */
+ unsigned long ntom_val[2];
+ unsigned long ntom_step;
+#endif
+ /* special i486 fun */
+#ifdef OPT_I486
+ int *int_buffs[2][2];
+#endif
+ /* special altivec... */
+#ifdef OPT_ALTIVEC
+ real *areal_buffs[4][4];
+#endif
+ struct synth_s synths;
+ struct
+ {
+#ifdef OPT_MULTI
+
+#ifndef NO_LAYER3
+#if (defined OPT_3DNOW || defined OPT_3DNOWEXT)
+ void (*dct36)(real *,real *,real *,real *,real *);
+#endif
+#endif
+
+#endif
+ enum optdec type;
+ enum optcla class;
+ } cpu_opts;
+
+ int verbose; /* 0: nothing, 1: just print chosen decoder, 2: be verbose */
+
+ const struct al_table *alloc;
+ /* The runtime-chosen decoding, based on input and output format. */
+ func_synth synth;
+ func_synth_stereo synth_stereo;
+ func_synth_mono synth_mono;
+ /* Yes, this function is runtime-switched, too. */
+ void (*make_decode_tables)(mpg123_handle *fr); /* That is the volume control. */
+
+ int stereo; /* I _think_ 1 for mono and 2 for stereo */
+ int jsbound;
+#define SINGLE_STEREO -1
+#define SINGLE_LEFT 0
+#define SINGLE_RIGHT 1
+#define SINGLE_MIX 3
+ int single;
+ int II_sblimit;
+ int down_sample_sblimit;
+ int lsf; /* 0: MPEG 1.0; 1: MPEG 2.0/2.5 -- both used as bool and array index! */
+ /* Many flags in disguise as integers... wasting bytes. */
+ int mpeg25;
+ int down_sample;
+ int header_change;
+ int lay;
+ int (*do_layer)(mpg123_handle *);
+ int error_protection;
+ int bitrate_index;
+ int sampling_frequency;
+ int padding;
+ int extension;
+ int mode;
+ int mode_ext;
+ int copyright;
+ int original;
+ int emphasis;
+ int framesize; /* computed framesize */
+ int freesize; /* free format frame size */
+ enum mpg123_vbr vbr; /* 1 if variable bitrate was detected */
+ off_t num; /* frame offset ... */
+ off_t playnum; /* playback offset... includes repetitions, reset at seeks */
+ off_t audio_start; /* The byte offset in the file where audio data begins. */
+ char accurate; /* Flag to see if we trust the frame number. */
+ char silent_resync; /* Do not complain for the next n resyncs. */
+ unsigned char* xing_toc; /* The seek TOC from Xing header. */
+
+ /* bitstream info; bsi */
+ int bitindex;
+ unsigned char *wordpointer;
+ /* temporary storage for getbits stuff */
+ unsigned long ultmp;
+ unsigned char uctmp;
+
+ /* rva data, used in common.c, set in id3.c */
+
+ double maxoutburst; /* The maximum amplitude in current sample represenation. */
+ double lastscale;
+ struct
+ {
+ int level[2];
+ float gain[2];
+ float peak[2];
+ } rva;
+
+ /* input data */
+ off_t track_frames;
+ off_t track_samples;
+ double mean_framesize;
+ off_t mean_frames;
+ int fsizeold;
+ int ssize;
+ unsigned int bitreservoir;
+ unsigned char bsspace[2][MAXFRAMESIZE+512]; /* MAXFRAMESIZE */
+ unsigned char *bsbuf;
+ unsigned char *bsbufold;
+ int bsnum;
+ unsigned long oldhead;
+ unsigned long firsthead;
+ int abr_rate;
+#ifdef FRAME_INDEX
+ struct frame_index index;
+#endif
+
+ /* output data */
+ struct outbuffer buffer;
+ struct audioformat af;
+ int own_buffer;
+ size_t outblock; /* number of bytes that this frame produces (upper bound) */
+ int to_decode; /* this frame holds data to be decoded */
+ int to_ignore; /* the same, somehow */
+ off_t firstframe; /* start decoding from here */
+ off_t lastframe; /* last frame to decode (for gapless or num_frames limit) */
+ off_t ignoreframe; /* frames to decode but discard before firstframe */
+#ifdef GAPLESS
+ off_t firstoff; /* number of samples to ignore from firstframe */
+ off_t lastoff; /* number of samples to use from lastframe */
+ off_t begin_s; /* overall begin offset in samples */
+ off_t begin_os;
+ off_t end_s; /* overall end offset in samples */
+ off_t end_os;
+#endif
+ unsigned int crc; /* Well, I need a safe 16bit type, actually. But wider doesn't hurt. */
+ struct reader *rd; /* pointer to the reading functions */
+ struct reader_data rdat; /* reader data and state info */
+ struct mpg123_pars_struct p;
+ int err;
+ int decoder_change;
+ int delayed_change;
+ long clip;
+ /* the meta crap */
+ int metaflags;
+ unsigned char id3buf[128];
+#ifndef NO_ID3V2
+ mpg123_id3v2 id3v2;
+#endif
+#ifndef NO_ICY
+ struct icy_meta icy;
+#endif
+};
+
+/* generic init, does not include dynamic buffers */
+void frame_init(mpg123_handle *fr);
+void frame_init_par(mpg123_handle *fr, mpg123_pars *mp);
+/* output buffer and format */
+int frame_outbuffer(mpg123_handle *fr);
+int frame_output_format(mpg123_handle *fr);
+
+int frame_buffers(mpg123_handle *fr); /* various decoder buffers, needed once */
+int frame_reset(mpg123_handle* fr); /* reset for next track */
+int frame_buffers_reset(mpg123_handle *fr);
+void frame_exit(mpg123_handle *fr); /* end, free all buffers */
+
+/* Index functions... */
+/* Well... print it... */
+int mpg123_print_index(mpg123_handle *fr, FILE* out);
+/* Find a seek position in index. */
+off_t frame_index_find(mpg123_handle *fr, off_t want_frame, off_t* get_frame);
+/* Apply index_size setting. */
+int frame_index_setup(mpg123_handle *fr);
+
+void do_volume(mpg123_handle *fr, double factor);
+void do_rva(mpg123_handle *fr);
+
+/* samples per frame ...
+Layer I
+Layer II
+Layer III
+MPEG-1
+384
+1152
+1152
+MPEG-2 LSF
+384
+1152
+576
+MPEG 2.5
+384
+1152
+576
+*/
+#define spf(fr) ((fr)->lay == 1 ? 384 : ((fr)->lay==2 ? 1152 : ((fr)->lsf || (fr)->mpeg25 ? 576 : 1152)))
+
+#ifdef GAPLESS
+/* well, I take that one for granted... at least layer3 */
+#define GAPLESS_DELAY 529
+/* still fine-tuning the "real music" window... see read_frame */
+void frame_gapless_init(mpg123_handle *fr, off_t b, off_t e);
+void frame_gapless_realinit(mpg123_handle *fr);
+/*void frame_gapless_position(mpg123_handle* fr);
+void frame_gapless_bytify(mpg123_handle *fr);
+void frame_gapless_ignore(mpg123_handle *fr, off_t frames);*/
+/* void frame_gapless_buffercheck(mpg123_handle *fr); */
+#endif
+
+/* Skip this frame... do some fake action to get away without actually decoding it. */
+void frame_skip(mpg123_handle *fr);
+
+/*
+ Seeking core functions:
+ - convert input sample offset to output sample offset
+ - convert frame offset to output sample offset
+ - get leading frame offset for output sample offset
+ The offsets are "unadjusted"/internal; resampling is being taken care of.
+*/
+off_t frame_ins2outs(mpg123_handle *fr, off_t ins);
+off_t frame_outs(mpg123_handle *fr, off_t num);
+off_t frame_offset(mpg123_handle *fr, off_t outs);
+void frame_set_frameseek(mpg123_handle *fr, off_t fe);
+void frame_set_seek(mpg123_handle *fr, off_t sp);
+off_t frame_tell_seek(mpg123_handle *fr);
+/* Take a copy of the Xing VBR TOC for fuzzy seeking. */
+int frame_fill_toc(mpg123_handle *fr, unsigned char* in);
+
+
+/* adjust volume to current outscale and rva values if wanted */
+void do_rva(mpg123_handle *fr);
+#endif
diff --git a/src/libmpg123/getbits.h b/src/libmpg123/getbits.h
new file mode 100644
index 0000000..8eff00e
--- /dev/null
+++ b/src/libmpg123/getbits.h
@@ -0,0 +1,100 @@
+/*
+ getbits
+
+ copyright ?-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+
+ All code is in the header to suggest/force inlining of these small often-used functions.
+ This indeed has some impact on performance.
+*/
+
+#ifndef _MPG123_GETBITS_H_
+#define _MPG123_GETBITS_H_
+
+#include "mpg123lib_intern.h"
+
+#define backbits(fr,nob) ((void)( \
+ fr->bitindex -= nob, \
+ fr->wordpointer += (fr->bitindex>>3), \
+ fr->bitindex &= 0x7 ))
+
+#define getbitoffset(fr) ((-fr->bitindex)&0x7)
+#define getbyte(fr) (*fr->wordpointer++)
+
+/* There is something wrong with that macro... the function below works also for the layer1 test case. */
+#define macro_getbits(fr, nob) ( \
+ fr->ultmp = fr->wordpointer[0],\
+ fr->ultmp <<= 8, \
+ fr->ultmp |= fr->wordpointer[1], \
+ fr->ultmp <<= 8, \
+ fr->ultmp |= fr->wordpointer[2], \
+ fr->ultmp <<= fr->bitindex, \
+ fr->ultmp &= 0xffffff, \
+ fr->bitindex += nob, \
+ fr->ultmp >>= (24-nob), \
+ fr->wordpointer += (fr->bitindex>>3), \
+ fr->bitindex &= 7, \
+ fr->ultmp)
+
+static unsigned int getbits(mpg123_handle *fr, int number_of_bits)
+{
+ unsigned long rval;
+
+#ifdef DEBUG_GETBITS
+fprintf(stderr,"g%d",number_of_bits);
+#endif
+
+/* This is actually slow: if(!number_of_bits)
+ return 0; */
+
+#if 0
+ check_buffer_range(number_of_bits+fr->bitindex);
+#endif
+
+ {
+ rval = fr->wordpointer[0];
+ rval <<= 8;
+ rval |= fr->wordpointer[1];
+ rval <<= 8;
+ rval |= fr->wordpointer[2];
+
+ rval <<= fr->bitindex;
+ rval &= 0xffffff;
+
+ fr->bitindex += number_of_bits;
+
+ rval >>= (24-number_of_bits);
+
+ fr->wordpointer += (fr->bitindex>>3);
+ fr->bitindex &= 7;
+ }
+
+#ifdef DEBUG_GETBITS
+fprintf(stderr,":%lx\n",rval);
+#endif
+
+ return rval;
+}
+
+
+#define skipbits(fr, nob) fr->ultmp = ( \
+ fr->ultmp = fr->wordpointer[0], fr->ultmp <<= 8, fr->ultmp |= fr->wordpointer[1], \
+ fr->ultmp <<= 8, fr->ultmp |= fr->wordpointer[2], fr->ultmp <<= fr->bitindex, \
+ fr->ultmp &= 0xffffff, fr->bitindex += nob, \
+ fr->ultmp >>= (24-nob), fr->wordpointer += (fr->bitindex>>3), \
+ fr->bitindex &= 7 )
+
+#define getbits_fast(fr, nob) ( \
+ fr->ultmp = (unsigned char) (fr->wordpointer[0] << fr->bitindex), \
+ fr->ultmp |= ((unsigned long) fr->wordpointer[1]<<fr->bitindex)>>8, \
+ fr->ultmp <<= nob, fr->ultmp >>= 8, \
+ fr->bitindex += nob, fr->wordpointer += (fr->bitindex>>3), \
+ fr->bitindex &= 7, fr->ultmp )
+
+#define get1bit(fr) ( \
+ fr->uctmp = *fr->wordpointer << fr->bitindex, fr->bitindex++, \
+ fr->wordpointer += (fr->bitindex>>3), fr->bitindex &= 7, fr->uctmp>>7 )
+
+
+#endif
diff --git a/src/libmpg123/getcpuflags.S b/src/libmpg123/getcpuflags.S
new file mode 100644
index 0000000..29ab08d
--- /dev/null
+++ b/src/libmpg123/getcpuflags.S
@@ -0,0 +1,94 @@
+/*
+ getcpucpuflags: get cpuflags for ia32
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http:#mpg123.org
+ initially written by KIMURA Takuhiro (for 3DNow!)
+ extended for general use by Thomas Orgis
+
+ extern int getcpuid(struct cpuflags*)
+ or just
+ extern int getcpuid(unsigned int*)
+ where there is memory for 4 ints
+ -> the first set of idflags (basic cpu family info)
+ and the idflags, stdflags, std2flags, extflags written to the parameter
+ -> 0x00000000 (CPUID instruction not supported)
+*/
+
+#include "mangle.h"
+
+.text
+ ALIGN4
+
+.globl ASM_NAME(getcpuflags)
+/* .type ASM_NAME(getcpuflags),@function */
+ASM_NAME(getcpuflags):
+ pushl %ebp
+ movl %esp,%ebp
+ pushl %edx
+ pushl %ecx
+ pushl %ebx
+ pushl %esi
+/* get the int pointer for storing the flags */
+ movl 8(%ebp), %esi
+/* does that one make sense? */
+ movl $0x80000000,%eax
+/* now save the flags and do a check for cpuid availability */
+ pushfl
+ pushfl
+ popl %eax
+ movl %eax,%ebx
+/* set that bit... */
+ xorl $0x00200000,%eax
+ pushl %eax
+ popfl
+/* ...and read back the flags to see if it is understood */
+ pushfl
+ popl %eax
+ popfl
+ cmpl %ebx,%eax
+ je .Lnocpuid
+/* In principle, I would have to check the CPU's identify first to be sure how to interpret the extended flags. */
+/* now get the info, first extended */
+ movl $0x0, 12(%esi) /* clear value */
+/* only if supported... */
+ movl $0x80000000, %eax
+ cpuid
+/* IDT CPUs should not change EAX, generally I hope that non-3DNow cpus do not set a bogus support level here. */
+ cmpl $0x80000001, %eax
+ jb .Lnoextended /* Skip ext check without minimal support level. */
+/* is supported, get flags value */
+ movl $0x80000001,%eax
+ cpuid
+ movl %edx,12(%esi)
+.Lnoextended:
+/* then the other ones, called last to get the id flags in %eax for ret */
+ movl $0x00000001,%eax
+ cpuid
+ movl %eax, (%esi)
+ movl %ecx, 4(%esi)
+ movl %edx, 8(%esi)
+ jmp .Lend
+ ALIGN4
+.Lnocpuid:
+/* error: set everything to zero */
+ movl $0, %eax
+ movl $0, (%esi)
+ movl $0, 4(%esi)
+ movl $0, 8(%esi)
+ movl $0, 12(%esi)
+ ALIGN4
+.Lend:
+/* return value are the id flags, still stored in %eax */
+ popl %esi
+ popl %ebx
+ popl %ecx
+ popl %edx
+ movl %ebp,%esp
+ popl %ebp
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/getcpuflags.h b/src/libmpg123/getcpuflags.h
new file mode 100644
index 0000000..ec56541
--- /dev/null
+++ b/src/libmpg123/getcpuflags.h
@@ -0,0 +1,49 @@
+/*
+ getcpucpuflags: get cpuflags for ia32
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http:#mpg123.org
+ initially written by KIMURA Takuhiro (for 3DNow!)
+ extended for general use by Thomas Orgis
+*/
+
+#ifndef MPG123_H_GETCPUFLAGS
+#define MPG123_H_GETCPUFLAGS
+
+/* standard level flags part 1 (ECX)*/
+#define FLAG_SSE3 0x00000001
+
+/* standard level flags part 2 (EDX) */
+#define FLAG2_MMX 0x00800000
+#define FLAG2_SSE 0x02000000
+#define FLAG2_SSE2 0x04000000
+#define FLAG2_FPU 0x00000001
+/* cpuid extended level 1 (AMD) */
+#define XFLAG_MMX 0x00800000
+#define XFLAG_3DNOW 0x80000000
+#define XFLAG_3DNOWEXT 0x40000000
+
+struct cpuflags
+{
+ unsigned int id;
+ unsigned int std;
+ unsigned int std2;
+ unsigned int ext;
+};
+
+extern struct cpuflags cpu_flags;
+
+unsigned int getcpuflags(struct cpuflags* cf);
+
+/* checks the family */
+#define cpu_i586(s) ( ((s.id & 0xf00)>>8) == 0 || ((s.id & 0xf00)>>8) > 4 )
+/* checking some flags... */
+#define cpu_fpu(s) (FLAG2_FPU & s.std2)
+#define cpu_mmx(s) (FLAG2_MMX & s.std2 || XFLAG_MMX & s.ext)
+#define cpu_3dnow(s) (XFLAG_3DNOW & s.ext)
+#define cpu_3dnowext(s) (XFLAG_3DNOWEXT & s.ext)
+#define cpu_sse(s) (FLAG2_SSE & s.std2)
+#define cpu_sse2(s) (FLAG2_SSE2 & s.std2)
+#define cpu_sse3(s) (FLAG_SSE3 & s.std)
+
+#endif
diff --git a/src/libmpg123/huffman.h b/src/libmpg123/huffman.h
new file mode 100644
index 0000000..74b543c
--- /dev/null
+++ b/src/libmpg123/huffman.h
@@ -0,0 +1,340 @@
+/*
+ huffman.h: huffman tables ... recalcualted to work with optimzed decoder scheme (MH)
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+
+ probably we could save a few bytes of memory, because the
+ smaller tables are often the part of a bigger table
+*/
+
+
+#ifndef _MPG123_HUFFMAN_H_
+#define _MPG123_HUFFMAN_H_
+
+struct newhuff
+{
+ unsigned int linbits;
+ short *table;
+};
+
+static short tab0[] =
+{
+ 0
+};
+
+static short tab1[] =
+{
+ -5, -3, -1, 17, 1, 16, 0
+};
+
+static short tab2[] =
+{
+ -15, -11, -9, -5, -3, -1, 34, 2, 18, -1, 33, 32, 17, -1, 1,
+ 16, 0
+};
+
+static short tab3[] =
+{
+ -13, -11, -9, -5, -3, -1, 34, 2, 18, -1, 33, 32, 16, 17, -1,
+ 1, 0
+};
+
+static short tab5[] =
+{
+ -29, -25, -23, -15, -7, -5, -3, -1, 51, 35, 50, 49, -3, -1, 19,
+ 3, -1, 48, 34, -3, -1, 18, 33, -1, 2, 32, 17, -1, 1, 16,
+ 0
+};
+
+static short tab6[] =
+{
+ -25, -19, -13, -9, -5, -3, -1, 51, 3, 35, -1, 50, 48, -1, 19,
+ 49, -3, -1, 34, 2, 18, -3, -1, 33, 32, 1, -1, 17, -1, 16,
+ 0
+};
+
+static short tab7[] =
+{
+ -69, -65, -57, -39, -29, -17, -11, -7, -3, -1, 85, 69, -1, 84, 83,
+ -1, 53, 68, -3, -1, 37, 82, 21, -5, -1, 81, -1, 5, 52, -1,
+ 80, -1, 67, 51, -5, -3, -1, 36, 66, 20, -1, 65, 64, -11, -7,
+ -3, -1, 4, 35, -1, 50, 3, -1, 19, 49, -3, -1, 48, 34, 18,
+ -5, -1, 33, -1, 2, 32, 17, -1, 1, 16, 0
+};
+
+static short tab8[] =
+{
+ -65, -63, -59, -45, -31, -19, -13, -7, -5, -3, -1, 85, 84, 69, 83,
+ -3, -1, 53, 68, 37, -3, -1, 82, 5, 21, -5, -1, 81, -1, 52,
+ 67, -3, -1, 80, 51, 36, -5, -3, -1, 66, 20, 65, -3, -1, 4,
+ 64, -1, 35, 50, -9, -7, -3, -1, 19, 49, -1, 3, 48, 34, -1,
+ 2, 32, -1, 18, 33, 17, -3, -1, 1, 16, 0
+};
+
+static short tab9[] =
+{
+ -63, -53, -41, -29, -19, -11, -5, -3, -1, 85, 69, 53, -1, 83, -1,
+ 84, 5, -3, -1, 68, 37, -1, 82, 21, -3, -1, 81, 52, -1, 67,
+ -1, 80, 4, -7, -3, -1, 36, 66, -1, 51, 64, -1, 20, 65, -5,
+ -3, -1, 35, 50, 19, -1, 49, -1, 3, 48, -5, -3, -1, 34, 2,
+ 18, -1, 33, 32, -3, -1, 17, 1, -1, 16, 0
+};
+
+static short tab10[] =
+{
+-125,-121,-111, -83, -55, -35, -21, -13, -7, -3, -1, 119, 103, -1, 118,
+ 87, -3, -1, 117, 102, 71, -3, -1, 116, 86, -1, 101, 55, -9, -3,
+ -1, 115, 70, -3, -1, 85, 84, 99, -1, 39, 114, -11, -5, -3, -1,
+ 100, 7, 112, -1, 98, -1, 69, 53, -5, -1, 6, -1, 83, 68, 23,
+ -17, -5, -1, 113, -1, 54, 38, -5, -3, -1, 37, 82, 21, -1, 81,
+ -1, 52, 67, -3, -1, 22, 97, -1, 96, -1, 5, 80, -19, -11, -7,
+ -3, -1, 36, 66, -1, 51, 4, -1, 20, 65, -3, -1, 64, 35, -1,
+ 50, 3, -3, -1, 19, 49, -1, 48, 34, -7, -3, -1, 18, 33, -1,
+ 2, 32, 17, -1, 1, 16, 0
+};
+
+static short tab11[] =
+{
+-121,-113, -89, -59, -43, -27, -17, -7, -3, -1, 119, 103, -1, 118, 117,
+ -3, -1, 102, 71, -1, 116, -1, 87, 85, -5, -3, -1, 86, 101, 55,
+ -1, 115, 70, -9, -7, -3, -1, 69, 84, -1, 53, 83, 39, -1, 114,
+ -1, 100, 7, -5, -1, 113, -1, 23, 112, -3, -1, 54, 99, -1, 96,
+ -1, 68, 37, -13, -7, -5, -3, -1, 82, 5, 21, 98, -3, -1, 38,
+ 6, 22, -5, -1, 97, -1, 81, 52, -5, -1, 80, -1, 67, 51, -1,
+ 36, 66, -15, -11, -7, -3, -1, 20, 65, -1, 4, 64, -1, 35, 50,
+ -1, 19, 49, -5, -3, -1, 3, 48, 34, 33, -5, -1, 18, -1, 2,
+ 32, 17, -3, -1, 1, 16, 0
+};
+
+static short tab12[] =
+{
+-115, -99, -73, -45, -27, -17, -9, -5, -3, -1, 119, 103, 118, -1, 87,
+ 117, -3, -1, 102, 71, -1, 116, 101, -3, -1, 86, 55, -3, -1, 115,
+ 85, 39, -7, -3, -1, 114, 70, -1, 100, 23, -5, -1, 113, -1, 7,
+ 112, -1, 54, 99, -13, -9, -3, -1, 69, 84, -1, 68, -1, 6, 5,
+ -1, 38, 98, -5, -1, 97, -1, 22, 96, -3, -1, 53, 83, -1, 37,
+ 82, -17, -7, -3, -1, 21, 81, -1, 52, 67, -5, -3, -1, 80, 4,
+ 36, -1, 66, 20, -3, -1, 51, 65, -1, 35, 50, -11, -7, -5, -3,
+ -1, 64, 3, 48, 19, -1, 49, 34, -1, 18, 33, -7, -5, -3, -1,
+ 2, 32, 0, 17, -1, 1, 16
+};
+
+static short tab13[] =
+{
+-509,-503,-475,-405,-333,-265,-205,-153,-115, -83, -53, -35, -21, -13, -9,
+ -7, -5, -3, -1, 254, 252, 253, 237, 255, -1, 239, 223, -3, -1, 238,
+ 207, -1, 222, 191, -9, -3, -1, 251, 206, -1, 220, -1, 175, 233, -1,
+ 236, 221, -9, -5, -3, -1, 250, 205, 190, -1, 235, 159, -3, -1, 249,
+ 234, -1, 189, 219, -17, -9, -3, -1, 143, 248, -1, 204, -1, 174, 158,
+ -5, -1, 142, -1, 127, 126, 247, -5, -1, 218, -1, 173, 188, -3, -1,
+ 203, 246, 111, -15, -7, -3, -1, 232, 95, -1, 157, 217, -3, -1, 245,
+ 231, -1, 172, 187, -9, -3, -1, 79, 244, -3, -1, 202, 230, 243, -1,
+ 63, -1, 141, 216, -21, -9, -3, -1, 47, 242, -3, -1, 110, 156, 15,
+ -5, -3, -1, 201, 94, 171, -3, -1, 125, 215, 78, -11, -5, -3, -1,
+ 200, 214, 62, -1, 185, -1, 155, 170, -1, 31, 241, -23, -13, -5, -1,
+ 240, -1, 186, 229, -3, -1, 228, 140, -1, 109, 227, -5, -1, 226, -1,
+ 46, 14, -1, 30, 225, -15, -7, -3, -1, 224, 93, -1, 213, 124, -3,
+ -1, 199, 77, -1, 139, 184, -7, -3, -1, 212, 154, -1, 169, 108, -1,
+ 198, 61, -37, -21, -9, -5, -3, -1, 211, 123, 45, -1, 210, 29, -5,
+ -1, 183, -1, 92, 197, -3, -1, 153, 122, 195, -7, -5, -3, -1, 167,
+ 151, 75, 209, -3, -1, 13, 208, -1, 138, 168, -11, -7, -3, -1, 76,
+ 196, -1, 107, 182, -1, 60, 44, -3, -1, 194, 91, -3, -1, 181, 137,
+ 28, -43, -23, -11, -5, -1, 193, -1, 152, 12, -1, 192, -1, 180, 106,
+ -5, -3, -1, 166, 121, 59, -1, 179, -1, 136, 90, -11, -5, -1, 43,
+ -1, 165, 105, -1, 164, -1, 120, 135, -5, -1, 148, -1, 119, 118, 178,
+ -11, -3, -1, 27, 177, -3, -1, 11, 176, -1, 150, 74, -7, -3, -1,
+ 58, 163, -1, 89, 149, -1, 42, 162, -47, -23, -9, -3, -1, 26, 161,
+ -3, -1, 10, 104, 160, -5, -3, -1, 134, 73, 147, -3, -1, 57, 88,
+ -1, 133, 103, -9, -3, -1, 41, 146, -3, -1, 87, 117, 56, -5, -1,
+ 131, -1, 102, 71, -3, -1, 116, 86, -1, 101, 115, -11, -3, -1, 25,
+ 145, -3, -1, 9, 144, -1, 72, 132, -7, -5, -1, 114, -1, 70, 100,
+ 40, -1, 130, 24, -41, -27, -11, -5, -3, -1, 55, 39, 23, -1, 113,
+ -1, 85, 7, -7, -3, -1, 112, 54, -1, 99, 69, -3, -1, 84, 38,
+ -1, 98, 53, -5, -1, 129, -1, 8, 128, -3, -1, 22, 97, -1, 6,
+ 96, -13, -9, -5, -3, -1, 83, 68, 37, -1, 82, 5, -1, 21, 81,
+ -7, -3, -1, 52, 67, -1, 80, 36, -3, -1, 66, 51, 20, -19, -11,
+ -5, -1, 65, -1, 4, 64, -3, -1, 35, 50, 19, -3, -1, 49, 3,
+ -1, 48, 34, -3, -1, 18, 33, -1, 2, 32, -3, -1, 17, 1, 16,
+ 0
+};
+
+static short tab15[] =
+{
+-495,-445,-355,-263,-183,-115, -77, -43, -27, -13, -7, -3, -1, 255, 239,
+ -1, 254, 223, -1, 238, -1, 253, 207, -7, -3, -1, 252, 222, -1, 237,
+ 191, -1, 251, -1, 206, 236, -7, -3, -1, 221, 175, -1, 250, 190, -3,
+ -1, 235, 205, -1, 220, 159, -15, -7, -3, -1, 249, 234, -1, 189, 219,
+ -3, -1, 143, 248, -1, 204, 158, -7, -3, -1, 233, 127, -1, 247, 173,
+ -3, -1, 218, 188, -1, 111, -1, 174, 15, -19, -11, -3, -1, 203, 246,
+ -3, -1, 142, 232, -1, 95, 157, -3, -1, 245, 126, -1, 231, 172, -9,
+ -3, -1, 202, 187, -3, -1, 217, 141, 79, -3, -1, 244, 63, -1, 243,
+ 216, -33, -17, -9, -3, -1, 230, 47, -1, 242, -1, 110, 240, -3, -1,
+ 31, 241, -1, 156, 201, -7, -3, -1, 94, 171, -1, 186, 229, -3, -1,
+ 125, 215, -1, 78, 228, -15, -7, -3, -1, 140, 200, -1, 62, 109, -3,
+ -1, 214, 227, -1, 155, 185, -7, -3, -1, 46, 170, -1, 226, 30, -5,
+ -1, 225, -1, 14, 224, -1, 93, 213, -45, -25, -13, -7, -3, -1, 124,
+ 199, -1, 77, 139, -1, 212, -1, 184, 154, -7, -3, -1, 169, 108, -1,
+ 198, 61, -1, 211, 210, -9, -5, -3, -1, 45, 13, 29, -1, 123, 183,
+ -5, -1, 209, -1, 92, 208, -1, 197, 138, -17, -7, -3, -1, 168, 76,
+ -1, 196, 107, -5, -1, 182, -1, 153, 12, -1, 60, 195, -9, -3, -1,
+ 122, 167, -1, 166, -1, 192, 11, -1, 194, -1, 44, 91, -55, -29, -15,
+ -7, -3, -1, 181, 28, -1, 137, 152, -3, -1, 193, 75, -1, 180, 106,
+ -5, -3, -1, 59, 121, 179, -3, -1, 151, 136, -1, 43, 90, -11, -5,
+ -1, 178, -1, 165, 27, -1, 177, -1, 176, 105, -7, -3, -1, 150, 74,
+ -1, 164, 120, -3, -1, 135, 58, 163, -17, -7, -3, -1, 89, 149, -1,
+ 42, 162, -3, -1, 26, 161, -3, -1, 10, 160, 104, -7, -3, -1, 134,
+ 73, -1, 148, 57, -5, -1, 147, -1, 119, 9, -1, 88, 133, -53, -29,
+ -13, -7, -3, -1, 41, 103, -1, 118, 146, -1, 145, -1, 25, 144, -7,
+ -3, -1, 72, 132, -1, 87, 117, -3, -1, 56, 131, -1, 102, 71, -7,
+ -3, -1, 40, 130, -1, 24, 129, -7, -3, -1, 116, 8, -1, 128, 86,
+ -3, -1, 101, 55, -1, 115, 70, -17, -7, -3, -1, 39, 114, -1, 100,
+ 23, -3, -1, 85, 113, -3, -1, 7, 112, 54, -7, -3, -1, 99, 69,
+ -1, 84, 38, -3, -1, 98, 22, -3, -1, 6, 96, 53, -33, -19, -9,
+ -5, -1, 97, -1, 83, 68, -1, 37, 82, -3, -1, 21, 81, -3, -1,
+ 5, 80, 52, -7, -3, -1, 67, 36, -1, 66, 51, -1, 65, -1, 20,
+ 4, -9, -3, -1, 35, 50, -3, -1, 64, 3, 19, -3, -1, 49, 48,
+ 34, -9, -7, -3, -1, 18, 33, -1, 2, 32, 17, -3, -1, 1, 16,
+ 0
+};
+
+static short tab16[] =
+{
+-509,-503,-461,-323,-103, -37, -27, -15, -7, -3, -1, 239, 254, -1, 223,
+ 253, -3, -1, 207, 252, -1, 191, 251, -5, -1, 175, -1, 250, 159, -3,
+ -1, 249, 248, 143, -7, -3, -1, 127, 247, -1, 111, 246, 255, -9, -5,
+ -3, -1, 95, 245, 79, -1, 244, 243, -53, -1, 240, -1, 63, -29, -19,
+ -13, -7, -5, -1, 206, -1, 236, 221, 222, -1, 233, -1, 234, 217, -1,
+ 238, -1, 237, 235, -3, -1, 190, 205, -3, -1, 220, 219, 174, -11, -5,
+ -1, 204, -1, 173, 218, -3, -1, 126, 172, 202, -5, -3, -1, 201, 125,
+ 94, 189, 242, -93, -5, -3, -1, 47, 15, 31, -1, 241, -49, -25, -13,
+ -5, -1, 158, -1, 188, 203, -3, -1, 142, 232, -1, 157, 231, -7, -3,
+ -1, 187, 141, -1, 216, 110, -1, 230, 156, -13, -7, -3, -1, 171, 186,
+ -1, 229, 215, -1, 78, -1, 228, 140, -3, -1, 200, 62, -1, 109, -1,
+ 214, 155, -19, -11, -5, -3, -1, 185, 170, 225, -1, 212, -1, 184, 169,
+ -5, -1, 123, -1, 183, 208, 227, -7, -3, -1, 14, 224, -1, 93, 213,
+ -3, -1, 124, 199, -1, 77, 139, -75, -45, -27, -13, -7, -3, -1, 154,
+ 108, -1, 198, 61, -3, -1, 92, 197, 13, -7, -3, -1, 138, 168, -1,
+ 153, 76, -3, -1, 182, 122, 60, -11, -5, -3, -1, 91, 137, 28, -1,
+ 192, -1, 152, 121, -1, 226, -1, 46, 30, -15, -7, -3, -1, 211, 45,
+ -1, 210, 209, -5, -1, 59, -1, 151, 136, 29, -7, -3, -1, 196, 107,
+ -1, 195, 167, -1, 44, -1, 194, 181, -23, -13, -7, -3, -1, 193, 12,
+ -1, 75, 180, -3, -1, 106, 166, 179, -5, -3, -1, 90, 165, 43, -1,
+ 178, 27, -13, -5, -1, 177, -1, 11, 176, -3, -1, 105, 150, -1, 74,
+ 164, -5, -3, -1, 120, 135, 163, -3, -1, 58, 89, 42, -97, -57, -33,
+ -19, -11, -5, -3, -1, 149, 104, 161, -3, -1, 134, 119, 148, -5, -3,
+ -1, 73, 87, 103, 162, -5, -1, 26, -1, 10, 160, -3, -1, 57, 147,
+ -1, 88, 133, -9, -3, -1, 41, 146, -3, -1, 118, 9, 25, -5, -1,
+ 145, -1, 144, 72, -3, -1, 132, 117, -1, 56, 131, -21, -11, -5, -3,
+ -1, 102, 40, 130, -3, -1, 71, 116, 24, -3, -1, 129, 128, -3, -1,
+ 8, 86, 55, -9, -5, -1, 115, -1, 101, 70, -1, 39, 114, -5, -3,
+ -1, 100, 85, 7, 23, -23, -13, -5, -1, 113, -1, 112, 54, -3, -1,
+ 99, 69, -1, 84, 38, -3, -1, 98, 22, -1, 97, -1, 6, 96, -9,
+ -5, -1, 83, -1, 53, 68, -1, 37, 82, -1, 81, -1, 21, 5, -33,
+ -23, -13, -7, -3, -1, 52, 67, -1, 80, 36, -3, -1, 66, 51, 20,
+ -5, -1, 65, -1, 4, 64, -1, 35, 50, -3, -1, 19, 49, -3, -1,
+ 3, 48, 34, -3, -1, 18, 33, -1, 2, 32, -3, -1, 17, 1, 16,
+ 0
+};
+
+static short tab24[] =
+{
+-451,-117, -43, -25, -15, -7, -3, -1, 239, 254, -1, 223, 253, -3, -1,
+ 207, 252, -1, 191, 251, -5, -1, 250, -1, 175, 159, -1, 249, 248, -9,
+ -5, -3, -1, 143, 127, 247, -1, 111, 246, -3, -1, 95, 245, -1, 79,
+ 244, -71, -7, -3, -1, 63, 243, -1, 47, 242, -5, -1, 241, -1, 31,
+ 240, -25, -9, -1, 15, -3, -1, 238, 222, -1, 237, 206, -7, -3, -1,
+ 236, 221, -1, 190, 235, -3, -1, 205, 220, -1, 174, 234, -15, -7, -3,
+ -1, 189, 219, -1, 204, 158, -3, -1, 233, 173, -1, 218, 188, -7, -3,
+ -1, 203, 142, -1, 232, 157, -3, -1, 217, 126, -1, 231, 172, 255,-235,
+-143, -77, -45, -25, -15, -7, -3, -1, 202, 187, -1, 141, 216, -5, -3,
+ -1, 14, 224, 13, 230, -5, -3, -1, 110, 156, 201, -1, 94, 186, -9,
+ -5, -1, 229, -1, 171, 125, -1, 215, 228, -3, -1, 140, 200, -3, -1,
+ 78, 46, 62, -15, -7, -3, -1, 109, 214, -1, 227, 155, -3, -1, 185,
+ 170, -1, 226, 30, -7, -3, -1, 225, 93, -1, 213, 124, -3, -1, 199,
+ 77, -1, 139, 184, -31, -15, -7, -3, -1, 212, 154, -1, 169, 108, -3,
+ -1, 198, 61, -1, 211, 45, -7, -3, -1, 210, 29, -1, 123, 183, -3,
+ -1, 209, 92, -1, 197, 138, -17, -7, -3, -1, 168, 153, -1, 76, 196,
+ -3, -1, 107, 182, -3, -1, 208, 12, 60, -7, -3, -1, 195, 122, -1,
+ 167, 44, -3, -1, 194, 91, -1, 181, 28, -57, -35, -19, -7, -3, -1,
+ 137, 152, -1, 193, 75, -5, -3, -1, 192, 11, 59, -3, -1, 176, 10,
+ 26, -5, -1, 180, -1, 106, 166, -3, -1, 121, 151, -3, -1, 160, 9,
+ 144, -9, -3, -1, 179, 136, -3, -1, 43, 90, 178, -7, -3, -1, 165,
+ 27, -1, 177, 105, -1, 150, 164, -17, -9, -5, -3, -1, 74, 120, 135,
+ -1, 58, 163, -3, -1, 89, 149, -1, 42, 162, -7, -3, -1, 161, 104,
+ -1, 134, 119, -3, -1, 73, 148, -1, 57, 147, -63, -31, -15, -7, -3,
+ -1, 88, 133, -1, 41, 103, -3, -1, 118, 146, -1, 25, 145, -7, -3,
+ -1, 72, 132, -1, 87, 117, -3, -1, 56, 131, -1, 102, 40, -17, -7,
+ -3, -1, 130, 24, -1, 71, 116, -5, -1, 129, -1, 8, 128, -1, 86,
+ 101, -7, -5, -1, 23, -1, 7, 112, 115, -3, -1, 55, 39, 114, -15,
+ -7, -3, -1, 70, 100, -1, 85, 113, -3, -1, 54, 99, -1, 69, 84,
+ -7, -3, -1, 38, 98, -1, 22, 97, -5, -3, -1, 6, 96, 53, -1,
+ 83, 68, -51, -37, -23, -15, -9, -3, -1, 37, 82, -1, 21, -1, 5,
+ 80, -1, 81, -1, 52, 67, -3, -1, 36, 66, -1, 51, 20, -9, -5,
+ -1, 65, -1, 4, 64, -1, 35, 50, -1, 19, 49, -7, -5, -3, -1,
+ 3, 48, 34, 18, -1, 33, -1, 2, 32, -3, -1, 17, 1, -1, 16,
+ 0
+};
+
+static short tab_c0[] =
+{
+ -29, -21, -13, -7, -3, -1, 11, 15, -1, 13, 14, -3, -1, 7, 5,
+ 9, -3, -1, 6, 3, -1, 10, 12, -3, -1, 2, 1, -1, 4, 8,
+ 0
+};
+
+static short tab_c1[] =
+{
+ -15, -7, -3, -1, 15, 14, -1, 13, 12, -3, -1, 11, 10, -1, 9,
+ 8, -7, -3, -1, 7, 6, -1, 5, 4, -3, -1, 3, 2, -1, 1,
+ 0
+};
+
+
+
+static struct newhuff ht[] =
+{
+ { /* 0 */ 0 , tab0 } ,
+ { /* 2 */ 0 , tab1 } ,
+ { /* 3 */ 0 , tab2 } ,
+ { /* 3 */ 0 , tab3 } ,
+ { /* 0 */ 0 , tab0 } ,
+ { /* 4 */ 0 , tab5 } ,
+ { /* 4 */ 0 , tab6 } ,
+ { /* 6 */ 0 , tab7 } ,
+ { /* 6 */ 0 , tab8 } ,
+ { /* 6 */ 0 , tab9 } ,
+ { /* 8 */ 0 , tab10 } ,
+ { /* 8 */ 0 , tab11 } ,
+ { /* 8 */ 0 , tab12 } ,
+ { /* 16 */ 0 , tab13 } ,
+ { /* 0 */ 0 , tab0 } ,
+ { /* 16 */ 0 , tab15 } ,
+
+ { /* 16 */ 1 , tab16 } ,
+ { /* 16 */ 2 , tab16 } ,
+ { /* 16 */ 3 , tab16 } ,
+ { /* 16 */ 4 , tab16 } ,
+ { /* 16 */ 6 , tab16 } ,
+ { /* 16 */ 8 , tab16 } ,
+ { /* 16 */ 10, tab16 } ,
+ { /* 16 */ 13, tab16 } ,
+ { /* 16 */ 4 , tab24 } ,
+ { /* 16 */ 5 , tab24 } ,
+ { /* 16 */ 6 , tab24 } ,
+ { /* 16 */ 7 , tab24 } ,
+ { /* 16 */ 8 , tab24 } ,
+ { /* 16 */ 9 , tab24 } ,
+ { /* 16 */ 11, tab24 } ,
+ { /* 16 */ 13, tab24 }
+};
+
+static struct newhuff htc[] =
+{
+ { /* 1 , 1 , */ 0 , tab_c0 } ,
+ { /* 1 , 1 , */ 0 , tab_c1 }
+};
+
+
+#endif
diff --git a/src/libmpg123/icy.c b/src/libmpg123/icy.c
new file mode 100644
index 0000000..dca2c5d
--- /dev/null
+++ b/src/libmpg123/icy.c
@@ -0,0 +1,32 @@
+/*
+ icy: Puny code to pretend for a serious ICY data structure.
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include "icy.h"
+
+void init_icy(struct icy_meta *icy)
+{
+ icy->data = NULL;
+}
+
+void clear_icy(struct icy_meta *icy)
+{
+ if(icy->data != NULL) free(icy->data);
+ init_icy(icy);
+}
+
+void reset_icy(struct icy_meta *icy)
+{
+ clear_icy(icy);
+ init_icy(icy);
+}
+/*void set_icy(struct icy_meta *icy, char* new_data)
+{
+ if(icy->data) free(icy->data);
+ icy->data = new_data;
+ icy->changed = 1;
+}*/
diff --git a/src/libmpg123/icy.h b/src/libmpg123/icy.h
new file mode 100644
index 0000000..050a056
--- /dev/null
+++ b/src/libmpg123/icy.h
@@ -0,0 +1,35 @@
+/*
+ icy: support for SHOUTcast ICY meta info, an attempt to keep it organized
+
+ copyright 2006-7 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis and modelled after patch by Honza
+*/
+#ifndef MPG123_ICY_H
+#define MPG123_ICY_H
+
+#ifndef NO_ICY
+
+#include "compat.h"
+#include "mpg123.h"
+
+struct icy_meta
+{
+ char* data;
+ off_t interval;
+ off_t next;
+};
+
+void init_icy(struct icy_meta *);
+void clear_icy(struct icy_meta *);
+void reset_icy(struct icy_meta *);
+
+#else
+
+#define init_icy(a)
+#define clear_icy(a)
+#define reset_icy(a)
+
+#endif /* NO_ICY */
+
+#endif
diff --git a/src/libmpg123/icy2utf8.c b/src/libmpg123/icy2utf8.c
new file mode 100644
index 0000000..d4b9113
--- /dev/null
+++ b/src/libmpg123/icy2utf8.c
@@ -0,0 +1,437 @@
+/* mpg123 note: This is BSD-licensed code that is no problem for mpg123 usage under LGPL.
+ It's Free, understood? ;-) */
+
+/* Another note: This code is basically written by Thorsten Glaser,
+ Thomas Orgis did just some rearrangements and comments. */
+
+/*-
+ * Copyright (c) 2008
+ * Thorsten Glaser <tg@mirbsd.org>
+ *
+ * Provided that these terms and disclaimer and all copyright notices
+ * are retained or reproduced in an accompanying document, permission
+ * is granted to deal in this work without restriction, including un-
+ * limited rights to use, publicly perform, distribute, sell, modify,
+ * merge, give away, or sublicence.
+ *
+ * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
+ * the utmost extent permitted by applicable law, neither express nor
+ * implied; without malicious intent or gross negligence. In no event
+ * may a licensor, author or contributor be held liable for indirect,
+ * direct, other damage, loss, or other issues arising in any way out
+ * of dealing in the work, even if advised of the possibility of such
+ * damage or existence of a defect, except proven that it results out
+ * of said person's immediate fault when using the work as intended.
+ *-
+ * Convert from ICY encoding (windows-1252 codepage) to UTF-8
+ */
+
+/* Includes string and stdlib headers... */
+#include "compat.h"
+
+/* ThOr: too lazy for this type check; also we use char/short all around anyway.
+ Of cource, it would be the proper way to use _these_ kind of types all around. */
+#define uint8_t unsigned char
+#define uint16_t unsigned short
+
+static const uint8_t cp1252_utf8[] = {
+ /* 0x00 @ 0 */ 0x00,
+ /* 0x01 @ 1 */ 0x01,
+ /* 0x02 @ 2 */ 0x02,
+ /* 0x03 @ 3 */ 0x03,
+ /* 0x04 @ 4 */ 0x04,
+ /* 0x05 @ 5 */ 0x05,
+ /* 0x06 @ 6 */ 0x06,
+ /* 0x07 @ 7 */ 0x07,
+ /* 0x08 @ 8 */ 0x08,
+ /* 0x09 @ 9 */ 0x09,
+ /* 0x0A @ 10 */ 0x0A,
+ /* 0x0B @ 11 */ 0x0B,
+ /* 0x0C @ 12 */ 0x0C,
+ /* 0x0D @ 13 */ 0x0D,
+ /* 0x0E @ 14 */ 0x0E,
+ /* 0x0F @ 15 */ 0x0F,
+ /* 0x10 @ 16 */ 0x10,
+ /* 0x11 @ 17 */ 0x11,
+ /* 0x12 @ 18 */ 0x12,
+ /* 0x13 @ 19 */ 0x13,
+ /* 0x14 @ 20 */ 0x14,
+ /* 0x15 @ 21 */ 0x15,
+ /* 0x16 @ 22 */ 0x16,
+ /* 0x17 @ 23 */ 0x17,
+ /* 0x18 @ 24 */ 0x18,
+ /* 0x19 @ 25 */ 0x19,
+ /* 0x1A @ 26 */ 0x1A,
+ /* 0x1B @ 27 */ 0x1B,
+ /* 0x1C @ 28 */ 0x1C,
+ /* 0x1D @ 29 */ 0x1D,
+ /* 0x1E @ 30 */ 0x1E,
+ /* 0x1F @ 31 */ 0x1F,
+ /* 0x20 @ 32 */ 0x20,
+ /* 0x21 @ 33 */ 0x21,
+ /* 0x22 @ 34 */ 0x22,
+ /* 0x23 @ 35 */ 0x23,
+ /* 0x24 @ 36 */ 0x24,
+ /* 0x25 @ 37 */ 0x25,
+ /* 0x26 @ 38 */ 0x26,
+ /* 0x27 @ 39 */ 0x27,
+ /* 0x28 @ 40 */ 0x28,
+ /* 0x29 @ 41 */ 0x29,
+ /* 0x2A @ 42 */ 0x2A,
+ /* 0x2B @ 43 */ 0x2B,
+ /* 0x2C @ 44 */ 0x2C,
+ /* 0x2D @ 45 */ 0x2D,
+ /* 0x2E @ 46 */ 0x2E,
+ /* 0x2F @ 47 */ 0x2F,
+ /* 0x30 @ 48 */ 0x30,
+ /* 0x31 @ 49 */ 0x31,
+ /* 0x32 @ 50 */ 0x32,
+ /* 0x33 @ 51 */ 0x33,
+ /* 0x34 @ 52 */ 0x34,
+ /* 0x35 @ 53 */ 0x35,
+ /* 0x36 @ 54 */ 0x36,
+ /* 0x37 @ 55 */ 0x37,
+ /* 0x38 @ 56 */ 0x38,
+ /* 0x39 @ 57 */ 0x39,
+ /* 0x3A @ 58 */ 0x3A,
+ /* 0x3B @ 59 */ 0x3B,
+ /* 0x3C @ 60 */ 0x3C,
+ /* 0x3D @ 61 */ 0x3D,
+ /* 0x3E @ 62 */ 0x3E,
+ /* 0x3F @ 63 */ 0x3F,
+ /* 0x40 @ 64 */ 0x40,
+ /* 0x41 @ 65 */ 0x41,
+ /* 0x42 @ 66 */ 0x42,
+ /* 0x43 @ 67 */ 0x43,
+ /* 0x44 @ 68 */ 0x44,
+ /* 0x45 @ 69 */ 0x45,
+ /* 0x46 @ 70 */ 0x46,
+ /* 0x47 @ 71 */ 0x47,
+ /* 0x48 @ 72 */ 0x48,
+ /* 0x49 @ 73 */ 0x49,
+ /* 0x4A @ 74 */ 0x4A,
+ /* 0x4B @ 75 */ 0x4B,
+ /* 0x4C @ 76 */ 0x4C,
+ /* 0x4D @ 77 */ 0x4D,
+ /* 0x4E @ 78 */ 0x4E,
+ /* 0x4F @ 79 */ 0x4F,
+ /* 0x50 @ 80 */ 0x50,
+ /* 0x51 @ 81 */ 0x51,
+ /* 0x52 @ 82 */ 0x52,
+ /* 0x53 @ 83 */ 0x53,
+ /* 0x54 @ 84 */ 0x54,
+ /* 0x55 @ 85 */ 0x55,
+ /* 0x56 @ 86 */ 0x56,
+ /* 0x57 @ 87 */ 0x57,
+ /* 0x58 @ 88 */ 0x58,
+ /* 0x59 @ 89 */ 0x59,
+ /* 0x5A @ 90 */ 0x5A,
+ /* 0x5B @ 91 */ 0x5B,
+ /* 0x5C @ 92 */ 0x5C,
+ /* 0x5D @ 93 */ 0x5D,
+ /* 0x5E @ 94 */ 0x5E,
+ /* 0x5F @ 95 */ 0x5F,
+ /* 0x60 @ 96 */ 0x60,
+ /* 0x61 @ 97 */ 0x61,
+ /* 0x62 @ 98 */ 0x62,
+ /* 0x63 @ 99 */ 0x63,
+ /* 0x64 @ 100 */ 0x64,
+ /* 0x65 @ 101 */ 0x65,
+ /* 0x66 @ 102 */ 0x66,
+ /* 0x67 @ 103 */ 0x67,
+ /* 0x68 @ 104 */ 0x68,
+ /* 0x69 @ 105 */ 0x69,
+ /* 0x6A @ 106 */ 0x6A,
+ /* 0x6B @ 107 */ 0x6B,
+ /* 0x6C @ 108 */ 0x6C,
+ /* 0x6D @ 109 */ 0x6D,
+ /* 0x6E @ 110 */ 0x6E,
+ /* 0x6F @ 111 */ 0x6F,
+ /* 0x70 @ 112 */ 0x70,
+ /* 0x71 @ 113 */ 0x71,
+ /* 0x72 @ 114 */ 0x72,
+ /* 0x73 @ 115 */ 0x73,
+ /* 0x74 @ 116 */ 0x74,
+ /* 0x75 @ 117 */ 0x75,
+ /* 0x76 @ 118 */ 0x76,
+ /* 0x77 @ 119 */ 0x77,
+ /* 0x78 @ 120 */ 0x78,
+ /* 0x79 @ 121 */ 0x79,
+ /* 0x7A @ 122 */ 0x7A,
+ /* 0x7B @ 123 */ 0x7B,
+ /* 0x7C @ 124 */ 0x7C,
+ /* 0x7D @ 125 */ 0x7D,
+ /* 0x7E @ 126 */ 0x7E,
+ /* 0x7F @ 127 */ 0x7F,
+ /* 0x80 @ 128 */ 0xE2, 0x82, 0xAC,
+ /* 0x81 @ 131 */ 0xEF, 0xBF, 0xBD,
+ /* 0x82 @ 134 */ 0xE2, 0x80, 0x9A,
+ /* 0x83 @ 137 */ 0xC6, 0x92,
+ /* 0x84 @ 139 */ 0xE2, 0x80, 0x9E,
+ /* 0x85 @ 142 */ 0xE2, 0x80, 0xA6,
+ /* 0x86 @ 145 */ 0xE2, 0x80, 0xA0,
+ /* 0x87 @ 148 */ 0xE2, 0x80, 0xA1,
+ /* 0x88 @ 151 */ 0xCB, 0x86,
+ /* 0x89 @ 153 */ 0xE2, 0x80, 0xB0,
+ /* 0x8A @ 156 */ 0xC5, 0xA0,
+ /* 0x8B @ 158 */ 0xE2, 0x80, 0xB9,
+ /* 0x8C @ 161 */ 0xC5, 0x92,
+ /* 0x8D @ 163 */ 0xEF, 0xBF, 0xBD,
+ /* 0x8E @ 166 */ 0xC5, 0xBD,
+ /* 0x8F @ 168 */ 0xEF, 0xBF, 0xBD,
+ /* 0x90 @ 171 */ 0xEF, 0xBF, 0xBD,
+ /* 0x91 @ 174 */ 0xE2, 0x80, 0x98,
+ /* 0x92 @ 177 */ 0xE2, 0x80, 0x99,
+ /* 0x93 @ 180 */ 0xE2, 0x80, 0x9C,
+ /* 0x94 @ 183 */ 0xE2, 0x80, 0x9D,
+ /* 0x95 @ 186 */ 0xE2, 0x80, 0xA2,
+ /* 0x96 @ 189 */ 0xE2, 0x80, 0x93,
+ /* 0x97 @ 192 */ 0xE2, 0x80, 0x94,
+ /* 0x98 @ 195 */ 0xCB, 0x9C,
+ /* 0x99 @ 197 */ 0xE2, 0x84, 0xA2,
+ /* 0x9A @ 200 */ 0xC5, 0xA1,
+ /* 0x9B @ 202 */ 0xE2, 0x80, 0xBA,
+ /* 0x9C @ 205 */ 0xC5, 0x93,
+ /* 0x9D @ 207 */ 0xEF, 0xBF, 0xBD,
+ /* 0x9E @ 210 */ 0xC5, 0xBE,
+ /* 0x9F @ 212 */ 0xC5, 0xB8,
+ /* 0xA0 @ 214 */ 0xC2, 0xA0,
+ /* 0xA1 @ 216 */ 0xC2, 0xA1,
+ /* 0xA2 @ 218 */ 0xC2, 0xA2,
+ /* 0xA3 @ 220 */ 0xC2, 0xA3,
+ /* 0xA4 @ 222 */ 0xC2, 0xA4,
+ /* 0xA5 @ 224 */ 0xC2, 0xA5,
+ /* 0xA6 @ 226 */ 0xC2, 0xA6,
+ /* 0xA7 @ 228 */ 0xC2, 0xA7,
+ /* 0xA8 @ 230 */ 0xC2, 0xA8,
+ /* 0xA9 @ 232 */ 0xC2, 0xA9,
+ /* 0xAA @ 234 */ 0xC2, 0xAA,
+ /* 0xAB @ 236 */ 0xC2, 0xAB,
+ /* 0xAC @ 238 */ 0xC2, 0xAC,
+ /* 0xAD @ 240 */ 0xC2, 0xAD,
+ /* 0xAE @ 242 */ 0xC2, 0xAE,
+ /* 0xAF @ 244 */ 0xC2, 0xAF,
+ /* 0xB0 @ 246 */ 0xC2, 0xB0,
+ /* 0xB1 @ 248 */ 0xC2, 0xB1,
+ /* 0xB2 @ 250 */ 0xC2, 0xB2,
+ /* 0xB3 @ 252 */ 0xC2, 0xB3,
+ /* 0xB4 @ 254 */ 0xC2, 0xB4,
+ /* 0xB5 @ 256 */ 0xC2, 0xB5,
+ /* 0xB6 @ 258 */ 0xC2, 0xB6,
+ /* 0xB7 @ 260 */ 0xC2, 0xB7,
+ /* 0xB8 @ 262 */ 0xC2, 0xB8,
+ /* 0xB9 @ 264 */ 0xC2, 0xB9,
+ /* 0xBA @ 266 */ 0xC2, 0xBA,
+ /* 0xBB @ 268 */ 0xC2, 0xBB,
+ /* 0xBC @ 270 */ 0xC2, 0xBC,
+ /* 0xBD @ 272 */ 0xC2, 0xBD,
+ /* 0xBE @ 274 */ 0xC2, 0xBE,
+ /* 0xBF @ 276 */ 0xC2, 0xBF,
+ /* 0xC0 @ 278 */ 0xC3, 0x80,
+ /* 0xC1 @ 280 */ 0xC3, 0x81,
+ /* 0xC2 @ 282 */ 0xC3, 0x82,
+ /* 0xC3 @ 284 */ 0xC3, 0x83,
+ /* 0xC4 @ 286 */ 0xC3, 0x84,
+ /* 0xC5 @ 288 */ 0xC3, 0x85,
+ /* 0xC6 @ 290 */ 0xC3, 0x86,
+ /* 0xC7 @ 292 */ 0xC3, 0x87,
+ /* 0xC8 @ 294 */ 0xC3, 0x88,
+ /* 0xC9 @ 296 */ 0xC3, 0x89,
+ /* 0xCA @ 298 */ 0xC3, 0x8A,
+ /* 0xCB @ 300 */ 0xC3, 0x8B,
+ /* 0xCC @ 302 */ 0xC3, 0x8C,
+ /* 0xCD @ 304 */ 0xC3, 0x8D,
+ /* 0xCE @ 306 */ 0xC3, 0x8E,
+ /* 0xCF @ 308 */ 0xC3, 0x8F,
+ /* 0xD0 @ 310 */ 0xC3, 0x90,
+ /* 0xD1 @ 312 */ 0xC3, 0x91,
+ /* 0xD2 @ 314 */ 0xC3, 0x92,
+ /* 0xD3 @ 316 */ 0xC3, 0x93,
+ /* 0xD4 @ 318 */ 0xC3, 0x94,
+ /* 0xD5 @ 320 */ 0xC3, 0x95,
+ /* 0xD6 @ 322 */ 0xC3, 0x96,
+ /* 0xD7 @ 324 */ 0xC3, 0x97,
+ /* 0xD8 @ 326 */ 0xC3, 0x98,
+ /* 0xD9 @ 328 */ 0xC3, 0x99,
+ /* 0xDA @ 330 */ 0xC3, 0x9A,
+ /* 0xDB @ 332 */ 0xC3, 0x9B,
+ /* 0xDC @ 334 */ 0xC3, 0x9C,
+ /* 0xDD @ 336 */ 0xC3, 0x9D,
+ /* 0xDE @ 338 */ 0xC3, 0x9E,
+ /* 0xDF @ 340 */ 0xC3, 0x9F,
+ /* 0xE0 @ 342 */ 0xC3, 0xA0,
+ /* 0xE1 @ 344 */ 0xC3, 0xA1,
+ /* 0xE2 @ 346 */ 0xC3, 0xA2,
+ /* 0xE3 @ 348 */ 0xC3, 0xA3,
+ /* 0xE4 @ 350 */ 0xC3, 0xA4,
+ /* 0xE5 @ 352 */ 0xC3, 0xA5,
+ /* 0xE6 @ 354 */ 0xC3, 0xA6,
+ /* 0xE7 @ 356 */ 0xC3, 0xA7,
+ /* 0xE8 @ 358 */ 0xC3, 0xA8,
+ /* 0xE9 @ 360 */ 0xC3, 0xA9,
+ /* 0xEA @ 362 */ 0xC3, 0xAA,
+ /* 0xEB @ 364 */ 0xC3, 0xAB,
+ /* 0xEC @ 366 */ 0xC3, 0xAC,
+ /* 0xED @ 368 */ 0xC3, 0xAD,
+ /* 0xEE @ 370 */ 0xC3, 0xAE,
+ /* 0xEF @ 372 */ 0xC3, 0xAF,
+ /* 0xF0 @ 374 */ 0xC3, 0xB0,
+ /* 0xF1 @ 376 */ 0xC3, 0xB1,
+ /* 0xF2 @ 378 */ 0xC3, 0xB2,
+ /* 0xF3 @ 380 */ 0xC3, 0xB3,
+ /* 0xF4 @ 382 */ 0xC3, 0xB4,
+ /* 0xF5 @ 384 */ 0xC3, 0xB5,
+ /* 0xF6 @ 386 */ 0xC3, 0xB6,
+ /* 0xF7 @ 388 */ 0xC3, 0xB7,
+ /* 0xF8 @ 390 */ 0xC3, 0xB8,
+ /* 0xF9 @ 392 */ 0xC3, 0xB9,
+ /* 0xFA @ 394 */ 0xC3, 0xBA,
+ /* 0xFB @ 396 */ 0xC3, 0xBB,
+ /* 0xFC @ 398 */ 0xC3, 0xBC,
+ /* 0xFD @ 400 */ 0xC3, 0xBD,
+ /* 0xFE @ 402 */ 0xC3, 0xBE,
+ /* 0xFF @ 404 */ 0xC3, 0xBF,
+};
+
+static const uint16_t tblofs[257] = {
+ /* 0x00 */ 0, 1, 2, 3, 4, 5, 6, 7,
+ /* 0x08 */ 8, 9, 10, 11, 12, 13, 14, 15,
+ /* 0x10 */ 16, 17, 18, 19, 20, 21, 22, 23,
+ /* 0x18 */ 24, 25, 26, 27, 28, 29, 30, 31,
+ /* 0x20 */ 32, 33, 34, 35, 36, 37, 38, 39,
+ /* 0x28 */ 40, 41, 42, 43, 44, 45, 46, 47,
+ /* 0x30 */ 48, 49, 50, 51, 52, 53, 54, 55,
+ /* 0x38 */ 56, 57, 58, 59, 60, 61, 62, 63,
+ /* 0x40 */ 64, 65, 66, 67, 68, 69, 70, 71,
+ /* 0x48 */ 72, 73, 74, 75, 76, 77, 78, 79,
+ /* 0x50 */ 80, 81, 82, 83, 84, 85, 86, 87,
+ /* 0x58 */ 88, 89, 90, 91, 92, 93, 94, 95,
+ /* 0x60 */ 96, 97, 98, 99, 100, 101, 102, 103,
+ /* 0x68 */ 104, 105, 106, 107, 108, 109, 110, 111,
+ /* 0x70 */ 112, 113, 114, 115, 116, 117, 118, 119,
+ /* 0x78 */ 120, 121, 122, 123, 124, 125, 126, 127,
+ /* 0x80 */ 128, 131, 134, 137, 139, 142, 145, 148,
+ /* 0x88 */ 151, 153, 156, 158, 161, 163, 166, 168,
+ /* 0x90 */ 171, 174, 177, 180, 183, 186, 189, 192,
+ /* 0x98 */ 195, 197, 200, 202, 205, 207, 210, 212,
+ /* 0xA0 */ 214, 216, 218, 220, 222, 224, 226, 228,
+ /* 0xA8 */ 230, 232, 234, 236, 238, 240, 242, 244,
+ /* 0xB0 */ 246, 248, 250, 252, 254, 256, 258, 260,
+ /* 0xB8 */ 262, 264, 266, 268, 270, 272, 274, 276,
+ /* 0xC0 */ 278, 280, 282, 284, 286, 288, 290, 292,
+ /* 0xC8 */ 294, 296, 298, 300, 302, 304, 306, 308,
+ /* 0xD0 */ 310, 312, 314, 316, 318, 320, 322, 324,
+ /* 0xD8 */ 326, 328, 330, 332, 334, 336, 338, 340,
+ /* 0xE0 */ 342, 344, 346, 348, 350, 352, 354, 356,
+ /* 0xE8 */ 358, 360, 362, 364, 366, 368, 370, 372,
+ /* 0xF0 */ 374, 376, 378, 380, 382, 384, 386, 388,
+ /* 0xF8 */ 390, 392, 394, 396, 398, 400, 402, 404,
+ /* sizeof (cp1252_utf8) */ 406
+};
+
+/* Check if a string qualifies as UTF-8. */
+static int
+is_utf8(const char* src)
+{
+ uint8_t ch;
+ size_t i;
+ const uint8_t* s = (const uint8_t*) src;
+
+ /* We make a loop over every character, until we find a null one.
+ Remember: The string is supposed to end with a NUL, so ahead checks are safe. */
+ while ((ch = *s++)) {
+ /* Ye olde 7bit ASCII chars 'rr fine for anything */
+ if(ch < 0x80) continue;
+
+ /* Now, we watch out for non-UTF conform sequences. */
+ else if ((ch < 0xC2) || (ch > 0xFD))
+ return 0;
+ /* check for some misformed sequences */
+ if (((ch == 0xC2) && (s[0] < 0xA0)) ||
+ ((ch == 0xEF) && (s[0] == 0xBF) && (s[1] > 0xBD)))
+ /* XXX add more for outside the BMP */
+ return 0;
+
+ /* Check the continuation bytes. */
+ if (ch < 0xE0) i = 1;
+ else if (ch < 0xF0) i = 2;
+ else if (ch < 0xF8) i = 3;
+ else if (ch < 0xFC) i = 4;
+ else
+ i = 5;
+
+ while (i--)
+ if ((*s++ & 0xC0) != 0x80)
+ return 0;
+ }
+
+ /* If no check failed, the string indeed looks like valid UTF-8. */
+ return 1;
+}
+
+/* The main conversion routine.
+ ICY in CP-1252 (or UTF-8 alreay) to UTF-8 encoded string. */
+char *
+icy2utf8(const char *src)
+{
+ const uint8_t *s = (const uint8_t *)src;
+ size_t srclen, dstlen, i, k;
+ uint8_t ch, *d;
+ char *dst;
+
+ /* Some funny streams from Apple/iTunes give ICY info in UTF-8 already.
+ So, be prepared and don't try to re-encode such. */
+ if(is_utf8(src)) return (strdup(src));
+
+ srclen = strlen(src) + 1;
+ /* allocate conservatively */
+ if ((d = malloc(srclen * 3)) == NULL)
+ return (NULL);
+
+ i = 0;
+ dstlen = 0;
+ while (i < srclen) {
+ ch = s[i++];
+ k = tblofs[ch];
+ while (k < tblofs[ch + 1])
+ d[dstlen++] = cp1252_utf8[k++];
+ }
+
+ /* dstlen includes trailing NUL since srclen also does */
+ if ((dst = realloc(d, dstlen)) == NULL) {
+ free(d);
+ return (NULL);
+ }
+ return (dst);
+}
+
+/* This stuff is for testing only. */
+#ifdef TEST
+static const char intext[] = "\225 Gr\374\337e kosten 0,55 \200\205";
+
+#include <stdio.h>
+
+int
+main(void)
+{
+ char *t, *t2;
+
+ if ((t = icy2utf8(intext)) == NULL) {
+ fprintf(stderr, "out of memory\n");
+ return (1);
+ }
+
+ /* make sure it won't be converted twice */
+ if ((t2 = icy2utf8(t)) == NULL) {
+ fprintf(stderr, "out of memory\n");
+ return (1);
+ }
+
+ printf("Result is:\t\343\200\214%s\343\200\215\n"
+ "\t\t\343\200\214%s\343\200\215\n", t, t2);
+
+ free(t);
+ free(t2);
+ return (0);
+}
+#endif
diff --git a/src/libmpg123/icy2utf8.h b/src/libmpg123/icy2utf8.h
new file mode 100644
index 0000000..6a9b8d9
--- /dev/null
+++ b/src/libmpg123/icy2utf8.h
@@ -0,0 +1,9 @@
+/* You expect a license plate for _this_ file? */
+#ifndef MPG123_ICY2UTF_H
+#define MPG123_ICY2UTF_H
+
+#ifndef NO_ICY
+char *icy2utf8(const char *);
+#endif
+
+#endif
diff --git a/src/libmpg123/id3.c b/src/libmpg123/id3.c
new file mode 100644
index 0000000..13c27f5
--- /dev/null
+++ b/src/libmpg123/id3.c
@@ -0,0 +1,905 @@
+/*
+ id3: ID3v2.3 and ID3v2.4 parsing (a relevant subset)
+
+ copyright 2006-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include "mpg123lib_intern.h"
+#include "id3.h"
+#include "debug.h"
+
+#ifndef NO_ID3V2 /* Only the main parsing routine will always be there. */
+
+/* We know the usual text frames plus some specifics. */
+#define KNOWN_FRAMES 4
+static const char frame_type[KNOWN_FRAMES][5] = { "COMM", "TXXX", "RVA2", "USLT" };
+enum frame_types { unknown = -2, text = -1, comment, extra, rva2, uslt };
+
+/* UTF support definitions */
+
+typedef void (*text_converter)(mpg123_string *sb, unsigned char* source, size_t len);
+
+static void convert_latin1 (mpg123_string *sb, unsigned char* source, size_t len);
+static void convert_utf16 (mpg123_string *sb, unsigned char* source, size_t len, int str_be);
+static void convert_utf16bom(mpg123_string *sb, unsigned char* source, size_t len);
+static void convert_utf16be (mpg123_string *sb, unsigned char* source, size_t len);
+static void convert_utf8 (mpg123_string *sb, unsigned char* source, size_t len);
+
+static const text_converter text_converters[4] =
+{
+ convert_latin1,
+ convert_utf16bom,
+ convert_utf16be,
+ convert_utf8
+};
+
+const unsigned int encoding_widths[4] = { 1, 2, 2, 1 };
+
+/* the code starts here... */
+
+static void null_id3_links(mpg123_handle *fr)
+{
+ fr->id3v2.title = NULL;
+ fr->id3v2.artist = NULL;
+ fr->id3v2.album = NULL;
+ fr->id3v2.year = NULL;
+ fr->id3v2.genre = NULL;
+ fr->id3v2.comment = NULL;
+}
+
+void init_id3(mpg123_handle *fr)
+{
+ fr->id3v2.version = 0; /* nothing there */
+ null_id3_links(fr);
+ fr->id3v2.comments = 0;
+ fr->id3v2.comment_list = NULL;
+ fr->id3v2.texts = 0;
+ fr->id3v2.text = NULL;
+ fr->id3v2.extras = 0;
+ fr->id3v2.extra = NULL;
+}
+
+/* Managing of the text, comment and extra lists. */
+
+/* Initialize one element. */
+static void init_mpg123_text(mpg123_text *txt)
+{
+ mpg123_init_string(&txt->text);
+ mpg123_init_string(&txt->description);
+ txt->id[0] = 0;
+ txt->id[1] = 0;
+ txt->id[2] = 0;
+ txt->id[3] = 0;
+ txt->lang[0] = 0;
+ txt->lang[1] = 0;
+ txt->lang[2] = 0;
+}
+
+/* Free memory of one element. */
+static void free_mpg123_text(mpg123_text *txt)
+{
+ mpg123_free_string(&txt->text);
+ mpg123_free_string(&txt->description);
+}
+
+/* Free memory of whole list. */
+#define free_comment(mh) free_id3_text(&((mh)->id3v2.comment_list), &((mh)->id3v2.comments))
+#define free_text(mh) free_id3_text(&((mh)->id3v2.text), &((mh)->id3v2.texts))
+#define free_extra(mh) free_id3_text(&((mh)->id3v2.extra), &((mh)->id3v2.extras))
+static void free_id3_text(mpg123_text **list, size_t *size)
+{
+ size_t i;
+ for(i=0; i<*size; ++i) free_mpg123_text(&((*list)[i]));
+
+ free(*list);
+ *list = NULL;
+ *size = 0;
+}
+
+/* Add items to the list. */
+#define add_comment(mh) add_id3_text(&((mh)->id3v2.comment_list), &((mh)->id3v2.comments))
+#define add_text(mh) add_id3_text(&((mh)->id3v2.text), &((mh)->id3v2.texts))
+#define add_extra(mh) add_id3_text(&((mh)->id3v2.extra), &((mh)->id3v2.extras))
+static mpg123_text *add_id3_text(mpg123_text **list, size_t *size)
+{
+ mpg123_text *x = safe_realloc(*list, sizeof(mpg123_text)*(*size+1));
+ if(x == NULL) return NULL; /* bad */
+
+ *list = x;
+ *size += 1;
+ init_mpg123_text(&((*list)[*size-1]));
+
+ return &((*list)[*size-1]); /* Return pointer to the added text. */
+}
+
+/* Remove the last item. */
+#define pop_comment(mh) pop_id3_text(&((mh)->id3v2.comment_list), &((mh)->id3v2.comments))
+#define pop_text(mh) pop_id3_text(&((mh)->id3v2.text), &((mh)->id3v2.texts))
+#define pop_extra(mh) pop_id3_text(&((mh)->id3v2.extra), &((mh)->id3v2.extras))
+static void pop_id3_text(mpg123_text **list, size_t *size)
+{
+ mpg123_text *x;
+ if(*size < 1) return;
+
+ free_mpg123_text(&((*list)[*size-1]));
+ if(*size > 1)
+ {
+ x = safe_realloc(*list, sizeof(mpg123_text)*(*size-1));
+ if(x != NULL){ *list = x; *size -= 1; }
+ }
+ else
+ {
+ free(*list);
+ *list = NULL;
+ *size = 0;
+ }
+}
+
+/* OK, back t the higher level functions. */
+
+void exit_id3(mpg123_handle *fr)
+{
+ free_comment(fr);
+ free_extra(fr);
+ free_text(fr);
+}
+
+void reset_id3(mpg123_handle *fr)
+{
+ exit_id3(fr);
+ init_id3(fr);
+}
+
+/* Set the id3v2.artist id3v2.title ... links to elements of the array. */
+void id3_link(mpg123_handle *fr)
+{
+ size_t i;
+ mpg123_id3v2 *v2 = &fr->id3v2;
+ debug("linking ID3v2");
+ null_id3_links(fr);
+ for(i=0; i<v2->texts; ++i)
+ {
+ mpg123_text *entry = &v2->text[i];
+ if (!strncmp("TIT2", entry->id, 4)) v2->title = &entry->text;
+ else if(!strncmp("TALB", entry->id, 4)) v2->album = &entry->text;
+ else if(!strncmp("TPE1", entry->id, 4)) v2->artist = &entry->text;
+ else if(!strncmp("TYER", entry->id, 4)) v2->year = &entry->text;
+ else if(!strncmp("TCON", entry->id, 4)) v2->genre = &entry->text;
+ }
+ for(i=0; i<v2->comments; ++i)
+ {
+ mpg123_text *entry = &v2->comment_list[i];
+ if(entry->description.fill == 0 || entry->description.p[0] == 0)
+ v2->comment = &entry->text;
+ }
+ /* When no generic comment found, use the last non-generic one. */
+ if(v2->comment == NULL && v2->comments > 0)
+ v2->comment = &v2->comment_list[v2->comments-1].text;
+}
+
+/*
+ Store any text in UTF8 encoding; preserve the zero string separator (I don't need strlen for the total size).
+ ID3v2 standard says that there should be one text frame of specific type per tag, and subsequent tags overwrite old values.
+ So, I always replace the text that may be stored already (perhaps with a list of zero-separated strings, though).
+*/
+void store_id3_text(mpg123_string *sb, char *source, size_t source_size, const int noquiet)
+{
+ unsigned int encoding;
+ unsigned int bwidth;
+ if(!source_size)
+ {
+ debug("Empty id3 data!");
+ return;
+ }
+ encoding = (unsigned int) source[0];
+ ++source;
+ --source_size;
+ debug1("encoding: %u", encoding);
+ /* A note: ID3v2.3 uses UCS-2 non-variable 16bit encoding, v2.4 uses UTF16.
+ UTF-16 uses a reserved/private range in UCS-2 to add the magic, so we just always treat it as UTF. */
+ if(encoding > 3)
+ {
+ if(noquiet) warning1("Unknown text encoding %u, assuming ISO8859-1 - I will probably screw a bit up!", encoding);
+ encoding = 0;
+ }
+ bwidth = encoding_widths[encoding];
+ /* Hack! I've seen a stray zero byte before BOM. Is that supposed to happen? */
+ while(source_size > bwidth && source[0] == 0)
+ {
+ --source_size;
+ ++source;
+ debug("skipped leading zero");
+ }
+ if(source_size % bwidth)
+ {
+ /* When we need two bytes for a character, it's strange to have an uneven bytestream length. */
+ if(noquiet) warning2("Weird tag size %d for encoding %u - I will probably trim too early or something but I think the MP3 is broken.", (int)source_size, encoding);
+ source_size -= source_size % bwidth;
+ }
+ text_converters[encoding](sb, (unsigned char*)source, source_size);
+ if(sb->size) debug1("UTF-8 string (the first one): %s", sb->p);
+ else if(noquiet) error("unable to convert string to UTF-8 (out of memory, junk input?)!");
+}
+
+char *next_text(char* prev, int encoding, size_t limit)
+{
+ char *text = prev;
+ unsigned long neednull = encoding_widths[encoding];
+ /* So I go lengths to find zero or double zero... */
+ while(text-prev < (int)limit)
+ {
+ if(text[0] == 0)
+ {
+ if(neednull <= limit-(text-prev))
+ {
+ unsigned long i = 1;
+ for(; i<neednull; ++i) if(text[i] != 0) break;
+
+ if(i == neednull) /* found a null wide enough! */
+ {
+ text += neednull;
+ break;
+ }
+ }
+ else{ text = NULL; break; }
+ }
+ ++text;
+ }
+ if(text-prev == limit) text = NULL;
+
+ return text;
+}
+
+static const char *enc_name(int enc)
+{
+ switch(enc)
+ {
+ case 0: return "Latin 1";
+ case 1: return "UTF-16 BOM";
+ case 2: return "UTF-16 BE";
+ case 3: return "UTF-8";
+ default: return "unknown!";
+ }
+}
+
+static void process_text(mpg123_handle *fr, char *realdata, size_t realsize, char *id)
+{
+ /* Text encoding $xx */
+ /* The text (encoded) ... */
+ mpg123_text *t = add_text(fr);
+ if(VERBOSE4) fprintf(stderr, "Note: Storing text from %s encoding\n", enc_name(realdata[0]));
+ if(t == NULL)
+ {
+ if(NOQUIET) error("Unable to attach new text!");
+ return;
+ }
+ memcpy(t->id, id, 4);
+ store_id3_text(&t->text, realdata, realsize, NOQUIET);
+ if(VERBOSE4) fprintf(stderr, "Note: ID3v2 %c%c%c%c text frame: %s\n", id[0], id[1], id[2], id[3], t->text.p);
+}
+
+/* Store a new comment that perhaps is a RVA / RVA_ALBUM/AUDIOPHILE / RVA_MIX/RADIO one
+ Special gimmik: It also stores USLT to the texts. Stucture is the same as for comments. */
+static void process_comment(mpg123_handle *fr, enum frame_types tt, char *realdata, size_t realsize, int rva_level, char *id)
+{
+ /* Text encoding $xx */
+ /* Language $xx xx xx */
+ /* Short description (encoded!) <text> $00 (00) */
+ /* Then the comment text (encoded) ... */
+ char encoding = realdata[0];
+ char *lang = realdata+1; /* I'll only use the 3 bytes! */
+ char *descr = realdata+4;
+ char *text = NULL;
+ mpg123_text *xcom = NULL;
+ if((int)realsize < descr-realdata)
+ {
+ if(NOQUIET) error1("Invalid frame size of %lu (too small for anything).", (unsigned long)realsize);
+ return;
+ }
+ xcom = (tt == uslt ? add_text(fr) : add_comment(fr));
+ if(VERBOSE4) fprintf(stderr, "Note: Storing comment from %s encoding\n", enc_name(realdata[0]));
+ if(xcom == NULL)
+ {
+ if(NOQUIET) error("Unable to attach new comment!");
+ return;
+ }
+ memcpy(xcom->lang, lang, 3);
+ memcpy(xcom->id, id, 4);
+ /* Now I can abuse a byte from lang for the encoding. */
+ descr[-1] = encoding;
+ /* Be careful with finding the end of description, I have to honor encoding here. */
+ text = next_text(descr, encoding, realsize-(descr-realdata));
+ if(text == NULL)
+ {
+ if(NOQUIET) error("No comment text / valid description?");
+ pop_comment(fr);
+ return;
+ }
+ store_id3_text(&xcom->description, descr-1, text-descr+1, NOQUIET);
+ text[-1] = encoding;
+ store_id3_text(&xcom->text, text-1, realsize+1-(text-realdata), NOQUIET);
+
+ if(VERBOSE4)
+ {
+ fprintf(stderr, "Note: ID3 comm/uslt desc: %s\n", xcom->description.fill > 0 ? xcom->description.p : "");
+ fprintf(stderr, "Note: ID3 comm/uslt text: %s\n", xcom->text.fill > 0 ? xcom->text.p : "");
+ }
+ /* Look out for RVA info only when we really deal with a straight comment. */
+ if(tt == comment && xcom->description.fill > 0 && xcom->text.fill > 0)
+ {
+ int rva_mode = -1; /* mix / album */
+ if( !strcasecmp(xcom->description.p, "rva")
+ || !strcasecmp(xcom->description.p, "rva_mix")
+ || !strcasecmp(xcom->description.p, "rva_track")
+ || !strcasecmp(xcom->description.p, "rva_radio"))
+ rva_mode = 0;
+ else if( !strcasecmp(xcom->description.p, "rva_album")
+ || !strcasecmp(xcom->description.p, "rva_audiophile")
+ || !strcasecmp(xcom->description.p, "rva_user"))
+ rva_mode = 1;
+ if((rva_mode > -1) && (fr->rva.level[rva_mode] <= rva_level))
+ {
+ fr->rva.gain[rva_mode] = (float) atof(xcom->text.p);
+ if(VERBOSE3) fprintf(stderr, "Note: RVA value %fdB\n", fr->rva.gain[rva_mode]);
+ fr->rva.peak[rva_mode] = 0;
+ fr->rva.level[rva_mode] = rva_level;
+ }
+ }
+}
+
+void process_extra(mpg123_handle *fr, char* realdata, size_t realsize, int rva_level, char *id)
+{
+ /* Text encoding $xx */
+ /* Description ... $00 (00) */
+ /* Text ... */
+ char encoding = realdata[0];
+ char *descr = realdata+1; /* remember, the encoding is descr[-1] */
+ char *text;
+ mpg123_text *xex;
+ if((int)realsize < descr-realdata)
+ {
+ if(NOQUIET) error1("Invalid frame size of %lu (too small for anything).", (unsigned long)realsize);
+ return;
+ }
+ text = next_text(descr, encoding, realsize-(descr-realdata));
+ if(VERBOSE4) fprintf(stderr, "Note: Storing extra from %s encoding\n", enc_name(realdata[0]));
+ if(text == NULL)
+ {
+ if(NOQUIET) error("No extra frame text / valid description?");
+ return;
+ }
+ xex = add_extra(fr);
+ if(xex == NULL)
+ {
+ if(NOQUIET) error("Unable to attach new extra text!");
+ return;
+ }
+ memcpy(xex->id, id, 4);
+ store_id3_text(&xex->description, descr-1, text-descr+1, NOQUIET);
+ text[-1] = encoding;
+ store_id3_text(&xex->text, text-1, realsize-(text-realdata)+1, NOQUIET);
+ if(xex->description.fill > 0)
+ {
+ int is_peak = 0;
+ int rva_mode = -1; /* mix / album */
+
+ if(!strncasecmp(xex->description.p, "replaygain_track_",17))
+ {
+ if(VERBOSE3) fprintf(stderr, "Note: RVA ReplayGain track gain/peak\n");
+
+ rva_mode = 0;
+ if(!strcasecmp(xex->description.p, "replaygain_track_peak")) is_peak = 1;
+ else if(strcasecmp(xex->description.p, "replaygain_track_gain")) rva_mode = -1;
+ }
+ else
+ if(!strncasecmp(xex->description.p, "replaygain_album_",17))
+ {
+ if(VERBOSE3) fprintf(stderr, "Note: RVA ReplayGain album gain/peak\n");
+
+ rva_mode = 1;
+ if(!strcasecmp(xex->description.p, "replaygain_album_peak")) is_peak = 1;
+ else if(strcasecmp(xex->description.p, "replaygain_album_gain")) rva_mode = -1;
+ }
+ if((rva_mode > -1) && (fr->rva.level[rva_mode] <= rva_level))
+ {
+ if(xex->text.fill > 0)
+ {
+ if(is_peak)
+ {
+ fr->rva.peak[rva_mode] = (float) atof(xex->text.p);
+ if(VERBOSE3) fprintf(stderr, "Note: RVA peak %f\n", fr->rva.peak[rva_mode]);
+ }
+ else
+ {
+ fr->rva.gain[rva_mode] = (float) atof(xex->text.p);
+ if(VERBOSE3) fprintf(stderr, "Note: RVA gain %fdB\n", fr->rva.gain[rva_mode]);
+ }
+ fr->rva.level[rva_mode] = rva_level;
+ }
+ }
+ }
+}
+
+/* Make a ID3v2.3+ 4-byte ID from a ID3v2.2 3-byte ID
+ Note that not all frames survived to 2.4; the mapping goes to 2.3 .
+ A notable miss is the old RVA frame, which is very unspecific anyway.
+ This function returns -1 when a not known 3 char ID was encountered, 0 otherwise. */
+int promote_framename(mpg123_handle *fr, char *id) /* fr because of VERBOSE macros */
+{
+ size_t i;
+ char *old[] =
+ {
+ "COM", "TAL", "TBP", "TCM", "TCO", "TCR", "TDA", "TDY", "TEN", "TFT",
+ "TIM", "TKE", "TLA", "TLE", "TMT", "TOA", "TOF", "TOL", "TOR", "TOT",
+ "TP1", "TP2", "TP3", "TP4", "TPA", "TPB", "TRC", "TDA", "TRK", "TSI",
+ "TSS", "TT1", "TT2", "TT3", "TXT", "TXX", "TYE"
+ };
+ char *new[] =
+ {
+ "COMM", "TALB", "TBPM", "TCOM", "TCON", "TCOP", "TDAT", "TDLY", "TENC", "TFLT",
+ "TIME", "TKEY", "TLAN", "TLEN", "TMED", "TOPE", "TOFN", "TOLY", "TORY", "TOAL",
+ "TPE1", "TPE2", "TPE3", "TPE4", "TPOS", "TPUB", "TSRC", "TRDA", "TRCK", "TSIZ",
+ "TSSE", "TIT1", "TIT2", "TIT3", "TEXT", "TXXX", "TYER"
+ };
+ for(i=0; i<sizeof(old)/sizeof(char*); ++i)
+ {
+ if(!strncmp(id, old[i], 3))
+ {
+ memcpy(id, new[i], 4);
+ if(VERBOSE3) fprintf(stderr, "Translated ID3v2.2 frame %s to %s\n", old[i], new[i]);
+ return 0;
+ }
+ }
+ if(VERBOSE3) fprintf(stderr, "Ignoring untranslated ID3v2.2 frame %c%c%c\n", id[0], id[1], id[2]);
+ return -1;
+}
+
+#endif /* NO_ID3V2 */
+
+/*
+ trying to parse ID3v2.3 and ID3v2.4 tags...
+
+ returns: 0: bad or just unparseable tag
+ 1: good, (possibly) new tag info
+ <0: reader error (may need more data feed, try again)
+*/
+int parse_new_id3(mpg123_handle *fr, unsigned long first4bytes)
+{
+ #define UNSYNC_FLAG 128
+ #define EXTHEAD_FLAG 64
+ #define EXP_FLAG 32
+ #define FOOTER_FLAG 16
+ #define UNKNOWN_FLAGS 15 /* 00001111*/
+ unsigned char buf[6];
+ unsigned long length=0;
+ unsigned char flags = 0;
+ int ret = 1;
+ int ret2;
+ unsigned char* tagdata = NULL;
+ unsigned char major = first4bytes & 0xff;
+ debug1("ID3v2: major tag version: %i", major);
+ if(major == 0xff) return 0; /* Invalid... */
+ if((ret2 = fr->rd->read_frame_body(fr, buf, 6)) < 0) /* read more header information */
+ return ret2;
+
+ if(buf[0] == 0xff) return 0; /* Revision, will never be 0xff. */
+
+ /* second new byte are some nice flags, if these are invalid skip the whole thing */
+ flags = buf[1];
+ debug1("ID3v2: flags 0x%08x", flags);
+ /* use 4 bytes from buf to construct 28bit uint value and return 1; return 0 if bytes are not synchsafe */
+ #define synchsafe_to_long(buf,res) \
+ ( \
+ (((buf)[0]|(buf)[1]|(buf)[2]|(buf)[3]) & 0x80) ? 0 : \
+ (res = (((unsigned long) (buf)[0]) << 21) \
+ | (((unsigned long) (buf)[1]) << 14) \
+ | (((unsigned long) (buf)[2]) << 7) \
+ | ((unsigned long) (buf)[3]) \
+ ,1) \
+ )
+ /* id3v2.3 does not store synchsafe frame sizes, but synchsafe tag size - doh! */
+ #define bytes_to_long(buf,res) \
+ ( \
+ major == 3 ? \
+ (res = (((unsigned long) (buf)[0]) << 24) \
+ | (((unsigned long) (buf)[1]) << 16) \
+ | (((unsigned long) (buf)[2]) << 8) \
+ | ((unsigned long) (buf)[3]) \
+ ,1) : synchsafe_to_long(buf,res) \
+ )
+ /* for id3v2.2 only */
+ #define threebytes_to_long(buf,res) \
+ ( \
+ res = (((unsigned long) (buf)[0]) << 16) \
+ | (((unsigned long) (buf)[1]) << 8) \
+ | ((unsigned long) (buf)[2]) \
+ ,1 \
+ )
+
+ /* length-10 or length-20 (footer present); 4 synchsafe integers == 28 bit number */
+ /* we have already read 10 bytes, so left are length or length+10 bytes belonging to tag */
+ if(!synchsafe_to_long(buf+2,length))
+ {
+ if(NOQUIET) error4("Bad tag length (not synchsafe): 0x%02x%02x%02x%02x; You got a bad ID3 tag here.", buf[2],buf[3],buf[4],buf[5]);
+ return 0;
+ }
+ debug1("ID3v2: tag data length %lu", length);
+#ifndef NO_ID3V2
+ if(VERBOSE2) fprintf(stderr,"Note: ID3v2.%i rev %i tag of %lu bytes\n", major, buf[0], length);
+ /* skip if unknown version/scary flags, parse otherwise */
+ if((flags & UNKNOWN_FLAGS) || (major > 4) || (major < 2))
+ {
+ /* going to skip because there are unknown flags set */
+ if(NOQUIET) warning2("ID3v2: Won't parse the ID3v2 tag with major version %u and flags 0x%xu - some extra code may be needed", major, flags);
+#endif
+ if((ret2 = fr->rd->skip_bytes(fr,length)) < 0) /* will not store data in backbuff! */
+ ret = ret2;
+#ifndef NO_ID3V2
+ }
+ else
+ {
+ fr->id3v2.version = major;
+ /* try to interpret that beast */
+ if((tagdata = (unsigned char*) malloc(length+1)) != NULL)
+ {
+ debug("ID3v2: analysing frames...");
+ if((ret2 = fr->rd->read_frame_body(fr,tagdata,length)) > 0)
+ {
+ unsigned long tagpos = 0;
+ debug1("ID3v2: have read at all %lu bytes for the tag now", (unsigned long)length+6);
+ /* going to apply strlen for strings inside frames, make sure that it doesn't overflow! */
+ tagdata[length] = 0;
+ if(flags & EXTHEAD_FLAG)
+ {
+ debug("ID3v2: skipping extended header");
+ if(!bytes_to_long(tagdata, tagpos))
+ {
+ ret = 0;
+ if(NOQUIET) error4("Bad (non-synchsafe) tag offset: 0x%02x%02x%02x%02x", tagdata[0], tagdata[1], tagdata[2], tagdata[3]);
+ }
+ }
+ if(ret > 0)
+ {
+ char id[5];
+ unsigned long framesize;
+ unsigned long fflags; /* need 16 bits, actually */
+ id[4] = 0;
+ /* pos now advanced after ext head, now a frame has to follow */
+ while(tagpos < length-10) /* I want to read at least a full header */
+ {
+ int i = 0;
+ unsigned long pos = tagpos;
+ int head_part = fr->id3v2.version == 2 ? 3 : 4; /* bytes of frame title and of framesize value */
+ /* level 1,2,3 - 0 is info from lame/info tag! */
+ /* rva tags with ascending significance, then general frames */
+ enum frame_types tt = unknown;
+ /* we may have entered the padding zone or any other strangeness: check if we have valid frame id characters */
+ for(i=0; i< head_part; ++i)
+ if( !( ((tagdata[tagpos+i] > 47) && (tagdata[tagpos+i] < 58))
+ || ((tagdata[tagpos+i] > 64) && (tagdata[tagpos+i] < 91)) ) )
+ {
+ debug5("ID3v2: real tag data apparently ended after %lu bytes with 0x%02x%02x%02x%02x", tagpos, tagdata[tagpos], tagdata[tagpos+1], tagdata[tagpos+2], tagdata[tagpos+3]);
+ /* This is no hard error... let's just hope that we got something meaningful already (ret==1 in that case). */
+ goto tagparse_cleanup; /* Need to escape two loops here. */
+ }
+ if(ret > 0)
+ {
+ /* 4 or 3 bytes id */
+ strncpy(id, (char*) tagdata+pos, head_part);
+ pos += head_part;
+ tagpos += head_part;
+ /* size as 32 bits or 28 bits */
+ if(fr->id3v2.version == 2) threebytes_to_long(tagdata+pos, framesize);
+ else
+ if(!bytes_to_long(tagdata+pos, framesize))
+ {
+ /* Just assume that up to now there was some good data. */
+ if(NOQUIET) error1("ID3v2: non-syncsafe size of %s frame, skipping the remainder of tag", id);
+ break;
+ }
+ if(VERBOSE3) fprintf(stderr, "Note: ID3v2 %s frame of size %lu\n", id, framesize);
+ tagpos += head_part + framesize; /* the important advancement in whole tag */
+ if(tagpos > length)
+ {
+ if(NOQUIET) error("Whoa! ID3v2 frame claims to be larger than the whole rest of the tag.");
+ break;
+ }
+ pos += head_part;
+ if(fr->id3v2.version > 2)
+ {
+ fflags = (((unsigned long) tagdata[pos]) << 8) | ((unsigned long) tagdata[pos+1]);
+ pos += 2;
+ tagpos += 2;
+ }
+ else fflags = 0;
+ /* for sanity, after full parsing tagpos should be == pos */
+ /* debug4("ID3v2: found %s frame, size %lu (as bytes: 0x%08lx), flags 0x%016lx", id, framesize, framesize, fflags); */
+ /* %0abc0000 %0h00kmnp */
+ #define BAD_FFLAGS (unsigned long) 36784
+ #define PRES_TAG_FFLAG 16384
+ #define PRES_FILE_FFLAG 8192
+ #define READ_ONLY_FFLAG 4096
+ #define GROUP_FFLAG 64
+ #define COMPR_FFLAG 8
+ #define ENCR_FFLAG 4
+ #define UNSYNC_FFLAG 2
+ #define DATLEN_FFLAG 1
+ if(head_part < 4 && promote_framename(fr, id) != 0) continue;
+
+ /* shall not or want not handle these */
+ if(fflags & (BAD_FFLAGS | COMPR_FFLAG | ENCR_FFLAG))
+ {
+ if(NOQUIET) warning("ID3v2: skipping invalid/unsupported frame");
+ continue;
+ }
+
+ for(i = 0; i < KNOWN_FRAMES; ++i)
+ if(!strncmp(frame_type[i], id, 4)){ tt = i; break; }
+
+ if(id[0] == 'T' && tt != extra) tt = text;
+
+ if(tt != unknown)
+ {
+ int rva_mode = -1; /* mix / album */
+ unsigned long realsize = framesize;
+ unsigned char* realdata = tagdata+pos;
+ if((flags & UNSYNC_FLAG) || (fflags & UNSYNC_FFLAG))
+ {
+ unsigned long ipos = 0;
+ unsigned long opos = 0;
+ debug("Id3v2: going to de-unsync the frame data");
+ /* de-unsync: FF00 -> FF; real FF00 is simply represented as FF0000 ... */
+ /* damn, that means I have to delete bytes from withing the data block... thus need temporal storage */
+ /* standard mandates that de-unsync should always be safe if flag is set */
+ realdata = (unsigned char*) malloc(framesize); /* will need <= bytes */
+ if(realdata == NULL)
+ {
+ if(NOQUIET) error("ID3v2: unable to allocate working buffer for de-unsync");
+ continue;
+ }
+ /* now going byte per byte through the data... */
+ realdata[0] = tagdata[pos];
+ opos = 1;
+ for(ipos = pos+1; ipos < pos+framesize; ++ipos)
+ {
+ if(!((tagdata[ipos] == 0) && (tagdata[ipos-1] == 0xff)))
+ {
+ realdata[opos++] = tagdata[ipos];
+ }
+ }
+ realsize = opos;
+ debug2("ID3v2: de-unsync made %lu out of %lu bytes", realsize, framesize);
+ }
+ pos = 0; /* now at the beginning again... */
+ switch(tt)
+ {
+ case comment:
+ case uslt:
+ process_comment(fr, tt, (char*)realdata, realsize, comment+1, id);
+ break;
+ case extra: /* perhaps foobar2000's work */
+ process_extra(fr, (char*)realdata, realsize, extra+1, id);
+ break;
+ case rva2: /* "the" RVA tag */
+ {
+ /* starts with null-terminated identification */
+ if(VERBOSE3) fprintf(stderr, "Note: RVA2 identification \"%s\"\n", realdata);
+ /* default: some individual value, mix mode */
+ rva_mode = 0;
+ if( !strncasecmp((char*)realdata, "album", 5)
+ || !strncasecmp((char*)realdata, "audiophile", 10)
+ || !strncasecmp((char*)realdata, "user", 4))
+ rva_mode = 1;
+ if(fr->rva.level[rva_mode] <= rva2+1)
+ {
+ pos += strlen((char*) realdata) + 1;
+ if(realdata[pos] == 1)
+ {
+ ++pos;
+ /* only handle master channel */
+ debug("ID3v2: it is for the master channel");
+ /* two bytes adjustment, one byte for bits representing peak - n bytes, eh bits, for peak */
+ /* 16 bit signed integer = dB * 512 ... the double cast is needed to preserve the sign of negative values! */
+ fr->rva.gain[rva_mode] = (float) ( (((short)((signed char)realdata[pos])) << 8) | realdata[pos+1] ) / 512;
+ pos += 2;
+ if(VERBOSE3) fprintf(stderr, "Note: RVA value %fdB\n", fr->rva.gain[rva_mode]);
+ /* heh, the peak value is represented by a number of bits - but in what manner? Skipping that part */
+ fr->rva.peak[rva_mode] = 0;
+ fr->rva.level[rva_mode] = rva2+1;
+ }
+ }
+ }
+ break;
+ /* non-rva metainfo, simply store... */
+ case text:
+ process_text(fr, (char*)realdata, realsize, id);
+ break;
+ default: if(NOQUIET) error1("ID3v2: unknown frame type %i", tt);
+ }
+ if((flags & UNSYNC_FLAG) || (fflags & UNSYNC_FFLAG)) free(realdata);
+ }
+ #undef BAD_FFLAGS
+ #undef PRES_TAG_FFLAG
+ #undef PRES_FILE_FFLAG
+ #undef READ_ONLY_FFLAG
+ #undef GROUP_FFLAG
+ #undef COMPR_FFLAG
+ #undef ENCR_FFLAG
+ #undef UNSYNC_FFLAG
+ #undef DATLEN_FFLAG
+ }
+ else break;
+ #undef KNOWN_FRAMES
+ }
+ }
+ }
+ else
+ {
+ if(NOQUIET) error("ID3v2: Duh, not able to read ID3v2 tag data.");
+ ret = ret2;
+ }
+tagparse_cleanup:
+ free(tagdata);
+ }
+ else
+ {
+ if(NOQUIET) error1("ID3v2: Arrg! Unable to allocate %lu bytes for interpreting ID3v2 data - trying to skip instead.", length);
+ if((ret2 = fr->rd->skip_bytes(fr,length)) < 0) ret = ret2; /* will not store data in backbuff! */
+ else ret = 0;
+ }
+ }
+#endif /* NO_ID3V2 */
+ /* skip footer if present */
+ if((ret > 0) && (flags & FOOTER_FLAG) && ((ret2 = fr->rd->skip_bytes(fr,length)) < 0)) ret = ret2;
+
+ return ret;
+ #undef UNSYNC_FLAG
+ #undef EXTHEAD_FLAG
+ #undef EXP_FLAG
+ #undef FOOTER_FLAG
+ #undef UNKOWN_FLAGS
+}
+
+#ifndef NO_ID3V2 /* Disabling all the rest... */
+
+static void convert_latin1(mpg123_string *sb, unsigned char* s, size_t l)
+{
+ size_t length = l;
+ size_t i;
+ unsigned char *p;
+ /* determine real length, a latin1 character can at most take 2 in UTF8 */
+ for(i=0; i<l; ++i)
+ if(s[i] >= 0x80) ++length;
+
+ debug1("UTF-8 length: %lu", (unsigned long)length);
+ /* one extra zero byte for paranoia */
+ if(!mpg123_resize_string(sb, length+1)){ mpg123_free_string(sb); return ; }
+
+ p = (unsigned char*) sb->p; /* Signedness doesn't matter but it shows I thought about the non-issue */
+ for(i=0; i<l; ++i)
+ if(s[i] < 0x80){ *p = s[i]; ++p; }
+ else /* two-byte encoding */
+ {
+ *p = 0xc0 | (s[i]>>6);
+ *(p+1) = 0x80 | (s[i] & 0x3f);
+ p+=2;
+ }
+
+ sb->p[length] = 0;
+ sb->fill = length+1;
+}
+
+#define FULLPOINT(f,s) ( (((f)&0x3ff)<<10) + ((s)&0x3ff) + 0x10000 )
+/* Remember: There's a limit at 0x1ffff. */
+#define UTF8LEN(x) ( (x)<0x80 ? 1 : ((x)<0x800 ? 2 : ((x)<0x10000 ? 3 : 4)))
+static void convert_utf16(mpg123_string *sb, unsigned char* s, size_t l, int str_be)
+{
+ size_t i;
+ unsigned char *p;
+ size_t length = 0; /* the resulting UTF-8 length */
+ /* Determine real length... extreme case can be more than utf-16 length. */
+ size_t high = 0;
+ size_t low = 1;
+ debug1("convert_utf16 with length %lu", (unsigned long)l);
+
+ if(l < 1){ mpg123_set_string(sb, ""); return; }
+
+ if(!str_be) /* little-endian */
+ {
+ high = 1; /* The second byte is the high byte. */
+ low = 0; /* The first byte is the low byte. */
+ }
+ /* first: get length, check for errors -- stop at first one */
+ for(i=0; i < l-1; i+=2)
+ {
+ unsigned long point = ((unsigned long) s[i+high]<<8) + s[i+low];
+ if((point & 0xd800) == 0xd800) /* lead surrogate */
+ {
+ unsigned short second = (i+3 < l) ? (s[i+2+high]<<8) + s[i+2+low] : 0;
+ if((second & 0xdc00) == 0xdc00) /* good... */
+ {
+ point = FULLPOINT(point,second);
+ length += UTF8LEN(point); /* possibly 4 bytes */
+ i+=2; /* We overstepped one word. */
+ }
+ else /* if no valid pair, break here */
+ {
+ debug1("Invalid UTF16 surrogate pair at %li.", (unsigned long)i);
+ l = i; /* Forget the half pair, END! */
+ break;
+ }
+ }
+ else length += UTF8LEN(point); /* 1,2 or 3 bytes */
+ }
+
+ // retest 'l' in case it was assigned a value of i = 0 above (Winqual issue 1422202555)
+ if(l < 1){ mpg123_set_string(sb, ""); return; }
+
+ if(!mpg123_resize_string(sb, length+1)){ mpg123_free_string(sb); return ; }
+
+ /* Now really convert, skip checks as these have been done just before. */
+ p = (unsigned char*) sb->p; /* Signedness doesn't matter but it shows I thought about the non-issue */
+ for(i=0; i < l-1; i+=2)
+ {
+ unsigned long codepoint = ((unsigned long) s[i+high]<<8) + s[i+low];
+ if((codepoint & 0xd800) == 0xd800) /* lead surrogate */
+ {
+ unsigned short second = (s[i+2+high]<<8) + s[i+2+low];
+ codepoint = FULLPOINT(codepoint,second);
+ i+=2; /* We overstepped one word. */
+ }
+ if(codepoint < 0x80) *p++ = (unsigned char) codepoint;
+ else if(codepoint < 0x800)
+ {
+ *p++ = (unsigned char) (0xc0 | (codepoint>>6));
+ *p++ = (unsigned char) (0x80 | (codepoint & 0x3f));
+ }
+ else if(codepoint < 0x10000)
+ {
+ *p++ = (unsigned char) (0xe0 | (codepoint>>12));
+ *p++ = 0x80 | ((codepoint>>6) & 0x3f);
+ *p++ = 0x80 | (codepoint & 0x3f);
+ }
+ else if (codepoint < 0x200000)
+ {
+ *p++ = (unsigned char) (0xf0 | codepoint>>18);
+ *p++ = (unsigned char) (0x80 | ((codepoint>>12) & 0x3f));
+ *p++ = (unsigned char) (0x80 | ((codepoint>>6) & 0x3f));
+ *p++ = (unsigned char) (0x80 | (codepoint & 0x3f));
+ } /* ignore bigger ones (that are not possible here anyway) */
+ }
+ sb->p[sb->size-1] = 0; /* paranoia... */
+ sb->fill = sb->size;
+}
+#undef UTF8LEN
+#undef FULLPOINT
+
+static void convert_utf16be(mpg123_string *sb, unsigned char* source, size_t len)
+{
+ convert_utf16(sb, source, len, 1);
+}
+
+static void convert_utf16bom(mpg123_string *sb, unsigned char* source, size_t len)
+{
+ if(len < 2){ mpg123_free_string(sb); return; }
+
+ if(source[0] == 0xff && source[1] == 0xfe) /* Little-endian */
+ convert_utf16(sb, source + 2, len - 2, 0);
+ else /* Big-endian */
+ convert_utf16(sb, source + 2, len - 2, 1);
+}
+
+static void convert_utf8(mpg123_string *sb, unsigned char* source, size_t len)
+{
+ if(mpg123_resize_string(sb, len+1))
+ {
+ memcpy(sb->p, source, len);
+ sb->p[len] = 0;
+ sb->fill = len+1;
+ }
+ else mpg123_free_string(sb);
+}
+
+#endif
diff --git a/src/libmpg123/id3.h b/src/libmpg123/id3.h
new file mode 100644
index 0000000..1912eda
--- /dev/null
+++ b/src/libmpg123/id3.h
@@ -0,0 +1,28 @@
+/*
+ id3: ID3v2.3 and ID3v2.4 parsing (a relevant subset)
+
+ copyright 2006-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#ifndef MPG123_ID3_H
+#define MPG123_ID3_H
+
+/* really need it _here_! */
+#include "frame.h"
+
+#ifdef NO_ID3V2
+# define init_id3(fr)
+# define exit_id3(fr)
+# define reset_id3(fr)
+# define id3_link(fr)
+#else
+void init_id3(mpg123_handle *fr);
+void exit_id3(mpg123_handle *fr);
+void reset_id3(mpg123_handle *fr);
+void id3_link(mpg123_handle *fr);
+#endif
+int parse_new_id3(mpg123_handle *fr, unsigned long first4bytes);
+
+#endif
diff --git a/src/libmpg123/index.c b/src/libmpg123/index.c
new file mode 100644
index 0000000..f0d455a
--- /dev/null
+++ b/src/libmpg123/index.c
@@ -0,0 +1,114 @@
+/*
+ index: frame index data structure and functions
+
+ copyright 2007-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include "index.h"
+#include "debug.h"
+
+/* The next expected frame offset, one step ahead. */
+static off_t fi_next(struct frame_index *fi)
+{
+ return (off_t)fi->fill*fi->step;
+}
+
+/* Shrink down the used index to the half.
+ Be careful with size = 1 ... there's no shrinking possible there. */
+static void fi_shrink(struct frame_index *fi)
+{
+ if(fi->fill < 2) return; /* Won't shrink below 1. */
+ else
+ { /* Double the step, half the fill. Should work as well for fill%2 = 1 */
+ size_t c;
+ debug2("shrink index with fill %lu and step %lu", (unsigned long)fi->fill, (unsigned long)fi->step);
+ fi->step *= 2;
+ fi->fill /= 2;
+ /* Move the data down. */
+ for(c = 0; c < fi->fill; ++c)
+ fi->data[c] = fi->data[2*c];
+ }
+
+ fi->next = fi_next(fi);
+}
+
+void fi_init(struct frame_index *fi)
+{
+ fi->data = NULL;
+ fi->step = 1;
+ fi->fill = 0;
+ fi->size = 0;
+ fi->grow_size = 0;
+ fi->next = fi_next(fi);
+}
+
+void fi_exit(struct frame_index *fi)
+{
+ debug2("fi_exit: %p and %lu", (void*)fi->data, (unsigned long)fi->size);
+ if(fi->size && fi->data != NULL) free(fi->data);
+
+ fi_init(fi); /* Be prepared for further fun, still. */
+}
+
+int fi_resize(struct frame_index *fi, size_t newsize)
+{
+ off_t *newdata = NULL;
+ if(newsize == fi->size) return 0;
+
+ if(newsize > 0 && newsize < fi->size)
+ { /* When we reduce buffer size a bit, shrink stuff. */
+ while(fi->fill > newsize){ fi_shrink(fi); }
+ }
+
+ newdata = safe_realloc(fi->data, newsize*sizeof(off_t));
+ if(newsize == 0 || newdata != NULL)
+ {
+ fi->data = newdata;
+ fi->size = newsize;
+ if(fi->fill > fi->size) fi->fill = fi->size;
+
+ fi->next = fi_next(fi);
+ debug2("new index of size %lu at %p", (unsigned long)fi->size, (void*)fi->data);
+ return 0;
+ }
+ else
+ {
+ error("failed to resize index!");
+ return -1;
+ }
+}
+
+void fi_add(struct frame_index *fi, off_t pos)
+{
+ debug3("wanting to add to fill %lu, step %lu, size %lu", (unsigned long)fi->fill, (unsigned long)fi->step, (unsigned long)fi->size);
+ if(fi->fill == fi->size)
+ { /* Index is full, we need to shrink... or grow. */
+ /* Store the current frame number to check later if we still want it. */
+ off_t framenum = fi->fill*fi->step;
+ /* If we want not / cannot grow, we shrink. */
+ if( !(fi->grow_size && fi_resize(fi, fi->size+fi->grow_size)==0) )
+ fi_shrink(fi);
+
+ /* Now check if we still want to add this frame (could be that not, because of changed step). */
+ if(fi->next != framenum) return;
+ }
+ /* When we are here, we want that frame. */
+ if(fi->fill < fi->size) /* safeguard for size=1, or just generally */
+ {
+ debug1("adding to index at %p", (void*)(fi->data+fi->fill));
+ fi->data[fi->fill] = pos;
+ ++fi->fill;
+ fi->next = fi_next(fi);
+ debug3("added pos %li to index with fill %lu and step %lu", (long) pos, (unsigned long)fi->fill, (unsigned long)fi->step);
+ }
+}
+
+void fi_reset(struct frame_index *fi)
+{
+ debug1("reset with size %"SIZE_P, (size_p)fi->size);
+ fi->fill = 0;
+ fi->step = 1;
+ fi->next = fi_next(fi);
+}
diff --git a/src/libmpg123/index.h b/src/libmpg123/index.h
new file mode 100644
index 0000000..3034c97
--- /dev/null
+++ b/src/libmpg123/index.h
@@ -0,0 +1,56 @@
+#ifndef MPG123_H_INDEX
+#define MPG123_H_INDEX
+
+/*
+ index: frame index data structure and functions
+
+ This is for keeping track of frame positions for accurate seeking.
+ Now in it's own file, with initial code from frame.c and parse.c .
+
+ The idea of the index with a certain amount of entries is to cover
+ all yet-encountered frame positions with minimal coarseness.
+ Meaning: At first every frame position is recorded, then, when
+ the index is full, every second position is trown away to make
+ space. Next time it is full, the same happens. And so on.
+ In this manner we maintain a good resolution with the given
+ maximum index size while covering the whole stream.
+
+ copyright 2007-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include "config.h"
+#include "compat.h"
+
+struct frame_index
+{
+ off_t *data; /* actual data, the frame positions */
+ off_t step; /* advancement in frame number per index point */
+ off_t next; /* frame offset supposed to come next into the index */
+ size_t size; /* total number of possible entries */
+ size_t fill; /* number of used entries */
+ size_t grow_size; /* if > 0: index allowed to grow on need with these steps, instead of lowering resolution */
+};
+
+/* The condition for a framenum to be appended to the index.
+ if(FI_NEXT(fr->index, fr->num)) fi_add(offset); */
+#define FI_NEXT(fi, framenum) ((fi).size && framenum == (fi).next)
+
+/* Initialize stuff, set things to zero and NULL... */
+void fi_init(struct frame_index *fi);
+/* Deallocate/zero things. */
+void fi_exit(struct frame_index *fi);
+
+/* Prepare a given size, preserving current fill, if possible.
+ If the new size is smaller than fill, the entry density is reduced.
+ Return 0 on success. */
+int fi_resize(struct frame_index *fi, size_t newsize);
+
+/* Append a frame position, reducing index density if needed. */
+void fi_add(struct frame_index *fi, off_t pos);
+
+/* Empty the index (setting fill=0 and step=1), but keep current size. */
+void fi_reset(struct frame_index *fi);
+
+#endif
diff --git a/src/libmpg123/l2tables.h b/src/libmpg123/l2tables.h
new file mode 100644
index 0000000..c671ea1
--- /dev/null
+++ b/src/libmpg123/l2tables.h
@@ -0,0 +1,164 @@
+/*
+ l2tables.h: Layer 2 Alloc tables
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+
+ most other tables are calculated on program start (which is (of course) not ISO-conform)
+ Layer-3 huffman table is in huffman.h
+*/
+
+
+#ifndef _MPG123_L2TABLES_H_
+#define _MPG123_L2TABLES_H_
+
+const struct al_table alloc_0[] = {
+ {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},
+ {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},
+ {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},
+ {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},
+ {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},
+ {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767} };
+
+const struct al_table alloc_1[] = {
+ {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},
+ {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},
+ {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},
+ {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},
+ {4,0},{5,3},{3,-3},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},{10,-511},
+ {11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {3,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767},
+ {2,0},{5,3},{7,5},{16,-32767} };
+
+const struct al_table alloc_2[] = {
+ {4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},
+ {10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},
+ {4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},
+ {10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63} };
+
+const struct al_table alloc_3[] = {
+ {4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},
+ {10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},
+ {4,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},{9,-255},
+ {10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},{15,-16383},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63} };
+
+const struct al_table alloc_4[] = {
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},
+ {4,0},{5,3},{7,5},{3,-3},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},{8,-127},
+ {9,-255},{10,-511},{11,-1023},{12,-2047},{13,-4095},{14,-8191},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {3,0},{5,3},{7,5},{10,9},{4,-7},{5,-15},{6,-31},{7,-63},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9},
+ {2,0},{5,3},{7,5},{10,9} };
+
+#endif
+
diff --git a/src/libmpg123/layer1.c b/src/libmpg123/layer1.c
new file mode 100644
index 0000000..0673d53
--- /dev/null
+++ b/src/libmpg123/layer1.c
@@ -0,0 +1,155 @@
+/*
+ layer1.c: the layer 1 decoder
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+
+ may have a few bugs after last optimization ...
+*/
+
+#include "mpg123lib_intern.h"
+#include "getbits.h"
+
+void I_step_one(unsigned int balloc[], unsigned int scale_index[2][SBLIMIT],mpg123_handle *fr)
+{
+ unsigned int *ba=balloc;
+ unsigned int *sca = (unsigned int *) scale_index;
+
+ if(fr->stereo == 2)
+ {
+ int i;
+ int jsbound = fr->jsbound;
+ for(i=0;i<jsbound;i++)
+ {
+ *ba++ = getbits(fr, 4);
+ *ba++ = getbits(fr, 4);
+ }
+ for(i=jsbound;i<SBLIMIT;i++) *ba++ = getbits(fr, 4);
+
+ ba = balloc;
+
+ for(i=0;i<jsbound;i++)
+ {
+ if ((*ba++))
+ *sca++ = getbits(fr, 6);
+ if ((*ba++))
+ *sca++ = getbits(fr, 6);
+ }
+ for (i=jsbound;i<SBLIMIT;i++)
+ if((*ba++))
+ {
+ *sca++ = getbits(fr, 6);
+ *sca++ = getbits(fr, 6);
+ }
+ }
+ else
+ {
+ int i;
+ for(i=0;i<SBLIMIT;i++) *ba++ = getbits(fr, 4);
+
+ ba = balloc;
+ for (i=0;i<SBLIMIT;i++)
+ if ((*ba++))
+ *sca++ = getbits(fr, 6);
+ }
+}
+
+void I_step_two(real fraction[2][SBLIMIT],unsigned int balloc[2*SBLIMIT], unsigned int scale_index[2][SBLIMIT],mpg123_handle *fr)
+{
+ int i,n;
+ int smpb[2*SBLIMIT]; /* values: 0-65535 */
+ int *sample;
+ register unsigned int *ba;
+ register unsigned int *sca = (unsigned int *) scale_index;
+
+ if(fr->stereo == 2)
+ {
+ int jsbound = fr->jsbound;
+ register real *f0 = fraction[0];
+ register real *f1 = fraction[1];
+ ba = balloc;
+ for(sample=smpb,i=0;i<jsbound;i++)
+ {
+ if((n = *ba++)) *sample++ = getbits(fr, n+1);
+
+ if((n = *ba++)) *sample++ = getbits(fr, n+1);
+ }
+ for(i=jsbound;i<SBLIMIT;i++)
+ if((n = *ba++))
+ *sample++ = getbits(fr, n+1);
+
+ ba = balloc;
+ for(sample=smpb,i=0;i<jsbound;i++)
+ {
+ if((n=*ba++))
+ *f0++ = REAL_MUL_SCALE_LAYER12(DOUBLE_TO_REAL_15( ((-1)<<n) + (*sample++) + 1), fr->muls[n+1][*sca++]);
+ else *f0++ = DOUBLE_TO_REAL(0.0);
+
+ if((n=*ba++))
+ *f1++ = REAL_MUL_SCALE_LAYER12(DOUBLE_TO_REAL_15( ((-1)<<n) + (*sample++) + 1), fr->muls[n+1][*sca++]);
+ else *f1++ = DOUBLE_TO_REAL(0.0);
+ }
+ for(i=jsbound;i<SBLIMIT;i++)
+ {
+ if((n=*ba++))
+ {
+ real samp = DOUBLE_TO_REAL_15( ((-1)<<n) + (*sample++) + 1);
+ *f0++ = REAL_MUL_SCALE_LAYER12(samp, fr->muls[n+1][*sca++]);
+ *f1++ = REAL_MUL_SCALE_LAYER12(samp, fr->muls[n+1][*sca++]);
+ }
+ else *f0++ = *f1++ = DOUBLE_TO_REAL(0.0);
+ }
+ for(i=fr->down_sample_sblimit;i<32;i++)
+ fraction[0][i] = fraction[1][i] = 0.0;
+ }
+ else
+ {
+ register real *f0 = fraction[0];
+ ba = balloc;
+ for(sample=smpb,i=0;i<SBLIMIT;i++)
+ if ((n = *ba++))
+ *sample++ = getbits(fr, n+1);
+
+ ba = balloc;
+ for(sample=smpb,i=0;i<SBLIMIT;i++)
+ {
+ if((n=*ba++))
+ *f0++ = REAL_MUL_SCALE_LAYER12(DOUBLE_TO_REAL_15( ((-1)<<n) + (*sample++) + 1), fr->muls[n+1][*sca++]);
+ else *f0++ = DOUBLE_TO_REAL(0.0);
+ }
+ for(i=fr->down_sample_sblimit;i<32;i++)
+ fraction[0][i] = DOUBLE_TO_REAL(0.0);
+ }
+}
+
+int do_layer1(mpg123_handle *fr)
+{
+ int clip=0;
+ int i,stereo = fr->stereo;
+ unsigned int balloc[2*SBLIMIT];
+ unsigned int scale_index[2][SBLIMIT];
+ ALIGNED(16) real fraction[2][SBLIMIT];
+ int single = fr->single;
+
+ fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ? (fr->mode_ext<<2)+4 : 32;
+
+ if(stereo == 1 || single == SINGLE_MIX) /* I don't see mixing handled here */
+ single = SINGLE_LEFT;
+
+ I_step_one(balloc,scale_index,fr);
+
+ for(i=0;i<SCALE_BLOCK;i++)
+ {
+ I_step_two(fraction,balloc,scale_index,fr);
+
+ if(single != SINGLE_STEREO)
+ clip += (fr->synth_mono)(fraction[single], fr);
+ else
+ clip += (fr->synth_stereo)(fraction[0], fraction[1], fr);
+ }
+
+ return clip;
+}
+
+
diff --git a/src/libmpg123/layer2.c b/src/libmpg123/layer2.c
new file mode 100644
index 0000000..e4de3c1
--- /dev/null
+++ b/src/libmpg123/layer2.c
@@ -0,0 +1,359 @@
+/*
+ layer2.c: the layer 2 decoder, root of mpg123
+
+ copyright 1994-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+
+ mpg123 started as mp2 decoder a long time ago...
+ part of this file is required for layer 1, too.
+*/
+
+
+#include "mpg123lib_intern.h"
+#ifndef NO_LAYER2
+#include "l2tables.h"
+#endif
+#include "getbits.h"
+
+#ifndef NO_LAYER12 /* Stuff needed for layer I and II. */
+
+static int grp_3tab[32 * 3] = { 0, }; /* used: 27 */
+static int grp_5tab[128 * 3] = { 0, }; /* used: 125 */
+static int grp_9tab[1024 * 3] = { 0, }; /* used: 729 */
+
+static const double mulmul[27] =
+{
+ 0.0 , -2.0/3.0 , 2.0/3.0 ,
+ 2.0/7.0 , 2.0/15.0 , 2.0/31.0, 2.0/63.0 , 2.0/127.0 , 2.0/255.0 ,
+ 2.0/511.0 , 2.0/1023.0 , 2.0/2047.0 , 2.0/4095.0 , 2.0/8191.0 ,
+ 2.0/16383.0 , 2.0/32767.0 , 2.0/65535.0 ,
+ -4.0/5.0 , -2.0/5.0 , 2.0/5.0, 4.0/5.0 ,
+ -8.0/9.0 , -4.0/9.0 , -2.0/9.0 , 2.0/9.0 , 4.0/9.0 , 8.0/9.0
+};
+
+void init_layer12(void)
+{
+ const int base[3][9] =
+ {
+ { 1 , 0, 2 , } ,
+ { 17, 18, 0 , 19, 20 , } ,
+ { 21, 1, 22, 23, 0, 24, 25, 2, 26 }
+ };
+ int i,j,k,l,len;
+ const int tablen[3] = { 3 , 5 , 9 };
+ int *itable;
+ int *tables[3] = { grp_3tab , grp_5tab , grp_9tab };
+
+ for(i=0;i<3;i++)
+ {
+ itable = tables[i];
+ len = tablen[i];
+ for(j=0;j<len;j++)
+ for(k=0;k<len;k++)
+ for(l=0;l<len;l++)
+ {
+ *itable++ = base[i][l];
+ *itable++ = base[i][k];
+ *itable++ = base[i][j];
+ }
+ }
+}
+
+void init_layer12_stuff(mpg123_handle *fr, real* (*init_table)(mpg123_handle *fr, real *table, double m))
+{
+ int k;
+ real *table;
+ for(k=0;k<27;k++)
+ {
+ table = init_table(fr, fr->muls[k], mulmul[k]);
+ *table++ = 0.0;
+ }
+}
+
+real* init_layer12_table(mpg123_handle *fr, real *table, double m)
+{
+ int i,j;
+ for(j=3,i=0;i<63;i++,j--)
+ *table++ = DOUBLE_TO_REAL_SCALE_LAYER12(m * pow(2.0,(double) j / 3.0));
+
+ return table;
+}
+
+#ifdef OPT_MMXORSSE
+real* init_layer12_table_mmx(mpg123_handle *fr, real *table, double m)
+{
+ int i,j;
+ if(!fr->p.down_sample)
+ {
+ for(j=3,i=0;i<63;i++,j--)
+ *table++ = DOUBLE_TO_REAL(16384 * m * pow(2.0,(double) j / 3.0));
+ }
+ else
+ {
+ for(j=3,i=0;i<63;i++,j--)
+ *table++ = DOUBLE_TO_REAL(m * pow(2.0,(double) j / 3.0));
+ }
+ return table;
+}
+#endif
+
+#endif /* NO_LAYER12 */
+
+/* The rest is the actual decoding of layer II data. */
+
+#ifndef NO_LAYER2
+
+void II_step_one(unsigned int *bit_alloc,int *scale,mpg123_handle *fr)
+{
+ int stereo = fr->stereo-1;
+ int sblimit = fr->II_sblimit;
+ int jsbound = fr->jsbound;
+ int sblimit2 = fr->II_sblimit<<stereo;
+ const struct al_table *alloc1 = fr->alloc;
+ int i;
+ unsigned int scfsi_buf[64];
+ unsigned int *scfsi,*bita;
+ int sc,step;
+
+ bita = bit_alloc;
+ if(stereo)
+ {
+ for(i=jsbound;i;i--,alloc1+=(1<<step))
+ {
+ step=alloc1->bits;
+ *bita++ = (char) getbits(fr, step);
+ *bita++ = (char) getbits(fr, step);
+ }
+ for(i=sblimit-jsbound;i;i--,alloc1+=(1<<step))
+ {
+ step=alloc1->bits;
+ bita[0] = (char) getbits(fr, step);
+ bita[1] = bita[0];
+ bita+=2;
+ }
+ bita = bit_alloc;
+ scfsi=scfsi_buf;
+
+ for(i=sblimit2;i;i--)
+ if(*bita++) *scfsi++ = (char) getbits_fast(fr, 2);
+ }
+ else /* mono */
+ {
+ for(i=sblimit;i;i--,alloc1+=(1<<step))
+ {
+ step=alloc1->bits;
+ *bita++ = (char) getbits(fr, step);
+ }
+ bita = bit_alloc;
+ scfsi=scfsi_buf;
+ for(i=sblimit;i;i--)
+ if(*bita++) *scfsi++ = (char) getbits_fast(fr, 2);
+ }
+
+ bita = bit_alloc;
+ scfsi=scfsi_buf;
+ for(i=sblimit2;i;i--)
+ if(*bita++)
+ switch(*scfsi++)
+ {
+ case 0:
+ *scale++ = getbits_fast(fr, 6);
+ *scale++ = getbits_fast(fr, 6);
+ *scale++ = getbits_fast(fr, 6);
+ break;
+ case 1 :
+ *scale++ = sc = getbits_fast(fr, 6);
+ *scale++ = sc;
+ *scale++ = getbits_fast(fr, 6);
+ break;
+ case 2:
+ *scale++ = sc = getbits_fast(fr, 6);
+ *scale++ = sc;
+ *scale++ = sc;
+ break;
+ default: /* case 3 */
+ *scale++ = getbits_fast(fr, 6);
+ *scale++ = sc = getbits_fast(fr, 6);
+ *scale++ = sc;
+ break;
+ }
+}
+
+
+void II_step_two(unsigned int *bit_alloc,real fraction[2][4][SBLIMIT],int *scale,mpg123_handle *fr,int x1)
+{
+ int i,j,k,ba;
+ int stereo = fr->stereo;
+ int sblimit = fr->II_sblimit;
+ int jsbound = fr->jsbound;
+ const struct al_table *alloc2,*alloc1 = fr->alloc;
+ unsigned int *bita=bit_alloc;
+ int d1,step;
+
+ for(i=0;i<jsbound;i++,alloc1+=(1<<step))
+ {
+ step = alloc1->bits;
+ for(j=0;j<stereo;j++)
+ {
+ if( (ba=*bita++) )
+ {
+ k=(alloc2 = alloc1+ba)->bits;
+ if( (d1=alloc2->d) < 0)
+ {
+ real cm=fr->muls[k][scale[x1]];
+ fraction[j][0][i] = REAL_MUL_SCALE_LAYER12(DOUBLE_TO_REAL_15((int)getbits(fr, k) + d1), cm);
+ fraction[j][1][i] = REAL_MUL_SCALE_LAYER12(DOUBLE_TO_REAL_15((int)getbits(fr, k) + d1), cm);
+ fraction[j][2][i] = REAL_MUL_SCALE_LAYER12(DOUBLE_TO_REAL_15((int)getbits(fr, k) + d1), cm);
+ }
+ else
+ {
+ const int *table[] = { 0,0,0,grp_3tab,0,grp_5tab,0,0,0,grp_9tab };
+ unsigned int idx,*tab,m=scale[x1];
+ idx = (unsigned int) getbits(fr, k);
+ tab = (unsigned int *) (table[d1] + idx + idx + idx);
+ fraction[j][0][i] = REAL_SCALE_LAYER12(fr->muls[*tab++][m]);
+ fraction[j][1][i] = REAL_SCALE_LAYER12(fr->muls[*tab++][m]);
+ fraction[j][2][i] = REAL_SCALE_LAYER12(fr->muls[*tab][m]);
+ }
+ scale+=3;
+ }
+ else
+ fraction[j][0][i] = fraction[j][1][i] = fraction[j][2][i] = DOUBLE_TO_REAL(0.0);
+ }
+ }
+
+ for(i=jsbound;i<sblimit;i++,alloc1+=(1<<step))
+ {
+ step = alloc1->bits;
+ bita++; /* channel 1 and channel 2 bitalloc are the same */
+ if( (ba=*bita++) )
+ {
+ k=(alloc2 = alloc1+ba)->bits;
+ if( (d1=alloc2->d) < 0)
+ {
+ real cm;
+ cm=fr->muls[k][scale[x1+3]];
+ fraction[0][0][i] = DOUBLE_TO_REAL_15((int)getbits(fr, k) + d1);
+ fraction[0][1][i] = DOUBLE_TO_REAL_15((int)getbits(fr, k) + d1);
+ fraction[0][2][i] = DOUBLE_TO_REAL_15((int)getbits(fr, k) + d1);
+ fraction[1][0][i] = REAL_MUL_SCALE_LAYER12(fraction[0][0][i], cm);
+ fraction[1][1][i] = REAL_MUL_SCALE_LAYER12(fraction[0][1][i], cm);
+ fraction[1][2][i] = REAL_MUL_SCALE_LAYER12(fraction[0][2][i], cm);
+ cm=fr->muls[k][scale[x1]];
+ fraction[0][0][i] = REAL_MUL_SCALE_LAYER12(fraction[0][0][i], cm);
+ fraction[0][1][i] = REAL_MUL_SCALE_LAYER12(fraction[0][1][i], cm);
+ fraction[0][2][i] = REAL_MUL_SCALE_LAYER12(fraction[0][2][i], cm);
+ }
+ else
+ {
+ const int *table[] = { 0,0,0,grp_3tab,0,grp_5tab,0,0,0,grp_9tab };
+ unsigned int idx,*tab,m1,m2;
+ m1 = scale[x1]; m2 = scale[x1+3];
+ idx = (unsigned int) getbits(fr, k);
+ tab = (unsigned int *) (table[d1] + idx + idx + idx);
+ fraction[0][0][i] = REAL_SCALE_LAYER12(fr->muls[*tab][m1]); fraction[1][0][i] = REAL_SCALE_LAYER12(fr->muls[*tab++][m2]);
+ fraction[0][1][i] = REAL_SCALE_LAYER12(fr->muls[*tab][m1]); fraction[1][1][i] = REAL_SCALE_LAYER12(fr->muls[*tab++][m2]);
+ fraction[0][2][i] = REAL_SCALE_LAYER12(fr->muls[*tab][m1]); fraction[1][2][i] = REAL_SCALE_LAYER12(fr->muls[*tab][m2]);
+ }
+ scale+=6;
+ }
+ else
+ {
+ fraction[0][0][i] = fraction[0][1][i] = fraction[0][2][i] =
+ fraction[1][0][i] = fraction[1][1][i] = fraction[1][2][i] = DOUBLE_TO_REAL(0.0);
+ }
+/*
+ Historic comment...
+ should we use individual scalefac for channel 2 or
+ is the current way the right one , where we just copy channel 1 to
+ channel 2 ??
+ The current 'strange' thing is, that we throw away the scalefac
+ values for the second channel ...!!
+ -> changed .. now we use the scalefac values of channel one !!
+*/
+ }
+
+ if(sblimit > (fr->down_sample_sblimit) )
+ sblimit = fr->down_sample_sblimit;
+
+ for(i=sblimit;i<SBLIMIT;i++)
+ for (j=0;j<stereo;j++)
+ fraction[j][0][i] = fraction[j][1][i] = fraction[j][2][i] = DOUBLE_TO_REAL(0.0);
+}
+
+
+static void II_select_table(mpg123_handle *fr)
+{
+ const int translate[3][2][16] =
+ {
+ {
+ { 0,2,2,2,2,2,2,0,0,0,1,1,1,1,1,0 },
+ { 0,2,2,0,0,0,1,1,1,1,1,1,1,1,1,0 }
+ },
+ {
+ { 0,2,2,2,2,2,2,0,0,0,0,0,0,0,0,0 },
+ { 0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0 }
+ },
+ {
+ { 0,3,3,3,3,3,3,0,0,0,1,1,1,1,1,0 },
+ { 0,3,3,0,0,0,1,1,1,1,1,1,1,1,1,0 }
+ }
+ };
+
+ int table,sblim;
+ const struct al_table *tables[5] = { alloc_0, alloc_1, alloc_2, alloc_3 , alloc_4 };
+ const int sblims[5] = { 27 , 30 , 8, 12 , 30 };
+
+ if(fr->sampling_frequency >= 3) /* Or equivalent: (fr->lsf == 1) */
+ table = 4;
+ else
+ table = translate[fr->sampling_frequency][2-fr->stereo][fr->bitrate_index];
+
+ sblim = sblims[table];
+ fr->alloc = tables[table];
+ fr->II_sblimit = sblim;
+}
+
+
+int do_layer2(mpg123_handle *fr)
+{
+ int clip=0;
+ int i,j;
+ int stereo = fr->stereo;
+ ALIGNED(16) real fraction[2][4][SBLIMIT]; /* pick_table clears unused subbands */
+ unsigned int bit_alloc[64];
+ int scale[192];
+ int single = fr->single;
+
+ II_select_table(fr);
+ fr->jsbound = (fr->mode == MPG_MD_JOINT_STEREO) ? (fr->mode_ext<<2)+4 : fr->II_sblimit;
+
+ if(fr->jsbound > fr->II_sblimit)
+ {
+ fprintf(stderr, "Truncating stereo boundary to sideband limit.\n");
+ fr->jsbound=fr->II_sblimit;
+ }
+
+ /* TODO: What happens with mono mixing, actually? */
+ if(stereo == 1 || single == SINGLE_MIX) /* also, mix not really handled */
+ single = SINGLE_LEFT;
+
+ II_step_one(bit_alloc, scale, fr);
+
+ for(i=0;i<SCALE_BLOCK;i++)
+ {
+ II_step_two(bit_alloc,fraction,scale,fr,i>>2);
+ for(j=0;j<3;j++)
+ {
+ if(single != SINGLE_STEREO)
+ clip += (fr->synth_mono)(fraction[single][j], fr);
+ else
+ clip += (fr->synth_stereo)(fraction[0][j], fraction[1][j], fr);
+ }
+ }
+
+ return clip;
+}
+
+#endif /* NO_LAYER2 */
diff --git a/src/libmpg123/layer3.c b/src/libmpg123/layer3.c
new file mode 100644
index 0000000..29114d9
--- /dev/null
+++ b/src/libmpg123/layer3.c
@@ -0,0 +1,2067 @@
+/*
+ leyer3.c: the layer 3 decoder
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+
+ Dear visitor:
+ If you feel you don't understand fully the works of this file, your feeling might be correct.
+
+ Optimize-TODO: put short bands into the band-field without the stride of 3 reals
+ Length-optimze: unify long and short band code where it is possible
+
+ The int-vs-pointer situation has to be cleaned up.
+*/
+
+#include "mpg123lib_intern.h"
+#include "huffman.h"
+#include "getbits.h"
+#include "debug.h"
+
+/* define CUT_SFB21 if you want to cut-off the frequency above 16kHz */
+#if 0
+#define CUT_SFB21
+#endif
+
+/* static one-time calculated tables... or so */
+static real ispow[8207];
+static real aa_ca[8],aa_cs[8];
+static real COS1[12][6];
+static real win[4][36];
+static real win1[4][36];
+real COS9[9]; /* dct36_3dnow wants to use that */
+static real COS6_1,COS6_2;
+real tfcos36[9]; /* dct36_3dnow wants to use that */
+static real tfcos12[3];
+#define NEW_DCT9
+#ifdef NEW_DCT9
+static real cos9[3],cos18[3];
+#endif
+
+/* Decoder state data, living on the stack of do_layer3. */
+
+struct gr_info_s
+{
+ int scfsi;
+ unsigned part2_3_length;
+ unsigned big_values;
+ unsigned scalefac_compress;
+ unsigned block_type;
+ unsigned mixed_block_flag;
+ unsigned table_select[3];
+ unsigned subblock_gain[3];
+ unsigned maxband[3];
+ unsigned maxbandl;
+ unsigned maxb;
+ unsigned region1start;
+ unsigned region2start;
+ unsigned preflag;
+ unsigned scalefac_scale;
+ unsigned count1table_select;
+ real *full_gain[3];
+ real *pow2gain;
+};
+
+struct III_sideinfo
+{
+ unsigned main_data_begin;
+ unsigned private_bits;
+ /* Hm, funny... struct inside struct... */
+ struct { struct gr_info_s gr[2]; } ch[2];
+};
+
+struct bandInfoStruct
+{
+ int longIdx[23];
+ int longDiff[22];
+ int shortIdx[14];
+ int shortDiff[13];
+};
+
+/* Techy details about our friendly MPEG data. Fairly constant over the years;-) */
+const struct bandInfoStruct bandInfo[9] =
+{
+ { /* MPEG 1.0 */
+ {0,4,8,12,16,20,24,30,36,44,52,62,74, 90,110,134,162,196,238,288,342,418,576},
+ {4,4,4,4,4,4,6,6,8, 8,10,12,16,20,24,28,34,42,50,54, 76,158},
+ {0,4*3,8*3,12*3,16*3,22*3,30*3,40*3,52*3,66*3, 84*3,106*3,136*3,192*3},
+ {4,4,4,4,6,8,10,12,14,18,22,30,56}
+ },
+ {
+ {0,4,8,12,16,20,24,30,36,42,50,60,72, 88,106,128,156,190,230,276,330,384,576},
+ {4,4,4,4,4,4,6,6,6, 8,10,12,16,18,22,28,34,40,46,54, 54,192},
+ {0,4*3,8*3,12*3,16*3,22*3,28*3,38*3,50*3,64*3, 80*3,100*3,126*3,192*3},
+ {4,4,4,4,6,6,10,12,14,16,20,26,66}
+ },
+ {
+ {0,4,8,12,16,20,24,30,36,44,54,66,82,102,126,156,194,240,296,364,448,550,576},
+ {4,4,4,4,4,4,6,6,8,10,12,16,20,24,30,38,46,56,68,84,102, 26},
+ {0,4*3,8*3,12*3,16*3,22*3,30*3,42*3,58*3,78*3,104*3,138*3,180*3,192*3},
+ {4,4,4,4,6,8,12,16,20,26,34,42,12}
+ },
+ { /* MPEG 2.0 */
+ {0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},
+ {6,6,6,6,6,6,8,10,12,14,16,20,24,28,32,38,46,52,60,68,58,54 } ,
+ {0,4*3,8*3,12*3,18*3,24*3,32*3,42*3,56*3,74*3,100*3,132*3,174*3,192*3} ,
+ {4,4,4,6,6,8,10,14,18,26,32,42,18 }
+ },
+ { /* Twiddling 3 values here (not just 330->332!) fixed bug 1895025. */
+ {0,6,12,18,24,30,36,44,54,66,80,96,114,136,162,194,232,278,332,394,464,540,576},
+ {6,6,6,6,6,6,8,10,12,14,16,18,22,26,32,38,46,54,62,70,76,36 },
+ {0,4*3,8*3,12*3,18*3,26*3,36*3,48*3,62*3,80*3,104*3,136*3,180*3,192*3},
+ {4,4,4,6,8,10,12,14,18,24,32,44,12 }
+ },
+ {
+ {0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},
+ {6,6,6,6,6,6,8,10,12,14,16,20,24,28,32,38,46,52,60,68,58,54 },
+ {0,4*3,8*3,12*3,18*3,26*3,36*3,48*3,62*3,80*3,104*3,134*3,174*3,192*3},
+ {4,4,4,6,8,10,12,14,18,24,30,40,18 }
+ },
+ { /* MPEG 2.5 */
+ {0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},
+ {6,6,6,6,6,6,8,10,12,14,16,20,24,28,32,38,46,52,60,68,58,54},
+ {0,12,24,36,54,78,108,144,186,240,312,402,522,576},
+ {4,4,4,6,8,10,12,14,18,24,30,40,18}
+ },
+ {
+ {0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},
+ {6,6,6,6,6,6,8,10,12,14,16,20,24,28,32,38,46,52,60,68,58,54},
+ {0,12,24,36,54,78,108,144,186,240,312,402,522,576},
+ {4,4,4,6,8,10,12,14,18,24,30,40,18}
+ },
+ {
+ {0,12,24,36,48,60,72,88,108,132,160,192,232,280,336,400,476,566,568,570,572,574,576},
+ {12,12,12,12,12,12,16,20,24,28,32,40,48,56,64,76,90,2,2,2,2,2},
+ {0, 24, 48, 72,108,156,216,288,372,480,486,492,498,576},
+ {8,8,8,12,16,20,24,28,36,2,2,2,26}
+ }
+};
+
+static int mapbuf0[9][152];
+static int mapbuf1[9][156];
+static int mapbuf2[9][44];
+static int *map[9][3];
+static int *mapend[9][3];
+
+static unsigned int n_slen2[512]; /* MPEG 2.0 slen for 'normal' mode */
+static unsigned int i_slen2[256]; /* MPEG 2.0 slen for intensity stereo */
+
+static real tan1_1[16],tan2_1[16],tan1_2[16],tan2_2[16];
+static real pow1_1[2][16],pow2_1[2][16],pow1_2[2][16],pow2_2[2][16];
+
+#ifdef REAL_IS_FIXED
+static const char gainpow2_scale[256+118+4+1] =
+{
+ 19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,
+ 27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,
+ 34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,0
+};
+#endif
+
+/* Some helpers used in init_layer3 */
+
+#ifdef OPT_MMXORSSE
+real init_layer3_gainpow2_mmx(mpg123_handle *fr, int i)
+{
+ if(!fr->p.down_sample) return DOUBLE_TO_REAL(16384.0 * pow((double)2.0,-0.25 * (double) (i+210) ));
+ else return DOUBLE_TO_REAL(pow((double)2.0,-0.25 * (double) (i+210)));
+}
+#endif
+
+real init_layer3_gainpow2(mpg123_handle *fr, int i)
+{
+ return DOUBLE_TO_REAL_SCALE_LAYER3(pow((double)2.0,-0.25 * (double) (i+210)),i+256);
+}
+
+
+/* init tables for layer-3 ... specific with the downsampling... */
+void init_layer3(void)
+{
+ int i,j,k,l;
+
+ for(i=0;i<8207;i++)
+ ispow[i] = DOUBLE_TO_REAL_POW43(pow((double)i,(double)4.0/3.0));
+
+ for(i=0;i<8;i++)
+ {
+ const double Ci[8] = {-0.6,-0.535,-0.33,-0.185,-0.095,-0.041,-0.0142,-0.0037};
+ double sq = sqrt(1.0+Ci[i]*Ci[i]);
+ aa_cs[i] = DOUBLE_TO_REAL(1.0/sq);
+ aa_ca[i] = DOUBLE_TO_REAL(Ci[i]/sq);
+ }
+
+ for(i=0;i<18;i++)
+ {
+ win[0][i] = win[1][i] =
+ DOUBLE_TO_REAL( 0.5*sin(M_PI/72.0 * (double)(2*(i+0) +1)) / cos(M_PI * (double)(2*(i+0) +19) / 72.0) );
+ win[0][i+18] = win[3][i+18] =
+ DOUBLE_TO_REAL( 0.5*sin(M_PI/72.0 * (double)(2*(i+18)+1)) / cos(M_PI * (double)(2*(i+18)+19) / 72.0) );
+ }
+ for(i=0;i<6;i++)
+ {
+ win[1][i+18] = DOUBLE_TO_REAL(0.5 / cos ( M_PI * (double) (2*(i+18)+19) / 72.0 ));
+ win[3][i+12] = DOUBLE_TO_REAL(0.5 / cos ( M_PI * (double) (2*(i+12)+19) / 72.0 ));
+ win[1][i+24] = DOUBLE_TO_REAL(0.5 * sin( M_PI / 24.0 * (double) (2*i+13) ) / cos ( M_PI * (double) (2*(i+24)+19) / 72.0 ));
+ win[1][i+30] = win[3][i] = DOUBLE_TO_REAL(0.0);
+ win[3][i+6 ] = DOUBLE_TO_REAL(0.5 * sin( M_PI / 24.0 * (double) (2*i+1 ) ) / cos ( M_PI * (double) (2*(i+6 )+19) / 72.0 ));
+ }
+
+ for(i=0;i<9;i++)
+ COS9[i] = DOUBLE_TO_REAL(cos( M_PI / 18.0 * (double) i));
+
+ for(i=0;i<9;i++)
+ tfcos36[i] = DOUBLE_TO_REAL(0.5 / cos ( M_PI * (double) (i*2+1) / 36.0 ));
+
+ for(i=0;i<3;i++)
+ tfcos12[i] = DOUBLE_TO_REAL(0.5 / cos ( M_PI * (double) (i*2+1) / 12.0 ));
+
+ COS6_1 = DOUBLE_TO_REAL(cos( M_PI / 6.0 * (double) 1));
+ COS6_2 = DOUBLE_TO_REAL(cos( M_PI / 6.0 * (double) 2));
+
+#ifdef NEW_DCT9
+ cos9[0] = DOUBLE_TO_REAL(cos(1.0*M_PI/9.0));
+ cos9[1] = DOUBLE_TO_REAL(cos(5.0*M_PI/9.0));
+ cos9[2] = DOUBLE_TO_REAL(cos(7.0*M_PI/9.0));
+ cos18[0] = DOUBLE_TO_REAL(cos(1.0*M_PI/18.0));
+ cos18[1] = DOUBLE_TO_REAL(cos(11.0*M_PI/18.0));
+ cos18[2] = DOUBLE_TO_REAL(cos(13.0*M_PI/18.0));
+#endif
+
+ for(i=0;i<12;i++)
+ {
+ win[2][i] = DOUBLE_TO_REAL(0.5 * sin( M_PI / 24.0 * (double) (2*i+1) ) / cos ( M_PI * (double) (2*i+7) / 24.0 ));
+ for(j=0;j<6;j++)
+ COS1[i][j] = DOUBLE_TO_REAL(cos( M_PI / 24.0 * (double) ((2*i+7)*(2*j+1)) ));
+ }
+
+ for(j=0;j<4;j++)
+ {
+ const int len[4] = { 36,36,12,36 };
+ for(i=0;i<len[j];i+=2) win1[j][i] = + win[j][i];
+
+ for(i=1;i<len[j];i+=2) win1[j][i] = - win[j][i];
+ }
+
+ for(i=0;i<16;i++)
+ {
+ double t = tan( (double) i * M_PI / 12.0 );
+ tan1_1[i] = DOUBLE_TO_REAL_15(t / (1.0+t));
+ tan2_1[i] = DOUBLE_TO_REAL_15(1.0 / (1.0 + t));
+ tan1_2[i] = DOUBLE_TO_REAL_15(M_SQRT2 * t / (1.0+t));
+ tan2_2[i] = DOUBLE_TO_REAL_15(M_SQRT2 / (1.0 + t));
+
+ for(j=0;j<2;j++)
+ {
+ double base = pow(2.0,-0.25*(j+1.0));
+ double p1=1.0,p2=1.0;
+ if(i > 0)
+ {
+ if( i & 1 ) p1 = pow(base,(i+1.0)*0.5);
+ else p2 = pow(base,i*0.5);
+ }
+ pow1_1[j][i] = DOUBLE_TO_REAL_15(p1);
+ pow2_1[j][i] = DOUBLE_TO_REAL_15(p2);
+ pow1_2[j][i] = DOUBLE_TO_REAL_15(M_SQRT2 * p1);
+ pow2_2[j][i] = DOUBLE_TO_REAL_15(M_SQRT2 * p2);
+ }
+ }
+
+ for(j=0;j<9;j++)
+ {
+ const struct bandInfoStruct *bi = &bandInfo[j];
+ int *mp;
+ int cb,lwin;
+ const int *bdf;
+
+ mp = map[j][0] = mapbuf0[j];
+ bdf = bi->longDiff;
+ for(i=0,cb = 0; cb < 8 ; cb++,i+=*bdf++)
+ {
+ *mp++ = (*bdf) >> 1;
+ *mp++ = i;
+ *mp++ = 3;
+ *mp++ = cb;
+ }
+ bdf = bi->shortDiff+3;
+ for(cb=3;cb<13;cb++)
+ {
+ int l = (*bdf++) >> 1;
+ for(lwin=0;lwin<3;lwin++)
+ {
+ *mp++ = l;
+ *mp++ = i + lwin;
+ *mp++ = lwin;
+ *mp++ = cb;
+ }
+ i += 6*l;
+ }
+ mapend[j][0] = mp;
+
+ mp = map[j][1] = mapbuf1[j];
+ bdf = bi->shortDiff+0;
+ for(i=0,cb=0;cb<13;cb++)
+ {
+ int l = (*bdf++) >> 1;
+ for(lwin=0;lwin<3;lwin++)
+ {
+ *mp++ = l;
+ *mp++ = i + lwin;
+ *mp++ = lwin;
+ *mp++ = cb;
+ }
+ i += 6*l;
+ }
+ mapend[j][1] = mp;
+
+ mp = map[j][2] = mapbuf2[j];
+ bdf = bi->longDiff;
+ for(cb = 0; cb < 22 ; cb++)
+ {
+ *mp++ = (*bdf++) >> 1;
+ *mp++ = cb;
+ }
+ mapend[j][2] = mp;
+ }
+
+ /* Now for some serious loopings! */
+ for(i=0;i<5;i++)
+ for(j=0;j<6;j++)
+ for(k=0;k<6;k++)
+ {
+ int n = k + j * 6 + i * 36;
+ i_slen2[n] = i|(j<<3)|(k<<6)|(3<<12);
+ }
+ for(i=0;i<4;i++)
+ for(j=0;j<4;j++)
+ for(k=0;k<4;k++)
+ {
+ int n = k + j * 4 + i * 16;
+ i_slen2[n+180] = i|(j<<3)|(k<<6)|(4<<12);
+ }
+ for(i=0;i<4;i++)
+ for(j=0;j<3;j++)
+ {
+ int n = j + i * 3;
+ i_slen2[n+244] = i|(j<<3) | (5<<12);
+ n_slen2[n+500] = i|(j<<3) | (2<<12) | (1<<15);
+ }
+ for(i=0;i<5;i++)
+ for(j=0;j<5;j++)
+ for(k=0;k<4;k++)
+ for(l=0;l<4;l++)
+ {
+ int n = l + k * 4 + j * 16 + i * 80;
+ n_slen2[n] = i|(j<<3)|(k<<6)|(l<<9)|(0<<12);
+ }
+ for(i=0;i<5;i++)
+ for(j=0;j<5;j++)
+ for(k=0;k<4;k++)
+ {
+ int n = k + j * 4 + i * 20;
+ n_slen2[n+400] = i|(j<<3)|(k<<6)|(1<<12);
+ }
+}
+
+
+void init_layer3_stuff(mpg123_handle *fr, real (*gainpow2)(mpg123_handle *fr, int i))
+{
+ int i,j;
+
+ for(i=-256;i<118+4;i++) fr->gainpow2[i+256] = gainpow2(fr,i);
+
+ for(j=0;j<9;j++)
+ {
+ for(i=0;i<23;i++)
+ {
+ fr->longLimit[j][i] = (bandInfo[j].longIdx[i] - 1 + 8) / 18 + 1;
+ if(fr->longLimit[j][i] > (fr->down_sample_sblimit) )
+ fr->longLimit[j][i] = fr->down_sample_sblimit;
+ }
+ for(i=0;i<14;i++)
+ {
+ fr->shortLimit[j][i] = (bandInfo[j].shortIdx[i] - 1) / 18 + 1;
+ if(fr->shortLimit[j][i] > (fr->down_sample_sblimit) )
+ fr->shortLimit[j][i] = fr->down_sample_sblimit;
+ }
+ }
+}
+
+/*
+ Observe!
+ Now come the actualy decoding routines.
+*/
+
+/* read additional side information (for MPEG 1 and MPEG 2) */
+static int III_get_side_info(mpg123_handle *fr, struct III_sideinfo *si,int stereo, int ms_stereo,long sfreq,int single)
+{
+ int ch, gr;
+ int powdiff = (single == SINGLE_MIX) ? 4 : 0;
+
+ const int tabs[2][5] = { { 2,9,5,3,4 } , { 1,8,1,2,9 } };
+ const int *tab = tabs[fr->lsf];
+
+ si->main_data_begin = getbits(fr, tab[1]);
+
+ if(si->main_data_begin > fr->bitreservoir)
+ {
+ if(VERBOSE2) fprintf(stderr, "Note: missing %d bytes in bit reservoir for frame %li\n", (int)(si->main_data_begin - fr->bitreservoir), (long)fr->num);
+
+ /* overwrite main_data_begin for the really available bit reservoir */
+ backbits(fr, tab[1]);
+ if(fr->lsf == 0)
+ {
+ fr->wordpointer[0] = (unsigned char) (fr->bitreservoir >> 1);
+ fr->wordpointer[1] = (unsigned char) ((fr->bitreservoir & 1) << 7);
+ }
+ else fr->wordpointer[0] = (unsigned char) fr->bitreservoir;
+
+ /* zero "side-info" data for a silence-frame
+ without touching audio data used as bit reservoir for following frame */
+ memset(fr->wordpointer+2, 0, fr->ssize-2);
+
+ /* reread the new bit reservoir offset */
+ si->main_data_begin = getbits(fr, tab[1]);
+ }
+
+ /* Keep track of the available data bytes for the bit reservoir.
+ Think: Substract the 2 crc bytes in parser already? */
+ fr->bitreservoir = fr->bitreservoir + fr->framesize - fr->ssize - (fr->error_protection ? 2 : 0);
+ /* Limit the reservoir to the max for MPEG 1.0 or 2.x . */
+ if(fr->bitreservoir > (unsigned int) (fr->lsf == 0 ? 511 : 255))
+ fr->bitreservoir = (fr->lsf == 0 ? 511 : 255);
+
+ /* Now back into less commented territory. It's code. It works. */
+
+ if (stereo == 1)
+ si->private_bits = getbits_fast(fr, tab[2]);
+ else
+ si->private_bits = getbits_fast(fr, tab[3]);
+
+ if(!fr->lsf) for(ch=0; ch<stereo; ch++)
+ {
+ si->ch[ch].gr[0].scfsi = -1;
+ si->ch[ch].gr[1].scfsi = getbits_fast(fr, 4);
+ }
+
+ for (gr=0; gr<tab[0]; gr++)
+ for (ch=0; ch<stereo; ch++)
+ {
+ register struct gr_info_s *gr_info = &(si->ch[ch].gr[gr]);
+
+ gr_info->part2_3_length = getbits(fr, 12);
+ gr_info->big_values = getbits(fr, 9);
+ if(gr_info->big_values > 288)
+ {
+ error("big_values too large!");
+ gr_info->big_values = 288;
+ }
+ gr_info->pow2gain = fr->gainpow2+256 - getbits_fast(fr, 8) + powdiff;
+ if(ms_stereo) gr_info->pow2gain += 2;
+
+ gr_info->scalefac_compress = getbits(fr, tab[4]);
+
+ if(get1bit(fr))
+ { /* window switch flag */
+ int i;
+ gr_info->block_type = getbits_fast(fr, 2);
+ gr_info->mixed_block_flag = get1bit(fr);
+ gr_info->table_select[0] = getbits_fast(fr, 5);
+ gr_info->table_select[1] = getbits_fast(fr, 5);
+ /*
+ table_select[2] not needed, because there is no region2,
+ but to satisfy some verification tools we set it either.
+ */
+ gr_info->table_select[2] = 0;
+ for(i=0;i<3;i++)
+ gr_info->full_gain[i] = gr_info->pow2gain + (getbits_fast(fr, 3)<<3);
+
+ if(gr_info->block_type == 0)
+ {
+ error("Blocktype == 0 and window-switching == 1 not allowed.");
+ return 1;
+ }
+
+ /* region_count/start parameters are implicit in this case. */
+ if( (!fr->lsf || (gr_info->block_type == 2)) && !fr->mpeg25)
+ {
+ gr_info->region1start = 36>>1;
+ gr_info->region2start = 576>>1;
+ }
+ else
+ {
+ if(fr->mpeg25)
+ {
+ int r0c,r1c;
+ if((gr_info->block_type == 2) && (!gr_info->mixed_block_flag) ) r0c = 5;
+ else r0c = 7;
+
+ r1c = 20 - r0c;
+ gr_info->region1start = bandInfo[sfreq].longIdx[r0c+1] >> 1 ;
+ gr_info->region2start = bandInfo[sfreq].longIdx[r0c+1+r1c+1] >> 1;
+ }
+ else
+ {
+ gr_info->region1start = 54>>1;
+ gr_info->region2start = 576>>1;
+ }
+ }
+ }
+ else
+ {
+ int i,r0c,r1c;
+ for (i=0; i<3; i++)
+ gr_info->table_select[i] = getbits_fast(fr, 5);
+
+ r0c = getbits_fast(fr, 4);
+ r1c = getbits_fast(fr, 3);
+ gr_info->region1start = bandInfo[sfreq].longIdx[r0c+1] >> 1 ;
+ gr_info->region2start = bandInfo[sfreq].longIdx[r0c+1+r1c+1] >> 1;
+
+ if(r0c + r1c + 2 > 22) gr_info->region2start = 576>>1;
+ else gr_info->region2start = bandInfo[sfreq].longIdx[r0c+1+r1c+1] >> 1;
+
+ gr_info->block_type = 0;
+ gr_info->mixed_block_flag = 0;
+ }
+ if(!fr->lsf) gr_info->preflag = get1bit(fr);
+
+ gr_info->scalefac_scale = get1bit(fr);
+ gr_info->count1table_select = get1bit(fr);
+ }
+ return 0;
+}
+
+
+/* read scalefactors */
+static int III_get_scale_factors_1(mpg123_handle *fr, int *scf,struct gr_info_s *gr_info,int ch,int gr)
+{
+ const unsigned char slen[2][16] =
+ {
+ {0, 0, 0, 0, 3, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4},
+ {0, 1, 2, 3, 0, 1, 2, 3, 1, 2, 3, 1, 2, 3, 2, 3}
+ };
+ int numbits;
+ int num0 = slen[0][gr_info->scalefac_compress];
+ int num1 = slen[1][gr_info->scalefac_compress];
+
+ if(gr_info->block_type == 2)
+ {
+ int i=18;
+ numbits = (num0 + num1) * 18;
+
+ if(gr_info->mixed_block_flag)
+ {
+ for (i=8;i;i--)
+ *scf++ = getbits_fast(fr, num0);
+
+ i = 9;
+ numbits -= num0; /* num0 * 17 + num1 * 18 */
+ }
+
+ for(;i;i--) *scf++ = getbits_fast(fr, num0);
+
+ for(i = 18; i; i--) *scf++ = getbits_fast(fr, num1);
+
+ *scf++ = 0; *scf++ = 0; *scf++ = 0; /* short[13][0..2] = 0 */
+ }
+ else
+ {
+ int i;
+ int scfsi = gr_info->scfsi;
+
+ if(scfsi < 0)
+ { /* scfsi < 0 => granule == 0 */
+ for(i=11;i;i--) *scf++ = getbits_fast(fr, num0);
+
+ for(i=10;i;i--) *scf++ = getbits_fast(fr, num1);
+
+ numbits = (num0 + num1) * 10 + num0;
+ *scf++ = 0;
+ }
+ else
+ {
+ numbits = 0;
+ if(!(scfsi & 0x8))
+ {
+ for (i=0;i<6;i++) *scf++ = getbits_fast(fr, num0);
+
+ numbits += num0 * 6;
+ }
+ else scf += 6;
+
+ if(!(scfsi & 0x4))
+ {
+ for (i=0;i<5;i++) *scf++ = getbits_fast(fr, num0);
+
+ numbits += num0 * 5;
+ }
+ else scf += 5;
+
+ if(!(scfsi & 0x2))
+ {
+ for(i=0;i<5;i++) *scf++ = getbits_fast(fr, num1);
+
+ numbits += num1 * 5;
+ }
+ else scf += 5;
+
+ if(!(scfsi & 0x1))
+ {
+ for (i=0;i<5;i++) *scf++ = getbits_fast(fr, num1);
+
+ numbits += num1 * 5;
+ }
+ else scf += 5;
+
+ *scf++ = 0; /* no l[21] in original sources */
+ }
+ }
+ return numbits;
+}
+
+
+static int III_get_scale_factors_2(mpg123_handle *fr, int *scf,struct gr_info_s *gr_info,int i_stereo)
+{
+ const unsigned char *pnt;
+ int i,j,n=0,numbits=0;
+ unsigned int slen;
+
+ const unsigned char stab[3][6][4] =
+ {
+ {
+ { 6, 5, 5,5 } , { 6, 5, 7,3 } , { 11,10,0,0},
+ { 7, 7, 7,0 } , { 6, 6, 6,3 } , { 8, 8,5,0}
+ },
+ {
+ { 9, 9, 9,9 } , { 9, 9,12,6 } , { 18,18,0,0},
+ {12,12,12,0 } , {12, 9, 9,6 } , { 15,12,9,0}
+ },
+ {
+ { 6, 9, 9,9 } , { 6, 9,12,6 } , { 15,18,0,0},
+ { 6,15,12,0 } , { 6,12, 9,6 } , { 6,18,9,0}
+ }
+ };
+
+ if(i_stereo) /* i_stereo AND second channel -> do_layer3() checks this */
+ slen = i_slen2[gr_info->scalefac_compress>>1];
+ else
+ slen = n_slen2[gr_info->scalefac_compress];
+
+ gr_info->preflag = (slen>>15) & 0x1;
+
+ n = 0;
+ if( gr_info->block_type == 2 )
+ {
+ n++;
+ if(gr_info->mixed_block_flag) n++;
+ }
+
+ pnt = stab[n][(slen>>12)&0x7];
+
+ for(i=0;i<4;i++)
+ {
+ int num = slen & 0x7;
+ slen >>= 3;
+ if(num)
+ {
+ for(j=0;j<(int)(pnt[i]);j++) *scf++ = getbits_fast(fr, num);
+
+ numbits += pnt[i] * num;
+ }
+ else
+ for(j=0;j<(int)(pnt[i]);j++) *scf++ = 0;
+ }
+
+ n = (n << 1) + 1;
+ for(i=0;i<n;i++) *scf++ = 0;
+
+ return numbits;
+}
+
+static const int pretab1[22] = {0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,2,2,3,3,3,2,0};
+static const int pretab2[22] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
+
+/*
+ Dequantize samples
+ ...includes Huffman decoding
+*/
+
+/* 24 is enough because tab13 has max. a 19 bit huffvector */
+#define BITSHIFT ((sizeof(long)-1)*8)
+#define REFRESH_MASK \
+ while(num < BITSHIFT) { \
+ mask |= ((unsigned long)getbyte(fr))<<(BITSHIFT-num); \
+ num += 8; \
+ part2remain -= 8; }
+
+static int III_dequantize_sample(mpg123_handle *fr, real xr[SBLIMIT][SSLIMIT],int *scf, struct gr_info_s *gr_info,int sfreq,int part2bits)
+{
+ int shift = 1 + gr_info->scalefac_scale;
+ real *xrpnt = (real *) xr;
+ int l[3],l3;
+ int part2remain = gr_info->part2_3_length - part2bits;
+ int *me;
+#ifdef REAL_IS_FIXED
+ int gainpow2_scale_idx = 378;
+#endif
+
+ /* mhipp tree has this split up a bit... */
+ int num=getbitoffset(fr);
+ long mask;
+ /* We must split this, because for num==0 the shift is undefined if you do it in one step. */
+ mask = ((unsigned long) getbits(fr, num))<<BITSHIFT;
+ mask <<= 8-num;
+ part2remain -= num;
+
+ {
+ int bv = gr_info->big_values;
+ int region1 = gr_info->region1start;
+ int region2 = gr_info->region2start;
+ if(region1 > region2)
+ {
+ /*
+ That's not optimal: it fixes a segfault with fuzzed data, but also apparently triggers where it shouldn't, see bug 1641196.
+ The benefit of not crashing / having this security risk is bigger than these few frames of a lame-3.70 file that aren't audible anyway.
+ But still, I want to know if indeed this check or the old lame is at fault.
+ */
+ error("You got some really nasty file there... region1>region2!");
+ return 1;
+ }
+ l3 = ((576>>1)-bv)>>1;
+
+ /* we may lose the 'odd' bit here !! check this later again */
+ if(bv <= region1)
+ {
+ l[0] = bv;
+ l[1] = 0;
+ l[2] = 0;
+ }
+ else
+ {
+ l[0] = region1;
+ if(bv <= region2)
+ {
+ l[1] = bv - l[0];
+ l[2] = 0;
+ }
+ else
+ {
+ l[1] = region2 - l[0];
+ l[2] = bv - region2;
+ }
+ }
+ }
+
+ if(gr_info->block_type == 2)
+ {
+ /* decoding with short or mixed mode BandIndex table */
+ int i,max[4];
+ int step=0,lwin=3,cb=0;
+ register real v = 0.0;
+ register int *m,mc;
+
+ if(gr_info->mixed_block_flag)
+ {
+ max[3] = -1;
+ max[0] = max[1] = max[2] = 2;
+ m = map[sfreq][0];
+ me = mapend[sfreq][0];
+ }
+ else
+ {
+ max[0] = max[1] = max[2] = max[3] = -1;
+ /* max[3] not really needed in this case */
+ m = map[sfreq][1];
+ me = mapend[sfreq][1];
+ }
+
+ mc = 0;
+ for(i=0;i<2;i++)
+ {
+ int lp = l[i];
+ struct newhuff *h = ht+gr_info->table_select[i];
+ for(;lp;lp--,mc--)
+ {
+ register int x,y;
+ if( (!mc) )
+ {
+ mc = *m++;
+ xrpnt = ((real *) xr) + (*m++);
+ lwin = *m++;
+ cb = *m++;
+ if(lwin == 3)
+ {
+#ifdef REAL_IS_FIXED
+ gainpow2_scale_idx = (int)(gr_info->pow2gain + (*scf << shift) - fr->gainpow2);
+#endif
+ v = gr_info->pow2gain[(*scf++) << shift];
+ step = 1;
+ }
+ else
+ {
+#ifdef REAL_IS_FIXED
+ gainpow2_scale_idx = (int)(gr_info->full_gain[lwin] + (*scf << shift) - fr->gainpow2);
+#endif
+ v = gr_info->full_gain[lwin][(*scf++) << shift];
+ step = 3;
+ }
+ }
+ {
+ register short *val = h->table;
+ REFRESH_MASK;
+ while((y=*val++)<0)
+ {
+ if (mask < 0) val -= y;
+
+ num--;
+ mask <<= 1;
+ }
+ x = y >> 4;
+ y &= 0xf;
+ }
+ if(x == 15 && h->linbits)
+ {
+ max[lwin] = cb;
+ REFRESH_MASK;
+ x += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits);
+ num -= h->linbits+1;
+ mask <<= h->linbits;
+ if(mask < 0) *xrpnt = REAL_MUL_SCALE_LAYER3(-ispow[x], v, gainpow2_scale_idx);
+ else *xrpnt = REAL_MUL_SCALE_LAYER3( ispow[x], v, gainpow2_scale_idx);
+
+ mask <<= 1;
+ }
+ else if(x)
+ {
+ max[lwin] = cb;
+ if(mask < 0) *xrpnt = REAL_MUL_SCALE_LAYER3(-ispow[x], v, gainpow2_scale_idx);
+ else *xrpnt = REAL_MUL_SCALE_LAYER3( ispow[x], v, gainpow2_scale_idx);
+
+ num--;
+ mask <<= 1;
+ }
+ else *xrpnt = DOUBLE_TO_REAL(0.0);
+
+ xrpnt += step;
+ if(y == 15 && h->linbits)
+ {
+ max[lwin] = cb;
+ REFRESH_MASK;
+ y += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits);
+ num -= h->linbits+1;
+ mask <<= h->linbits;
+ if(mask < 0) *xrpnt = REAL_MUL_SCALE_LAYER3(-ispow[y], v, gainpow2_scale_idx);
+ else *xrpnt = REAL_MUL_SCALE_LAYER3( ispow[y], v, gainpow2_scale_idx);
+
+ mask <<= 1;
+ }
+ else if(y)
+ {
+ max[lwin] = cb;
+ if(mask < 0) *xrpnt = REAL_MUL_SCALE_LAYER3(-ispow[y], v, gainpow2_scale_idx);
+ else *xrpnt = REAL_MUL_SCALE_LAYER3( ispow[y], v, gainpow2_scale_idx);
+
+ num--;
+ mask <<= 1;
+ }
+ else *xrpnt = DOUBLE_TO_REAL(0.0);
+
+ xrpnt += step;
+ }
+ }
+
+ for(;l3 && (part2remain+num > 0);l3--)
+ {
+ struct newhuff* h;
+ register short* val;
+ register short a;
+ /*
+ This is only a humble hack to prevent a special segfault.
+ More insight into the real workings is still needed.
+ Especially why there are (valid?) files that make xrpnt exceed the array with 4 bytes without segfaulting, more seems to be really bad, though.
+ */
+ #ifdef DEBUG
+ if(!(xrpnt < &xr[SBLIMIT][0]))
+ {
+ if(VERBOSE) debug2("attempted soft xrpnt overflow (%p !< %p) ?", (void*) xrpnt, (void*) &xr[SBLIMIT][0]);
+ }
+ #endif
+ if(!(xrpnt < &xr[SBLIMIT][0]+5))
+ {
+ if(NOQUIET) error2("attempted xrpnt overflow (%p !< %p)", (void*) xrpnt, (void*) &xr[SBLIMIT][0]);
+ return 2;
+ }
+ h = htc+gr_info->count1table_select;
+ val = h->table;
+
+ REFRESH_MASK;
+ while((a=*val++)<0)
+ {
+ if(mask < 0) val -= a;
+
+ num--;
+ mask <<= 1;
+ }
+ if(part2remain+num <= 0)
+ {
+ num -= part2remain+num;
+ break;
+ }
+
+ for(i=0;i<4;i++)
+ {
+ if(!(i & 1))
+ {
+ if(!mc)
+ {
+ mc = *m++;
+ xrpnt = ((real *) xr) + (*m++);
+ lwin = *m++;
+ cb = *m++;
+ if(lwin == 3)
+ {
+#ifdef REAL_IS_FIXED
+ gainpow2_scale_idx = (int)(gr_info->pow2gain + (*scf << shift) - fr->gainpow2);
+#endif
+ v = gr_info->pow2gain[(*scf++) << shift];
+ step = 1;
+ }
+ else
+ {
+#ifdef REAL_IS_FIXED
+ gainpow2_scale_idx = (int)(gr_info->full_gain[lwin] + (*scf << shift) - fr->gainpow2);
+#endif
+ v = gr_info->full_gain[lwin][(*scf++) << shift];
+ step = 3;
+ }
+ }
+ mc--;
+ }
+ if( (a & (0x8>>i)) )
+ {
+ max[lwin] = cb;
+ if(part2remain+num <= 0)
+ break;
+
+ if(mask < 0) *xrpnt = -REAL_SCALE_LAYER3(v, gainpow2_scale_idx);
+ else *xrpnt = REAL_SCALE_LAYER3(v, gainpow2_scale_idx);
+
+ num--;
+ mask <<= 1;
+ }
+ else *xrpnt = DOUBLE_TO_REAL(0.0);
+
+ xrpnt += step;
+ }
+ }
+
+ if(lwin < 3)
+ { /* short band? */
+ while(1)
+ {
+ for(;mc > 0;mc--)
+ {
+ *xrpnt = DOUBLE_TO_REAL(0.0); xrpnt += 3; /* short band -> step=3 */
+ *xrpnt = DOUBLE_TO_REAL(0.0); xrpnt += 3;
+ }
+ if(m >= me)
+ break;
+
+ mc = *m++;
+ xrpnt = ((real *) xr) + *m++;
+ if(*m++ == 0)
+ break; /* optimize: field will be set to zero at the end of the function */
+
+ m++; /* cb */
+ }
+ }
+
+ gr_info->maxband[0] = max[0]+1;
+ gr_info->maxband[1] = max[1]+1;
+ gr_info->maxband[2] = max[2]+1;
+ gr_info->maxbandl = max[3]+1;
+
+ {
+ int rmax = max[0] > max[1] ? max[0] : max[1];
+ rmax = (rmax > max[2] ? rmax : max[2]) + 1;
+ gr_info->maxb = rmax ? fr->shortLimit[sfreq][rmax] : fr->longLimit[sfreq][max[3]+1];
+ }
+
+ }
+ else
+ {
+ /* decoding with 'long' BandIndex table (block_type != 2) */
+ const int *pretab = gr_info->preflag ? pretab1 : pretab2;
+ int i,max = -1;
+ int cb = 0;
+ int *m = map[sfreq][2];
+ register real v = 0.0;
+ int mc = 0;
+
+ /* long hash table values */
+ for(i=0;i<3;i++)
+ {
+ int lp = l[i];
+ struct newhuff *h = ht+gr_info->table_select[i];
+
+ for(;lp;lp--,mc--)
+ {
+ int x,y;
+ if(!mc)
+ {
+ mc = *m++;
+ cb = *m++;
+#ifdef CUT_SFB21
+ if(cb == 21)
+ v = 0.0;
+ else
+#endif
+ {
+#ifdef REAL_IS_FIXED
+ gainpow2_scale_idx = (int)(gr_info->pow2gain + (*scf << shift) - fr->gainpow2);
+#endif
+ v = gr_info->pow2gain[(*(scf++) + (*pretab++)) << shift];
+ }
+ }
+ {
+ register short *val = h->table;
+ REFRESH_MASK;
+ while((y=*val++)<0)
+ {
+ if (mask < 0) val -= y;
+
+ num--;
+ mask <<= 1;
+ }
+ x = y >> 4;
+ y &= 0xf;
+ }
+
+ if(x == 15 && h->linbits)
+ {
+ max = cb;
+ REFRESH_MASK;
+ x += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits);
+ num -= h->linbits+1;
+ mask <<= h->linbits;
+ if(mask < 0) *xrpnt++ = REAL_MUL_SCALE_LAYER3(-ispow[x], v, gainpow2_scale_idx);
+ else *xrpnt++ = REAL_MUL_SCALE_LAYER3( ispow[x], v, gainpow2_scale_idx);
+
+ mask <<= 1;
+ }
+ else if(x)
+ {
+ max = cb;
+ if(mask < 0) *xrpnt++ = REAL_MUL_SCALE_LAYER3(-ispow[x], v, gainpow2_scale_idx);
+ else *xrpnt++ = REAL_MUL_SCALE_LAYER3( ispow[x], v, gainpow2_scale_idx);
+ num--;
+
+ mask <<= 1;
+ }
+ else *xrpnt++ = DOUBLE_TO_REAL(0.0);
+
+ if(y == 15 && h->linbits)
+ {
+ max = cb;
+ REFRESH_MASK;
+ y += ((unsigned long) mask) >> (BITSHIFT+8-h->linbits);
+ num -= h->linbits+1;
+ mask <<= h->linbits;
+ if(mask < 0) *xrpnt++ = REAL_MUL_SCALE_LAYER3(-ispow[y], v, gainpow2_scale_idx);
+ else *xrpnt++ = REAL_MUL_SCALE_LAYER3( ispow[y], v, gainpow2_scale_idx);
+
+ mask <<= 1;
+ }
+ else if(y)
+ {
+ max = cb;
+ if(mask < 0) *xrpnt++ = REAL_MUL_SCALE_LAYER3(-ispow[y], v, gainpow2_scale_idx);
+ else *xrpnt++ = REAL_MUL_SCALE_LAYER3( ispow[y], v, gainpow2_scale_idx);
+
+ num--;
+ mask <<= 1;
+ }
+ else *xrpnt++ = DOUBLE_TO_REAL(0.0);
+ }
+ }
+
+ /* short (count1table) values */
+ for(;l3 && (part2remain+num > 0);l3--)
+ {
+ struct newhuff *h = htc+gr_info->count1table_select;
+ register short *val = h->table,a;
+
+ REFRESH_MASK;
+ while((a=*val++)<0)
+ {
+ if (mask < 0) val -= a;
+
+ num--;
+ mask <<= 1;
+ }
+ if(part2remain+num <= 0)
+ {
+ num -= part2remain+num;
+ break;
+ }
+
+ for(i=0;i<4;i++)
+ {
+ if(!(i & 1))
+ {
+ if(!mc)
+ {
+ mc = *m++;
+ cb = *m++;
+#ifdef CUT_SFB21
+ if(cb == 21)
+ v = 0.0;
+ else
+#endif
+ {
+#ifdef REAL_IS_FIXED
+ gainpow2_scale_idx = (int)(gr_info->pow2gain + (*scf << shift) - fr->gainpow2);
+#endif
+ v = gr_info->pow2gain[((*scf++) + (*pretab++)) << shift];
+ }
+ }
+ mc--;
+ }
+ if( (a & (0x8>>i)) )
+ {
+ max = cb;
+ if(part2remain+num <= 0)
+ break;
+
+ if(mask < 0) *xrpnt++ = -REAL_SCALE_LAYER3(v, gainpow2_scale_idx);
+ else *xrpnt++ = REAL_SCALE_LAYER3(v, gainpow2_scale_idx);
+
+ num--;
+ mask <<= 1;
+ }
+ else *xrpnt++ = DOUBLE_TO_REAL(0.0);
+ }
+ }
+
+ gr_info->maxbandl = max+1;
+ gr_info->maxb = fr->longLimit[sfreq][gr_info->maxbandl];
+ }
+
+ part2remain += num;
+ backbits(fr, num);
+ num = 0;
+
+ while(xrpnt < &xr[SBLIMIT][0])
+ *xrpnt++ = DOUBLE_TO_REAL(0.0);
+
+ while( part2remain > 16 )
+ {
+ skipbits(fr, 16); /* Dismiss stuffing Bits */
+ part2remain -= 16;
+ }
+ if(part2remain > 0) skipbits(fr, part2remain);
+ else if(part2remain < 0)
+ {
+ debug1("Can't rewind stream by %d bits!",-part2remain);
+ return 1; /* -> error */
+ }
+ return 0;
+}
+
+
+/* calculate real channel values for Joint-I-Stereo-mode */
+static void III_i_stereo(real xr_buf[2][SBLIMIT][SSLIMIT],int *scalefac, struct gr_info_s *gr_info,int sfreq,int ms_stereo,int lsf)
+{
+ real (*xr)[SBLIMIT*SSLIMIT] = (real (*)[SBLIMIT*SSLIMIT] ) xr_buf;
+ const struct bandInfoStruct *bi = &bandInfo[sfreq];
+
+ const real *tab1,*tab2;
+
+#if 1
+ int tab;
+/* TODO: optimize as static */
+ const real *tabs[3][2][2] =
+ {
+ { { tan1_1,tan2_1 } , { tan1_2,tan2_2 } },
+ { { pow1_1[0],pow2_1[0] } , { pow1_2[0],pow2_2[0] } },
+ { { pow1_1[1],pow2_1[1] } , { pow1_2[1],pow2_2[1] } }
+ };
+
+ tab = lsf + (gr_info->scalefac_compress & lsf);
+ tab1 = tabs[tab][ms_stereo][0];
+ tab2 = tabs[tab][ms_stereo][1];
+#else
+ if(lsf)
+ {
+ int p = gr_info->scalefac_compress & 0x1;
+ if(ms_stereo)
+ {
+ tab1 = pow1_2[p];
+ tab2 = pow2_2[p];
+ }
+ else
+ {
+ tab1 = pow1_1[p];
+ tab2 = pow2_1[p];
+ }
+ }
+ else
+ {
+ if(ms_stereo)
+ {
+ tab1 = tan1_2;
+ tab2 = tan2_2;
+ }
+ else
+ {
+ tab1 = tan1_1;
+ tab2 = tan2_1;
+ }
+ }
+#endif
+
+ if(gr_info->block_type == 2)
+ {
+ int lwin,do_l = 0;
+ if( gr_info->mixed_block_flag ) do_l = 1;
+
+ for(lwin=0;lwin<3;lwin++)
+ { /* process each window */
+ /* get first band with zero values */
+ int is_p,sb,idx,sfb = gr_info->maxband[lwin]; /* sfb is minimal 3 for mixed mode */
+ if(sfb > 3) do_l = 0;
+
+ for(;sfb<12;sfb++)
+ {
+ is_p = scalefac[sfb*3+lwin-gr_info->mixed_block_flag]; /* scale: 0-15 */
+ if(is_p != 7)
+ {
+ real t1,t2;
+ sb = bi->shortDiff[sfb];
+ idx = bi->shortIdx[sfb] + lwin;
+ t1 = tab1[is_p]; t2 = tab2[is_p];
+ for (; sb > 0; sb--,idx+=3)
+ {
+ real v = xr[0][idx];
+ xr[0][idx] = REAL_MUL_15(v, t1);
+ xr[1][idx] = REAL_MUL_15(v, t2);
+ }
+ }
+ }
+
+#if 1
+/* in the original: copy 10 to 11 , here: copy 11 to 12
+maybe still wrong??? (copy 12 to 13?) */
+ is_p = scalefac[11*3+lwin-gr_info->mixed_block_flag]; /* scale: 0-15 */
+ sb = bi->shortDiff[12];
+ idx = bi->shortIdx[12] + lwin;
+#else
+ is_p = scalefac[10*3+lwin-gr_info->mixed_block_flag]; /* scale: 0-15 */
+ sb = bi->shortDiff[11];
+ idx = bi->shortIdx[11] + lwin;
+#endif
+ if(is_p != 7)
+ {
+ real t1,t2;
+ t1 = tab1[is_p]; t2 = tab2[is_p];
+ for( ; sb > 0; sb--,idx+=3 )
+ {
+ real v = xr[0][idx];
+ xr[0][idx] = REAL_MUL_15(v, t1);
+ xr[1][idx] = REAL_MUL_15(v, t2);
+ }
+ }
+ } /* end for(lwin; .. ; . ) */
+
+ /* also check l-part, if ALL bands in the three windows are 'empty' and mode = mixed_mode */
+ if(do_l)
+ {
+ int sfb = gr_info->maxbandl;
+ int idx;
+ if(sfb > 21) return; /* similarity fix related to CVE-2006-1655 */
+
+ idx = bi->longIdx[sfb];
+ for( ; sfb<8; sfb++ )
+ {
+ int sb = bi->longDiff[sfb];
+ int is_p = scalefac[sfb]; /* scale: 0-15 */
+ if(is_p != 7)
+ {
+ real t1,t2;
+ t1 = tab1[is_p]; t2 = tab2[is_p];
+ for( ; sb > 0; sb--,idx++)
+ {
+ real v = xr[0][idx];
+ xr[0][idx] = REAL_MUL_15(v, t1);
+ xr[1][idx] = REAL_MUL_15(v, t2);
+ }
+ }
+ else idx += sb;
+ }
+ }
+ }
+ else
+ { /* ((gr_info->block_type != 2)) */
+ int sfb = gr_info->maxbandl;
+ int is_p,idx;
+ if(sfb > 21) return; /* tightened fix for CVE-2006-1655 */
+
+ idx = bi->longIdx[sfb];
+ for ( ; sfb<21; sfb++)
+ {
+ int sb = bi->longDiff[sfb];
+ is_p = scalefac[sfb]; /* scale: 0-15 */
+ if(is_p != 7)
+ {
+ real t1,t2;
+ t1 = tab1[is_p]; t2 = tab2[is_p];
+ for( ; sb > 0; sb--,idx++)
+ {
+ real v = xr[0][idx];
+ xr[0][idx] = REAL_MUL_15(v, t1);
+ xr[1][idx] = REAL_MUL_15(v, t2);
+ }
+ }
+ else idx += sb;
+ }
+
+ is_p = scalefac[20];
+ if(is_p != 7)
+ { /* copy l-band 20 to l-band 21 */
+ int sb;
+ real t1 = tab1[is_p],t2 = tab2[is_p];
+
+ for( sb = bi->longDiff[21]; sb > 0; sb--,idx++ )
+ {
+ real v = xr[0][idx];
+ xr[0][idx] = REAL_MUL_15(v, t1);
+ xr[1][idx] = REAL_MUL_15(v, t2);
+ }
+ }
+ }
+}
+
+
+static void III_antialias(real xr[SBLIMIT][SSLIMIT],struct gr_info_s *gr_info)
+{
+ int sblim;
+
+ if(gr_info->block_type == 2)
+ {
+ if(!gr_info->mixed_block_flag) return;
+
+ sblim = 1;
+ }
+ else sblim = gr_info->maxb-1;
+
+ /* 31 alias-reduction operations between each pair of sub-bands */
+ /* with 8 butterflies between each pair */
+
+ {
+ int sb;
+ real *xr1=(real *) xr[1];
+
+ for(sb=sblim; sb; sb--,xr1+=10)
+ {
+ int ss;
+ real *cs=aa_cs,*ca=aa_ca;
+ real *xr2 = xr1;
+
+ for(ss=7;ss>=0;ss--)
+ { /* upper and lower butterfly inputs */
+ register real bu = *--xr2,bd = *xr1;
+ *xr2 = REAL_MUL(bu, *cs) - REAL_MUL(bd, *ca);
+ *xr1++ = REAL_MUL(bd, *cs++) + REAL_MUL(bu, *ca++);
+ }
+ }
+ }
+}
+
+/*
+ This is an optimized DCT from Jeff Tsay's maplay 1.2+ package.
+ Saved one multiplication by doing the 'twiddle factor' stuff
+ together with the window mul. (MH)
+
+ This uses Byeong Gi Lee's Fast Cosine Transform algorithm, but the
+ 9 point IDCT needs to be reduced further. Unfortunately, I don't
+ know how to do that, because 9 is not an even number. - Jeff.
+
+ Original Message:
+
+ 9 Point Inverse Discrete Cosine Transform
+
+ This piece of code is Copyright 1997 Mikko Tommila and is freely usable
+ by anybody. The algorithm itself is of course in the public domain.
+
+ Again derived heuristically from the 9-point WFTA.
+
+ The algorithm is optimized (?) for speed, not for small rounding errors or
+ good readability.
+
+ 36 additions, 11 multiplications
+
+ Again this is very likely sub-optimal.
+
+ The code is optimized to use a minimum number of temporary variables,
+ so it should compile quite well even on 8-register Intel x86 processors.
+ This makes the code quite obfuscated and very difficult to understand.
+
+ References:
+ [1] S. Winograd: "On Computing the Discrete Fourier Transform",
+ Mathematics of Computation, Volume 32, Number 141, January 1978,
+ Pages 175-199
+*/
+
+/* Calculation of the inverse MDCT
+ used to be static without 3dnow - does that really matter? */
+void dct36(real *inbuf,real *o1,real *o2,real *wintab,real *tsbuf)
+{
+#ifdef NEW_DCT9
+ real tmp[18];
+#endif
+
+ {
+ register real *in = inbuf;
+
+ in[17]+=in[16]; in[16]+=in[15]; in[15]+=in[14];
+ in[14]+=in[13]; in[13]+=in[12]; in[12]+=in[11];
+ in[11]+=in[10]; in[10]+=in[9]; in[9] +=in[8];
+ in[8] +=in[7]; in[7] +=in[6]; in[6] +=in[5];
+ in[5] +=in[4]; in[4] +=in[3]; in[3] +=in[2];
+ in[2] +=in[1]; in[1] +=in[0];
+
+ in[17]+=in[15]; in[15]+=in[13]; in[13]+=in[11]; in[11]+=in[9];
+ in[9] +=in[7]; in[7] +=in[5]; in[5] +=in[3]; in[3] +=in[1];
+
+
+#ifdef NEW_DCT9
+#if 1
+ {
+ real t3;
+ {
+ real t0, t1, t2;
+
+ t0 = REAL_MUL(COS6_2, (in[8] + in[16] - in[4]));
+ t1 = REAL_MUL(COS6_2, in[12]);
+
+ t3 = in[0];
+ t2 = t3 - t1 - t1;
+ tmp[1] = tmp[7] = t2 - t0;
+ tmp[4] = t2 + t0 + t0;
+ t3 += t1;
+
+ t2 = REAL_MUL(COS6_1, (in[10] + in[14] - in[2]));
+ tmp[1] -= t2;
+ tmp[7] += t2;
+ }
+ {
+ real t0, t1, t2;
+
+ t0 = REAL_MUL(cos9[0], (in[4] + in[8] ));
+ t1 = REAL_MUL(cos9[1], (in[8] - in[16]));
+ t2 = REAL_MUL(cos9[2], (in[4] + in[16]));
+
+ tmp[2] = tmp[6] = t3 - t0 - t2;
+ tmp[0] = tmp[8] = t3 + t0 + t1;
+ tmp[3] = tmp[5] = t3 - t1 + t2;
+ }
+ }
+ {
+ real t1, t2, t3;
+
+ t1 = REAL_MUL(cos18[0], (in[2] + in[10]));
+ t2 = REAL_MUL(cos18[1], (in[10] - in[14]));
+ t3 = REAL_MUL(COS6_1, in[6]);
+
+ {
+ real t0 = t1 + t2 + t3;
+ tmp[0] += t0;
+ tmp[8] -= t0;
+ }
+
+ t2 -= t3;
+ t1 -= t3;
+
+ t3 = REAL_MUL(cos18[2], (in[2] + in[14]));
+
+ t1 += t3;
+ tmp[3] += t1;
+ tmp[5] -= t1;
+
+ t2 -= t3;
+ tmp[2] += t2;
+ tmp[6] -= t2;
+ }
+
+#else
+ {
+ real t0, t1, t2, t3, t4, t5, t6, t7;
+
+ t1 = REAL_MUL(COS6_2, in[12]);
+ t2 = REAL_MUL(COS6_2, (in[8] + in[16] - in[4]));
+
+ t3 = in[0] + t1;
+ t4 = in[0] - t1 - t1;
+ t5 = t4 - t2;
+ tmp[4] = t4 + t2 + t2;
+
+ t0 = REAL_MUL(cos9[0], (in[4] + in[8]));
+ t1 = REAL_MUL(cos9[1], (in[8] - in[16]));
+
+ t2 = REAL_MUL(cos9[2], (in[4] + in[16]));
+
+ t6 = t3 - t0 - t2;
+ t0 += t3 + t1;
+ t3 += t2 - t1;
+
+ t2 = REAL_MUL(cos18[0], (in[2] + in[10]));
+ t4 = REAL_MUL(cos18[1], (in[10] - in[14]));
+ t7 = REAL_MUL(COS6_1, in[6]);
+
+ t1 = t2 + t4 + t7;
+ tmp[0] = t0 + t1;
+ tmp[8] = t0 - t1;
+ t1 = REAL_MUL(cos18[2], (in[2] + in[14]));
+ t2 += t1 - t7;
+
+ tmp[3] = t3 + t2;
+ t0 = REAL_MUL(COS6_1, (in[10] + in[14] - in[2]));
+ tmp[5] = t3 - t2;
+
+ t4 -= t1 + t7;
+
+ tmp[1] = t5 - t0;
+ tmp[7] = t5 + t0;
+ tmp[2] = t6 + t4;
+ tmp[6] = t6 - t4;
+ }
+#endif
+
+ {
+ real t0, t1, t2, t3, t4, t5, t6, t7;
+
+ t1 = REAL_MUL(COS6_2, in[13]);
+ t2 = REAL_MUL(COS6_2, (in[9] + in[17] - in[5]));
+
+ t3 = in[1] + t1;
+ t4 = in[1] - t1 - t1;
+ t5 = t4 - t2;
+
+ t0 = REAL_MUL(cos9[0], (in[5] + in[9]));
+ t1 = REAL_MUL(cos9[1], (in[9] - in[17]));
+
+ tmp[13] = REAL_MUL((t4 + t2 + t2), tfcos36[17-13]);
+ t2 = REAL_MUL(cos9[2], (in[5] + in[17]));
+
+ t6 = t3 - t0 - t2;
+ t0 += t3 + t1;
+ t3 += t2 - t1;
+
+ t2 = REAL_MUL(cos18[0], (in[3] + in[11]));
+ t4 = REAL_MUL(cos18[1], (in[11] - in[15]));
+ t7 = REAL_MUL(COS6_1, in[7]);
+
+ t1 = t2 + t4 + t7;
+ tmp[17] = REAL_MUL((t0 + t1), tfcos36[17-17]);
+ tmp[9] = REAL_MUL((t0 - t1), tfcos36[17-9]);
+ t1 = REAL_MUL(cos18[2], (in[3] + in[15]));
+ t2 += t1 - t7;
+
+ tmp[14] = REAL_MUL((t3 + t2), tfcos36[17-14]);
+ t0 = REAL_MUL(COS6_1, (in[11] + in[15] - in[3]));
+ tmp[12] = REAL_MUL((t3 - t2), tfcos36[17-12]);
+
+ t4 -= t1 + t7;
+
+ tmp[16] = REAL_MUL((t5 - t0), tfcos36[17-16]);
+ tmp[10] = REAL_MUL((t5 + t0), tfcos36[17-10]);
+ tmp[15] = REAL_MUL((t6 + t4), tfcos36[17-15]);
+ tmp[11] = REAL_MUL((t6 - t4), tfcos36[17-11]);
+ }
+
+#define MACRO(v) { \
+ real tmpval; \
+ tmpval = tmp[(v)] + tmp[17-(v)]; \
+ out2[9+(v)] = REAL_MUL(tmpval, w[27+(v)]); \
+ out2[8-(v)] = REAL_MUL(tmpval, w[26-(v)]); \
+ tmpval = tmp[(v)] - tmp[17-(v)]; \
+ ts[SBLIMIT*(8-(v))] = out1[8-(v)] + REAL_MUL(tmpval, w[8-(v)]); \
+ ts[SBLIMIT*(9+(v))] = out1[9+(v)] + REAL_MUL(tmpval, w[9+(v)]); }
+
+ {
+ register real *out2 = o2;
+ register real *w = wintab;
+ register real *out1 = o1;
+ register real *ts = tsbuf;
+
+ MACRO(0);
+ MACRO(1);
+ MACRO(2);
+ MACRO(3);
+ MACRO(4);
+ MACRO(5);
+ MACRO(6);
+ MACRO(7);
+ MACRO(8);
+ }
+
+#else
+
+ {
+
+#define MACRO0(v) { \
+ real tmp; \
+ out2[9+(v)] = REAL_MUL((tmp = sum0 + sum1), w[27+(v)]); \
+ out2[8-(v)] = REAL_MUL(tmp, w[26-(v)]); } \
+ sum0 -= sum1; \
+ ts[SBLIMIT*(8-(v))] = out1[8-(v)] + REAL_MUL(sum0, w[8-(v)]); \
+ ts[SBLIMIT*(9+(v))] = out1[9+(v)] + REAL_MUL(sum0, w[9+(v)]);
+#define MACRO1(v) { \
+ real sum0,sum1; \
+ sum0 = tmp1a + tmp2a; \
+ sum1 = REAL_MUL((tmp1b + tmp2b), tfcos36[(v)]); \
+ MACRO0(v); }
+#define MACRO2(v) { \
+ real sum0,sum1; \
+ sum0 = tmp2a - tmp1a; \
+ sum1 = REAL_MUL((tmp2b - tmp1b), tfcos36[(v)]); \
+ MACRO0(v); }
+
+ register const real *c = COS9;
+ register real *out2 = o2;
+ register real *w = wintab;
+ register real *out1 = o1;
+ register real *ts = tsbuf;
+
+ real ta33,ta66,tb33,tb66;
+
+ ta33 = REAL_MUL(in[2*3+0], c[3]);
+ ta66 = REAL_MUL(in[2*6+0], c[6]);
+ tb33 = REAL_MUL(in[2*3+1], c[3]);
+ tb66 = REAL_MUL(in[2*6+1], c[6]);
+
+ {
+ real tmp1a,tmp2a,tmp1b,tmp2b;
+ tmp1a = REAL_MUL(in[2*1+0], c[1]) + ta33 + REAL_MUL(in[2*5+0], c[5]) + REAL_MUL(in[2*7+0], c[7]);
+ tmp1b = REAL_MUL(in[2*1+1], c[1]) + tb33 + REAL_MUL(in[2*5+1], c[5]) + REAL_MUL(in[2*7+1], c[7]);
+ tmp2a = REAL_MUL(in[2*2+0], c[2]) + REAL_MUL(in[2*4+0], c[4]) + ta66 + REAL_MUL(in[2*8+0], c[8]);
+ tmp2b = REAL_MUL(in[2*2+1], c[2]) + REAL_MUL(in[2*4+1], c[4]) + tb66 + REAL_MUL(in[2*8+1], c[8]);
+
+ MACRO1(0);
+ MACRO2(8);
+ }
+
+ {
+ real tmp1a,tmp2a,tmp1b,tmp2b;
+ tmp1a = REAL_MUL(( in[2*1+0] - in[2*5+0] - in[2*7+0] ), c[3]);
+ tmp1b = REAL_MUL(( in[2*1+1] - in[2*5+1] - in[2*7+1] ), c[3]);
+ tmp2a = REAL_MUL(( in[2*2+0] - in[2*4+0] - in[2*8+0] ), c[6]) - in[2*6+0] + in[2*0+0];
+ tmp2b = REAL_MUL(( in[2*2+1] - in[2*4+1] - in[2*8+1] ), c[6]) - in[2*6+1] + in[2*0+1];
+
+ MACRO1(1);
+ MACRO2(7);
+ }
+
+ {
+ real tmp1a,tmp2a,tmp1b,tmp2b;
+ tmp1a = REAL_MUL(in[2*1+0], c[5]) - ta33 - REAL_MUL(in[2*5+0], c[7]) + REAL_MUL(in[2*7+0], c[1]);
+ tmp1b = REAL_MUL(in[2*1+1], c[5]) - tb33 - REAL_MUL(in[2*5+1], c[7]) + REAL_MUL(in[2*7+1], c[1]);
+ tmp2a = - REAL_MUL(in[2*2+0], c[8]) - REAL_MUL(in[2*4+0], c[2]) + ta66 + REAL_MUL(in[2*8+0], c[4]);
+ tmp2b = - REAL_MUL(in[2*2+1], c[8]) - REAL_MUL(in[2*4+1], c[2]) + tb66 + REAL_MUL(in[2*8+1], c[4]);
+
+ MACRO1(2);
+ MACRO2(6);
+ }
+
+ {
+ real tmp1a,tmp2a,tmp1b,tmp2b;
+ tmp1a = REAL_MUL(in[2*1+0], c[7]) - ta33 + REAL_MUL(in[2*5+0], c[1]) - REAL_MUL(in[2*7+0], c[5]);
+ tmp1b = REAL_MUL(in[2*1+1], c[7]) - tb33 + REAL_MUL(in[2*5+1], c[1]) - REAL_MUL(in[2*7+1], c[5]);
+ tmp2a = - REAL_MUL(in[2*2+0], c[4]) + REAL_MUL(in[2*4+0], c[8]) + ta66 - REAL_MUL(in[2*8+0], c[2]);
+ tmp2b = - REAL_MUL(in[2*2+1], c[4]) + REAL_MUL(in[2*4+1], c[8]) + tb66 - REAL_MUL(in[2*8+1], c[2]);
+
+ MACRO1(3);
+ MACRO2(5);
+ }
+
+ {
+ real sum0,sum1;
+ sum0 = in[2*0+0] - in[2*2+0] + in[2*4+0] - in[2*6+0] + in[2*8+0];
+ sum1 = REAL_MUL((in[2*0+1] - in[2*2+1] + in[2*4+1] - in[2*6+1] + in[2*8+1] ), tfcos36[4]);
+ MACRO0(4);
+ }
+ }
+#endif
+
+ }
+}
+
+
+/* new DCT12 */
+static void dct12(real *in,real *rawout1,real *rawout2,register real *wi,register real *ts)
+{
+#define DCT12_PART1 \
+ in5 = in[5*3]; \
+ in5 += (in4 = in[4*3]); \
+ in4 += (in3 = in[3*3]); \
+ in3 += (in2 = in[2*3]); \
+ in2 += (in1 = in[1*3]); \
+ in1 += (in0 = in[0*3]); \
+ \
+ in5 += in3; in3 += in1; \
+ \
+ in2 = REAL_MUL(in2, COS6_1); \
+ in3 = REAL_MUL(in3, COS6_1);
+
+#define DCT12_PART2 \
+ in0 += REAL_MUL(in4, COS6_2); \
+ \
+ in4 = in0 + in2; \
+ in0 -= in2; \
+ \
+ in1 += REAL_MUL(in5, COS6_2); \
+ \
+ in5 = REAL_MUL((in1 + in3), tfcos12[0]); \
+ in1 = REAL_MUL((in1 - in3), tfcos12[2]); \
+ \
+ in3 = in4 + in5; \
+ in4 -= in5; \
+ \
+ in2 = in0 + in1; \
+ in0 -= in1;
+
+ {
+ real in0,in1,in2,in3,in4,in5;
+ register real *out1 = rawout1;
+ ts[SBLIMIT*0] = out1[0]; ts[SBLIMIT*1] = out1[1]; ts[SBLIMIT*2] = out1[2];
+ ts[SBLIMIT*3] = out1[3]; ts[SBLIMIT*4] = out1[4]; ts[SBLIMIT*5] = out1[5];
+
+ DCT12_PART1
+
+ {
+ real tmp0,tmp1 = (in0 - in4);
+ {
+ real tmp2 = REAL_MUL((in1 - in5), tfcos12[1]);
+ tmp0 = tmp1 + tmp2;
+ tmp1 -= tmp2;
+ }
+ ts[(17-1)*SBLIMIT] = out1[17-1] + REAL_MUL(tmp0, wi[11-1]);
+ ts[(12+1)*SBLIMIT] = out1[12+1] + REAL_MUL(tmp0, wi[6+1]);
+ ts[(6 +1)*SBLIMIT] = out1[6 +1] + REAL_MUL(tmp1, wi[1]);
+ ts[(11-1)*SBLIMIT] = out1[11-1] + REAL_MUL(tmp1, wi[5-1]);
+ }
+
+ DCT12_PART2
+
+ ts[(17-0)*SBLIMIT] = out1[17-0] + REAL_MUL(in2, wi[11-0]);
+ ts[(12+0)*SBLIMIT] = out1[12+0] + REAL_MUL(in2, wi[6+0]);
+ ts[(12+2)*SBLIMIT] = out1[12+2] + REAL_MUL(in3, wi[6+2]);
+ ts[(17-2)*SBLIMIT] = out1[17-2] + REAL_MUL(in3, wi[11-2]);
+
+ ts[(6 +0)*SBLIMIT] = out1[6+0] + REAL_MUL(in0, wi[0]);
+ ts[(11-0)*SBLIMIT] = out1[11-0] + REAL_MUL(in0, wi[5-0]);
+ ts[(6 +2)*SBLIMIT] = out1[6+2] + REAL_MUL(in4, wi[2]);
+ ts[(11-2)*SBLIMIT] = out1[11-2] + REAL_MUL(in4, wi[5-2]);
+ }
+
+ in++;
+
+ {
+ real in0,in1,in2,in3,in4,in5;
+ register real *out2 = rawout2;
+
+ DCT12_PART1
+
+ {
+ real tmp0,tmp1 = (in0 - in4);
+ {
+ real tmp2 = REAL_MUL((in1 - in5), tfcos12[1]);
+ tmp0 = tmp1 + tmp2;
+ tmp1 -= tmp2;
+ }
+ out2[5-1] = REAL_MUL(tmp0, wi[11-1]);
+ out2[0+1] = REAL_MUL(tmp0, wi[6+1]);
+ ts[(12+1)*SBLIMIT] += REAL_MUL(tmp1, wi[1]);
+ ts[(17-1)*SBLIMIT] += REAL_MUL(tmp1, wi[5-1]);
+ }
+
+ DCT12_PART2
+
+ out2[5-0] = REAL_MUL(in2, wi[11-0]);
+ out2[0+0] = REAL_MUL(in2, wi[6+0]);
+ out2[0+2] = REAL_MUL(in3, wi[6+2]);
+ out2[5-2] = REAL_MUL(in3, wi[11-2]);
+
+ ts[(12+0)*SBLIMIT] += REAL_MUL(in0, wi[0]);
+ ts[(17-0)*SBLIMIT] += REAL_MUL(in0, wi[5-0]);
+ ts[(12+2)*SBLIMIT] += REAL_MUL(in4, wi[2]);
+ ts[(17-2)*SBLIMIT] += REAL_MUL(in4, wi[5-2]);
+ }
+
+ in++;
+
+ {
+ real in0,in1,in2,in3,in4,in5;
+ register real *out2 = rawout2;
+ out2[12]=out2[13]=out2[14]=out2[15]=out2[16]=out2[17]=0.0;
+
+ DCT12_PART1
+
+ {
+ real tmp0,tmp1 = (in0 - in4);
+ {
+ real tmp2 = REAL_MUL((in1 - in5), tfcos12[1]);
+ tmp0 = tmp1 + tmp2;
+ tmp1 -= tmp2;
+ }
+ out2[11-1] = REAL_MUL(tmp0, wi[11-1]);
+ out2[6 +1] = REAL_MUL(tmp0, wi[6+1]);
+ out2[0+1] += REAL_MUL(tmp1, wi[1]);
+ out2[5-1] += REAL_MUL(tmp1, wi[5-1]);
+ }
+
+ DCT12_PART2
+
+ out2[11-0] = REAL_MUL(in2, wi[11-0]);
+ out2[6 +0] = REAL_MUL(in2, wi[6+0]);
+ out2[6 +2] = REAL_MUL(in3, wi[6+2]);
+ out2[11-2] = REAL_MUL(in3, wi[11-2]);
+
+ out2[0+0] += REAL_MUL(in0, wi[0]);
+ out2[5-0] += REAL_MUL(in0, wi[5-0]);
+ out2[0+2] += REAL_MUL(in4, wi[2]);
+ out2[5-2] += REAL_MUL(in4, wi[5-2]);
+ }
+}
+
+
+static void III_hybrid(real fsIn[SBLIMIT][SSLIMIT], real tsOut[SSLIMIT][SBLIMIT], int ch,struct gr_info_s *gr_info, mpg123_handle *fr)
+{
+ real (*block)[2][SBLIMIT*SSLIMIT] = fr->hybrid_block;
+ int *blc = fr->hybrid_blc;
+
+ real *tspnt = (real *) tsOut;
+ real *rawout1,*rawout2;
+ int bt = 0;
+ size_t sb = 0;
+
+ {
+ int b = blc[ch];
+ rawout1=block[b][ch];
+ b=-b+1;
+ rawout2=block[b][ch];
+ blc[ch] = b;
+ }
+
+ if(gr_info->mixed_block_flag)
+ {
+ sb = 2;
+ opt_dct36(fr)(fsIn[0],rawout1,rawout2,win[0],tspnt);
+ opt_dct36(fr)(fsIn[1],rawout1+18,rawout2+18,win1[0],tspnt+1);
+ rawout1 += 36; rawout2 += 36; tspnt += 2;
+ }
+
+ bt = gr_info->block_type;
+ if(bt == 2)
+ {
+ for(; sb<gr_info->maxb; sb+=2,tspnt+=2,rawout1+=36,rawout2+=36)
+ {
+ dct12(fsIn[sb] ,rawout1 ,rawout2 ,win[2] ,tspnt);
+ dct12(fsIn[sb+1],rawout1+18,rawout2+18,win1[2],tspnt+1);
+ }
+ }
+ else
+ {
+ for(; sb<gr_info->maxb; sb+=2,tspnt+=2,rawout1+=36,rawout2+=36)
+ {
+ opt_dct36(fr)(fsIn[sb],rawout1,rawout2,win[bt],tspnt);
+ opt_dct36(fr)(fsIn[sb+1],rawout1+18,rawout2+18,win1[bt],tspnt+1);
+ }
+ }
+
+ for(;sb<SBLIMIT;sb++,tspnt++)
+ {
+ int i;
+ for(i=0;i<SSLIMIT;i++)
+ {
+ tspnt[i*SBLIMIT] = *rawout1++;
+ *rawout2++ = DOUBLE_TO_REAL(0.0);
+ }
+ }
+}
+
+
+/* And at the end... the main layer3 handler */
+int do_layer3(mpg123_handle *fr)
+{
+ int gr, ch, ss,clip=0;
+ int scalefacs[2][39]; /* max 39 for short[13][3] mode, mixed: 38, long: 22 */
+ struct III_sideinfo sideinfo;
+ int stereo = fr->stereo;
+ int single = fr->single;
+ int ms_stereo,i_stereo;
+ int sfreq = fr->sampling_frequency;
+ int stereo1,granules;
+
+ if(stereo == 1)
+ { /* stream is mono */
+ stereo1 = 1;
+ single = SINGLE_LEFT;
+ }
+ else if(single != SINGLE_STEREO) /* stream is stereo, but force to mono */
+ stereo1 = 1;
+ else
+ stereo1 = 2;
+
+ if(fr->mode == MPG_MD_JOINT_STEREO)
+ {
+ ms_stereo = (fr->mode_ext & 0x2)>>1;
+ i_stereo = fr->mode_ext & 0x1;
+ }
+ else ms_stereo = i_stereo = 0;
+
+ granules = fr->lsf ? 1 : 2;
+
+ /* quick hack to keep the music playing */
+ /* after having seen this nasty test file... */
+ if(III_get_side_info(fr, &sideinfo,stereo,ms_stereo,sfreq,single))
+ {
+ if(NOQUIET) error("bad frame - unable to get valid sideinfo");
+ return clip;
+ }
+
+ set_pointer(fr,sideinfo.main_data_begin);
+
+ for(gr=0;gr<granules;gr++)
+ {
+ ALIGNED(16) real hybridIn[2][SBLIMIT][SSLIMIT];
+ ALIGNED(16) real hybridOut[2][SSLIMIT][SBLIMIT];
+
+ {
+ struct gr_info_s *gr_info = &(sideinfo.ch[0].gr[gr]);
+ long part2bits;
+ if(fr->lsf)
+ part2bits = III_get_scale_factors_2(fr, scalefacs[0],gr_info,0);
+ else
+ part2bits = III_get_scale_factors_1(fr, scalefacs[0],gr_info,0,gr);
+
+ if(III_dequantize_sample(fr, hybridIn[0], scalefacs[0],gr_info,sfreq,part2bits))
+ {
+ if(VERBOSE2) error("dequantization failed!");
+ return clip;
+ }
+ }
+
+ if(stereo == 2)
+ {
+ struct gr_info_s *gr_info = &(sideinfo.ch[1].gr[gr]);
+ long part2bits;
+ if(fr->lsf)
+ part2bits = III_get_scale_factors_2(fr, scalefacs[1],gr_info,i_stereo);
+ else
+ part2bits = III_get_scale_factors_1(fr, scalefacs[1],gr_info,1,gr);
+
+ if(III_dequantize_sample(fr, hybridIn[1],scalefacs[1],gr_info,sfreq,part2bits))
+ {
+ if(VERBOSE2) error("dequantization failed!");
+ return clip;
+ }
+
+ if(ms_stereo)
+ {
+ int i;
+ unsigned int maxb = sideinfo.ch[0].gr[gr].maxb;
+ if(sideinfo.ch[1].gr[gr].maxb > maxb) maxb = sideinfo.ch[1].gr[gr].maxb;
+
+ for(i=0;i<SSLIMIT*(int)maxb;i++)
+ {
+ real tmp0 = ((real *)hybridIn[0])[i];
+ real tmp1 = ((real *)hybridIn[1])[i];
+ ((real *)hybridIn[0])[i] = tmp0 + tmp1;
+ ((real *)hybridIn[1])[i] = tmp0 - tmp1;
+ }
+ }
+
+ if(i_stereo) III_i_stereo(hybridIn,scalefacs[1],gr_info,sfreq,ms_stereo,fr->lsf);
+
+ if(ms_stereo || i_stereo || (single == SINGLE_MIX) )
+ {
+ if(gr_info->maxb > sideinfo.ch[0].gr[gr].maxb)
+ sideinfo.ch[0].gr[gr].maxb = gr_info->maxb;
+ else
+ gr_info->maxb = sideinfo.ch[0].gr[gr].maxb;
+ }
+
+ switch(single)
+ {
+ case SINGLE_MIX:
+ {
+ register int i;
+ register real *in0 = (real *) hybridIn[0],*in1 = (real *) hybridIn[1];
+ for(i=0;i<SSLIMIT*(int)gr_info->maxb;i++,in0++)
+ *in0 = (*in0 + *in1++); /* *0.5 done by pow-scale */
+ }
+ break;
+ case SINGLE_RIGHT:
+ {
+ register int i;
+ register real *in0 = (real *) hybridIn[0],*in1 = (real *) hybridIn[1];
+ for(i=0;i<SSLIMIT*(int)gr_info->maxb;i++)
+ *in0++ = *in1++;
+ }
+ break;
+ }
+ }
+
+ for(ch=0;ch<stereo1;ch++)
+ {
+ struct gr_info_s *gr_info = &(sideinfo.ch[ch].gr[gr]);
+ III_antialias(hybridIn[ch],gr_info);
+ III_hybrid(hybridIn[ch], hybridOut[ch], ch,gr_info, fr);
+ }
+
+#ifdef OPT_I486
+ if(single != SINGLE_STEREO || fr->af.encoding != MPG123_ENC_SIGNED_16 || fr->down_sample != 0)
+ {
+#endif
+ for(ss=0;ss<SSLIMIT;ss++)
+ {
+ if(single != SINGLE_STEREO)
+ clip += (fr->synth_mono)(hybridOut[0][ss], fr);
+ else
+ clip += (fr->synth_stereo)(hybridOut[0][ss], hybridOut[1][ss], fr);
+
+ }
+#ifdef OPT_I486
+ } else
+ {
+ /* Only stereo, 16 bits benefit from the 486 optimization. */
+ ss=0;
+ while(ss < SSLIMIT)
+ {
+ int n;
+ n=(fr->buffer.size - fr->buffer.fill) / (2*2*32);
+ if(n > (SSLIMIT-ss)) n=SSLIMIT-ss;
+
+ /* Clip counting makes no sense with this function. */
+ absynth_1to1_i486(hybridOut[0][ss], 0, fr, n);
+ absynth_1to1_i486(hybridOut[1][ss], 1, fr, n);
+ ss+=n;
+ fr->buffer.fill+=(2*2*32)*n;
+ }
+ }
+#endif
+ }
+
+ return clip;
+}
diff --git a/src/libmpg123/libmpg123.c b/src/libmpg123/libmpg123.c
new file mode 100644
index 0000000..7f899df
--- /dev/null
+++ b/src/libmpg123/libmpg123.c
@@ -0,0 +1,1463 @@
+/*
+ libmpg123: MPEG Audio Decoder library
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+
+*/
+
+#include "mpg123lib_intern.h"
+#include "icy2utf8.h"
+#include "debug.h"
+
+#ifdef GAPLESS
+#define SAMPLE_ADJUST(x) ((x) - ((mh->p.flags & MPG123_GAPLESS) ? mh->begin_os : 0))
+#define SAMPLE_UNADJUST(x) ((x) + ((mh->p.flags & MPG123_GAPLESS) ? mh->begin_os : 0))
+#else
+#define SAMPLE_ADJUST(x) (x)
+#define SAMPLE_UNADJUST(x) (x)
+#endif
+
+#define SEEKFRAME(mh) ((mh)->ignoreframe < 0 ? 0 : (mh)->ignoreframe)
+
+static int initialized = 0;
+
+#define ALIGNCHECK(mh)
+#define ALIGNCHECKK
+/* On compilers that support data alignment but not the automatic stack realignment.
+ We check for properly aligned stack before risking a crash because of badly compiled
+ client program. */
+#if (defined CCALIGN) && (defined NEED_ALIGNCHECK) && ((defined DEBUG) || (defined CHECK_ALIGN))
+
+/* Common building block. */
+#define ALIGNMAINPART \
+ /* minimum size of 16 bytes, not all compilers would align a smaller piece of data */ \
+ double ALIGNED(16) altest[2]; \
+ debug2("testing alignment, with %lu %% 16 = %lu", \
+ (unsigned long)altest, (unsigned long)((size_t)altest % 16)); \
+ if((size_t)altest % 16 != 0)
+
+#undef ALIGNCHECK
+#define ALIGNCHECK(mh) \
+ ALIGNMAINPART \
+ { \
+ error("Stack variable is not aligned! Your combination of compiler/library is dangerous!"); \
+ if(mh != NULL) mh->err = MPG123_BAD_ALIGN; \
+\
+ return MPG123_ERR; \
+ }
+#undef ALIGNCHECKK
+#define ALIGNCHECKK \
+ ALIGNMAINPART \
+ { \
+ error("Stack variable is not aligned! Your combination of compiler/library is dangerous!"); \
+ return MPG123_BAD_ALIGN; \
+ }
+
+#endif
+
+#ifdef GAPLESS
+/*
+ Take the buffer after a frame decode (strictly: it is the data from frame fr->num!) and cut samples out.
+ fr->buffer.fill may then be smaller than before...
+*/
+static void frame_buffercheck(mpg123_handle *fr)
+{
+ /* When we have no accurate position, gapless code does not make sense. */
+ if(!fr->accurate) return;
+
+ /* The first interesting frame: Skip some leading samples. */
+ if(fr->firstoff && fr->num == fr->firstframe)
+ {
+ off_t byteoff = samples_to_bytes(fr, fr->firstoff);
+ if((off_t)fr->buffer.fill > byteoff)
+ {
+ fr->buffer.fill -= byteoff;
+ /* buffer.p != buffer.data only for own buffer */
+ debug6("cutting %li samples/%li bytes on begin, own_buffer=%i at %p=%p, buf[1]=%i",
+ (long)fr->firstoff, (long)byteoff, fr->own_buffer, (void*)fr->buffer.p, (void*)fr->buffer.data, ((short*)fr->buffer.p)[2]);
+ if(fr->own_buffer) fr->buffer.p = fr->buffer.data + byteoff;
+ else memmove(fr->buffer.data, fr->buffer.data + byteoff, fr->buffer.fill);
+ debug3("done cutting, buffer at %p =? %p, buf[1]=%i",
+ (void*)fr->buffer.p, (void*)fr->buffer.data, ((short*)fr->buffer.p)[2]);
+ }
+ else fr->buffer.fill = 0;
+ fr->firstoff = 0; /* Only enter here once... when you seek, firstoff should be reset. */
+ }
+ /* The last interesting (planned) frame: Only use some leading samples. */
+ if(fr->lastoff && fr->num == fr->lastframe)
+ {
+ off_t byteoff = samples_to_bytes(fr, fr->lastoff);
+ if((off_t)fr->buffer.fill > byteoff)
+ {
+ fr->buffer.fill = byteoff;
+ }
+ fr->lastoff = 0; /* Only enter here once... when you seek, lastoff should be reset. */
+ }
+}
+#endif
+
+int attribute_align_arg mpg123_init(void)
+{
+ ALIGNCHECKK
+ if((sizeof(short) != 2) || (sizeof(long) < 4)) return MPG123_BAD_TYPES;
+
+ if(initialized) return MPG123_OK; /* no need to initialize twice */
+
+#ifndef NO_LAYER12
+ init_layer12(); /* inits also shared tables with layer1 */
+#endif
+#ifndef NO_LAYER3
+ init_layer3();
+#endif
+ prepare_decode_tables();
+ check_decoders();
+ initialized = 1;
+ return MPG123_OK;
+}
+
+void attribute_align_arg mpg123_exit(void)
+{
+ /* nothing yet, but something later perhaps */
+}
+
+/* create a new handle with specified decoder, decoder can be "", "auto" or NULL for auto-detection */
+mpg123_handle attribute_align_arg *mpg123_new(const char* decoder, int *error)
+{
+ return mpg123_parnew(NULL, decoder, error);
+}
+
+/* ...the full routine with optional initial parameters to override defaults. */
+mpg123_handle attribute_align_arg *mpg123_parnew(mpg123_pars *mp, const char* decoder, int *error)
+{
+ mpg123_handle *fr = NULL;
+ int err = MPG123_OK;
+#if (defined CCALIGN) && (defined NEED_ALIGNCHECK) && ((defined DEBUG) || (defined CHECK_ALIGN))
+#ifdef CCALIGN
+ double ALIGNED(16) altest[4];
+ if(((size_t)altest) % 16 != 0)
+ {
+ error("Stack variable is not aligned! Your combination of compiler/library is dangerous!");
+ *error = MPG123_BAD_ALIGN;
+ return NULL;
+ }
+#endif
+#endif
+ if(initialized) fr = (mpg123_handle*) malloc(sizeof(mpg123_handle));
+ else err = MPG123_NOT_INITIALIZED;
+ if(fr != NULL)
+ {
+ frame_init_par(fr, mp);
+ debug("cpu opt setting");
+ if(frame_cpu_opt(fr, decoder) != 1)
+ {
+ err = MPG123_BAD_DECODER;
+ frame_exit(fr);
+ free(fr);
+ fr = NULL;
+ }
+ }
+ if(fr != NULL)
+ {
+ /* Cleanup that mess! ... use mpg123_decoder / decode_update! */
+ if(frame_outbuffer(fr) != 0)
+ {
+ err = MPG123_NO_BUFFERS;
+ frame_exit(fr);
+ free(fr);
+ fr = NULL;
+ }
+ else
+ {
+ /* I smell cleanup here... with get_next_frame() */
+/* if(decode_update(fr) != 0)
+ {
+ err = fr->err != MPG123_OK ? fr->err : MPG123_BAD_DECODER;
+ frame_exit(fr);
+ free(fr);
+ fr = NULL;
+ }
+ else */
+ fr->decoder_change = 1;
+ }
+ }
+ else if(err == MPG123_OK) err = MPG123_OUT_OF_MEM;
+
+ if(error != NULL) *error = err;
+ return fr;
+}
+
+int attribute_align_arg mpg123_decoder(mpg123_handle *mh, const char* decoder)
+{
+ enum optdec dt = dectype(decoder);
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+
+ if(dt == nodec)
+ {
+ mh->err = MPG123_BAD_DECODER;
+ return MPG123_ERR;
+ }
+ if(dt == mh->cpu_opts.type) return MPG123_OK;
+
+ /* Now really change. */
+ /* frame_exit(mh);
+ frame_init(mh); */
+ debug("cpu opt setting");
+ if(frame_cpu_opt(mh, decoder) != 1)
+ {
+ mh->err = MPG123_BAD_DECODER;
+ frame_exit(mh);
+ return MPG123_ERR;
+ }
+ /* New buffers for decoder are created in frame_buffers() */
+ if((frame_outbuffer(mh) != 0))
+ {
+ mh->err = MPG123_NO_BUFFERS;
+ frame_exit(mh);
+ return MPG123_ERR;
+ }
+ /* I smell cleanup here... with get_next_frame() */
+ decode_update(mh);
+ mh->decoder_change = 1;
+ return MPG123_OK;
+}
+
+int attribute_align_arg mpg123_param(mpg123_handle *mh, enum mpg123_parms key, long val, double fval)
+{
+ int r;
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ r = mpg123_par(&mh->p, key, val, fval);
+ if(r != MPG123_OK){ mh->err = r; r = MPG123_ERR; }
+ else
+ { /* Special treatment for some settings. */
+#ifdef FRAME_INDEX
+ if(key == MPG123_INDEX_SIZE)
+ { /* Apply frame index size and grow property on the fly. */
+ r = frame_index_setup(mh);
+ if(r != MPG123_OK) mh->err = MPG123_INDEX_FAIL;
+ }
+#endif
+ }
+ return r;
+}
+
+int attribute_align_arg mpg123_par(mpg123_pars *mp, enum mpg123_parms key, long val, double fval)
+{
+ int ret = MPG123_OK;
+ ALIGNCHECKK
+ if(mp == NULL) return MPG123_BAD_PARS;
+ switch(key)
+ {
+ case MPG123_VERBOSE:
+ mp->verbose = val;
+ break;
+ case MPG123_FLAGS:
+#ifndef GAPLESS
+ if(val & MPG123_GAPLESS) ret = MPG123_NO_GAPLESS;
+#endif
+ if(ret == MPG123_OK) mp->flags = val;
+ debug1("set flags to 0x%lx", (unsigned long) mp->flags);
+ break;
+ case MPG123_ADD_FLAGS:
+#ifndef GAPLESS
+ /* Enabling of gapless mode doesn't work when it's not there, but disabling (below) is no problem. */
+ if(val & MPG123_GAPLESS) ret = MPG123_NO_GAPLESS;
+ else
+#endif
+ mp->flags |= val;
+ debug1("set flags to 0x%lx", (unsigned long) mp->flags);
+ break;
+ case MPG123_REMOVE_FLAGS:
+ mp->flags &= ~val;
+ debug1("set flags to 0x%lx", (unsigned long) mp->flags);
+ break;
+ case MPG123_FORCE_RATE: /* should this trigger something? */
+#ifdef NO_NTOM
+ if(val > 0)
+ ret = MPG123_BAD_RATE;
+#else
+ if(val > 96000) ret = MPG123_BAD_RATE;
+ else mp->force_rate = val < 0 ? 0 : val; /* >0 means enable, 0 disable */
+#endif
+ break;
+ case MPG123_DOWN_SAMPLE:
+#ifdef NO_DOWNSAMPLE
+ if(val != 0) ret = MPG123_BAD_RATE;
+#else
+ if(val < 0 || val > 2) ret = MPG123_BAD_RATE;
+ else mp->down_sample = (int)val;
+#endif
+ break;
+ case MPG123_RVA:
+ if(val < 0 || val > MPG123_RVA_MAX) ret = MPG123_BAD_RVA;
+ else mp->rva = (int)val;
+ break;
+ case MPG123_DOWNSPEED:
+ mp->halfspeed = val < 0 ? 0 : val;
+ break;
+ case MPG123_UPSPEED:
+ mp->doublespeed = val < 0 ? 0 : val;
+ break;
+ case MPG123_ICY_INTERVAL:
+#ifndef NO_ICY
+ mp->icy_interval = val > 0 ? val : 0;
+#else
+ if(val > 0) ret = MPG123_BAD_PARAM;
+#endif
+ break;
+ case MPG123_OUTSCALE:
+ /* Choose the value that is non-zero, if any.
+ Downscaling integers to 1.0 . */
+ mp->outscale = val == 0 ? fval : (double)val/SHORT_SCALE;
+ break;
+ case MPG123_TIMEOUT:
+#ifndef WIN32
+ mp->timeout = val >= 0 ? val : 0;
+#else
+ ret = MPG123_NO_TIMEOUT;
+#endif
+ break;
+ case MPG123_RESYNC_LIMIT:
+ mp->resync_limit = val;
+ break;
+ case MPG123_INDEX_SIZE:
+#ifdef FRAME_INDEX
+ mp->index_size = val;
+#else
+ ret = MPG123_NO_INDEX;
+#endif
+ break;
+ case MPG123_PREFRAMES:
+ if(val >= 0) mp->preframes = val;
+ else ret = MPG123_BAD_VALUE;
+ break;
+ default:
+ ret = MPG123_BAD_PARAM;
+ }
+ return ret;
+}
+
+int attribute_align_arg mpg123_getparam(mpg123_handle *mh, enum mpg123_parms key, long *val, double *fval)
+{
+ int r;
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ r = mpg123_getpar(&mh->p, key, val, fval);
+ if(r != MPG123_OK){ mh->err = r; r = MPG123_ERR; }
+ return r;
+}
+
+int attribute_align_arg mpg123_getpar(mpg123_pars *mp, enum mpg123_parms key, long *val, double *fval)
+{
+ int ret = 0;
+ ALIGNCHECKK
+ if(mp == NULL) return MPG123_BAD_PARS;
+ switch(key)
+ {
+ case MPG123_VERBOSE:
+ if(val) *val = mp->verbose;
+ break;
+ case MPG123_FLAGS:
+ case MPG123_ADD_FLAGS:
+ if(val) *val = mp->flags;
+ break;
+ case MPG123_FORCE_RATE:
+ if(val)
+#ifdef NO_NTOM
+ *val = 0;
+#else
+ *val = mp->force_rate;
+#endif
+ break;
+ case MPG123_DOWN_SAMPLE:
+ if(val) *val = mp->down_sample;
+ break;
+ case MPG123_RVA:
+ if(val) *val = mp->rva;
+ break;
+ case MPG123_DOWNSPEED:
+ if(val) *val = mp->halfspeed;
+ break;
+ case MPG123_UPSPEED:
+ if(val) *val = mp->doublespeed;
+ break;
+ case MPG123_ICY_INTERVAL:
+#ifndef NO_ICY
+ if(val) *val = (long)mp->icy_interval;
+#else
+ if(val) *val = 0;
+#endif
+ break;
+ case MPG123_OUTSCALE:
+ if(fval) *fval = mp->outscale;
+ if(val) *val = (long)(mp->outscale*SHORT_SCALE);
+ break;
+ case MPG123_RESYNC_LIMIT:
+ if(val) *val = mp->resync_limit;
+ break;
+ case MPG123_INDEX_SIZE:
+ if(val)
+#ifdef FRAME_INDEX
+ *val = mp->index_size;
+#else
+ *val = 0; /* graceful fallback: no index is index of zero size */
+#endif
+ break;
+ case MPG123_PREFRAMES:
+ *val = mp->preframes;
+ break;
+ default:
+ ret = MPG123_BAD_PARAM;
+ }
+ return ret;
+}
+
+int attribute_align_arg mpg123_getstate(mpg123_handle *mh, enum mpg123_state key, long *val, double *fval)
+{
+ int ret = MPG123_OK;
+ long theval = 0;
+ double thefval = 0.;
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+
+ switch(key)
+ {
+ case MPG123_ACCURATE:
+ theval = mh->accurate;
+ break;
+ default:
+ mh->err = MPG123_BAD_KEY;
+ ret = MPG123_ERR;
+ }
+
+ if(val != NULL) *val = theval;
+ if(fval != NULL) *fval = thefval;
+
+ return ret;
+}
+
+int attribute_align_arg mpg123_eq(mpg123_handle *mh, enum mpg123_channels channel, int band, double val)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ if(band < 0 || band > 31){ mh->err = MPG123_BAD_BAND; return MPG123_ERR; }
+ switch(channel)
+ {
+ case MPG123_LEFT|MPG123_RIGHT:
+ mh->equalizer[0][band] = mh->equalizer[1][band] = DOUBLE_TO_REAL(val);
+ break;
+ case MPG123_LEFT: mh->equalizer[0][band] = DOUBLE_TO_REAL(val); break;
+ case MPG123_RIGHT: mh->equalizer[1][band] = DOUBLE_TO_REAL(val); break;
+ default:
+ mh->err=MPG123_BAD_CHANNEL;
+ return MPG123_ERR;
+ }
+ mh->have_eq_settings = TRUE;
+ return MPG123_OK;
+}
+
+double attribute_align_arg mpg123_geteq(mpg123_handle *mh, enum mpg123_channels channel, int band)
+{
+ double ret = 0.;
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+
+ /* Handle this gracefully. When there is no band, it has no volume. */
+ if(band > -1 && band < 32)
+ switch(channel)
+ {
+ case MPG123_LEFT|MPG123_RIGHT:
+ ret = 0.5*(REAL_TO_DOUBLE(mh->equalizer[0][band])+REAL_TO_DOUBLE(mh->equalizer[1][band]));
+ break;
+ case MPG123_LEFT: ret = REAL_TO_DOUBLE(mh->equalizer[0][band]); break;
+ case MPG123_RIGHT: ret = REAL_TO_DOUBLE(mh->equalizer[1][band]); break;
+ /* Default case is already handled: ret = 0 */
+ }
+
+ return ret;
+}
+
+
+/* plain file access, no http! */
+int attribute_align_arg mpg123_open(mpg123_handle *mh, const char *path)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+
+ mpg123_close(mh);
+ frame_reset(mh);
+ return open_stream(mh, path, -1);
+}
+
+int attribute_align_arg mpg123_open_fd(mpg123_handle *mh, int fd)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+
+ mpg123_close(mh);
+ frame_reset(mh);
+ return open_stream(mh, NULL, fd);
+}
+
+int attribute_align_arg mpg123_open_feed(mpg123_handle *mh)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+
+ mpg123_close(mh);
+ frame_reset(mh);
+ return open_feed(mh);
+}
+
+int attribute_align_arg mpg123_replace_reader( mpg123_handle *mh,
+ ssize_t (*r_read) (int, void *, size_t),
+ off_t (*r_lseek)(int, off_t, int) )
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ mh->rdat.r_read = r_read;
+ mh->rdat.r_lseek = r_lseek;
+ return MPG123_OK;
+}
+
+
+int decode_update(mpg123_handle *mh)
+{
+ long native_rate;
+ int b;
+ ALIGNCHECK(mh);
+ native_rate = frame_freq(mh);
+
+ b = frame_output_format(mh); /* Select the new output format based on given constraints. */
+ if(b < 0) return MPG123_ERR;
+
+ if(b == 1) mh->new_format = 1; /* Store for later... */
+
+ debug3("updating decoder structure with native rate %li and af.rate %li (new format: %i)", native_rate, mh->af.rate, mh->new_format);
+ if(mh->af.rate == native_rate) mh->down_sample = 0;
+ else if(mh->af.rate == native_rate>>1) mh->down_sample = 1;
+ else if(mh->af.rate == native_rate>>2) mh->down_sample = 2;
+ else mh->down_sample = 3; /* flexible (fixed) rate */
+ switch(mh->down_sample)
+ {
+ case 0:
+ case 1:
+ case 2:
+ mh->down_sample_sblimit = SBLIMIT>>(mh->down_sample);
+ /* With downsampling I get less samples per frame */
+ mh->outblock = samples_to_bytes(mh, (spf(mh)>>mh->down_sample));
+ break;
+#ifndef NO_NTOM
+ case 3:
+ {
+ if(synth_ntom_set_step(mh) != 0) return -1;
+ if(frame_freq(mh) > mh->af.rate)
+ {
+ mh->down_sample_sblimit = SBLIMIT * mh->af.rate;
+ mh->down_sample_sblimit /= frame_freq(mh);
+ }
+ else mh->down_sample_sblimit = SBLIMIT;
+ mh->outblock = mh->af.encsize * mh->af.channels *
+ ( ( NTOM_MUL-1+spf(mh)
+ * (((size_t)NTOM_MUL*mh->af.rate)/frame_freq(mh))
+ )/NTOM_MUL );
+ }
+ break;
+#endif
+ }
+
+ if(!(mh->p.flags & MPG123_FORCE_MONO))
+ {
+ if(mh->af.channels == 1) mh->single = SINGLE_MIX;
+ else mh->single = SINGLE_STEREO;
+ }
+ else mh->single = (mh->p.flags & MPG123_FORCE_MONO)-1;
+ if(set_synth_functions(mh) != 0) return -1;;
+
+ do_rva(mh);
+ debug3("done updating decoder structure with native rate %li and af.rate %li and down_sample %i", frame_freq(mh), mh->af.rate, mh->down_sample);
+
+ return 0;
+}
+
+size_t attribute_align_arg mpg123_safe_buffer()
+{
+ /* real is the largest possible output (it's 32bit float, 32bit int or 64bit double). */
+ return sizeof(real)*2*1152*NTOM_MAX;
+}
+
+size_t attribute_align_arg mpg123_outblock(mpg123_handle *mh)
+{
+ if(mh != NULL) return mh->outblock;
+ else return mpg123_safe_buffer();
+}
+
+static int get_next_frame(mpg123_handle *mh)
+{
+ int change = mh->decoder_change;
+ do
+ {
+ int b;
+ /* Decode & discard some frame(s) before beginning. */
+ if(mh->to_ignore && mh->num < mh->firstframe && mh->num >= mh->ignoreframe)
+ {
+ debug1("ignoring frame %li", (long)mh->num);
+ /* Decoder structure must be current! decode_update has been called before... */
+ (mh->do_layer)(mh); mh->buffer.fill = 0;
+#ifndef NO_NTOM
+ /* The ignored decoding may have failed. Make sure ntom stays consistent. */
+ if(mh->down_sample == 3) ntom_set_ntom(mh, mh->num+1);
+#endif
+ mh->to_ignore = mh->to_decode = FALSE;
+ }
+ /* Read new frame data; possibly breaking out here for MPG123_NEED_MORE. */
+ debug("read frame");
+ mh->to_decode = FALSE;
+ b = read_frame(mh); /* That sets to_decode only if a full frame was read. */
+ debug4("read of frame %li returned %i (to_decode=%i) at sample %li", (long)mh->num, b, mh->to_decode, (long)mpg123_tell(mh));
+ if(b == MPG123_NEED_MORE) return MPG123_NEED_MORE; /* need another call with data */
+ else if(b <= 0)
+ {
+ /* More sophisticated error control? */
+ if(b==0 || mh->rdat.filepos == mh->rdat.filelen)
+ { /* We simply reached the end. */
+ mh->track_frames = mh->num + 1;
+ return MPG123_DONE;
+ }
+ else return MPG123_ERR; /* Some real error. */
+ }
+ /* Now, there should be new data to decode ... and also possibly new stream properties */
+ if(mh->header_change > 1)
+ {
+ debug("big header change");
+ change = 1;
+ }
+ /* Now some accounting: Look at the numbers and decide if we want this frame. */
+ ++mh->playnum;
+ /* Plain skipping without decoding, only when frame is not ignored on next cycle. */
+ if(mh->num < mh->firstframe || (mh->p.doublespeed && (mh->playnum % mh->p.doublespeed)))
+ {
+ if(!(mh->to_ignore && mh->num < mh->firstframe && mh->num >= mh->ignoreframe))
+ {
+ frame_skip(mh);
+ /* Should one fix NtoM here or not?
+ It is not work the trouble for doublespeed, but what with leading frames? */
+ }
+ }
+ /* Or, we are finally done and have a new frame. */
+ else break;
+ } while(1);
+ /* When we start actually using the CRC, this could move into the loop... */
+ /* A question of semantics ... should I fold start_frame and frame_number into firstframe/lastframe? */
+ if(mh->lastframe >= 0 && mh->num > mh->lastframe)
+ {
+ mh->to_decode = mh->to_ignore = FALSE;
+ return MPG123_DONE;
+ }
+ if(change)
+ {
+ if(decode_update(mh) < 0) /* dito... */
+ return MPG123_ERR;
+
+debug1("new format: %i", mh->new_format);
+
+ mh->decoder_change = 0;
+#ifdef GAPLESS
+ if(mh->fresh)
+ {
+ int b=0;
+ /* Prepare offsets for gapless decoding. */
+ debug1("preparing gapless stuff with native rate %li", frame_freq(mh));
+ frame_gapless_realinit(mh);
+ frame_set_frameseek(mh, mh->num);
+ mh->fresh = 0;
+ /* Could this possibly happen? With a real big gapless offset... */
+ if(mh->num < mh->firstframe) b = get_next_frame(mh);
+ if(b < 0) return b; /* Could be error, need for more, new format... */
+ }
+#endif
+ }
+ return MPG123_OK;
+}
+
+/*
+ Not part of the api. This just decodes the frame and fills missing bits with zeroes.
+ There can be frames that are broken and thus make do_layer() fail.
+*/
+void decode_the_frame(mpg123_handle *fr)
+{
+ size_t needed_bytes = samples_to_bytes(fr, frame_outs(fr, fr->num+1)-frame_outs(fr, fr->num));
+ fr->clip += (fr->do_layer)(fr);
+ /*fprintf(stderr, "frame %"OFF_P": got %"SIZE_P" / %"SIZE_P"\n", fr->num,(size_p)fr->buffer.fill, (size_p)needed_bytes);*/
+ /* There could be less data than promised.
+ Also, then debugging, we look out for coding errors that could result in _more_ data than expected. */
+#ifdef DEBUG
+ if(fr->buffer.fill != needed_bytes)
+ {
+#endif
+ if(fr->buffer.fill < needed_bytes)
+ {
+ if(VERBOSE2)
+ fprintf(stderr, "Note: broken frame %li, filling up with %"SIZE_P" zeroes, from %"SIZE_P"\n", (long)fr->num, (size_p)(needed_bytes-fr->buffer.fill), (size_p)fr->buffer.fill);
+
+ /* One could do a loop with individual samples instead... but zero is zero. */
+ memset(fr->buffer.data + fr->buffer.fill, 0, needed_bytes - fr->buffer.fill);
+ fr->buffer.fill = needed_bytes;
+#ifndef NO_NTOM
+ /* ntom_val will be wrong when the decoding wasn't carried out completely */
+ ntom_set_ntom(fr, fr->num+1);
+#endif
+ }
+#ifdef DEBUG
+ else
+ {
+ if(NOQUIET)
+ error2("I got _more_ bytes than expected (%"SIZE_P" / %"SIZE_P"), that should not be possible!", (size_p)fr->buffer.fill, (size_p)needed_bytes);
+ }
+ }
+#endif
+ /* Handle unsigned output formats via reshifting after decode here. */
+#ifndef NO_32BIT
+ if(fr->af.encoding == MPG123_ENC_UNSIGNED_32)
+ { /* 32bit signed -> unsigned */
+ size_t i;
+ int32_t *ssamples;
+ uint32_t *usamples;
+ ssamples = (int32_t*)fr->buffer.data;
+ usamples = (uint32_t*)fr->buffer.data;
+ debug("converting output to unsigned 32 bit integer");
+ for(i=0; i<fr->buffer.fill/sizeof(int32_t); ++i)
+ {
+ /* Different strategy since we don't have a larger type at hand.
+ Also watch out for silly +-1 fun because integer constants are signed in C90! */
+ if(ssamples[i] >= 0)
+ usamples[i] = (uint32_t)ssamples[i] + 2147483647+1;
+ /* The smalles value goes zero. */
+ else if(ssamples[i] == ((int32_t)-2147483647-1))
+ usamples[i] = 0;
+ /* Now -value is in the positive range of signed int ... so it's a possible value at all. */
+ else
+ usamples[i] = (uint32_t)2147483647+1 - (uint32_t)(-ssamples[i]);
+ }
+ }
+#endif
+#ifndef NO_16BIT
+ if(fr->af.encoding == MPG123_ENC_UNSIGNED_16)
+ {
+ size_t i;
+ short *ssamples;
+ unsigned short *usamples;
+ ssamples = (short*)fr->buffer.data;
+ usamples = (unsigned short*)fr->buffer.data;
+ debug("converting output to unsigned 16 bit integer");
+ for(i=0; i<fr->buffer.fill/sizeof(short); ++i)
+ {
+ long tmp = (long)ssamples[i]+32768;
+ usamples[i] = (unsigned short)tmp;
+ }
+ }
+#endif
+}
+
+/*
+ Put _one_ decoded frame into the frame structure's buffer, accessible at the location stored in <audio>, with <bytes> bytes available.
+ The buffer contents will be lost on next call to mpg123_decode_frame.
+ MPG123_OK -- successfully decoded the frame, you get your output data
+ MPg123_DONE -- This is it. End.
+ MPG123_ERR -- some error occured...
+ MPG123_NEW_FORMAT -- new frame was read, it results in changed output format -> will be decoded on next call
+ MPG123_NEED_MORE -- that should not happen as this function is intended for in-library stream reader but if you force it...
+ MPG123_NO_SPACE -- not enough space in buffer for safe decoding, also should not happen
+
+ num will be updated to the last decoded frame number (may possibly _not_ increase, p.ex. when format changed).
+*/
+int attribute_align_arg mpg123_decode_frame(mpg123_handle *mh, off_t *num, unsigned char **audio, size_t *bytes)
+{
+ ALIGNCHECK(mh);
+ if(bytes != NULL) *bytes = 0;
+ if(mh == NULL) return MPG123_ERR;
+ if(mh->buffer.size < mh->outblock) return MPG123_NO_SPACE;
+ mh->buffer.fill = 0; /* always start fresh */
+ while(TRUE)
+ {
+ /* decode if possible */
+ if(mh->to_decode)
+ {
+ if(mh->new_format)
+ {
+ debug("notifiying new format");
+ mh->new_format = 0;
+ return MPG123_NEW_FORMAT;
+ }
+ if(num != NULL) *num = mh->num;
+ debug("decoding");
+
+ decode_the_frame(mh);
+
+ mh->to_decode = mh->to_ignore = FALSE;
+ mh->buffer.p = mh->buffer.data;
+#ifdef GAPLESS
+ /* This checks for individual samples to skip, for gapless mode or sample-accurate seek. */
+ frame_buffercheck(mh);
+#endif
+ if(audio != NULL) *audio = mh->buffer.p;
+ if(bytes != NULL) *bytes = mh->buffer.fill;
+
+ return MPG123_OK;
+ }
+ else
+ {
+ int b = get_next_frame(mh);
+ if(b < 0) return b;
+ debug1("got next frame, %i", mh->to_decode);
+ }
+ }
+}
+
+int attribute_align_arg mpg123_read(mpg123_handle *mh, unsigned char *out, size_t size, size_t *done)
+{
+ return mpg123_decode(mh, NULL, 0, out, size, done);
+}
+
+int attribute_align_arg mpg123_feed(mpg123_handle *mh, const unsigned char *in, size_t size)
+{
+ if(mh == NULL) return MPG123_ERR;
+ if(size > 0)
+ {
+ if(in != NULL)
+ {
+ if(feed_more(mh, in, size) != 0) return MPG123_ERR;
+ else return MPG123_OK;
+ }
+ else
+ {
+ mh->err = MPG123_NULL_BUFFER;
+ return MPG123_ERR;
+ }
+ }
+ return MPG123_OK;
+}
+
+/*
+ The old picture:
+ while(1) {
+ len = read(0,buf,16384);
+ if(len <= 0)
+ break;
+ ret = decodeMP3(&mp,buf,len,out,8192,&size);
+ while(ret == MP3_OK) {
+ write(1,out,size);
+ ret = decodeMP3(&mp,NULL,0,out,8192,&size);
+ }
+ }
+*/
+
+int attribute_align_arg mpg123_decode(mpg123_handle *mh, const unsigned char *inmemory, size_t inmemsize, unsigned char *outmemory, size_t outmemsize, size_t *done)
+{
+ int ret = MPG123_OK;
+ size_t mdone = 0;
+ ALIGNCHECK(mh);
+ if(done != NULL) *done = 0;
+ if(mh == NULL) return MPG123_ERR;
+ if(inmemsize > 0 && mpg123_feed(mh, inmemory, inmemsize) != MPG123_OK)
+ {
+ ret = MPG123_ERR;
+ goto decodeend;
+ }
+ if(outmemory == NULL) outmemsize = 0; /* Not just give error, give chance to get a status message. */
+
+ while(ret == MPG123_OK)
+ {
+ debug4("decode loop, fill %i (%li vs. %li); to_decode: %i", (int)mh->buffer.fill, (long)mh->num, (long)mh->firstframe, mh->to_decode);
+ /* Decode a frame that has been read before.
+ This only happens when buffer is empty! */
+ if(mh->to_decode)
+ {
+ if(mh->new_format)
+ {
+ debug("notifiying new format");
+ mh->new_format = 0;
+ return MPG123_NEW_FORMAT;
+ }
+ if(mh->buffer.size - mh->buffer.fill < mh->outblock)
+ {
+ ret = MPG123_NO_SPACE;
+ goto decodeend;
+ }
+ decode_the_frame(mh);
+ mh->to_decode = mh->to_ignore = FALSE;
+ mh->buffer.p = mh->buffer.data;
+ debug2("decoded frame %li, got %li samples in buffer", (long)mh->num, (long)(mh->buffer.fill / (samples_to_bytes(mh, 1))));
+#ifdef GAPLESS
+ frame_buffercheck(mh); /* Seek & gapless. */
+#endif
+ }
+ if(mh->buffer.fill) /* Copy (part of) the decoded data to the caller's buffer. */
+ {
+ /* get what is needed - or just what is there */
+ int a = mh->buffer.fill > (outmemsize - mdone) ? outmemsize - mdone : mh->buffer.fill;
+ debug4("buffer fill: %i; copying %i (%i - %li)", (int)mh->buffer.fill, a, (int)outmemsize, (long)mdone);
+ memcpy(outmemory, mh->buffer.p, a);
+ /* less data in frame buffer, less needed, output pointer increase, more data given... */
+ mh->buffer.fill -= a;
+ outmemory += a;
+ mdone += a;
+ mh->buffer.p += a;
+ if(!(outmemsize > mdone)) goto decodeend;
+ }
+ else /* If we didn't have data, get a new frame. */
+ {
+ int b = get_next_frame(mh);
+ if(b < 0){ ret = b; goto decodeend; }
+ }
+ }
+decodeend:
+ if(done != NULL) *done = mdone;
+ return ret;
+}
+
+long attribute_align_arg mpg123_clip(mpg123_handle *mh)
+{
+ long ret = 0;
+ ALIGNCHECK(mh);
+ if(mh != NULL)
+ {
+ ret = mh->clip;
+ mh->clip = 0;
+ }
+ return ret;
+}
+
+#define track_need_init(mh) (!(mh)->to_decode && (mh)->fresh)
+
+static int init_track(mpg123_handle *mh)
+{
+ if(track_need_init(mh))
+ {
+ /* Fresh track, need first frame for basic info. */
+ int b = get_next_frame(mh);
+ if(b < 0) return b;
+ }
+ return 0;
+}
+
+int attribute_align_arg mpg123_getformat(mpg123_handle *mh, long *rate, int *channels, int *encoding)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ if(init_track(mh) == MPG123_ERR) return MPG123_ERR;
+
+ if(rate != NULL) *rate = mh->af.rate;
+ if(channels != NULL) *channels = mh->af.channels;
+ if(encoding != NULL) *encoding = mh->af.encoding;
+ mh->new_format = 0;
+ return MPG123_OK;
+}
+
+off_t attribute_align_arg mpg123_timeframe(mpg123_handle *mh, double seconds)
+{
+ off_t b;
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ b = init_track(mh);
+ if(b<0) return b;
+ return (off_t)(seconds/mpg123_tpf(mh));
+}
+
+/*
+ Now, where are we? We need to know the last decoded frame... and what's left of it in buffer.
+ The current frame number can mean the last decoded frame or the to-be-decoded frame.
+ If mh->to_decode, then mh->num frames have been decoded, the frame mh->num now coming next.
+ If not, we have the possibility of mh->num+1 frames being decoded or nothing at all.
+ Then, there is firstframe...when we didn't reach it yet, then the next data will come from there.
+ mh->num starts with -1
+*/
+off_t attribute_align_arg mpg123_tell(mpg123_handle *mh)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ if(track_need_init(mh)) return 0;
+ /* Now we have all the info at hand. */
+ debug5("tell: %li/%i first %li buffer %lu; frame_outs=%li", (long)mh->num, mh->to_decode, (long)mh->firstframe, (unsigned long)mh->buffer.fill, (long)frame_outs(mh, mh->num));
+
+ { /* Funny block to keep C89 happy. */
+ off_t pos = 0;
+ if((mh->num < mh->firstframe) || (mh->num == mh->firstframe && mh->to_decode))
+ { /* We are at the beginning, expect output from firstframe on. */
+ pos = frame_outs(mh, mh->firstframe);
+#ifdef GAPLESS
+ pos += mh->firstoff;
+#endif
+ }
+ else if(mh->to_decode)
+ { /* We start fresh with this frame. Buffer should be empty, but we make sure to count it in. */
+ pos = frame_outs(mh, mh->num) - bytes_to_samples(mh, mh->buffer.fill);
+ }
+ else
+ { /* We serve what we have in buffer and then the beginning of next frame... */
+ pos = frame_outs(mh, mh->num+1) - bytes_to_samples(mh, mh->buffer.fill);
+ }
+ /* Substract padding and delay from the beginning. */
+ pos = SAMPLE_ADJUST(pos);
+ /* Negative sample offsets are not right, less than nothing is still nothing. */
+ return pos>0 ? pos : 0;
+ }
+}
+
+off_t attribute_align_arg mpg123_tellframe(mpg123_handle *mh)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ if(mh->num < mh->firstframe) return mh->firstframe;
+ if(mh->to_decode) return mh->num;
+ /* Consider firstoff? */
+ return mh->buffer.fill ? mh->num : mh->num + 1;
+}
+
+off_t attribute_align_arg mpg123_tell_stream(mpg123_handle *mh)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ /* mh->rd is at least a bad_reader, so no worry. */
+ return mh->rd->tell(mh);
+}
+
+static int do_the_seek(mpg123_handle *mh)
+{
+ int b;
+ off_t fnum = SEEKFRAME(mh);
+ mh->buffer.fill = 0;
+
+ /* If we are inside the ignoreframe - firstframe window, we may get away without actual seeking. */
+ if(mh->num < mh->firstframe)
+ {
+ mh->to_decode = FALSE; /* In any case, don't decode the current frame, perhaps ignore instead. */
+ if(mh->num > fnum) return MPG123_OK;
+ }
+
+ /* If we are already there, we are fine either for decoding or for ignoring. */
+ if(mh->num == fnum && (mh->to_decode || fnum < mh->firstframe)) return MPG123_OK;
+ /* We have the frame before... just go ahead as normal. */
+ if(mh->num == fnum-1)
+ {
+ mh->to_decode = FALSE;
+ return MPG123_OK;
+ }
+
+ /* OK, real seeking follows... clear buffers and go for it. */
+ frame_buffers_reset(mh);
+#ifndef NO_NTOM
+ if(mh->down_sample == 3)
+ {
+ ntom_set_ntom(mh, fnum);
+ debug3("fixed ntom for frame %"OFF_P" to %lu, num=%"OFF_P, fnum, mh->ntom_val[0], mh->num);
+ }
+#endif
+ b = mh->rd->seek_frame(mh, fnum);
+ debug1("seek_frame returned: %i", b);
+ if(b<0) return b;
+ /* Only mh->to_ignore is TRUE. */
+ if(mh->num < mh->firstframe) mh->to_decode = FALSE;
+
+ mh->playnum = mh->num;
+ return 0;
+}
+
+off_t attribute_align_arg mpg123_seek(mpg123_handle *mh, off_t sampleoff, int whence)
+{
+ int b;
+ off_t pos;
+ ALIGNCHECK(mh);
+ pos = mpg123_tell(mh); /* adjusted samples */
+ /* pos < 0 also can mean that simply a former seek failed at the lower levels.
+ In that case, we only allow absolute seeks. */
+ if(pos < 0 && whence != SEEK_SET)
+ { /* Unless we got the obvious error of NULL handle, this is a special seek failure. */
+ if(mh != NULL) mh->err = MPG123_NO_RELSEEK;
+ return MPG123_ERR;
+ }
+ if((b=init_track(mh)) < 0) return b;
+
+ switch(whence)
+ {
+ case SEEK_CUR: pos += sampleoff; break;
+ case SEEK_SET: pos = sampleoff; break;
+ case SEEK_END:
+#ifdef GAPLESS
+ if(mh->end_os >= 0) pos = SAMPLE_ADJUST(mh->end_os) - sampleoff;
+#else
+ if(mh->track_frames > 0) pos = SAMPLE_ADJUST(frame_outs(mh, mh->track_frames)) - sampleoff;
+#endif
+ else
+ {
+ mh->err = MPG123_NO_SEEK_FROM_END;
+ return MPG123_ERR;
+ }
+ break;
+ default: mh->err = MPG123_BAD_WHENCE; return MPG123_ERR;
+ }
+ if(pos < 0) pos = 0;
+ /* pos now holds the wanted sample offset in adjusted samples */
+ frame_set_seek(mh, SAMPLE_UNADJUST(pos));
+ pos = do_the_seek(mh);
+ if(pos < 0) return pos;
+
+ return mpg123_tell(mh);
+}
+
+/*
+ A bit more tricky... libmpg123 does not do the seeking itself.
+ All it can do is to ignore frames until the wanted one is there.
+ The caller doesn't know where a specific frame starts and mpg123 also only knows the general region after it scanned the file.
+ Well, it is tricky...
+*/
+off_t attribute_align_arg mpg123_feedseek(mpg123_handle *mh, off_t sampleoff, int whence, off_t *input_offset)
+{
+ int b;
+ off_t pos;
+ ALIGNCHECK(mh);
+ pos = mpg123_tell(mh); /* adjusted samples */
+ debug3("seek from %li to %li (whence=%i)", (long)pos, (long)sampleoff, whence);
+ /* The special seek error handling does not apply here... there is no lowlevel I/O. */
+ if(pos < 0) return pos; /* mh == NULL is covered in mpg123_tell() */
+ if(input_offset == NULL)
+ {
+ mh->err = MPG123_NULL_POINTER;
+ return MPG123_ERR;
+ }
+
+ if((b=init_track(mh)) < 0) return b; /* May need more to do anything at all. */
+
+ switch(whence)
+ {
+ case SEEK_CUR: pos += sampleoff; break;
+ case SEEK_SET: pos = sampleoff; break;
+ case SEEK_END:
+#ifdef GAPLESS
+ if(mh->end_os >= 0) pos = SAMPLE_ADJUST(mh->end_os) - sampleoff;
+#else
+ if(mh->track_frames > 0) pos = SAMPLE_ADJUST(frame_outs(mh, mh->track_frames)) - sampleoff;
+#endif
+ else
+ {
+ mh->err = MPG123_NO_SEEK_FROM_END;
+ return MPG123_ERR;
+ }
+ break;
+ default: mh->err = MPG123_BAD_WHENCE; return MPG123_ERR;
+ }
+ if(pos < 0) pos = 0;
+ frame_set_seek(mh, SAMPLE_UNADJUST(pos));
+ pos = SEEKFRAME(mh);
+ mh->buffer.fill = 0;
+
+ /* Shortcuts without modifying input stream. */
+ *input_offset = mh->rdat.buffer.fileoff + mh->rdat.buffer.size;
+ if(mh->num < mh->firstframe) mh->to_decode = FALSE;
+ if(mh->num == pos && mh->to_decode) goto feedseekend;
+ if(mh->num == pos-1) goto feedseekend;
+ /* Whole way. */
+ *input_offset = feed_set_pos(mh, frame_index_find(mh, SEEKFRAME(mh), &pos));
+ mh->num = pos-1; /* The next read frame will have num = pos. */
+ if(*input_offset < 0) return MPG123_ERR;
+
+feedseekend:
+ return mpg123_tell(mh);
+}
+
+off_t attribute_align_arg mpg123_seek_frame(mpg123_handle *mh, off_t offset, int whence)
+{
+ int b;
+ off_t pos = 0;
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ if((b=init_track(mh)) < 0) return b;
+
+ /* Could play games here with to_decode... */
+ pos = mh->num;
+ switch(whence)
+ {
+ case SEEK_CUR: pos += offset; break;
+ case SEEK_SET: pos = offset; break;
+ case SEEK_END:
+ if(mh->track_frames > 0) pos = mh->track_frames - offset;
+ else
+ {
+ mh->err = MPG123_NO_SEEK_FROM_END;
+ return MPG123_ERR;
+ }
+ break;
+ default:
+ mh->err = MPG123_BAD_WHENCE;
+ return MPG123_ERR;
+ }
+ if(pos < 0) pos = 0;
+ /* Hm, do we need to seek right past the end? */
+ else if(mh->track_frames > 0 && pos >= mh->track_frames) pos = mh->track_frames;
+
+ frame_set_frameseek(mh, pos);
+ pos = do_the_seek(mh);
+ if(pos < 0) return pos;
+
+ return mpg123_tellframe(mh);
+}
+
+int attribute_align_arg mpg123_set_filesize(mpg123_handle *mh, off_t size)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+
+ mh->rdat.filelen = size;
+ return MPG123_OK;
+}
+
+off_t attribute_align_arg mpg123_length(mpg123_handle *mh)
+{
+ int b;
+ off_t length;
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ b = init_track(mh);
+ if(b<0) return b;
+ if(mh->track_samples > -1) length = mh->track_samples;
+ else if(mh->track_frames > 0) length = mh->track_frames*spf(mh);
+ else if(mh->rdat.filelen > 0) /* Let the case of 0 length just fall through. */
+ {
+ /* A bad estimate. Ignoring tags 'n stuff. */
+ double bpf = mh->mean_framesize ? mh->mean_framesize : compute_bpf(mh);
+ length = (off_t)((double)(mh->rdat.filelen)/bpf*spf(mh));
+ }
+ else if(mh->rdat.filelen == 0) return mpg123_tell(mh); /* we could be in feeder mode */
+ else return MPG123_ERR; /* No length info there! */
+
+ length = frame_ins2outs(mh, length);
+#ifdef GAPLESS
+ if(mh->end_os > 0 && length > mh->end_os) length = mh->end_os;
+ length -= mh->begin_os;
+#endif
+ return length;
+}
+
+int attribute_align_arg mpg123_scan(mpg123_handle *mh)
+{
+ int b;
+ off_t backframe;
+ int to_decode, to_ignore;
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ if(!(mh->rdat.flags & READER_SEEKABLE)){ mh->err = MPG123_NO_SEEK; return MPG123_ERR; }
+ /* Scan through the _whole_ file, since the current position is no count but computed assuming constant samples per frame. */
+ /* Also, we can just keep the current buffer and seek settings. Just operate on input frames here. */
+ b = init_track(mh); /* mh->num >= 0 !! */
+ if(b<0)
+ {
+ if(b == MPG123_DONE) return MPG123_OK;
+ else return MPG123_ERR; /* Must be error here, NEED_MORE is not for seekable streams. */
+ }
+ backframe = mh->num;
+ to_decode = mh->to_decode;
+ to_ignore = mh->to_ignore;
+ b = mh->rd->seek_frame(mh, 0);
+ if(b<0 || mh->num != 0) return MPG123_ERR;
+ /* One frame must be there now. */
+ mh->track_frames = 1;
+ mh->track_samples = spf(mh); /* Internal samples. */
+ while(read_frame(mh) == 1)
+ {
+ ++mh->track_frames;
+ mh->track_samples += spf(mh);
+ }
+ b = mh->rd->seek_frame(mh, backframe);
+ if(b<0 || mh->num != backframe) return MPG123_ERR;
+ mh->to_decode = to_decode;
+ mh->to_ignore = to_ignore;
+ return MPG123_OK;
+}
+
+int attribute_align_arg mpg123_meta_check(mpg123_handle *mh)
+{
+ if(mh != NULL) return mh->metaflags;
+ else return 0;
+}
+
+int attribute_align_arg mpg123_id3(mpg123_handle *mh, mpg123_id3v1 **v1, mpg123_id3v2 **v2)
+{
+ ALIGNCHECK(mh);
+ if(v1 != NULL) *v1 = NULL;
+ if(v2 != NULL) *v2 = NULL;
+ if(mh == NULL) return MPG123_ERR;
+
+ if(mh->metaflags & MPG123_ID3)
+ {
+ id3_link(mh);
+ if(v1 != NULL && mh->rdat.flags & READER_ID3TAG) *v1 = (mpg123_id3v1*) mh->id3buf;
+ if(v2 != NULL)
+#ifdef NO_ID3V2
+ *v2 = NULL;
+#else
+ *v2 = &mh->id3v2;
+#endif
+
+ mh->metaflags |= MPG123_ID3;
+ mh->metaflags &= ~MPG123_NEW_ID3;
+ }
+ return MPG123_OK;
+}
+
+int attribute_align_arg mpg123_icy(mpg123_handle *mh, char **icy_meta)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+#ifndef NO_ICY
+ if(icy_meta == NULL)
+ {
+ mh->err = MPG123_NULL_POINTER;
+ return MPG123_ERR;
+ }
+ *icy_meta = NULL;
+
+ if(mh->metaflags & MPG123_ICY)
+ {
+ *icy_meta = mh->icy.data;
+ mh->metaflags |= MPG123_ICY;
+ mh->metaflags &= ~MPG123_NEW_ICY;
+ }
+ return MPG123_OK;
+#else
+ mh->err = MPG123_MISSING_FEATURE;
+ return MPG123_ERR;
+#endif
+}
+
+char* attribute_align_arg mpg123_icy2utf8(const char* icy_text)
+{
+#ifndef NO_ICY
+ return icy2utf8(icy_text);
+#else
+ return NULL;
+#endif
+}
+
+
+int attribute_align_arg mpg123_index(mpg123_handle *mh, off_t **offsets, off_t *step, size_t *fill)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ if(offsets == NULL || step == NULL || fill == NULL)
+ {
+ mh->err = MPG123_BAD_INDEX_PAR;
+ return MPG123_ERR;
+ }
+#ifdef FRAME_INDEX
+ *offsets = mh->index.data;
+ *step = mh->index.step;
+ *fill = mh->index.fill;
+#else
+ *offsets = NULL;
+ *step = 0;
+ *fill = 0;
+#endif
+ return MPG123_OK;
+}
+
+int attribute_align_arg mpg123_close(mpg123_handle *mh)
+{
+ ALIGNCHECK(mh);
+ if(mh == NULL) return MPG123_ERR;
+ if(mh->rd != NULL && mh->rd->close != NULL) mh->rd->close(mh);
+ mh->rd = NULL;
+ if(mh->new_format)
+ {
+ debug("Hey, we are closing a track before the new format has been queried...");
+ invalidate_format(&mh->af);
+ mh->new_format = 0;
+ }
+ return MPG123_OK;
+}
+
+void attribute_align_arg mpg123_delete(mpg123_handle *mh)
+{
+ if(mh != NULL)
+ {
+ mpg123_close(mh);
+ frame_exit(mh); /* free buffers in frame */
+ free(mh); /* free struct; cast? */
+ }
+}
+
+static const char *mpg123_error[] =
+{
+ "No error... (code 0)",
+ "Unable to set up output format! (code 1)",
+ "Invalid channel number specified. (code 2)",
+ "Invalid sample rate specified. (code 3)",
+ "Unable to allocate memory for 16 to 8 converter table! (code 4)",
+ "Bad parameter id! (code 5)",
+ "Bad buffer given -- invalid pointer or too small size. (code 6)",
+ "Out of memory -- some malloc() failed. (code 7)",
+ "You didn't initialize the library! (code 8)",
+ "Invalid decoder choice. (code 9)",
+ "Invalid mpg123 handle. (code 10)",
+ "Unable to initialize frame buffers (out of memory?)! (code 11)",
+ "Invalid RVA mode. (code 12)",
+ "This build doesn't support gapless decoding. (code 13)",
+ "Not enough buffer space. (code 14)",
+ "Incompatible numeric data types. (code 15)",
+ "Bad equalizer band. (code 16)",
+ "Null pointer given where valid storage address needed. (code 17)",
+ "Error reading the stream. (code 18)",
+ "Cannot seek from end (end is not known). (code 19)",
+ "Invalid 'whence' for seek function. (code 20)",
+ "Build does not support stream timeouts. (code 21)",
+ "File access error. (code 22)",
+ "Seek not supported by stream. (code 23)",
+ "No stream opened. (code 24)",
+ "Bad parameter handle. (code 25)",
+ "Invalid parameter addresses for index retrieval. (code 26)",
+ "Lost track in the bytestream and did not attempt resync. (code 27)",
+ "Failed to find valid MPEG data within limit on resync. (code 28)",
+ "No 8bit encoding possible. (code 29)",
+ "Stack alignment is not good. (code 30)",
+ "You gave me a NULL buffer? (code 31)",
+ "File position is screwed up, please do an absolute seek (code 32)",
+ "Inappropriate NULL-pointer provided.",
+ "Bad key value given.",
+ "There is no frame index (disabled in this build).",
+ "Frame index operation failed.",
+ "Decoder setup failed (invalid combination of settings?)",
+ "Feature not in this build."
+ ,"Some bad value has been provided."
+ ,"Low-level seeking has failed (call to lseek(), usually)."
+};
+
+const char* attribute_align_arg mpg123_plain_strerror(int errcode)
+{
+ if(errcode >= 0 && errcode < sizeof(mpg123_error)/sizeof(char*))
+ return mpg123_error[errcode];
+ else switch(errcode)
+ {
+ case MPG123_ERR:
+ return "A generic mpg123 error.";
+ case MPG123_DONE:
+ return "Message: I am done with this track.";
+ case MPG123_NEED_MORE:
+ return "Message: Feed me more input data!";
+ case MPG123_NEW_FORMAT:
+ return "Message: Prepare for a changed audio format (query the new one)!";
+ default:
+ return "I have no idea - an unknown error code!";
+ }
+}
+
+int attribute_align_arg mpg123_errcode(mpg123_handle *mh)
+{
+ if(mh != NULL) return mh->err;
+ return MPG123_BAD_HANDLE;
+}
+
+const char* attribute_align_arg mpg123_strerror(mpg123_handle *mh)
+{
+ return mpg123_plain_strerror(mpg123_errcode(mh));
+}
diff --git a/src/libmpg123/libmpg123.sym.in b/src/libmpg123/libmpg123.sym.in
new file mode 100644
index 0000000..77af84a
--- /dev/null
+++ b/src/libmpg123/libmpg123.sym.in
@@ -0,0 +1,76 @@
+mpg123_init
+mpg123_exit
+mpg123_new
+mpg123_delete
+mpg123_param
+mpg123_getparam
+mpg123_plain_strerror
+mpg123_strerror
+mpg123_errcode
+mpg123_decoders
+mpg123_supported_decoders
+mpg123_decoder
+mpg123_current_decoder
+mpg123_rates
+mpg123_encodings
+mpg123_format_none
+mpg123_format_all
+mpg123_format
+mpg123_format_support
+mpg123_getformat
+mpg123_open_feed
+mpg123_close
+mpg123_read
+mpg123_feed
+mpg123_decode
+mpg123_eq
+mpg123_geteq
+mpg123_reset_eq
+mpg123_volume
+mpg123_volume_change
+mpg123_getvolume
+mpg123_info
+mpg123_safe_buffer
+mpg123_scan
+mpg123_tpf
+mpg123_clip
+mpg123_getstate
+mpg123_init_string
+mpg123_free_string
+mpg123_resize_string
+mpg123_grow_string
+mpg123_copy_string
+mpg123_add_string
+mpg123_add_substring
+mpg123_set_string
+mpg123_set_substring
+mpg123_meta_check
+mpg123_id3
+mpg123_icy
+mpg123_icy2utf8
+mpg123_parnew
+mpg123_new_pars
+mpg123_delete_pars
+mpg123_fmt_none
+mpg123_fmt_all
+mpg123_fmt
+mpg123_fmt_support
+mpg123_par
+mpg123_getpar
+mpg123_replace_buffer
+mpg123_outblock
+mpg123_replace_reader
+mpg123_open@LARGEFILE_SUFFIX@
+mpg123_open_fd@LARGEFILE_SUFFIX@
+mpg123_decode_frame@LARGEFILE_SUFFIX@
+mpg123_tell@LARGEFILE_SUFFIX@
+mpg123_tellframe@LARGEFILE_SUFFIX@
+mpg123_tell_stream@LARGEFILE_SUFFIX@
+mpg123_seek@LARGEFILE_SUFFIX@
+mpg123_feedseek@LARGEFILE_SUFFIX@
+mpg123_seek_frame@LARGEFILE_SUFFIX@
+mpg123_timeframe@LARGEFILE_SUFFIX@
+mpg123_index@LARGEFILE_SUFFIX@
+mpg123_position@LARGEFILE_SUFFIX@
+mpg123_length@LARGEFILE_SUFFIX@
+mpg123_set_filesize@LARGEFILE_SUFFIX@
diff --git a/src/libmpg123/mangle.h b/src/libmpg123/mangle.h
new file mode 100644
index 0000000..e4ae586
--- /dev/null
+++ b/src/libmpg123/mangle.h
@@ -0,0 +1,55 @@
+/*
+ mangle: support defines for preprocessed assembler
+
+ copyright 1995-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+
+ This once started out as mangle.h from MPlayer, but you can't really call it derived work... the small part that in principle stems from MPlayer also being not very special (once you decided to use such a header at all, it's quite obvious material).
+*/
+
+#ifndef __MANGLE_H
+#define __MANGLE_H
+
+#include "config.h"
+
+#ifdef CCALIGN
+#define MOVUAPS movaps
+#else
+#define MOVUAPS movups
+#endif
+
+#ifdef ASMALIGN_EXP
+#define ALIGN4 .align 2
+#define ALIGN8 .align 3
+#define ALIGN16 .align 4
+#define ALIGN32 .align 5
+#else
+#define ALIGN4 .align 4
+#define ALIGN8 .align 8
+#define ALIGN16 .align 16
+#define ALIGN32 .align 32
+#endif
+
+/* Feel free to add more to the list, eg. a.out IMO */
+#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__OS2__) || defined(_MSC_VER) || \
+ (defined(__OpenBSD__) && !defined(__ELF__)) || defined(__APPLE__)
+#define ASM_NAME(a) _##a
+#define ASM_VALUE(a) $_##a
+#else
+#define ASM_NAME(a) a
+#define ASM_VALUE(a) $##a
+#endif
+
+#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__APPLE__)
+#define COMM(a,b,c) .comm a,b
+#else
+#define COMM(a,b,c) .comm a,b,c
+#endif
+/* more hacks for macosx; no .bss ... */
+#ifdef __APPLE__
+#define BSS .data
+#else
+#define BSS .bss
+#endif
+#endif /* !__MANGLE_H */
+
diff --git a/src/libmpg123/mpg123.h.in b/src/libmpg123/mpg123.h.in
new file mode 100644
index 0000000..d3485ad
--- /dev/null
+++ b/src/libmpg123/mpg123.h.in
@@ -0,0 +1,878 @@
+/*
+ libmpg123: MPEG Audio Decoder library (version @PACKAGE_VERSION@)
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+*/
+
+#ifndef MPG123_LIB_H
+#define MPG123_LIB_H
+
+/** \file mpg123.h The header file for the libmpg123 MPEG Audio decoder */
+
+/* These aren't actually in use... seems to work without using libtool. */
+#ifdef BUILD_MPG123_DLL
+/* The dll exports. */
+#define EXPORT __declspec(dllexport)
+#else
+#ifdef LINK_MPG123_DLL
+/* The exe imports. */
+#define EXPORT __declspec(dllimport)
+#else
+/* Nothing on normal/UNIX builds */
+#define EXPORT
+#endif
+#endif
+
+#ifndef MPG123_NO_CONFIGURE /* Enable use of this file without configure. */
+@INCLUDE_STDLIB_H@
+@INCLUDE_SYS_TYPE_H@
+
+#if @LARGEFILE_SWITCH@ /* If we need trickery for large file support. */
+
+/* Check for compiling programs agains this libmpg123. */
+#if (defined _FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS+0 == @LARGEFILE_BITS@)
+/* ...all is fine, having enabled large file support and also the correct sort of which. */
+#else
+#error "Mismatch in large file setup! Enable/disable large file support appropriately to use libmpg123."
+#endif
+
+/* Redefine names of functions dealing with file and file offsets
+ ...everything handling off_t, for example, which can be 32 or 64 bits. */
+
+#define mpg123_open mpg123_open@LARGEFILE_SUFFIX@
+#define mpg123_open_fd mpg123_open_fd@LARGEFILE_SUFFIX@
+#define mpg123_decode_frame mpg123_decode_frame@LARGEFILE_SUFFIX@
+#define mpg123_tell mpg123_tell@LARGEFILE_SUFFIX@
+#define mpg123_tellframe mpg123_tellframe@LARGEFILE_SUFFIX@
+#define mpg123_tell_stream mpg123_tell_stream@LARGEFILE_SUFFIX@
+#define mpg123_seek mpg123_seek@LARGEFILE_SUFFIX@
+#define mpg123_feedseek mpg123_feedseek@LARGEFILE_SUFFIX@
+#define mpg123_seek_frame mpg123_seek_frame@LARGEFILE_SUFFIX@
+#define mpg123_timeframe mpg123_timeframe@LARGEFILE_SUFFIX@
+#define mpg123_index mpg123_index@LARGEFILE_SUFFIX@
+#define mpg123_position mpg123_position@LARGEFILE_SUFFIX@
+#define mpg123_length mpg123_length@LARGEFILE_SUFFIX@
+#define mpg123_set_filesize mpg123_set_filesize@LARGEFILE_SUFFIX@
+
+#endif /* LARGEFILE_SWITCH */
+
+#endif /* MPG123_NO_CONFIGURE */
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** \defgroup mpg123_init mpg123 library and handle setup
+ *
+ * Functions to initialise and shutdown the mpg123 library and handles.
+ * The parameters of handles have workable defaults, you only have to tune them when you want to tune something;-)
+ * Tip: Use a RVA setting...
+ *
+ * @{
+ */
+
+/** Opaque structure for the libmpg123 decoder handle. */
+struct mpg123_handle_struct;
+
+/** Opaque structure for the libmpg123 decoder handle.
+ * Most functions take a pointer to a mpg123_handle as first argument and operate on its data in an object-oriented manner.
+ */
+typedef struct mpg123_handle_struct mpg123_handle;
+
+/** Function to initialise the mpg123 library.
+ * This function is not thread-safe. Call it exactly once per process, before any other (possibly threaded) work with the library.
+ *
+ * \return MPG123_OK if successful, otherwise an error number.
+ */
+EXPORT int mpg123_init(void);
+
+/** Function to close down the mpg123 library.
+ * This function is not thread-safe. Call it exactly once per process, before any other (possibly threaded) work with the library. */
+EXPORT void mpg123_exit(void);
+
+/** Create a handle with optional choice of decoder (named by a string, see mpg123_decoders() or mpg123_supported_decoders()).
+ * and optional retrieval of an error code to feed to mpg123_plain_strerror().
+ * Optional means: Any of or both the parameters may be NULL.
+ *
+ * \return Non-NULL pointer when successful.
+ */
+EXPORT mpg123_handle *mpg123_new(const char* decoder, int *error);
+
+/** Delete handle, mh is either a valid mpg123 handle or NULL. */
+EXPORT void mpg123_delete(mpg123_handle *mh);
+
+/** Enumeration of the parameters types that it is possible to set/get. */
+enum mpg123_parms
+{
+ MPG123_VERBOSE, /**< set verbosity value for enabling messages to stderr, >= 0 makes sense (integer) */
+ MPG123_FLAGS, /**< set all flags, p.ex val = MPG123_GAPLESS|MPG123_MONO_MIX (integer) */
+ MPG123_ADD_FLAGS, /**< add some flags (integer) */
+ MPG123_FORCE_RATE, /**< when value > 0, force output rate to that value (integer) */
+ MPG123_DOWN_SAMPLE, /**< 0=native rate, 1=half rate, 2=quarter rate (integer) */
+ MPG123_RVA, /**< one of the RVA choices above (integer) */
+ MPG123_DOWNSPEED, /**< play a frame N times (integer) */
+ MPG123_UPSPEED, /**< play every Nth frame (integer) */
+ MPG123_START_FRAME, /**< start with this frame (skip frames before that, integer) */
+ MPG123_DECODE_FRAMES, /**< decode only this number of frames (integer) */
+ MPG123_ICY_INTERVAL, /**< stream contains ICY metadata with this interval (integer) */
+ MPG123_OUTSCALE, /**< the scale for output samples (amplitude - integer or float according to mpg123 output format, normally integer) */
+ MPG123_TIMEOUT, /**< timeout for reading from a stream (not supported on win32, integer) */
+ MPG123_REMOVE_FLAGS, /**< remove some flags (inverse of MPG123_ADD_FLAGS, integer) */
+ MPG123_RESYNC_LIMIT, /**< Try resync on frame parsing for that many bytes or until end of stream (<0 ... integer). */
+ MPG123_INDEX_SIZE /**< Set the frame index size (if supported). Values <0 mean that the index is allowed to grow dynamically in these steps (in positive direction, of course) -- Use this when you really want a full index with every individual frame. */
+ ,MPG123_PREFRAMES /**< Decode/ignore that many frames in advance for layer 3. This is needed to fill bit reservoir after seeking, for example (but also at least one frame in advance is needed to have all "normal" data for layer 3). Give a positive integer value, please.*/
+};
+
+/** Flag bits for MPG123_FLAGS, use the usual binary or to combine. */
+enum mpg123_param_flags
+{
+ MPG123_FORCE_MONO = 0x7 /**< 0111 Force some mono mode: This is a test bitmask for seeing if any mono forcing is active. */
+ ,MPG123_MONO_LEFT = 0x1 /**< 0001 Force playback of left channel only. */
+ ,MPG123_MONO_RIGHT = 0x2 /**< 0010 Force playback of right channel only. */
+ ,MPG123_MONO_MIX = 0x4 /**< 0100 Force playback of mixed mono. */
+ ,MPG123_FORCE_STEREO = 0x8 /**< 1000 Force stereo output. */
+ ,MPG123_FORCE_8BIT = 0x10 /**< 00010000 Force 8bit formats. */
+ ,MPG123_QUIET = 0x20 /**< 00100000 Suppress any printouts (overrules verbose). */
+ ,MPG123_GAPLESS = 0x40 /**< 01000000 Enable gapless decoding (default on if libmpg123 has support). */
+ ,MPG123_NO_RESYNC = 0x80 /**< 10000000 Disable resync stream after error. */
+ ,MPG123_SEEKBUFFER = 0x100 /**< 000100000000 Enable small buffer on non-seekable streams to allow some peek-ahead (for better MPEG sync). */
+ ,MPG123_FUZZY = 0x200 /**< 001000000000 Enable fuzzy seeks (guessing byte offsets or using approximate seek points from Xing TOC) */
+ ,MPG123_FORCE_FLOAT = 0x400 /**< 010000000000 Force floating point output (32 or 64 bits depends on mpg123 internal precision). */
+};
+
+/** choices for MPG123_RVA */
+enum mpg123_param_rva
+{
+ MPG123_RVA_OFF = 0 /**< RVA disabled (default). */
+ ,MPG123_RVA_MIX = 1 /**< Use mix/track/radio gain. */
+ ,MPG123_RVA_ALBUM = 2 /**< Use album/audiophile gain */
+ ,MPG123_RVA_MAX = MPG123_RVA_ALBUM /**< The maximum RVA code, may increase in future. */
+};
+
+/* TODO: Assess the possibilities and troubles of changing parameters during playback. */
+
+/** Set a specific parameter, for a specific mpg123_handle, using a parameter
+ * type key chosen from the mpg123_parms enumeration, to the specified value. */
+EXPORT int mpg123_param(mpg123_handle *mh, enum mpg123_parms type, long value, double fvalue);
+
+/** Get a specific parameter, for a specific mpg123_handle.
+ * See the mpg123_parms enumeration for a list of available parameters. */
+EXPORT int mpg123_getparam(mpg123_handle *mh, enum mpg123_parms type, long *val, double *fval);
+
+/* @} */
+
+
+/** \defgroup mpg123_error mpg123 error handling
+ *
+ * Functions to get text version of the error numbers and an enumeration
+ * of the error codes returned by libmpg123.
+ *
+ * Most functions operating on a mpg123_handle simply return MPG123_OK on success and MPG123_ERR on failure (setting the internal error variable of the handle to the specific error code).
+ * Decoding/seek functions may also return message codes MPG123_DONE, MPG123_NEW_FORMAT and MPG123_NEED_MORE (please read up on these on how to react!).
+ * The positive range of return values is used for "useful" values when appropriate.
+ *
+ * @{
+ */
+
+/** Enumeration of the message and error codes and returned by libmpg123 functions. */
+enum mpg123_errors
+{
+ MPG123_DONE=-12, /**< Message: Track ended. Stop decoding. */
+ MPG123_NEW_FORMAT=-11, /**< Message: Output format will be different on next call. Note that some libmpg123 versions between 1.4.3 and 1.8.0 insist on you calling mpg123_getformat() after getting this message code. Newer verisons behave like advertised: You have the chance to call mpg123_getformat(), but you can also just continue decoding and get your data. */
+ MPG123_NEED_MORE=-10, /**< Message: For feed reader: "Feed me more!" (call mpg123_feed() or mpg123_decode() with some new input data). */
+ MPG123_ERR=-1, /**< Generic Error */
+ MPG123_OK=0, /**< Success */
+ MPG123_BAD_OUTFORMAT, /**< Unable to set up output format! */
+ MPG123_BAD_CHANNEL, /**< Invalid channel number specified. */
+ MPG123_BAD_RATE, /**< Invalid sample rate specified. */
+ MPG123_ERR_16TO8TABLE, /**< Unable to allocate memory for 16 to 8 converter table! */
+ MPG123_BAD_PARAM, /**< Bad parameter id! */
+ MPG123_BAD_BUFFER, /**< Bad buffer given -- invalid pointer or too small size. */
+ MPG123_OUT_OF_MEM, /**< Out of memory -- some malloc() failed. */
+ MPG123_NOT_INITIALIZED, /**< You didn't initialize the library! */
+ MPG123_BAD_DECODER, /**< Invalid decoder choice. */
+ MPG123_BAD_HANDLE, /**< Invalid mpg123 handle. */
+ MPG123_NO_BUFFERS, /**< Unable to initialize frame buffers (out of memory?). */
+ MPG123_BAD_RVA, /**< Invalid RVA mode. */
+ MPG123_NO_GAPLESS, /**< This build doesn't support gapless decoding. */
+ MPG123_NO_SPACE, /**< Not enough buffer space. */
+ MPG123_BAD_TYPES, /**< Incompatible numeric data types. */
+ MPG123_BAD_BAND, /**< Bad equalizer band. */
+ MPG123_ERR_NULL, /**< Null pointer given where valid storage address needed. */
+ MPG123_ERR_READER, /**< Error reading the stream. */
+ MPG123_NO_SEEK_FROM_END,/**< Cannot seek from end (end is not known). */
+ MPG123_BAD_WHENCE, /**< Invalid 'whence' for seek function.*/
+ MPG123_NO_TIMEOUT, /**< Build does not support stream timeouts. */
+ MPG123_BAD_FILE, /**< File access error. */
+ MPG123_NO_SEEK, /**< Seek not supported by stream. */
+ MPG123_NO_READER, /**< No stream opened. */
+ MPG123_BAD_PARS, /**< Bad parameter handle. */
+ MPG123_BAD_INDEX_PAR, /**< Bad parameters to mpg123_index() */
+ MPG123_OUT_OF_SYNC, /**< Lost track in bytestream and did not try to resync. */
+ MPG123_RESYNC_FAIL, /**< Resync failed to find valid MPEG data. */
+ MPG123_NO_8BIT, /**< No 8bit encoding possible. */
+ MPG123_BAD_ALIGN, /**< Stack aligmnent error */
+ MPG123_NULL_BUFFER, /**< NULL input buffer with non-zero size... */
+ MPG123_NO_RELSEEK, /**< Relative seek not possible (screwed up file offset) */
+ MPG123_NULL_POINTER, /**< You gave a null pointer somewhere where you shouldn't have. */
+ MPG123_BAD_KEY, /**< Bad key value given. */
+ MPG123_NO_INDEX, /**< No frame index in this build. */
+ MPG123_INDEX_FAIL, /**< Something with frame index went wrong. */
+ MPG123_BAD_DECODER_SETUP, /**< Something prevents a proper decoder setup */
+ MPG123_MISSING_FEATURE /**< This feature has not been built into libmpg123. */
+ ,MPG123_BAD_VALUE /**< A bad value has been given, somewhere. */
+ ,MPG123_LSEEK_FAILED /**< Low-level seek failed. */
+};
+
+/** Return a string describing that error errcode means. */
+EXPORT const char* mpg123_plain_strerror(int errcode);
+
+/** Give string describing what error has occured in the context of handle mh.
+ * When a function operating on an mpg123 handle returns MPG123_ERR, you should check for the actual reason via
+ * char *errmsg = mpg123_strerror(mh)
+ * This function will catch mh == NULL and return the message for MPG123_BAD_HANDLE. */
+EXPORT const char* mpg123_strerror(mpg123_handle *mh);
+
+/** Return the plain errcode intead of a string. */
+EXPORT int mpg123_errcode(mpg123_handle *mh);
+
+/*@}*/
+
+
+/** \defgroup mpg123_decoder mpg123 decoder selection
+ *
+ * Functions to list and select the available decoders.
+ * Perhaps the most prominent feature of mpg123: You have several (optimized) decoders to choose from (on x86 and PPC (MacOS) systems, that is).
+ *
+ * @{
+ */
+
+/** Return a NULL-terminated array of generally available decoder names (plain 8bit ASCII). */
+EXPORT const char **mpg123_decoders();
+
+/** Return a NULL-terminated array of the decoders supported by the CPU (plain 8bit ASCII). */
+EXPORT const char **mpg123_supported_decoders();
+
+/** Set the chosen decoder to 'decoder_name' */
+EXPORT int mpg123_decoder(mpg123_handle *mh, const char* decoder_name);
+
+/** Get the currently active decoder engine name.
+ The active decoder engine can vary depening on output constraints,
+ mostly non-resampling, integer output is accelerated via 3DNow & Co. but for other modes a fallback engine kicks in.
+ Note that this can return a decoder that is ony active in the hidden and not available as decoder choice from the outside.
+ \return The decoder name or NULL on error. */
+EXPORT const char* mpg123_current_decoder(mpg123_handle *mh);
+
+/*@}*/
+
+
+/** \defgroup mpg123_output mpg123 output audio format
+ *
+ * Functions to get and select the format of the decoded audio.
+ *
+ * @{
+ */
+
+/** An enum over all sample types possibly known to mpg123.
+ * The values are designed as bit flags to allow bitmasking for encoding families.
+ *
+ * Note that (your build of) libmpg123 does not necessarily support all these.
+ * Usually, you can expect the 8bit encodings and signed 16 bit.
+ * Also 32bit float will be usual beginning with mpg123-1.7.0 .
+ * What you should bear in mind is that (SSE, etc) optimized routines are just for
+ * signed 16bit (and 8bit derived from that). Other formats use plain C code.
+ *
+ * All formats are in native byte order. On a little endian machine this should mean
+ * that you can just feed the MPG123_ENC_SIGNED_32 data to common 24bit hardware that
+ * ignores the lowest byte (or you could choose to do rounding with these lower bits).
+ */
+enum mpg123_enc_enum
+{
+ MPG123_ENC_8 = 0x00f /**< 0000 0000 1111 Some 8 bit integer encoding. */
+ ,MPG123_ENC_16 = 0x040 /**< 0000 0100 0000 Some 16 bit integer encoding. */
+ ,MPG123_ENC_32 = 0x100 /**< 0001 0000 0000 Some 32 bit integer encoding. */
+ ,MPG123_ENC_SIGNED = 0x080 /**< 0000 1000 0000 Some signed integer encoding. */
+ ,MPG123_ENC_FLOAT = 0xe00 /**< 1110 0000 0000 Some float encoding. */
+ ,MPG123_ENC_SIGNED_16 = (MPG123_ENC_16|MPG123_ENC_SIGNED|0x10) /**< 1101 0000 signed 16 bit */
+ ,MPG123_ENC_UNSIGNED_16 = (MPG123_ENC_16|0x20) /**< 0110 0000 unsigned 16 bit */
+ ,MPG123_ENC_UNSIGNED_8 = 0x01 /**< 0000 0001 unsigned 8 bit */
+ ,MPG123_ENC_SIGNED_8 = (MPG123_ENC_SIGNED|0x02) /**< 1000 0010 signed 8 bit */
+ ,MPG123_ENC_ULAW_8 = 0x04 /**< 0000 0100 ulaw 8 bit */
+ ,MPG123_ENC_ALAW_8 = 0x08 /**< 0000 1000 alaw 8 bit */
+ ,MPG123_ENC_SIGNED_32 = MPG123_ENC_32|MPG123_ENC_SIGNED|0x1000 /**< 0001 0001 1000 0000 signed 32 bit */
+ ,MPG123_ENC_UNSIGNED_32 = MPG123_ENC_32|0x2000 /**< 0010 0001 0000 0000 unsigned 32 bit */
+ ,MPG123_ENC_FLOAT_32 = 0x200 /**< 0010 0000 0000 32bit float */
+ ,MPG123_ENC_FLOAT_64 = 0x400 /**< 0100 0000 0000 64bit float */
+ ,MPG123_ENC_ANY = ( MPG123_ENC_SIGNED_16 | MPG123_ENC_UNSIGNED_16 | MPG123_ENC_UNSIGNED_8
+ | MPG123_ENC_SIGNED_8 | MPG123_ENC_ULAW_8 | MPG123_ENC_ALAW_8
+ | MPG123_ENC_SIGNED_32 | MPG123_ENC_UNSIGNED_32
+ | MPG123_ENC_FLOAT_32 | MPG123_ENC_FLOAT_64 ) /**< any encoding */
+};
+
+/** They can be combined into one number (3) to indicate mono and stereo... */
+enum mpg123_channelcount
+{
+ MPG123_MONO = 1
+ ,MPG123_STEREO = 2
+};
+
+/** An array of supported standard sample rates
+ * These are possible native sample rates of MPEG audio files.
+ * You can still force mpg123 to resample to a different one, but by default you will only get audio in one of these samplings.
+ * \param list Store a pointer to the sample rates array there.
+ * \param number Store the number of sample rates there. */
+EXPORT void mpg123_rates(const long **list, size_t *number);
+
+/** An array of supported audio encodings.
+ * An audio encoding is one of the fully qualified members of mpg123_enc_enum (MPG123_ENC_SIGNED_16, not MPG123_SIGNED).
+ * \param list Store a pointer to the encodings array there.
+ * \param number Store the number of encodings there. */
+EXPORT void mpg123_encodings(const int **list, size_t *number);
+
+/** Configure a mpg123 handle to accept no output format at all,
+ * use before specifying supported formats with mpg123_format */
+EXPORT int mpg123_format_none(mpg123_handle *mh);
+
+/** Configure mpg123 handle to accept all formats
+ * (also any custom rate you may set) -- this is default. */
+EXPORT int mpg123_format_all(mpg123_handle *mh);
+
+/** Set the audio format support of a mpg123_handle in detail:
+ * \param mh audio decoder handle
+ * \param rate The sample rate value (in Hertz).
+ * \param channels A combination of MPG123_STEREO and MPG123_MONO.
+ * \param encodings A combination of accepted encodings for rate and channels, p.ex MPG123_ENC_SIGNED16 | MPG123_ENC_ULAW_8 (or 0 for no support). Please note that some encodings may not be supported in the library build and thus will be ignored here.
+ * \return MPG123_OK on success, MPG123_ERR if there was an error. */
+EXPORT int mpg123_format(mpg123_handle *mh, long rate, int channels, int encodings);
+
+/** Check to see if a specific format at a specific rate is supported
+ * by mpg123_handle.
+ * \return 0 for no support (that includes invalid parameters), MPG123_STEREO,
+ * MPG123_MONO or MPG123_STEREO|MPG123_MONO. */
+EXPORT int mpg123_format_support(mpg123_handle *mh, long rate, int encoding);
+
+/** Get the current output format written to the addresses givenr. */
+EXPORT int mpg123_getformat(mpg123_handle *mh, long *rate, int *channels, int *encoding);
+
+/*@}*/
+
+
+/** \defgroup mpg123_input mpg123 file input and decoding
+ *
+ * Functions for input bitstream and decoding operations.
+ * Decoding/seek functions may also return message codes MPG123_DONE, MPG123_NEW_FORMAT and MPG123_NEED_MORE (please read up on these on how to react!).
+ * @{
+ */
+
+/* reading samples / triggering decoding, possible return values: */
+/** Enumeration of the error codes returned by libmpg123 functions. */
+
+/** Open and prepare to decode the specified file by filesystem path.
+ * This does not open HTTP urls; libmpg123 contains no networking code.
+ * If you want to decode internet streams, use mpg123_open_fd() or mpg123_open_feed().
+ */
+EXPORT int mpg123_open(mpg123_handle *mh, const char *path);
+
+/** Use an already opened file descriptor as the bitstream input
+ * mpg123_close() will _not_ close the file descriptor.
+ */
+EXPORT int mpg123_open_fd(mpg123_handle *mh, int fd);
+
+/** Open a new bitstream and prepare for direct feeding
+ * This works together with mpg123_decode(); you are responsible for reading and feeding the input bitstream.
+ */
+EXPORT int mpg123_open_feed(mpg123_handle *mh);
+
+/** Closes the source, if libmpg123 opened it. */
+EXPORT int mpg123_close(mpg123_handle *mh);
+
+/** Read from stream and decode up to outmemsize bytes.
+ * \param outmemory address of output buffer to write to
+ * \param outmemsize maximum number of bytes to write
+ * \param done address to store the number of actually decoded bytes to
+ * \return error/message code (watch out for MPG123_DONE and friends!) */
+EXPORT int mpg123_read(mpg123_handle *mh, unsigned char *outmemory, size_t outmemsize, size_t *done);
+
+/** Feed data for a stream that has been opened with mpg123_open_feed().
+ * It's give and take: You provide the bytestream, mpg123 gives you the decoded samples.
+ * \param in input buffer
+ * \param size number of input bytes
+ * \return error/message code. */
+EXPORT int mpg123_feed(mpg123_handle *mh, const unsigned char *in, size_t size);
+
+/** Decode MPEG Audio from inmemory to outmemory.
+ * This is very close to a drop-in replacement for old mpglib.
+ * When you give zero-sized output buffer the input will be parsed until
+ * decoded data is available. This enables you to get MPG123_NEW_FORMAT (and query it)
+ * without taking decoded data.
+ * Think of this function being the union of mpg123_read() and mpg123_feed() (which it actually is, sort of;-).
+ * You can actually always decide if you want those specialized functions in separate steps or one call this one here.
+ * \param inmemory input buffer
+ * \param inmemsize number of input bytes
+ * \param outmemory output buffer
+ * \param outmemsize maximum number of output bytes
+ * \param done address to store the number of actually decoded bytes to
+ * \return error/message code (watch out especially for MPG123_NEED_MORE)
+ */
+EXPORT int mpg123_decode(mpg123_handle *mh, const unsigned char *inmemory, size_t inmemsize,
+ unsigned char *outmemory, size_t outmemsize, size_t *done);
+
+/** Decode next MPEG frame to internal buffer
+ * or read a frame and return after setting a new format.
+ * \param num current frame offset gets stored there
+ * \param audio This pointer is set to the internal buffer to read the decoded audio from.
+ * \param bytes number of output bytes ready in the buffer
+ */
+EXPORT int mpg123_decode_frame(mpg123_handle *mh, off_t *num, unsigned char **audio, size_t *bytes);
+
+/*@}*/
+
+
+/** \defgroup mpg123_seek mpg123 position and seeking
+ *
+ * Functions querying and manipulating position in the decoded audio bitstream.
+ * The position is measured in decoded audio samples, or MPEG frame offset for the specific functions.
+ * If gapless code is in effect, the positions are adjusted to compensate the skipped padding/delay - meaning, you should not care about that at all and just use the position defined for the samples you get out of the decoder;-)
+ * The general usage is modelled after stdlib's ftell() and fseek().
+ * Especially, the whence parameter for the seek functions has the same meaning as the one for fseek() and needs the same constants from stdlib.h:
+ * - SEEK_SET: set position to (or near to) specified offset
+ * - SEEK_CUR: change position by offset from now
+ * - SEEK_END: set position to offset from end
+ *
+ * Note that sample-accurate seek only works when gapless support has been enabled at compile time; seek is frame-accurate otherwise.
+ * Also, really sample-accurate seeking (meaning that you get the identical sample value after seeking compared to plain decoding up to the position) is only guaranteed when you do not mess with the position code by using MPG123_UPSPEED, MPG123_DOWNSPEED or MPG123_START_FRAME. The first two mainly should cause trouble with NtoM resampling, but in any case with these options in effect, you have to keep in mind that the sample offset is not the same as counting the samples you get from decoding since mpg123 counts the skipped samples, too (or the samples played twice only once)!
+ * Short: When you care about the sample position, don't mess with those parameters;-)
+ * Also, seeking is not guaranteed to work for all streams (underlying stream may not support it).
+ *
+ * @{
+ */
+
+/** Returns the current position in samples.
+ * On the next read, you'd get that sample. */
+EXPORT off_t mpg123_tell(mpg123_handle *mh);
+
+/** Returns the frame number that the next read will give you data from. */
+EXPORT off_t mpg123_tellframe(mpg123_handle *mh);
+
+/** Returns the current byte offset in the input stream. */
+EXPORT off_t mpg123_tell_stream(mpg123_handle *mh);
+
+/** Seek to a desired sample offset.
+ * Set whence to SEEK_SET, SEEK_CUR or SEEK_END.
+ * \return The resulting offset >= 0 or error/message code */
+EXPORT off_t mpg123_seek(mpg123_handle *mh, off_t sampleoff, int whence);
+
+/** Seek to a desired sample offset in data feeding mode.
+ * This just prepares things to be right only if you ensure that the next chunk of input data will be from input_offset byte position.
+ * \param input_offset The position it expects to be at the
+ * next time data is fed to mpg123_decode().
+ * \return The resulting offset >= 0 or error/message code */
+EXPORT off_t mpg123_feedseek(mpg123_handle *mh, off_t sampleoff, int whence, off_t *input_offset);
+
+/** Seek to a desired MPEG frame index.
+ * Set whence to SEEK_SET, SEEK_CUR or SEEK_END.
+ * \return The resulting offset >= 0 or error/message code */
+EXPORT off_t mpg123_seek_frame(mpg123_handle *mh, off_t frameoff, int whence);
+
+/** Return a MPEG frame offset corresponding to an offset in seconds.
+ * This assumes that the samples per frame do not change in the file/stream, which is a good assumption for any sane file/stream only.
+ * \return frame offset >= 0 or error/message code */
+EXPORT off_t mpg123_timeframe(mpg123_handle *mh, double sec);
+
+/** Give access to the frame index table that is managed for seeking.
+ * You are asked not to modify the values... unless you are really aware of what you are doing.
+ * \param offsets pointer to the index array
+ * \param step one index byte offset advances this many MPEG frames
+ * \param fill number of recorded index offsets; size of the array */
+EXPORT int mpg123_index(mpg123_handle *mh, off_t **offsets, off_t *step, size_t *fill);
+
+/** Get information about current and remaining frames/seconds.
+ * WARNING: This function is there because of special usage by standalone mpg123 and may be removed in the final version of libmpg123!
+ * You provide an offset (in frames) from now and a number of output bytes
+ * served by libmpg123 but not yet played. You get the projected current frame
+ * and seconds, as well as the remaining frames/seconds. This does _not_ care
+ * about skipped samples due to gapless playback. */
+EXPORT int mpg123_position( mpg123_handle *mh, off_t frame_offset,
+ off_t buffered_bytes, off_t *current_frame,
+ off_t *frames_left, double *current_seconds,
+ double *seconds_left);
+
+/*@}*/
+
+
+/** \defgroup mpg123_voleq mpg123 volume and equalizer
+ *
+ * @{
+ */
+
+enum mpg123_channels
+{
+ MPG123_LEFT=0x1 /**< The Left Channel. */
+ ,MPG123_RIGHT=0x2 /**< The Right Channel. */
+ ,MPG123_LR=0x3 /**< Both left and right channel; same as MPG123_LEFT|MPG123_RIGHT */
+};
+
+/** Set the 32 Band Audio Equalizer settings.
+ * \param channel Can be MPG123_LEFT, MPG123_RIGHT or MPG123_LEFT|MPG123_RIGHT for both.
+ * \param band The equaliser band to change (from 0 to 31)
+ * \param val The (linear) adjustment factor. */
+EXPORT int mpg123_eq(mpg123_handle *mh, enum mpg123_channels channel, int band, double val);
+
+/** Get the 32 Band Audio Equalizer settings.
+ * \param channel Can be MPG123_LEFT, MPG123_RIGHT or MPG123_LEFT|MPG123_RIGHT for (arithmetic mean of) both.
+ * \param band The equaliser band to change (from 0 to 31)
+ * \return The (linear) adjustment factor. */
+EXPORT double mpg123_geteq(mpg123_handle *mh, enum mpg123_channels channel, int band);
+
+/** Reset the 32 Band Audio Equalizer settings to flat */
+EXPORT int mpg123_reset_eq(mpg123_handle *mh);
+
+/** Set the absolute output volume including the RVA setting,
+ * vol<0 just applies (a possibly changed) RVA setting. */
+EXPORT int mpg123_volume(mpg123_handle *mh, double vol);
+
+/** Adjust output volume including the RVA setting by chosen amount */
+EXPORT int mpg123_volume_change(mpg123_handle *mh, double change);
+
+/** Return current volume setting, the actual value due to RVA, and the RVA
+ * adjustment itself. It's all as double float value to abstract the sample
+ * format. The volume values are linear factors / amplitudes (not percent)
+ * and the RVA value is in decibels. */
+EXPORT int mpg123_getvolume(mpg123_handle *mh, double *base, double *really, double *rva_db);
+
+/* TODO: Set some preamp in addition / to replace internal RVA handling? */
+
+/*@}*/
+
+
+/** \defgroup mpg123_status mpg123 status and information
+ *
+ * @{
+ */
+
+/** Enumeration of the mode types of Variable Bitrate */
+enum mpg123_vbr {
+ MPG123_CBR=0, /**< Constant Bitrate Mode (default) */
+ MPG123_VBR, /**< Variable Bitrate Mode */
+ MPG123_ABR /**< Average Bitrate Mode */
+};
+
+/** Enumeration of the MPEG Versions */
+enum mpg123_version {
+ MPG123_1_0=0, /**< MPEG Version 1.0 */
+ MPG123_2_0, /**< MPEG Version 2.0 */
+ MPG123_2_5 /**< MPEG Version 2.5 */
+};
+
+
+/** Enumeration of the MPEG Audio mode.
+ * Only the mono mode has 1 channel, the others have 2 channels. */
+enum mpg123_mode {
+ MPG123_M_STEREO=0, /**< Standard Stereo. */
+ MPG123_M_JOINT, /**< Joint Stereo. */
+ MPG123_M_DUAL, /**< Dual Channel. */
+ MPG123_M_MONO /**< Single Channel. */
+};
+
+
+/** Enumeration of the MPEG Audio flag bits */
+enum mpg123_flags {
+ MPG123_CRC=0x1, /**< The bitstream is error protected using 16-bit CRC. */
+ MPG123_COPYRIGHT=0x2, /**< The bitstream is copyrighted. */
+ MPG123_PRIVATE=0x4, /**< The private bit has been set. */
+ MPG123_ORIGINAL=0x8 /**< The bitstream is an original, not a copy. */
+};
+
+/** Data structure for storing information about a frame of MPEG Audio */
+struct mpg123_frameinfo
+{
+ enum mpg123_version version; /**< The MPEG version (1.0/2.0/2.5). */
+ int layer; /**< The MPEG Audio Layer (MP1/MP2/MP3). */
+ long rate; /**< The sampling rate in Hz. */
+ enum mpg123_mode mode; /**< The audio mode (Mono, Stereo, Joint-stero, Dual Channel). */
+ int mode_ext; /**< The mode extension bit flag. */
+ int framesize; /**< The size of the frame (in bytes). */
+ enum mpg123_flags flags; /**< MPEG Audio flag bits. */
+ int emphasis; /**< The emphasis type. */
+ int bitrate; /**< Bitrate of the frame (kbps). */
+ int abr_rate; /**< The target average bitrate. */
+ enum mpg123_vbr vbr; /**< The VBR mode. */
+};
+
+/** Get frame information about the MPEG audio bitstream and store it in a mpg123_frameinfo structure. */
+EXPORT int mpg123_info(mpg123_handle *mh, struct mpg123_frameinfo *mi);
+
+/** Get the safe output buffer size for all cases (when you want to replace the internal buffer) */
+EXPORT size_t mpg123_safe_buffer();
+
+/** Make a full parsing scan of each frame in the file. ID3 tags are found. An accurate length
+ * value is stored. Seek index will be filled. A seek back to current position
+ * is performed. At all, this function refuses work when stream is
+ * not seekable.
+ * \return MPG123_OK or MPG123_ERR.
+ */
+EXPORT int mpg123_scan(mpg123_handle *mh);
+
+/** Return, if possible, the full (expected) length of current track in samples.
+ * \return length >= 0 or MPG123_ERR if there is no length guess possible. */
+EXPORT off_t mpg123_length(mpg123_handle *mh);
+
+/** Override the value for file size in bytes.
+ * Useful for getting sensible track length values in feed mode or for HTTP streams.
+ * \return MPG123_OK or MPG123_ERR */
+EXPORT int mpg123_set_filesize(mpg123_handle *mh, off_t size);
+
+/** Returns the time (seconds) per frame; <0 is error. */
+EXPORT double mpg123_tpf(mpg123_handle *mh);
+
+/** Get and reset the clip count. */
+EXPORT long mpg123_clip(mpg123_handle *mh);
+
+
+/** The key values for state information from mpg123_getstate(). */
+enum mpg123_state
+{
+ MPG123_ACCURATE = 1 /**< Query if positons are currently accurate (integer value, 0 if false, 1 if true) */
+};
+
+/** Get various current decoder/stream state information.
+ * \param key the key to identify the information to give.
+ * \param val the address to return (long) integer values to
+ * \param fval the address to return floating point values to
+ * \return MPG123_OK or MPG123_ERR for success
+ */
+EXPORT int mpg123_getstate(mpg123_handle *mh, enum mpg123_state key, long *val, double *fval);
+
+/*@}*/
+
+
+/** \defgroup mpg123_metadata mpg123 metadata handling
+ *
+ * Functions to retrieve the metadata from MPEG Audio files and streams.
+ * Also includes string handling functions.
+ *
+ * @{
+ */
+
+/** Data structure for storing strings in a safer way than a standard C-String.
+ * Can also hold a number of null-terminated strings. */
+typedef struct
+{
+ char* p; /**< pointer to the string data */
+ size_t size; /**< raw number of bytes allocated */
+ size_t fill; /**< number of used bytes (including closing zero byte) */
+} mpg123_string;
+
+/** Create and allocate memory for a new mpg123_string */
+EXPORT void mpg123_init_string(mpg123_string* sb);
+
+/** Free-up mempory for an existing mpg123_string */
+EXPORT void mpg123_free_string(mpg123_string* sb);
+
+/** Change the size of a mpg123_string
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_resize_string(mpg123_string* sb, size_t news);
+
+/** Increase size of a mpg123_string if necessary (it may stay larger).
+ * Note that the functions for adding and setting in current libmpg123 use this instead of mpg123_resize_string().
+ * That way, you can preallocate memory and safely work afterwards with pieces.
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_grow_string(mpg123_string* sb, size_t news);
+
+/** Copy the contents of one mpg123_string string to another.
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_copy_string(mpg123_string* from, mpg123_string* to);
+
+/** Append a C-String to an mpg123_string
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_add_string(mpg123_string* sb, const char* stuff);
+
+/** Append a C-substring to an mpg123 string
+ * \return 0 on error, 1 on success
+ * \param from offset to copy from
+ * \param count number of characters to copy (a null-byte is always appended) */
+EXPORT int mpg123_add_substring(mpg123_string *sb, const char *stuff, size_t from, size_t count);
+
+/** Set the conents of a mpg123_string to a C-string
+ * \return 0 on error, 1 on success */
+EXPORT int mpg123_set_string(mpg123_string* sb, const char* stuff);
+
+/** Set the contents of a mpg123_string to a C-substring
+ * \return 0 on error, 1 on success
+ * \param from offset to copy from
+ * \param count number of characters to copy (a null-byte is always appended) */
+EXPORT int mpg123_set_substring(mpg123_string *sb, const char *stuff, size_t from, size_t count);
+
+
+/** Sub data structure for ID3v2, for storing various text fields (including comments).
+ * This is for ID3v2 COMM, TXXX and all the other text fields.
+ * Only COMM and TXXX have a description, only COMM and USLT have a language.
+ * You should consult the ID3v2 specification for the use of the various text fields ("frames" in ID3v2 documentation, I use "fields" here to separate from MPEG frames). */
+typedef struct
+{
+ char lang[3]; /**< Three-letter language code (not terminated). */
+ char id[4]; /**< The ID3v2 text field id, like TALB, TPE2, ... (4 characters, no string termination). */
+ mpg123_string description; /**< Empty for the generic comment... */
+ mpg123_string text; /**< ... */
+} mpg123_text;
+
+/** Data structure for storing IDV3v2 tags.
+ * This structure is not a direct binary mapping with the file contents.
+ * The ID3v2 text frames are allowed to contain multiple strings.
+ * So check for null bytes until you reach the mpg123_string fill.
+ * All text is encoded in UTF-8. */
+typedef struct
+{
+ unsigned char version; /**< 3 or 4 for ID3v2.3 or ID3v2.4. */
+ mpg123_string *title; /**< Title string (pointer into text_list). */
+ mpg123_string *artist; /**< Artist string (pointer into text_list). */
+ mpg123_string *album; /**< Album string (pointer into text_list). */
+ mpg123_string *year; /**< The year as a string (pointer into text_list). */
+ mpg123_string *genre; /**< Genre String (pointer into text_list). The genre string(s) may very well need postprocessing, esp. for ID3v2.3. */
+ mpg123_string *comment; /**< Pointer to last encountered comment text with empty description. */
+ /* Encountered ID3v2 fields are appended to these lists.
+ There can be multiple occurences, the pointers above always point to the last encountered data. */
+ mpg123_text *comment_list; /**< Array of comments. */
+ size_t comments; /**< Number of comments. */
+ mpg123_text *text; /**< Array of ID3v2 text fields (including USLT) */
+ size_t texts; /**< Numer of text fields. */
+ mpg123_text *extra; /**< The array of extra (TXXX) fields. */
+ size_t extras; /**< Number of extra text (TXXX) fields. */
+} mpg123_id3v2;
+
+/** Data structure for ID3v1 tags (the last 128 bytes of a file).
+ * Don't take anything for granted (like string termination)!
+ * Also note the change ID3v1.1 did: comment[28] = 0; comment[19] = track_number
+ * It is your task to support ID3v1 only or ID3v1.1 ...*/
+typedef struct
+{
+ char tag[3]; /**< Always the string "TAG", the classic intro. */
+ char title[30]; /**< Title string. */
+ char artist[30]; /**< Artist string. */
+ char album[30]; /**< Album string. */
+ char year[4]; /**< Year string. */
+ char comment[30]; /**< Comment string. */
+ unsigned char genre; /**< Genre index. */
+} mpg123_id3v1;
+
+#define MPG123_ID3 0x3 /**< 0011 There is some ID3 info. Also matches 0010 or NEW_ID3. */
+#define MPG123_NEW_ID3 0x1 /**< 0001 There is ID3 info that changed since last call to mpg123_id3. */
+#define MPG123_ICY 0xc /**< 1100 There is some ICY info. Also matches 0100 or NEW_ICY.*/
+#define MPG123_NEW_ICY 0x4 /**< 0100 There is ICY info that changed since last call to mpg123_icy. */
+
+/** Query if there is (new) meta info, be it ID3 or ICY (or something new in future).
+ The check function returns a combination of flags. */
+EXPORT int mpg123_meta_check(mpg123_handle *mh); /* On error (no valid handle) just 0 is returned. */
+
+/** Point v1 and v2 to existing data structures wich may change on any next read/decode function call.
+ * v1 and/or v2 can be set to NULL when there is no corresponding data.
+ * \return Return value is MPG123_OK or MPG123_ERR, */
+EXPORT int mpg123_id3(mpg123_handle *mh, mpg123_id3v1 **v1, mpg123_id3v2 **v2);
+
+/** Point icy_meta to existing data structure wich may change on any next read/decode function call.
+ * \return Return value is MPG123_OK or MPG123_ERR, */
+EXPORT int mpg123_icy(mpg123_handle *mh, char **icy_meta); /* same for ICY meta string */
+
+/** Decode from windows-1252 (the encoding ICY metainfo used) to UTF-8.
+ * \param icy_text The input data in ICY encoding
+ * \return pointer to newly allocated buffer with UTF-8 data (You free() it!) */
+EXPORT char* mpg123_icy2utf8(const char* icy_text);
+
+
+/* @} */
+
+
+/** \defgroup mpg123_advpar mpg123 advanced parameter API
+ *
+ * Direct access to a parameter set without full handle around it.
+ * Possible uses:
+ * - Influence behaviour of library _during_ initialization of handle (MPG123_VERBOSE).
+ * - Use one set of parameters for multiple handles.
+ *
+ * The functions for handling mpg123_pars (mpg123_par() and mpg123_fmt()
+ * family) directly return a fully qualified mpg123 error code, the ones
+ * operating on full handles normally MPG123_OK or MPG123_ERR, storing the
+ * specific error code itseld inside the handle.
+ *
+ * @{
+ */
+
+/** Opaque structure for the libmpg123 decoder parameters. */
+struct mpg123_pars_struct;
+
+/** Opaque structure for the libmpg123 decoder parameters. */
+typedef struct mpg123_pars_struct mpg123_pars;
+
+/** Create a handle with preset parameters. */
+EXPORT mpg123_handle *mpg123_parnew(mpg123_pars *mp, const char* decoder, int *error);
+
+/** Allocate memory for and return a pointer to a new mpg123_pars */
+EXPORT mpg123_pars *mpg123_new_pars(int *error);
+
+/** Delete and free up memory used by a mpg123_pars data structure */
+EXPORT void mpg123_delete_pars(mpg123_pars* mp);
+
+/** Configure mpg123 parameters to accept no output format at all,
+ * use before specifying supported formats with mpg123_format */
+EXPORT int mpg123_fmt_none(mpg123_pars *mp);
+
+/** Configure mpg123 parameters to accept all formats
+ * (also any custom rate you may set) -- this is default. */
+EXPORT int mpg123_fmt_all(mpg123_pars *mp);
+
+/** Set the audio format support of a mpg123_pars in detail:
+ \param rate The sample rate value (in Hertz).
+ \param channels A combination of MPG123_STEREO and MPG123_MONO.
+ \param encodings A combination of accepted encodings for rate and channels, p.ex MPG123_ENC_SIGNED16|MPG123_ENC_ULAW_8 (or 0 for no support).
+ \return 0 on success, -1 if there was an error. /
+*/
+EXPORT int mpg123_fmt(mpg123_pars *mh, long rate, int channels, int encodings); /* 0 is good, -1 is error */
+
+/** Check to see if a specific format at a specific rate is supported
+ * by mpg123_pars.
+ * \return 0 for no support (that includes invalid parameters), MPG123_STEREO,
+ * MPG123_MONO or MPG123_STEREO|MPG123_MONO. */
+EXPORT int mpg123_fmt_support(mpg123_pars *mh, long rate, int encoding);
+
+/** Set a specific parameter, for a specific mpg123_pars, using a parameter
+ * type key chosen from the mpg123_parms enumeration, to the specified value. */
+EXPORT int mpg123_par(mpg123_pars *mp, enum mpg123_parms type, long value, double fvalue);
+
+/** Get a specific parameter, for a specific mpg123_pars.
+ * See the mpg123_parms enumeration for a list of available parameters. */
+EXPORT int mpg123_getpar(mpg123_pars *mp, enum mpg123_parms type, long *val, double *fval);
+
+/* @} */
+
+
+/** \defgroup mpg123_lowio mpg123 low level I/O
+ * You may want to do tricky stuff with I/O that does not work with mpg123's default file access or you want to make it decode into your own pocket...
+ *
+ * @{ */
+
+/** Replace default internal buffer with user-supplied buffer.
+ * Instead of working on it's own private buffer, mpg123 will directly use the one you provide for storing decoded audio. */
+EXPORT int mpg123_replace_buffer(mpg123_handle *mh, unsigned char *data, size_t size);
+
+/** The max size of one frame's decoded output with current settings.
+ * Use that to determine an appropriate minimum buffer size for decoding one frame. */
+EXPORT size_t mpg123_outblock(mpg123_handle *mh);
+
+/** Replace low-level stream access functions; read and lseek as known in POSIX.
+ * You can use this to make any fancy file opening/closing yourself,
+ * using open_fd to set the file descriptor for your read/lseek (doesn't need to be a "real" file descriptor...).
+ * Setting a function to NULL means that the default internal read is
+ * used (active from next mpg123_open call on). */
+EXPORT int mpg123_replace_reader( mpg123_handle *mh,
+ ssize_t (*r_read) (int, void *, size_t),
+ off_t (*r_lseek)(int, off_t, int) );
+
+/* @} */
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/src/libmpg123/mpg123lib_intern.h b/src/libmpg123/mpg123lib_intern.h
new file mode 100644
index 0000000..63c05e4
--- /dev/null
+++ b/src/libmpg123/mpg123lib_intern.h
@@ -0,0 +1,184 @@
+/*
+ mpg123lib_intern: Common non-public stuff for libmpg123
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+
+ derived from the old mpg123.h
+*/
+
+#ifndef MPG123_H_INTERN
+#define MPG123_H_INTERN
+
+#define MPG123_RATES 9
+#define MPG123_ENCODINGS 10
+
+#include "config.h" /* Load this before _anything_ */
+
+/* ABI conformance for other compilers.
+ mpg123 needs 16byte-aligned stack for SSE and friends.
+ gcc provides that, but others don't necessarily. */
+#ifdef ABI_ALIGN_FUN
+#ifndef attribute_align_arg
+#if defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__>1)
+# define attribute_align_arg __attribute__((force_align_arg_pointer))
+/* The gcc that can align the stack does not need the check... nor does it work with gcc 4.3+, anyway. */
+#else
+# define attribute_align_arg
+# define NEED_ALIGNCHECK /* Other compilers get code to catch misaligned stack. */
+#endif
+#endif
+#else
+#define attribute_align_arg
+/* We won't try the align check... */
+#endif
+
+/* export DLL symbols */
+#if defined(WIN32) && defined(DYNAMIC_BUILD)
+#define BUILD_MPG123_DLL
+#endif
+#include "compat.h"
+#include "mpg123.h"
+
+#define SKIP_JUNK 1
+
+#ifndef M_PI
+# define M_PI 3.14159265358979323846
+#endif
+#ifndef M_SQRT2
+# define M_SQRT2 1.41421356237309504880
+#endif
+
+#ifdef SUNOS
+#define memmove(dst,src,size) bcopy(src,dst,size)
+#endif
+
+/* some stuff has to go back to mpg123.h */
+#ifdef REAL_IS_FLOAT
+# define real float
+# define REAL_SCANF "%f"
+# define REAL_PRINTF "%f"
+#elif defined(REAL_IS_LONG_DOUBLE)
+# define real long double
+# define REAL_SCANF "%Lf"
+# define REAL_PRINTF "%Lf"
+#elif defined(REAL_IS_FIXED)
+/* Disable some output formats for fixed point decoder... */
+
+# define real long
+
+# define REAL_RADIX 24
+# define REAL_FACTOR 16777216.0
+
+/* I just changed the (int) to (long) there... seemed right. */
+# define DOUBLE_TO_REAL(x) ((long)((x) * REAL_FACTOR))
+# define DOUBLE_TO_REAL_15(x) ((long)((x) * 32768.0))
+# define DOUBLE_TO_REAL_POW43(x) ((long)((x) * 8192.0))
+# define DOUBLE_TO_REAL_SCALE_LAYER12(x) ((long)((x) * 1073741824.0))
+# define DOUBLE_TO_REAL_SCALE_LAYER3(x, y) ((long)((x) * pow(2.0,gainpow2_scale[y])))
+# define REAL_TO_DOUBLE(x) ((double)(x) / REAL_FACTOR)
+# define REAL_MUL(x, y) (((long long)(x) * (long long)(y)) >> REAL_RADIX)
+# define REAL_MUL_15(x, y) (((long long)(x) * (long long)(y)) >> 15)
+# define REAL_MUL_SCALE_LAYER12(x, y) (((long long)(x) * (long long)(y)) >> (15 + 30 - REAL_RADIX))
+# define REAL_MUL_SCALE_LAYER3(x, y, z) (((long long)(x) * (long long)(y)) >> (13 + gainpow2_scale[z] - REAL_RADIX))
+# define REAL_SCALE_LAYER12(x) ((long)((x) >> (30 - REAL_RADIX)))
+# define REAL_SCALE_LAYER3(x, y) ((long)((x) >> (gainpow2_scale[y] - REAL_RADIX)))
+# define REAL_SCANF "%ld"
+# define REAL_PRINTF "%ld"
+
+#else
+# define real double
+# define REAL_SCANF "%lf"
+# define REAL_PRINTF "%f"
+#endif
+
+#ifndef REAL_IS_FIXED
+# if (defined SIZEOF_INT32_T) && (SIZEOF_INT32_T != 4)
+# error "Bad 32bit types!!!"
+# endif
+#endif
+
+#ifndef DOUBLE_TO_REAL
+# define DOUBLE_TO_REAL(x) (real)(x)
+#endif
+#ifndef DOUBLE_TO_REAL_15
+# define DOUBLE_TO_REAL_15(x) (real)(x)
+#endif
+#ifndef DOUBLE_TO_REAL_POW43
+# define DOUBLE_TO_REAL_POW43(x) (real)(x)
+#endif
+#ifndef DOUBLE_TO_REAL_SCALE_LAYER12
+# define DOUBLE_TO_REAL_SCALE_LAYER12(x) (real)(x)
+#endif
+#ifndef DOUBLE_TO_REAL_SCALE_LAYER3
+# define DOUBLE_TO_REAL_SCALE_LAYER3(x, y) (real)(x)
+#endif
+#ifndef REAL_TO_DOUBLE
+# define REAL_TO_DOUBLE(x) (x)
+#endif
+
+#ifndef REAL_MUL
+# define REAL_MUL(x, y) ((x) * (y))
+#endif
+#ifndef REAL_MUL_15
+# define REAL_MUL_15(x, y) ((x) * (y))
+#endif
+#ifndef REAL_MUL_SCALE_LAYER12
+# define REAL_MUL_SCALE_LAYER12(x, y) ((x) * (y))
+#endif
+#ifndef REAL_MUL_SCALE_LAYER3
+# define REAL_MUL_SCALE_LAYER3(x, y, z) ((x) * (y))
+#endif
+#ifndef REAL_SCALE_LAYER12
+# define REAL_SCALE_LAYER12(x) (x)
+#endif
+#ifndef REAL_SCALE_LAYER3
+# define REAL_SCALE_LAYER3(x, y) (x)
+#endif
+
+/* used to be: AUDIOBUFSIZE = n*64 with n=1,2,3 ...
+ now: factor on minimum frame buffer size (which takes upsampling into account) */
+#define AUDIOBUFSIZE 2
+
+#include "true.h"
+
+#define MAX_NAME_SIZE 81
+#define SBLIMIT 32
+#define SCALE_BLOCK 12
+#define SSLIMIT 18
+
+/* Same as MPG_M_* */
+#define MPG_MD_STEREO 0
+#define MPG_MD_JOINT_STEREO 1
+#define MPG_MD_DUAL_CHANNEL 2
+#define MPG_MD_MONO 3
+
+/* We support short or float output samples...
+ Short integer amplitude is scaled by this. */
+#define SHORT_SCALE 32768
+/* That scales a short-scaled value to a 32bit integer scaled one
+ value = 2**31/2**15 */
+#define S32_RESCALE 65536
+
+/* Pre Shift fo 16 to 8 bit converter table */
+#define AUSHIFT (3)
+
+#include "optimize.h"
+#include "decode.h"
+#include "parse.h"
+#include "frame.h"
+
+/* fr is a mpg123_handle* by convention here... */
+#define NOQUIET (!(fr->p.flags & MPG123_QUIET))
+#define VERBOSE (NOQUIET && fr->p.verbose)
+#define VERBOSE2 (NOQUIET && fr->p.verbose > 1)
+#define VERBOSE3 (NOQUIET && fr->p.verbose > 2)
+#define VERBOSE4 (NOQUIET && fr->p.verbose > 3)
+#define PVERB(mp, level) (!((mp)->flags & MPG123_QUIET) && (mp)->verbose >= (level))
+
+int decode_update(mpg123_handle *mh);
+/* residing in format.c */
+off_t samples_to_bytes(mpg123_handle *fr , off_t s);
+off_t bytes_to_samples(mpg123_handle *fr , off_t b);
+
+#endif
diff --git a/src/libmpg123/ntom.c b/src/libmpg123/ntom.c
new file mode 100644
index 0000000..8e80a77
--- /dev/null
+++ b/src/libmpg123/ntom.c
@@ -0,0 +1,138 @@
+/*
+ ntom.c: N->M down/up sampling; the setup code.
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#define SAFE_NTOM /* Do not depend on off_t*off_t with big values still being in the range... */
+#include "mpg123lib_intern.h"
+#include "debug.h"
+
+int synth_ntom_set_step(mpg123_handle *fr)
+{
+ long m,n;
+ m = frame_freq(fr);
+ n = fr->af.rate;
+ if(VERBOSE2)
+ fprintf(stderr,"Init rate converter: %ld->%ld\n",m,n);
+
+ if(n > NTOM_MAX_FREQ || m > NTOM_MAX_FREQ || m <= 0 || n <= 0) {
+ if(NOQUIET) error("NtoM converter: illegal rates");
+ fr->err = MPG123_BAD_RATE;
+ return -1;
+ }
+
+ n *= NTOM_MUL;
+ fr->ntom_step = (unsigned long) n / m;
+
+ if(fr->ntom_step > (unsigned long)NTOM_MAX*NTOM_MUL) {
+ if(NOQUIET) error3("max. 1:%i conversion allowed (%lu vs %lu)!", NTOM_MAX, fr->ntom_step, (unsigned long)8*NTOM_MUL);
+ fr->err = MPG123_BAD_RATE;
+ return -1;
+ }
+
+ fr->ntom_val[0] = fr->ntom_val[1] = ntom_val(fr, fr->num);
+ return 0;
+}
+
+/*
+ The SAFE_NTOM does iterative loops instead of straight multiplication.
+ The safety is not just about the algorithm closely mimicking the decoder instead of applying some formula,
+ it is more about avoiding multiplication of possibly big sample offsets (a 32bit off_t could overflow too easily).
+*/
+
+unsigned long ntom_val(mpg123_handle *fr, off_t frame)
+{
+ off_t ntm;
+#ifdef SAFE_NTOM /* Carry out the loop, without the threatening integer overflow. */
+ off_t f;
+ ntm = NTOM_MUL>>1; /* for frame 0 */
+ for(f=0; f<frame; ++f) /* for frame > 0 */
+ {
+ ntm += spf(fr)*fr->ntom_step;
+ ntm -= (ntm/NTOM_MUL)*NTOM_MUL;
+ }
+#else /* Just make one computation with overall sample offset. */
+ ntm = (NTOM_MUL>>1) + spf(fr)*frame*fr->ntom_step;
+ ntm -= (ntm/NTOM_MUL)*NTOM_MUL;
+#endif
+ return (unsigned long) ntm;
+}
+
+/* Set the ntom value for next expected frame to be decoded.
+ This is for keeping output consistent across seeks. */
+void ntom_set_ntom(mpg123_handle *fr, off_t num)
+{
+ fr->ntom_val[1] = fr->ntom_val[0] = ntom_val(fr, num);
+}
+
+/* Convert frame offset to unadjusted output sample offset. */
+off_t ntom_frmouts(mpg123_handle *fr, off_t frame)
+{
+#ifdef SAFE_NTOM
+ off_t f;
+#endif
+ off_t soff = 0;
+ off_t ntm = ntom_val(fr,0);
+#ifdef SAFE_NTOM
+ if(frame <= 0) return 0;
+ for(f=0; f<frame; ++f)
+ {
+ ntm += spf(fr)*fr->ntom_step;
+ soff += ntm/NTOM_MUL;
+ ntm -= (ntm/NTOM_MUL)*NTOM_MUL;
+ }
+#else
+ soff = (ntm + frame*(off_t)spf(fr)*(off_t)fr->ntom_step)/(off_t)NTOM_MUL;
+#endif
+ return soff;
+}
+
+/* Convert input samples to unadjusted output samples. */
+off_t ntom_ins2outs(mpg123_handle *fr, off_t ins)
+{
+ off_t soff = 0;
+ off_t ntm = ntom_val(fr,0);
+#ifdef SAFE_NTOM
+ {
+ off_t block = spf(fr);
+ if(ins <= 0) return 0;
+ do
+ {
+ off_t nowblock = ins > block ? block : ins;
+ ntm += nowblock*fr->ntom_step;
+ soff += ntm/NTOM_MUL;
+ ntm -= (ntm/NTOM_MUL)*NTOM_MUL;
+ ins -= nowblock;
+ } while(ins > 0);
+ }
+#else
+ /* Beware of overflows: when off_t is 32bits, the multiplication blows too easily.
+ Of course, it blows for 64bits, too, in theory, but that's for _really_ large files. */
+ soff = ((off_t)ntm + (off_t)ins*(off_t)fr->ntom_step)/(off_t)NTOM_MUL;
+#endif
+ return soff;
+}
+
+/* Determine frame offset from unadjusted output sample offset. */
+off_t ntom_frameoff(mpg123_handle *fr, off_t soff)
+{
+ off_t ioff = 0; /* frames or samples */
+ off_t ntm = ntom_val(fr,0);
+#ifdef SAFE_NTOM
+ if(soff <= 0) return 0;
+ for(ioff=0; 1; ++ioff)
+ {
+ ntm += spf(fr)*fr->ntom_step;
+ if(ntm/NTOM_MUL > soff) break;
+ soff -= ntm/NTOM_MUL;
+ ntm -= (ntm/NTOM_MUL)*NTOM_MUL;
+ }
+ return ioff;
+#else
+ ioff = (soff*(off_t)NTOM_MUL-ntm)/(off_t)fr->ntom_step;
+ return ioff/(off_t)spf(fr);
+#endif
+}
diff --git a/src/libmpg123/optimize.c b/src/libmpg123/optimize.c
new file mode 100644
index 0000000..887bf36
--- /dev/null
+++ b/src/libmpg123/optimize.c
@@ -0,0 +1,862 @@
+/*
+ optimize: get a grip on the different optimizations
+
+ copyright 2006-9 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis, inspired by 3DNow stuff in mpg123.[hc]
+
+ Currently, this file contains the struct and function to choose an optimization variant and works only when OPT_MULTI is in effect.
+*/
+
+#include "mpg123lib_intern.h" /* includes optimize.h */
+#include "debug.h"
+
+/* Must match the enum dectype! */
+
+/*
+ It SUCKS having to define these names that way, but compile-time intialization of string arrays is a bitch.
+ GCC doesn't see constant stuff when it's wiggling in front of it!
+ Anyhow: Have a script for that:
+names="generic generic_dither i386 i486 i586 i586_dither MMX 3DNow 3DNowExt AltiVec SSE x86-64"
+for i in $names; do echo "##define dn_${i/-/_} \"$i\""; done
+echo -n "static const char* decname[] =
+{
+ \"auto\"
+ "
+for i in $names; do echo -n ", dn_${i/-/_}"; done
+echo "
+ , \"nodec\"
+};"
+*/
+#define dn_generic "generic"
+#define dn_generic_dither "generic_dither"
+#define dn_i386 "i386"
+#define dn_i486 "i486"
+#define dn_i586 "i586"
+#define dn_i586_dither "i586_dither"
+#define dn_MMX "MMX"
+#define dn_3DNow "3DNow"
+#define dn_3DNowExt "3DNowExt"
+#define dn_AltiVec "AltiVec"
+#define dn_SSE "SSE"
+#define dn_x86_64 "x86-64"
+static const char* decname[] =
+{
+ "auto"
+ , dn_generic, dn_generic_dither, dn_i386, dn_i486, dn_i586, dn_i586_dither, dn_MMX, dn_3DNow, dn_3DNowExt, dn_AltiVec, dn_SSE, dn_x86_64
+ , "nodec"
+};
+
+#if (defined OPT_X86) && (defined OPT_MULTI)
+#include "getcpuflags.h"
+struct cpuflags cpu_flags;
+#else
+/* Faking stuff for non-multi builds. The same code for synth function choice is used.
+ Just no runtime dependency of result... */
+char cpu_flags;
+#define cpu_i586(s) 1
+#define cpu_fpu(s) 1
+#define cpu_mmx(s) 1
+#define cpu_3dnow(s) 1
+#define cpu_3dnowext(s) 1
+#define cpu_sse(s) 1
+#define cpu_sse2(s) 1
+#define cpu_sse3(s) 1
+#endif
+
+/* Ugly macros to build conditional synth function array values. */
+
+#ifndef NO_8BIT
+#define IF8(synth) synth,
+#else
+#define IF8(synth)
+#endif
+
+#ifndef NO_REAL
+#define IFREAL(synth) synth,
+#else
+#define IFREAL(synth)
+#endif
+
+#ifndef NO_32BIT
+#define IF32(synth) synth
+#else
+#define IF32(synth)
+#endif
+
+#ifndef NO_16BIT
+# define OUT_SYNTHS(synth_16, synth_8, synth_real, synth_32) { synth_16, IF8(synth_8) IFREAL(synth_real) IF32(synth_32) }
+#else
+# define OUT_SYNTHS(synth_16, synth_8, synth_real, synth_32) { IF8(synth_8) IFREAL(synth_real) IF32(synth_32) }
+#endif
+
+const struct synth_s synth_base =
+{
+ { /* plain */
+ OUT_SYNTHS(synth_1to1, synth_1to1_8bit, synth_1to1_real, synth_1to1_s32)
+# ifndef NO_DOWNSAMPLE
+ ,OUT_SYNTHS(synth_2to1, synth_2to1_8bit, synth_2to1_real, synth_2to1_s32)
+ ,OUT_SYNTHS(synth_4to1, synth_4to1_8bit, synth_4to1_real, synth_4to1_s32)
+# endif
+# ifndef NO_NTOM
+ ,OUT_SYNTHS(synth_ntom, synth_ntom_8bit, synth_ntom_real, synth_ntom_s32)
+# endif
+ },
+ { /* stereo, by default only wrappers over plain synth */
+ OUT_SYNTHS(synth_stereo_wrap, synth_stereo_wrap, synth_stereo_wrap, synth_stereo_wrap)
+# ifndef NO_DOWNSAMPLE
+ ,OUT_SYNTHS(synth_stereo_wrap, synth_stereo_wrap, synth_stereo_wrap, synth_stereo_wrap)
+ ,OUT_SYNTHS(synth_stereo_wrap, synth_stereo_wrap, synth_stereo_wrap, synth_stereo_wrap)
+# endif
+# ifndef NO_NTOM
+ ,OUT_SYNTHS(synth_stereo_wrap, synth_stereo_wrap, synth_stereo_wrap, synth_stereo_wrap)
+# endif
+ },
+ { /* mono2stereo */
+ OUT_SYNTHS(synth_1to1_mono2stereo, synth_1to1_8bit_mono2stereo, synth_1to1_real_mono2stereo, synth_1to1_s32_mono2stereo)
+# ifndef NO_DOWNSAMPLE
+ ,OUT_SYNTHS(synth_2to1_mono2stereo, synth_2to1_8bit_mono2stereo, synth_2to1_real_mono2stereo, synth_2to1_s32_mono2stereo)
+ ,OUT_SYNTHS(synth_4to1_mono2stereo, synth_4to1_8bit_mono2stereo, synth_4to1_real_mono2stereo, synth_4to1_s32_mono2stereo)
+# endif
+# ifndef NO_NTOM
+ ,OUT_SYNTHS(synth_ntom_mono2stereo, synth_ntom_8bit_mono2stereo, synth_ntom_real_mono2stereo, synth_ntom_s32_mono2stereo)
+# endif
+ },
+ { /* mono*/
+ OUT_SYNTHS(synth_1to1_mono, synth_1to1_8bit_mono, synth_1to1_real_mono, synth_1to1_s32_mono)
+# ifndef NO_DOWNSAMPLE
+ ,OUT_SYNTHS(synth_2to1_mono, synth_2to1_8bit_mono, synth_2to1_real_mono, synth_2to1_s32_mono)
+ ,OUT_SYNTHS(synth_4to1_mono, synth_4to1_8bit_mono, synth_4to1_real_mono, synth_4to1_s32_mono)
+# endif
+# ifndef NO_NTOM
+ ,OUT_SYNTHS(synth_ntom_mono, synth_ntom_8bit_mono, synth_ntom_real_mono, synth_ntom_s32_mono)
+#endif
+ }
+};
+
+#ifdef OPT_X86
+/* More plain synths for i386 */
+const func_synth plain_i386[r_limit][f_limit] =
+{ /* plain */
+ OUT_SYNTHS(synth_1to1_i386, synth_1to1_8bit_i386, synth_1to1_real_i386, synth_1to1_s32_i386)
+# ifndef NO_DOWNSAMPLE
+ ,OUT_SYNTHS(synth_2to1_i386, synth_2to1_8bit_i386, synth_2to1_real_i386, synth_2to1_s32_i386)
+ ,OUT_SYNTHS(synth_4to1_i386, synth_4to1_8bit_i386, synth_4to1_real_i386, synth_4to1_s32_i386)
+# endif
+# ifndef NO_NTOM
+ ,OUT_SYNTHS(synth_ntom, synth_ntom_8bit, synth_ntom_real, synth_ntom_s32)
+# endif
+};
+#endif
+
+
+enum optdec defdec(void){ return defopt; }
+
+enum optcla decclass(const enum optdec type)
+{
+ return (type == mmx || type == sse || type == dreidnowext || type == x86_64 ) ? mmxsse : normal;
+}
+
+
+static int find_synth(func_synth synth, const func_synth synths[r_limit][f_limit])
+{
+ enum synth_resample ri;
+ enum synth_format fi;
+ for(ri=0; ri<r_limit; ++ri)
+ for(fi=0; fi<f_limit; ++fi)
+ if(synth == synths[ri][fi])
+ return TRUE;
+
+ return FALSE;
+}
+
+/* Determine what kind of decoder is actually active
+ This depends on runtime choices which may cause fallback to i386 or generic code. */
+static int find_dectype(mpg123_handle *fr)
+{
+ enum optdec type = nodec;
+ /* Direct and indirect usage, 1to1 stereo decoding.
+ Concentrating on the plain stereo synth should be fine, mono stuff is derived. */
+ func_synth basic_synth = fr->synth;
+#ifndef NO_8BIT
+#ifndef NO_16BIT
+ if(basic_synth == synth_1to1_8bit_wrap)
+ basic_synth = fr->synths.plain[r_1to1][f_16]; /* That is what's really below the surface. */
+#endif
+#endif
+
+ if(FALSE) ; /* Just to initialize the else if ladder. */
+#ifndef NO_16BIT
+#ifdef OPT_3DNOWEXT
+ else if(basic_synth == synth_1to1_3dnowext) type = dreidnowext;
+#endif
+#ifdef OPT_SSE
+ else if(basic_synth == synth_1to1_sse) type = sse;
+#endif
+#ifdef OPT_3DNOW
+ else if(basic_synth == synth_1to1_3dnow) type = dreidnow;
+#endif
+#ifdef OPT_MMX
+ else if(basic_synth == synth_1to1_mmx) type = mmx;
+#endif
+#ifdef OPT_I586_DITHER
+ else if(basic_synth == synth_1to1_i586_dither) type = ifuenf_dither;
+#endif
+#ifdef OPT_I586
+ else if(basic_synth == synth_1to1_i586) type = ifuenf;
+#endif
+#ifdef OPT_ALTIVEC
+ else if(basic_synth == synth_1to1_altivec) type = altivec;
+#endif
+#ifdef OPT_X86_64
+ else if(basic_synth == synth_1to1_x86_64) type = x86_64;
+#endif
+#ifdef OPT_GENERIC_DITHER
+ else if(basic_synth == synth_1to1_dither) type = generic_dither;
+#endif
+#ifdef OPT_DITHER /* either i586 or generic! */
+#ifndef NO_DOWNSAMPLE
+ else if
+ (
+ basic_synth == synth_2to1_dither
+ || basic_synth == synth_4to1_dither
+ ) type = generic_dither;
+#endif
+#endif
+#endif /* 16bit */
+
+#ifndef NO_REAL
+#ifdef OPT_SSE
+ else if(basic_synth == synth_1to1_real_sse) type = sse;
+#endif
+#ifdef OPT_X86_64
+ else if(basic_synth == synth_1to1_real_x86_64) type = x86_64;
+#endif
+#ifdef OPT_ALTIVEC
+ else if(basic_synth == synth_1to1_real_altivec) type = altivec;
+#endif
+
+#endif /* real */
+
+#ifndef NO_32BIT
+#ifdef OPT_SSE
+ else if(basic_synth == synth_1to1_s32_sse) type = sse;
+#endif
+#ifdef OPT_X86_64
+ else if(basic_synth == synth_1to1_s32_x86_64) type = x86_64;
+#endif
+#ifdef OPT_ALTIVEC
+ else if(basic_synth == synth_1to1_s32_altivec) type = altivec;
+#endif
+#endif /* 32bit */
+
+#ifdef OPT_X86
+ else if(find_synth(basic_synth, plain_i386))
+ type = idrei;
+#endif
+
+ else if(find_synth(basic_synth, synth_base.plain))
+ type = generic;
+
+
+
+#ifdef OPT_I486
+ /* i486 is special ... the specific code is in use for 16bit 1to1 stereo
+ otherwise we have i386 active... but still, the distinction doesn't matter*/
+ type = ivier;
+#endif
+
+ if(type != nodec)
+ {
+ fr->cpu_opts.type = type;
+ fr->cpu_opts.class = decclass(type);
+
+ debug3("determined active decoder type %i (%s) of class %i", type, decname[type], fr->cpu_opts.class);
+ return MPG123_OK;
+ }
+ else
+ {
+ if(NOQUIET) error("Unable to determine active decoder type -- this is SERIOUS b0rkage!");
+
+ fr->err = MPG123_BAD_DECODER_SETUP;
+ return MPG123_ERR;
+ }
+}
+
+/* set synth functions for current frame, optimizations handled by opt_* macros */
+int set_synth_functions(mpg123_handle *fr)
+{
+ enum synth_resample resample = r_none;
+ enum synth_format basic_format = f_none; /* Default is always 16bit, or whatever. */
+
+ /* Select the basic output format, different from 16bit: 8bit, real. */
+ if(FALSE){}
+#ifndef NO_16BIT
+ else if(fr->af.encoding & MPG123_ENC_16)
+ basic_format = f_16;
+#endif
+#ifndef NO_8BIT
+ else if(fr->af.encoding & MPG123_ENC_8)
+ basic_format = f_8;
+#endif
+#ifndef NO_REAL
+ else if(fr->af.encoding & MPG123_ENC_FLOAT)
+ basic_format = f_real;
+#endif
+#ifndef NO_32BIT
+ else if(fr->af.encoding & MPG123_ENC_32)
+ basic_format = f_32;
+#endif
+
+ /* Make sure the chosen format is compiled into this lib. */
+ if(basic_format == f_none)
+ {
+ if(NOQUIET) error("set_synth_functions: This output format is disabled in this build!");
+
+ return -1;
+ }
+
+ /* Be explicit about downsampling variant. */
+ switch(fr->down_sample)
+ {
+ case 0: resample = r_1to1; break;
+#ifndef NO_DOWNSAMPLE
+ case 1: resample = r_2to1; break;
+ case 2: resample = r_4to1; break;
+#endif
+#ifndef NO_NTOM
+ case 3: resample = r_ntom; break;
+#endif
+ }
+
+ if(resample == r_none)
+ {
+ if(NOQUIET) error("set_synth_functions: This resampling mode is not supported in this build!");
+
+ return -1;
+ }
+
+ debug2("selecting synth: resample=%i format=%i", resample, basic_format);
+ /* Finally selecting the synth functions for stereo / mono. */
+ fr->synth = fr->synths.plain[resample][basic_format];
+ fr->synth_stereo = fr->synths.stereo[resample][basic_format];
+ fr->synth_mono = fr->af.channels==2
+ ? fr->synths.mono2stereo[resample][basic_format] /* Mono MPEG file decoded to stereo. */
+ : fr->synths.mono[resample][basic_format]; /* Mono MPEG file decoded to mono. */
+
+ if(find_dectype(fr) != MPG123_OK) /* Actually determine the currently active decoder breed. */
+ {
+ fr->err = MPG123_BAD_DECODER_SETUP;
+ return MPG123_ERR;
+ }
+
+ if(frame_buffers(fr) != 0)
+ {
+ fr->err = MPG123_NO_BUFFERS;
+ if(NOQUIET) error("Failed to set up decoder buffers!");
+
+ return MPG123_ERR;
+ }
+
+#ifndef NO_8BIT
+ if(basic_format == f_8)
+ {
+ if(make_conv16to8_table(fr) != 0)
+ {
+ if(NOQUIET) error("Failed to set up conv16to8 table!");
+ /* it's a bit more work to get proper error propagation up */
+ return -1;
+ }
+ }
+#endif
+
+#ifdef OPT_MMXORSSE
+ /* Special treatment for MMX, SSE and 3DNowExt stuff.
+ The real-decoding SSE for x86-64 uses normal tables! */
+ if(fr->cpu_opts.class == mmxsse
+# ifndef NO_REAL
+ && basic_format != f_real
+# endif
+# ifndef NO_32BIT
+ && basic_format != f_32
+# endif
+# ifdef ACCURATE_ROUNDING
+ && fr->cpu_opts.type != sse
+ && fr->cpu_opts.type != x86_64
+# endif
+ )
+ {
+#ifndef NO_LAYER3
+ init_layer3_stuff(fr, init_layer3_gainpow2_mmx);
+#endif
+#ifndef NO_LAYER12
+ init_layer12_stuff(fr, init_layer12_table_mmx);
+#endif
+ fr->make_decode_tables = make_decode_tables_mmx;
+ }
+ else
+#endif
+ {
+#ifndef NO_LAYER3
+ init_layer3_stuff(fr, init_layer3_gainpow2);
+#endif
+#ifndef NO_LAYER12
+ init_layer12_stuff(fr, init_layer12_table);
+#endif
+ fr->make_decode_tables = make_decode_tables;
+ }
+
+ /* We allocated the table buffers just now, so (re)create the tables. */
+ fr->make_decode_tables(fr);
+
+ return 0;
+}
+
+int frame_cpu_opt(mpg123_handle *fr, const char* cpu)
+{
+ const char* chosen = ""; /* the chosen decoder opt as string */
+ enum optdec want_dec = nodec;
+ int done = 0;
+ int auto_choose = 0;
+
+ want_dec = dectype(cpu);
+ auto_choose = want_dec == autodec;
+ /* Fill whole array of synth functions with generic code first. */
+ fr->synths = synth_base;
+
+#ifndef OPT_MULTI
+ {
+ if(!auto_choose && want_dec != defopt)
+ {
+ if(NOQUIET) error2("you wanted decoder type %i, I only have %i", want_dec, defopt);
+ }
+ auto_choose = TRUE; /* There will be only one choice anyway. */
+ }
+#endif
+
+ fr->cpu_opts.type = nodec;
+ /* covers any i386+ cpu; they actually differ only in the synth_1to1 function, mostly... */
+#ifdef OPT_X86
+
+#ifndef NO_LAYER3
+#if (defined OPT_3DNOW || defined OPT_3DNOWEXT)
+ fr->cpu_opts.dct36 = dct36;
+#endif
+#endif
+
+ if(cpu_i586(cpu_flags))
+ {
+# ifdef OPT_MULTI
+ debug2("standard flags: 0x%08x\textended flags: 0x%08x", cpu_flags.std, cpu_flags.ext);
+# endif
+ #ifdef OPT_SSE
+ if( !done && (auto_choose || want_dec == sse)
+ && cpu_sse(cpu_flags) && cpu_mmx(cpu_flags) )
+ {
+ chosen = "SSE";
+ fr->cpu_opts.type = sse;
+# ifndef NO_16BIT
+ fr->synths.plain[r_1to1][f_16] = synth_1to1_sse;
+# ifdef ACCURATE_ROUNDING
+ fr->synths.stereo[r_1to1][f_16] = synth_1to1_stereo_sse;
+# endif
+# endif
+# ifndef NO_REAL
+ fr->synths.plain[r_1to1][f_real] = synth_1to1_real_sse;
+ fr->synths.stereo[r_1to1][f_real] = synth_1to1_real_stereo_sse;
+# endif
+# ifndef NO_32BIT
+ fr->synths.plain[r_1to1][f_32] = synth_1to1_s32_sse;
+ fr->synths.stereo[r_1to1][f_32] = synth_1to1_s32_stereo_sse;
+# endif
+ done = 1;
+ }
+ #endif
+# ifdef OPT_3DNOWEXT
+ if( !done && (auto_choose || want_dec == dreidnowext )
+ && cpu_3dnow(cpu_flags)
+ && cpu_3dnowext(cpu_flags)
+ && cpu_mmx(cpu_flags) )
+ {
+ chosen = "3DNowExt";
+ fr->cpu_opts.type = dreidnowext;
+# ifndef NO_LAYER3
+ fr->cpu_opts.dct36 = dct36_3dnowext;
+# endif
+# ifndef NO_16BIT
+ fr->synths.plain[r_1to1][f_16] = synth_1to1_3dnowext;
+# endif
+ done = 1;
+ }
+ #endif
+ #ifdef OPT_3DNOW
+ if( !done && (auto_choose || want_dec == dreidnow)
+ && cpu_3dnow(cpu_flags) && cpu_mmx(cpu_flags) )
+ {
+ chosen = "3DNow";
+ fr->cpu_opts.type = dreidnow;
+# ifndef NO_LAYER3
+ fr->cpu_opts.dct36 = dct36_3dnow;
+# endif
+# ifndef NO_16BIT
+ fr->synths.plain[r_1to1][f_16] = synth_1to1_3dnow;
+# endif
+ done = 1;
+ }
+ #endif
+ #ifdef OPT_MMX
+ if( !done && (auto_choose || want_dec == mmx)
+ && cpu_mmx(cpu_flags) )
+ {
+ chosen = "MMX";
+ fr->cpu_opts.type = mmx;
+# ifndef NO_16BIT
+ fr->synths.plain[r_1to1][f_16] = synth_1to1_mmx;
+# endif
+ done = 1;
+ }
+ #endif
+ #ifdef OPT_I586
+ if(!done && (auto_choose || want_dec == ifuenf))
+ {
+ chosen = "i586/pentium";
+ fr->cpu_opts.type = ifuenf;
+# ifndef NO_16BIT
+ fr->synths.plain[r_1to1][f_16] = synth_1to1_i586;
+# endif
+ done = 1;
+ }
+ #endif
+ #ifdef OPT_I586_DITHER
+ if(!done && (auto_choose || want_dec == ifuenf_dither))
+ {
+ chosen = "dithered i586/pentium";
+ fr->cpu_opts.type = ifuenf_dither;
+# ifndef NO_16BIT
+ fr->synths.plain[r_1to1][f_16] = synth_1to1_i586_dither;
+# ifndef NO_DOWNSAMPLE
+ fr->synths.plain[r_2to1][f_16] = synth_2to1_dither;
+ fr->synths.plain[r_4to1][f_16] = synth_4to1_dither;
+# endif
+# endif
+ done = 1;
+ }
+ #endif
+ }
+ #ifdef OPT_I486
+ /* That won't cooperate in multi opt mode - forcing i486 in layer3.c
+ But still... here it is... maybe for real use in future. */
+ if(!done && (auto_choose || want_dec == ivier))
+ {
+ chosen = "i486";
+ fr->cpu_opts.type = ivier;
+ done = 1;
+ }
+ #endif
+ #ifdef OPT_I386
+ if(!done && (auto_choose || want_dec == idrei))
+ {
+ chosen = "i386";
+ fr->cpu_opts.type = idrei;
+ done = 1;
+ }
+ #endif
+
+ if(done)
+ {
+ /*
+ We have chosen some x86 decoder... fillup some i386 stuff.
+ There is an open question about using dithered synth_1to1 for 8bit wrappers.
+ For quality it won't make sense, but wrapped i586_dither wrapped may still be faster...
+ */
+ enum synth_resample ri;
+ enum synth_format fi;
+# ifndef NO_8BIT
+# ifndef NO_16BIT /* possibility to use a 16->8 wrapper... */
+ if(fr->synths.plain[r_1to1][f_16] != synth_base.plain[r_1to1][f_16])
+ {
+ fr->synths.plain[r_1to1][f_8] = synth_1to1_8bit_wrap;
+ fr->synths.mono[r_1to1][f_8] = synth_1to1_8bit_wrap_mono;
+ fr->synths.mono2stereo[r_1to1][f_8] = synth_1to1_8bit_wrap_mono2stereo;
+ }
+# endif
+# endif
+ for(ri=0; ri<r_limit; ++ri)
+ for(fi=0; fi<f_limit; ++fi)
+ {
+ if(fr->synths.plain[ri][fi] == synth_base.plain[ri][fi])
+ fr->synths.plain[ri][fi] = plain_i386[ri][fi];
+ }
+ }
+
+#endif /* OPT_X86 */
+
+#ifdef OPT_X86_64
+ if(!done && (auto_choose || want_dec == x86_64))
+ {
+ chosen = "x86-64 (SSE)";
+ fr->cpu_opts.type = x86_64;
+# ifndef NO_16BIT
+ fr->synths.plain[r_1to1][f_16] = synth_1to1_x86_64;
+ fr->synths.stereo[r_1to1][f_16] = synth_1to1_stereo_x86_64;
+# endif
+# ifndef NO_REAL
+ fr->synths.plain[r_1to1][f_real] = synth_1to1_real_x86_64;
+ fr->synths.stereo[r_1to1][f_real] = synth_1to1_real_stereo_x86_64;
+# endif
+# ifndef NO_32BIT
+ fr->synths.plain[r_1to1][f_32] = synth_1to1_s32_x86_64;
+ fr->synths.stereo[r_1to1][f_32] = synth_1to1_s32_stereo_x86_64;
+# endif
+ done = 1;
+ }
+#endif
+
+#ifdef OPT_GENERIC_DITHER
+ if(!done && (auto_choose || want_dec == generic_dither))
+ {
+ chosen = "dithered generic";
+ fr->cpu_opts.type = generic_dither;
+# ifndef NO_16BIT
+ fr->synths.plain[r_1to1][f_16] = synth_1to1_dither;
+# ifndef NO_DOWNSAMPLE
+ fr->synths.plain[r_2to1][f_16] = synth_2to1_dither;
+ fr->synths.plain[r_4to1][f_16] = synth_4to1_dither;
+# endif
+# endif
+ done = 1;
+ }
+#endif
+
+# ifdef OPT_ALTIVEC
+ if(!done && (auto_choose || want_dec == altivec))
+ {
+ chosen = "AltiVec";
+ fr->cpu_opts.type = altivec;
+# ifndef NO_16BIT
+ fr->synths.plain[r_1to1][f_16] = synth_1to1_altivec;
+ fr->synths.stereo[r_1to1][f_16] = synth_1to1_stereo_altivec;
+# endif
+# ifndef NO_REAL
+ fr->synths.plain[r_1to1][f_real] = synth_1to1_real_altivec;
+ fr->synths.stereo[r_1to1][f_real] = synth_1to1_real_stereo_altivec;
+# endif
+# ifndef NO_32BIT
+ fr->synths.plain[r_1to1][f_32] = synth_1to1_s32_altivec;
+ fr->synths.stereo[r_1to1][f_32] = synth_1to1_s32_stereo_altivec;
+# endif
+ done = 1;
+ }
+# endif
+
+# ifdef OPT_GENERIC
+ if(!done && (auto_choose || want_dec == generic))
+ {
+ chosen = "generic";
+ fr->cpu_opts.type = generic;
+ done = 1;
+ }
+# endif
+
+ fr->cpu_opts.class = decclass(fr->cpu_opts.type);
+
+# ifndef NO_8BIT
+# ifndef NO_16BIT /* possibility to use a 16->8 wrapper... */
+ /* Last chance to use some optimized routine via generic wrappers (for 8bit). */
+ if( fr->cpu_opts.type != ifuenf_dither
+ && fr->cpu_opts.type != generic_dither
+ && fr->synths.plain[r_1to1][f_16] != synth_base.plain[r_1to1][f_16] )
+ {
+ fr->synths.plain[r_1to1][f_8] = synth_1to1_8bit_wrap;
+ fr->synths.mono[r_1to1][f_8] = synth_1to1_8bit_wrap_mono;
+ fr->synths.mono2stereo[r_1to1][f_8] = synth_1to1_8bit_wrap_mono2stereo;
+ }
+# endif
+# endif
+
+ if(done)
+ {
+ if(VERBOSE) fprintf(stderr, "Decoder: %s\n", chosen);
+ return 1;
+ }
+ else
+ {
+ if(NOQUIET) error("Could not set optimization!");
+ return 0;
+ }
+}
+
+enum optdec dectype(const char* decoder)
+{
+ enum optdec dt;
+ if( (decoder == NULL)
+ || (decoder[0] == 0) )
+ return autodec;
+
+ for(dt=autodec; dt<nodec; ++dt)
+ if(!strcasecmp(decoder, decname[dt])) return dt;
+
+ return nodec; /* If we found nothing... */
+}
+
+#ifdef OPT_MULTI
+
+/* same number of entries as full list, but empty at beginning */
+static const char *mpg123_supported_decoder_list[] =
+{
+ #ifdef OPT_SSE
+ NULL,
+ #endif
+ #ifdef OPT_3DNOWEXT
+ NULL,
+ #endif
+ #ifdef OPT_3DNOW
+ NULL,
+ #endif
+ #ifdef OPT_MMX
+ NULL,
+ #endif
+ #ifdef OPT_I586
+ NULL,
+ #endif
+ #ifdef OPT_I586_DITHER
+ NULL,
+ #endif
+ #ifdef OPT_I486
+ NULL,
+ #endif
+ #ifdef OPT_I386
+ NULL,
+ #endif
+ #ifdef OPT_ALTIVEC
+ NULL,
+ #endif
+ #ifdef OPT_X86_64
+ NULL,
+ #endif
+ #ifdef OPT_GENERIC_FLOAT
+ NULL,
+ #endif
+# ifdef OPT_GENERIC
+ NULL,
+# endif
+# ifdef OPT_GENERIC_DITHER
+ NULL,
+# endif
+ NULL
+};
+#endif
+
+static const char *mpg123_decoder_list[] =
+{
+ #ifdef OPT_SSE
+ dn_SSE,
+ #endif
+ #ifdef OPT_3DNOWEXT
+ dn_3DNowExt,
+ #endif
+ #ifdef OPT_3DNOW
+ dn_3DNow,
+ #endif
+ #ifdef OPT_MMX
+ dn_MMX,
+ #endif
+ #ifdef OPT_I586
+ dn_i586,
+ #endif
+ #ifdef OPT_I586_DITHER
+ dn_i586_dither,
+ #endif
+ #ifdef OPT_I486
+ dn_i486,
+ #endif
+ #ifdef OPT_I386
+ dn_i386,
+ #endif
+ #ifdef OPT_ALTIVEC
+ dn_AltiVec,
+ #endif
+ #ifdef OPT_X86_64
+ dn_x86_64,
+ #endif
+ #ifdef OPT_GENERIC
+ dn_generic,
+ #endif
+ #ifdef OPT_GENERIC_DITHER
+ dn_generic_dither,
+ #endif
+ NULL
+};
+
+void check_decoders(void )
+{
+#ifndef OPT_MULTI
+ /* In non-multi mode, only the full list (one entry) is used. */
+ return;
+#else
+ const char **d = mpg123_supported_decoder_list;
+#ifdef OPT_X86
+ getcpuflags(&cpu_flags);
+ if(cpu_i586(cpu_flags))
+ {
+ /* not yet: if(cpu_sse2(cpu_flags)) printf(" SSE2");
+ if(cpu_sse3(cpu_flags)) printf(" SSE3"); */
+#ifdef OPT_SSE
+ if(cpu_sse(cpu_flags)) *(d++) = decname[sse];
+#endif
+#ifdef OPT_3DNOWEXT
+ if(cpu_3dnowext(cpu_flags)) *(d++) = decname[dreidnowext];
+#endif
+#ifdef OPT_3DNOW
+ if(cpu_3dnow(cpu_flags)) *(d++) = decname[dreidnow];
+#endif
+#ifdef OPT_MMX
+ if(cpu_mmx(cpu_flags)) *(d++) = decname[mmx];
+#endif
+#ifdef OPT_I586
+ *(d++) = decname[ifuenf];
+#endif
+#ifdef OPT_I586_DITHER
+ *(d++) = decname[ifuenf_dither];
+#endif
+ }
+#endif
+/* just assume that the i486 built is run on a i486 cpu... */
+#ifdef OPT_I486
+ *(d++) = decname[ivier];
+#endif
+#ifdef OPT_ALTIVEC
+ *(d++) = decname[altivec];
+#endif
+/* every supported x86 can do i386, any cpu can do generic */
+#ifdef OPT_I386
+ *(d++) = decname[idrei];
+#endif
+#ifdef OPT_X86_64
+ *(d++) = decname[x86_64];
+#endif
+#ifdef OPT_GENERIC
+ *(d++) = decname[generic];
+#endif
+#ifdef OPT_GENERIC_DITHER
+ *(d++) = decname[generic_dither];
+#endif
+#endif /* ndef OPT_MULTI */
+}
+
+const char* attribute_align_arg mpg123_current_decoder(mpg123_handle *mh)
+{
+ if(mh == NULL) return NULL;
+
+ return decname[mh->cpu_opts.type];
+}
+
+const char attribute_align_arg **mpg123_decoders(){ return mpg123_decoder_list; }
+const char attribute_align_arg **mpg123_supported_decoders()
+{
+#ifdef OPT_MULTI
+ return mpg123_supported_decoder_list;
+#else
+ return mpg123_decoder_list;
+#endif
+}
diff --git a/src/libmpg123/optimize.h b/src/libmpg123/optimize.h
new file mode 100644
index 0000000..f3b167f
--- /dev/null
+++ b/src/libmpg123/optimize.h
@@ -0,0 +1,211 @@
+#ifndef MPG123_H_OPTIMIZE
+#define MPG123_H_OPTIMIZE
+/*
+ optimize: get a grip on the different optimizations
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis, taking from mpg123.[hc]
+
+ for building mpg123 with one optimization only, you have to choose exclusively between
+ OPT_GENERIC (generic C code for everyone)
+ OPT_GENERIC_DITHER (same with dithering for 1to1)
+ OPT_I386 (Intel i386)
+ OPT_I486 (Somewhat special code for i486; does not work together with others.)
+ OPT_I586 (Intel Pentium)
+ OPT_I586_DITHER (Intel Pentium with dithering/noise shaping for enhanced quality)
+ OPT_MMX (Intel Pentium and compatibles with MMX, fast, but not the best accuracy)
+ OPT_3DNOW (AMD 3DNow!, K6-2/3, Athlon, compatibles...)
+ OPT_3DNOWEXT (AMD 3DNow! extended, generally Athlon, compatibles...)
+ OPT_ALTIVEC (Motorola/IBM PPC with AltiVec under MacOSX)
+ OPT_X86_64 (x86-64 / AMD64 / Intel 64)
+
+ or you define OPT_MULTI and give a combination which makes sense (do not include i486, do not mix altivec and x86).
+
+ I still have to examine the dynamics of this here together with REAL_IS_FIXED.
+ Basic point is: Don't use REAL_IS_FIXED with something else than generic or i386.
+
+ Also, one should minimize code size by really ensuring that only functions that are really needed are included.
+ Currently, all generic functions will be always there (to be safe for fallbacks for advanced decoders).
+ Strictly, at least the synth_1to1 should not be necessary for single-decoder mode.
+*/
+
+
+/* Runtime optimization interface now here: */
+
+enum optdec
+{ /* autodec needs to be =0 and the first, nodec needs to be the last -- for loops! */
+ autodec=0, generic, generic_dither, idrei,
+ ivier, ifuenf, ifuenf_dither, mmx,
+ dreidnow, dreidnowext, altivec, sse, x86_64,
+ nodec
+};
+enum optcla { nocla=0, normal, mmxsse };
+
+/* - Set up the table of synth functions for current decoder choice. */
+int frame_cpu_opt(mpg123_handle *fr, const char* cpu);
+/* - Choose, from the synth table, the synth functions to use for current output format/rate. */
+int set_synth_functions(mpg123_handle *fr);
+/* - Parse decoder name and return numerical code. */
+enum optdec dectype(const char* decoder);
+/* - Return the default decoder type. */
+enum optdec defdec(void);
+/* - Return the class of a decoder type (mmxsse or normal). */
+enum optcla decclass(const enum optdec);
+
+/* Now comes a whole lot of definitions, for multi decoder mode and single decoder mode.
+ Because of the latter, it may look redundant at times. */
+
+/* this is included in mpg123.h, which includes config.h */
+#ifdef CCALIGN
+#define ALIGNED(a) __attribute__((aligned(a)))
+#else
+#define ALIGNED(a)
+#endif
+
+/* Safety catch for invalid decoder choice. */
+#ifdef REAL_IS_FIXED
+#if (defined OPT_I486) || (defined OPT_I586) || (defined OPT_I586_DITHER) \
+ || (defined OPT_MMX) || (defined OPT_SSE) || (defined_OPT_ALTIVEC) \
+ || (defined OPT_3DNOW) || (defined OPT_3DNOWEXT) || (defined OPT_X86_64) || (defined OPT_GENERIC_DITHER)
+#error "Bad decoder choice together with fixed point math!"
+#endif
+#endif
+
+#if (defined NO_LAYER1 && defined NO_LAYER2)
+#define NO_LAYER12
+#endif
+
+#ifdef OPT_GENERIC
+#ifndef OPT_MULTI
+# define defopt generic
+#endif
+#endif
+
+#ifdef OPT_GENERIC_DITHER
+#define OPT_DITHER
+#ifndef OPT_MULTI
+# define defopt generic_dither
+#endif
+#endif
+
+/* i486 is special... always alone! */
+#ifdef OPT_I486
+#define OPT_X86
+#define defopt ivier
+#ifdef OPT_MULTI
+#error "i486 can only work alone!"
+#endif
+#define FIR_BUFFER_SIZE 128
+#define FIR_SIZE 16
+#endif
+
+#ifdef OPT_I386
+#define OPT_X86
+#ifndef OPT_MULTI
+# define defopt idrei
+#endif
+#endif
+
+#ifdef OPT_I586
+#define OPT_X86
+#ifndef OPT_MULTI
+# define defopt ifuenf
+#endif
+#endif
+
+#ifdef OPT_I586_DITHER
+#define OPT_X86
+#define OPT_DITHER
+#ifndef OPT_MULTI
+# define defopt ifuenf_dither
+#endif
+#endif
+
+/* We still have some special code around MMX tables. */
+
+#ifdef OPT_MMX
+#define OPT_MMXORSSE
+#define OPT_X86
+#ifndef OPT_MULTI
+# define defopt mmx
+#endif
+#endif
+
+#ifdef OPT_SSE
+#define OPT_MMXORSSE
+#define OPT_MPLAYER
+#define OPT_X86
+#ifndef OPT_MULTI
+# define defopt sse
+#endif
+#endif
+
+#ifdef OPT_3DNOWEXT
+#define OPT_MMXORSSE
+#define OPT_MPLAYER
+#define OPT_X86
+#ifndef OPT_MULTI
+# define defopt dreidnowext
+# define opt_dct36(fr) dct36_3dnowext
+#endif
+#endif
+
+#ifdef OPT_MPLAYER
+extern const int costab_mmxsse[];
+#endif
+
+/* 3dnow used to use synth_1to1_i586 for mono / 8bit conversion - was that intentional? */
+/* I'm trying to skip the pentium code here ... until I see that that is indeed a bad idea */
+#ifdef OPT_3DNOW
+#define OPT_X86
+#ifndef OPT_MULTI
+# define defopt dreidnow
+# define opt_dct36(fr) dct36_3dnow
+#endif
+#endif
+
+#ifdef OPT_ALTIVEC
+#ifndef OPT_MULTI
+# define defopt altivec
+#endif
+#endif
+
+#ifdef OPT_X86_64
+#define OPT_MMXORSSE
+#ifndef OPT_MULTI
+# define defopt x86_64
+#endif
+#endif
+
+/* used for multi opt mode and the single 3dnow mode to have the old 3dnow test flag still working */
+void check_decoders(void);
+
+/* Announce the data in dnoise.c ... */
+#ifdef OPT_DITHER
+#define DITHERSIZE 65536
+extern float dithernoise[DITHERSIZE];
+#endif
+
+/*
+ Now come two blocks of standard definitions for multi-decoder mode and single-decoder mode.
+ Most stuff is so automatic that it's indeed generated by some inline shell script.
+ Remember to use these scripts when possible, instead of direct repetitive hacking.
+*/
+
+#ifdef OPT_MULTI
+
+# define defopt nodec
+
+# if (defined OPT_3DNOW || defined OPT_3DNOWEXT)
+# define opt_dct36(fr) ((fr)->cpu_opts.dct36)
+# endif
+
+#endif /* OPT_MULTI else */
+
+# ifndef opt_dct36
+# define opt_dct36(fr) dct36
+# endif
+
+#endif /* MPG123_H_OPTIMIZE */
+
diff --git a/src/libmpg123/parse.c b/src/libmpg123/parse.c
new file mode 100644
index 0000000..ec0a807
--- /dev/null
+++ b/src/libmpg123/parse.c
@@ -0,0 +1,1019 @@
+/*
+ parse: spawned from common; clustering around stream/frame parsing
+
+ copyright ?-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp & Thomas Orgis
+*/
+
+#include "mpg123lib_intern.h"
+
+#include <sys/stat.h>
+#include <fcntl.h>
+
+#include "getbits.h"
+
+#ifdef WIN32
+#include <winsock.h>
+#endif
+
+/* a limit for number of frames in a track; beyond that unsigned long may not be enough to hold byte addresses */
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+#ifndef ULONG_MAX
+/* hm, is this portable across preprocessors? */
+#define ULONG_MAX ((unsigned long)-1)
+#endif
+#define TRACK_MAX_FRAMES ULONG_MAX/4/1152
+
+#include "debug.h"
+
+#define bsbufid(fr) (fr)->bsbuf==(fr)->bsspace[0] ? 0 : ((fr)->bsbuf==fr->bsspace[1] ? 1 : ( (fr)->bsbuf==(fr)->bsspace[0]+512 ? 2 : ((fr)->bsbuf==fr->bsspace[1]+512 ? 3 : -1) ) )
+
+/*
+ AAAAAAAA AAABBCCD EEEEFFGH IIJJKLMM
+ A: sync
+ B: mpeg version
+ C: layer
+ D: CRC
+ E: bitrate
+ F:sampling rate
+ G: padding
+ H: private
+ I: channel mode
+ J: mode ext
+ K: copyright
+ L: original
+ M: emphasis
+
+ old compare mask 0xfffffd00:
+ 11111111 11111111 11111101 00000000
+
+ means: everything must match excluding padding and channel mode, ext mode, ...
+ But a vbr stream's headers will differ in bitrate!
+ We are already strict in allowing only frames of same type in stream, we should at least watch out for VBR while being strict.
+
+ So a better mask is:
+ 11111111 11111111 00001101 00000000
+
+ Even more, I'll allow varying crc bit.
+ 11111111 11111110 00001101 00000000
+
+ (still unsure about this private bit)
+*/
+#define HDRCMPMASK 0xfffe0d00
+#define HDRSAMPMASK 0xc00 /* 1100 00000000, FF bits (sample rate) */
+
+/* bitrates for [mpeg1/2][layer] */
+static const int tabsel_123[2][3][16] =
+{
+ {
+ {0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,},
+ {0,32,48,56, 64, 80, 96,112,128,160,192,224,256,320,384,},
+ {0,32,40,48, 56, 64, 80, 96,112,128,160,192,224,256,320,}
+ },
+ {
+ {0,32,48,56,64,80,96,112,128,144,160,176,192,224,256,},
+ {0,8,16,24,32,40,48,56,64,80,96,112,128,144,160,},
+ {0,8,16,24,32,40,48,56,64,80,96,112,128,144,160,}
+ }
+};
+
+const long freqs[9] = { 44100, 48000, 32000, 22050, 24000, 16000 , 11025 , 12000 , 8000 };
+
+static int decode_header(mpg123_handle *fr,unsigned long newhead);
+
+int read_frame_init(mpg123_handle* fr)
+{
+ if(frame_reset(fr) != 0) return -1;
+ return 0;
+}
+
+/* These two are to be replaced by one function that gives all the frame parameters (for outsiders).*/
+
+int frame_bitrate(mpg123_handle *fr)
+{
+ return tabsel_123[fr->lsf][fr->lay-1][fr->bitrate_index];
+}
+
+long frame_freq(mpg123_handle *fr)
+{
+ return freqs[fr->sampling_frequency];
+}
+
+#define free_format_header(head) ( ((head & 0xffe00000) == 0xffe00000) && ((head>>17)&3) && (((head>>12)&0xf) == 0x0) && (((head>>10)&0x3) != 0x3 ))
+
+/* compiler is smart enought to inline this one or should I really do it as macro...? */
+int head_check(unsigned long head)
+{
+ if
+ (
+ /* first 11 bits are set to 1 for frame sync */
+ ((head & 0xffe00000) != 0xffe00000)
+ ||
+ /* layer: 01,10,11 is 1,2,3; 00 is reserved */
+ (!((head>>17)&3))
+ ||
+ /* 1111 means bad bitrate */
+ (((head>>12)&0xf) == 0xf)
+ ||
+ /* 0000 means free format... which should be supported in future. */
+ (((head>>12)&0xf) == 0x0)
+ ||
+ /* sampling freq: 11 is reserved */
+ (((head>>10)&0x3) == 0x3 )
+ /* here used to be a mpeg 2.5 check... re-enabled 2.5 decoding due to lack of evidence that it is really not good */
+ )
+ {
+ return FALSE;
+ }
+ /* if no check failed, the header is valid (hopefully)*/
+ else
+ {
+ return TRUE;
+ }
+}
+
+static int check_lame_tag(mpg123_handle *fr)
+{
+ /*
+ going to look for Xing or Info at some position after the header
+ MPEG 1 MPEG 2/2.5 (LSF)
+ Stereo, Joint Stereo, Dual Channel 32 17
+ Mono 17 9
+
+ Also, how to avoid false positives? I guess I should interpret more of the header to rule that out(?).
+ I hope that ensuring all zeros until tag start is enough.
+ */
+ int lame_offset = (fr->stereo == 2) ? (fr->lsf ? 17 : 32 ) : (fr->lsf ? 9 : 17);
+ /* At least skip the decoder delay. */
+#ifdef GAPLESS
+ if(fr->begin_s == 0) frame_gapless_init(fr, GAPLESS_DELAY, 0);
+#endif
+
+ if(fr->framesize >= 120+lame_offset) /* traditional Xing header is 120 bytes */
+ {
+ int i;
+ int lame_type = 0;
+ debug("do we have lame tag?");
+ /* only search for tag when all zero before it (apart from checksum) */
+ for(i=2; i < lame_offset; ++i) if(fr->bsbuf[i] != 0) break;
+ if(i == lame_offset)
+ {
+ debug("possibly...");
+ if
+ (
+ (fr->bsbuf[lame_offset] == 'I')
+ && (fr->bsbuf[lame_offset+1] == 'n')
+ && (fr->bsbuf[lame_offset+2] == 'f')
+ && (fr->bsbuf[lame_offset+3] == 'o')
+ )
+ {
+ lame_type = 1; /* We still have to see what there is */
+ }
+ else if
+ (
+ (fr->bsbuf[lame_offset] == 'X')
+ && (fr->bsbuf[lame_offset+1] == 'i')
+ && (fr->bsbuf[lame_offset+2] == 'n')
+ && (fr->bsbuf[lame_offset+3] == 'g')
+ )
+ {
+ lame_type = 2;
+ fr->vbr = MPG123_VBR; /* Xing header means always VBR */
+ }
+ if(lame_type)
+ {
+ unsigned long xing_flags;
+
+ /* we have one of these headers... */
+ if(VERBOSE2) fprintf(stderr, "Note: Xing/Lame/Info header detected\n");
+ /* now interpret the Xing part, I have 120 bytes total for sure */
+ /* there are 4 bytes for flags, but only the last byte contains known ones */
+ lame_offset += 4; /* now first byte after Xing/Name */
+ /* 4 bytes dword for flags */
+ #define make_long(a, o) ((((unsigned long) a[o]) << 24) | (((unsigned long) a[o+1]) << 16) | (((unsigned long) a[o+2]) << 8) | ((unsigned long) a[o+3]))
+ /* 16 bit */
+ #define make_short(a,o) ((((unsigned short) a[o]) << 8) | ((unsigned short) a[o+1]))
+ xing_flags = make_long(fr->bsbuf, lame_offset);
+ lame_offset += 4;
+ debug1("Xing: flags 0x%08lx", xing_flags);
+ if(xing_flags & 1) /* frames */
+ {
+ /*
+ In theory, one should use that value for skipping...
+ When I know the exact number of samples I could simply count in flush_output,
+ but that's problematic with seeking and such.
+ I still miss the real solution for detecting the end.
+ */
+ fr->track_frames = (off_t) make_long(fr->bsbuf, lame_offset);
+ if(fr->track_frames > TRACK_MAX_FRAMES) fr->track_frames = 0; /* endless stream? */
+ #ifdef GAPLESS
+ /* if no further info there, remove/add at least the decoder delay */
+ if(fr->p.flags & MPG123_GAPLESS)
+ {
+ off_t length = fr->track_frames * spf(fr);
+ if(length > 1)
+ frame_gapless_init(fr, GAPLESS_DELAY, length+GAPLESS_DELAY);
+ }
+ #endif
+ if(VERBOSE3) fprintf(stderr, "Note: Xing: %lu frames\n", (long unsigned)fr->track_frames);
+ lame_offset += 4;
+ }
+ if(xing_flags & 0x2) /* bytes */
+ {
+ unsigned long xing_bytes = make_long(fr->bsbuf, lame_offset); /* We assume that this is the _total_ size of the file, including Xing frame ... and ID3 frames...
+ It's not that clearly documented... */
+ if(fr->rdat.filelen < 1)
+ fr->rdat.filelen = (off_t) xing_bytes; /* One could start caring for overflow here. */
+ else
+ {
+ if((off_t) xing_bytes != fr->rdat.filelen && NOQUIET)
+ {
+ double diff = 1.0/fr->rdat.filelen * (fr->rdat.filelen - (off_t)xing_bytes);
+ if(diff < 0.) diff = -diff;
+
+ if(VERBOSE3)
+ fprintf(stderr, "Note: Xing stream size %lu differs by %f%% from determined/given file size!\n", xing_bytes, diff);
+
+ if(diff > 1.)
+ fprintf(stderr, "Warning: Xing stream size off by more than 1%%, fuzzy seeking may be even more fuzzy than by design!\n");
+ }
+ }
+
+ if(VERBOSE3)
+ fprintf(stderr, "Note: Xing: %lu bytes\n", (long unsigned)xing_bytes);
+
+ lame_offset += 4;
+ }
+ if(xing_flags & 0x4) /* TOC */
+ {
+ frame_fill_toc(fr, fr->bsbuf+lame_offset);
+ lame_offset += 100; /* just skip */
+ }
+ if(xing_flags & 0x8) /* VBR quality */
+ {
+ if(VERBOSE3)
+ {
+ unsigned long xing_quality = make_long(fr->bsbuf, lame_offset);
+ fprintf(stderr, "Note: Xing: quality = %lu\n", (long unsigned)xing_quality);
+ }
+ lame_offset += 4;
+ }
+ /* I guess that either 0 or LAME extra data follows */
+ /* there may this crc16 be floating around... (?) */
+ if(fr->bsbuf[lame_offset] != 0)
+ {
+ unsigned char lame_vbr;
+ float replay_gain[2] = {0,0};
+ float peak = 0;
+ float gain_offset = 0; /* going to be +6 for old lame that used 83dB */
+ char nb[10];
+ memcpy(nb, fr->bsbuf+lame_offset, 9);
+ nb[9] = 0;
+ if(VERBOSE3) fprintf(stderr, "Note: Info: Encoder: %s\n", nb);
+ if(!strncmp("LAME", nb, 4))
+ {
+ gain_offset = 6;
+ debug("TODO: finish lame detetcion...");
+ }
+ lame_offset += 9;
+ /* the 4 big bits are tag revision, the small bits vbr method */
+ lame_vbr = fr->bsbuf[lame_offset] & 15;
+ if(VERBOSE3)
+ {
+ fprintf(stderr, "Note: Info: rev %u\n", fr->bsbuf[lame_offset] >> 4);
+ fprintf(stderr, "Note: Info: vbr mode %u\n", lame_vbr);
+ }
+ lame_offset += 1;
+ switch(lame_vbr)
+ {
+ /* from rev1 proposal... not sure if all good in practice */
+ case 1:
+ case 8: fr->vbr = MPG123_CBR; break;
+ case 2:
+ case 9: fr->vbr = MPG123_ABR; break;
+ default: fr->vbr = MPG123_VBR; /* 00==unknown is taken as VBR */
+ }
+ /* skipping: lowpass filter value */
+ lame_offset += 1;
+ /* replaygain */
+ /* 32bit float: peak amplitude -- why did I parse it as int before??*/
+ /* Ah, yes, lame seems to store it as int since some day in 2003; I've only seen zeros anyway until now, bah! */
+ if
+ (
+ (fr->bsbuf[lame_offset] != 0)
+ || (fr->bsbuf[lame_offset+1] != 0)
+ || (fr->bsbuf[lame_offset+2] != 0)
+ || (fr->bsbuf[lame_offset+3] != 0)
+ )
+ {
+ debug("Wow! Is there _really_ a non-zero peak value? Now is it stored as float or int - how should I know?");
+ /* byte*peak_bytes = (byte*) &peak;
+ ... endianess ... just copy bytes to avoid floating point operation on unaligned memory?
+ peak_bytes[0] = ...
+ peak = *(float*) (fr->bsbuf+lame_offset); */
+ }
+ if(VERBOSE3) fprintf(stderr, "Note: Info: peak = %f (I won't use this)\n", peak);
+ peak = 0; /* until better times arrived */
+ lame_offset += 4;
+ /*
+ ReplayGain values - lame only writes radio mode gain...
+ 16bit gain, 3 bits name, 3 bits originator, sign (1=-, 0=+), dB value*10 in 9 bits (fixed point)
+ ignore the setting if name or originator == 000!
+ radio 0 0 1 0 1 1 1 0 0 1 1 1 1 1 0 1
+ audiophile 0 1 0 0 1 0 0 0 0 0 0 1 0 1 0 0
+ */
+
+ for(i =0; i < 2; ++i)
+ {
+ unsigned char origin = (fr->bsbuf[lame_offset] >> 2) & 0x7; /* the 3 bits after that... */
+ if(origin != 0)
+ {
+ unsigned char gt = fr->bsbuf[lame_offset] >> 5; /* only first 3 bits */
+ if(gt == 1) gt = 0; /* radio */
+ else if(gt == 2) gt = 1; /* audiophile */
+ else continue;
+ /* get the 9 bits into a number, divide by 10, multiply sign... happy bit banging */
+ replay_gain[0] = (float) ((fr->bsbuf[lame_offset] & 0x2) ? -0.1 : 0.1) * (make_short(fr->bsbuf, lame_offset) & 0x1f);
+ }
+ lame_offset += 2;
+ }
+ if(VERBOSE3)
+ {
+ fprintf(stderr, "Note: Info: Radio Gain = %03.1fdB\n", replay_gain[0]);
+ fprintf(stderr, "Note: Info: Audiophile Gain = %03.1fdB\n", replay_gain[1]);
+ }
+ for(i=0; i < 2; ++i)
+ {
+ if(fr->rva.level[i] <= 0)
+ {
+ fr->rva.peak[i] = 0; /* at some time the parsed peak should be used */
+ fr->rva.gain[i] = replay_gain[i];
+ fr->rva.level[i] = 0;
+ }
+ }
+ lame_offset += 1; /* skipping encoding flags byte */
+ if(fr->vbr == MPG123_ABR)
+ {
+ fr->abr_rate = fr->bsbuf[lame_offset];
+ if(VERBOSE3) fprintf(stderr, "Note: Info: ABR rate = %u\n", fr->abr_rate);
+ }
+ lame_offset += 1;
+ /* encoder delay and padding, two 12 bit values... lame does write them from int ...*/
+ if(VERBOSE3)
+ fprintf(stderr, "Note: Encoder delay = %i; padding = %i\n",
+ ((((int) fr->bsbuf[lame_offset]) << 4) | (((int) fr->bsbuf[lame_offset+1]) >> 4)),
+ (((((int) fr->bsbuf[lame_offset+1]) << 8) | (((int) fr->bsbuf[lame_offset+2]))) & 0xfff) );
+ #ifdef GAPLESS
+ if(fr->p.flags & MPG123_GAPLESS)
+ {
+ off_t length = fr->track_frames * spf(fr);
+ off_t skipbegin = GAPLESS_DELAY + ((((int) fr->bsbuf[lame_offset]) << 4) | (((int) fr->bsbuf[lame_offset+1]) >> 4));
+ off_t skipend = -GAPLESS_DELAY + (((((int) fr->bsbuf[lame_offset+1]) << 8) | (((int) fr->bsbuf[lame_offset+2]))) & 0xfff);
+ debug3("preparing gapless mode for layer3: length %lu, skipbegin %lu, skipend %lu",
+ (long unsigned)length, (long unsigned)skipbegin, (long unsigned)skipend);
+ if(length > 1)
+ frame_gapless_init(fr, skipbegin, (skipend < length) ? length-skipend : length);
+ }
+ #endif
+ }
+ /* switch buffer back ... */
+ fr->bsbuf = fr->bsspace[fr->bsnum]+512;
+ fr->bsnum = (fr->bsnum + 1) & 1;
+ return 1; /* got it! */
+ }
+ }
+ }
+ return 0; /* no lame tag */
+}
+
+/* Just tell if the header is some mono. */
+static int header_mono(unsigned long newhead)
+{
+ return ((newhead>>6)&0x3) == MPG_MD_MONO ? TRUE : FALSE;
+}
+
+/*
+ That's a big one: read the next frame. 1 is success, <= 0 is some error
+ Special error READER_MORE means: Please feed more data and try again.
+*/
+int read_frame(mpg123_handle *fr)
+{
+ /* TODO: rework this thing */
+ unsigned long newhead;
+ off_t framepos;
+ int ret;
+ /* stuff that needs resetting if complete frame reading fails */
+ int oldsize = fr->framesize;
+ int oldphase = fr->halfphase;
+ fr->fsizeold=fr->framesize; /* for Layer3 */
+
+ /* Speed-down hack: Play it again, Sam (the frame, I mean). */
+ if (fr->p.halfspeed)
+ {
+ if(fr->halfphase) /* repeat last frame */
+ {
+ debug("repeat!");
+ fr->to_decode = fr->to_ignore = TRUE;
+ --fr->halfphase;
+ fr->bitindex = 0;
+ fr->wordpointer = (unsigned char *) fr->bsbuf;
+ if(fr->lay == 3) memcpy (fr->bsbuf, fr->ssave, fr->ssize);
+ if(fr->error_protection) fr->crc = getbits(fr, 16); /* skip crc */
+ return 1;
+ }
+ else
+ {
+ fr->halfphase = fr->p.halfspeed - 1;
+ }
+ }
+
+read_again:
+ debug2("trying to get frame %li at 0x%lx", (long)fr->num+1, (unsigned long)fr->rd->tell(fr));
+ if((ret = fr->rd->head_read(fr,&newhead)) <= 0){ debug("need more?"); goto read_frame_bad;}
+
+init_resync:
+
+ fr->header_change = 2; /* output format change is possible... */
+ if(fr->oldhead) /* check a following header for change */
+ {
+ if(fr->oldhead == newhead) fr->header_change = 0;
+ else
+ /* If they have the same sample rate. Note that only is _not_ the case for the first header, as we enforce sample rate match for following frames.
+ So, during one stream, only change of stereoness is possible and indicated by header_change == 2. */
+ if((fr->oldhead & HDRSAMPMASK) == (newhead & HDRSAMPMASK))
+ {
+ /* Now if both channel modes are mono or both stereo, it's no big deal. */
+ if( header_mono(fr->oldhead) == header_mono(newhead))
+ fr->header_change = 1;
+ }
+ }
+
+#ifdef SKIP_JUNK
+ /* watch out for junk/tags on beginning of stream by invalid header */
+ if(!fr->firsthead && !head_check(newhead) && !free_format_header(newhead)) {
+ int i;
+
+ /* check for id3v2; first three bytes (of 4) are "ID3" */
+ if((newhead & (unsigned long) 0xffffff00) == (unsigned long) 0x49443300)
+ {
+ int id3ret = 0;
+ id3ret = parse_new_id3(fr, newhead);
+ if (id3ret < 0){ debug("need more?"); ret = id3ret; goto read_frame_bad; }
+#ifndef NO_ID3V2
+ else if(id3ret > 0){ debug("got ID3v2"); fr->metaflags |= MPG123_NEW_ID3|MPG123_ID3; }
+ else debug("no useful ID3v2");
+#endif
+
+ fr->oldhead = 0;
+ goto read_again; /* Also in case of invalid ID3 tag (ret==0), try to get on track again. */
+ }
+ else if(VERBOSE2 && fr->silent_resync == 0) fprintf(stderr,"Note: Junk at the beginning (0x%08lx)\n",newhead);
+
+ /* I even saw RIFF headers at the beginning of MPEG streams ;( */
+ if(newhead == ('R'<<24)+('I'<<16)+('F'<<8)+'F') {
+ if(VERBOSE2 && fr->silent_resync == 0) fprintf(stderr, "Note: Looks like a RIFF header.\n");
+
+ if((ret=fr->rd->head_read(fr,&newhead))<=0){ debug("need more?"); goto read_frame_bad; }
+
+ while(newhead != ('d'<<24)+('a'<<16)+('t'<<8)+'a')
+ {
+ if((ret=fr->rd->head_shift(fr,&newhead))<=0){ debug("need more?"); goto read_frame_bad; }
+ }
+ if((ret=fr->rd->head_read(fr,&newhead))<=0){ debug("need more?"); goto read_frame_bad; }
+
+ if(VERBOSE2 && fr->silent_resync == 0) fprintf(stderr,"Note: Skipped RIFF header!\n");
+
+ fr->oldhead = 0;
+ goto read_again;
+ }
+ /* unhandled junk... just continue search for a header */
+ /* step in byte steps through next 64K */
+ debug("searching for header...");
+ for(i=0;i<65536;i++) {
+ if((ret=fr->rd->head_shift(fr,&newhead))<=0){ debug("need more?"); goto read_frame_bad; }
+ /* if(head_check(newhead)) */
+ if(head_check(newhead) && decode_header(fr, newhead))
+ break;
+ }
+ if(i == 65536)
+ {
+ if(NOQUIET) error("Giving up searching valid MPEG header after 64K of junk.");
+ return 0;
+ }
+ else debug("hopefully found one...");
+ /*
+ * should we additionaly check, whether a new frame starts at
+ * the next expected position? (some kind of read ahead)
+ * We could implement this easily, at least for files.
+ */
+ }
+#endif
+
+ /* first attempt of read ahead check to find the real first header; cannot believe what junk is out there! */
+ /* for now, a spurious first free format header screws up here; need free format support for detecting false free format headers... */
+ if(!fr->firsthead && fr->rdat.flags & (READER_SEEKABLE|READER_BUFFERED) && head_check(newhead) && decode_header(fr, newhead))
+ {
+ unsigned long nexthead = 0;
+ int hd = 0;
+ off_t start = fr->rd->tell(fr);
+ debug2("doing ahead check with BPF %d at %li", fr->framesize+4, (long)start);
+ /* step framesize bytes forward and read next possible header*/
+ if((ret=fr->rd->skip_bytes(fr, fr->framesize))<0)
+ {
+ if(ret==READER_ERROR && NOQUIET) error("cannot seek!");
+ goto read_frame_bad;
+ }
+ hd = fr->rd->head_read(fr,&nexthead);
+ if(hd==MPG123_NEED_MORE){ debug("need more?"); ret = hd; goto read_frame_bad; }
+ if((ret=fr->rd->back_bytes(fr, fr->rd->tell(fr)-start))<0)
+ {
+ if(ret==READER_ERROR && NOQUIET) error("cannot seek!");
+ else debug("need more?");
+ goto read_frame_bad;
+ }
+ debug1("After fetching next header, at %li", (long)fr->rd->tell(fr));
+ if(!hd)
+ {
+ if(NOQUIET) warning("cannot read next header, a one-frame stream? Duh...");
+ }
+ else
+ {
+ debug2("does next header 0x%08lx match first 0x%08lx?", nexthead, newhead);
+ /* not allowing free format yet */
+ if(!head_check(nexthead) || (nexthead & HDRCMPMASK) != (newhead & HDRCMPMASK))
+ {
+ debug("No, the header was not valid, start from beginning...");
+ fr->oldhead = 0; /* start over */
+ /* try next byte for valid header */
+ if((ret=fr->rd->back_bytes(fr, 3))<0)
+ {
+ if(NOQUIET) error("cannot seek!");
+ else debug("need more?");
+ goto read_frame_bad;
+ }
+ goto read_again;
+ }
+ }
+ }
+
+ /* why has this head check been avoided here before? */
+ if(!head_check(newhead))
+ {
+ if(!fr->firsthead && free_format_header(newhead))
+ {
+ if(NOQUIET) error1("Header 0x%08lx seems to indicate a free format stream; I do not handle that yet", newhead);
+
+ goto read_again;
+ }
+ /* and those ugly ID3 tags */
+ if((newhead & 0xffffff00) == ('T'<<24)+('A'<<16)+('G'<<8))
+ {
+ fr->id3buf[0] = (unsigned char) ((newhead >> 24) & 0xff);
+ fr->id3buf[1] = (unsigned char) ((newhead >> 16) & 0xff);
+ fr->id3buf[2] = (unsigned char) ((newhead >> 8) & 0xff);
+ fr->id3buf[3] = (unsigned char) ( newhead & 0xff);
+ if((ret=fr->rd->fullread(fr,fr->id3buf+4,124)) < 0){ debug("need more?"); goto read_frame_bad; }
+ fr->metaflags |= MPG123_NEW_ID3|MPG123_ID3;
+ fr->rdat.flags |= READER_ID3TAG; /* that marks id3v1 */
+ if (VERBOSE2) fprintf(stderr,"Note: Skipped ID3 Tag!\n");
+ goto read_again;
+ }
+ /* duplicated code from above! */
+ /* check for id3v2; first three bytes (of 4) are "ID3" */
+ if((newhead & (unsigned long) 0xffffff00) == (unsigned long) 0x49443300)
+ {
+ int id3length = 0;
+ id3length = parse_new_id3(fr, newhead);
+ if(id3length < 0){ debug("need more?"); ret = id3length; goto read_frame_bad; }
+
+ fr->metaflags |= MPG123_NEW_ID3|MPG123_ID3;
+ goto read_again;
+ }
+ else if(NOQUIET && fr->silent_resync == 0)
+ {
+ fprintf(stderr,"Note: Illegal Audio-MPEG-Header 0x%08lx at offset 0x%lx.\n",
+ newhead, (long unsigned int)fr->rd->tell(fr)-4);
+ }
+
+ if(NOQUIET && (newhead & 0xffffff00) == ('b'<<24)+('m'<<16)+('p'<<8)) fprintf(stderr,"Note: Could be a BMP album art.\n");
+ /* Do resync if not forbidden by flag.
+ I used to have a check for not-icy-meta here, but concluded that the desync issues came from a reader bug, not the stream. */
+ if( !(fr->p.flags & MPG123_NO_RESYNC) )
+ {
+ long try = 0;
+ long limit = fr->p.resync_limit;
+
+ /* If a resync is needed the bitreservoir of previous frames is no longer valid */
+ fr->bitreservoir = 0;
+
+ /* TODO: make this more robust, I'd like to cat two mp3 fragments together (in a dirty way) and still have mpg123 beign able to decode all it somehow. */
+ if(NOQUIET && fr->silent_resync == 0) fprintf(stderr, "Note: Trying to resync...\n");
+ /* Read more bytes until we find something that looks
+ reasonably like a valid header. This is not a
+ perfect strategy, but it should get us back on the
+ track within a short time (and hopefully without
+ too much distortion in the audio output). */
+ do
+ {
+ ++try;
+ if(limit >= 0 && try >= limit) break;
+
+ if((ret=fr->rd->head_shift(fr,&newhead)) <= 0)
+ {
+ debug("need more?");
+ if(NOQUIET) fprintf (stderr, "Note: Hit end of (available) data during resync.\n");
+
+ goto read_frame_bad;
+ }
+ if(VERBOSE3) debug3("resync try %li at 0x%lx, got newhead 0x%08lx", try, (unsigned long)fr->rd->tell(fr), newhead);
+
+ if(!fr->oldhead)
+ {
+ debug("going to init_resync...");
+ goto init_resync; /* "considered harmful", eh? */
+ }
+ /* we should perhaps collect a list of valid headers that occured in file... there can be more */
+ /* Michael's new resync routine seems to work better with the one frame readahead (and some input buffering?) */
+ } while
+ (
+ !head_check(newhead) /* Simply check for any valid header... we have the readahead to get it straight now(?) */
+ /* (newhead & HDRCMPMASK) != (fr->oldhead & HDRCMPMASK)
+ && (newhead & HDRCMPMASK) != (fr->firsthead & HDRCMPMASK)*/
+ );
+ /* too many false positives
+ }while (!(head_check(newhead) && decode_header(fr, newhead))); */
+ if(NOQUIET && fr->silent_resync == 0) fprintf (stderr, "Note: Skipped %li bytes in input.\n", try);
+
+ if(limit >= 0 && try >= limit)
+ {
+ if(NOQUIET)
+ error1("Giving up resync after %li bytes - your stream is not nice... (maybe increasing resync limit could help).", try);
+
+ fr->err = MPG123_RESYNC_FAIL;
+ return READER_ERROR;
+ }
+ else
+ {
+ debug1("Found valid header 0x%lx... unsetting firsthead to reinit stream.", newhead);
+ fr->firsthead = 0;
+ goto init_resync;
+ }
+ }
+ else
+ {
+ if(NOQUIET) error("not attempting to resync...");
+
+ fr->err = MPG123_OUT_OF_SYNC;
+ return READER_ERROR;
+ }
+ }
+
+ if (!fr->firsthead)
+ {
+ if(!decode_header(fr,newhead))
+ {
+ if(NOQUIET) error("decode header failed before first valid one, going to read again");
+
+ goto read_again;
+ }
+ }
+ else
+ if(!decode_header(fr,newhead))
+ {
+ if(NOQUIET) error("decode header failed - goto resync");
+ /* return 0; */
+ goto init_resync;
+ }
+
+ /* if filepos is invalid, so is framepos */
+ framepos = fr->rd->tell(fr) - 4;
+ /* flip/init buffer for Layer 3 */
+ {
+ unsigned char *newbuf = fr->bsspace[fr->bsnum]+512;
+ /* read main data into memory */
+ if((ret=fr->rd->read_frame_body(fr,newbuf,fr->framesize))<0)
+ {
+ /* if failed: flip back */
+ debug("need more?");
+ goto read_frame_bad;
+ }
+ fr->bsbufold = fr->bsbuf;
+ fr->bsbuf = newbuf;
+ }
+ fr->bsnum = (fr->bsnum + 1) & 1;
+
+ if(!fr->firsthead)
+ {
+ fr->firsthead = newhead; /* _now_ it's time to store it... the first real header */
+ /* This is the first header of our current stream segment.
+ It is only the actual first header of the whole stream when fr->num is still below zero!
+ Think of resyncs where firsthead has been reset for format flexibility. */
+ if(fr->num < 0)
+ {
+ fr->audio_start = framepos;
+ /* Only check for LAME tag at beginning of whole stream
+ ... when there indeed is one in between, it's the user's problem. */
+ if(fr->lay == 3 && check_lame_tag(fr) == 1)
+ { /* ...in practice, Xing/LAME tags are layer 3 only. */
+ if(fr->rd->forget != NULL) fr->rd->forget(fr);
+
+ fr->oldhead = 0;
+ goto read_again;
+ }
+ /* now adjust volume */
+ do_rva(fr);
+ }
+
+ debug2("fr->firsthead: %08lx, audio_start: %li", fr->firsthead, (long int)fr->audio_start);
+ }
+
+ fr->bitindex = 0;
+ fr->wordpointer = (unsigned char *) fr->bsbuf;
+ /* Question: How bad does the floating point value get with repeated recomputation?
+ Also, considering that we can play the file or parts of many times. */
+ if(++fr->mean_frames != 0)
+ {
+ fr->mean_framesize = ((fr->mean_frames-1)*fr->mean_framesize+compute_bpf(fr)) / fr->mean_frames ;
+ }
+ ++fr->num; /* 0 for first frame! */
+ debug4("Frame %li %08lx %i, next filepos=0x%lx",
+ (long)fr->num, newhead, fr->framesize, (long unsigned)fr->rd->tell(fr));
+ /* save for repetition */
+ if(fr->p.halfspeed && fr->lay == 3)
+ {
+ debug("halfspeed - reusing old bsbuf ");
+ memcpy (fr->ssave, fr->bsbuf, fr->ssize);
+ }
+
+ /* index the position */
+#ifdef FRAME_INDEX
+ /* Keep track of true frame positions in our frame index.
+ but only do so when we are sure that the frame number is accurate... */
+ if(fr->accurate && FI_NEXT(fr->index, fr->num))
+ fi_add(&fr->index, framepos);
+#endif
+
+ if(fr->silent_resync > 0) --fr->silent_resync;
+
+ if(fr->rd->forget != NULL) fr->rd->forget(fr);
+
+ fr->to_decode = fr->to_ignore = TRUE;
+ if(fr->error_protection) fr->crc = getbits(fr, 16); /* skip crc */
+
+ return 1;
+read_frame_bad:
+ fr->silent_resync = 0;
+ if(fr->err == MPG123_OK) fr->err = MPG123_ERR_READER;
+ fr->framesize = oldsize;
+ fr->halfphase = oldphase;
+ return ret;
+}
+
+
+/*
+ * decode a header and write the information
+ * into the frame structure
+ */
+static int decode_header(mpg123_handle *fr,unsigned long newhead)
+{
+ if(!head_check(newhead))
+ {
+ if(NOQUIET) error("tried to decode obviously invalid header");
+
+ return 0;
+ }
+ if( newhead & (1<<20) )
+ {
+ fr->lsf = (newhead & (1<<19)) ? 0x0 : 0x1;
+ fr->mpeg25 = 0;
+ }
+ else
+ {
+ fr->lsf = 1;
+ fr->mpeg25 = 1;
+ }
+
+ if( (fr->p.flags & MPG123_NO_RESYNC) || !fr->oldhead
+ || (((fr->oldhead>>19)&0x3) ^ ((newhead>>19)&0x3)) )
+ {
+ /* If "tryresync" is false, assume that certain
+ parameters do not change within the stream!
+ Force an update if lsf or mpeg25 settings
+ have changed. */
+ fr->lay = 4-((newhead>>17)&3);
+ if( ((newhead>>10)&0x3) == 0x3)
+ {
+ if(NOQUIET) error("Stream error");
+
+ return 0; /* exit() here really is too much, isn't it? */
+ }
+ if(fr->mpeg25)
+ fr->sampling_frequency = 6 + ((newhead>>10)&0x3);
+ else
+ fr->sampling_frequency = ((newhead>>10)&0x3) + (fr->lsf*3);
+ }
+
+ #ifdef DEBUG
+ if((((newhead>>16)&0x1)^0x1) != fr->error_protection) debug("changed crc bit!");
+ #endif
+ fr->error_protection = ((newhead>>16)&0x1)^0x1; /* seen a file where this varies (old lame tag without crc, track with crc) */
+ fr->bitrate_index = ((newhead>>12)&0xf);
+ fr->padding = ((newhead>>9)&0x1);
+ fr->extension = ((newhead>>8)&0x1);
+ fr->mode = ((newhead>>6)&0x3);
+ fr->mode_ext = ((newhead>>4)&0x3);
+ fr->copyright = ((newhead>>3)&0x1);
+ fr->original = ((newhead>>2)&0x1);
+ fr->emphasis = newhead & 0x3;
+
+ fr->stereo = (fr->mode == MPG_MD_MONO) ? 1 : 2;
+
+ fr->oldhead = newhead;
+
+ if(!fr->bitrate_index)
+ {
+ if(NOQUIET) error1("encountered free format header %08lx in decode_header - not supported yet",newhead);
+
+ return 0;
+ }
+
+ switch(fr->lay)
+ {
+#ifndef NO_LAYER1
+ case 1:
+ fr->do_layer = do_layer1;
+ fr->framesize = (long) tabsel_123[fr->lsf][0][fr->bitrate_index] * 12000;
+ fr->framesize /= freqs[fr->sampling_frequency];
+ fr->framesize = ((fr->framesize+fr->padding)<<2)-4;
+ break;
+#endif
+#ifndef NO_LAYER2
+ case 2:
+ fr->do_layer = do_layer2;
+ debug2("bitrate index: %i (%i)", fr->bitrate_index, tabsel_123[fr->lsf][1][fr->bitrate_index] );
+ fr->framesize = (long) tabsel_123[fr->lsf][1][fr->bitrate_index] * 144000;
+ fr->framesize /= freqs[fr->sampling_frequency];
+ fr->framesize += fr->padding - 4;
+ break;
+#endif
+#ifndef NO_LAYER3
+ case 3:
+ fr->do_layer = do_layer3;
+ if(fr->lsf)
+ fr->ssize = (fr->stereo == 1) ? 9 : 17;
+ else
+ fr->ssize = (fr->stereo == 1) ? 17 : 32;
+
+ if(fr->error_protection)
+ fr->ssize += 2;
+
+ fr->framesize = (long) tabsel_123[fr->lsf][2][fr->bitrate_index] * 144000;
+ fr->framesize /= freqs[fr->sampling_frequency]<<(fr->lsf);
+ fr->framesize = fr->framesize + fr->padding - 4;
+ break;
+#endif
+ default:
+ if(NOQUIET) error1("Layer type %i not supported in this build!", fr->lay);
+
+ return 0;
+ }
+ if (fr->framesize > MAXFRAMESIZE)
+ {
+ if(NOQUIET) error1("Frame size too big: %d", fr->framesize+4-fr->padding);
+
+ return (0);
+ }
+ return 1;
+}
+
+void set_pointer(mpg123_handle *fr, long backstep)
+{
+ fr->wordpointer = fr->bsbuf + fr->ssize - backstep;
+ if (backstep)
+ memcpy(fr->wordpointer,fr->bsbufold+fr->fsizeold-backstep,backstep);
+
+ fr->bitindex = 0;
+}
+
+/********************************/
+
+double compute_bpf(mpg123_handle *fr)
+{
+ double bpf;
+
+ switch(fr->lay)
+ {
+ case 1:
+ bpf = tabsel_123[fr->lsf][0][fr->bitrate_index];
+ bpf *= 12000.0 * 4.0;
+ bpf /= freqs[fr->sampling_frequency] <<(fr->lsf);
+ break;
+ case 2:
+ case 3:
+ bpf = tabsel_123[fr->lsf][fr->lay-1][fr->bitrate_index];
+ bpf *= 144000;
+ bpf /= freqs[fr->sampling_frequency] << (fr->lsf);
+ break;
+ default:
+ bpf = 1.0;
+ }
+
+ return bpf;
+}
+
+double attribute_align_arg mpg123_tpf(mpg123_handle *fr)
+{
+ static int bs[4] = { 0,384,1152,1152 };
+ double tpf;
+ if(fr == NULL) return -1;
+
+ tpf = (double) bs[fr->lay];
+ tpf /= freqs[fr->sampling_frequency] << (fr->lsf);
+ return tpf;
+}
+
+int attribute_align_arg mpg123_position(mpg123_handle *fr, off_t no, off_t buffsize,
+ off_t *current_frame, off_t *frames_left,
+ double *current_seconds, double *seconds_left)
+{
+ double tpf;
+ double dt = 0.0;
+ off_t cur, left;
+ double curs, lefts;
+
+ if(!fr || !fr->rd) /* Isn't this too paranoid? */
+ {
+ debug("reader troubles!");
+ return MPG123_ERR;
+ }
+
+ no += fr->num; /* no starts out as offset */
+ cur = no;
+ tpf = mpg123_tpf(fr);
+ if(buffsize > 0 && fr->af.rate > 0 && fr->af.channels > 0)
+ {
+ dt = (double) buffsize / fr->af.rate / fr->af.channels;
+ if(fr->af.encoding & MPG123_ENC_16) dt *= 0.5;
+ }
+
+ left = 0;
+
+ if((fr->track_frames != 0) && (fr->track_frames >= fr->num)) left = no < fr->track_frames ? fr->track_frames - no : 0;
+ else
+ if(fr->rdat.filelen >= 0)
+ {
+ double bpf;
+ off_t t = fr->rd->tell(fr);
+ bpf = fr->mean_framesize ? fr->mean_framesize : compute_bpf(fr);
+ left = (off_t)((double)(fr->rdat.filelen-t)/bpf);
+ /* no can be different for prophetic purposes, file pointer is always associated with fr->num! */
+ if(fr->num != no)
+ {
+ if(fr->num > no) left += fr->num - no;
+ else
+ {
+ if(left >= (no - fr->num)) left -= no - fr->num;
+ else left = 0; /* uh, oh! */
+ }
+ }
+ /* I totally don't understand why we should re-estimate the given correct(?) value */
+ /* fr->num = (unsigned long)((double)t/bpf); */
+ }
+
+ /* beginning with 0 or 1?*/
+ curs = (double) no*tpf-dt;
+ lefts = (double)left*tpf+dt;
+#if 0
+ curs = curs < 0 ? 0.0 : curs;
+#endif
+ if(left < 0 || lefts < 0)
+ { /* That is the case for non-seekable streams. */
+ left = 0;
+ lefts = 0.0;
+ }
+ if(current_frame != NULL) *current_frame = cur;
+ if(frames_left != NULL) *frames_left = left;
+ if(current_seconds != NULL) *current_seconds = curs;
+ if(seconds_left != NULL) *seconds_left = lefts;
+ return MPG123_OK;
+}
+
+int get_songlen(mpg123_handle *fr,int no)
+{
+ double tpf;
+
+ if(!fr)
+ return 0;
+
+ if(no < 0) {
+ if(!fr->rd || fr->rdat.filelen < 0)
+ return 0;
+ no = (int) ((double) fr->rdat.filelen / compute_bpf(fr));
+ }
+
+ tpf = mpg123_tpf(fr);
+ return (int) (no*tpf);
+}
diff --git a/src/libmpg123/parse.h b/src/libmpg123/parse.h
new file mode 100644
index 0000000..91f9f7d
--- /dev/null
+++ b/src/libmpg123/parse.h
@@ -0,0 +1,25 @@
+/*
+ parse: spawned from common; clustering around stream/frame parsing
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp & Thomas Orgis
+*/
+
+#ifndef MPG123_PARSE_H
+#define MPG123_PARSE_H
+
+#include "frame.h"
+
+int read_frame_init(mpg123_handle* fr);
+int frame_bitrate(mpg123_handle *fr);
+long frame_freq(mpg123_handle *fr);
+int read_frame_recover(mpg123_handle* fr); /* dead? */
+int read_frame(mpg123_handle *fr);
+void set_pointer(mpg123_handle *fr, long backstep);
+int position_info(mpg123_handle* fr, unsigned long no, long buffsize, unsigned long* frames_left, double* current_seconds, double* seconds_left);
+double compute_bpf(mpg123_handle *fr);
+long time_to_frame(mpg123_handle *fr, double seconds);
+int get_songlen(mpg123_handle *fr,int no);
+
+#endif
diff --git a/src/libmpg123/reader.h b/src/libmpg123/reader.h
new file mode 100644
index 0000000..81019e8
--- /dev/null
+++ b/src/libmpg123/reader.h
@@ -0,0 +1,107 @@
+/*
+ reader: reading input data
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis (after code from Michael Hipp)
+*/
+
+#ifndef MPG123_READER_H
+#define MPG123_READER_H
+
+#include "config.h"
+#include "mpg123.h"
+
+struct buffy
+{
+ unsigned char *data;
+ ssize_t size;
+ struct buffy *next;
+};
+
+struct bufferchain
+{
+ struct buffy* first; /* The beginning of the chain. */
+ struct buffy* last; /* The end... of the chain. */
+ ssize_t size; /* Aggregated size of all buffies. */
+ /* These positions are relative to buffer chain beginning. */
+ ssize_t pos; /* Position in whole chain. */
+ ssize_t firstpos; /* The point of return on non-forget() */
+ /* The "real" filepos is fileoff + pos. */
+ off_t fileoff; /* Beginning of chain is at this file offset. */
+};
+
+struct reader_data
+{
+ off_t filelen; /* total file length or total buffer size */
+ off_t filepos; /* position in file or position in buffer chain */
+ int filept;
+ int flags;
+#ifndef WIN32
+ long timeout_sec;
+#endif
+ ssize_t (*fdread) (mpg123_handle *, void *, size_t);
+ /* User can replace the read and lseek functions. The r_* are the stored replacement functions or NULL,
+ The second two pointers are the actual workers (default map to POSIX read/lseek). */
+ ssize_t (*r_read) (int fd, void *buf, size_t count);
+ off_t (*r_lseek)(int fd, off_t offset, int whence);
+ ssize_t (*read) (int fd, void *buf, size_t count);
+ off_t (*lseek)(int fd, off_t offset, int whence);
+ /* Buffered readers want that abstracted, set internally. */
+ ssize_t (*fullread)(mpg123_handle *, unsigned char *, ssize_t);
+ struct bufferchain buffer; /* Not dynamically allocated, these few struct bytes aren't worth the trouble. */
+};
+
+/* start to use off_t to properly do LFS in future ... used to be long */
+struct reader
+{
+ int (*init) (mpg123_handle *);
+ void (*close) (mpg123_handle *);
+ ssize_t (*fullread) (mpg123_handle *, unsigned char *, ssize_t);
+ int (*head_read) (mpg123_handle *, unsigned long *newhead); /* succ: TRUE, else <= 0 (FALSE or READER_MORE) */
+ int (*head_shift) (mpg123_handle *, unsigned long *head); /* succ: TRUE, else <= 0 (FALSE or READER_MORE) */
+ off_t (*skip_bytes) (mpg123_handle *, off_t len); /* succ: >=0, else error or READER_MORE */
+ int (*read_frame_body)(mpg123_handle *, unsigned char *, int size);
+ int (*back_bytes) (mpg123_handle *, off_t bytes);
+ int (*seek_frame) (mpg123_handle *, off_t num);
+ off_t (*tell) (mpg123_handle *);
+ void (*rewind) (mpg123_handle *);
+ void (*forget) (mpg123_handle *);
+};
+
+/* Open a file by path or use an opened file descriptor. */
+int open_stream(mpg123_handle *, const char *path, int fd);
+
+/* feed based operation has some specials */
+int open_feed(mpg123_handle *);
+/* externally called function, returns 0 on success, -1 on error */
+int feed_more(mpg123_handle *fr, const unsigned char *in, long count);
+void feed_forget(mpg123_handle *fr); /* forget the data that has been read (free some buffers) */
+off_t feed_set_pos(mpg123_handle *fr, off_t pos); /* Set position (inside available data if possible), return wanted byte offset of next feed. */
+
+void open_bad(mpg123_handle *);
+
+#define READER_FD_OPENED 0x1
+#define READER_ID3TAG 0x2
+#define READER_SEEKABLE 0x4
+#define READER_BUFFERED 0x8
+#define READER_NONBLOCK 0x20
+
+#define READER_STREAM 0
+#define READER_ICY_STREAM 1
+#define READER_FEED 2
+/* These two add a little buffering to enable small seeks for peek ahead. */
+#define READER_BUF_STREAM 3
+#define READER_BUF_ICY_STREAM 4
+
+#ifdef READ_SYSTEM
+#define READER_SYSTEM 5
+#define READERS 6
+#else
+#define READERS 5
+#endif
+
+#define READER_ERROR MPG123_ERR
+#define READER_MORE MPG123_NEED_MORE
+
+#endif
diff --git a/src/libmpg123/readers.c b/src/libmpg123/readers.c
new file mode 100644
index 0000000..7b91622
--- /dev/null
+++ b/src/libmpg123/readers.c
@@ -0,0 +1,1027 @@
+/* TODO: Check all read calls (in loops, especially!) for return value 0 (EOF)! */
+
+/*
+ readers.c: reading input data
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#include "mpg123lib_intern.h"
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <errno.h>
+/* For select(), I need select.h according to POSIX 2001, else: sys/time.h sys/types.h unistd.h */
+/* Including these here although it works without on my Linux install... curious about _why_. */
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef _MSC_VER
+#include <io.h>
+#endif
+
+#include "debug.h"
+
+static int default_init(mpg123_handle *fr);
+static off_t get_fileinfo(mpg123_handle *);
+static ssize_t posix_read(int fd, void *buf, size_t count){ return read(fd, buf, count); }
+static off_t posix_lseek(int fd, off_t offset, int whence){ return lseek(fd, offset, whence); }
+
+static ssize_t plain_fullread(mpg123_handle *fr,unsigned char *buf, ssize_t count);
+
+#ifndef NO_FEEDER
+/* Bufferchain methods. */
+static void bc_init(struct bufferchain *bc);
+static void bc_reset(struct bufferchain *bc);
+static int bc_append(struct bufferchain *bc, ssize_t size);
+#if 0
+static void bc_drop(struct bufferchain *bc);
+#endif
+static int bc_add(struct bufferchain *bc, const unsigned char *data, ssize_t size);
+static ssize_t bc_give(struct bufferchain *bc, unsigned char *out, ssize_t size);
+static ssize_t bc_skip(struct bufferchain *bc, ssize_t count);
+static ssize_t bc_seekback(struct bufferchain *bc, ssize_t count);
+static void bc_forget(struct bufferchain *bc);
+#else
+#define bc_init(a)
+#define bc_reset(a)
+#endif
+
+/* A normal read and a read with timeout. */
+static ssize_t plain_read(mpg123_handle *fr, void *buf, size_t count)
+{
+ ssize_t ret = fr->rdat.read(fr->rdat.filept, buf, count);
+ if(VERBOSE3) debug2("read %li bytes of %li", (long)ret, (long)count);
+ return ret;
+}
+#ifndef WIN32
+
+/* Wait for data becoming available, allowing soft-broken network connection to die
+ This is needed for Shoutcast servers that have forgotten about us while connection was temporarily down. */
+static ssize_t timeout_read(mpg123_handle *fr, void *buf, size_t count)
+{
+ struct timeval tv;
+ ssize_t ret = 0;
+ fd_set fds;
+ tv.tv_sec = fr->rdat.timeout_sec;
+ tv.tv_usec = 0;
+ FD_ZERO(&fds);
+ FD_SET(fr->rdat.filept, &fds);
+ ret = select(fr->rdat.filept+1, &fds, NULL, NULL, &tv);
+ /* This works only with "my" read function. Not user-replaced. */
+ if(ret > 0) ret = read(fr->rdat.filept, buf, count);
+ else
+ {
+ ret=-1; /* no activity is the error */
+ if(NOQUIET) error("stream timed out");
+ }
+ return ret;
+}
+#endif
+
+#ifndef NO_ICY
+/* stream based operation with icy meta data*/
+static ssize_t icy_fullread(mpg123_handle *fr, unsigned char *buf, ssize_t count)
+{
+ ssize_t ret,cnt;
+ cnt = 0;
+ if(fr->rdat.flags & READER_SEEKABLE)
+ {
+ if(NOQUIET) error("mpg123 programmer error: I don't do ICY on seekable streams.");
+ return -1;
+ }
+ /*
+ There used to be a check for expected file end here (length value or ID3 flag).
+ This is not needed:
+ 1. EOF is indicated by fdread returning zero bytes anyway.
+ 2. We get false positives of EOF for either files that grew or
+ 3. ... files that have ID3v1 tags in between (stream with intro).
+ */
+
+ while(cnt < count)
+ {
+ /* all icy code is inside this if block, everything else is the plain fullread we know */
+ /* debug1("read: %li left", (long) count-cnt); */
+ if(fr->icy.next < count-cnt)
+ {
+ unsigned char temp_buff;
+ size_t meta_size;
+ ssize_t cut_pos;
+
+ /* we are near icy-metaint boundary, read up to the boundary */
+ if(fr->icy.next > 0)
+ {
+ cut_pos = fr->icy.next;
+ ret = fr->rdat.fdread(fr,buf,cut_pos);
+ if(ret < 1)
+ {
+ if(ret == 0) break; /* Just EOF. */
+ if(NOQUIET) error("icy boundary read");
+
+ return READER_ERROR;
+ }
+ fr->rdat.filepos += ret;
+ cnt += ret;
+ fr->icy.next -= ret;
+ if(fr->icy.next > 0)
+ {
+ debug1("another try... still %li left", (long)fr->icy.next);
+ continue;
+ }
+ }
+ /* now off to read icy data */
+
+ /* one byte icy-meta size (must be multiplied by 16 to get icy-meta length) */
+
+ ret = fr->rdat.fdread(fr,&temp_buff,1); /* Getting one single byte hast to suceed. */
+ if(ret < 0){ if(NOQUIET) error("reading icy size"); return READER_ERROR; }
+ if(ret == 0) break;
+
+ debug2("got meta-size byte: %u, at filepos %li", temp_buff, (long)fr->rdat.filepos );
+ if(!(fr->rdat.flags & READER_BUFFERED)) fr->rdat.filepos += ret; /* 1... */
+
+ if((meta_size = ((size_t) temp_buff) * 16))
+ {
+ /* we have got some metadata */
+ char *meta_buff;
+ meta_buff = malloc(meta_size+1);
+ if(meta_buff != NULL)
+ {
+ ssize_t left = meta_size;
+ while(left > 0)
+ {
+ ret = fr->rdat.fdread(fr,meta_buff+meta_size-left,left);
+ /* 0 is error here, too... there _must_ be the ICY data, the server promised! */
+ if(ret < 1){ if(NOQUIET) error("reading icy-meta"); return READER_ERROR; }
+ left -= ret;
+ }
+ meta_buff[meta_size] = 0; /* string paranoia */
+ if(!(fr->rdat.flags & READER_BUFFERED)) fr->rdat.filepos += ret;
+
+ if(fr->icy.data) free(fr->icy.data);
+ fr->icy.data = meta_buff;
+ fr->metaflags |= MPG123_NEW_ICY;
+ debug2("icy-meta: %s size: %d bytes", fr->icy.data, (int)meta_size);
+ }
+ else
+ {
+ if(NOQUIET) error1("cannot allocate memory for meta_buff (%lu bytes) ... trying to skip the metadata!", (unsigned long)meta_size);
+ fr->rd->skip_bytes(fr, meta_size);
+ }
+ }
+ fr->icy.next = fr->icy.interval;
+ }
+
+ ret = plain_fullread(fr, buf+cnt, count-cnt);
+ if(ret < 0){ if(NOQUIET) error1("reading the rest of %li", (long)(count-cnt)); return READER_ERROR; }
+ if(ret == 0) break;
+
+ cnt += ret;
+ fr->icy.next -= ret;
+ }
+ /* debug1("done reading, got %li", (long)cnt); */
+ return cnt;
+}
+#else
+#define icy_fullread NULL
+#endif /* NO_ICY */
+
+/* stream based operation */
+static ssize_t plain_fullread(mpg123_handle *fr,unsigned char *buf, ssize_t count)
+{
+ ssize_t ret,cnt=0;
+
+ /*
+ There used to be a check for expected file end here (length value or ID3 flag).
+ This is not needed:
+ 1. EOF is indicated by fdread returning zero bytes anyway.
+ 2. We get false positives of EOF for either files that grew or
+ 3. ... files that have ID3v1 tags in between (stream with intro).
+ */
+ while(cnt < count)
+ {
+ ret = fr->rdat.fdread(fr,buf+cnt,count-cnt);
+ if(ret < 0) return READER_ERROR;
+ if(ret == 0) break;
+ if(!(fr->rdat.flags & READER_BUFFERED)) fr->rdat.filepos += ret;
+ cnt += ret;
+ }
+ return cnt;
+}
+
+static off_t stream_lseek(mpg123_handle *fr, off_t pos, int whence)
+{
+ off_t ret;
+ ret = fr->rdat.lseek(fr->rdat.filept, pos, whence);
+ if (ret >= 0) fr->rdat.filepos = ret;
+ else
+ {
+ fr->err = MPG123_LSEEK_FAILED;
+ ret = READER_ERROR; /* not the original value */
+ }
+ return ret;
+}
+
+static void stream_close(mpg123_handle *fr)
+{
+ if(fr->rdat.flags & READER_FD_OPENED) close(fr->rdat.filept);
+ if(fr->rdat.flags & READER_BUFFERED) bc_reset(&fr->rdat.buffer);
+}
+
+static int stream_seek_frame(mpg123_handle *fr, off_t newframe)
+{
+ debug2("seek_frame to %"OFF_P" (from %"OFF_P")", (off_p)newframe, (off_p)fr->num);
+ /* Seekable streams can go backwards and jump forwards.
+ Non-seekable streams still can go forward, just not jump. */
+ if((fr->rdat.flags & READER_SEEKABLE) || (newframe >= fr->num))
+ {
+ off_t preframe; /* a leading frame we jump to */
+ off_t seek_to; /* the byte offset we want to reach */
+ off_t to_skip; /* bytes to skip to get there (can be negative) */
+ /*
+ now seek to nearest leading index position and read from there until newframe is reached.
+ We use skip_bytes, which handles seekable and non-seekable streams
+ (the latter only for positive offset, which we ensured before entering here).
+ */
+ seek_to = frame_index_find(fr, newframe, &preframe);
+ /* No need to seek to index position if we are closer already.
+ But I am picky about fr->num == newframe, play safe by reading the frame again.
+ If you think that's stupid, don't call a seek to the current frame. */
+ if(fr->num >= newframe || fr->num < preframe)
+ {
+ to_skip = seek_to - fr->rd->tell(fr);
+ if(fr->rd->skip_bytes(fr, to_skip) != seek_to)
+ return READER_ERROR;
+
+ debug2("going to %lu; just got %lu", (long unsigned)newframe, (long unsigned)preframe);
+ fr->num = preframe-1; /* Watch out! I am going to read preframe... fr->num should indicate the frame before! */
+ }
+ while(fr->num < newframe)
+ {
+ /* try to be non-fatal now... frameNum only gets advanced on success anyway */
+ if(!read_frame(fr)) break;
+ }
+ /* Now the wanted frame should be ready for decoding. */
+ debug1("arrived at %lu", (long unsigned)fr->num);
+
+ return MPG123_OK;
+ }
+ else
+ {
+ fr->err = MPG123_NO_SEEK;
+ return READER_ERROR; /* invalid, no seek happened */
+ }
+}
+
+/* return FALSE on error, TRUE on success, READER_MORE on occasion */
+static int generic_head_read(mpg123_handle *fr,unsigned long *newhead)
+{
+ unsigned char hbuf[4];
+ int ret = fr->rd->fullread(fr,hbuf,4);
+ if(ret == READER_MORE) return ret;
+ if(ret != 4) return FALSE;
+
+ *newhead = ((unsigned long) hbuf[0] << 24) |
+ ((unsigned long) hbuf[1] << 16) |
+ ((unsigned long) hbuf[2] << 8) |
+ (unsigned long) hbuf[3];
+
+ return TRUE;
+}
+
+/* return FALSE on error, TRUE on success, READER_MORE on occasion */
+static int generic_head_shift(mpg123_handle *fr,unsigned long *head)
+{
+ unsigned char hbuf;
+ int ret = fr->rd->fullread(fr,&hbuf,1);
+ if(ret == READER_MORE) return ret;
+ if(ret != 1) return FALSE;
+
+ *head <<= 8;
+ *head |= hbuf;
+ *head &= 0xffffffff;
+ return TRUE;
+}
+
+/* returns reached position... negative ones are bad... */
+static off_t stream_skip_bytes(mpg123_handle *fr,off_t len)
+{
+ if(fr->rdat.flags & READER_SEEKABLE)
+ {
+ off_t ret = stream_lseek(fr, len, SEEK_CUR);
+ return (ret < 0) ? READER_ERROR : ret;
+ }
+ else if(len >= 0)
+ {
+ unsigned char buf[1024]; /* ThOr: Compaq cxx complained and it makes sense to me... or should one do a cast? What for? */
+ ssize_t ret;
+ while (len > 0)
+ {
+ ssize_t num = len < (off_t)sizeof(buf) ? (ssize_t)len : (ssize_t)sizeof(buf);
+ ret = fr->rd->fullread(fr, buf, num);
+ if (ret < 0) return ret;
+ else if(ret == 0) break; /* EOF... an error? interface defined to tell the actual position... */
+ len -= ret;
+ }
+ return fr->rd->tell(fr);
+ }
+ else if(fr->rdat.flags & READER_BUFFERED)
+ { /* Perhaps we _can_ go a bit back. */
+ if(fr->rdat.buffer.pos >= -len)
+ {
+ fr->rdat.buffer.pos += len;
+ return fr->rd->tell(fr);
+ }
+ else
+ {
+ fr->err = MPG123_NO_SEEK;
+ return READER_ERROR;
+ }
+ }
+ else
+ {
+ fr->err = MPG123_NO_SEEK;
+ return READER_ERROR;
+ }
+}
+
+/* Return 0 on success... */
+static int stream_back_bytes(mpg123_handle *fr, off_t bytes)
+{
+ off_t want = fr->rd->tell(fr)-bytes;
+ if(want < 0) return READER_ERROR;
+ if(stream_skip_bytes(fr,-bytes) != want) return READER_ERROR;
+
+ return 0;
+}
+
+
+/* returns size on success... */
+static int generic_read_frame_body(mpg123_handle *fr,unsigned char *buf, int size)
+{
+ long l;
+
+ if((l=fr->rd->fullread(fr,buf,size)) != size)
+ {
+ long ll = l;
+ if(ll <= 0) ll = 0;
+
+ /* This allows partial frames at the end... do we really want to pad and decode these?! */
+ memset(buf+ll,0,size-ll);
+ }
+ return l;
+}
+
+static off_t generic_tell(mpg123_handle *fr)
+{
+ if(fr->rdat.flags & READER_BUFFERED)
+ fr->rdat.filepos = fr->rdat.buffer.fileoff+fr->rdat.buffer.pos;
+
+ return fr->rdat.filepos;
+}
+
+/* This does not (fully) work for non-seekable streams... You have to check for that flag, pal! */
+static void stream_rewind(mpg123_handle *fr)
+{
+ if(fr->rdat.flags & READER_SEEKABLE)
+ fr->rdat.buffer.fileoff = fr->rdat.filepos = stream_lseek(fr,0,SEEK_SET);
+ if(fr->rdat.flags & READER_BUFFERED)
+ {
+ fr->rdat.buffer.pos = 0;
+ fr->rdat.buffer.firstpos = 0;
+ fr->rdat.filepos = fr->rdat.buffer.fileoff;
+ }
+}
+
+/*
+ * returns length of a file (if filept points to a file)
+ * reads the last 128 bytes information into buffer
+ * ... that is not totally safe...
+ */
+static off_t get_fileinfo(mpg123_handle *fr)
+{
+ off_t len;
+
+ if((len=fr->rdat.lseek(fr->rdat.filept,0,SEEK_END)) < 0) return -1;
+
+ if(fr->rdat.lseek(fr->rdat.filept,-128,SEEK_END) < 0) return -1;
+
+ if(fr->rd->fullread(fr,(unsigned char *)fr->id3buf,128) != 128) return -1;
+
+ if(!strncmp((char*)fr->id3buf,"TAG",3)) len -= 128;
+
+ if(fr->rdat.lseek(fr->rdat.filept,0,SEEK_SET) < 0) return -1;
+
+ if(len <= 0) return -1;
+
+ return len;
+}
+
+#ifndef NO_FEEDER
+/* Methods for the buffer chain, mainly used for feed reader, but not just that. */
+
+static void bc_init(struct bufferchain *bc)
+{
+ bc->first = NULL;
+ bc->last = bc->first;
+ bc->size = 0;
+ bc->pos = 0;
+ bc->firstpos = 0;
+ bc->fileoff = 0;
+}
+
+static void bc_reset(struct bufferchain *bc)
+{
+ /* free the buffer chain */
+ struct buffy *b = bc->first;
+ while(b != NULL)
+ {
+ struct buffy *n = b->next;
+ free(b->data);
+ free(b);
+ b = n;
+ }
+ bc_init(bc);
+}
+
+/* Create a new buffy at the end to be filled. */
+static int bc_append(struct bufferchain *bc, ssize_t size)
+{
+ struct buffy *newbuf;
+ if(size < 1) return -1;
+
+ newbuf = malloc(sizeof(struct buffy));
+ if(newbuf == NULL) return -2;
+
+ newbuf->data = malloc(size);
+ if(newbuf->data == NULL)
+ {
+ free(newbuf);
+ return -3;
+ }
+ newbuf->size = size;
+ newbuf->next = NULL;
+ if(bc->last != NULL) bc->last->next = newbuf;
+ else if(bc->first == NULL) bc->first = newbuf;
+
+ bc->last = newbuf;
+ bc->size += size;
+ return 0;
+}
+
+#if 0
+/* Drop the last one (again).
+ This is not optimal but should happen on error situations only, anyway. */
+static void bc_drop(struct bufferchain *bc)
+{
+ struct buffy *cur = bc->first;
+ if(bc->first == NULL || bc->last == NULL) return;
+ /* Special case: only one buffer there. */
+ if(cur->next == NULL)
+ {
+ free(cur->data);
+ free(cur);
+ bc->first = bc->last = NULL;
+ bc->size = 0;
+ return;
+ }
+ /* Find the pre-last buffy. If chain is consistent, this _will_ succeed. */
+ while(cur->next != bc->last){ cur = cur->next; }
+
+ bc->size -= bc->last->size;
+ free(bc->last->data);
+ free(bc->last);
+ cur->next = NULL;
+ bc->last = cur;
+}
+#endif
+
+/* Append a new buffer and copy content to it. */
+static int bc_add(struct bufferchain *bc, const unsigned char *data, ssize_t size)
+{
+ int ret = 0;
+ if((ret = bc_append(bc, size)) == 0)
+ memcpy(bc->last->data, data, size);
+
+ return ret;
+}
+
+/* Give some data, advancing position but not forgetting yet. */
+static ssize_t bc_give(struct bufferchain *bc, unsigned char *out, ssize_t size)
+{
+ struct buffy *b = bc->first;
+ ssize_t gotcount = 0;
+ ssize_t offset = 0;
+ if(bc->size - bc->pos < size)
+ {
+ debug3("hit end, back to beginning (%li - %li < %li)", (long)bc->size, (long)bc->pos, (long)size);
+ /* go back to firstpos, undo the previous reads */
+ bc->pos = bc->firstpos;
+ return READER_MORE;
+ }
+ /* find the current buffer */
+ while(b != NULL && (offset + b->size) <= bc->pos)
+ {
+ offset += b->size;
+ b = b->next;
+ }
+ /* now start copying from there */
+ while(gotcount < size && (b != NULL))
+ {
+ ssize_t loff = bc->pos - offset;
+ ssize_t chunk = size - gotcount; /* amount of bytes to get from here... */
+ if(chunk > b->size - loff) chunk = b->size - loff;
+
+#ifdef EXTRA_DEBUG
+ debug3("copying %liB from %p+%li",(long)chunk, b->data, (long)loff); */
+#endif
+
+ memcpy(out+gotcount, b->data+loff, chunk);
+ gotcount += chunk;
+ bc->pos += chunk;
+ offset += b->size;
+ b = b->next;
+ }
+#ifdef EXTRA_DEBUG
+ debug2("got %li bytes, pos advanced to %li", (long)gotcount, (long)bc->pos);
+#endif
+
+ return gotcount;
+}
+
+/* Skip some bytes and return the new position.
+ The buffers are still there, just the read pointer is moved! */
+static ssize_t bc_skip(struct bufferchain *bc, ssize_t count)
+{
+ if(count >= 0)
+ {
+ if(bc->size - bc->pos < count) return READER_MORE;
+ else return bc->pos += count;
+ }
+ else return READER_ERROR;
+}
+
+static ssize_t bc_seekback(struct bufferchain *bc, ssize_t count)
+{
+ if(count >= 0 && count <= bc->pos) return bc->pos -= count;
+ else return READER_ERROR;
+}
+
+/* Throw away buffies that we passed. */
+static void bc_forget(struct bufferchain *bc)
+{
+ struct buffy *b = bc->first;
+ /* free all buffers that are def'n'tly outdated */
+ /* we have buffers until filepos... delete all buffers fully below it */
+#ifdef EXTRA_DEBUG
+ if(b) debug2("bc_forget: block %lu pos %lu", (unsigned long)b->size, (unsigned long)bc->pos);
+ else debug("forget with nothing there!");
+#endif
+ while(b != NULL && bc->pos >= b->size)
+ {
+ struct buffy *n = b->next; /* != NULL or this is indeed the end and the last cycle anyway */
+ if(n == NULL) bc->last = NULL; /* Going to delete the last buffy... */
+ bc->fileoff += b->size;
+ bc->pos -= b->size;
+ bc->size -= b->size;
+#ifdef EXTRA_DEBUG
+ debug5("bc_forget: forgot %p with %lu, pos=%li, size=%li, fileoff=%li", (void*)b->data, (long)b->size, (long)bc->pos, (long)bc->size, (long)bc->fileoff);
+#endif
+ free(b->data);
+ free(b);
+ b = n;
+ }
+ bc->first = b;
+ bc->firstpos = bc->pos;
+}
+
+/* reader for input via manually provided buffers */
+
+static int feed_init(mpg123_handle *fr)
+{
+ bc_init(&fr->rdat.buffer);
+ fr->rdat.filelen = 0;
+ fr->rdat.filepos = 0;
+ fr->rdat.flags |= READER_BUFFERED;
+ return 0;
+}
+
+/* externally called function, returns 0 on success, -1 on error */
+int feed_more(mpg123_handle *fr, const unsigned char *in, long count)
+{
+ int ret = 0;
+ if(VERBOSE3) debug("feed_more");
+ if((ret = bc_add(&fr->rdat.buffer, in, count)) != 0)
+ {
+ ret = READER_ERROR;
+ if(NOQUIET) error1("Failed to add buffer, return: %i", ret);
+ }
+ else /* Not talking about filelen... that stays at 0. */
+
+ if(VERBOSE3) debug3("feed_more: %p %luB bufsize=%lu", fr->rdat.buffer.last->data,
+ (unsigned long)fr->rdat.buffer.last->size, (unsigned long)fr->rdat.buffer.size);
+ return ret;
+}
+
+static ssize_t feed_read(mpg123_handle *fr, unsigned char *out, ssize_t count)
+{
+ ssize_t gotcount = bc_give(&fr->rdat.buffer, out, count);
+ if(gotcount >= 0 && gotcount != count) return READER_ERROR;
+ else return gotcount;
+}
+
+/* returns reached position... negative ones are bad... */
+static off_t feed_skip_bytes(mpg123_handle *fr,off_t len)
+{
+ return fr->rdat.buffer.fileoff+bc_skip(&fr->rdat.buffer, (ssize_t)len);
+}
+
+static int feed_back_bytes(mpg123_handle *fr, off_t bytes)
+{
+ if(bytes >=0)
+ return bc_seekback(&fr->rdat.buffer, (ssize_t)bytes) >= 0 ? 0 : READER_ERROR;
+ else
+ return feed_skip_bytes(fr, -bytes) >= 0 ? 0 : READER_ERROR;
+}
+
+static int feed_seek_frame(mpg123_handle *fr, off_t num){ return READER_ERROR; }
+
+/* Not just for feed reader, also for self-feeding buffered reader. */
+static void buffered_forget(mpg123_handle *fr)
+{
+ bc_forget(&fr->rdat.buffer);
+ fr->rdat.filepos = fr->rdat.buffer.fileoff + fr->rdat.buffer.pos;
+}
+
+off_t feed_set_pos(mpg123_handle *fr, off_t pos)
+{
+ struct bufferchain *bc = &fr->rdat.buffer;
+ if(pos >= bc->fileoff && pos-bc->fileoff < bc->size)
+ { /* We have the position! */
+ bc->pos = (ssize_t)(pos - bc->fileoff);
+ return pos+bc->size; /* Next input after end of buffer... */
+ }
+ else
+ { /* I expect to get the specific position on next feed. Forget what I have now. */
+ bc_reset(bc);
+ bc->fileoff = pos;
+ return pos; /* Next input from exactly that position. */
+ }
+}
+
+/* The specific stuff for buffered stream reader. */
+
+/* Let's work in nice 4K blocks, that may be nicely reusable (by malloc(), even). */
+#define BUFFBLOCK 4096
+static ssize_t buffered_fullread(mpg123_handle *fr, unsigned char *out, ssize_t count)
+{
+ struct bufferchain *bc = &fr->rdat.buffer;
+ ssize_t gotcount;
+ if(bc->size - bc->pos < count)
+ { /* Add more stuff to buffer. If hitting end of file, adjust count. */
+ unsigned char readbuf[BUFFBLOCK];
+ ssize_t need = count - (bc->size-bc->pos);
+ while(need>0)
+ {
+ int ret;
+ ssize_t got = fr->rdat.fullread(fr, readbuf, BUFFBLOCK);
+ if(got < 0)
+ {
+ if(NOQUIET) error("buffer reading");
+ return READER_ERROR;
+ }
+
+ if(VERBOSE3) debug1("buffered_fullread: buffering %li bytes from stream (if > 0)", (long)got);
+ if(got > 0 && (ret=bc_add(bc, readbuf, got)) != 0)
+ {
+ if(NOQUIET) error1("unable to add to chain, return: %i", ret);
+ return READER_ERROR;
+ }
+
+ need -= got; /* May underflow here... */
+ if(got < BUFFBLOCK) /* That naturally catches got == 0, too. */
+ {
+ if(VERBOSE3) fprintf(stderr, "Note: Input data end.\n");
+ break; /* End. */
+ }
+ }
+ if(bc->size - bc->pos < count)
+ count = bc->size - bc->pos; /* We want only what we got. */
+ }
+ gotcount = bc_give(bc, out, count);
+
+ if(VERBOSE3) debug2("wanted %li, got %li", (long)count, (long)gotcount);
+
+ if(gotcount != count){ if(NOQUIET) error("gotcount != count"); return READER_ERROR; }
+ else return gotcount;
+}
+#else
+int feed_more(mpg123_handle *fr, const unsigned char *in, long count)
+{
+ fr->err = MPG123_MISSING_FEATURE;
+ return -1;
+}
+off_t feed_set_pos(mpg123_handle *fr, off_t pos)
+{
+ fr->err = MPG123_MISSING_FEATURE;
+ return -1;
+}
+#endif /* NO_FEEDER */
+
+/*****************************************************************
+ * read frame helper
+ */
+
+#define bugger_off { mh->err = MPG123_NO_READER; return MPG123_ERR; }
+int bad_init(mpg123_handle *mh) bugger_off
+void bad_close(mpg123_handle *mh){}
+ssize_t bad_fullread(mpg123_handle *mh, unsigned char *data, ssize_t count) bugger_off
+int bad_head_read(mpg123_handle *mh, unsigned long *newhead) bugger_off
+int bad_head_shift(mpg123_handle *mh, unsigned long *head) bugger_off
+off_t bad_skip_bytes(mpg123_handle *mh, off_t len) bugger_off
+int bad_read_frame_body(mpg123_handle *mh, unsigned char *data, int size) bugger_off
+int bad_back_bytes(mpg123_handle *mh, off_t bytes) bugger_off
+int bad_seek_frame(mpg123_handle *mh, off_t num) bugger_off
+off_t bad_tell(mpg123_handle *mh) bugger_off
+void bad_rewind(mpg123_handle *mh){}
+#undef bugger_off
+
+#define READER_STREAM 0
+#define READER_ICY_STREAM 1
+#define READER_FEED 2
+#define READER_BUF_STREAM 3
+#define READER_BUF_ICY_STREAM 4
+struct reader readers[] =
+{
+ { /* READER_STREAM */
+ default_init,
+ stream_close,
+ plain_fullread,
+ generic_head_read,
+ generic_head_shift,
+ stream_skip_bytes,
+ generic_read_frame_body,
+ stream_back_bytes,
+ stream_seek_frame,
+ generic_tell,
+ stream_rewind,
+ NULL
+ } ,
+ { /* READER_ICY_STREAM */
+ default_init,
+ stream_close,
+ icy_fullread,
+ generic_head_read,
+ generic_head_shift,
+ stream_skip_bytes,
+ generic_read_frame_body,
+ stream_back_bytes,
+ stream_seek_frame,
+ generic_tell,
+ stream_rewind,
+ NULL
+ },
+#ifdef NO_FEEDER
+#define feed_init NULL
+#define feed_read NULL
+#define buffered_fullread NULL
+#define feed_seek_frame NULL
+#define feed_back_bytes NULL
+#define feed_skip_bytes NULL
+#define buffered_forget NULL
+#endif
+ { /* READER_FEED */
+ feed_init,
+ stream_close,
+ feed_read,
+ generic_head_read,
+ generic_head_shift,
+ feed_skip_bytes,
+ generic_read_frame_body,
+ feed_back_bytes,
+ feed_seek_frame,
+ generic_tell,
+ stream_rewind,
+ buffered_forget
+ },
+ { /* READER_BUF_STREAM */
+ default_init,
+ stream_close,
+ buffered_fullread,
+ generic_head_read,
+ generic_head_shift,
+ stream_skip_bytes,
+ generic_read_frame_body,
+ stream_back_bytes,
+ stream_seek_frame,
+ generic_tell,
+ stream_rewind,
+ buffered_forget
+ } ,
+ { /* READER_BUF_ICY_STREAM */
+ default_init,
+ stream_close,
+ buffered_fullread,
+ generic_head_read,
+ generic_head_shift,
+ stream_skip_bytes,
+ generic_read_frame_body,
+ stream_back_bytes,
+ stream_seek_frame,
+ generic_tell,
+ stream_rewind,
+ buffered_forget
+ },
+#ifdef READ_SYSTEM
+ ,{
+ system_init,
+ NULL, /* filled in by system_init() */
+ fullread,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ }
+#endif
+};
+
+struct reader bad_reader =
+{
+ bad_init,
+ bad_close,
+ bad_fullread,
+ bad_head_read,
+ bad_head_shift,
+ bad_skip_bytes,
+ bad_read_frame_body,
+ bad_back_bytes,
+ bad_seek_frame,
+ bad_tell,
+ bad_rewind,
+ NULL
+};
+
+static int default_init(mpg123_handle *fr)
+{
+#ifndef WIN32
+ if(fr->p.timeout > 0)
+ {
+ int flags;
+ if(fr->rdat.r_read != NULL)
+ {
+ error("Timeout reading does not work with user-provided read function. Implement it yourself!");
+ return -1;
+ }
+ flags = fcntl(fr->rdat.filept, F_GETFL);
+ flags |= O_NONBLOCK;
+ fcntl(fr->rdat.filept, F_SETFL, flags);
+ fr->rdat.fdread = timeout_read;
+ fr->rdat.timeout_sec = fr->p.timeout;
+ fr->rdat.flags |= READER_NONBLOCK;
+ }
+ else
+#endif
+ fr->rdat.fdread = plain_read;
+
+ fr->rdat.read = fr->rdat.r_read != NULL ? fr->rdat.r_read : posix_read;
+ fr->rdat.lseek = fr->rdat.r_lseek != NULL ? fr->rdat.r_lseek : posix_lseek;
+ fr->rdat.filelen = get_fileinfo(fr);
+ fr->rdat.filepos = 0;
+ if(fr->rdat.filelen >= 0)
+ {
+ fr->rdat.flags |= READER_SEEKABLE;
+ if(!strncmp((char*)fr->id3buf,"TAG",3))
+ {
+ fr->rdat.flags |= READER_ID3TAG;
+ fr->metaflags |= MPG123_NEW_ID3;
+ }
+ }
+ /* Switch reader to a buffered one, if allowed. */
+ else if(fr->p.flags & MPG123_SEEKBUFFER)
+ {
+#ifdef NO_FEEDER
+ error("Buffered readers not supported in this build.");
+ fr->err = MPG123_MISSING_FEATURE;
+ return -1;
+#else
+ if (fr->rd == &readers[READER_STREAM])
+ {
+ fr->rd = &readers[READER_BUF_STREAM];
+ fr->rdat.fullread = plain_fullread;
+ }
+#ifndef NO_ICY
+ else if(fr->rd == &readers[READER_ICY_STREAM])
+ {
+ fr->rd = &readers[READER_BUF_ICY_STREAM];
+ fr->rdat.fullread = icy_fullread;
+ }
+#endif
+ else
+ {
+ if(NOQUIET) error("mpg123 Programmer's fault: invalid reader");
+ return -1;
+ }
+ bc_init(&fr->rdat.buffer);
+ fr->rdat.filelen = 0; /* We carry the offset, but never know how big the stream is. */
+ fr->rdat.flags |= READER_BUFFERED;
+#endif /* NO_FEEDER */
+ }
+ return 0;
+}
+
+
+void open_bad(mpg123_handle *mh)
+{
+#ifndef NO_ICY
+ clear_icy(&mh->icy);
+#endif
+ mh->rd = &bad_reader;
+ mh->rdat.flags = 0;
+ bc_init(&mh->rdat.buffer);
+}
+
+int open_feed(mpg123_handle *fr)
+{
+ debug("feed reader");
+#ifdef NO_FEEDER
+ error("Buffered readers not supported in this build.");
+ fr->err = MPG123_MISSING_FEATURE;
+ return -1;
+#else
+#ifndef NO_ICY
+ if(fr->p.icy_interval > 0)
+ {
+ if(NOQUIET) error("Feed reader cannot do ICY parsing!");
+
+ return -1;
+ }
+ clear_icy(&fr->icy);
+#endif
+ fr->rd = &readers[READER_FEED];
+ fr->rdat.flags = 0;
+ if(fr->rd->init(fr) < 0) return -1;
+ return 0;
+#endif /* NO_FEEDER */
+}
+
+int open_stream(mpg123_handle *fr, const char *bs_filenam, int fd)
+{
+ int filept_opened = 1;
+ int filept; /* descriptor of opened file/stream */
+
+ clear_icy(&fr->icy); /* can be done inside frame_clear ...? */
+ if(!bs_filenam) /* no file to open, got a descriptor (stdin) */
+ {
+ filept = fd;
+ filept_opened = 0; /* and don't try to close it... */
+ }
+ #ifndef O_BINARY
+ #define O_BINARY (0)
+ #endif
+ else if((filept = open(bs_filenam, O_RDONLY|O_BINARY)) < 0) /* a plain old file to open... */
+ {
+ if(NOQUIET) error2("Cannot open file %s: %s", bs_filenam, strerror(errno));
+ fr->err = MPG123_BAD_FILE;
+ return MPG123_ERR; /* error... */
+ }
+
+ /* now we have something behind filept and can init the reader */
+ fr->rdat.filelen = -1;
+ fr->rdat.filept = filept;
+ fr->rdat.flags = 0;
+ if(filept_opened) fr->rdat.flags |= READER_FD_OPENED;
+
+#ifndef NO_ICY
+ if(fr->p.icy_interval > 0)
+ {
+ debug("ICY reader");
+ fr->icy.interval = fr->p.icy_interval;
+ fr->icy.next = fr->icy.interval;
+ fr->rd = &readers[READER_ICY_STREAM];
+ }
+ else
+#endif
+ {
+ fr->rd = &readers[READER_STREAM];
+ debug("stream reader");
+ }
+
+ if(fr->rd->init(fr) < 0) return -1;
+
+ return MPG123_OK;
+}
diff --git a/src/libmpg123/sample.h b/src/libmpg123/sample.h
new file mode 100644
index 0000000..2515078
--- /dev/null
+++ b/src/libmpg123/sample.h
@@ -0,0 +1,118 @@
+/*
+ sample.h: The conversion from internal data to output samples of differing formats.
+
+ copyright 2007-9 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis, taking WRITE_SAMPLE from decode.c
+ Later added the end-conversion specific macros here, too.
+*/
+
+#ifndef SAMPLE_H
+#define SAMPLE_H
+
+/* mpg123lib_intern.h is included already, right? */
+
+/* Special case is fixed point math... which does work, but not that nice yet. */
+#ifdef REAL_IS_FIXED
+static inline short idiv_signed_rounded(long x, int shift)
+{
+ x >>= (shift - 1);
+ x += (x & 1);
+ return (short)(x >> 1);
+}
+# define REAL_PLUS_32767 ( 32767 << 15 )
+# define REAL_MINUS_32768 ( -32768 << 15 )
+# define REAL_TO_SHORT(x) (idiv_signed_rounded(x, 15))
+/* This is just here for completeness, it is not used! */
+# define REAL_TO_S32(x) (x)
+#endif
+
+/* From now on for single precision float... double precision is a possible option once we added some bits. But, it would be rather insane. */
+#ifndef REAL_TO_SHORT
+# ifdef ACCURATE_ROUNDING
+/* Optimized accurate rounding onlu for IEEE float
+ This is nearly identical to proper rounding, just -+0.5 is rounded to 0 */
+# if (defined REAL_IS_FLOAT) && (defined IEEE_FLOAT)
+/* this function is only available for IEEE754 single-precision values */
+static inline short ftoi16(float x)
+{
+ union
+ {
+ float f;
+ int32_t i;
+ } u_fi;
+ u_fi.f = x + 12582912.0f; /* Magic Number: 2^23 + 2^22 */
+ return (short)u_fi.i;
+}
+# define REAL_TO_SHORT(x) ftoi16(x)
+# else
+/* The "proper" rounding, plain C, a bit slow. */
+# define REAL_TO_SHORT(x) (short)((x)>0.0?(x)+0.5:(x)-0.5)
+# endif
+# else
+/* Non-accurate rounding... simple truncation. Fastest, most LSB errors. */
+# define REAL_TO_SHORT(x) (short)(x)
+# endif
+#endif
+
+#ifndef REAL_TO_S32
+# ifdef ACCURATE_ROUNDING
+# define REAL_TO_S32(x) (int32_t)((x)>0.0?(x)+0.5:(x)-0.5)
+# else
+# define REAL_TO_S32(x) (int32_t)(x)
+# endif
+#endif
+
+#ifndef REAL_PLUS_32767
+# define REAL_PLUS_32767 32767.0
+#endif
+#ifndef REAL_MINUS_32768
+# define REAL_MINUS_32768 -32768.0
+#endif
+#ifndef REAL_PLUS_S32
+# define REAL_PLUS_S32 2147483647.0
+#endif
+#ifndef REAL_MINUS_S32
+# define REAL_MINUS_S32 -2147483648.0
+#endif
+
+
+/* The actual storage of a decoded sample is separated in the following macros.
+ We can handle different types, we could also handle dithering here. */
+
+/* Macro to produce a short (signed 16bit) output sample from internal representation,
+ which may be float, double or indeed some integer for fixed point handling. */
+#define WRITE_SHORT_SAMPLE(samples,sum,clip) \
+ if( (sum) > REAL_PLUS_32767) { *(samples) = 0x7fff; (clip)++; } \
+ else if( (sum) < REAL_MINUS_32768) { *(samples) = -0x8000; (clip)++; } \
+ else { *(samples) = REAL_TO_SHORT(sum); }
+
+/*
+ 32bit signed
+ We do clipping with the same old borders... but different conversion.
+ We see here that we need extra work for non-16bit output... we optimized for 16bit.
+ -0x7fffffff-1 is the minimum 32 bit signed integer value expressed so that MSVC
+ does not give a compile time warning.
+*/
+#define WRITE_S32_SAMPLE(samples,sum,clip) \
+ { \
+ real tmpsum = REAL_MUL((sum),S32_RESCALE); \
+ if( tmpsum > REAL_PLUS_S32 ){ *(samples) = 0x7fffffff; (clip)++; } \
+ else if( tmpsum < REAL_MINUS_S32 ) { *(samples) = -0x7fffffff-1; (clip)++; } \
+ else { *(samples) = REAL_TO_S32(tmpsum); } \
+ }
+
+/* Produce an 8bit sample, via 16bit intermediate. */
+#define WRITE_8BIT_SAMPLE(samples,sum,clip) \
+{ \
+ short write_8bit_tmp; \
+ if( (sum) > REAL_PLUS_32767) { write_8bit_tmp = 0x7fff; (clip)++; } \
+ else if( (sum) < REAL_MINUS_32768) { write_8bit_tmp = -0x8000; (clip)++; } \
+ else { write_8bit_tmp = REAL_TO_SHORT(sum); } \
+ *(samples) = fr->conv16to8[write_8bit_tmp>>AUSHIFT]; \
+}
+#ifndef REAL_IS_FIXED
+#define WRITE_REAL_SAMPLE(samples,sum,clip) *(samples) = ((real)1./SHORT_SCALE)*(sum)
+#endif
+
+#endif
diff --git a/src/libmpg123/stringbuf.c b/src/libmpg123/stringbuf.c
new file mode 100644
index 0000000..29dd1fc
--- /dev/null
+++ b/src/libmpg123/stringbuf.c
@@ -0,0 +1,131 @@
+/*
+ stringbuf: mimicking a bit of C++ to more safely handle strings
+
+ copyright 2006-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include "mpg123lib_intern.h"
+#include "config.h"
+#include "mpg123.h"
+#include "compat.h"
+#include <string.h>
+#include "debug.h"
+
+void attribute_align_arg mpg123_init_string(mpg123_string* sb)
+{
+ sb->p = NULL;
+ sb->size = 0;
+ sb->fill = 0;
+}
+
+void attribute_align_arg mpg123_free_string(mpg123_string* sb)
+{
+ if(sb->p != NULL) free(sb->p);
+ mpg123_init_string(sb);
+}
+
+int attribute_align_arg mpg123_grow_string(mpg123_string* sb, size_t new)
+{
+ if(sb->size < new) return mpg123_resize_string(sb, new);
+ else return 1;
+}
+
+int attribute_align_arg mpg123_resize_string(mpg123_string* sb, size_t new)
+{
+ debug3("resizing string pointer %p from %lu to %lu", (void*) sb->p, (unsigned long)sb->size, (unsigned long)new);
+ if(new == 0)
+ {
+ if(sb->size && sb->p != NULL) free(sb->p);
+ mpg123_init_string(sb);
+ return 1;
+ }
+ if(sb->size != new)
+ {
+ char* t;
+ debug("really!");
+ t = (char*) safe_realloc(sb->p, new*sizeof(char));
+ debug1("safe_realloc returned %p", (void*) t);
+ if(t != NULL)
+ {
+ sb->p = t;
+ sb->size = new;
+ return 1;
+ }
+ else return 0;
+ }
+ else return 1; /* success */
+}
+
+int attribute_align_arg mpg123_copy_string(mpg123_string* from, mpg123_string* to)
+{
+ size_t fill;
+ char *text;
+ if(to == NULL) return -1;
+
+ debug2("called copy_string with %p -> %p", (void*)from, (void*)to);
+ if(from == NULL)
+ {
+ fill = 0;
+ text = NULL;
+ }
+ else
+ {
+ fill = from->fill;
+ text = from->p;
+ }
+
+ if(mpg123_resize_string(to, fill))
+ {
+ memcpy(to->p, text, fill);
+ to->fill = fill;
+ return 1;
+ }
+ else return 0;
+}
+
+int attribute_align_arg mpg123_add_string(mpg123_string* sb, const char* stuff)
+{
+ debug1("adding %s", stuff);
+ return mpg123_add_substring(sb, stuff, 0, strlen(stuff));
+}
+
+int attribute_align_arg mpg123_add_substring(mpg123_string *sb, const char *stuff, size_t from, size_t count)
+{
+ debug("adding a substring");
+ if(sb->fill) /* includes zero byte... */
+ {
+ if( (SIZE_MAX - sb->fill >= count) /* Avoid overflow. */
+ && (sb->size >= sb->fill+count || mpg123_grow_string(sb, sb->fill+count)) )
+ {
+ memcpy(sb->p+sb->fill-1, stuff+from, count);
+ sb->fill += count;
+ sb->p[sb->fill-1] = 0; /* Terminate! */
+ }
+ else return 0;
+ }
+ else
+ {
+ if( count < SIZE_MAX && mpg123_grow_string(sb, count+1) )
+ {
+ memcpy(sb->p, stuff+from, count);
+ sb->fill = count+1;
+ sb->p[sb->fill-1] = 0; /* Terminate! */
+ }
+ else return 0;
+ }
+ return 1;
+}
+
+int attribute_align_arg mpg123_set_substring(mpg123_string* sb, const char* stuff, size_t from, size_t count)
+{
+ sb->fill = 0;
+ return mpg123_add_substring(sb, stuff, from, count);
+}
+
+int attribute_align_arg mpg123_set_string(mpg123_string* sb, const char* stuff)
+{
+ sb->fill = 0;
+ return mpg123_add_string(sb, stuff);
+}
diff --git a/src/libmpg123/synth.c b/src/libmpg123/synth.c
new file mode 100644
index 0000000..52e129e
--- /dev/null
+++ b/src/libmpg123/synth.c
@@ -0,0 +1,541 @@
+/*
+ synth.c: The functions for synthesizing samples, at the end of decoding.
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, heavily dissected and rearranged by Thomas Orgis
+*/
+
+#include "mpg123lib_intern.h"
+#include "sample.h"
+#include "debug.h"
+
+/* Stereo-related synth, wrapping over _some_ plain synth. */
+int synth_stereo_wrap(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ int clip;
+ clip = (fr->synth)(bandPtr_l, 0, fr, 0);
+ clip += (fr->synth)(bandPtr_r, 1, fr, 1);
+ return clip;
+}
+
+/*
+ Part 1: All synth functions that produce signed short.
+ That is:
+ - synth_1to1 with cpu-specific variants (synth_1to1_i386, synth_1to1_i586 ...)
+ - synth_1to1_mono and synth_1to1_mono2stereo; which use fr->synths.plain[r_1to1][f_16].
+ Nearly every decoder variant has it's own synth_1to1, while the mono conversion is shared.
+*/
+
+#define SAMPLE_T short
+#define WRITE_SAMPLE(samples,sum,clip) WRITE_SHORT_SAMPLE(samples,sum,clip)
+
+/* Part 1a: All straight 1to1 decoding functions */
+#define BLOCK 0x40 /* One decoding block is 64 samples. */
+
+#define SYNTH_NAME synth_1to1
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_1to1. */
+#define SYNTH_NAME fr->synths.plain[r_1to1][f_16]
+#define MONO_NAME synth_1to1_mono
+#define MONO2STEREO_NAME synth_1to1_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+/* Now we have possibly some special synth_1to1 ...
+ ... they produce signed short; the mono functions defined above work on the special synths, too. */
+
+#ifdef OPT_GENERIC_DITHER
+#define SYNTH_NAME synth_1to1_dither
+#define USE_DITHER
+#include "synth.h"
+#undef USE_DITHER
+#undef SYNTH_NAME
+#endif
+
+#ifdef OPT_X86
+/* The i386-specific C code, here as short variant, later 8bit and float. */
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_1to1_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK /* Following functions are so special that they don't need this. */
+
+#ifdef OPT_I586
+/* This is defined in assembler. */
+int synth_1to1_i586_asm(real *bandPtr, int channel, unsigned char *out, unsigned char *buffs, int *bo, real *decwin);
+/* This is just a hull to use the mpg123 handle. */
+int synth_1to1_i586(real *bandPtr, int channel, mpg123_handle *fr, int final)
+{
+ int ret;
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ ret = synth_1to1_i586_asm(bandPtr, channel, fr->buffer.data+fr->buffer.fill, fr->rawbuffs, &fr->bo, fr->decwin);
+ if(final) fr->buffer.fill += 128;
+ return ret;
+}
+#endif
+
+#ifdef OPT_I586_DITHER
+/* This is defined in assembler. */
+int synth_1to1_i586_asm_dither(real *bandPtr, int channel, unsigned char *out, unsigned char *buffs, int *bo, real *decwin, float *dithernoise);
+/* This is just a hull to use the mpg123 handle. */
+int synth_1to1_i586_dither(real *bandPtr, int channel, mpg123_handle *fr, int final)
+{
+ int ret;
+ int bo_dither[2]; /* Temporary workaround? Could expand the asm code. */
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ /* Applying this hack, to change the asm only bit by bit (adding dithernoise pointer). */
+ bo_dither[0] = fr->bo;
+ bo_dither[1] = fr->ditherindex;
+ ret = synth_1to1_i586_asm_dither(bandPtr, channel, fr->buffer.data+fr->buffer.fill, fr->rawbuffs, bo_dither, fr->decwin, fr->dithernoise);
+ fr->bo = bo_dither[0];
+ fr->ditherindex = bo_dither[1];
+
+ if(final) fr->buffer.fill += 128;
+ return ret;
+}
+#endif
+
+#ifdef OPT_3DNOW
+/* Those are defined in assembler. */
+void do_equalizer_3dnow(real *bandPtr,int channel, real equalizer[2][32]);
+int synth_1to1_3dnow_asm(real *bandPtr, int channel, unsigned char *out, unsigned char *buffs, int *bo, real *decwin);
+/* This is just a hull to use the mpg123 handle. */
+int synth_1to1_3dnow(real *bandPtr, int channel, mpg123_handle *fr, int final)
+{
+ int ret;
+
+ if(fr->have_eq_settings) do_equalizer_3dnow(bandPtr,channel,fr->equalizer);
+
+ /* this is in asm, can be dither or not */
+ /* uh, is this return from pointer correct? */
+ ret = (int) synth_1to1_3dnow_asm(bandPtr, channel, fr->buffer.data+fr->buffer.fill, fr->rawbuffs, &fr->bo, fr->decwin);
+ if(final) fr->buffer.fill += 128;
+ return ret;
+}
+#endif
+
+#ifdef OPT_MMX
+/* This is defined in assembler. */
+int synth_1to1_MMX(real *bandPtr, int channel, short *out, short *buffs, int *bo, float *decwins);
+/* This is just a hull to use the mpg123 handle. */
+int synth_1to1_mmx(real *bandPtr, int channel, mpg123_handle *fr, int final)
+{
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ /* in asm */
+ synth_1to1_MMX(bandPtr, channel, (short*) (fr->buffer.data+fr->buffer.fill), (short *) fr->rawbuffs, &fr->bo, fr->decwins);
+ if(final) fr->buffer.fill += 128;
+ return 0;
+}
+#endif
+
+#ifdef OPT_SSE
+#ifdef ACCURATE_ROUNDING
+/* This is defined in assembler. */
+int synth_1to1_sse_accurate_asm(real *window, real *b0, short *samples, int bo1);
+int synth_1to1_stereo_sse_accurate_asm(real *window, real *b0l, real *b0r, short *samples, int bo1);
+void dct64_real_sse(real *out0, real *out1, real *samples);
+/* This is just a hull to use the mpg123 handle. */
+int synth_1to1_sse(real *bandPtr,int channel, mpg123_handle *fr, int final)
+{
+ short *samples = (short *) (fr->buffer.data+fr->buffer.fill);
+ real *b0, **buf;
+ int clip;
+ int bo1;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_real_sse(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_real_sse(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+ clip = synth_1to1_sse_accurate_asm(fr->decwin, b0, samples, bo1);
+
+ if(final) fr->buffer.fill += 128;
+
+ return clip;
+}
+
+int synth_1to1_stereo_sse(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ short *samples = (short *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0l, *b0r, **bufl, **bufr;
+ int bo1;
+ int clip;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->real_buffs[0];
+ bufr = fr->real_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_real_sse(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_real_sse(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_real_sse(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_real_sse(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+ clip = synth_1to1_stereo_sse_accurate_asm(fr->decwin, b0l, b0r, samples, bo1);
+
+ fr->buffer.fill += 128;
+
+ return clip;
+}
+#else
+/* This is defined in assembler. */
+void synth_1to1_sse_asm(real *bandPtr, int channel, short *samples, short *buffs, int *bo, real *decwin);
+/* This is just a hull to use the mpg123 handle. */
+int synth_1to1_sse(real *bandPtr, int channel, mpg123_handle *fr, int final)
+{
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ synth_1to1_sse_asm(bandPtr, channel, (short*) (fr->buffer.data+fr->buffer.fill), (short *) fr->rawbuffs, &fr->bo, fr->decwins);
+ if(final) fr->buffer.fill += 128;
+ return 0;
+}
+#endif
+#endif
+
+#ifdef OPT_3DNOWEXT
+/* This is defined in assembler. */
+void synth_1to1_3dnowext_asm(real *bandPtr, int channel, short *samples, short *buffs, int *bo, real *decwin);
+/* This is just a hull to use the mpg123 handle. */
+int synth_1to1_3dnowext(real *bandPtr, int channel, mpg123_handle *fr, int final)
+{
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ synth_1to1_3dnowext_asm(bandPtr, channel, (short*) (fr->buffer.data+fr->buffer.fill), (short *) fr->rawbuffs, &fr->bo, fr->decwins);
+ if(final) fr->buffer.fill += 128;
+ return 0;
+}
+#endif
+
+#ifdef OPT_X86_64
+#ifdef ACCURATE_ROUNDING
+/* Assembler routines. */
+int synth_1to1_x86_64_accurate_asm(real *window, real *b0, short *samples, int bo1);
+int synth_1to1_stereo_x86_64_accurate_asm(real *window, real *b0l, real *b0r, short *samples, int bo1);
+void dct64_real_x86_64(real *out0, real *out1, real *samples);
+/* Hull for C mpg123 API */
+int synth_1to1_x86_64(real *bandPtr,int channel, mpg123_handle *fr, int final)
+{
+ short *samples = (short *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0, **buf;
+ int bo1;
+ int clip;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_real_x86_64(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_real_x86_64(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+ clip = synth_1to1_x86_64_accurate_asm(fr->decwin, b0, samples, bo1);
+
+ if(final) fr->buffer.fill += 128;
+
+ return clip;
+}
+
+int synth_1to1_stereo_x86_64(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ short *samples = (short *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0l, *b0r, **bufl, **bufr;
+ int bo1;
+ int clip;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->real_buffs[0];
+ bufr = fr->real_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_real_x86_64(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_real_x86_64(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_real_x86_64(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_real_x86_64(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+ clip = synth_1to1_stereo_x86_64_accurate_asm(fr->decwin, b0l, b0r, samples, bo1);
+
+ fr->buffer.fill += 128;
+
+ return clip;
+}
+#else
+/* This is defined in assembler. */
+int synth_1to1_x86_64_asm(short *window, short *b0, short *samples, int bo1);
+int synth_1to1_stereo_x86_64_asm(short *window, short *b0l, short *b0r, short *samples, int bo1);
+void dct64_x86_64(short *out0, short *out1, real *samples);
+/* This is just a hull to use the mpg123 handle. */
+int synth_1to1_x86_64(real *bandPtr,int channel, mpg123_handle *fr, int final)
+{
+ short *samples = (short *) (fr->buffer.data+fr->buffer.fill);
+ short *b0, **buf;
+ int clip;
+ int bo1;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->short_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->short_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_x86_64(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_x86_64(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+ clip = synth_1to1_x86_64_asm((short *)fr->decwins, b0, samples, bo1);
+
+ if(final) fr->buffer.fill += 128;
+
+ return clip;
+}
+
+int synth_1to1_stereo_x86_64(real *bandPtr_l,real *bandPtr_r, mpg123_handle *fr)
+{
+ short *samples = (short *) (fr->buffer.data+fr->buffer.fill);
+ short *b0l, *b0r, **bufl, **bufr;
+ int clip;
+ int bo1;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->short_buffs[0];
+ bufr = fr->short_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_x86_64(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_x86_64(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_x86_64(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_x86_64(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+ clip = synth_1to1_stereo_x86_64_asm((short *)fr->decwins, b0l, b0r, samples, bo1);
+
+ fr->buffer.fill += 128;
+
+ return clip;
+}
+#endif
+#endif
+
+#ifndef NO_DOWNSAMPLE
+
+/*
+ Part 1b: 2to1 synth.
+ Only generic and i386 functions this time.
+*/
+#define BLOCK 0x20 /* One decoding block is 32 samples. */
+
+#define SYNTH_NAME synth_2to1
+#include "synth.h"
+#undef SYNTH_NAME
+
+#ifdef OPT_DITHER /* Used for generic_dither and as fallback for i586_dither. */
+#define SYNTH_NAME synth_2to1_dither
+#define USE_DITHER
+#include "synth.h"
+#undef USE_DITHER
+#undef SYNTH_NAME
+#endif
+
+#define SYNTH_NAME fr->synths.plain[r_2to1][f_16]
+#define MONO_NAME synth_2to1_mono
+#define MONO2STEREO_NAME synth_2to1_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_2to1_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK
+
+/*
+ Part 1c: 4to1 synth.
+ Same procedure as above...
+*/
+#define BLOCK 0x10 /* One decoding block is 16 samples. */
+
+#define SYNTH_NAME synth_4to1
+#include "synth.h"
+#undef SYNTH_NAME
+
+#ifdef OPT_DITHER
+#define SYNTH_NAME synth_4to1_dither
+#define USE_DITHER
+#include "synth.h"
+#undef USE_DITHER
+#undef SYNTH_NAME
+#endif
+
+#define SYNTH_NAME fr->synths.plain[r_4to1][f_16] /* This is just for the _i386 one... gotta check if it is really useful... */
+#define MONO_NAME synth_4to1_mono
+#define MONO2STEREO_NAME synth_4to1_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_4to1_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK
+
+#endif /* NO_DOWNSAMPLE */
+
+#ifndef NO_NTOM
+/*
+ Part 1d: ntom synth.
+ Same procedure as above... Just no extra play anymore, straight synth that uses the plain dct64.
+*/
+
+/* These are all in one header, there's no flexibility to gain. */
+#define SYNTH_NAME synth_ntom
+#define MONO_NAME synth_ntom_mono
+#define MONO2STEREO_NAME synth_ntom_mono2stereo
+#include "synth_ntom.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#endif
+
+/* Done with short output. */
+#undef SAMPLE_T
+#undef WRITE_SAMPLE
diff --git a/src/libmpg123/synth.h b/src/libmpg123/synth.h
new file mode 100644
index 0000000..8ea0765
--- /dev/null
+++ b/src/libmpg123/synth.h
@@ -0,0 +1,196 @@
+/*
+ synth.h: generic synth functions
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, generalized by Thomas Orgis
+
+ This header is used multiple times to create different variants of these functions.
+ See decode.c and friends.
+ Hint: BLOCK, MONO_NAME, MONO2STEREO_NAME, SYNTH_NAME and SAMPLE_T as well as WRITE_SAMPLE do vary.
+
+ Thomas looked closely at the decode_1to1, decode_2to1 and decode_4to1 contents, seeing that they are too similar to be separate files.
+ This is what resulted...
+
+ Basically, you need one set of these functions for each output sample type.
+ That currently means signed short, 8bit or float/double; though unsigned short may come, too.
+
+ Define NO_AUTOINCREMENT i386 code that shall not rely on autoincrement.
+ Actual benefit of this has to be examined; may apply to specific (old) compilers, only.
+*/
+
+
+/* Main synth function, uses the plain dct64 or dct64_i386. */
+int SYNTH_NAME(real *bandPtr, int channel, mpg123_handle *fr, int final)
+{
+#ifndef NO_AUTOINCREMENT
+#define BACKPEDAL 0x10 /* We use autoincrement and thus need this re-adjustment for window/b0. */
+#define MY_DCT64 dct64
+#else
+#define BACKPEDAL 0x00 /* i386 code does not need that. */
+#define MY_DCT64 dct64_i386
+#endif
+ static const int step = 2;
+ SAMPLE_T *samples = (SAMPLE_T *) (fr->buffer.data + fr->buffer.fill);
+
+ real *b0, **buf; /* (*buf)[0x110]; */
+ int clip = 0;
+ int bo1;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+#ifdef USE_DITHER
+ /* We always go forward 32 dither points (and back again for the second channel),
+ (re)sampling the noise the same way as the original signal. */
+ fr->ditherindex -= 32;
+#endif
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+#ifdef USE_DITHER
+ /* We check only once for the overflow of dither index here ...
+ this wraps differently than the original i586 dither code, in theory (but when DITHERSIZE % BLOCK/2 == 0 it's the same). */
+ if(DITHERSIZE-fr->ditherindex < 32) fr->ditherindex = 0;
+ /* And we define a macro for the dither action... */
+ #define ADD_DITHER(fr,sum) sum+=fr->dithernoise[fr->ditherindex]; fr->ditherindex += 64/BLOCK;
+#else
+ #define ADD_DITHER(fr,sum)
+#endif
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ MY_DCT64(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ MY_DCT64(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+ {
+ register int j;
+ real *window = fr->decwin + 16 - bo1;
+
+ for(j=(BLOCK/4); j; j--, b0+=0x400/BLOCK-BACKPEDAL, window+=0x800/BLOCK-BACKPEDAL, samples+=step)
+ {
+ real sum;
+#ifndef NO_AUTOINCREMENT
+ sum = REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+#else
+ sum = REAL_MUL(window[0x0], b0[0x0]);
+ sum -= REAL_MUL(window[0x1], b0[0x1]);
+ sum += REAL_MUL(window[0x2], b0[0x2]);
+ sum -= REAL_MUL(window[0x3], b0[0x3]);
+ sum += REAL_MUL(window[0x4], b0[0x4]);
+ sum -= REAL_MUL(window[0x5], b0[0x5]);
+ sum += REAL_MUL(window[0x6], b0[0x6]);
+ sum -= REAL_MUL(window[0x7], b0[0x7]);
+ sum += REAL_MUL(window[0x8], b0[0x8]);
+ sum -= REAL_MUL(window[0x9], b0[0x9]);
+ sum += REAL_MUL(window[0xA], b0[0xA]);
+ sum -= REAL_MUL(window[0xB], b0[0xB]);
+ sum += REAL_MUL(window[0xC], b0[0xC]);
+ sum -= REAL_MUL(window[0xD], b0[0xD]);
+ sum += REAL_MUL(window[0xE], b0[0xE]);
+ sum -= REAL_MUL(window[0xF], b0[0xF]);
+#endif
+
+ ADD_DITHER(fr,sum)
+ WRITE_SAMPLE(samples,sum,clip);
+ }
+
+ {
+ real sum;
+ sum = REAL_MUL(window[0x0], b0[0x0]);
+ sum += REAL_MUL(window[0x2], b0[0x2]);
+ sum += REAL_MUL(window[0x4], b0[0x4]);
+ sum += REAL_MUL(window[0x6], b0[0x6]);
+ sum += REAL_MUL(window[0x8], b0[0x8]);
+ sum += REAL_MUL(window[0xA], b0[0xA]);
+ sum += REAL_MUL(window[0xC], b0[0xC]);
+ sum += REAL_MUL(window[0xE], b0[0xE]);
+
+ ADD_DITHER(fr,sum)
+ WRITE_SAMPLE(samples,sum,clip);
+ samples += step;
+ b0-=0x400/BLOCK;
+ window-=0x800/BLOCK;
+ }
+ window += bo1<<1;
+
+ for(j=(BLOCK/4)-1; j; j--, b0-=0x400/BLOCK+BACKPEDAL, window-=0x800/BLOCK-BACKPEDAL, samples+=step)
+ {
+ real sum;
+#ifndef NO_AUTOINCREMENT
+ sum = -REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+#else
+ sum = -REAL_MUL(window[-0x1], b0[0x0]);
+ sum -= REAL_MUL(window[-0x2], b0[0x1]);
+ sum -= REAL_MUL(window[-0x3], b0[0x2]);
+ sum -= REAL_MUL(window[-0x4], b0[0x3]);
+ sum -= REAL_MUL(window[-0x5], b0[0x4]);
+ sum -= REAL_MUL(window[-0x6], b0[0x5]);
+ sum -= REAL_MUL(window[-0x7], b0[0x6]);
+ sum -= REAL_MUL(window[-0x8], b0[0x7]);
+ sum -= REAL_MUL(window[-0x9], b0[0x8]);
+ sum -= REAL_MUL(window[-0xA], b0[0x9]);
+ sum -= REAL_MUL(window[-0xB], b0[0xA]);
+ sum -= REAL_MUL(window[-0xC], b0[0xB]);
+ sum -= REAL_MUL(window[-0xD], b0[0xC]);
+ sum -= REAL_MUL(window[-0xE], b0[0xD]);
+ sum -= REAL_MUL(window[-0xF], b0[0xE]);
+ sum -= REAL_MUL(window[-0x0], b0[0xF]); /* Is that right? 0x0? Just wondering... */
+#endif
+ ADD_DITHER(fr,sum)
+ WRITE_SAMPLE(samples,sum,clip);
+ }
+ }
+
+ if(final) fr->buffer.fill += BLOCK*sizeof(SAMPLE_T);
+
+ return clip;
+#undef ADD_DITHER
+#undef BACKPEDAL
+#undef MY_DCT64
+}
diff --git a/src/libmpg123/synth_3dnow.S b/src/libmpg123/synth_3dnow.S
new file mode 100644
index 0000000..654a5d1
--- /dev/null
+++ b/src/libmpg123/synth_3dnow.S
@@ -0,0 +1,321 @@
+/*
+ decode_3dnow.s - 3DNow! optimized synth_1to1()
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Syuuhei Kashiyama
+
+ This code based 'decode_3dnow.s' by Syuuhei Kashiyama
+ <squash@mb.kcom.ne.jp>,only two types of changes have been made:
+
+ - remove PREFETCH instruction for speedup
+ - change function name for support 3DNow! automatic detect
+ - femms moved to before 'call dct64_3dnow'
+
+ You can find Kashiyama's original 3dnow! support patch
+ (for mpg123-0.59o) at
+ http://user.ecc.u-tokyo.ac.jp/~g810370/linux-simd/ (Japanese).
+
+ by KIMURA Takuhiro <kim@hannah.ipc.miyakyo-u.ac.jp> - until 31.Mar.1999
+ <kim@comtec.co.jp> - after 1.Apr.1999
+
+
+
+ Replacement of synth_1to1() with AMD's 3DNow! SIMD operations support
+
+ Syuuhei Kashiyama <squash@mb.kcom.ne.jp>
+
+ The author of this program disclaim whole expressed or implied
+ warranties with regard to this program, and in no event shall the
+ author of this program liable to whatever resulted from the use of
+ this program. Use it at your own risk.
+*/
+
+#include "mangle.h"
+
+#ifdef ACCURATE_ROUNDING
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN8
+max_s16:
+ .long 1191181824 /* 32767.0 */
+ .long 1191181824
+min_s16:
+ .long -956301312 /* -32768.0 */
+ .long -956301312
+ftoi_magic:
+ .long 1262485504 /* 2^23 + 2^22 */
+ .long 1262485504
+#endif
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_3dnow_asm)
+/* int synth_1to1_3dnow_asm(real *bandPtr, int channel, unsigned char *out, unsigned char *buffs, int *bo, real *decwin); */
+ASM_NAME(synth_1to1_3dnow_asm):
+ subl $24,%esp
+ pushl %ebp
+ pushl %edi
+ xorl %ebp,%ebp
+ pushl %esi
+ pushl %ebx
+/* stack old: 0=ebx 4=esi 8=edi 12=ebp 16,20,24,28,32,36=local 40=back 44=bandptr 48=channel 52=out 56=pnt */
+/* stack new: 0=ebx 4=esi 8=edi 12=ebp 16,20,24,28,32,36=local 40=back 44=bandptr 48=channel 52=out 56=buffs 60=bo 64=decwin */
+#define OUT 52(%esp)
+#define CHANNEL 48(%esp)
+#define BANDPTR 44(%esp)
+#define BUFFS 56(%esp)
+#define BO 60(%esp)
+#define DECWIN 64(%esp)
+#define LOCAL0 16(%esp)
+#define LOCAL1 20(%esp)
+#define LOCAL5 36(%esp)
+ movl OUT,%esi
+ movl %esi,LOCAL0 /* save buffer start (samples pointer) to another local var */
+ movl CHANNEL,%ebx
+ movl BO,%esi /* bo address */
+ movl (%esi),%edx /* bo value */
+
+ femms
+ testl %ebx,%ebx
+ jne .L26
+/* if(!channel) */
+ decl %edx /* --bo */
+ andl $15,%edx
+ movl %edx,(%esi) /* save bo */
+ movl BUFFS,%ecx
+ jmp .L27
+.L26: /* if(channel) */
+ addl $2,LOCAL0 /* samples++ */
+ movl BUFFS,%ecx
+ addl $2176,%ecx
+.L27:
+/* edx (and it's lower end) still holds bo value */
+ testb $1,%dl /* bo & 0x1 */
+ je .L28
+ movl %edx,LOCAL5
+ movl %ecx,%ebx
+ movl BANDPTR,%esi
+ movl %edx,%edi
+ pushl %esi
+ sall $2,%edi
+ movl %ebx,%eax
+ movl %edi,24(%esp) /* LOCAL1, actually */
+ addl %edi,%eax
+ pushl %eax
+ movl %edx,%eax
+ incl %eax
+ andl $15,%eax
+ leal 1088(,%eax,4),%eax
+ addl %ebx,%eax
+ pushl %eax
+ call ASM_NAME(dct64_3dnow)
+ addl $12,%esp
+ jmp .L29
+.L28:
+ leal 1(%edx),%esi
+ movl BANDPTR,%edi
+ movl %esi,LOCAL5
+ leal 1092(%ecx,%edx,4),%eax
+ pushl %edi
+ leal 1088(%ecx),%ebx
+ pushl %eax
+ sall $2,%esi
+ leal (%ecx,%edx,4),%eax
+ pushl %eax
+ call ASM_NAME(dct64_3dnow)
+ addl $12,%esp
+ movl %esi,LOCAL1
+.L29:
+ movl DECWIN,%edx
+ addl $64,%edx
+ movl $16,%ecx
+ subl LOCAL1,%edx
+ movl LOCAL0,%edi
+
+ pcmpeqb %mm7,%mm7
+ pslld $31,%mm7
+ movq (%edx),%mm0
+ movq (%ebx),%mm1
+ ALIGN32
+.L33:
+ movq 8(%edx),%mm3
+ pfmul %mm1,%mm0
+ movq 8(%ebx),%mm4
+ movq 16(%edx),%mm5
+ pfmul %mm4,%mm3
+ movq 16(%ebx),%mm6
+ pfadd %mm3,%mm0
+ movq 24(%edx),%mm1
+ pfmul %mm6,%mm5
+ movq 24(%ebx),%mm2
+ pfadd %mm5,%mm0
+ movq 32(%edx),%mm3
+ pfmul %mm2,%mm1
+ movq 32(%ebx),%mm4
+ pfadd %mm1,%mm0
+ movq 40(%edx),%mm5
+ pfmul %mm4,%mm3
+ movq 40(%ebx),%mm6
+ pfadd %mm3,%mm0
+ movq 48(%edx),%mm1
+ pfmul %mm6,%mm5
+ movq 48(%ebx),%mm2
+ pfadd %mm0,%mm5
+ movq 56(%edx),%mm3
+ pfmul %mm1,%mm2
+ movq 56(%ebx),%mm4
+ pfadd %mm5,%mm2
+ addl $64,%ebx
+ subl $-128,%edx
+ movq (%edx),%mm0
+ pfmul %mm4,%mm3
+ movq (%ebx),%mm1
+ pfadd %mm3,%mm2
+ movq %mm2,%mm3
+ psrlq $32,%mm3
+ pfsub %mm3,%mm2
+ incl %ebp
+#ifdef ACCURATE_ROUNDING
+ pfmin (max_s16),%mm2
+ pfmax (min_s16),%mm2
+ pfadd (ftoi_magic),%mm2
+#else
+ pf2id %mm2,%mm2
+ packssdw %mm2,%mm2
+#endif
+ movd %mm2,%eax
+ movw %ax,0(%edi)
+ addl $4,%edi
+ decl %ecx
+ jnz .L33
+
+ movd (%ebx),%mm0
+ movd (%edx),%mm1
+ punpckldq 8(%ebx),%mm0
+ punpckldq 8(%edx),%mm1
+ movd 16(%ebx),%mm3
+ movd 16(%edx),%mm4
+ pfmul %mm1,%mm0
+ punpckldq 24(%ebx),%mm3
+ punpckldq 24(%edx),%mm4
+ movd 32(%ebx),%mm5
+ movd 32(%edx),%mm6
+ pfmul %mm4,%mm3
+ punpckldq 40(%ebx),%mm5
+ punpckldq 40(%edx),%mm6
+ pfadd %mm3,%mm0
+ movd 48(%ebx),%mm1
+ movd 48(%edx),%mm2
+ pfmul %mm6,%mm5
+ punpckldq 56(%ebx),%mm1
+ punpckldq 56(%edx),%mm2
+ pfadd %mm5,%mm0
+ pfmul %mm2,%mm1
+ pfadd %mm1,%mm0
+ pfacc %mm1,%mm0
+#ifdef ACCURATE_ROUNDING
+ pfmin (max_s16),%mm0
+ pfmax (min_s16),%mm0
+ pfadd (ftoi_magic),%mm0
+#else
+ pf2id %mm0,%mm0
+ packssdw %mm0,%mm0
+#endif
+ movd %mm0,%eax
+ movw %ax,0(%edi)
+ incl %ebp
+ movl LOCAL5,%esi
+ addl $-64,%ebx
+ movl $15,%ebp
+ addl $4,%edi
+ leal -128(%edx,%esi,8),%edx
+
+ movl $15,%ecx
+ movd (%ebx),%mm0
+ movd -4(%edx),%mm1
+ punpckldq 4(%ebx),%mm0
+ punpckldq -8(%edx),%mm1
+ ALIGN32
+.L46:
+ movd 8(%ebx),%mm3
+ movd -12(%edx),%mm4
+ pfmul %mm1,%mm0
+ punpckldq 12(%ebx),%mm3
+ punpckldq -16(%edx),%mm4
+ movd 16(%ebx),%mm5
+ movd -20(%edx),%mm6
+ pfmul %mm4,%mm3
+ punpckldq 20(%ebx),%mm5
+ punpckldq -24(%edx),%mm6
+ pfadd %mm3,%mm0
+ movd 24(%ebx),%mm1
+ movd -28(%edx),%mm2
+ pfmul %mm6,%mm5
+ punpckldq 28(%ebx),%mm1
+ punpckldq -32(%edx),%mm2
+ pfadd %mm5,%mm0
+ movd 32(%ebx),%mm3
+ movd -36(%edx),%mm4
+ pfmul %mm2,%mm1
+ punpckldq 36(%ebx),%mm3
+ punpckldq -40(%edx),%mm4
+ pfadd %mm1,%mm0
+ movd 40(%ebx),%mm5
+ movd -44(%edx),%mm6
+ pfmul %mm4,%mm3
+ punpckldq 44(%ebx),%mm5
+ punpckldq -48(%edx),%mm6
+ pfadd %mm3,%mm0
+ movd 48(%ebx),%mm1
+ movd -52(%edx),%mm2
+ pfmul %mm6,%mm5
+ punpckldq 52(%ebx),%mm1
+ punpckldq -56(%edx),%mm2
+ pfadd %mm0,%mm5
+ movd 56(%ebx),%mm3
+ movd -60(%edx),%mm4
+ pfmul %mm2,%mm1
+ punpckldq 60(%ebx),%mm3
+ punpckldq (%edx),%mm4
+ pfadd %mm1,%mm5
+ addl $-128,%edx
+ addl $-64,%ebx
+ movd (%ebx),%mm0
+ movd -4(%edx),%mm1
+ pfmul %mm4,%mm3
+ punpckldq 4(%ebx),%mm0
+ punpckldq -8(%edx),%mm1
+ pfadd %mm5,%mm3
+ pfacc %mm3,%mm3
+ incl %ebp
+ pxor %mm7,%mm3
+#ifdef ACCURATE_ROUNDING
+ pfmin (max_s16),%mm3
+ pfmax (min_s16),%mm3
+ pfadd (ftoi_magic),%mm3
+#else
+ pf2id %mm3,%mm3
+ packssdw %mm3,%mm3
+#endif
+ movd %mm3,%eax
+ movw %ax,(%edi)
+ addl $4,%edi
+ decl %ecx
+ jnz .L46
+
+ femms
+ movl %ebp,%eax
+ popl %ebx
+ popl %esi
+ popl %edi
+ popl %ebp
+ addl $24,%esp
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_3dnowext.S b/src/libmpg123/synth_3dnowext.S
new file mode 100644
index 0000000..8c820a5
--- /dev/null
+++ b/src/libmpg123/synth_3dnowext.S
@@ -0,0 +1,9 @@
+#include "mangle.h"
+#define MPL_DCT64 ASM_NAME(dct64_3dnowext)
+#define SYNTH_NAME ASM_NAME(synth_1to1_3dnowext_asm)
+#include "synth_sse3d.h"
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_8bit.c b/src/libmpg123/synth_8bit.c
new file mode 100644
index 0000000..f3f6713
--- /dev/null
+++ b/src/libmpg123/synth_8bit.c
@@ -0,0 +1,142 @@
+/*
+ synth_8bit.c: The functions for synthesizing 8bit samples, at the end of decoding.
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, heavily dissected and rearranged by Thomas Orgis
+*/
+
+#include "mpg123lib_intern.h"
+#include "sample.h"
+#include "debug.h"
+
+/*
+ Part 2: All synth functions that produce 8bit output.
+ What we need is just a special WRITE_SAMPLE. For the generic and i386 functions, that is.
+ For the rather optimized synth_1to1, we will need the postprocessing 8bit converters from synth_8bit.h .
+*/
+
+#define SAMPLE_T unsigned char
+#define WRITE_SAMPLE(samples,sum,clip) WRITE_8BIT_SAMPLE(samples,sum,clip)
+
+/* Part 2a: All straight 1to1 decoding functions */
+#define BLOCK 0x40 /* One decoding block is 64 samples. */
+
+#define SYNTH_NAME synth_1to1_8bit
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_1to1_8bit (could be generic, could be i386). */
+#define SYNTH_NAME fr->synths.plain[r_1to1][f_8]
+#define MONO_NAME synth_1to1_8bit_mono
+#define MONO2STEREO_NAME synth_1to1_8bit_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_1to1_8bit_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+/* But now, we need functions that take the 16bit output of optimized synth_1to1 and convert it.
+ I suppose that is still faster than dropping the optimization altogether! */
+
+#define BASE_SYNTH_NAME fr->synths.plain[r_1to1][f_16]
+#define SYNTH_NAME synth_1to1_8bit_wrap
+#define MONO_NAME synth_1to1_8bit_wrap_mono
+#define MONO2STEREO_NAME synth_1to1_8bit_wrap_mono2stereo
+#include "synth_8bit.h"
+#undef BASE_SYNTH_NAME
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#undef BLOCK
+
+#ifndef NO_DOWNSAMPLE
+
+/*
+ Part 2b: 2to1 synth. Only generic and i386.
+*/
+#define BLOCK 0x20 /* One decoding block is 32 samples. */
+
+#define SYNTH_NAME synth_2to1_8bit
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_2to1_8bit (could be generic, could be i386). */
+#define SYNTH_NAME fr->synths.plain[r_2to1][f_8]
+#define MONO_NAME synth_2to1_8bit_mono
+#define MONO2STEREO_NAME synth_2to1_8bit_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_2to1_8bit_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK
+
+/*
+ Part 2c: 4to1 synth. Only generic and i386.
+*/
+#define BLOCK 0x10 /* One decoding block is 16 samples. */
+
+#define SYNTH_NAME synth_4to1_8bit
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_4to1_8bit (could be generic, could be i386). */
+#define SYNTH_NAME fr->synths.plain[r_4to1][f_8]
+#define MONO_NAME synth_4to1_8bit_mono
+#define MONO2STEREO_NAME synth_4to1_8bit_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_4to1_8bit_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK
+
+#endif /* NO_DOWNSAMPLE */
+
+#ifndef NO_NTOM
+/*
+ Part 2d: ntom synth.
+ Same procedure as above... Just no extra play anymore, straight synth that may use an optimized dct64.
+*/
+
+/* These are all in one header, there's no flexibility to gain. */
+#define SYNTH_NAME synth_ntom_8bit
+#define MONO_NAME synth_ntom_8bit_mono
+#define MONO2STEREO_NAME synth_ntom_8bit_mono2stereo
+#include "synth_ntom.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#endif
+
+#undef SAMPLE_T
+#undef WRITE_SAMPLE
diff --git a/src/libmpg123/synth_8bit.h b/src/libmpg123/synth_8bit.h
new file mode 100644
index 0000000..e518d4f
--- /dev/null
+++ b/src/libmpg123/synth_8bit.h
@@ -0,0 +1,86 @@
+/*
+ synth_8bit.h: Wrappers over optimized synth_xtoy for converting signed short to 8bit.
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, code generalized to the wrapper by Thomas Orgis
+
+ Only variable is the BLOCK size to choose 1to1, 2to1 or 4to1.
+ Oh, and the names: BASE_SYNTH_NAME, SYNTH_NAME, MONO_NAME, MONO2STEREO_NAME
+ (p.ex. opt_synth_1to1(fr), synth_1to1_8bit, synth_1to1_8bit_mono, ...).
+*/
+
+int SYNTH_NAME(real *bandPtr, int channel, mpg123_handle *fr, int final)
+{
+ short samples_tmp[BLOCK];
+ short *tmp1 = samples_tmp + channel;
+ int i,ret;
+
+ unsigned char *samples = fr->buffer.data;
+ int pnt = fr->buffer.fill;
+ fr->buffer.data = (unsigned char*) samples_tmp;
+ fr->buffer.fill = 0;
+ ret = BASE_SYNTH_NAME(bandPtr, channel, fr , 0);
+ fr->buffer.data = samples;
+
+ samples += channel + pnt;
+ for(i=0;i<(BLOCK/2);i++)
+ {
+ *samples = fr->conv16to8[*tmp1>>AUSHIFT];
+ samples += 2;
+ tmp1 += 2;
+ }
+ fr->buffer.fill = pnt + (final ? BLOCK : 0 );
+
+ return ret;
+}
+
+int MONO_NAME(real *bandPtr, mpg123_handle *fr)
+{
+ short samples_tmp[BLOCK];
+ short *tmp1 = samples_tmp;
+ int i,ret;
+
+ unsigned char *samples = fr->buffer.data;
+ int pnt = fr->buffer.fill;
+ fr->buffer.data = (unsigned char*) samples_tmp;
+ fr->buffer.fill = 0;
+ ret = BASE_SYNTH_NAME(bandPtr, 0, fr, 0);
+ fr->buffer.data = samples;
+
+ samples += pnt;
+ for(i=0;i<(BLOCK/2);i++)
+ {
+ *samples++ = fr->conv16to8[*tmp1>>AUSHIFT];
+ tmp1+=2;
+ }
+ fr->buffer.fill = pnt + BLOCK/2;
+
+ return ret;
+}
+
+int MONO2STEREO_NAME(real *bandPtr, mpg123_handle *fr)
+{
+ short samples_tmp[BLOCK];
+ short *tmp1 = samples_tmp;
+ int i,ret;
+
+ unsigned char *samples = fr->buffer.data;
+ int pnt = fr->buffer.fill;
+ fr->buffer.data = (unsigned char*) samples_tmp;
+ fr->buffer.fill = 0;
+ ret = BASE_SYNTH_NAME(bandPtr, 0, fr, 0);
+ fr->buffer.data = samples;
+
+ samples += pnt;
+ for(i=0;i<(BLOCK/2);i++)
+ {
+ *samples++ = fr->conv16to8[*tmp1>>AUSHIFT];
+ *samples++ = fr->conv16to8[*tmp1>>AUSHIFT];
+ tmp1 += 2;
+ }
+ fr->buffer.fill = pnt + BLOCK;
+
+ return ret;
+}
+
diff --git a/src/libmpg123/synth_altivec.c b/src/libmpg123/synth_altivec.c
new file mode 100644
index 0000000..f17631b
--- /dev/null
+++ b/src/libmpg123/synth_altivec.c
@@ -0,0 +1,1057 @@
+/*
+ decode.c: decoding samples...
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+ altivec optimization by tmkk
+*/
+
+#include "mpg123lib_intern.h"
+
+#ifndef __APPLE__
+#include <altivec.h>
+#endif
+
+/* A macro for normal synth functions */
+#define SYNTH_ALTIVEC(B0STEP) \
+ v1 = vec_ld(0,window); \
+ v2 = vec_ld(16,window); \
+ v3 = vec_ld(32,window); \
+ v4 = vec_ld(48,window); \
+ v5 = vec_ld(64,window); \
+ v1 = vec_perm(v1,v2,vperm1); \
+ v6 = vec_ld(0,b0); \
+ v2 = vec_perm(v2,v3,vperm1); \
+ v7 = vec_ld(16,b0); \
+ v3 = vec_perm(v3,v4,vperm1); \
+ v8 = vec_ld(32,b0); \
+ v4 = vec_perm(v4,v5,vperm1); \
+ v9 = vec_ld(48,b0); \
+ \
+ vsum = vec_madd(v1,v6,vzero); \
+ vsum = vec_madd(v2,v7,vsum); \
+ vsum = vec_madd(v3,v8,vsum); \
+ vsum = vec_madd(v4,v9,vsum); \
+ \
+ window += 32; \
+ b0 += B0STEP; \
+ \
+ v1 = vec_ld(0,window); \
+ v2 = vec_ld(16,window); \
+ v3 = vec_ld(32,window); \
+ v4 = vec_ld(48,window); \
+ v5 = vec_ld(64,window); \
+ v1 = vec_perm(v1,v2,vperm1); \
+ v6 = vec_ld(0,b0); \
+ v2 = vec_perm(v2,v3,vperm1); \
+ v7 = vec_ld(16,b0); \
+ v3 = vec_perm(v3,v4,vperm1); \
+ v8 = vec_ld(32,b0); \
+ v4 = vec_perm(v4,v5,vperm1); \
+ v9 = vec_ld(48,b0); \
+ \
+ vsum2 = vec_madd(v1,v6,vzero); \
+ vsum2 = vec_madd(v2,v7,vsum2); \
+ vsum2 = vec_madd(v3,v8,vsum2); \
+ vsum2 = vec_madd(v4,v9,vsum2); \
+ \
+ window += 32; \
+ b0 += B0STEP; \
+ \
+ v1 = vec_ld(0,window); \
+ v2 = vec_ld(16,window); \
+ v3 = vec_ld(32,window); \
+ v4 = vec_ld(48,window); \
+ v5 = vec_ld(64,window); \
+ v1 = vec_perm(v1,v2,vperm1); \
+ v6 = vec_ld(0,b0); \
+ v2 = vec_perm(v2,v3,vperm1); \
+ v7 = vec_ld(16,b0); \
+ v3 = vec_perm(v3,v4,vperm1); \
+ v8 = vec_ld(32,b0); \
+ v4 = vec_perm(v4,v5,vperm1); \
+ v9 = vec_ld(48,b0); \
+ \
+ vsum3 = vec_madd(v1,v6,vzero); \
+ vsum3 = vec_madd(v2,v7,vsum3); \
+ vsum3 = vec_madd(v3,v8,vsum3); \
+ vsum3 = vec_madd(v4,v9,vsum3); \
+ \
+ window += 32; \
+ b0 += B0STEP; \
+ \
+ v1 = vec_ld(0,window); \
+ v2 = vec_ld(16,window); \
+ v3 = vec_ld(32,window); \
+ v4 = vec_ld(48,window); \
+ v5 = vec_ld(64,window); \
+ v1 = vec_perm(v1,v2,vperm1); \
+ v6 = vec_ld(0,b0); \
+ v2 = vec_perm(v2,v3,vperm1); \
+ v7 = vec_ld(16,b0); \
+ v3 = vec_perm(v3,v4,vperm1); \
+ v8 = vec_ld(32,b0); \
+ v4 = vec_perm(v4,v5,vperm1); \
+ v9 = vec_ld(48,b0); \
+ \
+ vsum4 = vec_madd(v1,v6,vzero); \
+ vsum4 = vec_madd(v2,v7,vsum4); \
+ vsum4 = vec_madd(v3,v8,vsum4); \
+ vsum4 = vec_madd(v4,v9,vsum4); \
+ \
+ window += 32; \
+ b0 += B0STEP; \
+ \
+ v1 = vec_mergeh(vsum,vsum3); \
+ v2 = vec_mergeh(vsum2,vsum4); \
+ v3 = vec_mergel(vsum,vsum3); \
+ v4 = vec_mergel(vsum2,vsum4); \
+ v5 = vec_mergeh(v1,v2); \
+ v6 = vec_mergel(v1,v2); \
+ v7 = vec_mergeh(v3,v4); \
+ v8 = vec_mergel(v3,v4);
+
+/* A macro for stereo synth functions */
+#define SYNTH_STEREO_ALTIVEC(B0STEP) \
+ v1 = vec_ld(0,window); \
+ v2 = vec_ld(16,window); \
+ v3 = vec_ld(32,window); \
+ v4 = vec_ld(48,window); \
+ v5 = vec_ld(64,window); \
+ v1 = vec_perm(v1,v2,vperm1); \
+ v6 = vec_ld(0,b0l); \
+ v10 = vec_ld(0,b0r); \
+ v2 = vec_perm(v2,v3,vperm1); \
+ v7 = vec_ld(16,b0l); \
+ v11 = vec_ld(16,b0r); \
+ v3 = vec_perm(v3,v4,vperm1); \
+ v8 = vec_ld(32,b0l); \
+ v12 = vec_ld(32,b0r); \
+ v4 = vec_perm(v4,v5,vperm1); \
+ v9 = vec_ld(48,b0l); \
+ v13 = vec_ld(48,b0r); \
+ \
+ vsum = vec_madd(v1,v6,vzero); \
+ vsum5 = vec_madd(v1,v10,vzero); \
+ vsum = vec_madd(v2,v7,vsum); \
+ vsum5 = vec_madd(v2,v11,vsum5); \
+ vsum = vec_madd(v3,v8,vsum); \
+ vsum5 = vec_madd(v3,v12,vsum5); \
+ vsum = vec_madd(v4,v9,vsum); \
+ vsum5 = vec_madd(v4,v13,vsum5); \
+ \
+ window += 32; \
+ b0l += B0STEP; \
+ b0r += B0STEP; \
+ \
+ v1 = vec_ld(0,window); \
+ v2 = vec_ld(16,window); \
+ v3 = vec_ld(32,window); \
+ v4 = vec_ld(48,window); \
+ v5 = vec_ld(64,window); \
+ v1 = vec_perm(v1,v2,vperm1); \
+ v6 = vec_ld(0,b0l); \
+ v10 = vec_ld(0,b0r); \
+ v2 = vec_perm(v2,v3,vperm1); \
+ v7 = vec_ld(16,b0l); \
+ v11 = vec_ld(16,b0r); \
+ v3 = vec_perm(v3,v4,vperm1); \
+ v8 = vec_ld(32,b0l); \
+ v12 = vec_ld(32,b0r); \
+ v4 = vec_perm(v4,v5,vperm1); \
+ v9 = vec_ld(48,b0l); \
+ v13 = vec_ld(48,b0r); \
+ \
+ vsum2 = vec_madd(v1,v6,vzero); \
+ vsum6 = vec_madd(v1,v10,vzero); \
+ vsum2 = vec_madd(v2,v7,vsum2); \
+ vsum6 = vec_madd(v2,v11,vsum6); \
+ vsum2 = vec_madd(v3,v8,vsum2); \
+ vsum6 = vec_madd(v3,v12,vsum6); \
+ vsum2 = vec_madd(v4,v9,vsum2); \
+ vsum6 = vec_madd(v4,v13,vsum6); \
+ \
+ window += 32; \
+ b0l += B0STEP; \
+ b0r += B0STEP; \
+ \
+ v1 = vec_ld(0,window); \
+ v2 = vec_ld(16,window); \
+ v3 = vec_ld(32,window); \
+ v4 = vec_ld(48,window); \
+ v5 = vec_ld(64,window); \
+ v1 = vec_perm(v1,v2,vperm1); \
+ v6 = vec_ld(0,b0l); \
+ v10 = vec_ld(0,b0r); \
+ v2 = vec_perm(v2,v3,vperm1); \
+ v7 = vec_ld(16,b0l); \
+ v11 = vec_ld(16,b0r); \
+ v3 = vec_perm(v3,v4,vperm1); \
+ v8 = vec_ld(32,b0l); \
+ v12 = vec_ld(32,b0r); \
+ v4 = vec_perm(v4,v5,vperm1); \
+ v9 = vec_ld(48,b0l); \
+ v13 = vec_ld(48,b0r); \
+ \
+ vsum3 = vec_madd(v1,v6,vzero); \
+ vsum7 = vec_madd(v1,v10,vzero); \
+ vsum3 = vec_madd(v2,v7,vsum3); \
+ vsum7 = vec_madd(v2,v11,vsum7); \
+ vsum3 = vec_madd(v3,v8,vsum3); \
+ vsum7 = vec_madd(v3,v12,vsum7); \
+ vsum3 = vec_madd(v4,v9,vsum3); \
+ vsum7 = vec_madd(v4,v13,vsum7); \
+ \
+ window += 32; \
+ b0l += B0STEP; \
+ b0r += B0STEP; \
+ \
+ v1 = vec_ld(0,window); \
+ v2 = vec_ld(16,window); \
+ v3 = vec_ld(32,window); \
+ v4 = vec_ld(48,window); \
+ v5 = vec_ld(64,window); \
+ v1 = vec_perm(v1,v2,vperm1); \
+ v6 = vec_ld(0,b0l); \
+ v10 = vec_ld(0,b0r); \
+ v2 = vec_perm(v2,v3,vperm1); \
+ v7 = vec_ld(16,b0l); \
+ v11 = vec_ld(16,b0r); \
+ v3 = vec_perm(v3,v4,vperm1); \
+ v8 = vec_ld(32,b0l); \
+ v12 = vec_ld(32,b0r); \
+ v4 = vec_perm(v4,v5,vperm1); \
+ v9 = vec_ld(48,b0l); \
+ v13 = vec_ld(48,b0r); \
+ \
+ vsum4 = vec_madd(v1,v6,vzero); \
+ vsum8 = vec_madd(v1,v10,vzero); \
+ vsum4 = vec_madd(v2,v7,vsum4); \
+ vsum8 = vec_madd(v2,v11,vsum8); \
+ vsum4 = vec_madd(v3,v8,vsum4); \
+ vsum8 = vec_madd(v3,v12,vsum8); \
+ vsum4 = vec_madd(v4,v9,vsum4); \
+ vsum8 = vec_madd(v4,v13,vsum8); \
+ \
+ window += 32; \
+ b0l += B0STEP; \
+ b0r += B0STEP; \
+ \
+ v1 = vec_mergeh(vsum,vsum3); \
+ v5 = vec_mergeh(vsum5,vsum7); \
+ v2 = vec_mergeh(vsum2,vsum4); \
+ v6 = vec_mergeh(vsum6,vsum8); \
+ v3 = vec_mergel(vsum,vsum3); \
+ v7 = vec_mergel(vsum5,vsum7); \
+ v4 = vec_mergel(vsum2,vsum4); \
+ v8 = vec_mergel(vsum6,vsum8); \
+ vsum = vec_mergeh(v1,v2); \
+ vsum5 = vec_mergeh(v5,v6); \
+ vsum2 = vec_mergel(v1,v2); \
+ vsum6 = vec_mergel(v5,v6); \
+ vsum3 = vec_mergeh(v3,v4); \
+ vsum7 = vec_mergeh(v7,v8); \
+ vsum4 = vec_mergel(v3,v4); \
+ vsum8 = vec_mergel(v7,v8);
+
+int synth_1to1_altivec(real *bandPtr,int channel,mpg123_handle *fr, int final)
+{
+ short *samples = (short *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0, **buf;
+ int clip;
+ int bo1;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_altivec(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_altivec(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+
+ {
+ register int j;
+ real *window = fr->decwin + 16 - bo1;
+
+ ALIGNED(16) int clip_tmp[4];
+ vector float v1,v2,v3,v4,v5,v6,v7,v8,v9;
+ vector unsigned char vperm1,vperm2,vperm3,vperm4;
+ vector float vsum,vsum2,vsum3,vsum4,vmin,vmax,vzero;
+ vector signed int vclip;
+ vector signed short vsample1,vsample2;
+ vector unsigned int vshift;
+ vclip = vec_xor(vclip,vclip);
+ vzero = vec_xor(vzero,vzero);
+ vshift = vec_splat_u32(-1); /* 31 */
+#ifdef __APPLE__
+ vmax = (vector float)(32767.0f);
+ vmin = (vector float)(-32768.0f);
+ vperm4 = (vector unsigned char)(0,1,18,19,2,3,22,23,4,5,26,27,6,7,30,31);
+#else
+ vmax = (vector float){32767.0f,32767.0f,32767.0f,32767.0f};
+ vmin = (vector float){-32768.0f,-32768.0f,-32768.0f,-32768.0f};
+ vperm4 = (vector unsigned char){0,1,18,19,2,3,22,23,4,5,26,27,6,7,30,31};
+#endif
+
+ vperm1 = vec_lvsl(0,window);
+ vperm2 = vec_lvsl(0,samples);
+ vperm3 = vec_lvsr(0,samples);
+ for (j=4;j;j--)
+ {
+ SYNTH_ALTIVEC(16);
+
+ vsum = vec_sub(v5,v6);
+ v9 = vec_sub(v7,v8);
+ vsum = vec_add(vsum,v9);
+
+ v3 = vec_round(vsum);
+ v3 = (vector float)vec_cts(v3,0);
+ v1 = (vector float)vec_cmpgt(vsum,vmax);
+ v2 = (vector float)vec_cmplt(vsum,vmin);
+ vsample1 = vec_ld(0,samples);
+ vsample2 = vec_ld(15,samples);
+ v3 = (vector float)vec_packs((vector signed int)v3,(vector signed int)v3);
+ v4 = (vector float)vec_perm(vsample1,vsample2,vperm2);
+ v5 = (vector float)vec_perm(v3,v4,vperm4);
+ v6 = (vector float)vec_perm(vsample2,vsample1,vperm2);
+ v7 = (vector float)vec_perm(v5,v6,vperm3);
+ v8 = (vector float)vec_perm(v6,v5,vperm3);
+ vec_st((vector signed short)v7,15,samples);
+ vec_st((vector signed short)v8,0,samples);
+ samples += 8;
+
+ v1 = (vector float)vec_sr((vector unsigned int)v1, vshift);
+ v2 = (vector float)vec_sr((vector unsigned int)v2, vshift);
+ v1 = (vector float)vec_add((vector unsigned int)v1,(vector unsigned int)v2);
+ vclip = vec_sums((vector signed int)v1,vclip);
+ }
+
+ for (j=4;j;j--)
+ {
+ SYNTH_ALTIVEC(-16);
+
+ vsum = vec_add(v5,v6);
+ v9 = vec_add(v7,v8);
+ vsum = vec_add(vsum,v9);
+
+ v3 = vec_round(vsum);
+ v3 = (vector float)vec_cts(v3,0);
+ v1 = (vector float)vec_cmpgt(vsum,vmax);
+ v2 = (vector float)vec_cmplt(vsum,vmin);
+ vsample1 = vec_ld(0,samples);
+ vsample2 = vec_ld(15,samples);
+ v3 = (vector float)vec_packs((vector signed int)v3,(vector signed int)v3);
+ v4 = (vector float)vec_perm(vsample1,vsample2,vperm2);
+ v5 = (vector float)vec_perm(v3,v4,vperm4);
+ v6 = (vector float)vec_perm(vsample2,vsample1,vperm2);
+ v7 = (vector float)vec_perm(v5,v6,vperm3);
+ v8 = (vector float)vec_perm(v6,v5,vperm3);
+ vec_st((vector signed short)v7,15,samples);
+ vec_st((vector signed short)v8,0,samples);
+ samples += 8;
+
+ v1 = (vector float)vec_sr((vector unsigned int)v1, vshift);
+ v2 = (vector float)vec_sr((vector unsigned int)v2, vshift);
+ v1 = (vector float)vec_add((vector unsigned int)v1,(vector unsigned int)v2);
+ vclip = vec_sums((vector signed int)v1,vclip);
+ }
+
+ vec_st(vclip,0,clip_tmp);
+ clip = clip_tmp[3];
+ }
+ if(final) fr->buffer.fill += 128;
+
+ return clip;
+}
+
+int synth_1to1_stereo_altivec(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ short *samples = (short *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0l, *b0r, **bufl, **bufr;
+ int clip;
+ int bo1;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->real_buffs[0];
+ bufr = fr->real_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_altivec(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_altivec(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_altivec(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_altivec(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+
+ {
+ register int j;
+ real *window = fr->decwin + 16 - bo1;
+
+ ALIGNED(16) int clip_tmp[4];
+ vector float v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13;
+ vector unsigned char vperm1,vperm2;
+ vector float vsum,vsum2,vsum3,vsum4,vsum5,vsum6,vsum7,vsum8,vmin,vmax,vzero;
+ vector signed int vclip;
+ vector unsigned int vshift;
+ vector signed short vprev;
+ vclip = vec_xor(vclip,vclip);
+ vzero = vec_xor(vzero,vzero);
+ vshift = vec_splat_u32(-1); /* 31 */
+#ifdef __APPLE__
+ vmax = (vector float)(32767.0f);
+ vmin = (vector float)(-32768.0f);
+#else
+ vmax = (vector float){32767.0f,32767.0f,32767.0f,32767.0f};
+ vmin = (vector float){-32768.0f,-32768.0f,-32768.0f,-32768.0f};
+#endif
+
+ vperm1 = vec_lvsl(0,window);
+ vperm2 = vec_lvsr(0,samples);
+ vprev = vec_perm(vec_ld(0,samples),vec_ld(0,samples),vec_lvsl(0,samples));
+ for (j=4;j;j--)
+ {
+ SYNTH_STEREO_ALTIVEC(16);
+
+ vsum = vec_sub(vsum,vsum2);
+ vsum2 = vec_sub(vsum5,vsum6);
+ vsum3 = vec_sub(vsum3,vsum4);
+ vsum4 = vec_sub(vsum7,vsum8);
+ vsum = vec_add(vsum,vsum3);
+ vsum2 = vec_add(vsum2,vsum4);
+
+ v1 = vec_round(vsum);
+ v2 = vec_round(vsum2);
+ v1 = (vector float)vec_cts(v1,0);
+ v2 = (vector float)vec_cts(v2,0);
+ v3 = vec_mergeh(v1, v2);
+ v4 = vec_mergel(v1, v2);
+ v5 = (vector float)vec_packs((vector signed int)v3,(vector signed int)v4);
+ v6 = (vector float)vec_perm(vprev,(vector signed short)v5,vperm2);
+ vprev = (vector signed short)v5;
+ v1 = (vector float)vec_cmpgt(vsum,vmax);
+ v2 = (vector float)vec_cmplt(vsum,vmin);
+ v3 = (vector float)vec_cmpgt(vsum2,vmax);
+ v4 = (vector float)vec_cmplt(vsum2,vmin);
+ vec_st((vector signed short)v6,0,samples);
+ samples += 8;
+
+ v1 = (vector float)vec_sr((vector unsigned int)v1, vshift);
+ v2 = (vector float)vec_sr((vector unsigned int)v2, vshift);
+ v3 = (vector float)vec_sr((vector unsigned int)v3, vshift);
+ v4 = (vector float)vec_sr((vector unsigned int)v4, vshift);
+ v1 = (vector float)vec_add((vector unsigned int)v1,(vector unsigned int)v2);
+ v2 = (vector float)vec_add((vector unsigned int)v3,(vector unsigned int)v4);
+ vclip = vec_sums((vector signed int)v1,vclip);
+ vclip = vec_sums((vector signed int)v2,vclip);
+ }
+
+ for (j=4;j;j--)
+ {
+ SYNTH_STEREO_ALTIVEC(-16);
+
+ vsum = vec_add(vsum,vsum2);
+ vsum2 = vec_add(vsum5,vsum6);
+ vsum3 = vec_add(vsum3,vsum4);
+ vsum4 = vec_add(vsum7,vsum8);
+ vsum = vec_add(vsum,vsum3);
+ vsum2 = vec_add(vsum2,vsum4);
+
+ v1 = vec_round(vsum);
+ v2 = vec_round(vsum2);
+ v1 = (vector float)vec_cts(v1,0);
+ v2 = (vector float)vec_cts(v2,0);
+ v3 = vec_mergeh(v1, v2);
+ v4 = vec_mergel(v1, v2);
+ v5 = (vector float)vec_packs((vector signed int)v3,(vector signed int)v4);
+ v6 = (vector float)vec_perm(vprev,(vector signed short)v5,vperm2);
+ vprev = (vector signed short)v5;
+ v1 = (vector float)vec_cmpgt(vsum,vmax);
+ v2 = (vector float)vec_cmplt(vsum,vmin);
+ v3 = (vector float)vec_cmpgt(vsum2,vmax);
+ v4 = (vector float)vec_cmplt(vsum2,vmin);
+ vec_st((vector signed short)v6,0,samples);
+ samples += 8;
+
+ v1 = (vector float)vec_sr((vector unsigned int)v1, vshift);
+ v2 = (vector float)vec_sr((vector unsigned int)v2, vshift);
+ v3 = (vector float)vec_sr((vector unsigned int)v3, vshift);
+ v4 = (vector float)vec_sr((vector unsigned int)v4, vshift);
+ v1 = (vector float)vec_add((vector unsigned int)v1,(vector unsigned int)v2);
+ v2 = (vector float)vec_add((vector unsigned int)v3,(vector unsigned int)v4);
+ vclip = vec_sums((vector signed int)v1,vclip);
+ vclip = vec_sums((vector signed int)v2,vclip);
+ }
+
+ if((size_t)samples & 0xf)
+ {
+ v1 = (vector float)vec_perm(vec_ld(0,samples),vec_ld(0,samples),vec_lvsl(0,samples));
+ v2 = (vector float)vec_perm(vprev,(vector signed short)v1,vperm2);
+ vec_st((vector signed short)v2,0,samples);
+ }
+
+ vec_st(vclip,0,clip_tmp);
+ clip = clip_tmp[3];
+ }
+ fr->buffer.fill += 128;
+
+ return clip;
+}
+
+int synth_1to1_real_altivec(real *bandPtr,int channel,mpg123_handle *fr, int final)
+{
+ real *samples = (real *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0, **buf;
+ int bo1;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_altivec(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_altivec(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+
+ {
+ register int j;
+ real *window = fr->decwin + 16 - bo1;
+
+ vector float v1,v2,v3,v4,v5,v6,v7,v8,v9;
+ vector unsigned char vperm1,vperm2,vperm3,vperm4, vperm5;
+ vector float vsum,vsum2,vsum3,vsum4,vscale,vzero;
+ vector float vsample1,vsample2,vsample3;
+ vzero = vec_xor(vzero, vzero);
+#ifdef __APPLE__
+ vscale = (vector float)(1.0f/32768.0f);
+ vperm4 = (vector unsigned char)(0,1,2,3,20,21,22,23,4,5,6,7,28,29,30,31);
+ vperm5 = (vector unsigned char)(8,9,10,11,20,21,22,23,12,13,14,15,28,29,30,31);
+#else
+ vscale = (vector float){1.0f/32768.0f,1.0f/32768.0f,1.0f/32768.0f,1.0f/32768.0f};
+ vperm4 = (vector unsigned char){0,1,2,3,20,21,22,23,4,5,6,7,28,29,30,31};
+ vperm5 = (vector unsigned char){8,9,10,11,20,21,22,23,12,13,14,15,28,29,30,31};
+#endif
+
+ vperm1 = vec_lvsl(0,window);
+ vperm2 = vec_lvsl(0,samples);
+ vperm3 = vec_lvsr(0,samples);
+ for (j=4;j;j--)
+ {
+ SYNTH_ALTIVEC(16);
+
+ vsum = vec_sub(v5,v6);
+ v9 = vec_sub(v7,v8);
+ vsum = vec_add(vsum,v9);
+ vsum = vec_madd(vsum, vscale, vzero);
+
+ vsample1 = vec_ld(0,samples);
+ vsample2 = vec_ld(16,samples);
+ vsample3 = vec_ld(31,samples);
+ v1 = vec_perm(vsample1, vsample2, vperm2);
+ v2 = vec_perm(vsample2, vsample3, vperm2);
+ v1 = vec_perm(vsum, v1, vperm4);
+ v2 = vec_perm(vsum, v2, vperm5);
+ v3 = vec_perm(vsample3, vsample2, vperm2);
+ v4 = vec_perm(vsample2, vsample1, vperm2);
+ v5 = vec_perm(v2, v3, vperm3);
+ v6 = vec_perm(v1, v2, vperm3);
+ v7 = vec_perm(v4, v1, vperm3);
+ vec_st(v5,31,samples);
+ vec_st(v6,16,samples);
+ vec_st(v7,0,samples);
+ samples += 8;
+ }
+
+ for (j=4;j;j--)
+ {
+ SYNTH_ALTIVEC(-16);
+
+ vsum = vec_add(v5,v6);
+ v9 = vec_add(v7,v8);
+ vsum = vec_add(vsum,v9);
+ vsum = vec_madd(vsum, vscale, vzero);
+
+ vsample1 = vec_ld(0,samples);
+ vsample2 = vec_ld(16,samples);
+ vsample3 = vec_ld(31,samples);
+ v1 = vec_perm(vsample1, vsample2, vperm2);
+ v2 = vec_perm(vsample2, vsample3, vperm2);
+ v1 = vec_perm(vsum, v1, vperm4);
+ v2 = vec_perm(vsum, v2, vperm5);
+ v3 = vec_perm(vsample3, vsample2, vperm2);
+ v4 = vec_perm(vsample2, vsample1, vperm2);
+ v5 = vec_perm(v2, v3, vperm3);
+ v6 = vec_perm(v1, v2, vperm3);
+ v7 = vec_perm(v4, v1, vperm3);
+ vec_st(v5,31,samples);
+ vec_st(v6,16,samples);
+ vec_st(v7,0,samples);
+ samples += 8;
+ }
+ }
+ if(final) fr->buffer.fill += 256;
+
+ return 0;
+}
+
+int synth_1to1_real_stereo_altivec(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ real *samples = (real *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0l, *b0r, **bufl, **bufr;
+ int bo1;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->real_buffs[0];
+ bufr = fr->real_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_altivec(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_altivec(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_altivec(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_altivec(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+
+ {
+ register int j;
+ real *window = fr->decwin + 16 - bo1;
+
+ vector float v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13;
+ vector unsigned char vperm1,vperm2;
+ vector float vsum,vsum2,vsum3,vsum4,vsum5,vsum6,vsum7,vsum8,vscale,vzero;
+ vector float vprev;
+ vzero = vec_xor(vzero,vzero);
+#ifdef __APPLE__
+ vscale = (vector float)(1.0f/32768.0f);
+#else
+ vscale = (vector float){1.0f/32768.0f,1.0f/32768.0f,1.0f/32768.0f,1.0f/32768.0f};
+#endif
+
+ vperm1 = vec_lvsl(0,window);
+ vperm2 = vec_lvsr(0,samples);
+ vprev = vec_perm(vec_ld(0,samples),vec_ld(0,samples),vec_lvsl(0,samples));
+ for (j=4;j;j--)
+ {
+ SYNTH_STEREO_ALTIVEC(16);
+
+ vsum = vec_sub(vsum,vsum2);
+ vsum2 = vec_sub(vsum5,vsum6);
+ vsum3 = vec_sub(vsum3,vsum4);
+ vsum4 = vec_sub(vsum7,vsum8);
+ vsum = vec_add(vsum,vsum3);
+ vsum2 = vec_add(vsum2,vsum4);
+ vsum = vec_madd(vsum, vscale, vzero);
+ vsum2 = vec_madd(vsum2, vscale, vzero);
+
+ v1 = vec_mergeh(vsum, vsum2);
+ v2 = vec_mergel(vsum, vsum2);
+ v3 = vec_perm(vprev,v1,vperm2);
+ v4 = vec_perm(v1,v2,vperm2);
+ vprev = v2;
+ vec_st(v3,0,samples);
+ vec_st(v4,16,samples);
+ samples += 8;
+ }
+
+ for (j=4;j;j--)
+ {
+ SYNTH_STEREO_ALTIVEC(-16);
+
+ vsum = vec_add(vsum,vsum2);
+ vsum2 = vec_add(vsum5,vsum6);
+ vsum3 = vec_add(vsum3,vsum4);
+ vsum4 = vec_add(vsum7,vsum8);
+ vsum = vec_add(vsum,vsum3);
+ vsum2 = vec_add(vsum2,vsum4);
+ vsum = vec_madd(vsum, vscale, vzero);
+ vsum2 = vec_madd(vsum2, vscale, vzero);
+
+ v1 = vec_mergeh(vsum, vsum2);
+ v2 = vec_mergel(vsum, vsum2);
+ v3 = vec_perm(vprev,v1,vperm2);
+ v4 = vec_perm(v1,v2,vperm2);
+ vprev = v2;
+ vec_st(v3,0,samples);
+ vec_st(v4,16,samples);
+ samples += 8;
+ }
+
+ if((size_t)samples & 0xf)
+ {
+ v1 = (vector float)vec_perm(vec_ld(0,samples),vec_ld(0,samples),vec_lvsl(0,samples));
+ v2 = (vector float)vec_perm(vprev,v1,vperm2);
+ vec_st(v2,0,samples);
+ }
+ }
+ fr->buffer.fill += 256;
+
+ return 0;
+}
+
+int synth_1to1_s32_altivec(real *bandPtr,int channel,mpg123_handle *fr, int final)
+{
+ int32_t *samples = (int32_t *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0, **buf;
+ int clip;
+ int bo1;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_altivec(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_altivec(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+
+ {
+ register int j;
+ real *window = fr->decwin + 16 - bo1;
+
+ ALIGNED(16) int clip_tmp[4];
+ vector float v1,v2,v3,v4,v5,v6,v7,v8,v9;
+ vector unsigned char vperm1,vperm2,vperm3,vperm4,vperm5;
+ vector float vsum,vsum2,vsum3,vsum4,vmax,vmin,vzero;
+ vector signed int vsample1,vsample2,vsample3;
+ vector unsigned int vshift;
+ vector signed int vclip;
+ vzero = vec_xor(vzero, vzero);
+ vclip = vec_xor(vclip, vclip);
+ vshift = vec_splat_u32(-1); /* 31 */
+#ifdef __APPLE__
+ vmax = (vector float)(32767.999f);
+ vmin = (vector float)(-32768.0f);
+ vperm4 = (vector unsigned char)(0,1,2,3,20,21,22,23,4,5,6,7,28,29,30,31);
+ vperm5 = (vector unsigned char)(8,9,10,11,20,21,22,23,12,13,14,15,28,29,30,31);
+#else
+ vmax = (vector float){32767.999f,32767.999f,32767.999f,32767.999f};
+ vmin = (vector float){-32768.0f,-32768.0f,-32768.0f,-32768.0f};
+ vperm4 = (vector unsigned char){0,1,2,3,20,21,22,23,4,5,6,7,28,29,30,31};
+ vperm5 = (vector unsigned char){8,9,10,11,20,21,22,23,12,13,14,15,28,29,30,31};
+#endif
+
+ vperm1 = vec_lvsl(0,window);
+ vperm2 = vec_lvsl(0,samples);
+ vperm3 = vec_lvsr(0,samples);
+ for (j=4;j;j--)
+ {
+ SYNTH_ALTIVEC(16);
+
+ vsum = vec_sub(v5,v6);
+ v9 = vec_sub(v7,v8);
+ v1 = vec_add(vsum,v9);
+ vsum = (vector float)vec_cts(v1,16);
+ v8 = (vector float)vec_cmpgt(v1,vmax);
+ v9 = (vector float)vec_cmplt(v1,vmin);
+
+ vsample1 = vec_ld(0,samples);
+ vsample2 = vec_ld(16,samples);
+ vsample3 = vec_ld(31,samples);
+ v1 = (vector float)vec_perm(vsample1, vsample2, vperm2);
+ v2 = (vector float)vec_perm(vsample2, vsample3, vperm2);
+ v1 = vec_perm(vsum, v1, vperm4);
+ v2 = vec_perm(vsum, v2, vperm5);
+ v3 = (vector float)vec_perm(vsample3, vsample2, vperm2);
+ v4 = (vector float)vec_perm(vsample2, vsample1, vperm2);
+ v5 = vec_perm(v2, v3, vperm3);
+ v6 = vec_perm(v1, v2, vperm3);
+ v7 = vec_perm(v4, v1, vperm3);
+ vec_st((vector signed int)v5,31,samples);
+ vec_st((vector signed int)v6,16,samples);
+ vec_st((vector signed int)v7,0,samples);
+ samples += 8;
+
+ v1 = (vector float)vec_sr((vector unsigned int)v8, vshift);
+ v2 = (vector float)vec_sr((vector unsigned int)v9, vshift);
+ v1 = (vector float)vec_add((vector unsigned int)v1,(vector unsigned int)v2);
+ vclip = vec_sums((vector signed int)v1,vclip);
+ }
+
+ for (j=4;j;j--)
+ {
+ SYNTH_ALTIVEC(-16);
+
+ vsum = vec_add(v5,v6);
+ v9 = vec_add(v7,v8);
+ v1 = vec_add(vsum,v9);
+ vsum = (vector float)vec_cts(v1,16);
+ v8 = (vector float)vec_cmpgt(v1,vmax);
+ v9 = (vector float)vec_cmplt(v1,vmin);
+
+ vsample1 = vec_ld(0,samples);
+ vsample2 = vec_ld(16,samples);
+ vsample3 = vec_ld(31,samples);
+ v1 = (vector float)vec_perm(vsample1, vsample2, vperm2);
+ v2 = (vector float)vec_perm(vsample2, vsample3, vperm2);
+ v1 = vec_perm(vsum, v1, vperm4);
+ v2 = vec_perm(vsum, v2, vperm5);
+ v3 = (vector float)vec_perm(vsample3, vsample2, vperm2);
+ v4 = (vector float)vec_perm(vsample2, vsample1, vperm2);
+ v5 = vec_perm(v2, v3, vperm3);
+ v6 = vec_perm(v1, v2, vperm3);
+ v7 = vec_perm(v4, v1, vperm3);
+ vec_st((vector signed int)v5,31,samples);
+ vec_st((vector signed int)v6,16,samples);
+ vec_st((vector signed int)v7,0,samples);
+ samples += 8;
+
+ v1 = (vector float)vec_sr((vector unsigned int)v8, vshift);
+ v2 = (vector float)vec_sr((vector unsigned int)v9, vshift);
+ v1 = (vector float)vec_add((vector unsigned int)v1,(vector unsigned int)v2);
+ vclip = vec_sums((vector signed int)v1,vclip);
+ }
+
+ vec_st(vclip,0,clip_tmp);
+ clip = clip_tmp[3];
+ }
+ if(final) fr->buffer.fill += 256;
+
+ return clip;
+}
+
+
+int synth_1to1_s32_stereo_altivec(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ int32_t *samples = (int32_t *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0l, *b0r, **bufl, **bufr;
+ int clip;
+ int bo1;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->real_buffs[0];
+ bufr = fr->real_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_altivec(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_altivec(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_altivec(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_altivec(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+
+ {
+ register int j;
+ real *window = fr->decwin + 16 - bo1;
+
+ ALIGNED(16) int clip_tmp[4];
+ vector float v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13;
+ vector unsigned char vperm1,vperm2;
+ vector float vsum,vsum2,vsum3,vsum4,vsum5,vsum6,vsum7,vsum8,vmax,vmin,vzero;
+ vector float vprev;
+ vector unsigned int vshift;
+ vector signed int vclip;
+ vzero = vec_xor(vzero, vzero);
+ vclip = vec_xor(vclip, vclip);
+ vshift = vec_splat_u32(-1); /* 31 */
+#ifdef __APPLE__
+ vmax = (vector float)(32767.999f);
+ vmin = (vector float)(-32768.0f);
+#else
+ vmax = (vector float){32767.999f,32767.999f,32767.999f,32767.999f};
+ vmin = (vector float){-32768.0f,-32768.0f,-32768.0f,-32768.0f};
+#endif
+
+ vperm1 = vec_lvsl(0,window);
+ vperm2 = vec_lvsr(0,samples);
+ vprev = (vector float)vec_perm(vec_ld(0,samples),vec_ld(0,samples),vec_lvsl(0,samples));
+ for (j=4;j;j--)
+ {
+ SYNTH_STEREO_ALTIVEC(16);
+
+ vsum = vec_sub(vsum,vsum2);
+ vsum2 = vec_sub(vsum5,vsum6);
+ vsum3 = vec_sub(vsum3,vsum4);
+ vsum4 = vec_sub(vsum7,vsum8);
+ v1 = vec_add(vsum,vsum3);
+ v2 = vec_add(vsum2,vsum4);
+ vsum = (vector float)vec_cts(v1,16);
+ vsum2 = (vector float)vec_cts(v2,16);
+ v5 = (vector float)vec_cmpgt(v1,vmax);
+ v6 = (vector float)vec_cmplt(v1,vmin);
+ v7 = (vector float)vec_cmpgt(v2,vmax);
+ v8 = (vector float)vec_cmplt(v2,vmin);
+
+ v1 = vec_mergeh(vsum, vsum2);
+ v2 = vec_mergel(vsum, vsum2);
+ v3 = vec_perm(vprev,v1,vperm2);
+ v4 = vec_perm(v1,v2,vperm2);
+ vprev = v2;
+ vec_st((vector signed int)v3,0,samples);
+ vec_st((vector signed int)v4,16,samples);
+ samples += 8;
+
+ v1 = (vector float)vec_sr((vector unsigned int)v5, vshift);
+ v2 = (vector float)vec_sr((vector unsigned int)v6, vshift);
+ v3 = (vector float)vec_sr((vector unsigned int)v7, vshift);
+ v4 = (vector float)vec_sr((vector unsigned int)v8, vshift);
+ v1 = (vector float)vec_add((vector unsigned int)v1,(vector unsigned int)v2);
+ v2 = (vector float)vec_add((vector unsigned int)v3,(vector unsigned int)v4);
+ vclip = vec_sums((vector signed int)v1,vclip);
+ vclip = vec_sums((vector signed int)v2,vclip);
+ }
+
+ for (j=4;j;j--)
+ {
+ SYNTH_STEREO_ALTIVEC(-16);
+
+ vsum = vec_add(vsum,vsum2);
+ vsum2 = vec_add(vsum5,vsum6);
+ vsum3 = vec_add(vsum3,vsum4);
+ vsum4 = vec_add(vsum7,vsum8);
+ v1 = vec_add(vsum,vsum3);
+ v2 = vec_add(vsum2,vsum4);
+ vsum = (vector float)vec_cts(v1,16);
+ vsum2 = (vector float)vec_cts(v2,16);
+ v5 = (vector float)vec_cmpgt(v1,vmax);
+ v6 = (vector float)vec_cmplt(v1,vmin);
+ v7 = (vector float)vec_cmpgt(v2,vmax);
+ v8 = (vector float)vec_cmplt(v2,vmin);
+
+ v1 = vec_mergeh(vsum, vsum2);
+ v2 = vec_mergel(vsum, vsum2);
+ v3 = vec_perm(vprev,v1,vperm2);
+ v4 = vec_perm(v1,v2,vperm2);
+ vprev = v2;
+ vec_st((vector signed int)v3,0,samples);
+ vec_st((vector signed int)v4,16,samples);
+ samples += 8;
+
+ v1 = (vector float)vec_sr((vector unsigned int)v5, vshift);
+ v2 = (vector float)vec_sr((vector unsigned int)v6, vshift);
+ v3 = (vector float)vec_sr((vector unsigned int)v7, vshift);
+ v4 = (vector float)vec_sr((vector unsigned int)v8, vshift);
+ v1 = (vector float)vec_add((vector unsigned int)v1,(vector unsigned int)v2);
+ v2 = (vector float)vec_add((vector unsigned int)v3,(vector unsigned int)v4);
+ vclip = vec_sums((vector signed int)v1,vclip);
+ vclip = vec_sums((vector signed int)v2,vclip);
+ }
+
+ if((size_t)samples & 0xf)
+ {
+ v1 = (vector float)vec_perm(vec_ld(0,samples),vec_ld(0,samples),vec_lvsl(0,samples));
+ v2 = (vector float)vec_perm(vprev,v1,vperm2);
+ vec_st((vector signed int)v2,0,samples);
+ }
+
+ vec_st(vclip,0,clip_tmp);
+ clip = clip_tmp[3];
+ }
+ fr->buffer.fill += 256;
+
+ return clip;
+}
diff --git a/src/libmpg123/synth_i486.c b/src/libmpg123/synth_i486.c
new file mode 100644
index 0000000..01b0119
--- /dev/null
+++ b/src/libmpg123/synth_i486.c
@@ -0,0 +1,252 @@
+/*
+ decode_i486.c: i486 decode
+
+ copyright 1998-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Fabrice Bellard
+
+ One has to see if the modification for non-static memory kills this optimization (cache locality?).
+*/
+
+/*
+ * Subband Synthesis for MPEG Audio.
+ *
+ * Version optimized for 80486 by using integer arithmetic,
+ * multiplications by shift and add, and by increasing locality in
+ * order to fit the 8KB L1 cache. This code should be compiled with gcc
+ * 2.7.2 or higher.
+ *
+ * Note: this version does not guaranty a good accuracy. The filter
+ * coefficients are quantified on 14 bits.
+ *
+ * (c) 1998 Fabrice Bellard
+ */
+
+#include "mpg123lib_intern.h"
+
+#define FIR16_1(pos,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15) \
+{\
+ int sum;\
+ sum=(c0)*b0[0]+(c1)*b0[1]+(c2)*b0[2]+(c3)*b0[3]+\
+ (c4)*b0[4]+(c5)*b0[5]+(c6)*b0[6]+(c7)*b0[7]+\
+ (c8)*b0[8]+(c9)*b0[9]+(c10)*b0[10]+(c11)*b0[11]+\
+ (c12)*b0[12]+(c13)*b0[13]+(c14)*b0[14]+(c15)*b0[15];\
+ sum=(sum+(1 << 13))>>14;\
+ if (sum<-32768) sum=-32768;\
+ else if (sum>32767) sum=32767;\
+ samples[2*(pos)]=sum;\
+ b0+=FIR_BUFFER_SIZE;\
+}
+
+#define FIR16_2(pos1,c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,\
+ pos2,d0,d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15) \
+{\
+ int sum1,sum2,v;\
+\
+ v=b0[0];\
+ sum1=(c0)*v;\
+ sum2=(d0)*v;\
+ v=b0[1];\
+ sum1+=(c1)*v;\
+ sum2+=(d1)*v;\
+ v=b0[2];\
+ sum1+=(c2)*v;\
+ sum2+=(d2)*v;\
+ v=b0[3];\
+ sum1+=(c3)*v;\
+ sum2+=(d3)*v;\
+ v=b0[4];\
+ sum1+=(c4)*v;\
+ sum2+=(d4)*v;\
+ v=b0[5];\
+ sum1+=(c5)*v;\
+ sum2+=(d5)*v;\
+ v=b0[6];\
+ sum1+=(c6)*v;\
+ sum2+=(d6)*v;\
+ v=b0[7];\
+ sum1+=(c7)*v;\
+ sum2+=(d7)*v;\
+ v=b0[8];\
+ sum1+=(c8)*v;\
+ sum2+=(d8)*v;\
+ v=b0[9];\
+ sum1+=(c9)*v;\
+ sum2+=(d9)*v;\
+ v=b0[10];\
+ sum1+=(c10)*v;\
+ sum2+=(d10)*v;\
+ v=b0[11];\
+ sum1+=(c11)*v;\
+ sum2+=(d11)*v;\
+ v=b0[12];\
+ sum1+=(c12)*v;\
+ sum2+=(d12)*v;\
+ v=b0[13];\
+ sum1+=(c13)*v;\
+ sum2+=(d13)*v;\
+ v=b0[14];\
+ sum1+=(c14)*v;\
+ sum2+=(d14)*v;\
+ v=b0[15];\
+ sum1+=(c15)*v;\
+ sum2+=(d15)*v;\
+\
+ sum1=(sum1+(1<<13))>>14;\
+ sum2=(sum2+(1<<13))>>14;\
+\
+ if (sum1<-32768) sum1=-32768;\
+ else if (sum1>32767) sum1=32767;\
+ samples[(pos1)*2]=sum1;\
+\
+ if (sum2<-32768) sum2=-32768;\
+ else if (sum2>32767) sum2=32767;\
+ samples[(pos2)*2]=sum2;\
+ b0+=FIR_BUFFER_SIZE;\
+}
+
+int absynth_1to1_i486(real *bandPtr, int channel, mpg123_handle *fr, int nb_blocks)
+{
+ short *samples = (short *) (fr->buffer.data+fr->buffer.fill);
+ int *b0,**buf;
+ int clip = 0;
+ int block,b,bo_start;
+
+ /* samples address */
+ samples+=channel;
+
+ bo_start=fr->i486bo[channel];
+ buf = fr->int_buffs[channel];
+
+ b=bo_start;
+ for(block=0;block<nb_blocks;block++) {
+
+ /* FIR offset */
+ b++;
+ if (b >= FIR_BUFFER_SIZE) {
+ int *p,*q;
+ int c,i,j;
+
+ /* we shift the buffers */
+ for(c=0;c<2;c++) {
+ p=&buf[c][0]+1;
+ q=p+(FIR_BUFFER_SIZE-FIR_SIZE);
+ for(i=0;i<17;i++) {
+ for(j=0;j<FIR_SIZE-1;j++) p[j]=q[j];
+ p+=FIR_BUFFER_SIZE;
+ q+=FIR_BUFFER_SIZE;
+ }
+ }
+ /* we update 'bo' accordingly */
+ b=fr->i486bo[channel]=FIR_SIZE;
+ }
+
+ if(b & 1) {
+ dct64_i486(buf[1]+b,buf[0]+b,bandPtr);
+ } else {
+ dct64_i486(buf[0]+b,buf[1]+b,bandPtr);
+ }
+ bandPtr+=32;
+ }
+ fr->i486bo[channel]=b;
+
+ /* filter bank: part 1 */
+ b=bo_start;
+ for(block=0;block<nb_blocks;block++) {
+ b++;
+ if (b >= FIR_BUFFER_SIZE) b=FIR_SIZE;
+ if(b & 1) {
+ b0 = buf[0] + b - (FIR_SIZE-1);
+ } else {
+ b0 = buf[1] + b - (FIR_SIZE-1);
+ }
+
+ FIR16_1(0,-7,53,-114,509,-1288,1643,-9372,18759,9372,1643,1288,509,114,53,7,0);
+ FIR16_2(1,-6,52,-100,515,-1197,1783,-8910,18748,9834,1489,1379,500,129,54,7,0,
+ 31,0,-7,54,-129,500,-1379,1489,-9834,18748,8910,1783,1197,515,100,52,6);
+ FIR16_2(2,-6,50,-86,520,-1106,1910,-8447,18714,10294,1322,1469,488,145,55,8,0,
+ 30,0,-8,55,-145,488,-1469,1322,-10294,18714,8447,1910,1106,520,86,50,6);
+ FIR16_2(3,-5,49,-73,521,-1015,2023,-7986,18657,10751,1140,1559,473,161,56,9,0,
+ 29,0,-9,56,-161,473,-1559,1140,-10751,18657,7986,2023,1015,521,73,49,5);
+ samples+=64;
+ }
+ samples-=64*nb_blocks;
+
+ /* filter bank: part 2 */
+
+ b=bo_start;
+ for(block=0;block<nb_blocks;block++) {
+ b++;
+ if (b >= FIR_BUFFER_SIZE) b=FIR_SIZE;
+ if(b & 1) {
+ b0 = buf[0] + b - (FIR_SIZE-1) + 4*FIR_BUFFER_SIZE;
+ } else {
+ b0 = buf[1] + b - (FIR_SIZE-1) + 4*FIR_BUFFER_SIZE;
+ }
+
+ FIR16_2(4,-4,47,-61,521,-926,2123,-7528,18578,11205,944,1647,455,177,56,10,0,
+ 28,0,-10,56,-177,455,-1647,944,-11205,18578,7528,2123,926,521,61,47,4);
+ FIR16_2(5,-4,45,-49,518,-837,2210,-7072,18477,11654,733,1733,434,194,57,11,0,
+ 27,0,-11,57,-194,434,-1733,733,-11654,18477,7072,2210,837,518,49,45,4);
+ FIR16_2(6,-4,44,-38,514,-751,2284,-6620,18353,12097,509,1817,411,212,57,12,0,
+ 26,0,-12,57,-212,411,-1817,509,-12097,18353,6620,2284,751,514,38,44,4);
+ FIR16_2(7,-3,42,-27,508,-665,2347,-6173,18208,12534,270,1899,383,229,56,13,0,
+ 25,0,-13,56,-229,383,-1899,270,-12534,18208,6173,2347,665,508,27,42,3);
+
+ samples+=64;
+ }
+ samples-=64*nb_blocks;
+
+ /* filter bank: part 3 */
+
+ b=bo_start;
+ for(block=0;block<nb_blocks;block++) {
+ b++;
+ if (b >= FIR_BUFFER_SIZE) b=FIR_SIZE;
+ if(b & 1) {
+ b0 = buf[0] + b - (FIR_SIZE-1) + 8*FIR_BUFFER_SIZE;
+ } else {
+ b0 = buf[1] + b - (FIR_SIZE-1) + 8*FIR_BUFFER_SIZE;
+ }
+
+ FIR16_2(8,-3,40,-18,500,-582,2398,-5732,18042,12963,17,1977,353,247,56,14,0,
+ 24,0,-14,56,-247,353,-1977,17,-12963,18042,5732,2398,582,500,18,40,3);
+ FIR16_2(9,-2,38,-9,490,-501,2437,-5297,17855,13383,-249,2052,320,266,55,15,0,
+ 23,0,-15,55,-266,320,-2052,-249,-13383,17855,5297,2437,501,490,9,38,2);
+ FIR16_2(10,-2,36,0,479,-423,2465,-4869,17647,13794,-530,2122,282,284,53,17,0,
+ 22,0,-17,53,-284,282,-2122,-530,-13794,17647,4869,2465,423,479,0,36,2);
+ FIR16_2(11,-2,34,7,467,-347,2483,-4449,17419,14194,-825,2188,242,302,52,18,0,
+ 21,0,-18,52,-302,242,-2188,-825,-14194,17419,4449,2483,347,467,-7,34,2);
+
+ samples+=64;
+ }
+ samples-=64*nb_blocks;
+
+ /* filter bank: part 4 */
+
+ b=bo_start;
+ for(block=0;block<nb_blocks;block++) {
+ b++;
+ if (b >= FIR_BUFFER_SIZE) b=FIR_SIZE;
+ if(b & 1) {
+ b0 = buf[0] + b - (FIR_SIZE-1) + 12*FIR_BUFFER_SIZE;
+ } else {
+ b0 = buf[1] + b - (FIR_SIZE-1) + 12*FIR_BUFFER_SIZE;
+ }
+
+ FIR16_2(12,-2,33,14,454,-273,2491,-4038,17173,14583,-1133,2249,198,320,50,19,0,
+ 20,0,-19,50,-320,198,-2249,-1133,-14583,17173,4038,2491,273,454,-14,33,2);
+ FIR16_2(13,-1,31,20,439,-203,2489,-3637,16907,14959,-1454,2304,151,339,47,21,-1,
+ 19,-1,-21,47,-339,151,-2304,-1454,-14959,16907,3637,2489,203,439,-20,31,1);
+ FIR16_2(14,-1,29,26,424,-136,2479,-3245,16623,15322,-1788,2354,100,357,44,22,-1,
+ 18,-1,-22,44,-357,100,-2354,-1788,-15322,16623,3245,2479,136,424,-26,29,1);
+ FIR16_2(15,-1,27,31,408,-72,2459,-2863,16322,15671,-2135,2396,46,374,40,24,-1,
+ 17,-1,-24,40,-374,46,-2396,-2135,-15671,16322,2863,2459,72,408,-31,27,1);
+ FIR16_1(16,-1,0,36,0,-11,0,-2493,0,16004,0,2431,0,391,0,26,0);
+
+ samples+=64;
+ }
+
+ return clip;
+}
+
diff --git a/src/libmpg123/synth_i586.S b/src/libmpg123/synth_i586.S
new file mode 100644
index 0000000..2b9cc73
--- /dev/null
+++ b/src/libmpg123/synth_i586.S
@@ -0,0 +1,339 @@
+/*
+ decode_i586: asm synth
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Stefan Bieschewski
+
+ synth_1to1 works the same way as the c version of this
+ file. only two types of changes have been made:
+ - reordered floating point instructions to
+ prevent pipline stalls
+ - made WRITE_SAMPLE use integer instead of
+ (slower) floating point
+ all kinds of x86 processors should benefit from these
+ modifications.
+
+ useful sources of information on optimizing x86 code include:
+
+ Intel Architecture Optimization Manual
+ http://www.intel.com/design/pentium/manuals/242816.htm
+
+ Cyrix 6x86 Instruction Set Summary
+ ftp://ftp.cyrix.com/6x86/6x-dbch6.pdf
+
+ AMD-K5 Processor Software Development
+ http://www.amd.com/products/cpg/techdocs/appnotes/20007e.pdf
+
+ Stefan Bieschewski <stb@acm.org>
+
+ $Id: decode_i586.s 1 2004-09-18 13:30:08Z thomas $
+*/
+
+#include "mangle.h"
+
+.data
+#ifndef __APPLE__
+.section .rodata
+#endif
+ ALIGN8
+.LC0:
+ .long 0x0,0x40dfffc0
+ ALIGN8
+.LC1:
+ .long 0x0,0xc0e00000
+ ALIGN8
+.text
+/* int synth_1to1_i586_asm(real *bandPtr, int channel, unsigned char *out, unsigned char *buffs, int *bo, real *decwin); */
+.globl ASM_NAME(synth_1to1_i586_asm)
+ASM_NAME(synth_1to1_i586_asm):
+ subl $12,%esp
+ pushl %ebp
+ pushl %edi
+ pushl %esi
+ pushl %ebx
+/* stack: 0=ebx, 4=esi, 8=edi, 12=ebp, 16,20,24=local, 28=back, 32=bandPtr, 36=channel, 40=out, 44=buffs, 48=bo, 52=decwin */
+ movl 32(%esp),%eax /* *bandPtr */
+ movl 40(%esp),%esi /* *out */
+ movl 48(%esp),%edi /* *bo */
+ movl (%edi),%ebp /* store bo value in ebp */
+ xorl %edi,%edi
+ cmpl %edi,36(%esp)
+ jne .L48 /* if(!channel) */
+ decl %ebp /* bo-- */
+ andl $15,%ebp /* bo &= 0xf */
+ movl 48(%esp), %edi /* *bo */
+ movl %ebp,(%edi) /* write back bo */
+ xorl %edi,%edi /* restore %edi to 0; it's used later */
+ movl 44(%esp),%ecx /* use buffs */
+ jmp .L49
+.L48: /* if(channel) use buffs+2176 */
+ addl $2,%esi
+ movl 44(%esp),%ecx /* *buffs */
+ addl $2176,%ecx
+.L49:
+ testl $1,%ebp
+ je .L50
+ movl %ecx,%ebx
+ movl %ebp,16(%esp)
+ pushl %eax
+ movl 20(%esp),%edx
+ leal (%ebx,%edx,4),%eax
+ pushl %eax
+ movl 24(%esp),%eax
+ incl %eax
+ andl $15,%eax
+ leal 1088(,%eax,4),%eax
+ addl %ebx,%eax
+ jmp .L74
+.L50:
+ leal 1088(%ecx),%ebx
+ leal 1(%ebp),%edx
+ movl %edx,16(%esp)
+ pushl %eax
+ leal 1092(%ecx,%ebp,4),%eax
+ pushl %eax
+ leal (%ecx,%ebp,4),%eax
+.L74:
+ pushl %eax
+ call ASM_NAME(dct64_i386)
+ addl $12,%esp
+/* stack now back on track */
+ movl 16(%esp),%edx
+ leal 0(,%edx,4),%edx
+ movl 52(%esp),%eax /* decwin */
+ addl $64,%eax
+ movl %eax,%ecx
+ subl %edx,%ecx
+ movl $16,%ebp
+.L55:
+ flds (%ecx)
+ fmuls (%ebx)
+ flds 4(%ecx)
+ fmuls 4(%ebx)
+ fxch %st(1)
+ flds 8(%ecx)
+ fmuls 8(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 12(%ecx)
+ fmuls 12(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 16(%ecx)
+ fmuls 16(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 20(%ecx)
+ fmuls 20(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 24(%ecx)
+ fmuls 24(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 28(%ecx)
+ fmuls 28(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 32(%ecx)
+ fmuls 32(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 36(%ecx)
+ fmuls 36(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 40(%ecx)
+ fmuls 40(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 44(%ecx)
+ fmuls 44(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 48(%ecx)
+ fmuls 48(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 52(%ecx)
+ fmuls 52(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 56(%ecx)
+ fmuls 56(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 60(%ecx)
+ fmuls 60(%ebx)
+ fxch %st(2)
+ subl $4,%esp
+ faddp %st,%st(1)
+ fxch %st(1)
+ fsubrp %st,%st(1)
+ fistpl (%esp)
+ popl %eax
+ cmpl $32767,%eax
+ jg 1f
+ cmpl $-32768,%eax
+ jl 2f
+ movw %ax,(%esi)
+ jmp 4f
+1: movw $32767,(%esi)
+ jmp 3f
+2: movw $-32768,(%esi)
+3: incl %edi
+4:
+.L54:
+ addl $64,%ebx
+ subl $-128,%ecx
+ addl $4,%esi
+ decl %ebp
+ jnz .L55
+ flds (%ecx)
+ fmuls (%ebx)
+ flds 8(%ecx)
+ fmuls 8(%ebx)
+ flds 16(%ecx)
+ fmuls 16(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 24(%ecx)
+ fmuls 24(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 32(%ecx)
+ fmuls 32(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 40(%ecx)
+ fmuls 40(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 48(%ecx)
+ fmuls 48(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 56(%ecx)
+ fmuls 56(%ebx)
+ fxch %st(2)
+ subl $4,%esp
+ faddp %st,%st(1)
+ fxch %st(1)
+ faddp %st,%st(1)
+ fistpl (%esp)
+ popl %eax
+ cmpl $32767,%eax
+ jg 1f
+ cmpl $-32768,%eax
+ jl 2f
+ movw %ax,(%esi)
+ jmp 4f
+1: movw $32767,(%esi)
+ jmp 3f
+2: movw $-32768,(%esi)
+3: incl %edi
+4:
+.L62:
+ addl $-64,%ebx
+ addl $4,%esi
+ movl 16(%esp),%edx
+ leal -128(%ecx,%edx,8),%ecx
+ movl $15,%ebp
+.L68:
+ flds -4(%ecx)
+ fchs
+ fmuls (%ebx)
+ flds -8(%ecx)
+ fmuls 4(%ebx)
+ fxch %st(1)
+ flds -12(%ecx)
+ fmuls 8(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -16(%ecx)
+ fmuls 12(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -20(%ecx)
+ fmuls 16(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -24(%ecx)
+ fmuls 20(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -28(%ecx)
+ fmuls 24(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -32(%ecx)
+ fmuls 28(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -36(%ecx)
+ fmuls 32(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -40(%ecx)
+ fmuls 36(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -44(%ecx)
+ fmuls 40(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -48(%ecx)
+ fmuls 44(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -52(%ecx)
+ fmuls 48(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -56(%ecx)
+ fmuls 52(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -60(%ecx)
+ fmuls 56(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds (%ecx)
+ fmuls 60(%ebx)
+ fxch %st(2)
+ subl $4,%esp
+ fsubrp %st,%st(1)
+ fxch %st(1)
+ fsubrp %st,%st(1)
+ fistpl (%esp)
+ popl %eax
+ cmpl $32767,%eax
+ jg 1f
+ cmpl $-32768,%eax
+ jl 2f
+ movw %ax,(%esi)
+ jmp 4f
+1: movw $32767,(%esi)
+ jmp 3f
+2: movw $-32768,(%esi)
+3: incl %edi
+4:
+.L67:
+ addl $-64,%ebx
+ addl $-128,%ecx
+ addl $4,%esi
+ decl %ebp
+ jnz .L68
+ movl %edi,%eax
+ popl %ebx
+ popl %esi
+ popl %edi
+ popl %ebp
+ addl $12,%esp
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_i586_dither.S b/src/libmpg123/synth_i586_dither.S
new file mode 100644
index 0000000..6c00cdb
--- /dev/null
+++ b/src/libmpg123/synth_i586_dither.S
@@ -0,0 +1,378 @@
+/*
+ decode_i586_dither: asm synth with dither noise
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Stefan Bieschewski as decode_i586.s without dither
+
+ This version uses "circular" 64k dither noise.
+ (Patch by Adrian <adrian.bacon@xs4all.nl>)
+
+ Thomas learned something about assembler and the stack while making this one thread safe (removing static data).
+*/
+
+#include "mangle.h"
+
+.data
+#ifndef __APPLE__
+ .section .rodata
+#endif
+ ALIGN8
+.LC0:
+ .long 0x0,0x40dfffc0
+ ALIGN8
+.LC1:
+ .long 0x0,0xc0e00000
+ ALIGN8
+.text
+/* int synth_1to1_i586_asm_dither(real *bandPtr, int channel, unsigned char *out, unsigned char *buffs, int bo_and_ditherindex[2], real *decwin, real* dithernoise); */
+.globl ASM_NAME(synth_1to1_i586_asm_dither)
+ASM_NAME(synth_1to1_i586_asm_dither):
+ subl $16,%esp
+ pushl %ebp
+ pushl %edi
+ pushl %esi
+ pushl %ebx
+/* stack: 0(%esp)=%ebx 4=esi 8=edi 12=ebp 16,20,24,28=local 32=back 36=bandptr 40=channel 44=out 48=buffs 52=bo 56=decwin 60=dithernoise */
+#define BANDPTR 36(%esp)
+#define CHANNEL 40(%esp)
+#define OUT 44(%esp)
+#define BUFFS 48(%esp)
+#define BO 52(%esp)
+#define DECWIN 56(%esp)
+#define DITHERNOISE 60(%esp)
+/*#define DITHERNOISE $(ASM_NAME(dithernoise))*/
+#define LOC0 16(%esp)
+#define LOC1 20(%esp)
+#define LOC2 24(%esp)
+#define DITHERINDEX 28(%esp)
+/* During application of the dithering, we need the shifted locations because there's an additional value on the stack. */
+#define DITHERNOISE2 64(%esp)
+#define DITHERINDEX2 32(%esp)
+
+ movl BANDPTR,%eax
+ movl OUT,%esi
+ movl BO, %ebx
+ movl (%ebx),%ebp /* get bo value */
+ movl 4(%ebx),%edi; /* get the ditherindex behind bo */
+ movl %edi,DITHERINDEX
+ xorl %edi,%edi
+ cmpl %edi,CHANNEL
+ jne .L48
+ decl %ebp
+ andl $15,%ebp
+ movl %ebp,(%ebx) /* save bo back */
+ movl BUFFS,%ecx
+ jmp .L49
+.L48:
+/* In stereo mode , "rewind" dither pointer 32 samples , so 2nd channel */
+/* has same dither values. Tested OK for mono and stereo MP2 and MP3 */
+ subl $128,DITHERINDEX /* better move to %edi for the two calculations? */
+ andl $0x0003fffc,DITHERINDEX
+ addl $2,%esi
+ movl BUFFS,%ecx
+ addl $2176,%ecx
+.L49:
+/* now the call of dct64 is prepared, stuff pushed to the stack, but soon after it's removed again */
+ testl $1,%ebp
+ je .L50
+ movl %ecx,%ebx
+ movl %ebp,LOC0
+ pushl %eax
+ movl LOC1,%edx
+ leal (%ebx,%edx,4),%eax
+ pushl %eax
+ movl LOC2,%eax
+ incl %eax
+ andl $15,%eax
+ leal 1088(,%eax,4),%eax
+ addl %ebx,%eax
+ jmp .L74
+.L50:
+ leal 1088(%ecx),%ebx
+ leal 1(%ebp),%edx
+ movl %edx,LOC0
+ pushl %eax
+ leal 1092(%ecx,%ebp,4),%eax
+ pushl %eax
+ leal (%ecx,%ebp,4),%eax
+.L74:
+ pushl %eax
+ call ASM_NAME(dct64_i386)
+ addl $12,%esp
+/* Now removed the parameters.
+ stack: 0(%esp)=%ebx 4=esi 8=edi 12=ebp 16,20,24,28=local 32=back 36=bandptr 40=channel 44=out 48=buffs 52=bo 56=decwin 60=dithernoise */
+ movl LOC0,%edx
+ leal 0(,%edx,4),%edx
+ /* movl ASM_VALUE(decwin)+64,%eax */
+ movl DECWIN,%eax
+ addl $64,%eax
+ movl %eax,%ecx
+ subl %edx,%ecx
+ movl $16,%ebp
+.L55:
+ flds (%ecx)
+ fmuls (%ebx)
+ flds 4(%ecx)
+ fmuls 4(%ebx)
+ fxch %st(1)
+ flds 8(%ecx)
+ fmuls 8(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 12(%ecx)
+ fmuls 12(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 16(%ecx)
+ fmuls 16(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 20(%ecx)
+ fmuls 20(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 24(%ecx)
+ fmuls 24(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 28(%ecx)
+ fmuls 28(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 32(%ecx)
+ fmuls 32(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 36(%ecx)
+ fmuls 36(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 40(%ecx)
+ fmuls 40(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 44(%ecx)
+ fmuls 44(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 48(%ecx)
+ fmuls 48(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 52(%ecx)
+ fmuls 52(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 56(%ecx)
+ fmuls 56(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds 60(%ecx)
+ fmuls 60(%ebx)
+ fxch %st(2)
+ subl $4,%esp
+ faddp %st,%st(1)
+ fxch %st(1)
+ fsubrp %st,%st(1)
+
+ addl $4,DITHERINDEX2
+ andl $0x0003fffc,DITHERINDEX2
+ movl DITHERNOISE2,%edi
+ addl DITHERINDEX2,%edi
+
+ fadds (%edi)
+
+/* fistpl and popl as a unit keep the stack unchanged */
+ fistpl (%esp)
+ popl %eax
+ cmpl $32767,%eax
+ jg 1f
+ cmpl $-32768,%eax
+ jl 2f
+ movw %ax,(%esi)
+ jmp 4f
+1: movw $32767,(%esi)
+ jmp 3f
+2: movw $-32768,(%esi)
+3:
+/* incl %edi */
+4:
+.L54:
+ addl $64,%ebx
+ subl $-128,%ecx
+ addl $4,%esi
+ decl %ebp
+ jnz .L55
+ flds (%ecx)
+ fmuls (%ebx)
+ flds 8(%ecx)
+ fmuls 8(%ebx)
+ flds 16(%ecx)
+ fmuls 16(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 24(%ecx)
+ fmuls 24(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 32(%ecx)
+ fmuls 32(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 40(%ecx)
+ fmuls 40(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 48(%ecx)
+ fmuls 48(%ebx)
+ fxch %st(2)
+ faddp %st,%st(1)
+ flds 56(%ecx)
+ fmuls 56(%ebx)
+ fxch %st(2)
+ subl $4,%esp
+ faddp %st,%st(1)
+ fxch %st(1)
+ faddp %st,%st(1)
+
+ addl $4,DITHERINDEX2
+ andl $0x0003fffc,DITHERINDEX2
+ movl DITHERNOISE2,%edi
+ addl DITHERINDEX2,%edi
+
+ fadds (%edi)
+/* fistpl and popl as a unit keep the stack unchanged */
+ fistpl (%esp)
+ popl %eax
+ cmpl $32767,%eax
+ jg 1f
+ cmpl $-32768,%eax
+ jl 2f
+ movw %ax,(%esi)
+ jmp 4f
+1: movw $32767,(%esi)
+ jmp 3f
+2: movw $-32768,(%esi)
+3:
+/* incl %edi */
+4:
+.L62:
+ addl $-64,%ebx
+ addl $4,%esi
+ movl LOC0,%edx
+ leal -128(%ecx,%edx,8),%ecx
+ movl $15,%ebp
+.L68:
+ flds -4(%ecx)
+ fchs
+ fmuls (%ebx)
+ flds -8(%ecx)
+ fmuls 4(%ebx)
+ fxch %st(1)
+ flds -12(%ecx)
+ fmuls 8(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -16(%ecx)
+ fmuls 12(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -20(%ecx)
+ fmuls 16(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -24(%ecx)
+ fmuls 20(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -28(%ecx)
+ fmuls 24(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -32(%ecx)
+ fmuls 28(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -36(%ecx)
+ fmuls 32(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -40(%ecx)
+ fmuls 36(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -44(%ecx)
+ fmuls 40(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -48(%ecx)
+ fmuls 44(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -52(%ecx)
+ fmuls 48(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -56(%ecx)
+ fmuls 52(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds -60(%ecx)
+ fmuls 56(%ebx)
+ fxch %st(2)
+ fsubrp %st,%st(1)
+ flds (%ecx)
+ fmuls 60(%ebx)
+ fxch %st(2)
+ subl $4,%esp
+ fsubrp %st,%st(1)
+ fxch %st(1)
+ fsubrp %st,%st(1)
+
+ addl $4,DITHERINDEX2
+ andl $0x0003fffc,DITHERINDEX2
+ movl DITHERNOISE2,%edi
+ addl DITHERINDEX2,%edi
+
+ fadds (%edi)
+/* fistpl and popl as a unit keep the stack unchanged */
+ fistpl (%esp)
+ popl %eax
+ cmpl $32767,%eax
+ jg 1f
+ cmpl $-32768,%eax
+ jl 2f
+ movw %ax,(%esi)
+ jmp 4f
+1: movw $32767,(%esi)
+ jmp 3f
+2: movw $-32768,(%esi)
+3:
+/* incl %edi */
+4:
+.L67:
+ addl $-64,%ebx
+ addl $-128,%ecx
+ addl $4,%esi
+ decl %ebp
+ jnz .L68
+/* return ipv edi 0 in eax */
+ movl $0,%eax
+/* save ditherindex */
+ movl BO,%ebx
+ movl DITHERINDEX,%esi
+ movl %esi,4(%ebx);
+/* stack: 0=ebx 4=esi 8=edi 12=ebp 16,20,24,28=local 32=back 36=bandptr 40=channel 44=out 48=buffs 52=bo */
+ popl %ebx
+ popl %esi
+ popl %edi
+ popl %ebp
+ addl $16,%esp
+/* The stack must be now: 0=back 4=bandptr 8=channel 12=out 16=buffs 20=bo */
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_mmx.S b/src/libmpg123/synth_mmx.S
new file mode 100644
index 0000000..d812529
--- /dev/null
+++ b/src/libmpg123/synth_mmx.S
@@ -0,0 +1,129 @@
+/*
+ decode_MMX.s: MMX optimized synth
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by the mysterious higway (apparently)
+
+ Thomas' words about a note:
+ Initially, I found the note "this code comes under GPL" in this file.
+ After asking Michael about legal status of the MMX files, he said that he got them without any comment and thus I believe that the GPL comment was made by Michael, since he made mpg123 GPL at some time - and marked some files that way, but not all.
+ Based on that thought, I now consider this file along with the other parts of higway's MMX optimization to be licensed under LGPL 2.1 by Michael's decision.
+*/
+
+#include "mangle.h"
+
+.text
+
+.globl ASM_NAME(synth_1to1_MMX)
+/* int synth_1to1_MMX(real *bandPtr, int channel, short *out, short *buffs, int *bo, float *decwins); */
+ASM_NAME(synth_1to1_MMX):
+ pushl %ebp
+ pushl %edi
+ pushl %esi
+ pushl %ebx
+/* stack: 0=ebx, 4=esi, 8=edi, 12=ebp, 16=back, 20=bandPtr, 24=channel, 28=out, 32=buffs, 36=bo, 40=decwins */
+ movl 24(%esp),%ecx
+ movl 28(%esp),%edi
+ movl $15,%ebx
+ movl 36(%esp),%edx
+ leal (%edi,%ecx,2),%edi
+ decl %ecx
+ movl 32(%esp),%esi
+ movl (%edx),%eax
+ jecxz .L1
+ decl %eax
+ andl %ebx,%eax
+ leal 1088(%esi),%esi
+ movl %eax,(%edx)
+.L1:
+ leal (%esi,%eax,2),%edx
+ movl %eax,%ebp
+ incl %eax
+ pushl 20(%esp)
+ andl %ebx,%eax
+ leal 544(%esi,%eax,2),%ecx
+ incl %ebx
+ testl $1, %eax
+ jnz .L2
+ xchgl %edx,%ecx
+ incl %ebp
+ leal 544(%esi),%esi
+.L2:
+ pushl %edx
+ pushl %ecx
+ call ASM_NAME(dct64_MMX)
+ addl $12,%esp
+/* stack like before, pushed 3, incremented again */
+ leal 1(%ebx), %ecx
+ subl %ebp,%ebx
+ pushl %eax
+ movl 44(%esp),%eax /* decwins */
+ leal (%eax,%ebx,2), %edx
+ popl %eax
+.L3:
+ movq (%edx),%mm0
+ pmaddwd (%esi),%mm0
+ movq 8(%edx),%mm1
+ pmaddwd 8(%esi),%mm1
+ movq 16(%edx),%mm2
+ pmaddwd 16(%esi),%mm2
+ movq 24(%edx),%mm3
+ pmaddwd 24(%esi),%mm3
+ paddd %mm1,%mm0
+ paddd %mm2,%mm0
+ paddd %mm3,%mm0
+ movq %mm0,%mm1
+ psrlq $32,%mm1
+ paddd %mm1,%mm0
+ psrad $13,%mm0
+ packssdw %mm0,%mm0
+ movd %mm0,%eax
+ movw %ax, (%edi)
+
+ leal 32(%esi),%esi
+ leal 64(%edx),%edx
+ leal 4(%edi),%edi
+ loop .L3
+
+
+ subl $64,%esi
+ movl $15,%ecx
+.L4:
+ movq (%edx),%mm0
+ pmaddwd (%esi),%mm0
+ movq 8(%edx),%mm1
+ pmaddwd 8(%esi),%mm1
+ movq 16(%edx),%mm2
+ pmaddwd 16(%esi),%mm2
+ movq 24(%edx),%mm3
+ pmaddwd 24(%esi),%mm3
+ paddd %mm1,%mm0
+ paddd %mm2,%mm0
+ paddd %mm3,%mm0
+ movq %mm0,%mm1
+ psrlq $32,%mm1
+ paddd %mm0,%mm1
+ psrad $13,%mm1
+ packssdw %mm1,%mm1
+ psubd %mm0,%mm0
+ psubsw %mm1,%mm0
+ movd %mm0,%eax
+ movw %ax,(%edi)
+
+ subl $32,%esi
+ addl $64,%edx
+ leal 4(%edi),%edi
+ loop .L4
+ emms
+ popl %ebx
+ popl %esi
+ popl %edi
+ popl %ebp
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
+
diff --git a/src/libmpg123/synth_mono.h b/src/libmpg123/synth_mono.h
new file mode 100644
index 0000000..907aa25
--- /dev/null
+++ b/src/libmpg123/synth_mono.h
@@ -0,0 +1,64 @@
+/*
+ monosynth.h: generic mono related synth functions
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, generalized by Thomas Orgis
+
+ This header is used multiple times to create different variants of these functions.
+ See decode.c and synth.h .
+ Hint: BLOCK, MONO_NAME, MONO2STEREO_NAME, SYNTH_NAME and SAMPLE_T do vary.
+
+ Thomas looked closely at the decode_1to1, decode_2to1 and decode_4to1 contents, seeing that they are too similar to be separate files.
+ This is what resulted...
+
+ Reason to separate this from synth.h:
+ There are decoders that have a special synth_1to1 but still can use these generic derivations for the mono stuff.
+ It generally makes a good deal of sense to set SYNTH_NAME to opt_synth_1to1(fr) (or opt_synth_2to1(fr), etc.).
+*/
+
+/* Mono synth, wrapping over SYNTH_NAME */
+int MONO_NAME(real *bandPtr, mpg123_handle *fr)
+{
+ SAMPLE_T samples_tmp[BLOCK];
+ SAMPLE_T *tmp1 = samples_tmp;
+ int i,ret;
+
+ /* save buffer stuff, trick samples_tmp into there, decode, restore */
+ unsigned char *samples = fr->buffer.data;
+ int pnt = fr->buffer.fill;
+ fr->buffer.data = (unsigned char*) samples_tmp;
+ fr->buffer.fill = 0;
+ ret = SYNTH_NAME(bandPtr, 0, fr, 0); /* decode into samples_tmp */
+ fr->buffer.data = samples; /* restore original value */
+
+ /* now append samples from samples_tmp */
+ samples += pnt; /* just the next mem in frame buffer */
+ for(i=0;i<(BLOCK/2);i++)
+ {
+ *( (SAMPLE_T *)samples) = *tmp1;
+ samples += sizeof(SAMPLE_T);
+ tmp1 += 2;
+ }
+ fr->buffer.fill = pnt + (BLOCK/2)*sizeof(SAMPLE_T);
+
+ return ret;
+}
+
+/* Mono to stereo synth, wrapping over SYNTH_NAME */
+int MONO2STEREO_NAME(real *bandPtr, mpg123_handle *fr)
+{
+ int i,ret;
+ unsigned char *samples = fr->buffer.data;
+
+ ret = SYNTH_NAME(bandPtr,0,fr,1);
+ samples += fr->buffer.fill - BLOCK*sizeof(SAMPLE_T);
+
+ for(i=0;i<(BLOCK/2);i++)
+ {
+ ((SAMPLE_T *)samples)[1] = ((SAMPLE_T *)samples)[0];
+ samples+=2*sizeof(SAMPLE_T);
+ }
+
+ return ret;
+}
diff --git a/src/libmpg123/synth_ntom.h b/src/libmpg123/synth_ntom.h
new file mode 100644
index 0000000..9fc2524
--- /dev/null
+++ b/src/libmpg123/synth_ntom.h
@@ -0,0 +1,213 @@
+/*
+ synth_ntom.h: ntom-resampling synth functions
+
+ This header is used multiple times to create different variants of this function.
+ Hint: MONO_NAME, MONO2STEREO_NAME, SYNTH_NAME and SAMPLE_T as well as WRITE_SAMPLE do vary.
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, generalized by Thomas Orgis
+
+ Well, this is very simple resampling... you may or may not like what you hear.
+ But it's cheap.
+ But still, we don't implement a non-autoincrement version of this one.
+*/
+
+/* Note: These mono functions would also work generically,
+ it's just that they need a runtime calculation for the conversion loop...
+ The fixed XtoY functions have the chance for loop unrolling... */
+
+int MONO_NAME(real *bandPtr, mpg123_handle *fr)
+{
+ SAMPLE_T samples_tmp[8*64];
+ SAMPLE_T *tmp1 = samples_tmp;
+ size_t i;
+ int ret;
+
+ size_t pnt = fr->buffer.fill;
+ unsigned char *samples = fr->buffer.data;
+ fr->buffer.data = (unsigned char*) samples_tmp;
+ fr->buffer.fill = 0;
+ ret = SYNTH_NAME(bandPtr, 0, fr, 1);
+ fr->buffer.data = samples;
+
+ samples += pnt;
+ for(i=0;i<(fr->buffer.fill/(2*sizeof(SAMPLE_T)));i++)
+ {
+ *( (SAMPLE_T *)samples) = *tmp1;
+ samples += sizeof(SAMPLE_T);
+ tmp1 += 2;
+ }
+ fr->buffer.fill = pnt + (fr->buffer.fill/2);
+
+ return ret;
+}
+
+
+int MONO2STEREO_NAME(real *bandPtr, mpg123_handle *fr)
+{
+ size_t i;
+ int ret;
+ size_t pnt1 = fr->buffer.fill;
+ unsigned char *samples = fr->buffer.data + pnt1;
+
+ ret = SYNTH_NAME(bandPtr, 0, fr, 1);
+
+ for(i=0;i<((fr->buffer.fill-pnt1)/(2*sizeof(SAMPLE_T)));i++)
+ {
+ ((SAMPLE_T *)samples)[1] = ((SAMPLE_T *)samples)[0];
+ samples+=2*sizeof(SAMPLE_T);
+ }
+
+ return ret;
+}
+
+
+int SYNTH_NAME(real *bandPtr,int channel, mpg123_handle *fr, int final)
+{
+ static const int step = 2;
+ SAMPLE_T *samples = (SAMPLE_T *) (fr->buffer.data + fr->buffer.fill);
+
+ real *b0, **buf; /* (*buf)[0x110]; */
+ int clip = 0;
+ int bo1;
+ int ntom;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ ntom = fr->ntom_val[1] = fr->ntom_val[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ ntom = fr->ntom_val[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+ {
+ register int j;
+ real *window = fr->decwin + 16 - bo1;
+
+ for (j=16;j;j--,window+=0x10)
+ {
+ real sum;
+
+ ntom += fr->ntom_step;
+ if(ntom < NTOM_MUL)
+ {
+ window += 16;
+ b0 += 16;
+ continue;
+ }
+
+ sum = REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+ sum += REAL_MUL(*window++, *b0++);
+ sum -= REAL_MUL(*window++, *b0++);
+
+ while(ntom >= NTOM_MUL)
+ {
+ WRITE_SAMPLE(samples,sum,clip);
+ samples += step;
+ ntom -= NTOM_MUL;
+ }
+ }
+
+ ntom += fr->ntom_step;
+ if(ntom >= NTOM_MUL)
+ {
+ real sum;
+ sum = REAL_MUL(window[0x0], b0[0x0]);
+ sum += REAL_MUL(window[0x2], b0[0x2]);
+ sum += REAL_MUL(window[0x4], b0[0x4]);
+ sum += REAL_MUL(window[0x6], b0[0x6]);
+ sum += REAL_MUL(window[0x8], b0[0x8]);
+ sum += REAL_MUL(window[0xA], b0[0xA]);
+ sum += REAL_MUL(window[0xC], b0[0xC]);
+ sum += REAL_MUL(window[0xE], b0[0xE]);
+
+ while(ntom >= NTOM_MUL)
+ {
+ WRITE_SAMPLE(samples,sum,clip);
+ samples += step;
+ ntom -= NTOM_MUL;
+ }
+ }
+
+ b0-=0x10,window-=0x20;
+ window += bo1<<1;
+
+ for (j=15;j;j--,b0-=0x20,window-=0x10)
+ {
+ real sum;
+
+ ntom += fr->ntom_step;
+ if(ntom < NTOM_MUL)
+ {
+ window -= 16;
+ b0 += 16;
+ continue;
+ }
+
+ sum = REAL_MUL(-*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+ sum -= REAL_MUL(*(--window), *b0++);
+
+ while(ntom >= NTOM_MUL)
+ {
+ WRITE_SAMPLE(samples,sum,clip);
+ samples += step;
+ ntom -= NTOM_MUL;
+ }
+ }
+ }
+
+ fr->ntom_val[channel] = ntom;
+ if(final) fr->buffer.fill = ((unsigned char *) samples - fr->buffer.data - (channel ? sizeof(SAMPLE_T) : 0));
+
+ return clip;
+}
+
diff --git a/src/libmpg123/synth_real.c b/src/libmpg123/synth_real.c
new file mode 100644
index 0000000..17d0329
--- /dev/null
+++ b/src/libmpg123/synth_real.c
@@ -0,0 +1,315 @@
+/*
+ synth_real.c: The functions for synthesizing real (float) samples, at the end of decoding.
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, heavily dissected and rearranged by Thomas Orgis
+*/
+
+#include "mpg123lib_intern.h"
+#include "sample.h"
+#include "debug.h"
+
+#ifdef REAL_IS_FIXED
+#error "Do not build this file with fixed point math!"
+#else
+/*
+ Part 3: All synth functions that produce float output.
+ What we need is just a special WRITE_SAMPLE. For the generic and i386 functions, that is.
+ The optimized synths would need to be changed internally to support float output.
+*/
+
+#define SAMPLE_T real
+#define WRITE_SAMPLE(samples,sum,clip) WRITE_REAL_SAMPLE(samples,sum,clip)
+
+/* Part 3a: All straight 1to1 decoding functions */
+#define BLOCK 0x40 /* One decoding block is 64 samples. */
+
+#define SYNTH_NAME synth_1to1_real
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_1to1_real (could be generic, could be i386). */
+#define SYNTH_NAME fr->synths.plain[r_1to1][f_real]
+#define MONO_NAME synth_1to1_real_mono
+#define MONO2STEREO_NAME synth_1to1_real_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_1to1_real_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK
+
+/* At least one optimized real decoder... */
+#ifdef OPT_X86_64
+/* Assembler routines. */
+int synth_1to1_real_x86_64_asm(real *window, real *b0, real *samples, int bo1);
+int synth_1to1_real_stereo_x86_64_asm(real *window, real *b0l, real *b0r, real *samples, int bo1);
+void dct64_real_x86_64(real *out0, real *out1, real *samples);
+/* Hull for C mpg123 API */
+int synth_1to1_real_x86_64(real *bandPtr,int channel, mpg123_handle *fr, int final)
+{
+ real *samples = (real *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0, **buf;
+ int bo1;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_real_x86_64(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_real_x86_64(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+ synth_1to1_real_x86_64_asm(fr->decwin, b0, samples, bo1);
+
+ if(final) fr->buffer.fill += 256;
+
+ return 0;
+}
+
+int synth_1to1_real_stereo_x86_64(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ real *samples = (real *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0l, *b0r, **bufl, **bufr;
+ int bo1;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->real_buffs[0];
+ bufr = fr->real_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_real_x86_64(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_real_x86_64(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_real_x86_64(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_real_x86_64(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+ synth_1to1_real_stereo_x86_64_asm(fr->decwin, b0l, b0r, samples, bo1);
+
+ fr->buffer.fill += 256;
+
+ return 0;
+}
+#endif
+
+#ifdef OPT_SSE
+/* Assembler routines. */
+int synth_1to1_real_sse_asm(real *window, real *b0, real *samples, int bo1);
+int synth_1to1_real_stereo_sse_asm(real *window, real *b0l, real *b0r, real *samples, int bo1);
+void dct64_real_sse(real *out0, real *out1, real *samples);
+/* Hull for C mpg123 API */
+int synth_1to1_real_sse(real *bandPtr,int channel, mpg123_handle *fr, int final)
+{
+ real *samples = (real *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0, **buf;
+ int bo1;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_real_sse(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_real_sse(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+ synth_1to1_real_sse_asm(fr->decwin, b0, samples, bo1);
+
+ if(final) fr->buffer.fill += 256;
+
+ return 0;
+}
+
+int synth_1to1_real_stereo_sse(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ real *samples = (real *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0l, *b0r, **bufl, **bufr;
+ int bo1;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->real_buffs[0];
+ bufr = fr->real_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_real_sse(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_real_sse(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_real_sse(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_real_sse(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+ synth_1to1_real_stereo_sse_asm(fr->decwin, b0l, b0r, samples, bo1);
+
+ fr->buffer.fill += 256;
+
+ return 0;
+}
+#endif
+
+#ifndef NO_DOWNSAMPLE
+
+/*
+ Part 3b: 2to1 synth. Only generic and i386.
+*/
+#define BLOCK 0x20 /* One decoding block is 32 samples. */
+
+#define SYNTH_NAME synth_2to1_real
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_2to1_real (could be generic, could be i386). */
+#define SYNTH_NAME fr->synths.plain[r_2to1][f_real]
+#define MONO_NAME synth_2to1_real_mono
+#define MONO2STEREO_NAME synth_2to1_real_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_2to1_real_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK
+
+/*
+ Part 3c: 4to1 synth. Only generic and i386.
+*/
+#define BLOCK 0x10 /* One decoding block is 16 samples. */
+
+#define SYNTH_NAME synth_4to1_real
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_4to1_real (could be generic, could be i386). */
+#define SYNTH_NAME fr->synths.plain[r_4to1][f_real]
+#define MONO_NAME synth_4to1_real_mono
+#define MONO2STEREO_NAME synth_4to1_real_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_4to1_real_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK
+
+#endif /* NO_DOWNSAMPLE */
+
+#ifndef NO_NTOM
+/*
+ Part 3d: ntom synth.
+ Same procedure as above... Just no extra play anymore, straight synth that may use an optimized dct64.
+*/
+
+/* These are all in one header, there's no flexibility to gain. */
+#define SYNTH_NAME synth_ntom_real
+#define MONO_NAME synth_ntom_real_mono
+#define MONO2STEREO_NAME synth_ntom_real_mono2stereo
+#include "synth_ntom.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#endif
+
+#undef SAMPLE_T
+#undef WRITE_SAMPLE
+
+#endif /* non-fixed type */
diff --git a/src/libmpg123/synth_s32.c b/src/libmpg123/synth_s32.c
new file mode 100644
index 0000000..f31fdb8
--- /dev/null
+++ b/src/libmpg123/synth_s32.c
@@ -0,0 +1,319 @@
+/*
+ synth_s32.c: The functions for synthesizing real (float) samples, at the end of decoding.
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, heavily dissected and rearranged by Thomas Orgis
+*/
+
+#include "mpg123lib_intern.h"
+#include "sample.h"
+#include "debug.h"
+
+#ifdef REAL_IS_FIXED
+#error "Do not build this file with fixed point math!"
+#else
+/*
+ Part 4: All synth functions that produce signed 32 bit output.
+ What we need is just a special WRITE_SAMPLE.
+*/
+
+#define SAMPLE_T int32_t
+#define WRITE_SAMPLE(samples,sum,clip) WRITE_S32_SAMPLE(samples,sum,clip)
+
+/* Part 4a: All straight 1to1 decoding functions */
+#define BLOCK 0x40 /* One decoding block is 64 samples. */
+
+#define SYNTH_NAME synth_1to1_s32
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_1to1_s32 (could be generic, could be i386). */
+#define SYNTH_NAME fr->synths.plain[r_1to1][f_32]
+#define MONO_NAME synth_1to1_s32_mono
+#define MONO2STEREO_NAME synth_1to1_s32_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_1to1_s32_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#ifdef OPT_X86_64
+/* Assembler routines. */
+int synth_1to1_s32_x86_64_asm(real *window, real *b0, int32_t *samples, int bo1);
+int synth_1to1_s32_stereo_x86_64_asm(real *window, real *b0l, real *b0r, int32_t *samples, int bo1);
+void dct64_real_x86_64(real *out0, real *out1, real *samples);
+/* Hull for C mpg123 API */
+int synth_1to1_s32_x86_64(real *bandPtr,int channel, mpg123_handle *fr, int final)
+{
+ int32_t *samples = (int32_t *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0, **buf;
+ int bo1;
+ int clip;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_real_x86_64(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_real_x86_64(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+ clip = synth_1to1_s32_x86_64_asm(fr->decwin, b0, samples, bo1);
+
+ if(final) fr->buffer.fill += 256;
+
+ return clip;
+}
+
+
+int synth_1to1_s32_stereo_x86_64(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ int32_t *samples = (int32_t *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0l, *b0r, **bufl, **bufr;
+ int bo1;
+ int clip;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->real_buffs[0];
+ bufr = fr->real_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_real_x86_64(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_real_x86_64(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_real_x86_64(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_real_x86_64(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+ clip = synth_1to1_s32_stereo_x86_64_asm(fr->decwin, b0l, b0r, samples, bo1);
+
+ fr->buffer.fill += 256;
+
+ return clip;
+}
+#endif
+
+#ifdef OPT_SSE
+/* Assembler routines. */
+int synth_1to1_s32_sse_asm(real *window, real *b0, int32_t *samples, int bo1);
+int synth_1to1_s32_stereo_sse_asm(real *window, real *b0l, real *b0r, int32_t *samples, int bo1);
+void dct64_real_sse(real *out0, real *out1, real *samples);
+/* Hull for C mpg123 API */
+int synth_1to1_s32_sse(real *bandPtr,int channel, mpg123_handle *fr, int final)
+{
+ int32_t *samples = (int32_t *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0, **buf;
+ int bo1;
+ int clip;
+
+ if(fr->have_eq_settings) do_equalizer(bandPtr,channel,fr->equalizer);
+
+ if(!channel)
+ {
+ fr->bo--;
+ fr->bo &= 0xf;
+ buf = fr->real_buffs[0];
+ }
+ else
+ {
+ samples++;
+ buf = fr->real_buffs[1];
+ }
+
+ if(fr->bo & 0x1)
+ {
+ b0 = buf[0];
+ bo1 = fr->bo;
+ dct64_real_sse(buf[1]+((fr->bo+1)&0xf),buf[0]+fr->bo,bandPtr);
+ }
+ else
+ {
+ b0 = buf[1];
+ bo1 = fr->bo+1;
+ dct64_real_sse(buf[0]+fr->bo,buf[1]+fr->bo+1,bandPtr);
+ }
+
+ clip = synth_1to1_s32_sse_asm(fr->decwin, b0, samples, bo1);
+
+ if(final) fr->buffer.fill += 256;
+
+ return clip;
+}
+
+
+int synth_1to1_s32_stereo_sse(real *bandPtr_l, real *bandPtr_r, mpg123_handle *fr)
+{
+ int32_t *samples = (int32_t *) (fr->buffer.data+fr->buffer.fill);
+
+ real *b0l, *b0r, **bufl, **bufr;
+ int bo1;
+ int clip;
+
+ if(fr->have_eq_settings)
+ {
+ do_equalizer(bandPtr_l,0,fr->equalizer);
+ do_equalizer(bandPtr_r,1,fr->equalizer);
+ }
+
+ fr->bo--;
+ fr->bo &= 0xf;
+ bufl = fr->real_buffs[0];
+ bufr = fr->real_buffs[1];
+
+ if(fr->bo & 0x1)
+ {
+ b0l = bufl[0];
+ b0r = bufr[0];
+ bo1 = fr->bo;
+ dct64_real_sse(bufl[1]+((fr->bo+1)&0xf),bufl[0]+fr->bo,bandPtr_l);
+ dct64_real_sse(bufr[1]+((fr->bo+1)&0xf),bufr[0]+fr->bo,bandPtr_r);
+ }
+ else
+ {
+ b0l = bufl[1];
+ b0r = bufr[1];
+ bo1 = fr->bo+1;
+ dct64_real_sse(bufl[0]+fr->bo,bufl[1]+fr->bo+1,bandPtr_l);
+ dct64_real_sse(bufr[0]+fr->bo,bufr[1]+fr->bo+1,bandPtr_r);
+ }
+
+ clip = synth_1to1_s32_stereo_sse_asm(fr->decwin, b0l, b0r, samples, bo1);
+
+ fr->buffer.fill += 256;
+
+ return clip;
+}
+#endif
+
+#undef BLOCK
+
+#ifndef NO_DOWNSAMPLE
+
+/*
+ Part 4b: 2to1 synth. Only generic and i386.
+*/
+#define BLOCK 0x20 /* One decoding block is 32 samples. */
+
+#define SYNTH_NAME synth_2to1_s32
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_2to1_s32 (could be generic, could be i386). */
+#define SYNTH_NAME fr->synths.plain[r_2to1][f_32]
+#define MONO_NAME synth_2to1_s32_mono
+#define MONO2STEREO_NAME synth_2to1_s32_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_2to1_s32_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK
+
+/*
+ Part 4c: 4to1 synth. Only generic and i386.
+*/
+#define BLOCK 0x10 /* One decoding block is 16 samples. */
+
+#define SYNTH_NAME synth_4to1_s32
+#include "synth.h"
+#undef SYNTH_NAME
+
+/* Mono-related synths; they wrap over _some_ synth_4to1_s32 (could be generic, could be i386). */
+#define SYNTH_NAME fr->synths.plain[r_4to1][f_32]
+#define MONO_NAME synth_4to1_s32_mono
+#define MONO2STEREO_NAME synth_4to1_s32_mono2stereo
+#include "synth_mono.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#ifdef OPT_X86
+#define NO_AUTOINCREMENT
+#define SYNTH_NAME synth_4to1_s32_i386
+#include "synth.h"
+#undef SYNTH_NAME
+/* i386 uses the normal mono functions. */
+#undef NO_AUTOINCREMENT
+#endif
+
+#undef BLOCK
+
+#endif /* NO_DOWNSAMPLE */
+
+#ifndef NO_NTOM
+/*
+ Part 4d: ntom synth.
+ Same procedure as above... Just no extra play anymore, straight synth that may use an optimized dct64.
+*/
+
+/* These are all in one header, there's no flexibility to gain. */
+#define SYNTH_NAME synth_ntom_s32
+#define MONO_NAME synth_ntom_s32_mono
+#define MONO2STEREO_NAME synth_ntom_s32_mono2stereo
+#include "synth_ntom.h"
+#undef SYNTH_NAME
+#undef MONO_NAME
+#undef MONO2STEREO_NAME
+
+#endif
+
+#undef SAMPLE_T
+#undef WRITE_SAMPLE
+
+#endif /* non-fixed type */
diff --git a/src/libmpg123/synth_sse.S b/src/libmpg123/synth_sse.S
new file mode 100644
index 0000000..c5fc10e
--- /dev/null
+++ b/src/libmpg123/synth_sse.S
@@ -0,0 +1,9 @@
+#include "mangle.h"
+#define MPL_DCT64 ASM_NAME(dct64_sse)
+#define SYNTH_NAME ASM_NAME(synth_1to1_sse_asm)
+#include "synth_sse3d.h"
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_sse3d.h b/src/libmpg123/synth_sse3d.h
new file mode 100644
index 0000000..6dd1f41
--- /dev/null
+++ b/src/libmpg123/synth_sse3d.h
@@ -0,0 +1,246 @@
+/*
+ decode_sse3d: Synth for SSE and extended 3DNow (yeah, the name is a relic)
+
+ copyright 2006-2007 by Zuxy Meng/the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by the mysterious higway for MMX (apparently)
+ then developed into SSE opt by Zuxy Meng, also building on Romain Dolbeau's AltiVec
+ Both have agreed to distribution under LGPL 2.1 .
+
+ Transformed back into standalone asm, with help of
+ gcc -S -DHAVE_CONFIG_H -I. -march=pentium -O3 -Wall -pedantic -fno-strict-aliasing -DREAL_IS_FLOAT -c -o decode_mmxsse.{S,c}
+
+ The difference between SSE and 3DNowExt is the dct64 function and the synth function name.
+ This template here uses the SYNTH_NAME and MPL_DCT64 macros for this - see decode_sse.S and decode_3dnowext.S...
+ That's not memory efficient since there's doubled code, but it's easier than giving another function pointer.
+ Maybe I'll change it in future, but now I need something that works.
+
+ Original comment from MPlayer source follows:
+*/
+
+/*
+ * this code comes under GPL
+ * This code was taken from http://www.mpg123.org
+ * See ChangeLog of mpg123-0.59s-pre.1 for detail
+ * Applied to mplayer by Nick Kurshev <nickols_k@mail.ru>
+ *
+ * Local ChangeLog:
+ * - Partial loops unrolling and removing MOVW insn from loops
+*/
+
+#include "mangle.h"
+
+ .data
+ ALIGN8
+one_null:
+ .long -65536
+ .long -65536
+ ALIGN8
+null_one:
+ .long 65535
+ .long 65535
+
+ .text
+ ALIGN16,,15
+ /* void SYNTH_NAME(real *bandPtr, int channel, short *samples, short *buffs, int *bo, float *decwins) */
+.globl SYNTH_NAME
+SYNTH_NAME:
+ pushl %ebp
+/* stack:0=ebp 4=back 8=bandptr 12=channel 16=samples 20=buffs 24=bo 28=decwins */
+ movl %esp, %ebp
+/* Now the old stack addresses are preserved via %epb. */
+ subl $4,%esp /* What has been called temp before. */
+ pushl %edi
+ pushl %esi
+ pushl %ebx
+#define TEMP 12(%esp)
+/* APP */
+ movl 12(%ebp),%ecx
+ movl 16(%ebp),%edi
+ movl $15,%ebx
+ movl 24(%ebp),%edx
+ leal (%edi,%ecx,2),%edi
+ decl %ecx
+ movl 20(%ebp),%esi
+ movl (%edx),%eax
+ jecxz .L01
+ decl %eax
+ andl %ebx,%eax
+ leal 1088(%esi),%esi
+ movl %eax,(%edx)
+ .L01:
+ leal (%esi,%eax,2),%edx
+ movl %eax,TEMP
+ incl %eax
+ andl %ebx,%eax
+ leal 544(%esi,%eax,2),%ecx
+ incl %ebx
+ testl $1, %eax
+ jnz .L02
+ xchgl %edx,%ecx
+ incl TEMP
+ leal 544(%esi),%esi
+ .L02:
+ pushl 8(%ebp)
+ pushl %edx
+ pushl %ecx
+ call MPL_DCT64
+ addl $12, %esp
+ leal 1(%ebx), %ecx
+ subl TEMP,%ebx
+ pushl %ecx
+ /* leal ASM_NAME(decwins)(%ebx,%ebx,1), %edx */
+ movl 28(%ebp),%ecx
+ leal (%ecx,%ebx,2), %edx
+ movl (%esp),%ecx /* restore, but leave value on stack */
+ shrl $1, %ecx
+ ALIGN16
+ .L03:
+ movq (%edx),%mm0
+ movq 64(%edx),%mm4
+ pmaddwd (%esi),%mm0
+ pmaddwd 32(%esi),%mm4
+ movq 8(%edx),%mm1
+ movq 72(%edx),%mm5
+ pmaddwd 8(%esi),%mm1
+ pmaddwd 40(%esi),%mm5
+ movq 16(%edx),%mm2
+ movq 80(%edx),%mm6
+ pmaddwd 16(%esi),%mm2
+ pmaddwd 48(%esi),%mm6
+ movq 24(%edx),%mm3
+ movq 88(%edx),%mm7
+ pmaddwd 24(%esi),%mm3
+ pmaddwd 56(%esi),%mm7
+ paddd %mm1,%mm0
+ paddd %mm5,%mm4
+ paddd %mm2,%mm0
+ paddd %mm6,%mm4
+ paddd %mm3,%mm0
+ paddd %mm7,%mm4
+ movq %mm0,%mm1
+ movq %mm4,%mm5
+ psrlq $32,%mm1
+ psrlq $32,%mm5
+ paddd %mm1,%mm0
+ paddd %mm5,%mm4
+ psrad $13,%mm0
+ psrad $13,%mm4
+ packssdw %mm0,%mm0
+ packssdw %mm4,%mm4
+ movq (%edi), %mm1
+ punpckldq %mm4, %mm0
+ pand one_null, %mm1
+ pand null_one, %mm0
+ por %mm0, %mm1
+ movq %mm1,(%edi)
+ leal 64(%esi),%esi
+ leal 128(%edx),%edx
+ leal 8(%edi),%edi
+ decl %ecx
+ jnz .L03
+ popl %ecx
+ andl $1, %ecx
+ jecxz .next_loop
+ movq (%edx),%mm0
+ pmaddwd (%esi),%mm0
+ movq 8(%edx),%mm1
+ pmaddwd 8(%esi),%mm1
+ movq 16(%edx),%mm2
+ pmaddwd 16(%esi),%mm2
+ movq 24(%edx),%mm3
+ pmaddwd 24(%esi),%mm3
+ paddd %mm1,%mm0
+ paddd %mm2,%mm0
+ paddd %mm3,%mm0
+ movq %mm0,%mm1
+ psrlq $32,%mm1
+ paddd %mm1,%mm0
+ psrad $13,%mm0
+ packssdw %mm0,%mm0
+ movd %mm0,%eax
+ movw %ax, (%edi)
+ leal 32(%esi),%esi
+ leal 64(%edx),%edx
+ leal 4(%edi),%edi
+ .next_loop:
+ subl $64,%esi
+ movl $7,%ecx
+ ALIGN16
+ .L04:
+ movq (%edx),%mm0
+ movq 64(%edx),%mm4
+ pmaddwd (%esi),%mm0
+ pmaddwd -32(%esi),%mm4
+ movq 8(%edx),%mm1
+ movq 72(%edx),%mm5
+ pmaddwd 8(%esi),%mm1
+ pmaddwd -24(%esi),%mm5
+ movq 16(%edx),%mm2
+ movq 80(%edx),%mm6
+ pmaddwd 16(%esi),%mm2
+ pmaddwd -16(%esi),%mm6
+ movq 24(%edx),%mm3
+ movq 88(%edx),%mm7
+ pmaddwd 24(%esi),%mm3
+ pmaddwd -8(%esi),%mm7
+ paddd %mm1,%mm0
+ paddd %mm5,%mm4
+ paddd %mm2,%mm0
+ paddd %mm6,%mm4
+ paddd %mm3,%mm0
+ paddd %mm7,%mm4
+ movq %mm0,%mm1
+ movq %mm4,%mm5
+ psrlq $32,%mm1
+ psrlq $32,%mm5
+ paddd %mm0,%mm1
+ paddd %mm4,%mm5
+ psrad $13,%mm1
+ psrad $13,%mm5
+ packssdw %mm1,%mm1
+ packssdw %mm5,%mm5
+ psubd %mm0,%mm0
+ psubd %mm4,%mm4
+ psubsw %mm1,%mm0
+ psubsw %mm5,%mm4
+ movq (%edi), %mm1
+ punpckldq %mm4, %mm0
+ pand one_null, %mm1
+ pand null_one, %mm0
+ por %mm0, %mm1
+ movq %mm1,(%edi)
+ subl $64,%esi
+ addl $128,%edx
+ leal 8(%edi),%edi
+ decl %ecx
+ jnz .L04
+ movq (%edx),%mm0
+ pmaddwd (%esi),%mm0
+ movq 8(%edx),%mm1
+ pmaddwd 8(%esi),%mm1
+ movq 16(%edx),%mm2
+ pmaddwd 16(%esi),%mm2
+ movq 24(%edx),%mm3
+ pmaddwd 24(%esi),%mm3
+ paddd %mm1,%mm0
+ paddd %mm2,%mm0
+ paddd %mm3,%mm0
+ movq %mm0,%mm1
+ psrlq $32,%mm1
+ paddd %mm0,%mm1
+ psrad $13,%mm1
+ packssdw %mm1,%mm1
+ psubd %mm0,%mm0
+ psubsw %mm1,%mm0
+ movd %mm0,%eax
+ movw %ax,(%edi)
+ emms
+
+/* NO_APP */
+ popl %ebx
+ popl %esi
+ popl %edi
+ addl $4,%esp
+ popl %ebp
+ ret
diff --git a/src/libmpg123/synth_sse_accurate.S b/src/libmpg123/synth_sse_accurate.S
new file mode 100644
index 0000000..a49aea3
--- /dev/null
+++ b/src/libmpg123/synth_sse_accurate.S
@@ -0,0 +1,297 @@
+/*
+ synth_sse_accurate: SSE optimized synth (MPEG-compliant 16bit output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+/* real *window; */
+#define WINDOW %ebx
+/* real *b0; */
+#define B0 %edx
+/* real *samples; */
+#define SAMPLES %esi
+
+#define MMREG_CLIP %mm7
+
+/*
+ int synth_1to1_sse_accurate_asm(real *window, real *b0, short *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(maxmin_s16):
+ .long 1191181824 /* 32767.0 */
+ .long 1191181824
+ .long 1191181824
+ .long 1191181824
+ .long -956301312 /* -32768.0 */
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_sse_accurate_asm)
+ASM_NAME(synth_1to1_sse_accurate_asm):
+ pushl %ebp
+ movl %esp, %ebp
+ pushl %ebx
+ pushl %esi
+
+ pxor MMREG_CLIP, MMREG_CLIP
+
+ movl 8(%ebp), WINDOW
+ movl 12(%ebp), B0
+ movl 16(%ebp), SAMPLES
+ movl 20(%ebp), %eax
+ shll $2, %eax
+
+ leal 64(WINDOW), WINDOW
+ subl %eax, WINDOW
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm4
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ mulps 0(B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps 64(B0), %xmm4
+ mulps 80(B0), %xmm5
+ mulps 96(B0), %xmm6
+ mulps 112(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm4, %xmm5
+ movaps %xmm0, %xmm4
+
+ leal 256(WINDOW), WINDOW
+ leal 128(B0), B0
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm6
+ movups 144(WINDOW), %xmm7
+ mulps (B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps 64(B0), %xmm6
+ mulps 80(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm7, %xmm6
+ movups 160(WINDOW), %xmm1
+ movups 176(WINDOW), %xmm3
+ mulps 96(B0), %xmm1
+ mulps 112(B0), %xmm3
+ addps %xmm2, %xmm0
+ addps %xmm3, %xmm1
+ addps %xmm1, %xmm6
+ movaps %xmm6, %xmm7
+ movaps %xmm0, %xmm6
+
+ leal 256(WINDOW), WINDOW
+ leal 128(B0), B0
+
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm6, %xmm4
+ subps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ pshufw $0xdd, (SAMPLES), %mm2
+ pshufw $0xdd, 8(SAMPLES), %mm3
+ cmpnleps ASM_NAME(maxmin_s16), %xmm1
+ cmpltps ASM_NAME(maxmin_s16)+16, %xmm2
+ cvtps2pi %xmm0, %mm0
+ movhlps %xmm0, %xmm0
+ cvtps2pi %xmm0, %mm1
+ packssdw %mm1, %mm0
+ movq %mm0, %mm1
+ punpcklwd %mm2, %mm0
+ punpckhwd %mm3, %mm1
+ movq %mm0, (SAMPLES)
+ movq %mm1, 8(SAMPLES)
+
+ cvtps2pi %xmm1, %mm0
+ cvtps2pi %xmm2, %mm1
+ movhlps %xmm1, %xmm1
+ movhlps %xmm2, %xmm2
+ cvtps2pi %xmm1, %mm2
+ cvtps2pi %xmm2, %mm3
+ packssdw %mm2, %mm0
+ packssdw %mm3, %mm1
+ psrlw $15, %mm0
+ psrlw $15, %mm1
+ paddw %mm1, %mm0
+ paddw %mm0, MMREG_CLIP
+
+ leal 16(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm4
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ mulps 0(B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps -64(B0), %xmm4
+ mulps -48(B0), %xmm5
+ mulps -32(B0), %xmm6
+ mulps -16(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm4, %xmm5
+ movaps %xmm0, %xmm4
+
+ leal 256(WINDOW), WINDOW
+ leal -128(B0), B0
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm6
+ movups 144(WINDOW), %xmm7
+ mulps (B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps -64(B0), %xmm6
+ mulps -48(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm7, %xmm6
+ movups 160(WINDOW), %xmm1
+ movups 176(WINDOW), %xmm3
+ mulps -32(B0), %xmm1
+ mulps -16(B0), %xmm3
+ addps %xmm2, %xmm0
+ addps %xmm3, %xmm1
+ addps %xmm1, %xmm6
+ movaps %xmm6, %xmm7
+ movaps %xmm0, %xmm6
+
+ leal 256(WINDOW), WINDOW
+ leal -128(B0), B0
+
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm6, %xmm4
+ addps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ pshufw $0xdd, (SAMPLES), %mm2
+ pshufw $0xdd, 8(SAMPLES), %mm3
+ cmpnleps ASM_NAME(maxmin_s16), %xmm1
+ cmpltps ASM_NAME(maxmin_s16)+16, %xmm2
+ cvtps2pi %xmm0, %mm0
+ movhlps %xmm0, %xmm0
+ cvtps2pi %xmm0, %mm1
+ packssdw %mm1, %mm0
+ movq %mm0, %mm1
+ punpcklwd %mm2, %mm0
+ punpckhwd %mm3, %mm1
+ movq %mm0, (SAMPLES)
+ movq %mm1, 8(SAMPLES)
+
+ cvtps2pi %xmm1, %mm0
+ cvtps2pi %xmm2, %mm1
+ movhlps %xmm1, %xmm1
+ movhlps %xmm2, %xmm2
+ cvtps2pi %xmm1, %mm2
+ cvtps2pi %xmm2, %mm3
+ packssdw %mm2, %mm0
+ packssdw %mm3, %mm1
+ psrlw $15, %mm0
+ psrlw $15, %mm1
+ paddw %mm1, %mm0
+ paddw %mm0, MMREG_CLIP
+
+ leal 16(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_2
+
+ pshufw $0xee, MMREG_CLIP, %mm0
+ paddw MMREG_CLIP, %mm0
+ pshufw $0x55, %mm0, %mm1
+ paddw %mm1, %mm0
+ movd %mm0, %eax
+ andl $0xffff, %eax
+
+ popl %esi
+ popl %ebx
+ movl %ebp, %esp
+ popl %ebp
+
+ emms
+
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_sse_float.S b/src/libmpg123/synth_sse_float.S
new file mode 100644
index 0000000..710afef
--- /dev/null
+++ b/src/libmpg123/synth_sse_float.S
@@ -0,0 +1,244 @@
+/*
+ synth_sse_float: SSE optimized synth (float output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+/* real *window; */
+#define WINDOW %ebx
+/* real *b0; */
+#define B0 %edx
+/* real *samples; */
+#define SAMPLES %esi
+
+/*
+ int synth_1to1_real_sse_asm(real *window, real *b0, real *samples, int bo1);
+ return value: number of clipped samples (0)
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(scale_sse):
+ .long 939524096
+ .long 939524096
+ .long 939524096
+ .long 939524096
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_real_sse_asm)
+ASM_NAME(synth_1to1_real_sse_asm):
+ pushl %ebp
+ movl %esp, %ebp
+ pushl %ebx
+ pushl %esi
+
+ movl 8(%ebp), WINDOW
+ movl 12(%ebp), B0
+ movl 16(%ebp), SAMPLES
+ movl 20(%ebp), %eax
+ shll $2, %eax
+
+ leal 64(WINDOW), WINDOW
+ subl %eax, WINDOW
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm4
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ mulps 0(B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps 64(B0), %xmm4
+ mulps 80(B0), %xmm5
+ mulps 96(B0), %xmm6
+ mulps 112(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm4, %xmm5
+ movaps %xmm0, %xmm4
+
+ leal 256(WINDOW), WINDOW
+ leal 128(B0), B0
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm6
+ movups 144(WINDOW), %xmm7
+ mulps (B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps 64(B0), %xmm6
+ mulps 80(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm7, %xmm6
+ movups 160(WINDOW), %xmm1
+ movups 176(WINDOW), %xmm3
+ mulps 96(B0), %xmm1
+ mulps 112(B0), %xmm3
+ addps %xmm2, %xmm0
+ addps %xmm3, %xmm1
+ addps %xmm1, %xmm6
+ movaps %xmm6, %xmm7
+ movaps %xmm0, %xmm6
+
+ leal 256(WINDOW), WINDOW
+ leal 128(B0), B0
+
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm6, %xmm4
+ subps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movups (SAMPLES), %xmm1
+ movups 16(SAMPLES), %xmm2
+ mulps ASM_NAME(scale_sse), %xmm0
+ shufps $0xdd, %xmm2, %xmm1
+ movaps %xmm0, %xmm2
+ unpcklps %xmm1, %xmm0
+ unpckhps %xmm1, %xmm2
+ movups %xmm0, (SAMPLES)
+ movups %xmm2, 16(SAMPLES)
+
+ leal 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm4
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ mulps 0(B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps -64(B0), %xmm4
+ mulps -48(B0), %xmm5
+ mulps -32(B0), %xmm6
+ mulps -16(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm4, %xmm5
+ movaps %xmm0, %xmm4
+
+ leal 256(WINDOW), WINDOW
+ leal -128(B0), B0
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm6
+ movups 144(WINDOW), %xmm7
+ mulps (B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps -64(B0), %xmm6
+ mulps -48(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm7, %xmm6
+ movups 160(WINDOW), %xmm1
+ movups 176(WINDOW), %xmm3
+ mulps -32(B0), %xmm1
+ mulps -16(B0), %xmm3
+ addps %xmm2, %xmm0
+ addps %xmm3, %xmm1
+ addps %xmm1, %xmm6
+ movaps %xmm6, %xmm7
+ movaps %xmm0, %xmm6
+
+ leal 256(WINDOW), WINDOW
+ leal -128(B0), B0
+
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm6, %xmm4
+ addps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movups (SAMPLES), %xmm1
+ movups 16(SAMPLES), %xmm2
+ mulps ASM_NAME(scale_sse), %xmm0
+ shufps $0xdd, %xmm2, %xmm1
+ movaps %xmm0, %xmm2
+ unpcklps %xmm1, %xmm0
+ unpckhps %xmm1, %xmm2
+ movups %xmm0, (SAMPLES)
+ movups %xmm2, 16(SAMPLES)
+
+ leal 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_2
+
+ xorl %eax, %eax
+
+ popl %esi
+ popl %ebx
+ movl %ebp, %esp
+ popl %ebp
+
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_sse_s32.S b/src/libmpg123/synth_sse_s32.S
new file mode 100644
index 0000000..a72dc85
--- /dev/null
+++ b/src/libmpg123/synth_sse_s32.S
@@ -0,0 +1,309 @@
+/*
+ synth_sse_s32: SSE optimized synth (s32 output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+/* real *window; */
+#define WINDOW %ebx
+/* real *b0; */
+#define B0 %edx
+/* real *samples; */
+#define SAMPLES %esi
+
+#define MMREG_CLIP %mm7
+
+/*
+ int synth_1to1_s32_sse_asm(real *window, real *b0, int32_t *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(scale_s32):
+ .long 1199570944 /* 65536.0 */
+ .long 1199570944
+ .long 1199570944
+ .long 1199570944
+ ALIGN16
+ASM_NAME(maxmin_s32):
+ .long 1191182335 /* 32767.999 */
+ .long 1191182335
+ .long 1191182335
+ .long 1191182335
+ .long -956301312 /* -32768.0 */
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_s32_sse_asm)
+ASM_NAME(synth_1to1_s32_sse_asm):
+ pushl %ebp
+ movl %esp, %ebp
+ pushl %ebx
+ pushl %esi
+
+ pxor MMREG_CLIP, MMREG_CLIP
+
+ movl 8(%ebp), WINDOW
+ movl 12(%ebp), B0
+ movl 16(%ebp), SAMPLES
+ movl 20(%ebp), %eax
+ shll $2, %eax
+
+ leal 64(WINDOW), WINDOW
+ subl %eax, WINDOW
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm4
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ mulps 0(B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps 64(B0), %xmm4
+ mulps 80(B0), %xmm5
+ mulps 96(B0), %xmm6
+ mulps 112(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm4, %xmm5
+ movaps %xmm0, %xmm4
+
+ leal 256(WINDOW), WINDOW
+ leal 128(B0), B0
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm6
+ movups 144(WINDOW), %xmm7
+ mulps (B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps 64(B0), %xmm6
+ mulps 80(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm7, %xmm6
+ movups 160(WINDOW), %xmm1
+ movups 176(WINDOW), %xmm3
+ mulps 96(B0), %xmm1
+ mulps 112(B0), %xmm3
+ addps %xmm2, %xmm0
+ addps %xmm3, %xmm1
+ addps %xmm1, %xmm6
+ movaps %xmm6, %xmm7
+ movaps %xmm0, %xmm6
+
+ leal 256(WINDOW), WINDOW
+ leal 128(B0), B0
+
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm6, %xmm4
+ subps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ mulps ASM_NAME(scale_s32), %xmm0
+ cmpnleps ASM_NAME(maxmin_s32), %xmm1
+ cmpltps ASM_NAME(maxmin_s32)+16, %xmm2
+ cvtps2pi %xmm0, %mm0
+ movhlps %xmm0, %xmm0
+ cvtps2pi %xmm0, %mm1
+ cvtps2pi %xmm1, %mm2
+ movhlps %xmm1, %xmm1
+ cvtps2pi %xmm1, %mm3
+ psrad $31, %mm2
+ psrad $31, %mm3
+ pxor %mm2, %mm0
+ pxor %mm3, %mm1
+ movd %mm0, (SAMPLES)
+ psrlq $32, %mm0
+ movd %mm0, 8(SAMPLES)
+ movd %mm1, 16(SAMPLES)
+ psrlq $32, %mm1
+ movd %mm1, 24(SAMPLES)
+
+ cvtps2pi %xmm2, %mm0
+ movhlps %xmm2, %xmm2
+ cvtps2pi %xmm2, %mm1
+ packssdw %mm3, %mm2
+ packssdw %mm1, %mm0
+ psrlw $15, %mm2
+ psrlw $15, %mm0
+ paddw %mm2, %mm0
+ paddw %mm0, MMREG_CLIP
+
+ leal 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm4
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ mulps 0(B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps -64(B0), %xmm4
+ mulps -48(B0), %xmm5
+ mulps -32(B0), %xmm6
+ mulps -16(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm4, %xmm5
+ movaps %xmm0, %xmm4
+
+ leal 256(WINDOW), WINDOW
+ leal -128(B0), B0
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm6
+ movups 144(WINDOW), %xmm7
+ mulps (B0), %xmm0
+ mulps 16(B0), %xmm1
+ mulps 32(B0), %xmm2
+ mulps 48(B0), %xmm3
+ mulps -64(B0), %xmm6
+ mulps -48(B0), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm7, %xmm6
+ movups 160(WINDOW), %xmm1
+ movups 176(WINDOW), %xmm3
+ mulps -32(B0), %xmm1
+ mulps -16(B0), %xmm3
+ addps %xmm2, %xmm0
+ addps %xmm3, %xmm1
+ addps %xmm1, %xmm6
+ movaps %xmm6, %xmm7
+ movaps %xmm0, %xmm6
+
+ leal 256(WINDOW), WINDOW
+ leal -128(B0), B0
+
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm6, %xmm4
+ addps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ mulps ASM_NAME(scale_s32), %xmm0
+ cmpnleps ASM_NAME(maxmin_s32), %xmm1
+ cmpltps ASM_NAME(maxmin_s32)+16, %xmm2
+ cvtps2pi %xmm0, %mm0
+ movhlps %xmm0, %xmm0
+ cvtps2pi %xmm0, %mm1
+ cvtps2pi %xmm1, %mm2
+ movhlps %xmm1, %xmm1
+ cvtps2pi %xmm1, %mm3
+ psrad $31, %mm2
+ psrad $31, %mm3
+ pxor %mm2, %mm0
+ pxor %mm3, %mm1
+ movd %mm0, (SAMPLES)
+ psrlq $32, %mm0
+ movd %mm0, 8(SAMPLES)
+ movd %mm1, 16(SAMPLES)
+ psrlq $32, %mm1
+ movd %mm1, 24(SAMPLES)
+
+ cvtps2pi %xmm2, %mm0
+ movhlps %xmm2, %xmm2
+ cvtps2pi %xmm2, %mm1
+ packssdw %mm3, %mm2
+ packssdw %mm1, %mm0
+ psrlw $15, %mm2
+ psrlw $15, %mm0
+ paddw %mm2, %mm0
+ paddw %mm0, MMREG_CLIP
+
+ leal 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_2
+
+ pshufw $0xee, MMREG_CLIP, %mm0
+ paddw MMREG_CLIP, %mm0
+ pshufw $0x55, %mm0, %mm1
+ paddw %mm1, %mm0
+ movd %mm0, %eax
+ andl $0xffff, %eax
+
+ popl %esi
+ popl %ebx
+ movl %ebp, %esp
+ popl %ebp
+
+ emms
+
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_stereo_sse_accurate.S b/src/libmpg123/synth_stereo_sse_accurate.S
new file mode 100644
index 0000000..f6aa7d8
--- /dev/null
+++ b/src/libmpg123/synth_stereo_sse_accurate.S
@@ -0,0 +1,511 @@
+/*
+ synth_stereo_sse_accurate: SSE optimized synth (stereo specific, MPEG-compliant 16bit output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+/* real *window; */
+#define WINDOW %ebx
+/* real *b0l; */
+#define B0L %edx
+/* real *b0r; */
+#define B0R %esi
+/* real *samples; */
+#define SAMPLES %edi
+
+#define TEMP(n) (12+16*n)(%esp)
+#define MMREG_CLIP %mm7
+
+/*
+ int synth_1to1_stereo_sse_accurate_asm(real *window, real *b0l, real *b0r, short *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(maxmin_s16):
+ .long 1191181824 /* 32767.0 */
+ .long 1191181824
+ .long 1191181824
+ .long 1191181824
+ .long -956301312 /* -32768.0 */
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_stereo_sse_accurate_asm)
+ASM_NAME(synth_1to1_stereo_sse_accurate_asm):
+ pushl %ebp
+ movl %esp, %ebp
+ andl $-16, %esp
+ subl $128, %esp
+ pushl %ebx
+ pushl %esi
+ pushl %edi
+
+ pxor MMREG_CLIP, MMREG_CLIP
+
+ movl 8(%ebp), WINDOW
+ movl 12(%ebp), B0L
+ movl 16(%ebp), B0R
+ movl 20(%ebp), SAMPLES
+ movl 24(%ebp), %eax
+ shll $2, %eax
+
+ leal 64(WINDOW), WINDOW
+ subl %eax, WINDOW
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(0)
+ movaps %xmm4, TEMP(4)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(1)
+ movaps %xmm4, TEMP(5)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(2)
+ movaps %xmm4, TEMP(6)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, %xmm7
+ movaps %xmm4, TEMP(7)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movaps TEMP(0), %xmm4
+ movaps TEMP(1), %xmm5
+ movaps TEMP(2), %xmm6
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm6, %xmm4
+ subps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+ movaps %xmm0, %xmm2
+
+ movaps TEMP(4), %xmm4
+ movaps TEMP(5), %xmm5
+ movaps TEMP(6), %xmm6
+ movaps TEMP(7), %xmm7
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm2, %xmm5
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm6, %xmm4
+ subps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movaps %xmm5, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm0, %xmm4
+ cmpnleps ASM_NAME(maxmin_s16), %xmm1
+ cmpltps ASM_NAME(maxmin_s16)+16, %xmm2
+ cmpnleps ASM_NAME(maxmin_s16), %xmm3
+ cmpltps ASM_NAME(maxmin_s16)+16, %xmm4
+ cvtps2pi %xmm5, %mm0
+ cvtps2pi %xmm0, %mm1
+ movhlps %xmm5, %xmm5
+ movhlps %xmm0, %xmm0
+ cvtps2pi %xmm5, %mm2
+ cvtps2pi %xmm0, %mm3
+ packssdw %mm2, %mm0
+ packssdw %mm3, %mm1
+ movq %mm0, %mm2
+ punpcklwd %mm1, %mm0
+ punpckhwd %mm1, %mm2
+ movq %mm0, (SAMPLES)
+ movq %mm2, 8(SAMPLES)
+
+ cvtps2pi %xmm1, %mm2
+ cvtps2pi %xmm3, %mm3
+ movhlps %xmm1, %xmm1
+ movhlps %xmm3, %xmm3
+ cvtps2pi %xmm1, %mm4
+ cvtps2pi %xmm3, %mm5
+ packssdw %mm4, %mm2
+ packssdw %mm5, %mm3
+ psrlw $15, %mm2
+ psrlw $15, %mm3
+ cvtps2pi %xmm2, %mm0
+ cvtps2pi %xmm4, %mm1
+ movhlps %xmm2, %xmm2
+ movhlps %xmm4, %xmm4
+ cvtps2pi %xmm2, %mm4
+ cvtps2pi %xmm4, %mm5
+ packssdw %mm4, %mm0
+ packssdw %mm5, %mm1
+ psrlw $15, %mm0
+ psrlw $15, %mm1
+ paddw %mm3, %mm2
+ paddw %mm1, %mm0
+ paddw %mm2, %mm0
+ paddw %mm0, MMREG_CLIP
+
+ leal 16(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(0)
+ movaps %xmm4, TEMP(4)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(1)
+ movaps %xmm4, TEMP(5)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(2)
+ movaps %xmm4, TEMP(6)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, %xmm7
+ movaps %xmm4, TEMP(7)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movaps TEMP(0), %xmm4
+ movaps TEMP(1), %xmm5
+ movaps TEMP(2), %xmm6
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm6, %xmm4
+ addps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+ movaps %xmm0, %xmm2
+
+ movaps TEMP(4), %xmm4
+ movaps TEMP(5), %xmm5
+ movaps TEMP(6), %xmm6
+ movaps TEMP(7), %xmm7
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm2, %xmm5
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm6, %xmm4
+ addps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movaps %xmm5, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm0, %xmm4
+ cmpnleps ASM_NAME(maxmin_s16), %xmm1
+ cmpltps ASM_NAME(maxmin_s16)+16, %xmm2
+ cmpnleps ASM_NAME(maxmin_s16), %xmm3
+ cmpltps ASM_NAME(maxmin_s16)+16, %xmm4
+ cvtps2pi %xmm5, %mm0
+ cvtps2pi %xmm0, %mm1
+ movhlps %xmm5, %xmm5
+ movhlps %xmm0, %xmm0
+ cvtps2pi %xmm5, %mm2
+ cvtps2pi %xmm0, %mm3
+ packssdw %mm2, %mm0
+ packssdw %mm3, %mm1
+ movq %mm0, %mm2
+ punpcklwd %mm1, %mm0
+ punpckhwd %mm1, %mm2
+ movq %mm0, (SAMPLES)
+ movq %mm2, 8(SAMPLES)
+
+ cvtps2pi %xmm1, %mm2
+ cvtps2pi %xmm3, %mm3
+ movhlps %xmm1, %xmm1
+ movhlps %xmm3, %xmm3
+ cvtps2pi %xmm1, %mm4
+ cvtps2pi %xmm3, %mm5
+ packssdw %mm4, %mm2
+ packssdw %mm5, %mm3
+ psrlw $15, %mm2
+ psrlw $15, %mm3
+ cvtps2pi %xmm2, %mm0
+ cvtps2pi %xmm4, %mm1
+ movhlps %xmm2, %xmm2
+ movhlps %xmm4, %xmm4
+ cvtps2pi %xmm2, %mm4
+ cvtps2pi %xmm4, %mm5
+ packssdw %mm4, %mm0
+ packssdw %mm5, %mm1
+ psrlw $15, %mm0
+ psrlw $15, %mm1
+ paddw %mm3, %mm2
+ paddw %mm1, %mm0
+ paddw %mm2, %mm0
+ paddw %mm0, MMREG_CLIP
+
+ leal 16(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_2
+
+ pshufw $0xee, MMREG_CLIP, %mm0
+ paddw MMREG_CLIP, %mm0
+ pshufw $0x55, %mm0, %mm1
+ paddw %mm1, %mm0
+ movd %mm0, %eax
+ andl $0xffff, %eax
+
+ popl %edi
+ popl %esi
+ popl %ebx
+ movl %ebp, %esp
+ popl %ebp
+
+ emms
+
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_stereo_sse_float.S b/src/libmpg123/synth_stereo_sse_float.S
new file mode 100644
index 0000000..c4e1b79
--- /dev/null
+++ b/src/libmpg123/synth_stereo_sse_float.S
@@ -0,0 +1,419 @@
+/*
+ synth_sse_float: SSE optimized synth (stereo specific, float output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+/* real *window; */
+#define WINDOW %ebx
+/* real *b0l; */
+#define B0L %edx
+/* real *b0r; */
+#define B0R %esi
+/* real *samples; */
+#define SAMPLES %edi
+
+#define TEMP(n) (12+16*n)(%esp)
+
+/*
+ int synth_1to1_real_stereo_sse_asm(real *window, real *b0l, real *b0r, real *samples, int bo1);
+ return value: number of clipped samples (0)
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(scale_sse):
+ .long 939524096
+ .long 939524096
+ .long 939524096
+ .long 939524096
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_real_stereo_sse_asm)
+ASM_NAME(synth_1to1_real_stereo_sse_asm):
+ pushl %ebp
+ movl %esp, %ebp
+ andl $-16, %esp
+ subl $128, %esp
+ pushl %ebx
+ pushl %esi
+ pushl %edi
+
+ movl 8(%ebp), WINDOW
+ movl 12(%ebp), B0L
+ movl 16(%ebp), B0R
+ movl 20(%ebp), SAMPLES
+ movl 24(%ebp), %eax
+ shll $2, %eax
+
+ leal 64(WINDOW), WINDOW
+ subl %eax, WINDOW
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(0)
+ movaps %xmm4, TEMP(4)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(1)
+ movaps %xmm4, TEMP(5)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(2)
+ movaps %xmm4, TEMP(6)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, %xmm7
+ movaps %xmm4, TEMP(7)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movaps TEMP(0), %xmm4
+ movaps TEMP(1), %xmm5
+ movaps TEMP(2), %xmm6
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm6, %xmm4
+ subps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+ movaps %xmm0, %xmm2
+
+ movaps TEMP(4), %xmm4
+ movaps TEMP(5), %xmm5
+ movaps TEMP(6), %xmm6
+ movaps TEMP(7), %xmm7
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm2, %xmm5
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm6, %xmm4
+ subps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ mulps ASM_NAME(scale_sse), %xmm5
+ mulps ASM_NAME(scale_sse), %xmm0
+ movaps %xmm5, %xmm1
+ unpcklps %xmm0, %xmm5
+ unpckhps %xmm0, %xmm1
+ movups %xmm5, (SAMPLES)
+ movups %xmm1, 16(SAMPLES)
+
+ leal 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(0)
+ movaps %xmm4, TEMP(4)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(1)
+ movaps %xmm4, TEMP(5)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(2)
+ movaps %xmm4, TEMP(6)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, %xmm7
+ movaps %xmm4, TEMP(7)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movaps TEMP(0), %xmm4
+ movaps TEMP(1), %xmm5
+ movaps TEMP(2), %xmm6
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm6, %xmm4
+ addps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+ movaps %xmm0, %xmm2
+
+ movaps TEMP(4), %xmm4
+ movaps TEMP(5), %xmm5
+ movaps TEMP(6), %xmm6
+ movaps TEMP(7), %xmm7
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm2, %xmm5
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm6, %xmm4
+ addps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ mulps ASM_NAME(scale_sse), %xmm5
+ mulps ASM_NAME(scale_sse), %xmm0
+ movaps %xmm5, %xmm1
+ unpcklps %xmm0, %xmm5
+ unpckhps %xmm0, %xmm1
+ movups %xmm5, (SAMPLES)
+ movups %xmm1, 16(SAMPLES)
+
+ leal 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_2
+
+ xorl %eax, %eax
+
+ popl %edi
+ popl %esi
+ popl %ebx
+ movl %ebp, %esp
+ popl %ebp
+
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_stereo_sse_s32.S b/src/libmpg123/synth_stereo_sse_s32.S
new file mode 100644
index 0000000..07ed6c1
--- /dev/null
+++ b/src/libmpg123/synth_stereo_sse_s32.S
@@ -0,0 +1,543 @@
+/*
+ synth_stereo_sse_s32: SSE optimized synth (stereo specific, s32 output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+/* real *window; */
+#define WINDOW %ebx
+/* real *b0l; */
+#define B0L %edx
+/* real *b0r; */
+#define B0R %esi
+/* real *samples; */
+#define SAMPLES %edi
+
+#define TEMP(n) (12+16*n)(%esp)
+#define MMREG_CLIP %mm7
+
+/*
+ int synth_1to1_s32_stereo_sse_asm(real *window, real *b0l, real *b0r, int32_t *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(scale_s32):
+ .long 1199570944 /* 65536.0 */
+ .long 1199570944
+ .long 1199570944
+ .long 1199570944
+ ALIGN16
+ASM_NAME(maxmin_s32):
+ .long 1191182335 /* 32767.999 */
+ .long 1191182335
+ .long 1191182335
+ .long 1191182335
+ .long -956301312 /* -32768.0 */
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_s32_stereo_sse_asm)
+ASM_NAME(synth_1to1_s32_stereo_sse_asm):
+ pushl %ebp
+ movl %esp, %ebp
+ andl $-16, %esp
+ subl $128, %esp
+ pushl %ebx
+ pushl %esi
+ pushl %edi
+
+ pxor MMREG_CLIP, MMREG_CLIP
+
+ movl 8(%ebp), WINDOW
+ movl 12(%ebp), B0L
+ movl 16(%ebp), B0R
+ movl 20(%ebp), SAMPLES
+ movl 24(%ebp), %eax
+ shll $2, %eax
+
+ leal 64(WINDOW), WINDOW
+ subl %eax, WINDOW
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(0)
+ movaps %xmm4, TEMP(4)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(1)
+ movaps %xmm4, TEMP(5)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(2)
+ movaps %xmm4, TEMP(6)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, %xmm7
+ movaps %xmm4, TEMP(7)
+
+ leal 128(WINDOW), WINDOW
+ leal 64(B0L), B0L
+ leal 64(B0R), B0R
+
+ movaps TEMP(0), %xmm4
+ movaps TEMP(1), %xmm5
+ movaps TEMP(2), %xmm6
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm6, %xmm4
+ subps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+ movaps %xmm0, %xmm2
+
+ movaps TEMP(4), %xmm4
+ movaps TEMP(5), %xmm5
+ movaps TEMP(6), %xmm6
+ movaps TEMP(7), %xmm7
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm2, %xmm5
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm6, %xmm4
+ subps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movaps %xmm5, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm0, %xmm4
+ mulps ASM_NAME(scale_s32), %xmm5
+ mulps ASM_NAME(scale_s32), %xmm0
+ cmpnleps ASM_NAME(maxmin_s32), %xmm1
+ cmpltps ASM_NAME(maxmin_s32)+16, %xmm2
+ cmpnleps ASM_NAME(maxmin_s32), %xmm3
+ cmpltps ASM_NAME(maxmin_s32)+16, %xmm4
+ cvtps2pi %xmm5, %mm0
+ cvtps2pi %xmm0, %mm1
+ cvtps2pi %xmm1, %mm2
+ cvtps2pi %xmm3, %mm3
+ psrad $31, %mm2
+ psrad $31, %mm3
+ pxor %mm2, %mm0
+ pxor %mm3, %mm1
+ movq %mm0, %mm4
+ punpckldq %mm1, %mm0
+ punpckhdq %mm1, %mm4
+ movq %mm0, (SAMPLES)
+ movq %mm4, 8(SAMPLES)
+ movhlps %xmm5, %xmm5
+ movhlps %xmm0, %xmm0
+ movhlps %xmm1, %xmm1
+ movhlps %xmm3, %xmm3
+ cvtps2pi %xmm5, %mm0
+ cvtps2pi %xmm0, %mm1
+ cvtps2pi %xmm1, %mm4
+ cvtps2pi %xmm3, %mm5
+ psrad $31, %mm4
+ psrad $31, %mm5
+ pxor %mm4, %mm0
+ pxor %mm5, %mm1
+ movq %mm0, %mm6
+ punpckldq %mm1, %mm0
+ punpckhdq %mm1, %mm6
+ movq %mm0, 16(SAMPLES)
+ movq %mm6, 24(SAMPLES)
+
+ packssdw %mm4, %mm2
+ packssdw %mm5, %mm3
+ psrlw $15, %mm2
+ psrlw $15, %mm3
+ cvtps2pi %xmm2, %mm0
+ cvtps2pi %xmm4, %mm1
+ movhlps %xmm2, %xmm2
+ movhlps %xmm4, %xmm4
+ cvtps2pi %xmm2, %mm4
+ cvtps2pi %xmm4, %mm5
+ packssdw %mm4, %mm0
+ packssdw %mm5, %mm1
+ psrlw $15, %mm0
+ psrlw $15, %mm1
+ paddw %mm3, %mm2
+ paddw %mm1, %mm0
+ paddw %mm2, %mm0
+ paddw %mm0, MMREG_CLIP
+
+ leal 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(0)
+ movaps %xmm4, TEMP(4)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(1)
+ movaps %xmm4, TEMP(5)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, TEMP(2)
+ movaps %xmm4, TEMP(6)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movaps %xmm0, %xmm4
+ movaps %xmm1, %xmm5
+ movaps %xmm2, %xmm6
+ movaps %xmm3, %xmm7
+ mulps 0(B0L), %xmm0
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 0(B0R), %xmm4
+ mulps 16(B0R), %xmm5
+ mulps 32(B0R), %xmm6
+ mulps 48(B0R), %xmm7
+ addps %xmm1, %xmm0
+ addps %xmm3, %xmm2
+ addps %xmm5, %xmm4
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm0
+ addps %xmm6, %xmm4
+ movaps %xmm0, %xmm7
+ movaps %xmm4, TEMP(7)
+
+ leal 128(WINDOW), WINDOW
+ leal -64(B0L), B0L
+ leal -64(B0R), B0R
+
+ movaps TEMP(0), %xmm4
+ movaps TEMP(1), %xmm5
+ movaps TEMP(2), %xmm6
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm6, %xmm4
+ addps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+ movaps %xmm0, %xmm2
+
+ movaps TEMP(4), %xmm4
+ movaps TEMP(5), %xmm5
+ movaps TEMP(6), %xmm6
+ movaps TEMP(7), %xmm7
+ movaps %xmm4, %xmm0
+ movaps %xmm6, %xmm1
+ unpcklps %xmm5, %xmm4
+ unpcklps %xmm7, %xmm6
+ unpckhps %xmm5, %xmm0
+ unpckhps %xmm7, %xmm1
+ movaps %xmm2, %xmm5
+ movaps %xmm4, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm6, %xmm4
+ movhlps %xmm2, %xmm6
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm6, %xmm4
+ addps %xmm1, %xmm0
+ addps %xmm4, %xmm0
+
+ movaps %xmm5, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm0, %xmm4
+ mulps ASM_NAME(scale_s32), %xmm5
+ mulps ASM_NAME(scale_s32), %xmm0
+ cmpnleps ASM_NAME(maxmin_s32), %xmm1
+ cmpltps ASM_NAME(maxmin_s32)+16, %xmm2
+ cmpnleps ASM_NAME(maxmin_s32), %xmm3
+ cmpltps ASM_NAME(maxmin_s32)+16, %xmm4
+ cvtps2pi %xmm5, %mm0
+ cvtps2pi %xmm0, %mm1
+ cvtps2pi %xmm1, %mm2
+ cvtps2pi %xmm3, %mm3
+ psrad $31, %mm2
+ psrad $31, %mm3
+ pxor %mm2, %mm0
+ pxor %mm3, %mm1
+ movq %mm0, %mm4
+ punpckldq %mm1, %mm0
+ punpckhdq %mm1, %mm4
+ movq %mm0, (SAMPLES)
+ movq %mm4, 8(SAMPLES)
+ movhlps %xmm5, %xmm5
+ movhlps %xmm0, %xmm0
+ movhlps %xmm1, %xmm1
+ movhlps %xmm3, %xmm3
+ cvtps2pi %xmm5, %mm0
+ cvtps2pi %xmm0, %mm1
+ cvtps2pi %xmm1, %mm4
+ cvtps2pi %xmm3, %mm5
+ psrad $31, %mm4
+ psrad $31, %mm5
+ pxor %mm4, %mm0
+ pxor %mm5, %mm1
+ movq %mm0, %mm6
+ punpckldq %mm1, %mm0
+ punpckhdq %mm1, %mm6
+ movq %mm0, 16(SAMPLES)
+ movq %mm6, 24(SAMPLES)
+
+ packssdw %mm4, %mm2
+ packssdw %mm5, %mm3
+ psrlw $15, %mm2
+ psrlw $15, %mm3
+ cvtps2pi %xmm2, %mm0
+ cvtps2pi %xmm4, %mm1
+ movhlps %xmm2, %xmm2
+ movhlps %xmm4, %xmm4
+ cvtps2pi %xmm2, %mm4
+ cvtps2pi %xmm4, %mm5
+ packssdw %mm4, %mm0
+ packssdw %mm5, %mm1
+ psrlw $15, %mm0
+ psrlw $15, %mm1
+ paddw %mm3, %mm2
+ paddw %mm1, %mm0
+ paddw %mm2, %mm0
+ paddw %mm0, MMREG_CLIP
+
+ leal 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_2
+
+ pshufw $0xee, MMREG_CLIP, %mm0
+ paddw MMREG_CLIP, %mm0
+ pshufw $0x55, %mm0, %mm1
+ paddw %mm1, %mm0
+ movd %mm0, %eax
+ andl $0xffff, %eax
+
+ popl %edi
+ popl %esi
+ popl %ebx
+ movl %ebp, %esp
+ popl %ebp
+
+ emms
+
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_stereo_x86_64.S b/src/libmpg123/synth_stereo_x86_64.S
new file mode 100644
index 0000000..b858efa
--- /dev/null
+++ b/src/libmpg123/synth_stereo_x86_64.S
@@ -0,0 +1,338 @@
+/*
+ synth_stereo_x86_64: SSE optimized synth for x86-64 (stereo specific version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *window; */
+#define WINDOW %r10
+/* short *b0l; */
+#define B0L %rdx
+/* short *b0r; */
+#define B0R %r8
+/* short *samples; */
+#define SAMPLES %r9
+#else
+/* short *window; */
+#define WINDOW %rdi
+/* short *b0l; */
+#define B0L %rsi
+/* short *b0r; */
+#define B0R %rdx
+/* short *samples; */
+#define SAMPLES %r9
+#endif
+
+#define XMMREG_CLIP %xmm15
+#define XMMREG_MAX %xmm14 /* {32767, 32767, 32767, 32767} */
+#define XMMREG_MIN %xmm13 /* {-32769, -32769, -32769, -32769} : not -32768 because SSE doesn't have "less than" comparison... */
+#define XMMREG_FULL %xmm12 /* {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF} */
+
+/*
+ int synth_1to1_stereo_x86_64_asm(short *window, short *b0l, short *b0r, short *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(maxmin_x86_64):
+ .long 32767
+ .long 32767
+ .long 32767
+ .long 32767
+ .long -32769
+ .long -32769
+ .long -32769
+ .long -32769
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_stereo_x86_64_asm)
+ASM_NAME(synth_1to1_stereo_x86_64_asm):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movl 40(%rsp), %eax /* 5th argument; placed after 32-byte shadow space */
+ subq $168, %rsp /* stack alignment + 10 xmm registers */
+ movaps %xmm6, (%rsp)
+ movaps %xmm7, 16(%rsp)
+ movaps %xmm8, 32(%rsp)
+ movaps %xmm9, 48(%rsp)
+ movaps %xmm10, 64(%rsp)
+ movaps %xmm11, 80(%rsp)
+ movaps %xmm12, 96(%rsp)
+ movaps %xmm13, 112(%rsp)
+ movaps %xmm14, 128(%rsp)
+ movaps %xmm15, 144(%rsp)
+#endif
+
+#ifdef _WIN64
+ shlq $32, %rax
+ shrq $31, %rax
+ movq %rcx, %r10
+#else
+ movq %r8, %rax
+ shlq $32, %rax
+ shrq $31, %rax
+ movq %rcx, %r9
+#endif
+ leaq 32(WINDOW), WINDOW
+ subq %rax, WINDOW
+
+ leaq ASM_NAME(maxmin_x86_64)(%rip), %rax
+ movaps (%rax), XMMREG_MAX
+ movaps 16(%rax), XMMREG_MIN
+ pxor XMMREG_CLIP, XMMREG_CLIP
+ pcmpeqd XMMREG_FULL, XMMREG_FULL
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 64(WINDOW), %xmm2
+ movups 80(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm4
+ movups 144(WINDOW), %xmm5
+ movups 192(WINDOW), %xmm6
+ movups 208(WINDOW), %xmm7
+ movaps %xmm0, %xmm8
+ movaps %xmm1, %xmm9
+ movaps %xmm2, %xmm10
+ movaps %xmm3, %xmm11
+ pmaddwd (B0L), %xmm0
+ pmaddwd 16(B0L), %xmm1
+ pmaddwd 32(B0L), %xmm2
+ pmaddwd 48(B0L), %xmm3
+ pmaddwd (B0R), %xmm8
+ pmaddwd 16(B0R), %xmm9
+ pmaddwd 32(B0R), %xmm10
+ pmaddwd 48(B0R), %xmm11
+ paddd %xmm1, %xmm0
+ paddd %xmm3, %xmm2
+ paddd %xmm9, %xmm8
+ paddd %xmm11, %xmm10
+ movaps %xmm4, %xmm1
+ movaps %xmm5, %xmm9
+ movaps %xmm6, %xmm3
+ movaps %xmm7, %xmm11
+ pmaddwd 64(B0L), %xmm4
+ pmaddwd 80(B0L), %xmm5
+ pmaddwd 96(B0L), %xmm6
+ pmaddwd 112(B0L), %xmm7
+ pmaddwd 64(B0R), %xmm1
+ pmaddwd 80(B0R), %xmm9
+ pmaddwd 96(B0R), %xmm3
+ pmaddwd 112(B0R), %xmm11
+ paddd %xmm5, %xmm4
+ paddd %xmm7, %xmm6
+ paddd %xmm1, %xmm9
+ paddd %xmm3, %xmm11
+
+ movaps %xmm0, %xmm1
+ movaps %xmm4, %xmm3
+ movaps %xmm8, %xmm5
+ movaps %xmm9, %xmm7
+ punpckldq %xmm2, %xmm0
+ punpckldq %xmm6, %xmm4
+ punpckhdq %xmm2, %xmm1
+ punpckhdq %xmm6, %xmm3
+ punpckldq %xmm10, %xmm8
+ punpckldq %xmm11, %xmm9
+ punpckhdq %xmm10, %xmm5
+ punpckhdq %xmm11, %xmm7
+ movaps %xmm0, %xmm2
+ movaps %xmm1, %xmm6
+ movaps %xmm8, %xmm10
+ movaps %xmm5, %xmm11
+ movlhps %xmm4, %xmm0
+ movhlps %xmm2, %xmm4
+ movlhps %xmm3, %xmm1
+ movhlps %xmm6, %xmm3
+ movlhps %xmm9, %xmm8
+ movhlps %xmm10, %xmm9
+ movlhps %xmm7, %xmm5
+ movhlps %xmm11, %xmm7
+ paddd %xmm4, %xmm0
+ paddd %xmm3, %xmm1
+ paddd %xmm9, %xmm8
+ paddd %xmm7, %xmm5
+ paddd %xmm1, %xmm0
+ paddd %xmm5, %xmm8
+ psrad $13, %xmm0
+ psrad $13, %xmm8
+
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm8, %xmm4
+ punpckldq %xmm8, %xmm0
+ punpckhdq %xmm8, %xmm1
+ packssdw %xmm1, %xmm0
+ movups %xmm0, (SAMPLES)
+
+ pcmpgtd XMMREG_MAX, %xmm2
+ pcmpgtd XMMREG_MIN, %xmm3
+ pcmpgtd XMMREG_MAX, %xmm4
+ pcmpgtd XMMREG_MIN, %xmm8
+ packssdw %xmm4, %xmm2
+ packssdw %xmm8, %xmm3
+ pxor XMMREG_FULL, %xmm3
+ psrlw $15, %xmm2
+ psrlw $15, %xmm3
+ paddw %xmm3, %xmm2
+ paddw %xmm2, XMMREG_CLIP
+
+ leaq 256(WINDOW), WINDOW
+ leaq 128(B0L), B0L
+ leaq 128(B0R), B0R
+ leaq 16(SAMPLES), SAMPLES
+
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm0
+ movups 16(WINDOW), %xmm1
+ movups 64(WINDOW), %xmm2
+ movups 80(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm4
+ movups 144(WINDOW), %xmm5
+ movups 192(WINDOW), %xmm6
+ movups 208(WINDOW), %xmm7
+ movaps %xmm0, %xmm8
+ movaps %xmm1, %xmm9
+ movaps %xmm2, %xmm10
+ movaps %xmm3, %xmm11
+ pmaddwd (B0L), %xmm0
+ pmaddwd 16(B0L), %xmm1
+ pmaddwd -32(B0L), %xmm2
+ pmaddwd -16(B0L), %xmm3
+ pmaddwd (B0R), %xmm8
+ pmaddwd 16(B0R), %xmm9
+ pmaddwd -32(B0R), %xmm10
+ pmaddwd -16(B0R), %xmm11
+ paddd %xmm1, %xmm0
+ paddd %xmm3, %xmm2
+ paddd %xmm9, %xmm8
+ paddd %xmm11, %xmm10
+ movaps %xmm4, %xmm1
+ movaps %xmm5, %xmm9
+ movaps %xmm6, %xmm3
+ movaps %xmm7, %xmm11
+ pmaddwd -64(B0L), %xmm4
+ pmaddwd -48(B0L), %xmm5
+ pmaddwd -96(B0L), %xmm6
+ pmaddwd -80(B0L), %xmm7
+ pmaddwd -64(B0R), %xmm1
+ pmaddwd -48(B0R), %xmm9
+ pmaddwd -96(B0R), %xmm3
+ pmaddwd -80(B0R), %xmm11
+ paddd %xmm5, %xmm4
+ paddd %xmm7, %xmm6
+ paddd %xmm1, %xmm9
+ paddd %xmm3, %xmm11
+
+ movaps %xmm0, %xmm1
+ movaps %xmm4, %xmm3
+ movaps %xmm8, %xmm5
+ movaps %xmm9, %xmm7
+ punpckldq %xmm2, %xmm0
+ punpckldq %xmm6, %xmm4
+ punpckhdq %xmm2, %xmm1
+ punpckhdq %xmm6, %xmm3
+ punpckldq %xmm10, %xmm8
+ punpckldq %xmm11, %xmm9
+ punpckhdq %xmm10, %xmm5
+ punpckhdq %xmm11, %xmm7
+ movaps %xmm0, %xmm2
+ movaps %xmm1, %xmm6
+ movaps %xmm8, %xmm10
+ movaps %xmm5, %xmm11
+ movlhps %xmm4, %xmm0
+ movhlps %xmm2, %xmm4
+ movlhps %xmm3, %xmm1
+ movhlps %xmm6, %xmm3
+ movlhps %xmm9, %xmm8
+ movhlps %xmm10, %xmm9
+ movlhps %xmm7, %xmm5
+ movhlps %xmm11, %xmm7
+ paddd %xmm4, %xmm0
+ paddd %xmm3, %xmm1
+ paddd %xmm9, %xmm8
+ paddd %xmm7, %xmm5
+ paddd %xmm1, %xmm0
+ paddd %xmm5, %xmm8
+ psrad $13, %xmm0
+ psrad $13, %xmm8
+
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm8, %xmm4
+ punpckldq %xmm8, %xmm0
+ punpckhdq %xmm8, %xmm1
+ packssdw %xmm1, %xmm0
+ movups %xmm0, (SAMPLES)
+
+ pcmpgtd XMMREG_MAX, %xmm2
+ pcmpgtd XMMREG_MIN, %xmm3
+ pcmpgtd XMMREG_MAX, %xmm4
+ pcmpgtd XMMREG_MIN, %xmm8
+ packssdw %xmm4, %xmm2
+ packssdw %xmm8, %xmm3
+ pxor XMMREG_FULL, %xmm3
+ psrlw $15, %xmm2
+ psrlw $15, %xmm3
+ paddw %xmm3, %xmm2
+ paddw %xmm2, XMMREG_CLIP
+
+ leaq 256(WINDOW), WINDOW
+ leaq -128(B0L), B0L
+ leaq -128(B0R), B0R
+ leaq 16(SAMPLES), SAMPLES
+
+ decl %ecx
+ jnz Loop_start_2
+
+ movhlps XMMREG_CLIP, %xmm0
+ paddw XMMREG_CLIP, %xmm0
+ pshuflw $0x55, %xmm0, %xmm1
+ pshuflw $0xaa, %xmm0, %xmm2
+ pshuflw $0xff, %xmm0, %xmm3
+ paddw %xmm1, %xmm0
+ paddw %xmm2, %xmm0
+ paddw %xmm3, %xmm0
+
+ movd %xmm0, %eax
+ andl $0xffff, %eax
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm8
+ movaps 48(%rsp), %xmm9
+ movaps 64(%rsp), %xmm10
+ movaps 80(%rsp), %xmm11
+ movaps 96(%rsp), %xmm12
+ movaps 112(%rsp), %xmm13
+ movaps 128(%rsp), %xmm14
+ movaps 144(%rsp), %xmm15
+ addq $168, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_stereo_x86_64_accurate.S b/src/libmpg123/synth_stereo_x86_64_accurate.S
new file mode 100644
index 0000000..6a207a3
--- /dev/null
+++ b/src/libmpg123/synth_stereo_x86_64_accurate.S
@@ -0,0 +1,457 @@
+/*
+ synth_stereo_x86_64_accurate: SSE optimized synth for x86-64 (stereo specific, MPEG-compliant 16bit output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *window; */
+#define WINDOW %rsi
+/* short *b0l; */
+#define B0L %rdx
+/* short *b0r; */
+#define B0R %r8
+/* short *samples; */
+#define SAMPLES %r9
+#else
+/* real *window; */
+#define WINDOW %rdi
+/* real *b0l; */
+#define B0L %rsi
+/* real *b0r; */
+#define B0R %rdx
+/* real *samples; */
+#define SAMPLES %r8
+#endif
+
+#define XMMREG_MAX (%r10) /* {32767.0, 32767.0, 32767.0, 32767.0} */
+#define XMMREG_MIN (%r11) /* {-32768.0, -32768.0, -32768.0, -32768.0} */
+#define TEMP_CLIP (%rsp)
+
+/*
+ int synth_1to1_stereo_x86_64_accurate_asm(real *window, real *b0l, real *b0r, short *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(maxmin_s16):
+ .long 1191181824
+ .long 1191181824
+ .long 1191181824
+ .long 1191181824
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_stereo_x86_64_accurate_asm)
+ASM_NAME(synth_1to1_stereo_x86_64_accurate_asm):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movl 40(%rsp), %eax /* 5th argument; placed after 32-byte shadow space */
+ pushq %rsi
+ subq $176, %rsp /* 10 xmm registers + temp */
+ movaps %xmm6, 16(%rsp)
+ movaps %xmm7, 32(%rsp)
+ movaps %xmm8, 48(%rsp)
+ movaps %xmm9, 64(%rsp)
+ movaps %xmm10, 80(%rsp)
+ movaps %xmm11, 96(%rsp)
+ movaps %xmm12, 112(%rsp)
+ movaps %xmm13, 128(%rsp)
+ movaps %xmm14, 144(%rsp)
+ movaps %xmm15, 160(%rsp)
+#else
+ subq $24, %rsp /* stack alignment + temp */
+#endif
+
+ leaq ASM_NAME(maxmin_s16)(%rip), %r10
+ leaq 16(%r10), %r11
+ xorps %xmm0, %xmm0
+ movaps %xmm0, TEMP_CLIP
+
+#ifdef _WIN64
+ shlq $32, %rax
+ shrq $30, %rax
+ movq %rcx, %rbx
+#else
+ movq %r8, %rax
+ shlq $32, %rax
+ shrq $30, %rax
+ movq %rcx, %r8
+#endif
+ leaq 64(WINDOW), WINDOW
+ subq %rax, WINDOW
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm8
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm9
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm8, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm10
+ movaps %xmm3, %xmm11
+ movaps %xmm9, %xmm12
+ movaps %xmm5, %xmm13
+ movaps %xmm6, %xmm14
+ movaps %xmm7, %xmm15
+ mulps (B0L), %xmm8
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 64(B0L), %xmm9
+ mulps 80(B0L), %xmm5
+ mulps 96(B0L), %xmm6
+ mulps 112(B0L), %xmm7
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm10
+ mulps 48(B0R), %xmm11
+ mulps 64(B0R), %xmm12
+ mulps 80(B0R), %xmm13
+ mulps 96(B0R), %xmm14
+ mulps 112(B0R), %xmm15
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm11, %xmm10
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm13, %xmm12
+ addps %xmm15, %xmm14
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ addps %xmm10, %xmm0
+ addps %xmm12, %xmm14
+ movaps %xmm0, %xmm12
+ movaps %xmm14, %xmm13
+ leaq 256(WINDOW), WINDOW
+ leaq 128(B0L), B0L
+ leaq 128(B0R), B0R
+
+ movups (WINDOW), %xmm10
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm11
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm10, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm14
+ movaps %xmm3, %xmm15
+ mulps (B0L), %xmm10
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm14
+ mulps 48(B0R), %xmm15
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm15, %xmm14
+ movaps %xmm11, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm6, %xmm4
+ movaps %xmm7, %xmm15
+ mulps 64(B0L), %xmm11
+ mulps 80(B0L), %xmm5
+ mulps 96(B0L), %xmm6
+ mulps 112(B0L), %xmm7
+ mulps 64(B0R), %xmm1
+ mulps 80(B0R), %xmm2
+ mulps 96(B0R), %xmm4
+ mulps 112(B0R), %xmm15
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm1
+ addps %xmm15, %xmm4
+
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ addps %xmm0, %xmm14
+ addps %xmm4, %xmm1
+ movaps %xmm1, %xmm15
+ leaq 256(WINDOW), WINDOW
+ leaq 128(B0L), B0L
+ leaq 128(B0R), B0R
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ movaps %xmm12, %xmm4
+ movaps %xmm14, %xmm5
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ unpcklps %xmm13, %xmm12
+ unpcklps %xmm15, %xmm14
+ unpckhps %xmm13, %xmm4
+ unpckhps %xmm15, %xmm5
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm12, %xmm6
+ movaps %xmm4, %xmm7
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ movlhps %xmm14, %xmm12
+ movhlps %xmm6, %xmm14
+ movlhps %xmm5, %xmm4
+ movhlps %xmm7, %xmm5
+ subps %xmm10, %xmm8
+ subps %xmm1, %xmm0
+ subps %xmm14, %xmm12
+ subps %xmm5, %xmm4
+ addps %xmm8, %xmm0
+ addps %xmm12, %xmm4
+
+ movaps %xmm0, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm4, %xmm5
+ movaps %xmm4, %xmm6
+ cmpnleps XMMREG_MAX, %xmm2
+ cmpltps XMMREG_MIN, %xmm3
+ cmpnleps XMMREG_MAX, %xmm5
+ cmpltps XMMREG_MIN, %xmm6
+ cvtps2dq %xmm0, %xmm0
+ cvtps2dq %xmm4, %xmm4
+ movaps %xmm0, %xmm1
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ packssdw %xmm1, %xmm0
+ movups %xmm0, (SAMPLES)
+
+ packssdw %xmm5, %xmm2
+ packssdw %xmm6, %xmm3
+ psrlw $15, %xmm2
+ psrlw $15, %xmm3
+ paddw %xmm3, %xmm2
+ paddw TEMP_CLIP, %xmm2
+ movaps %xmm2, TEMP_CLIP
+
+ leaq 16(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm8
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm9
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm8, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm10
+ movaps %xmm3, %xmm11
+ movaps %xmm9, %xmm12
+ movaps %xmm5, %xmm13
+ movaps %xmm6, %xmm14
+ movaps %xmm7, %xmm15
+ mulps (B0L), %xmm8
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps -64(B0L), %xmm9
+ mulps -48(B0L), %xmm5
+ mulps -32(B0L), %xmm6
+ mulps -16(B0L), %xmm7
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm10
+ mulps 48(B0R), %xmm11
+ mulps -64(B0R), %xmm12
+ mulps -48(B0R), %xmm13
+ mulps -32(B0R), %xmm14
+ mulps -16(B0R), %xmm15
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm11, %xmm10
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm13, %xmm12
+ addps %xmm15, %xmm14
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ addps %xmm10, %xmm0
+ addps %xmm12, %xmm14
+ movaps %xmm0, %xmm12
+ movaps %xmm14, %xmm13
+ leaq 256(WINDOW), WINDOW
+ leaq -128(B0L), B0L
+ leaq -128(B0R), B0R
+
+ movups (WINDOW), %xmm10
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm11
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm10, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm14
+ movaps %xmm3, %xmm15
+ mulps (B0L), %xmm10
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm14
+ mulps 48(B0R), %xmm15
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm15, %xmm14
+ movaps %xmm11, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm6, %xmm4
+ movaps %xmm7, %xmm15
+ mulps -64(B0L), %xmm11
+ mulps -48(B0L), %xmm5
+ mulps -32(B0L), %xmm6
+ mulps -16(B0L), %xmm7
+ mulps -64(B0R), %xmm1
+ mulps -48(B0R), %xmm2
+ mulps -32(B0R), %xmm4
+ mulps -16(B0R), %xmm15
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm1
+ addps %xmm15, %xmm4
+
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ addps %xmm0, %xmm14
+ addps %xmm4, %xmm1
+ movaps %xmm1, %xmm15
+ leaq 256(WINDOW), WINDOW
+ leaq -128(B0L), B0L
+ leaq -128(B0R), B0R
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ movaps %xmm12, %xmm4
+ movaps %xmm14, %xmm5
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ unpcklps %xmm13, %xmm12
+ unpcklps %xmm15, %xmm14
+ unpckhps %xmm13, %xmm4
+ unpckhps %xmm15, %xmm5
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm12, %xmm6
+ movaps %xmm4, %xmm7
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ movlhps %xmm14, %xmm12
+ movhlps %xmm6, %xmm14
+ movlhps %xmm5, %xmm4
+ movhlps %xmm7, %xmm5
+ addps %xmm10, %xmm8
+ addps %xmm1, %xmm0
+ addps %xmm14, %xmm12
+ addps %xmm5, %xmm4
+ addps %xmm8, %xmm0
+ addps %xmm12, %xmm4
+
+ movaps %xmm0, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm4, %xmm5
+ movaps %xmm4, %xmm6
+ cmpnleps XMMREG_MAX, %xmm2
+ cmpltps XMMREG_MIN, %xmm3
+ cmpnleps XMMREG_MAX, %xmm5
+ cmpltps XMMREG_MIN, %xmm6
+ cvtps2dq %xmm0, %xmm0
+ cvtps2dq %xmm4, %xmm4
+ movaps %xmm0, %xmm1
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ packssdw %xmm1, %xmm0
+ movups %xmm0, (SAMPLES)
+
+ packssdw %xmm5, %xmm2
+ packssdw %xmm6, %xmm3
+ psrlw $15, %xmm2
+ psrlw $15, %xmm3
+ paddw %xmm3, %xmm2
+ paddw TEMP_CLIP, %xmm2
+ movaps %xmm2, TEMP_CLIP
+
+ leaq 16(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_2
+
+ movaps TEMP_CLIP, %xmm4
+ movhlps %xmm4, %xmm0
+ paddw %xmm4, %xmm0
+ pshuflw $0x55, %xmm0, %xmm1
+ pshuflw $0xaa, %xmm0, %xmm2
+ pshuflw $0xff, %xmm0, %xmm3
+ paddw %xmm1, %xmm0
+ paddw %xmm2, %xmm0
+ paddw %xmm3, %xmm0
+
+ movd %xmm0, %eax
+ andl $0xffff, %eax
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm8
+ movaps 48(%rsp), %xmm9
+ movaps 64(%rsp), %xmm10
+ movaps 80(%rsp), %xmm11
+ movaps 96(%rsp), %xmm12
+ movaps 112(%rsp), %xmm13
+ movaps 128(%rsp), %xmm14
+ movaps 144(%rsp), %xmm15
+ addq $176, %rsp
+ popq %rsi
+#else
+ addq $24, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_stereo_x86_64_float.S b/src/libmpg123/synth_stereo_x86_64_float.S
new file mode 100644
index 0000000..98abd7f
--- /dev/null
+++ b/src/libmpg123/synth_stereo_x86_64_float.S
@@ -0,0 +1,399 @@
+/*
+ synth_stereo_x86_64_float: SSE optimized synth for x86-64 (stereo specific, float output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *window; */
+#define WINDOW %r10
+/* short *b0l; */
+#define B0L %rdx
+/* short *b0r; */
+#define B0R %r8
+/* short *samples; */
+#define SAMPLES %r9
+#else
+/* real *window; */
+#define WINDOW %rdi
+/* real *b0l; */
+#define B0L %rsi
+/* real *b0r; */
+#define B0R %rdx
+/* real *samples; */
+#define SAMPLES %r9
+#endif
+
+#define XMMREG_SCALE (%r11) /* {1/32768.0, 1/32768.0, 1/32768.0, 1/32768.0} */
+
+/*
+ int synth_1to1_real_stereo_x86_64_asm(real *window, real *b0l, real *b0r, real *samples, int bo1);
+ return value: number of clipped samples (0)
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(scale_x86_64):
+ .long 939524096
+ .long 939524096
+ .long 939524096
+ .long 939524096
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_real_stereo_x86_64_asm)
+ASM_NAME(synth_1to1_real_stereo_x86_64_asm):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movl 40(%rsp), %eax /* 5th argument; placed after 32-byte shadow space */
+ subq $168, %rsp /* stack alignment + 10 xmm registers */
+ movaps %xmm6, (%rsp)
+ movaps %xmm7, 16(%rsp)
+ movaps %xmm8, 32(%rsp)
+ movaps %xmm9, 48(%rsp)
+ movaps %xmm10, 64(%rsp)
+ movaps %xmm11, 80(%rsp)
+ movaps %xmm12, 96(%rsp)
+ movaps %xmm13, 112(%rsp)
+ movaps %xmm14, 128(%rsp)
+ movaps %xmm15, 144(%rsp)
+#endif
+
+ leaq ASM_NAME(scale_x86_64)(%rip), %r11
+
+#ifdef _WIN64
+ shlq $32, %rax
+ shrq $30, %rax
+ movq %rcx, %r10
+#else
+ movq %r8, %rax
+ shlq $32, %rax
+ shrq $30, %rax
+ movq %rcx, %r9
+#endif
+ leaq 64(WINDOW), WINDOW
+ subq %rax, WINDOW
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm8
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm9
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm8, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm10
+ movaps %xmm3, %xmm11
+ movaps %xmm9, %xmm12
+ movaps %xmm5, %xmm13
+ movaps %xmm6, %xmm14
+ movaps %xmm7, %xmm15
+ mulps (B0L), %xmm8
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 64(B0L), %xmm9
+ mulps 80(B0L), %xmm5
+ mulps 96(B0L), %xmm6
+ mulps 112(B0L), %xmm7
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm10
+ mulps 48(B0R), %xmm11
+ mulps 64(B0R), %xmm12
+ mulps 80(B0R), %xmm13
+ mulps 96(B0R), %xmm14
+ mulps 112(B0R), %xmm15
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm11, %xmm10
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm13, %xmm12
+ addps %xmm15, %xmm14
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ addps %xmm10, %xmm0
+ addps %xmm12, %xmm14
+ movaps %xmm0, %xmm12
+ movaps %xmm14, %xmm13
+ leaq 256(WINDOW), WINDOW
+ leaq 128(B0L), B0L
+ leaq 128(B0R), B0R
+
+ movups (WINDOW), %xmm10
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm11
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm10, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm14
+ movaps %xmm3, %xmm15
+ mulps (B0L), %xmm10
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm14
+ mulps 48(B0R), %xmm15
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm15, %xmm14
+ movaps %xmm11, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm6, %xmm4
+ movaps %xmm7, %xmm15
+ mulps 64(B0L), %xmm11
+ mulps 80(B0L), %xmm5
+ mulps 96(B0L), %xmm6
+ mulps 112(B0L), %xmm7
+ mulps 64(B0R), %xmm1
+ mulps 80(B0R), %xmm2
+ mulps 96(B0R), %xmm4
+ mulps 112(B0R), %xmm15
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm1
+ addps %xmm15, %xmm4
+
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ addps %xmm0, %xmm14
+ addps %xmm4, %xmm1
+ movaps %xmm1, %xmm15
+ leaq 256(WINDOW), WINDOW
+ leaq 128(B0L), B0L
+ leaq 128(B0R), B0R
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ movaps %xmm12, %xmm4
+ movaps %xmm14, %xmm5
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ unpcklps %xmm13, %xmm12
+ unpcklps %xmm15, %xmm14
+ unpckhps %xmm13, %xmm4
+ unpckhps %xmm15, %xmm5
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm12, %xmm6
+ movaps %xmm4, %xmm7
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ movlhps %xmm14, %xmm12
+ movhlps %xmm6, %xmm14
+ movlhps %xmm5, %xmm4
+ movhlps %xmm7, %xmm5
+ subps %xmm10, %xmm8
+ subps %xmm1, %xmm0
+ subps %xmm14, %xmm12
+ subps %xmm5, %xmm4
+ addps %xmm8, %xmm0
+ addps %xmm12, %xmm4
+
+ mulps XMMREG_SCALE, %xmm0
+ mulps XMMREG_SCALE, %xmm4
+ movaps %xmm0, %xmm1
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ movups %xmm0, (SAMPLES)
+ movups %xmm1, 16(SAMPLES)
+
+ leaq 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm8
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm9
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm8, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm10
+ movaps %xmm3, %xmm11
+ movaps %xmm9, %xmm12
+ movaps %xmm5, %xmm13
+ movaps %xmm6, %xmm14
+ movaps %xmm7, %xmm15
+ mulps (B0L), %xmm8
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps -64(B0L), %xmm9
+ mulps -48(B0L), %xmm5
+ mulps -32(B0L), %xmm6
+ mulps -16(B0L), %xmm7
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm10
+ mulps 48(B0R), %xmm11
+ mulps -64(B0R), %xmm12
+ mulps -48(B0R), %xmm13
+ mulps -32(B0R), %xmm14
+ mulps -16(B0R), %xmm15
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm11, %xmm10
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm13, %xmm12
+ addps %xmm15, %xmm14
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ addps %xmm10, %xmm0
+ addps %xmm12, %xmm14
+ movaps %xmm0, %xmm12
+ movaps %xmm14, %xmm13
+ leaq 256(WINDOW), WINDOW
+ leaq -128(B0L), B0L
+ leaq -128(B0R), B0R
+
+ movups (WINDOW), %xmm10
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm11
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm10, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm14
+ movaps %xmm3, %xmm15
+ mulps (B0L), %xmm10
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm14
+ mulps 48(B0R), %xmm15
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm15, %xmm14
+ movaps %xmm11, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm6, %xmm4
+ movaps %xmm7, %xmm15
+ mulps -64(B0L), %xmm11
+ mulps -48(B0L), %xmm5
+ mulps -32(B0L), %xmm6
+ mulps -16(B0L), %xmm7
+ mulps -64(B0R), %xmm1
+ mulps -48(B0R), %xmm2
+ mulps -32(B0R), %xmm4
+ mulps -16(B0R), %xmm15
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm1
+ addps %xmm15, %xmm4
+
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ addps %xmm0, %xmm14
+ addps %xmm4, %xmm1
+ movaps %xmm1, %xmm15
+ leaq 256(WINDOW), WINDOW
+ leaq -128(B0L), B0L
+ leaq -128(B0R), B0R
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ movaps %xmm12, %xmm4
+ movaps %xmm14, %xmm5
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ unpcklps %xmm13, %xmm12
+ unpcklps %xmm15, %xmm14
+ unpckhps %xmm13, %xmm4
+ unpckhps %xmm15, %xmm5
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm12, %xmm6
+ movaps %xmm4, %xmm7
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ movlhps %xmm14, %xmm12
+ movhlps %xmm6, %xmm14
+ movlhps %xmm5, %xmm4
+ movhlps %xmm7, %xmm5
+ addps %xmm10, %xmm8
+ addps %xmm1, %xmm0
+ addps %xmm14, %xmm12
+ addps %xmm5, %xmm4
+ addps %xmm8, %xmm0
+ addps %xmm12, %xmm4
+
+ mulps XMMREG_SCALE, %xmm0
+ mulps XMMREG_SCALE, %xmm4
+ movaps %xmm0, %xmm1
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ movups %xmm0, (SAMPLES)
+ movups %xmm1, 16(SAMPLES)
+
+ leaq 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_2
+
+ xorl %eax, %eax
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm8
+ movaps 48(%rsp), %xmm9
+ movaps 64(%rsp), %xmm10
+ movaps 80(%rsp), %xmm11
+ movaps 96(%rsp), %xmm12
+ movaps 112(%rsp), %xmm13
+ movaps 128(%rsp), %xmm14
+ movaps 144(%rsp), %xmm15
+ addq $168, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_stereo_x86_64_s32.S b/src/libmpg123/synth_stereo_x86_64_s32.S
new file mode 100644
index 0000000..8b1f0fb
--- /dev/null
+++ b/src/libmpg123/synth_stereo_x86_64_s32.S
@@ -0,0 +1,476 @@
+/*
+ synth_stereo_x86_64_s32: SSE optimized synth for x86-64 (stereo specific, s32 output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *window; */
+#define WINDOW %rsi
+/* short *b0l; */
+#define B0L %rdx
+/* short *b0r; */
+#define B0R %r8
+/* short *samples; */
+#define SAMPLES %rdi
+#else
+/* real *window; */
+#define WINDOW %rdi
+/* real *b0l; */
+#define B0L %rsi
+/* real *b0r; */
+#define B0R %rdx
+/* real *samples; */
+#define SAMPLES %r8
+#endif
+
+#define XMMREG_SCALE (%r9) /* {65536.0, 65536.0, 65536.0, 65536.0} */
+#define XMMREG_MAX (%r10) /* {32767.999, 32767.999, 32767.999, 32767.999} */
+#define XMMREG_MIN (%r11) /* {-32768.0, -32768.0, -32768.0, -32768.0} */
+#define TEMP_CLIP (%rsp)
+
+/*
+ int synth_1to1_s32_stereo_x86_64_asm(real *window, real *b0l, real *b0r, int32_t *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(scale_s32):
+ .long 1199570944
+ .long 1199570944
+ .long 1199570944
+ .long 1199570944
+ ALIGN16
+ASM_NAME(maxmin_s32):
+ .long 1191182335
+ .long 1191182335
+ .long 1191182335
+ .long 1191182335
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_s32_stereo_x86_64_asm)
+ASM_NAME(synth_1to1_s32_stereo_x86_64_asm):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movl 40(%rsp), %eax /* 5th argument; placed after 32-byte shadow space */
+ pushq %rsi
+ pushq %rdi
+ subq $184, %rsp /* stack alignment + 10 xmm registers + temp */
+ movaps %xmm6, 16(%rsp)
+ movaps %xmm7, 32(%rsp)
+ movaps %xmm8, 48(%rsp)
+ movaps %xmm9, 64(%rsp)
+ movaps %xmm10, 80(%rsp)
+ movaps %xmm11, 96(%rsp)
+ movaps %xmm12, 112(%rsp)
+ movaps %xmm13, 128(%rsp)
+ movaps %xmm14, 144(%rsp)
+ movaps %xmm15, 160(%rsp)
+#else
+ subq $24, %rsp /* stack alignment + temp */
+#endif
+
+#ifdef _WIN64
+ shlq $32, %rax
+ shrq $30, %rax
+ movq %rcx, %rsi
+ movq %r9, %rdi
+#else
+ movq %r8, %rax
+ shlq $32, %rax
+ shrq $30, %rax
+ movq %rcx, %r8
+#endif
+ leaq 64(WINDOW), WINDOW
+ subq %rax, WINDOW
+
+ leaq ASM_NAME(scale_s32)(%rip), %r9
+ leaq ASM_NAME(maxmin_s32)(%rip), %r10
+ leaq 16(%r10), %r11
+ xorps %xmm0, %xmm0
+ movaps %xmm0, TEMP_CLIP
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (WINDOW), %xmm8
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm9
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm8, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm10
+ movaps %xmm3, %xmm11
+ movaps %xmm9, %xmm12
+ movaps %xmm5, %xmm13
+ movaps %xmm6, %xmm14
+ movaps %xmm7, %xmm15
+ mulps (B0L), %xmm8
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps 64(B0L), %xmm9
+ mulps 80(B0L), %xmm5
+ mulps 96(B0L), %xmm6
+ mulps 112(B0L), %xmm7
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm10
+ mulps 48(B0R), %xmm11
+ mulps 64(B0R), %xmm12
+ mulps 80(B0R), %xmm13
+ mulps 96(B0R), %xmm14
+ mulps 112(B0R), %xmm15
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm11, %xmm10
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm13, %xmm12
+ addps %xmm15, %xmm14
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ addps %xmm10, %xmm0
+ addps %xmm12, %xmm14
+ movaps %xmm0, %xmm12
+ movaps %xmm14, %xmm13
+ leaq 256(WINDOW), WINDOW
+ leaq 128(B0L), B0L
+ leaq 128(B0R), B0R
+
+ movups (WINDOW), %xmm10
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm11
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm10, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm14
+ movaps %xmm3, %xmm15
+ mulps (B0L), %xmm10
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm14
+ mulps 48(B0R), %xmm15
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm15, %xmm14
+ movaps %xmm11, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm6, %xmm4
+ movaps %xmm7, %xmm15
+ mulps 64(B0L), %xmm11
+ mulps 80(B0L), %xmm5
+ mulps 96(B0L), %xmm6
+ mulps 112(B0L), %xmm7
+ mulps 64(B0R), %xmm1
+ mulps 80(B0R), %xmm2
+ mulps 96(B0R), %xmm4
+ mulps 112(B0R), %xmm15
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm1
+ addps %xmm15, %xmm4
+
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ addps %xmm0, %xmm14
+ addps %xmm4, %xmm1
+ movaps %xmm1, %xmm15
+ leaq 256(WINDOW), WINDOW
+ leaq 128(B0L), B0L
+ leaq 128(B0R), B0R
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ movaps %xmm12, %xmm4
+ movaps %xmm14, %xmm5
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ unpcklps %xmm13, %xmm12
+ unpcklps %xmm15, %xmm14
+ unpckhps %xmm13, %xmm4
+ unpckhps %xmm15, %xmm5
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm12, %xmm6
+ movaps %xmm4, %xmm7
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ movlhps %xmm14, %xmm12
+ movhlps %xmm6, %xmm14
+ movlhps %xmm5, %xmm4
+ movhlps %xmm7, %xmm5
+ subps %xmm10, %xmm8
+ subps %xmm1, %xmm0
+ subps %xmm14, %xmm12
+ subps %xmm5, %xmm4
+ addps %xmm8, %xmm0
+ addps %xmm12, %xmm4
+
+ movaps %xmm0, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm4, %xmm5
+ movaps %xmm4, %xmm6
+ mulps XMMREG_SCALE, %xmm0
+ mulps XMMREG_SCALE, %xmm4
+ cmpnleps XMMREG_MAX, %xmm2
+ cmpltps XMMREG_MIN, %xmm3
+ cmpnleps XMMREG_MAX, %xmm5
+ cmpltps XMMREG_MIN, %xmm6
+ cvtps2dq %xmm0, %xmm0
+ cvtps2dq %xmm4, %xmm4
+ xorps %xmm2, %xmm0
+ xorps %xmm5, %xmm4
+ movaps %xmm0, %xmm1
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ movups %xmm0, (SAMPLES)
+ movups %xmm1, 16(SAMPLES)
+
+ packssdw %xmm5, %xmm2
+ packssdw %xmm6, %xmm3
+ psrlw $15, %xmm2
+ psrlw $15, %xmm3
+ paddw %xmm3, %xmm2
+ paddw TEMP_CLIP, %xmm2
+ movaps %xmm2, TEMP_CLIP
+
+ leaq 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (WINDOW), %xmm8
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm9
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm8, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm10
+ movaps %xmm3, %xmm11
+ movaps %xmm9, %xmm12
+ movaps %xmm5, %xmm13
+ movaps %xmm6, %xmm14
+ movaps %xmm7, %xmm15
+ mulps (B0L), %xmm8
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps -64(B0L), %xmm9
+ mulps -48(B0L), %xmm5
+ mulps -32(B0L), %xmm6
+ mulps -16(B0L), %xmm7
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm10
+ mulps 48(B0R), %xmm11
+ mulps -64(B0R), %xmm12
+ mulps -48(B0R), %xmm13
+ mulps -32(B0R), %xmm14
+ mulps -16(B0R), %xmm15
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm11, %xmm10
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm13, %xmm12
+ addps %xmm15, %xmm14
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ addps %xmm10, %xmm0
+ addps %xmm12, %xmm14
+ movaps %xmm0, %xmm12
+ movaps %xmm14, %xmm13
+ leaq 256(WINDOW), WINDOW
+ leaq -128(B0L), B0L
+ leaq -128(B0R), B0R
+
+ movups (WINDOW), %xmm10
+ movups 16(WINDOW), %xmm1
+ movups 32(WINDOW), %xmm2
+ movups 48(WINDOW), %xmm3
+ movups 128(WINDOW), %xmm11
+ movups 144(WINDOW), %xmm5
+ movups 160(WINDOW), %xmm6
+ movups 176(WINDOW), %xmm7
+ movaps %xmm10, %xmm0
+ movaps %xmm1, %xmm4
+ movaps %xmm2, %xmm14
+ movaps %xmm3, %xmm15
+ mulps (B0L), %xmm10
+ mulps 16(B0L), %xmm1
+ mulps 32(B0L), %xmm2
+ mulps 48(B0L), %xmm3
+ mulps (B0R), %xmm0
+ mulps 16(B0R), %xmm4
+ mulps 32(B0R), %xmm14
+ mulps 48(B0R), %xmm15
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm4, %xmm0
+ addps %xmm15, %xmm14
+ movaps %xmm11, %xmm1
+ movaps %xmm5, %xmm2
+ movaps %xmm6, %xmm4
+ movaps %xmm7, %xmm15
+ mulps -64(B0L), %xmm11
+ mulps -48(B0L), %xmm5
+ mulps -32(B0L), %xmm6
+ mulps -16(B0L), %xmm7
+ mulps -64(B0R), %xmm1
+ mulps -48(B0R), %xmm2
+ mulps -32(B0R), %xmm4
+ mulps -16(B0R), %xmm15
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm2, %xmm1
+ addps %xmm15, %xmm4
+
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ addps %xmm0, %xmm14
+ addps %xmm4, %xmm1
+ movaps %xmm1, %xmm15
+ leaq 256(WINDOW), WINDOW
+ leaq -128(B0L), B0L
+ leaq -128(B0R), B0R
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ movaps %xmm12, %xmm4
+ movaps %xmm14, %xmm5
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ unpcklps %xmm13, %xmm12
+ unpcklps %xmm15, %xmm14
+ unpckhps %xmm13, %xmm4
+ unpckhps %xmm15, %xmm5
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm12, %xmm6
+ movaps %xmm4, %xmm7
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ movlhps %xmm14, %xmm12
+ movhlps %xmm6, %xmm14
+ movlhps %xmm5, %xmm4
+ movhlps %xmm7, %xmm5
+ addps %xmm10, %xmm8
+ addps %xmm1, %xmm0
+ addps %xmm14, %xmm12
+ addps %xmm5, %xmm4
+ addps %xmm8, %xmm0
+ addps %xmm12, %xmm4
+
+ movaps %xmm0, %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm4, %xmm5
+ movaps %xmm4, %xmm6
+ mulps XMMREG_SCALE, %xmm0
+ mulps XMMREG_SCALE, %xmm4
+ cmpnleps XMMREG_MAX, %xmm2
+ cmpltps XMMREG_MIN, %xmm3
+ cmpnleps XMMREG_MAX, %xmm5
+ cmpltps XMMREG_MIN, %xmm6
+ cvtps2dq %xmm0, %xmm0
+ cvtps2dq %xmm4, %xmm4
+ xorps %xmm2, %xmm0
+ xorps %xmm5, %xmm4
+ movaps %xmm0, %xmm1
+ unpcklps %xmm4, %xmm0
+ unpckhps %xmm4, %xmm1
+ movups %xmm0, (SAMPLES)
+ movups %xmm1, 16(SAMPLES)
+
+ packssdw %xmm5, %xmm2
+ packssdw %xmm6, %xmm3
+ psrlw $15, %xmm2
+ psrlw $15, %xmm3
+ paddw %xmm3, %xmm2
+ paddw TEMP_CLIP, %xmm2
+ movaps %xmm2, TEMP_CLIP
+
+ leaq 32(SAMPLES), SAMPLES
+ decl %ecx
+ jnz Loop_start_2
+
+ movaps TEMP_CLIP, %xmm4
+ movhlps %xmm4, %xmm0
+ paddw %xmm4, %xmm0
+ pshuflw $0x55, %xmm0, %xmm1
+ pshuflw $0xaa, %xmm0, %xmm2
+ pshuflw $0xff, %xmm0, %xmm3
+ paddw %xmm1, %xmm0
+ paddw %xmm2, %xmm0
+ paddw %xmm3, %xmm0
+
+ movd %xmm0, %eax
+ andl $0xffff, %eax
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm8
+ movaps 48(%rsp), %xmm9
+ movaps 64(%rsp), %xmm10
+ movaps 80(%rsp), %xmm11
+ movaps 96(%rsp), %xmm12
+ movaps 112(%rsp), %xmm13
+ movaps 128(%rsp), %xmm14
+ movaps 144(%rsp), %xmm15
+ addq $184, %rsp
+ popq %rdi
+ popq %rsi
+#else
+ addq $24, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_x86_64.S b/src/libmpg123/synth_x86_64.S
new file mode 100644
index 0000000..a5ab18c
--- /dev/null
+++ b/src/libmpg123/synth_x86_64.S
@@ -0,0 +1,247 @@
+/*
+ synth_x86_64: SSE optimized synth for x86-64
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *window; */
+#define ARG0 %r10
+/* short *b0; */
+#define ARG1 %rdx
+/* short *samples; */
+#define ARG2 %r8
+/* int bo1; */
+#define ARG3 %r9
+#else
+/* short *window; */
+#define ARG0 %rdi
+/* short *b0; */
+#define ARG1 %rsi
+/* short *samples; */
+#define ARG2 %rdx
+/* int bo1; */
+#define ARG3 %rcx
+#endif
+
+#define XMMREG_CLIP %xmm15
+#define XMMREG_MAX %xmm14 /* {32767, 32767, 32767, 32767} */
+#define XMMREG_MIN %xmm13 /* {-32769, -32769, -32769, -32769} : not -32768 because SSE doesn't have "less than" comparison... */
+#define XMMREG_FULL %xmm12 /* {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF} */
+
+/*
+ int synth_1to1_x86_64_asm(short *window, short *b0, short *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(maxmin_x86_64):
+ .long 32767
+ .long 32767
+ .long 32767
+ .long 32767
+ .long -32769
+ .long -32769
+ .long -32769
+ .long -32769
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_x86_64_asm)
+ASM_NAME(synth_1to1_x86_64_asm):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movq %rcx, ARG0
+ subq $104, %rsp /* stack alignment + 6 xmm registers */
+ movaps %xmm6, (%rsp)
+ movaps %xmm7, 16(%rsp)
+ movaps %xmm12, 32(%rsp)
+ movaps %xmm13, 48(%rsp)
+ movaps %xmm14, 64(%rsp)
+ movaps %xmm15, 80(%rsp)
+#endif
+
+ leaq ASM_NAME(maxmin_x86_64)(%rip), %rax
+ movaps (%rax), XMMREG_MAX
+ movaps 16(%rax), XMMREG_MIN
+ pxor XMMREG_CLIP, XMMREG_CLIP
+ pcmpeqd XMMREG_FULL, XMMREG_FULL
+
+ andq $0xf, ARG3
+ shlq $1, ARG3
+ leaq 32(ARG0), ARG0
+ subq ARG3, ARG0
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (ARG0), %xmm0
+ movups 16(ARG0), %xmm1
+ movups 64(ARG0), %xmm2
+ movups 80(ARG0), %xmm3
+ movups 128(ARG0), %xmm4
+ movups 144(ARG0), %xmm5
+ movups 192(ARG0), %xmm6
+ movups 208(ARG0), %xmm7
+ pmaddwd (ARG1), %xmm0
+ pmaddwd 16(ARG1), %xmm1
+ pmaddwd 32(ARG1), %xmm2
+ pmaddwd 48(ARG1), %xmm3
+ pmaddwd 64(ARG1), %xmm4
+ pmaddwd 80(ARG1), %xmm5
+ pmaddwd 96(ARG1), %xmm6
+ pmaddwd 112(ARG1), %xmm7
+
+ paddd %xmm1, %xmm0
+ paddd %xmm3, %xmm2
+ paddd %xmm5, %xmm4
+ paddd %xmm7, %xmm6
+
+ movaps %xmm0, %xmm1
+ movaps %xmm4, %xmm3
+ punpckldq %xmm2, %xmm0
+ punpckldq %xmm6, %xmm4
+ punpckhdq %xmm2, %xmm1
+ punpckhdq %xmm6, %xmm3
+ movaps %xmm0, %xmm5
+ movaps %xmm1, %xmm7
+ movlhps %xmm4, %xmm0
+ movhlps %xmm5, %xmm4
+ movlhps %xmm3, %xmm1
+ movhlps %xmm7, %xmm3
+ paddd %xmm4, %xmm0
+ paddd %xmm3, %xmm1
+ paddd %xmm1, %xmm0
+ psrad $13, %xmm0
+
+ movups (ARG2), %xmm3
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ packssdw %xmm0, %xmm0
+ pcmpgtd XMMREG_MAX, %xmm1
+ pcmpgtd XMMREG_MIN, %xmm2
+ movhlps %xmm3, %xmm4
+ pshuflw $0xdd, %xmm3, %xmm3
+ pshuflw $0xdd, %xmm4, %xmm4
+ psrlq $32, %xmm3
+ psllq $32, %xmm4
+ por %xmm4, %xmm3
+ punpcklwd %xmm3, %xmm0
+ movups %xmm0, (ARG2)
+
+ pxor XMMREG_FULL, %xmm2
+ psrld $31, %xmm1
+ psrld $31, %xmm2
+ paddd %xmm2, %xmm1
+ paddd %xmm1, XMMREG_CLIP
+
+ leaq 256(ARG0), ARG0
+ leaq 128(ARG1), ARG1
+ leaq 16(ARG2), ARG2
+
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (ARG0), %xmm0
+ movups 16(ARG0), %xmm1
+ movups 64(ARG0), %xmm2
+ movups 80(ARG0), %xmm3
+ movups 128(ARG0), %xmm4
+ movups 144(ARG0), %xmm5
+ movups 192(ARG0), %xmm6
+ movups 208(ARG0), %xmm7
+ pmaddwd (ARG1), %xmm0
+ pmaddwd 16(ARG1), %xmm1
+ pmaddwd -32(ARG1), %xmm2
+ pmaddwd -16(ARG1), %xmm3
+ pmaddwd -64(ARG1), %xmm4
+ pmaddwd -48(ARG1), %xmm5
+ pmaddwd -96(ARG1), %xmm6
+ pmaddwd -80(ARG1), %xmm7
+
+ paddd %xmm1, %xmm0
+ paddd %xmm3, %xmm2
+ paddd %xmm5, %xmm4
+ paddd %xmm7, %xmm6
+
+ movaps %xmm0, %xmm1
+ movaps %xmm4, %xmm3
+ punpckldq %xmm2, %xmm0
+ punpckldq %xmm6, %xmm4
+ punpckhdq %xmm2, %xmm1
+ punpckhdq %xmm6, %xmm3
+ movaps %xmm0, %xmm5
+ movaps %xmm1, %xmm7
+ movlhps %xmm4, %xmm0
+ movhlps %xmm5, %xmm4
+ movlhps %xmm3, %xmm1
+ movhlps %xmm7, %xmm3
+ paddd %xmm4, %xmm0
+ paddd %xmm3, %xmm1
+ paddd %xmm1, %xmm0
+ psrad $13, %xmm0
+
+ movups (ARG2), %xmm3
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ packssdw %xmm0, %xmm0
+ pcmpgtd XMMREG_MAX, %xmm1
+ pcmpgtd XMMREG_MIN, %xmm2
+ movhlps %xmm3, %xmm4
+ pshuflw $0xdd, %xmm3, %xmm3
+ pshuflw $0xdd, %xmm4, %xmm4
+ psrlq $32, %xmm3
+ psllq $32, %xmm4
+ por %xmm4, %xmm3
+ punpcklwd %xmm3, %xmm0
+ movups %xmm0, (ARG2)
+
+ pxor XMMREG_FULL, %xmm2
+ psrld $31, %xmm1
+ psrld $31, %xmm2
+ paddd %xmm2, %xmm1
+ paddd %xmm1, XMMREG_CLIP
+
+ leaq 256(ARG0), ARG0
+ leaq -128(ARG1), ARG1
+ leaq 16(ARG2), ARG2
+
+ decl %ecx
+ jnz Loop_start_2
+
+ pshuflw $0xee, XMMREG_CLIP, %xmm0
+ movhlps XMMREG_CLIP, %xmm1
+ pshuflw $0xee, %xmm1, %xmm2
+ paddd %xmm0, XMMREG_CLIP
+ paddd %xmm1, XMMREG_CLIP
+ paddd %xmm2, XMMREG_CLIP
+
+ movd XMMREG_CLIP, %eax
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm12
+ movaps 48(%rsp), %xmm13
+ movaps 64(%rsp), %xmm14
+ movaps 80(%rsp), %xmm15
+ addq $104, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_x86_64_accurate.S b/src/libmpg123/synth_x86_64_accurate.S
new file mode 100644
index 0000000..f0a1243
--- /dev/null
+++ b/src/libmpg123/synth_x86_64_accurate.S
@@ -0,0 +1,304 @@
+/*
+ synth_x86_64_accurate: SSE optimized synth for x86-64 (MPEG-compliant 16bit output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *window; */
+#define ARG0 %r10
+/* short *b0; */
+#define ARG1 %rdx
+/* short *samples; */
+#define ARG2 %r8
+/* int bo1; */
+#define ARG3 %r9
+#else
+/* real *window; */
+#define ARG0 %rdi
+/* real *b0; */
+#define ARG1 %rsi
+/* real *samples; */
+#define ARG2 %rdx
+/* int bo1; */
+#define ARG3 %rcx
+#endif
+
+#define XMMREG_MAX %xmm15 /* {32767.0, 32767.0, 32767.0, 32767.0} */
+#define XMMREG_MIN %xmm14 /* {-32768.0, -32768.0, -32768.0, -32768.0} */
+#define XMMREG_CLIP %xmm13
+
+/*
+ int synth_1to1_x86_64_accurate_asm(real *window, real *b0, short *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(maxmin_s16):
+ .long 1191181824
+ .long 1191181824
+ .long 1191181824
+ .long 1191181824
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_x86_64_accurate_asm)
+ASM_NAME(synth_1to1_x86_64_accurate_asm):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movq %rcx, ARG0
+ subq $152, %rsp /* stack alignment + 9 xmm registers */
+ movaps %xmm6, (%rsp)
+ movaps %xmm7, 16(%rsp)
+ movaps %xmm8, 32(%rsp)
+ movaps %xmm9, 48(%rsp)
+ movaps %xmm10, 64(%rsp)
+ movaps %xmm11, 80(%rsp)
+ movaps %xmm13, 96(%rsp)
+ movaps %xmm14, 112(%rsp)
+ movaps %xmm15, 128(%rsp)
+#endif
+
+ leaq ASM_NAME(maxmin_s16)(%rip), %rax
+ movaps (%rax), XMMREG_MAX
+ movaps 16(%rax), XMMREG_MIN
+
+ xorps XMMREG_CLIP, XMMREG_CLIP
+
+ andq $0xf, ARG3
+ shlq $2, ARG3
+ leaq 64(ARG0), ARG0
+ subq ARG3, ARG0
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (ARG0), %xmm8
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm9
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm8
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps 64(ARG1), %xmm9
+ mulps 80(ARG1), %xmm5
+ mulps 96(ARG1), %xmm6
+ mulps 112(ARG1), %xmm7
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ leaq 256(ARG0), ARG0
+ leaq 128(ARG1), ARG1
+
+ movups (ARG0), %xmm10
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm11
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm10
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps 64(ARG1), %xmm11
+ mulps 80(ARG1), %xmm5
+ mulps 96(ARG1), %xmm6
+ mulps 112(ARG1), %xmm7
+
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ leaq 256(ARG0), ARG0
+ leaq 128(ARG1), ARG1
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm10, %xmm8
+ subps %xmm1, %xmm0
+ addps %xmm8, %xmm0
+
+ movups (ARG2), %xmm3
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ cmpnleps XMMREG_MAX, %xmm1
+ cmpltps XMMREG_MIN, %xmm2
+ cvtps2dq %xmm0, %xmm0
+ packssdw %xmm0, %xmm0
+ movhlps %xmm3, %xmm4
+ pshuflw $0xdd, %xmm3, %xmm3
+ pshuflw $0xdd, %xmm4, %xmm4
+ psrlq $32, %xmm3
+ psllq $32, %xmm4
+ por %xmm4, %xmm3
+ punpcklwd %xmm3, %xmm0
+ movups %xmm0, (ARG2)
+
+ psrld $31, %xmm1
+ psrld $31, %xmm2
+ paddd %xmm2, %xmm1
+ paddd %xmm1, XMMREG_CLIP
+
+ leaq 16(ARG2), ARG2
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (ARG0), %xmm8
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm9
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm8
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps -64(ARG1), %xmm9
+ mulps -48(ARG1), %xmm5
+ mulps -32(ARG1), %xmm6
+ mulps -16(ARG1), %xmm7
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ leaq 256(ARG0), ARG0
+ leaq -128(ARG1), ARG1
+
+ movups (ARG0), %xmm10
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm11
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm10
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps -64(ARG1), %xmm11
+ mulps -48(ARG1), %xmm5
+ mulps -32(ARG1), %xmm6
+ mulps -16(ARG1), %xmm7
+
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ leaq 256(ARG0), ARG0
+ leaq -128(ARG1), ARG1
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm10, %xmm8
+ addps %xmm1, %xmm0
+ addps %xmm8, %xmm0
+
+ movups (ARG2), %xmm3
+ movaps %xmm0, %xmm1
+ movaps %xmm0, %xmm2
+ cmpnleps XMMREG_MAX, %xmm1
+ cmpltps XMMREG_MIN, %xmm2
+ cvtps2dq %xmm0, %xmm0
+ packssdw %xmm0, %xmm0
+ movhlps %xmm3, %xmm4
+ pshuflw $0xdd, %xmm3, %xmm3
+ pshuflw $0xdd, %xmm4, %xmm4
+ psrlq $32, %xmm3
+ psllq $32, %xmm4
+ por %xmm4, %xmm3
+ punpcklwd %xmm3, %xmm0
+ movups %xmm0, (ARG2)
+
+ psrld $31, %xmm1
+ psrld $31, %xmm2
+ paddd %xmm2, %xmm1
+ paddd %xmm1, XMMREG_CLIP
+
+ leaq 16(ARG2), ARG2
+ decl %ecx
+ jnz Loop_start_2
+
+ pshuflw $0xee, XMMREG_CLIP, %xmm0
+ movhlps XMMREG_CLIP, %xmm1
+ pshuflw $0xee, %xmm1, %xmm2
+ paddd %xmm0, XMMREG_CLIP
+ paddd %xmm1, XMMREG_CLIP
+ paddd %xmm2, XMMREG_CLIP
+
+ movd XMMREG_CLIP, %eax
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm8
+ movaps 48(%rsp), %xmm9
+ movaps 64(%rsp), %xmm10
+ movaps 80(%rsp), %xmm11
+ movaps 96(%rsp), %xmm13
+ movaps 112(%rsp), %xmm14
+ movaps 128(%rsp), %xmm15
+ addq $152, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_x86_64_float.S b/src/libmpg123/synth_x86_64_float.S
new file mode 100644
index 0000000..ef8bb02
--- /dev/null
+++ b/src/libmpg123/synth_x86_64_float.S
@@ -0,0 +1,262 @@
+/*
+ synth_x86_64_float: SSE optimized synth for x86-64 (float output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *window; */
+#define ARG0 %r10
+/* short *b0; */
+#define ARG1 %rdx
+/* short *samples; */
+#define ARG2 %r8
+/* int bo1; */
+#define ARG3 %r9
+#else
+/* real *window; */
+#define ARG0 %rdi
+/* real *b0; */
+#define ARG1 %rsi
+/* real *samples; */
+#define ARG2 %rdx
+/* int bo1; */
+#define ARG3 %rcx
+#endif
+
+#define XMMREG_SCALE %xmm15 /* {1/32768.0, 1/32768.0, 1/32768.0, 1/32768.0} */
+
+/*
+ int synth_1to1_real_x86_64_asm(real *window, real *b0, real *samples, int bo1);
+ return value: number of clipped samples (0)
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(scale_x86_64):
+ .long 939524096
+ .long 939524096
+ .long 939524096
+ .long 939524096
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_real_x86_64_asm)
+ASM_NAME(synth_1to1_real_x86_64_asm):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movq %rcx, ARG0
+ subq $120, %rsp /* stack alignment + 7 xmm registers */
+ movaps %xmm6, (%rsp)
+ movaps %xmm7, 16(%rsp)
+ movaps %xmm8, 32(%rsp)
+ movaps %xmm9, 48(%rsp)
+ movaps %xmm10, 64(%rsp)
+ movaps %xmm11, 80(%rsp)
+ movaps %xmm15, 96(%rsp)
+#endif
+
+ leaq ASM_NAME(scale_x86_64)(%rip), %rax
+ movaps (%rax), XMMREG_SCALE
+
+ andq $0xf, ARG3
+ shlq $2, ARG3
+ leaq 64(ARG0), ARG0
+ subq ARG3, ARG0
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (ARG0), %xmm8
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm9
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm8
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps 64(ARG1), %xmm9
+ mulps 80(ARG1), %xmm5
+ mulps 96(ARG1), %xmm6
+ mulps 112(ARG1), %xmm7
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ leaq 256(ARG0), ARG0
+ leaq 128(ARG1), ARG1
+
+ movups (ARG0), %xmm10
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm11
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm10
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps 64(ARG1), %xmm11
+ mulps 80(ARG1), %xmm5
+ mulps 96(ARG1), %xmm6
+ mulps 112(ARG1), %xmm7
+
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ leaq 256(ARG0), ARG0
+ leaq 128(ARG1), ARG1
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm10, %xmm8
+ subps %xmm1, %xmm0
+ addps %xmm8, %xmm0
+
+ movups (ARG2), %xmm1
+ movups 16(ARG2), %xmm2
+ mulps XMMREG_SCALE, %xmm0
+ shufps $0xdd, %xmm2, %xmm1
+ movaps %xmm0, %xmm2
+ unpcklps %xmm1, %xmm0
+ unpckhps %xmm1, %xmm2
+ movups %xmm0, (ARG2)
+ movups %xmm2, 16(ARG2)
+
+ leaq 32(ARG2), ARG2
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (ARG0), %xmm8
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm9
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm8
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps -64(ARG1), %xmm9
+ mulps -48(ARG1), %xmm5
+ mulps -32(ARG1), %xmm6
+ mulps -16(ARG1), %xmm7
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ leaq 256(ARG0), ARG0
+ leaq -128(ARG1), ARG1
+
+ movups (ARG0), %xmm10
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm11
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm10
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps -64(ARG1), %xmm11
+ mulps -48(ARG1), %xmm5
+ mulps -32(ARG1), %xmm6
+ mulps -16(ARG1), %xmm7
+
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ leaq 256(ARG0), ARG0
+ leaq -128(ARG1), ARG1
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm10, %xmm8
+ addps %xmm1, %xmm0
+ addps %xmm8, %xmm0
+
+ movups (ARG2), %xmm1
+ movups 16(ARG2), %xmm2
+ mulps XMMREG_SCALE, %xmm0
+ shufps $0xdd, %xmm2, %xmm1
+ movaps %xmm0, %xmm2
+ unpcklps %xmm1, %xmm0
+ unpckhps %xmm1, %xmm2
+ movups %xmm0, (ARG2)
+ movups %xmm2, 16(ARG2)
+
+ leaq 32(ARG2), ARG2
+ decl %ecx
+ jnz Loop_start_2
+
+ xorl %eax, %eax
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm8
+ movaps 48(%rsp), %xmm9
+ movaps 64(%rsp), %xmm10
+ movaps 80(%rsp), %xmm11
+ movaps 96(%rsp), %xmm15
+ addq $120, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synth_x86_64_s32.S b/src/libmpg123/synth_x86_64_s32.S
new file mode 100644
index 0000000..eafdba5
--- /dev/null
+++ b/src/libmpg123/synth_x86_64_s32.S
@@ -0,0 +1,315 @@
+/*
+ synth_x86_64_s32: SSE optimized synth for x86-64 (s32 output version)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Taihei Monma
+*/
+
+#include "mangle.h"
+
+#ifdef _WIN64
+/* short *window; */
+#define ARG0 %r10
+/* short *b0; */
+#define ARG1 %rdx
+/* short *samples; */
+#define ARG2 %r8
+/* int bo1; */
+#define ARG3 %r9
+#else
+/* real *window; */
+#define ARG0 %rdi
+/* real *b0; */
+#define ARG1 %rsi
+/* real *samples; */
+#define ARG2 %rdx
+/* int bo1; */
+#define ARG3 %rcx
+#endif
+
+#define XMMREG_SCALE %xmm15 /* {65536.0, 65536.0, 65536.0, 65536.0} */
+#define XMMREG_MAX %xmm14 /* {32767.999, 32767.999, 32767.999, 32767.999} */
+#define XMMREG_MIN %xmm13 /* {-32768.0, -32768.0, -32768.0, -32768.0} */
+#define XMMREG_CLIP %xmm12
+
+/*
+ int synth_1to1_s32_x86_64_asm(real *window, real *b0, int32_t *samples, int bo1);
+ return value: number of clipped samples
+*/
+
+#ifndef __APPLE__
+ .section .rodata
+#else
+ .data
+#endif
+ ALIGN32
+ASM_NAME(scale_s32):
+ .long 1199570944
+ .long 1199570944
+ .long 1199570944
+ .long 1199570944
+ ALIGN16
+ASM_NAME(maxmin_s32):
+ .long 1191182335
+ .long 1191182335
+ .long 1191182335
+ .long 1191182335
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .long -956301312
+ .text
+ ALIGN16,,15
+.globl ASM_NAME(synth_1to1_s32_x86_64_asm)
+ASM_NAME(synth_1to1_s32_x86_64_asm):
+#ifdef _WIN64 /* should save xmm6-15 */
+ movq %rcx, ARG0
+ subq $168, %rsp /* stack alignment + 10 xmm registers */
+ movaps %xmm6, (%rsp)
+ movaps %xmm7, 16(%rsp)
+ movaps %xmm8, 32(%rsp)
+ movaps %xmm9, 48(%rsp)
+ movaps %xmm10, 64(%rsp)
+ movaps %xmm11, 80(%rsp)
+ movaps %xmm12, 96(%rsp)
+ movaps %xmm13, 112(%rsp)
+ movaps %xmm14, 128(%rsp)
+ movaps %xmm15, 144(%rsp)
+#endif
+
+ leaq ASM_NAME(scale_s32)(%rip), %rax
+ movaps (%rax), XMMREG_SCALE
+ leaq ASM_NAME(maxmin_s32)(%rip), %rax
+ movaps (%rax), XMMREG_MAX
+ movaps 16(%rax), XMMREG_MIN
+
+ xorps XMMREG_CLIP, XMMREG_CLIP
+
+ andq $0xf, ARG3
+ shlq $2, ARG3
+ leaq 64(ARG0), ARG0
+ subq ARG3, ARG0
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_1:
+ movups (ARG0), %xmm8
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm9
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm8
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps 64(ARG1), %xmm9
+ mulps 80(ARG1), %xmm5
+ mulps 96(ARG1), %xmm6
+ mulps 112(ARG1), %xmm7
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ leaq 256(ARG0), ARG0
+ leaq 128(ARG1), ARG1
+
+ movups (ARG0), %xmm10
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm11
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm10
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps 64(ARG1), %xmm11
+ mulps 80(ARG1), %xmm5
+ mulps 96(ARG1), %xmm6
+ mulps 112(ARG1), %xmm7
+
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ leaq 256(ARG0), ARG0
+ leaq 128(ARG1), ARG1
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ subps %xmm10, %xmm8
+ subps %xmm1, %xmm0
+ addps %xmm8, %xmm0
+
+ movups (ARG2), %xmm1
+ movups 16(ARG2), %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm0, %xmm4
+ mulps XMMREG_SCALE, %xmm0
+ cmpnleps XMMREG_MAX, %xmm3
+ cmpltps XMMREG_MIN, %xmm4
+ cvtps2dq %xmm0, %xmm0
+ xorps %xmm3, %xmm0
+ shufps $0xdd, %xmm2, %xmm1
+ movaps %xmm0, %xmm2
+ unpcklps %xmm1, %xmm0
+ unpckhps %xmm1, %xmm2
+ movups %xmm0, (ARG2)
+ movups %xmm2, 16(ARG2)
+
+ psrld $31, %xmm3
+ psrld $31, %xmm4
+ paddd %xmm4, %xmm3
+ paddd %xmm3, XMMREG_CLIP
+
+ leaq 32(ARG2), ARG2
+ decl %ecx
+ jnz Loop_start_1
+
+ movl $4, %ecx
+
+ ALIGN16
+Loop_start_2:
+ movups (ARG0), %xmm8
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm9
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm8
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps -64(ARG1), %xmm9
+ mulps -48(ARG1), %xmm5
+ mulps -32(ARG1), %xmm6
+ mulps -16(ARG1), %xmm7
+
+ addps %xmm1, %xmm8
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm9
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm8
+ addps %xmm6, %xmm9
+ leaq 256(ARG0), ARG0
+ leaq -128(ARG1), ARG1
+
+ movups (ARG0), %xmm10
+ movups 16(ARG0), %xmm1
+ movups 32(ARG0), %xmm2
+ movups 48(ARG0), %xmm3
+ movups 128(ARG0), %xmm11
+ movups 144(ARG0), %xmm5
+ movups 160(ARG0), %xmm6
+ movups 176(ARG0), %xmm7
+ mulps (ARG1), %xmm10
+ mulps 16(ARG1), %xmm1
+ mulps 32(ARG1), %xmm2
+ mulps 48(ARG1), %xmm3
+ mulps -64(ARG1), %xmm11
+ mulps -48(ARG1), %xmm5
+ mulps -32(ARG1), %xmm6
+ mulps -16(ARG1), %xmm7
+
+ addps %xmm1, %xmm10
+ addps %xmm2, %xmm3
+ addps %xmm5, %xmm11
+ addps %xmm7, %xmm6
+ addps %xmm3, %xmm10
+ addps %xmm6, %xmm11
+ leaq 256(ARG0), ARG0
+ leaq -128(ARG1), ARG1
+
+ movaps %xmm8, %xmm0
+ movaps %xmm10, %xmm1
+ unpcklps %xmm9, %xmm8
+ unpcklps %xmm11, %xmm10
+ unpckhps %xmm9, %xmm0
+ unpckhps %xmm11, %xmm1
+ movaps %xmm8, %xmm2
+ movaps %xmm0, %xmm3
+ movlhps %xmm10, %xmm8
+ movhlps %xmm2, %xmm10
+ movlhps %xmm1, %xmm0
+ movhlps %xmm3, %xmm1
+ addps %xmm10, %xmm8
+ addps %xmm1, %xmm0
+ addps %xmm8, %xmm0
+
+ movups (ARG2), %xmm1
+ movups 16(ARG2), %xmm2
+ movaps %xmm0, %xmm3
+ movaps %xmm0, %xmm4
+ mulps XMMREG_SCALE, %xmm0
+ cmpnleps XMMREG_MAX, %xmm3
+ cmpltps XMMREG_MIN, %xmm4
+ cvtps2dq %xmm0, %xmm0
+ xorps %xmm3, %xmm0
+ shufps $0xdd, %xmm2, %xmm1
+ movaps %xmm0, %xmm2
+ unpcklps %xmm1, %xmm0
+ unpckhps %xmm1, %xmm2
+ movups %xmm0, (ARG2)
+ movups %xmm2, 16(ARG2)
+
+ psrld $31, %xmm3
+ psrld $31, %xmm4
+ paddd %xmm4, %xmm3
+ paddd %xmm3, XMMREG_CLIP
+
+ leaq 32(ARG2), ARG2
+ decl %ecx
+ jnz Loop_start_2
+
+ pshuflw $0xee, XMMREG_CLIP, %xmm0
+ movhlps XMMREG_CLIP, %xmm1
+ pshuflw $0xee, %xmm1, %xmm2
+ paddd %xmm0, XMMREG_CLIP
+ paddd %xmm1, XMMREG_CLIP
+ paddd %xmm2, XMMREG_CLIP
+
+ movd XMMREG_CLIP, %eax
+
+#ifdef _WIN64
+ movaps (%rsp), %xmm6
+ movaps 16(%rsp), %xmm7
+ movaps 32(%rsp), %xmm8
+ movaps 48(%rsp), %xmm9
+ movaps 64(%rsp), %xmm10
+ movaps 80(%rsp), %xmm11
+ movaps 96(%rsp), %xmm12
+ movaps 112(%rsp), %xmm13
+ movaps 128(%rsp), %xmm14
+ movaps 144(%rsp), %xmm15
+ addq $168, %rsp
+#endif
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/synths.h b/src/libmpg123/synths.h
new file mode 100644
index 0000000..4113445
--- /dev/null
+++ b/src/libmpg123/synths.h
@@ -0,0 +1,52 @@
+#ifndef MPG123_SYNTH_H
+#define MPG123_SYNTH_H
+
+/* This is included inside frame.h, which is included in mpg123lib_intern.h,
+ at the appropriate place.
+ Explicit header inclusions here would cause circular dependencies. */
+
+/* The handle needs these types for selecting the decoding routine at runtime.
+ Not just for optimization, mainly for XtoY, mono/stereo. */
+typedef int (*func_synth)(real *,int, mpg123_handle *,int );
+typedef int (*func_synth_mono)(real *, mpg123_handle *);
+typedef int (*func_synth_stereo)(real *, real *, mpg123_handle *);
+enum synth_channel { c_plain=0, c_stereo, c_mono2stereo, c_mono, c_limit };
+enum synth_resample
+{
+ r_none=-1
+ ,r_1to1=0
+# ifndef NO_DOWNSAMPLE
+ ,r_2to1
+ ,r_4to1
+# endif
+# ifndef NO_NTOM
+ ,r_ntom
+# endif
+ ,r_limit
+};
+enum synth_format
+{
+ f_none=-1
+# ifndef NO_16BIT
+ ,f_16
+# endif
+# ifndef NO_8BIT
+ ,f_8
+# endif
+# ifndef NO_REAL
+ ,f_real
+# endif
+# ifndef NO_32BIT
+ ,f_32
+# endif
+ ,f_limit
+};
+struct synth_s
+{
+ func_synth plain[r_limit][f_limit];
+ func_synth_stereo stereo[r_limit][f_limit];
+ func_synth_mono mono2stereo[r_limit][f_limit];
+ func_synth_mono mono[r_limit][f_limit];
+};
+
+#endif
diff --git a/src/libmpg123/tabinit.c b/src/libmpg123/tabinit.c
new file mode 100644
index 0000000..8851672
--- /dev/null
+++ b/src/libmpg123/tabinit.c
@@ -0,0 +1,242 @@
+/*
+ tabinit.c: initialize tables...
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#include "mpg123lib_intern.h"
+#include "debug.h"
+
+/* That altivec alignment part here should not hurt generic code, I hope */
+#ifdef OPT_ALTIVEC
+static ALIGNED(16) real cos64[16];
+static ALIGNED(16) real cos32[8];
+static ALIGNED(16) real cos16[4];
+static ALIGNED(16) real cos8[2];
+static ALIGNED(16) real cos4[1];
+#else
+static real cos64[16],cos32[8],cos16[4],cos8[2],cos4[1];
+#endif
+
+real *pnts[] = { cos64,cos32,cos16,cos8,cos4 };
+
+
+static long intwinbase[] = {
+ 0, -1, -1, -1, -1, -1, -1, -2, -2, -2,
+ -2, -3, -3, -4, -4, -5, -5, -6, -7, -7,
+ -8, -9, -10, -11, -13, -14, -16, -17, -19, -21,
+ -24, -26, -29, -31, -35, -38, -41, -45, -49, -53,
+ -58, -63, -68, -73, -79, -85, -91, -97, -104, -111,
+ -117, -125, -132, -139, -147, -154, -161, -169, -176, -183,
+ -190, -196, -202, -208, -213, -218, -222, -225, -227, -228,
+ -228, -227, -224, -221, -215, -208, -200, -189, -177, -163,
+ -146, -127, -106, -83, -57, -29, 2, 36, 72, 111,
+ 153, 197, 244, 294, 347, 401, 459, 519, 581, 645,
+ 711, 779, 848, 919, 991, 1064, 1137, 1210, 1283, 1356,
+ 1428, 1498, 1567, 1634, 1698, 1759, 1817, 1870, 1919, 1962,
+ 2001, 2032, 2057, 2075, 2085, 2087, 2080, 2063, 2037, 2000,
+ 1952, 1893, 1822, 1739, 1644, 1535, 1414, 1280, 1131, 970,
+ 794, 605, 402, 185, -45, -288, -545, -814, -1095, -1388,
+ -1692, -2006, -2330, -2663, -3004, -3351, -3705, -4063, -4425, -4788,
+ -5153, -5517, -5879, -6237, -6589, -6935, -7271, -7597, -7910, -8209,
+ -8491, -8755, -8998, -9219, -9416, -9585, -9727, -9838, -9916, -9959,
+ -9966, -9935, -9863, -9750, -9592, -9389, -9139, -8840, -8492, -8092,
+ -7640, -7134, -6574, -5959, -5288, -4561, -3776, -2935, -2037, -1082,
+ -70, 998, 2122, 3300, 4533, 5818, 7154, 8540, 9975, 11455,
+ 12980, 14548, 16155, 17799, 19478, 21189, 22929, 24694, 26482, 28289,
+ 30112, 31947, 33791, 35640, 37489, 39336, 41176, 43006, 44821, 46617,
+ 48390, 50137, 51853, 53534, 55178, 56778, 58333, 59838, 61289, 62684,
+ 64019, 65290, 66494, 67629, 68692, 69679, 70590, 71420, 72169, 72835,
+ 73415, 73908, 74313, 74630, 74856, 74992, 75038 };
+
+void prepare_decode_tables()
+{
+ int i,k,kr,divv;
+ real *costab;
+
+ for(i=0;i<5;i++)
+ {
+ kr=0x10>>i; divv=0x40>>i;
+ costab = pnts[i];
+ for(k=0;k<kr;k++)
+ costab[k] = DOUBLE_TO_REAL(1.0 / (2.0 * cos(M_PI * ((double) k * 2.0 + 1.0) / (double) divv)));
+ }
+}
+
+#ifdef OPT_MMXORSSE
+#ifndef OPT_X86_64
+void make_decode_tables_mmx_asm(long scaleval, float* decwin_mmx, float *decwins);
+void make_decode_tables_mmx(mpg123_handle *fr)
+{
+ debug("MMX decode tables");
+ /* Take care: The scale should be like before, when we didn't have float output all around. */
+ make_decode_tables_mmx_asm((long)((fr->lastscale < 0 ? fr->p.outscale : fr->lastscale)*SHORT_SCALE), fr->decwin_mmx, fr->decwins);
+ debug("MMX decode tables done");
+}
+#else
+
+/* This mimics round() as defined in C99. We stay C89. */
+static int rounded(double f)
+{
+ return (int)(f>0 ? floor(f+0.5) : ceil(f-0.5));
+}
+
+/* x86-64 doesn't use asm version */
+void make_decode_tables_mmx(mpg123_handle *fr)
+{
+ int i,j,val;
+ int idx = 0;
+ short *ptr = (short *)fr->decwins;
+ /* Scale is always based on 1.0 . */
+ double scaleval = -0.5*(fr->lastscale < 0 ? fr->p.outscale : fr->lastscale);
+ debug1("MMX decode tables with scaleval %g", scaleval);
+ for(i=0,j=0;i<256;i++,j++,idx+=32)
+ {
+ if(idx < 512+16)
+ fr->decwin_mmx[idx+16] = fr->decwin_mmx[idx] = DOUBLE_TO_REAL((double) intwinbase[j] * scaleval);
+
+ if(i % 32 == 31)
+ idx -= 1023;
+ if(i % 64 == 63)
+ scaleval = - scaleval;
+ }
+
+ for( /* i=256 */ ;i<512;i++,j--,idx+=32)
+ {
+ if(idx < 512+16)
+ fr->decwin_mmx[idx+16] = fr->decwin_mmx[idx] = DOUBLE_TO_REAL((double) intwinbase[j] * scaleval);
+
+ if(i % 32 == 31)
+ idx -= 1023;
+ if(i % 64 == 63)
+ scaleval = - scaleval;
+ }
+
+ for(i=0; i<512; i++) {
+ if(i&1) val = rounded(fr->decwin_mmx[i]*0.5);
+ else val = rounded(fr->decwin_mmx[i]*-0.5);
+ if(val > 32767) val = 32767;
+ else if(val < -32768) val = -32768;
+ ptr[i] = val;
+ }
+ for(i=512; i<512+32; i++) {
+ if(i&1) val = rounded(fr->decwin_mmx[i]*0.5);
+ else val = 0;
+ if(val > 32767) val = 32767;
+ else if(val < -32768) val = -32768;
+ ptr[i] = val;
+ }
+ for(i=0; i<512; i++) {
+ val = rounded(fr->decwin_mmx[511-i]*-0.5);
+ if(val > 32767) val = 32767;
+ else if(val < -32768) val = -32768;
+ ptr[512+32+i] = val;
+ }
+ debug("decode tables done");
+}
+#endif
+#endif
+
+void make_decode_tables(mpg123_handle *fr)
+{
+ int i,j;
+ int idx = 0;
+ /* Scale is always based on 1.0 . */
+ double scaleval = -0.5*(fr->lastscale < 0 ? fr->p.outscale : fr->lastscale);
+ debug1("decode tables with scaleval %g", scaleval);
+ for(i=0,j=0;i<256;i++,j++,idx+=32)
+ {
+ if(idx < 512+16)
+ fr->decwin[idx+16] = fr->decwin[idx] = DOUBLE_TO_REAL_15((double) intwinbase[j] * scaleval);
+
+ if(i % 32 == 31)
+ idx -= 1023;
+ if(i % 64 == 63)
+ scaleval = - scaleval;
+ }
+
+ for( /* i=256 */ ;i<512;i++,j--,idx+=32)
+ {
+ if(idx < 512+16)
+ fr->decwin[idx+16] = fr->decwin[idx] = DOUBLE_TO_REAL_15((double) intwinbase[j] * scaleval);
+
+ if(i % 32 == 31)
+ idx -= 1023;
+ if(i % 64 == 63)
+ scaleval = - scaleval;
+ }
+#if defined(OPT_X86_64) || defined(OPT_ALTIVEC) || defined(OPT_SSE)
+ if(fr->cpu_opts.type == x86_64 || fr->cpu_opts.type == altivec || fr->cpu_opts.type == sse)
+ { /* for float SSE / AltiVec decoder */
+ for(i=512; i<512+32; i++)
+ {
+ fr->decwin[i] = (i&1) ? fr->decwin[i] : 0;
+ }
+ for(i=0; i<512; i++)
+ {
+ fr->decwin[512+32+i] = -fr->decwin[511-i];
+ }
+ }
+#endif
+ debug("decode tables done");
+}
+
+#ifndef NO_8BIT
+int make_conv16to8_table(mpg123_handle *fr)
+{
+ int i;
+ int mode = fr->af.encoding;
+
+ /*
+ * ????: 8.0 is right but on SB cards '2.0' is a better value ???
+ */
+ const double mul = 8.0;
+
+ if(!fr->conv16to8_buf){
+ fr->conv16to8_buf = (unsigned char *) malloc(8192);
+ if(!fr->conv16to8_buf) {
+ fr->err = MPG123_ERR_16TO8TABLE;
+ if(NOQUIET) error("Can't allocate 16 to 8 converter table!");
+ return -1;
+ }
+ fr->conv16to8 = fr->conv16to8_buf + 4096;
+ }
+
+ if(fr->af.encoding == MPG123_ENC_ULAW_8){
+ double m=127.0 / log(256.0);
+ int c1;
+
+ for(i=-4096;i<4096;i++) {
+/* dunno whether this is a valid transformation rule ?!?!? */
+ if(i < 0)
+ c1 = 127 - (int) (log( 1.0 - 255.0 * (double) i*mul / 32768.0 ) * m);
+ else
+ c1 = 255 - (int) (log( 1.0 + 255.0 * (double) i*mul / 32768.0 ) * m);
+ if((c1 < 0 || c1 > 255) && NOQUIET) error2("Converror %d %d",i,c1);
+
+ if(c1 == 0)
+ c1 = 2;
+ fr->conv16to8[i] = (unsigned char) c1;
+ }
+ }
+ else if(mode == MPG123_ENC_SIGNED_8) {
+ for(i=-4096;i<4096;i++) {
+ fr->conv16to8[i] = i>>5;
+ }
+ }
+ else if(mode == MPG123_ENC_UNSIGNED_8) {
+ for(i=-4096;i<4096;i++) {
+ fr->conv16to8[i] = (i>>5)+128;
+ }
+ }
+ else {
+ for(i=-4096;i<4096;i++) {
+ fr->conv16to8[i] = 0;
+ }
+ }
+ return 0;
+}
+#endif
+
diff --git a/src/libmpg123/tabinit_mmx.S b/src/libmpg123/tabinit_mmx.S
new file mode 100644
index 0000000..355d5d8
--- /dev/null
+++ b/src/libmpg123/tabinit_mmx.S
@@ -0,0 +1,213 @@
+/*
+ tabinit_mmx: make_decode_tables_mmx
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by the mysterious higway (apparently)
+*/
+
+#include "mangle.h"
+
+.data
+ ALIGN32
+.globl ASM_NAME(costab_mmxsse)
+ASM_NAME(costab_mmxsse):
+ .long 1056974725
+ .long 1057056395
+ .long 1057223771
+ .long 1057485416
+ .long 1057855544
+ .long 1058356026
+ .long 1059019886
+ .long 1059897405
+ .long 1061067246
+ .long 1062657950
+ .long 1064892987
+ .long 1066774581
+ .long 1069414683
+ .long 1073984175
+ .long 1079645762
+ .long 1092815430
+ .long 1057005197
+ .long 1057342072
+ .long 1058087743
+ .long 1059427869
+ .long 1061799040
+ .long 1065862217
+ .long 1071413542
+ .long 1084439708
+ .long 1057128951
+ .long 1058664893
+ .long 1063675095
+ .long 1076102863
+ .long 1057655764
+ .long 1067924853
+ .long 1060439283
+ ALIGN32
+intwinbase:
+ .value 0, -1, -1, -1, -1, -1, -1, -2
+ .value -2, -2, -2, -3, -3, -4, -4, -5
+ .value -5, -6, -7, -7, -8, -9, -10, -11
+ .value -13, -14, -16, -17, -19, -21, -24, -26
+ .value -29, -31, -35, -38, -41, -45, -49, -53
+ .value -58, -63, -68, -73, -79, -85, -91, -97
+ .value -104, -111, -117, -125, -132, -139, -147, -154
+ .value -161, -169, -176, -183, -190, -196, -202, -208
+ .value -213, -218, -222, -225, -227, -228, -228, -227
+ .value -224, -221, -215, -208, -200, -189, -177, -163
+ .value -146, -127, -106, -83, -57, -29, 2, 36
+ .value 72, 111, 153, 197, 244, 294, 347, 401
+ .value 459, 519, 581, 645, 711, 779, 848, 919
+ .value 991, 1064, 1137, 1210, 1283, 1356, 1428, 1498
+ .value 1567, 1634, 1698, 1759, 1817, 1870, 1919, 1962
+ .value 2001, 2032, 2057, 2075, 2085, 2087, 2080, 2063
+ .value 2037, 2000, 1952, 1893, 1822, 1739, 1644, 1535
+ .value 1414, 1280, 1131, 970, 794, 605, 402, 185
+ .value -45, -288, -545, -814, -1095, -1388, -1692, -2006
+ .value -2330, -2663, -3004, -3351, -3705, -4063, -4425, -4788
+ .value -5153, -5517, -5879, -6237, -6589, -6935, -7271, -7597
+ .value -7910, -8209, -8491, -8755, -8998, -9219, -9416, -9585
+ .value -9727, -9838, -9916, -9959, -9966, -9935, -9863, -9750
+ .value -9592, -9389, -9139, -8840, -8492, -8092, -7640, -7134
+ .value -6574, -5959, -5288, -4561, -3776, -2935, -2037, -1082
+ .value -70, 998, 2122, 3300, 4533, 5818, 7154, 8540
+ .value 9975, 11455, 12980, 14548, 16155, 17799, 19478, 21189
+ .value 22929, 24694, 26482, 28289, 30112, 31947,-26209,-24360
+ .value -22511,-20664,-18824,-16994,-15179,-13383,-11610, -9863
+ .value -8147, -6466, -4822, -3222, -1667, -162, 1289, 2684
+ .value 4019, 5290, 6494, 7629, 8692, 9679, 10590, 11420
+ .value 12169, 12835, 13415, 13908, 14313, 14630, 14856, 14992
+ .value 15038
+
+intwindiv:
+ .long 0x47800000 # 65536.0
+.text
+ ALIGN32
+/* void make_decode_tables_mmx_asm(long scaleval, float* decwin_mmx, float *decwins); */
+.globl ASM_NAME(make_decode_tables_mmx_asm)
+ASM_NAME(make_decode_tables_mmx_asm):
+ pushl %edi
+ pushl %esi
+ pushl %ebx
+/* stack: 0=ebx, 4=esi, 8=edi, 12=back, 16=scaleval, 20=decwin_mmx, 24=decwins */
+
+ xorl %ecx,%ecx
+ xorl %ebx,%ebx
+ movl $32,%esi
+ movl $intwinbase,%edi
+ negl 16(%esp) /* scaleval */
+ pushl $2 /* intwinbase step */
+/* stack: 20=scaleval 24=decwin_mmx, 28=decwins */
+.L00:
+ cmpl $528,%ecx
+ jnc .L02
+ movswl (%edi),%eax
+ cmpl $intwinbase+444,%edi
+ jc .L01
+ addl $60000,%eax
+.L01:
+ pushl %eax
+/* stack: 24=scaleval 28=decwin_mmx, 32=decwins */
+ fildl (%esp)
+ fdivs intwindiv
+ fimull 24(%esp) /* scaleval */
+/* eax used to be popped the line before... I'll just use it here a bit */
+ movl 28(%esp),%eax /* decwin_mmx */
+ fsts (%eax,%ecx,4)
+ fstps 64(%eax,%ecx,4)
+ popl %eax
+/* stack: 20=scaleval 24=decwin_mmx, 28=decwins */
+.L02:
+ leal -1(%esi),%edx
+ and %ebx,%edx
+ cmp $31,%edx
+ jnz .L03
+ addl $-1023,%ecx
+ test %esi,%ebx
+ jz .L03
+ negl 20(%esp)
+.L03:
+ addl %esi,%ecx
+ addl (%esp),%edi
+ incl %ebx
+ cmpl $intwinbase,%edi
+ jz .L04
+ cmp $256,%ebx
+ jnz .L00
+ negl (%esp)
+ jmp .L00
+.L04:
+ popl %eax
+
+ xorl %ecx,%ecx
+ xorl %ebx,%ebx
+ pushl $2 /* paired with popl above */
+.L05:
+ cmpl $528,%ecx
+ jnc .L11
+ movswl (%edi),%eax
+ cmpl $intwinbase+444,%edi
+ jc .L06
+ addl $60000,%eax
+.L06:
+ cltd
+ imull 20(%esp)
+ shrdl $17,%edx,%eax
+ cmpl $32767,%eax
+ movl $1055,%edx
+ jle .L07
+ movl $32767,%eax
+ jmp .L08
+.L07:
+ cmpl $-32767,%eax
+ jge .L08
+ movl $-32767,%eax
+.L08:
+/* going to use ebx for decwins, watch the jumps */
+ pushl %ebx
+/* stack: 24=scaleval 28=decwin_mmx, 32=decwins */
+ movl 32(%esp),%ebx
+ cmpl $512,%ecx
+ jnc .L09
+ subl %ecx,%edx
+ movw %ax,(%ebx,%edx,2) /* decwins */
+ movw %ax,-32(%ebx,%edx,2)
+.L09:
+ testl $1,%ecx
+ jnz .L10
+ negl %eax
+.L10:
+ movw %ax,(%ebx,%ecx,2)
+ movw %ax,32(%ebx,%ecx,2)
+ popl %ebx /* that has to match the pushl before */
+.L11:
+ leal -1(%esi),%edx
+ and %ebx,%edx
+ cmp $31,%edx
+ jnz .L12
+ addl $-1023,%ecx
+ test %esi,%ebx
+ jz .L12
+ negl 20(%esp)
+.L12:
+ addl %esi,%ecx
+ addl (%esp),%edi
+ incl %ebx
+ cmpl $intwinbase,%edi
+ jz .L13
+ cmp $256,%ebx
+ jnz .L05
+ negl (%esp)
+ jmp .L05
+.L13:
+ popl %eax
+
+ popl %ebx
+ popl %esi
+ popl %edi
+ ret
+
+/* Mark non-executable stack. */
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endif
diff --git a/src/libmpg123/testcpu.c b/src/libmpg123/testcpu.c
new file mode 100644
index 0000000..bacd6c1
--- /dev/null
+++ b/src/libmpg123/testcpu.c
@@ -0,0 +1,35 @@
+/*
+ testcpu: standalone CPU flags tester
+
+ copyright 2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include <stdio.h>
+#include "getcpuflags.h"
+
+int main()
+{
+ int family;
+ struct cpuflags flags;
+ if(!getcpuflags(&flags)){ printf("CPU won't do cpuid (some old i386 or i486)\n"); return 0; }
+ family = (flags.id & 0xf00)>>8;
+ printf("family: %i\n", family);
+ printf("stdcpuflags: 0x%08x\n", flags.std);
+ printf("std2cpuflags: 0x%08x\n", flags.std2);
+ printf("extcpuflags: 0x%08x\n", flags.ext);
+ if(cpu_i586(flags))
+ {
+ printf("A i586 or better cpu with:");
+ if(cpu_mmx(flags)) printf(" mmx");
+ if(cpu_3dnow(flags)) printf(" 3dnow");
+ if(cpu_3dnowext(flags)) printf(" 3dnowext");
+ if(cpu_sse(flags)) printf(" sse");
+ if(cpu_sse2(flags)) printf(" sse2");
+ if(cpu_sse3(flags)) printf(" sse3");
+ printf("\n");
+ }
+ else printf("I guess you have some i486\n");
+ return 0;
+}
diff --git a/src/libmpg123/true.h b/src/libmpg123/true.h
new file mode 100644
index 0000000..f40452c
--- /dev/null
+++ b/src/libmpg123/true.h
@@ -0,0 +1,14 @@
+/*
+ true: a trivial truth
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http:#mpg123.org
+*/
+
+#ifndef MPG123_H_TRUE
+#define MPG123_H_TRUE
+
+#define FALSE 0
+#define TRUE 1
+
+#endif
diff --git a/src/local.c b/src/local.c
new file mode 100644
index 0000000..722bbb2
--- /dev/null
+++ b/src/local.c
@@ -0,0 +1,63 @@
+/*
+ local: some stuff for localisation
+
+ Currently, this is just about determining if we got UTF-8 locale.
+
+ copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis, based on a patch by Thorsten Glaser.
+*/
+
+#include "config.h"
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
+#ifdef HAVE_LANGINFO_H
+#include <langinfo.h>
+#endif
+#include "compat.h"
+#include "mpg123app.h"
+#include "debug.h"
+
+int utf8env = 0;
+
+/* Check some language variable for UTF-8-ness. */
+static int is_utf8(const char *lang);
+
+void check_locale(void)
+{
+ if(param.force_utf8) utf8env = 1;
+ else
+ {
+ const char *cp;
+
+ /* Check for env vars in proper oder. */
+ if((cp = getenv("LC_ALL")) == NULL && (cp = getenv("LC_CTYPE")) == NULL)
+ cp = getenv("LANG");
+
+ if(is_utf8(cp)) utf8env = 1;
+ }
+
+#if defined(HAVE_SETLOCALE) && defined(LC_CTYPE)
+ /* To query, we need to set from environment... */
+ if(!utf8env && is_utf8(setlocale(LC_CTYPE, ""))) utf8env = 1;
+#endif
+#if defined(HAVE_NL_LANGINFO) && defined(CODESET)
+ /* ...langinfo works after we set a locale, eh? So it makes sense after setlocale, if only. */
+ if(!utf8env && is_utf8(nl_langinfo(CODESET))) utf8env = 1;
+#endif
+
+ debug1("UTF-8 locale: %i", utf8env);
+}
+
+static int is_utf8(const char *lang)
+{
+ if(lang == NULL) return 0;
+
+ /* Now, if the variable mentions UTF-8 anywhere, in some variation, the locale is UTF-8. */
+ if( strstr(lang, "UTF-8") || strstr(lang, "utf-8")
+ || strstr(lang, "UTF8") || strstr(lang, "utf8") )
+ return 1;
+ else
+ return 0;
+}
diff --git a/src/local.h b/src/local.h
new file mode 100644
index 0000000..9594cec
--- /dev/null
+++ b/src/local.h
@@ -0,0 +1,21 @@
+#ifndef H_LOCAL
+#define H_LOCAL
+/*
+ local: some stuff for localisation
+
+ Currently, this is just about determining if we got UTF-8 locale.
+
+ copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis, based on a patch by Thorsten Glaser.
+*/
+
+/* Pulled in by mpg123app.h! */
+
+/* This is 1 if check_locale found UTF-8, 0 if not. */
+extern int utf8env;
+
+/* Check/set locale, set the utf8env variable. */
+void check_locale(void);
+
+#endif
diff --git a/src/metaprint.c b/src/metaprint.c
new file mode 100644
index 0000000..d3cba1a
--- /dev/null
+++ b/src/metaprint.c
@@ -0,0 +1,328 @@
+/*
+ id3print: display routines for ID3 tags (including filtering of UTF8 to ASCII)
+
+ copyright 2006-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#include "mpg123app.h"
+#include "genre.h"
+#include "debug.h"
+
+static void utf8_ascii(mpg123_string *dest, mpg123_string *source);
+static void transform(mpg123_string *dest, mpg123_string *source)
+{
+ debug("transform!");
+ if(source == NULL) return;
+
+ if(utf8env) mpg123_copy_string(source, dest);
+ else utf8_ascii(dest, source);
+}
+
+/* print tags... limiting the UTF-8 to ASCII */
+void print_id3_tag(mpg123_handle *mh, int long_id3, FILE *out)
+{
+ char genre_from_v1 = 0;
+ enum { TITLE=0, ARTIST, ALBUM, COMMENT, YEAR, GENRE, FIELDS } ti;
+ mpg123_string tag[FIELDS];
+ mpg123_id3v1 *v1;
+ mpg123_id3v2 *v2;
+ /* no memory allocated here, so return is safe */
+ for(ti=0; ti<FIELDS; ++ti) mpg123_init_string(&tag[ti]);
+ /* extract the data */
+ mpg123_id3(mh, &v1, &v2);
+ /* Only work if something there... */
+ if(v1 == NULL && v2 == NULL) return;
+ if(v2 != NULL) /* fill from ID3v2 data */
+ {
+ transform(&tag[TITLE], v2->title);
+ transform(&tag[ARTIST], v2->artist);
+ transform(&tag[ALBUM], v2->album);
+ transform(&tag[COMMENT], v2->comment);
+ transform(&tag[YEAR], v2->year);
+ transform(&tag[GENRE], v2->genre);
+ }
+ if(v1 != NULL) /* fill gaps with ID3v1 data */
+ {
+ /* I _could_ skip the recalculation of fill ... */
+ if(!tag[TITLE].fill)
+ {
+ if(tag[TITLE].size >= 31 || mpg123_resize_string(&tag[TITLE], 31))
+ {
+ strncpy(tag[TITLE].p,v1->title,30);
+ tag[TITLE].p[30] = 0;
+ tag[TITLE].fill = strlen(tag[TITLE].p) + 1;
+ }
+ }
+ if(!tag[ARTIST].fill)
+ {
+ if(tag[ARTIST].size >= 31 || mpg123_resize_string(&tag[ARTIST],31))
+ {
+ strncpy(tag[ARTIST].p,v1->artist,30);
+ tag[ARTIST].p[30] = 0;
+ tag[ARTIST].fill = strlen(tag[ARTIST].p) + 1;
+ }
+ }
+ if(!tag[ALBUM].fill)
+ {
+ if(tag[ALBUM].size >= 31 || mpg123_resize_string(&tag[ALBUM],31))
+ {
+ strncpy(tag[ALBUM].p,v1->album,30);
+ tag[ALBUM].p[30] = 0;
+ tag[ALBUM].fill = strlen(tag[ALBUM].p) + 1;
+ }
+ }
+ if(!tag[COMMENT].fill)
+ {
+ if(tag[COMMENT].size >= 31 || mpg123_resize_string(&tag[COMMENT],31))
+ {
+ strncpy(tag[COMMENT].p,v1->comment,30);
+ tag[COMMENT].p[30] = 0;
+ tag[COMMENT].fill = strlen(tag[COMMENT].p) + 1;
+ }
+ }
+ if(!tag[YEAR].fill)
+ {
+ if(tag[YEAR].size >= 5 || mpg123_resize_string(&tag[YEAR],5))
+ {
+ strncpy(tag[YEAR].p,v1->year,4);
+ tag[YEAR].p[4] = 0;
+ tag[YEAR].fill = strlen(tag[YEAR].p) + 1;
+ }
+ }
+ /*
+ genre is special... v1->genre holds an index, id3v2 genre may contain indices in textual form and raw textual genres...
+ */
+ if(!tag[GENRE].fill)
+ {
+ if(tag[GENRE].size >= 31 || mpg123_resize_string(&tag[GENRE],31))
+ {
+ if(v1->genre <= genre_count)
+ {
+ strncpy(tag[GENRE].p, genre_table[v1->genre], 30);
+ }
+ else
+ {
+ strncpy(tag[GENRE].p,"Unknown",30);
+ }
+ tag[GENRE].p[30] = 0;
+ tag[GENRE].fill = strlen(tag[GENRE].p) + 1;
+ genre_from_v1 = 1;
+ }
+ }
+ }
+
+ if(tag[GENRE].fill && !genre_from_v1)
+ {
+ /*
+ id3v2.3 says (id)(id)blabla and in case you want ot have (blabla) write ((blabla)
+ also, there is
+ (RX) Remix
+ (CR) Cover
+ id3v2.4 says
+ "one or several of the ID3v1 types as numerical strings"
+ or define your own (write strings), RX and CR
+
+ Now I am very sure that I'll encounter hellishly mixed up id3v2 frames, so try to parse both at once.
+ */
+ mpg123_string tmp;
+ mpg123_init_string(&tmp);
+ debug1("interpreting genre: %s\n", tag[GENRE].p);
+ if(mpg123_copy_string(&tag[GENRE], &tmp))
+ {
+ size_t num = 0;
+ size_t nonum = 0;
+ size_t i;
+ enum { nothing, number, outtahere } state = nothing;
+ tag[GENRE].fill = 0; /* going to be refilled */
+ /* number\n -> id3v1 genre */
+ /* (number) -> id3v1 genre */
+ /* (( -> ( */
+ for(i = 0; i < tmp.fill; ++i)
+ {
+ debug1("i=%lu", (unsigned long) i);
+ switch(state)
+ {
+ case nothing:
+ nonum = i;
+ if(tmp.p[i] == '(')
+ {
+ num = i+1; /* number starting as next? */
+ state = number;
+ debug1("( before number at %lu?", (unsigned long) num);
+ }
+ /* you know an encoding where this doesn't work? */
+ else if(tmp.p[i] >= '0' && tmp.p[i] <= '9')
+ {
+ num = i;
+ state = number;
+ debug1("direct number at %lu", (unsigned long) num);
+ }
+ else state = outtahere;
+ break;
+ case number:
+ /* fake number alert: (( -> ( */
+ if(tmp.p[i] == '(')
+ {
+ nonum = i;
+ state = outtahere;
+ debug("no, it was ((");
+ }
+ else if(tmp.p[i] == ')' || tmp.p[i] == '\n' || tmp.p[i] == 0)
+ {
+ if(i-num > 0)
+ {
+ /* we really have a number */
+ int gid;
+ char* genre = "Unknown";
+ tmp.p[i] = 0;
+ gid = atoi(tmp.p+num);
+
+ /* get that genre */
+ if(gid >= 0 && gid <= genre_count) genre = genre_table[gid];
+ debug1("found genre: %s", genre);
+
+ if(tag[GENRE].fill) mpg123_add_string(&tag[GENRE], ", ");
+ mpg123_add_string(&tag[GENRE], genre);
+ nonum = i+1; /* next possible stuff */
+ state = nothing;
+ debug1("had a number: %i", gid);
+ }
+ else
+ {
+ /* wasn't a number, nonum is set */
+ state = outtahere;
+ debug("no (num) thing...");
+ }
+ }
+ else if(!(tmp.p[i] >= '0' && tmp.p[i] <= '9'))
+ {
+ /* no number at last... */
+ state = outtahere;
+ debug("nothing numeric here");
+ }
+ else
+ {
+ debug("still number...");
+ }
+ break;
+ default: break;
+ }
+ if(state == outtahere) break;
+ }
+ if(nonum < tmp.fill-1)
+ {
+ if(tag[GENRE].fill) mpg123_add_string(&tag[GENRE], ", ");
+ mpg123_add_string(&tag[GENRE], tmp.p+nonum);
+ }
+ }
+ mpg123_free_string(&tmp);
+ }
+
+ if(long_id3)
+ {
+ fprintf(out,"\n");
+ /* print id3v2 */
+ /* dammed, I use pointers as bool again! It's so convenient... */
+ fprintf(out,"\tTitle: %s\n", tag[TITLE].fill ? tag[TITLE].p : "");
+ fprintf(out,"\tArtist: %s\n", tag[ARTIST].fill ? tag[ARTIST].p : "");
+ fprintf(out,"\tAlbum: %s\n", tag[ALBUM].fill ? tag[ALBUM].p : "");
+ fprintf(out,"\tYear: %s\n", tag[YEAR].fill ? tag[YEAR].p : "");
+ fprintf(out,"\tGenre: %s\n", tag[GENRE].fill ? tag[GENRE].p : "");
+ fprintf(out,"\tComment: %s\n", tag[COMMENT].fill ? tag[COMMENT].p : "");
+ fprintf(out,"\n");
+ }
+ else
+ {
+ /* We are trying to be smart here and conserve vertical space.
+ So we will skip tags not set, and try to show them in two parallel columns if they are short, which is by far the most common case. */
+ /* one _could_ circumvent the strlen calls... */
+ if(tag[TITLE].fill && tag[ARTIST].fill && strlen(tag[TITLE].p) <= 30 && strlen(tag[TITLE].p) <= 30)
+ {
+ fprintf(out,"Title: %-30s Artist: %s\n",tag[TITLE].p,tag[ARTIST].p);
+ }
+ else
+ {
+ if(tag[TITLE].fill) fprintf(out,"Title: %s\n", tag[TITLE].p);
+ if(tag[ARTIST].fill) fprintf(out,"Artist: %s\n", tag[ARTIST].p);
+ }
+ if(tag[COMMENT].fill && tag[ALBUM].fill && strlen(tag[COMMENT].p) <= 30 && strlen(tag[ALBUM].p) <= 30)
+ {
+ fprintf(out,"Comment: %-30s Album: %s\n",tag[COMMENT].p,tag[ALBUM].p);
+ }
+ else
+ {
+ if(tag[COMMENT].fill)
+ fprintf(out,"Comment: %s\n", tag[COMMENT].p);
+ if(tag[ALBUM].fill)
+ fprintf(out,"Album: %s\n", tag[ALBUM].p);
+ }
+ if(tag[YEAR].fill && tag[GENRE].fill && strlen(tag[YEAR].p) <= 30 && strlen(tag[GENRE].p) <= 30)
+ {
+ fprintf(out,"Year: %-30s Genre: %s\n",tag[YEAR].p,tag[GENRE].p);
+ }
+ else
+ {
+ if(tag[YEAR].fill)
+ fprintf(out,"Year: %s\n", tag[YEAR].p);
+ if(tag[GENRE].fill)
+ fprintf(out,"Genre: %s\n", tag[GENRE].p);
+ }
+ }
+ for(ti=0; ti<FIELDS; ++ti) mpg123_free_string(&tag[ti]);
+}
+
+void print_icy(mpg123_handle *mh, FILE *outstream)
+{
+ char* icy;
+ if(MPG123_OK == mpg123_icy(mh, &icy))
+ {
+ char *icy_decoded = mpg123_icy2utf8(icy);
+ if(icy_decoded != NULL)
+ {
+ mpg123_string in;
+ mpg123_init_string(&in);
+ if(mpg123_set_string(&in, icy_decoded))
+ {
+ mpg123_string out;
+ mpg123_init_string(&out);
+
+ transform(&out, &in);
+ if(out.fill)
+ fprintf(outstream, "\nICY-META: %s\n", out.p);
+
+ mpg123_free_string(&out);
+ }
+ mpg123_free_string(&in);
+ }
+ }
+}
+
+static void utf8_ascii(mpg123_string *dest, mpg123_string *source)
+{
+ size_t spos = 0;
+ size_t dlen = 0;
+ char *p;
+ /* Find length, continuation bytes don't count. */
+ for(spos=0; spos < source->fill; ++spos)
+ if((source->p[spos] & 0xc0) == 0x80) continue;
+ else ++dlen;
+
+ if(!mpg123_resize_string(dest, dlen)){ mpg123_free_string(dest); return; }
+ /* Just ASCII, we take it easy. */
+ p = dest->p;
+ for(spos=0; spos < source->fill; ++spos)
+ {
+ /* UTF-8 continuation byte 0x10?????? */
+ if((source->p[spos] & 0xc0) == 0x80) continue;
+ /* UTF-8 lead byte 0x11?????? */
+ else if(source->p[spos] & 0x80) *p = '*';
+ /* just ASCII, 0x0??????? */
+ else *p = source->p[spos];
+
+ ++p; /* next output char */
+ }
+ if(dest->size) dest->p[dest->size-1] = 0;
+ dest->fill = dest->size; /* The one extra 0 is unaccounted. */
+}
diff --git a/src/metaprint.h b/src/metaprint.h
new file mode 100644
index 0000000..3b50d7f
--- /dev/null
+++ b/src/metaprint.h
@@ -0,0 +1,17 @@
+/*
+ metaprint: display of meta data (including filtering of UTF8 to ASCII)
+
+ copyright 2006-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+*/
+
+#ifndef MPG123_METAPRINT_H
+#define MPG123_METAPRINT_H
+
+#include "mpg123app.h"
+
+void print_id3_tag(mpg123_handle *mh, int long_meta, FILE *out);
+void print_icy(mpg123_handle *mh, FILE *out);
+
+#endif
diff --git a/src/module.c b/src/module.c
new file mode 100644
index 0000000..485af6f
--- /dev/null
+++ b/src/module.c
@@ -0,0 +1,287 @@
+/*
+ module.c: modular code loader
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Nicholas J Humfrey
+*/
+
+#include <dirent.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <errno.h>
+#include <ctype.h>
+#include <ltdl.h>
+
+#include "mpg123app.h"
+#include "debug.h"
+
+#ifndef HAVE_LTDL
+#error Cannot build without LTDL library support
+#endif
+
+#define MODULE_FILE_SUFFIX ".la"
+#define MODULE_SYMBOL_PREFIX "mpg123_"
+#define MODULE_SYMBOL_SUFFIX "_module_info"
+
+/* It's nasty to hardcode that here...
+ also it does need hacking around libtool's hardcoded .la paths:
+ When the .la file is in the same dir as .so file, you need libdir='.' in there. */
+static const char* modulesearch[] =
+{
+ "../lib/mpg123"
+ ,"plugins"
+};
+
+static char *get_the_cwd(); /* further down... */
+static char *get_module_dir()
+{
+ /* Either PKGLIBDIR is accessible right away or we search for some possible plugin dirs relative to binary path. */
+ DIR* dir = NULL;
+ char *moddir = NULL;
+ const char *defaultdir;
+ /* Compiled-in default module dir or environment variable MPG123_MODDIR. */
+ defaultdir = getenv("MPG123_MODDIR");
+ if(defaultdir == NULL)
+ defaultdir=PKGLIBDIR;
+
+ dir = opendir(defaultdir);
+ if(dir != NULL)
+ {
+ size_t l = strlen(defaultdir);
+ moddir = malloc(l+1);
+ if(moddir != NULL)
+ {
+ strcpy(moddir, defaultdir);
+ moddir[l] = 0;
+ }
+ closedir(dir);
+ }
+ else /* Search relative to binary. */
+ {
+ size_t i;
+ for(i=0; i<sizeof(modulesearch)/sizeof(char*); ++i)
+ {
+ const char *testpath = modulesearch[i];
+ size_t l;
+ if(binpath != NULL) l = strlen(binpath) + strlen(testpath) + 1;
+ else l = strlen(testpath);
+
+ moddir = malloc(l+1);
+ if(moddir != NULL)
+ {
+ if(binpath==NULL) /* a copy of testpath, when there is no prefix */
+ snprintf(moddir, l+1, "%s", testpath);
+ else
+ snprintf(moddir, l+1, "%s/%s", binpath, testpath);
+
+ moddir[l] = 0;
+ debug1("Looking for module dir: %s", moddir);
+
+ dir = opendir(moddir);
+ closedir(dir);
+
+ if(dir != NULL) break; /* found it! */
+ else{ free(moddir); moddir=NULL; }
+ }
+ }
+ }
+ debug1("module dir: %s", moddir != NULL ? moddir : "<nil>");
+ return moddir;
+}
+
+/* Open a module */
+mpg123_module_t*
+open_module( const char* type, const char* name )
+{
+ lt_dlhandle handle = NULL;
+ mpg123_module_t *module = NULL;
+ char* module_path = NULL;
+ size_t module_path_len = 0;
+ char* module_symbol = NULL;
+ size_t module_symbol_len = 0;
+ char *workdir = NULL;
+ char *moddir = NULL;
+ workdir = get_the_cwd();
+ moddir = get_module_dir();
+ if(workdir == NULL || moddir == NULL)
+ {
+ error("Failure getting workdir or moddir!");
+ if(workdir != NULL) free(workdir);
+ if(moddir != NULL) free(moddir);
+ return NULL;
+ }
+
+ /* Initialize libltdl */
+ if (lt_dlinit()) error( "Failed to initialise libltdl" );
+
+ if(chdir(moddir) != 0)
+ {
+ error2("Failed to enter module directory %s: %s", moddir, strerror(errno));
+ goto om_bad;
+ }
+ /* Work out the path of the module to open */
+ module_path_len = strlen(type) + 1 + strlen(name) + strlen(MODULE_FILE_SUFFIX) + 1;
+ module_path = malloc( module_path_len );
+ if (module_path == NULL) {
+ error1( "Failed to allocate memory for module name: %s", strerror(errno) );
+ goto om_bad;
+ }
+ snprintf( module_path, module_path_len, "%s_%s%s", type, name, MODULE_FILE_SUFFIX );
+ /* Display the path of the module created */
+ debug1( "Module path: %s", module_path );
+
+ /* Open the module */
+ handle = lt_dlopen( module_path );
+ free( module_path );
+ if (handle==NULL) {
+ error2( "Failed to open module %s: %s", name, lt_dlerror() );
+ goto om_bad;
+ }
+
+ /* Work out the symbol name */
+ module_symbol_len = strlen( MODULE_SYMBOL_PREFIX ) +
+ strlen( type ) +
+ strlen( MODULE_SYMBOL_SUFFIX ) + 1;
+ module_symbol = malloc(module_symbol_len);
+ snprintf( module_symbol, module_symbol_len, "%s%s%s", MODULE_SYMBOL_PREFIX, type, MODULE_SYMBOL_SUFFIX );
+ debug1( "Module symbol: %s", module_symbol );
+
+ /* Get the information structure from the module */
+ module = (mpg123_module_t*)lt_dlsym(handle, module_symbol );
+ free( module_symbol );
+ if (module==NULL) {
+ error1( "Failed to get module symbol: %s", lt_dlerror() );
+ goto om_latebad;
+ }
+
+ /* Check the API version */
+ if (MPG123_MODULE_API_VERSION > module->api_version) {
+ error( "API version of module is too old" );
+ goto om_latebad;
+ } else if (MPG123_MODULE_API_VERSION > module->api_version) {
+ error( "API version of module is too new" );
+ goto om_latebad;
+ }
+
+ /* Store handle in the data structure */
+ module->handle = handle;
+
+ goto om_end;
+om_latebad:
+ lt_dlclose( handle );
+om_bad:
+ module = NULL;
+om_end:
+ chdir(workdir);
+ free(moddir);
+ free(workdir);
+ return module;
+}
+
+
+void close_module( mpg123_module_t* module )
+{
+ lt_dlhandle handle = module->handle;
+ int err = lt_dlclose( handle );
+
+ if (err) error1("Failed to close module: %s", lt_dlerror() );
+
+}
+
+#define PATH_STEP 50
+static char *get_the_cwd()
+{
+ size_t bs = PATH_STEP;
+ char *buf = malloc(bs);
+ while((buf != NULL) && getcwd(buf, bs) == NULL)
+ {
+ char *buf2;
+ buf2 = realloc(buf, bs+=PATH_STEP);
+ if(buf2 == NULL){ free(buf); buf = NULL; }
+ else debug1("pwd: increased buffer to %lu", (unsigned long)bs);
+
+ buf = buf2;
+ }
+ return buf;
+}
+
+void list_modules()
+{
+ DIR* dir = NULL;
+ struct dirent *dp = NULL;
+ char *workdir = NULL;
+ char *moddir = NULL;
+
+ moddir = get_module_dir();
+ /* Open the module directory */
+ dir = opendir(moddir);
+ if (dir==NULL) {
+ error2("Failed to open the module directory (%s): %s\n", PKGLIBDIR, strerror(errno));
+ free(moddir);
+ exit(-1);
+ }
+
+ workdir = get_the_cwd();
+ if(chdir(moddir) != 0)
+ {
+ error2("Failed to enter module directory (%s): %s\n", PKGLIBDIR, strerror(errno));
+ closedir( dir );
+ free(workdir);
+ free(moddir);
+ exit(-1);
+ }
+ /* Display the program title */
+ /* print_title(stderr); */
+
+ /* List the output modules */
+ printf("\n");
+ printf("Available modules\n");
+ printf("-----------------\n");
+
+ while( (dp = readdir(dir)) != NULL ) {
+ struct stat fst;
+ if(stat(dp->d_name, &fst) != 0) continue;
+ if(S_ISREG(fst.st_mode)) /* Allow links? */
+ {
+ char* ext = dp->d_name + strlen( dp->d_name ) - strlen( MODULE_FILE_SUFFIX );
+ if (strcmp(ext, MODULE_FILE_SUFFIX) == 0)
+ {
+ char *module_name = NULL;
+ char *module_type = NULL;
+ char *uscore_pos = NULL;
+ mpg123_module_t *module = NULL;
+
+ /* Extract the module type */
+ module_type = strdup( dp->d_name );
+ uscore_pos = strchr( module_type, '_' );
+ if (uscore_pos==NULL) continue;
+ if (uscore_pos>=module_type+strlen(module_type)+1) continue;
+ *uscore_pos = '\0';
+
+ /* Extract the short name of the module */
+ module_name = strdup( dp->d_name + strlen( module_type ) + 1 );
+ module_name[ strlen( module_name ) - strlen( MODULE_FILE_SUFFIX ) ] = '\0';
+
+ /* Open the module */
+ module = open_module( module_type, module_name );
+ if (module) {
+ printf("%-15s%s %s\n", module->name, module_type, module->description );
+
+ /* Close the module again */
+ close_module( module );
+ }
+
+ free( module_name );
+ }
+ }
+ }
+
+ chdir(workdir);
+ free(workdir);
+ closedir( dir );
+ free(moddir);
+ exit(0);
+}
+
+
diff --git a/src/module.h b/src/module.h
new file mode 100644
index 0000000..b2e5ffb
--- /dev/null
+++ b/src/module.h
@@ -0,0 +1,48 @@
+/*
+ module: module loading and listing interface
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+*/
+
+#ifndef _MPG123_MODULE_H_
+#define _MPG123_MODULE_H_
+
+/* Pulled in by mpg123app.h! */
+
+#ifdef HAVE_LTDL
+#include <ltdl.h>
+#endif
+
+#define MPG123_MODULE_API_VERSION (1)
+
+/* The full structure is delared in audio.h */
+struct audio_output_struct;
+
+typedef struct mpg123_module_struct {
+ const int api_version; /* module API version number */
+
+ const char* name; /* short name of the module */
+ const char* description; /* description of what the module does */
+ const char* revision; /* source code revision */
+
+#ifdef HAVE_LTDL
+ lt_dlhandle handle; /* ltdl handle - set by open_module */
+#else
+ void* handle;
+#endif
+
+ /* Initialisers - set to NULL if unsupported by module */
+ int (*init_output)(struct audio_output_struct* ao); /* audio output - returns 0 on success */
+
+} mpg123_module_t;
+
+
+
+/* ------ Declarations from "module.c" ------ */
+
+mpg123_module_t* open_module( const char* type, const char* name );
+void close_module( mpg123_module_t* module );
+void list_modules();
+
+#endif
diff --git a/src/mpg123.c b/src/mpg123.c
new file mode 100644
index 0000000..f2417fb
--- /dev/null
+++ b/src/mpg123.c
@@ -0,0 +1,1254 @@
+/*
+ mpg123: main code of the program (not of the decoder...)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#define ME "main"
+#include "mpg123app.h"
+#include "mpg123.h"
+#include "local.h"
+
+#ifdef HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+#ifdef HAVE_SYS_RESOURCE_H
+#include <sys/resource.h>
+#endif
+#ifdef WIN32
+#include <windows.h>
+#endif
+
+#include <errno.h>
+#include <string.h>
+#include <fcntl.h>
+#include <time.h>
+
+#ifdef HAVE_SCHED_H
+#include <sched.h>
+#endif
+
+/* be paranoid about setpriority support */
+#ifndef PRIO_PROCESS
+#undef HAVE_SETPRIORITY
+#endif
+
+#include "common.h"
+#include "getlopt.h"
+#include "buffer.h"
+#include "term.h"
+#include "playlist.h"
+#include "httpget.h"
+#include "metaprint.h"
+#include "httpget.h"
+
+#include "debug.h"
+
+static void usage(int err);
+static void want_usage(char* arg);
+static void long_usage(int err);
+static void want_long_usage(char* arg);
+static void print_title(FILE* o);
+static void give_version(char* arg);
+
+struct parameter param = {
+ FALSE , /* aggressiv */
+ FALSE , /* shuffle */
+ FALSE , /* remote */
+ FALSE , /* remote to stderr */
+ DECODE_AUDIO , /* write samples to audio device */
+ FALSE , /* silent operation */
+ FALSE , /* xterm title on/off */
+ 0 , /* second level buffer size */
+ 0 , /* verbose level */
+ DEFAULT_OUTPUT_MODULE, /* output module */
+ NULL, /* output device */
+ 0, /* destination (headphones, ...) */
+#ifdef HAVE_TERMIOS
+ FALSE , /* term control */
+#endif
+ FALSE , /* checkrange */
+ 0 , /* force_reopen, always (re)opens audio device for next song */
+ /* test_cpu flag is valid for multi and 3dnow.. even if 3dnow is built alone; ensure it appears only once */
+ FALSE , /* normal operation */
+ FALSE, /* try to run process in 'realtime mode' */
+ NULL, /* wav,cdr,au Filename */
+ 0, /* default is to play all titles in playlist */
+ NULL, /* no playlist per default */
+ 0 /* condensed id3 per default */
+ ,0 /* list_cpu */
+ ,NULL /* cpu */
+#ifdef FIFO
+ ,NULL
+#endif
+#ifndef WIN32
+ ,0 /* timeout */
+#endif
+ ,1 /* loop */
+ ,0 /* delay */
+ ,0 /* index */
+ /* Parameters for mpg123 handle, defaults are queried from library! */
+ ,0 /* down_sample */
+ ,0 /* rva */
+ ,0 /* halfspeed */
+ ,0 /* doublespeed */
+ ,0 /* start_frame */
+ ,-1 /* frame_number */
+ ,0 /* outscale */
+ ,0 /* flags */
+ ,0 /* force_rate */
+ ,1 /* ICY */
+ ,1024 /* resync_limit */
+ ,0 /* smooth */
+ ,0.0 /* pitch */
+ ,0 /* ignore_mime */
+ ,NULL /* proxyurl */
+ ,0 /* keep_open */
+ ,0 /* force_utf8 */
+ ,INDEX_SIZE
+ ,NULL /* force_encoding */
+ ,1. /* preload */
+ ,-1 /* preframes */
+ ,-1 /* gain */
+};
+
+mpg123_handle *mh = NULL;
+off_t framenum;
+off_t frames_left;
+audio_output_t *ao = NULL;
+txfermem *buffermem = NULL;
+char *prgName = NULL;
+/* ThOr: pointers are not TRUE or FALSE */
+char *equalfile = NULL;
+struct httpdata htd;
+int fresh = TRUE;
+int have_output = FALSE; /* If we are past the output init step. */
+
+int buffer_fd[2];
+int buffer_pid;
+size_t bufferblock = 0;
+
+static int intflag = FALSE;
+static int skip_tracks = 0;
+int OutputDescriptor;
+static int filept = -1;
+char *binpath; /* Path to myself. */
+
+void set_intflag()
+{
+ debug("set_intflag TRUE");
+ intflag = TRUE;
+ skip_tracks = 0;
+}
+
+#if !defined(WIN32) && !defined(GENERIC)
+static void catch_interrupt(void)
+{
+ intflag = TRUE;
+}
+#endif
+
+/* oh, what a mess... */
+void next_track(void)
+{
+ intflag = TRUE;
+ ++skip_tracks;
+}
+
+void prev_track(void)
+{
+ if(pl.pos > 2) pl.pos -= 2;
+ else pl.pos = 0;
+
+ next_track();
+}
+
+void safe_exit(int code)
+{
+ char *dummy, *dammy;
+#ifdef HAVE_TERMIOS
+ if(param.term_ctrl)
+ term_restore();
+#endif
+ if(have_output) exit_output(ao, intflag);
+
+ if(mh != NULL) mpg123_delete(mh);
+
+ mpg123_exit();
+ httpdata_free(&htd);
+ /* It's ugly... but let's just fix this still-reachable memory chunk of static char*. */
+ split_dir_file("", &dummy, &dammy);
+ exit(code);
+}
+
+/* returns 1 if reset_audio needed instead */
+static void set_output_module( char *arg )
+{
+ int i;
+
+ /* Search for a colon and set the device if found */
+ for(i=0; i< strlen( arg ); i++) {
+ if (arg[i] == ':') {
+ arg[i] = 0;
+ param.output_device = &arg[i+1];
+ debug1("Setting output device: %s", param.output_device);
+ break;
+ }
+ }
+ /* Set the output module */
+ param.output_module = arg;
+ debug1("Setting output module: %s", param.output_module );
+}
+
+static void set_output_flag(int flag)
+{
+ if(param.output_flags <= 0) param.output_flags = flag;
+ else param.output_flags |= flag;
+}
+
+static void set_output_h(char *a)
+{
+ set_output_flag(AUDIO_OUT_HEADPHONES);
+}
+
+static void set_output_s(char *a)
+{
+ set_output_flag(AUDIO_OUT_INTERNAL_SPEAKER);
+}
+
+static void set_output_l(char *a)
+{
+ set_output_flag(AUDIO_OUT_LINE_OUT);
+}
+
+static void set_output(char *arg)
+{
+ /* If single letter, it's the legacy output switch for AIX/HP/Sun.
+ If longer, it's module[:device] . If zero length, it's rubbish. */
+ if(strlen(arg) <= 1) switch(arg[0])
+ {
+ case 'h': set_output_h(arg); break;
+ case 's': set_output_s(arg); break;
+ case 'l': set_output_l(arg); break;
+ default:
+ error1("\"%s\" is no valid output", arg);
+ safe_exit(1);
+ }
+ else set_output_module(arg);
+}
+
+static void set_verbose (char *arg)
+{
+ param.verbose++;
+}
+
+static void set_quiet (char *arg)
+{
+ param.verbose=0;
+ param.quiet=TRUE;
+}
+
+static void set_out_wav(char *arg)
+{
+ param.outmode = DECODE_WAV;
+ param.filename = arg;
+}
+
+void set_out_cdr(char *arg)
+{
+ param.outmode = DECODE_CDR;
+ param.filename = arg;
+}
+
+void set_out_au(char *arg)
+{
+ param.outmode = DECODE_AU;
+ param.filename = arg;
+}
+
+static void set_out_file(char *arg)
+{
+ param.outmode=DECODE_FILE;
+ #ifdef WIN32
+ OutputDescriptor=_open(arg,_O_CREAT|_O_WRONLY|_O_BINARY|_O_TRUNC,0666);
+ #else
+ OutputDescriptor=open(arg,O_CREAT|O_WRONLY|O_TRUNC,0666);
+ #endif
+ if(OutputDescriptor==-1)
+ {
+ error2("Can't open %s for writing (%s).\n",arg,strerror(errno));
+ safe_exit(1);
+ }
+}
+
+static void set_out_stdout(char *arg)
+{
+ param.outmode=DECODE_FILE;
+ param.remote_err=TRUE;
+ OutputDescriptor=STDOUT_FILENO;
+ #ifdef WIN32
+ _setmode(STDOUT_FILENO, _O_BINARY);
+ #endif
+}
+
+static void set_out_stdout1(char *arg)
+{
+ param.outmode=DECODE_AUDIOFILE;
+ param.remote_err=TRUE;
+ OutputDescriptor=STDOUT_FILENO;
+ #ifdef WIN32
+ _setmode(STDOUT_FILENO, _O_BINARY);
+ #endif
+}
+
+#ifndef HAVE_SCHED_SETSCHEDULER
+static void realtime_not_compiled(char *arg)
+{
+ fprintf(stderr,"Option '-T / --realtime' not compiled into this binary.\n");
+}
+#endif
+
+static int frameflag; /* ugly, but that's the way without hacking getlopt */
+static void set_frameflag(char *arg)
+{
+ /* Only one mono flag at a time! */
+ if(frameflag & MPG123_FORCE_MONO) param.flags &= ~MPG123_FORCE_MONO;
+ param.flags |= frameflag;
+}
+static void unset_frameflag(char *arg)
+{
+ param.flags &= ~frameflag;
+}
+/* Please note: GLO_NUM expects point to LONG! */
+/* ThOr:
+ * Yeah, and despite that numerous addresses to int variables were
+passed.
+ * That's not good on my Alpha machine with int=32bit and long=64bit!
+ * Introduced GLO_INT and GLO_LONG as different bits to make that clear.
+ * GLO_NUM no longer exists.
+ */
+#ifdef OPT_3DNOW
+static int dnow = 0; /* helper for mapping the old 3dnow options */
+#endif
+topt opts[] = {
+ {'k', "skip", GLO_ARG | GLO_LONG, 0, &param.start_frame, 0},
+ {'2', "2to1", GLO_INT, 0, &param.down_sample, 1},
+ {'4', "4to1", GLO_INT, 0, &param.down_sample, 2},
+ {'t', "test", GLO_INT, 0, &param.outmode, DECODE_TEST},
+ {'s', "stdout", GLO_INT, set_out_stdout, &param.outmode, DECODE_FILE},
+ {'S', "STDOUT", GLO_INT, set_out_stdout1, &param.outmode,DECODE_AUDIOFILE},
+ {'O', "outfile", GLO_ARG | GLO_CHAR, set_out_file, NULL, 0},
+ {'c', "check", GLO_INT, 0, &param.checkrange, TRUE},
+ {'v', "verbose", 0, set_verbose, 0, 0},
+ {'q', "quiet", 0, set_quiet, 0, 0},
+ {'y', "no-resync", GLO_INT, set_frameflag, &frameflag, MPG123_NO_RESYNC},
+ /* compatibility, no-resync is to be used nowadays */
+ {0, "resync", GLO_INT, set_frameflag, &frameflag, MPG123_NO_RESYNC},
+ {'0', "single0", GLO_INT, set_frameflag, &frameflag, MPG123_MONO_LEFT},
+ {0, "left", GLO_INT, set_frameflag, &frameflag, MPG123_MONO_LEFT},
+ {'1', "single1", GLO_INT, set_frameflag, &frameflag, MPG123_MONO_RIGHT},
+ {0, "right", GLO_INT, set_frameflag, &frameflag, MPG123_MONO_RIGHT},
+ {'m', "singlemix", GLO_INT, set_frameflag, &frameflag, MPG123_MONO_MIX},
+ {0, "mix", GLO_INT, set_frameflag, &frameflag, MPG123_MONO_MIX},
+ {0, "mono", GLO_INT, set_frameflag, &frameflag, MPG123_MONO_MIX},
+ {0, "stereo", GLO_INT, set_frameflag, &frameflag, MPG123_FORCE_STEREO},
+ {0, "reopen", GLO_INT, 0, &param.force_reopen, 1},
+ {'g', "gain", GLO_ARG | GLO_LONG, 0, &param.gain, 0},
+ {'r', "rate", GLO_ARG | GLO_LONG, 0, &param.force_rate, 0},
+ {0, "8bit", GLO_INT, set_frameflag, &frameflag, MPG123_FORCE_8BIT},
+ {0, "float", GLO_INT, set_frameflag, &frameflag, MPG123_FORCE_FLOAT},
+ {0, "headphones", 0, set_output_h, 0,0},
+ {0, "speaker", 0, set_output_s, 0,0},
+ {0, "lineout", 0, set_output_l, 0,0},
+ {'o', "output", GLO_ARG | GLO_CHAR, set_output, 0, 0},
+ {0, "list-modules",0, list_modules, NULL, 0},
+ {'a', "audiodevice", GLO_ARG | GLO_CHAR, 0, &param.output_device, 0},
+ {'f', "scale", GLO_ARG | GLO_LONG, 0, &param.outscale, 0},
+ {'n', "frames", GLO_ARG | GLO_LONG, 0, &param.frame_number, 0},
+ #ifdef HAVE_TERMIOS
+ {'C', "control", GLO_INT, 0, &param.term_ctrl, TRUE},
+ #endif
+#ifndef NOXFERMEM
+ {'b', "buffer", GLO_ARG | GLO_LONG, 0, &param.usebuffer, 0},
+ {0, "smooth", GLO_INT, 0, &param.smooth, 1},
+#endif
+ {'R', "remote", GLO_INT, 0, &param.remote, TRUE},
+ {0, "remote-err", GLO_INT, 0, &param.remote_err, TRUE},
+ {'d', "doublespeed", GLO_ARG | GLO_LONG, 0, &param.doublespeed, 0},
+ {'h', "halfspeed", GLO_ARG | GLO_LONG, 0, &param.halfspeed, 0},
+ {'p', "proxy", GLO_ARG | GLO_CHAR, 0, &param.proxyurl, 0},
+ {'@', "list", GLO_ARG | GLO_CHAR, 0, &param.listname, 0},
+ /* 'z' comes from the the german word 'zufall' (eng: random) */
+ {'z', "shuffle", GLO_INT, 0, &param.shuffle, 1},
+ {'Z', "random", GLO_INT, 0, &param.shuffle, 2},
+ {'E', "equalizer", GLO_ARG | GLO_CHAR, 0, &equalfile,1},
+ #ifdef HAVE_SETPRIORITY
+ {0, "aggressive", GLO_INT, 0, &param.aggressive, 2},
+ #endif
+ #ifdef OPT_3DNOW
+#define SET_3DNOW 1
+#define SET_I586 2
+ {0, "force-3dnow", GLO_CHAR, 0, &dnow, SET_3DNOW},
+ {0, "no-3dnow", GLO_CHAR, 0, &dnow, SET_I586},
+ {0, "test-3dnow", GLO_INT, 0, &param.test_cpu, TRUE},
+ #endif
+ {0, "cpu", GLO_ARG | GLO_CHAR, 0, &param.cpu, 0},
+ {0, "test-cpu", GLO_INT, 0, &param.test_cpu, TRUE},
+ {0, "list-cpu", GLO_INT, 0, &param.list_cpu , 1},
+ #ifdef NETWORK
+ {'u', "auth", GLO_ARG | GLO_CHAR, 0, &httpauth, 0},
+ #endif
+ #ifdef HAVE_SCHED_SETSCHEDULER
+ /* check why this should be a long variable instead of int! */
+ {'T', "realtime", GLO_LONG, 0, &param.realtime, TRUE },
+ #else
+ {'T', "realtime", 0, realtime_not_compiled, 0, 0 },
+ #endif
+ {0, "title", GLO_INT, 0, &param.xterm_title, TRUE },
+ {'w', "wav", GLO_ARG | GLO_CHAR, set_out_wav, 0, 0 },
+ {0, "cdr", GLO_ARG | GLO_CHAR, set_out_cdr, 0, 0 },
+ {0, "au", GLO_ARG | GLO_CHAR, set_out_au, 0, 0 },
+ {0, "gapless", GLO_INT, set_frameflag, &frameflag, MPG123_GAPLESS},
+ {0, "no-gapless", GLO_INT, unset_frameflag, &frameflag, MPG123_GAPLESS},
+ {'?', "help", 0, want_usage, 0, 0 },
+ {0 , "longhelp" , 0, want_long_usage, 0, 0 },
+ {0 , "version" , 0, give_version, 0, 0 },
+ {'l', "listentry", GLO_ARG | GLO_LONG, 0, &param.listentry, 0 },
+ {0, "rva-mix", GLO_INT, 0, &param.rva, 1 },
+ {0, "rva-radio", GLO_INT, 0, &param.rva, 1 },
+ {0, "rva-album", GLO_INT, 0, &param.rva, 2 },
+ {0, "rva-audiophile", GLO_INT, 0, &param.rva, 2 },
+ {0, "no-icy-meta", GLO_INT, 0, &param.talk_icy, 0 },
+ {0, "long-tag", GLO_INT, 0, &param.long_id3, 1 },
+#ifdef FIFO
+ {0, "fifo", GLO_ARG | GLO_CHAR, 0, &param.fifo, 0},
+#endif
+#ifndef WIN32
+ {0, "timeout", GLO_ARG | GLO_LONG, 0, &param.timeout, 0},
+#endif
+ {0, "loop", GLO_ARG | GLO_LONG, 0, &param.loop, 0},
+ {'i', "index", GLO_INT, 0, &param.index, 1},
+ {'D', "delay", GLO_ARG | GLO_INT, 0, &param.delay, 0},
+ {0, "resync-limit", GLO_ARG | GLO_LONG, 0, &param.resync_limit, 0},
+ {0, "pitch", GLO_ARG|GLO_DOUBLE, 0, &param.pitch, 0},
+ {0, "ignore-mime", GLO_INT, 0, &param.ignore_mime, 1 },
+ {0, "keep-open", GLO_INT, 0, &param.keep_open, 1},
+ {0, "utf8", GLO_INT, 0, &param.force_utf8, 1},
+ {0, "fuzzy", GLO_INT, set_frameflag, &frameflag, MPG123_FUZZY},
+ {0, "index-size", GLO_ARG|GLO_LONG, 0, &param.index_size, 0},
+ {0, "no-seekbuffer", GLO_INT, unset_frameflag, &frameflag, MPG123_SEEKBUFFER},
+ {'e', "encoding", GLO_ARG|GLO_CHAR, 0, &param.force_encoding, 0},
+ {0, "preload", GLO_ARG|GLO_DOUBLE, 0, &param.preload, 0},
+ {0, "preframes", GLO_ARG|GLO_LONG, 0, &param.preframes, 0},
+ {0, 0, 0, 0, 0, 0}
+};
+
+/*
+ * Change the playback sample rate.
+ * Consider that changing it after starting playback is not covered by gapless code!
+ */
+static void reset_audio(long rate, int channels, int format)
+{
+#ifndef NOXFERMEM
+ if (param.usebuffer) {
+ /* wait until the buffer is empty,
+ * then tell the buffer process to
+ * change the sample rate. [OF]
+ */
+ while (xfermem_get_usedspace(buffermem) > 0)
+ if (xfermem_block(XF_WRITER, buffermem) == XF_CMD_TERMINATE) {
+ intflag = TRUE;
+ break;
+ }
+ buffermem->freeindex = -1;
+ buffermem->readindex = 0; /* I know what I'm doing! ;-) */
+ buffermem->freeindex = 0;
+ if (intflag)
+ return;
+ buffermem->rate = pitch_rate(rate);
+ buffermem->channels = channels;
+ buffermem->format = format;
+ buffer_reset();
+ }
+ else
+ {
+#endif
+ if(ao == NULL)
+ {
+ error("Audio handle should not be NULL here!");
+ safe_exit(98);
+ }
+ ao->rate = pitch_rate(rate);
+ ao->channels = channels;
+ ao->format = format;
+ if(reset_output(ao) < 0)
+ {
+ error1("failed to reset audio device: %s", strerror(errno));
+ safe_exit(1);
+ }
+#ifndef NOXFERMEM
+ }
+#endif
+}
+
+/* 1 on success, 0 on failure */
+int open_track(char *fname)
+{
+ filept=-1;
+ httpdata_reset(&htd);
+ if(MPG123_OK != mpg123_param(mh, MPG123_ICY_INTERVAL, 0, 0))
+ error1("Cannot (re)set ICY interval: %s", mpg123_strerror(mh));
+ if(!strcmp(fname, "-")) filept = STDIN_FILENO;
+ else if (!strncmp(fname, "http://", 7)) /* http stream */
+ {
+ filept = http_open(fname, &htd);
+ /* now check if we got sth. and if we got sth. good */
+ if( (filept >= 0) && (htd.content_type.p != NULL)
+ && !param.ignore_mime && strcmp(htd.content_type.p, "audio/mpeg") && strcmp(htd.content_type.p, "audio/x-mpeg") )
+ {
+ error1("Unknown mpeg MIME type %s - is it perhaps a playlist (use -@)?", htd.content_type.p == NULL ? "<nil>" : htd.content_type.p);
+ error("If you know the stream is mpeg1/2 audio, then please report this as "PACKAGE_NAME" bug");
+ return 0;
+ }
+ if(filept < 0)
+ {
+ error1("Access to http resource %s failed.", fname);
+ return 0;
+ }
+ if(MPG123_OK != mpg123_param(mh, MPG123_ICY_INTERVAL, htd.icy_interval, 0))
+ error1("Cannot set ICY interval: %s", mpg123_strerror(mh));
+ if(param.verbose > 1) fprintf(stderr, "Info: ICY interval %li\n", (long)htd.icy_interval);
+ }
+ debug("OK... going to finally open.");
+ /* Now hook up the decoder on the opened stream or the file. */
+ if(filept > -1)
+ {
+ if(mpg123_open_fd(mh, filept) != MPG123_OK)
+ {
+ error2("Cannot open fd %i: %s", filept, mpg123_strerror(mh));
+ return 0;
+ }
+ }
+ else if(mpg123_open(mh, fname) != MPG123_OK)
+ {
+ error2("Cannot open %s: %s", fname, mpg123_strerror(mh));
+ return 0;
+ }
+ debug("Track successfully opened.");
+ fresh = TRUE;
+ return 1;
+}
+
+/* for symmetry */
+void close_track(void)
+{
+ mpg123_close(mh);
+ if(filept > -1) close(filept);
+ filept = -1;
+}
+
+/* return 1 on success, 0 on failure */
+int play_frame(void)
+{
+ unsigned char *audio;
+ int mc;
+ size_t bytes;
+ debug("play_frame");
+ /* The first call will not decode anything but return MPG123_NEW_FORMAT! */
+ mc = mpg123_decode_frame(mh, &framenum, &audio, &bytes);
+ /* Play what is there to play (starting with second decode_frame call!) */
+ if(bytes)
+ {
+ if(param.frame_number > -1) --frames_left;
+ if(fresh && framenum >= param.start_frame)
+ {
+ fresh = FALSE;
+ if(!param.quiet)
+ {
+ if(param.verbose) print_header(mh);
+ else print_header_compact(mh);
+ }
+ }
+ /* Normal flushing of data, includes buffer decoding. */
+ if(flush_output(ao, audio, bytes) < (int)bytes && !intflag)
+ {
+ error("Deep trouble! Cannot flush to my output anymore!");
+ safe_exit(133);
+ }
+ if(param.checkrange)
+ {
+ long clip = mpg123_clip(mh);
+ if(clip > 0) fprintf(stderr,"%ld samples clipped\n", clip);
+ }
+ }
+ /* Special actions and errors. */
+ if(mc != MPG123_OK)
+ {
+ if(mc == MPG123_ERR || mc == MPG123_DONE)
+ {
+ if(mc == MPG123_ERR) error1("...in decoding next frame: %s", mpg123_strerror(mh));
+ return 0;
+ }
+ if(mc == MPG123_NO_SPACE)
+ {
+ error("I have not enough output space? I didn't plan for this.");
+ return 0;
+ }
+ if(mc == MPG123_NEW_FORMAT)
+ {
+ long rate;
+ int channels, format;
+ mpg123_getformat(mh, &rate, &channels, &format);
+ if(param.verbose > 2) fprintf(stderr, "Note: New output format %liHz %ich, format %i\n", rate, channels, format);
+
+ reset_audio(rate, channels, format);
+ }
+ }
+ return 1;
+}
+
+void buffer_drain(void)
+{
+#ifndef NOXFERMEM
+ int s;
+ while ((s = xfermem_get_usedspace(buffermem)))
+ {
+ struct timeval wait170 = {0, 170000};
+ if(intflag) break;
+ buffer_ignore_lowmem();
+ if(param.verbose) print_stat(mh,0,s);
+ #ifdef HAVE_TERMIOS
+ if(param.term_ctrl) term_control(mh, ao);
+ #endif
+ select(0, NULL, NULL, NULL, &wait170);
+ }
+#endif
+}
+
+/* Return TRUE if we should continue (second interrupt happens quickly), skipping tracks, or FALSE if we should die. */
+#if !defined(WIN32) && !defined(GENERIC)
+int skip_or_die(struct timeval *start_time)
+{
+/*
+ * When HAVE_TERMIOS is defined, there is 'q' to terminate a list of songs, so
+ * no pressing need to keep up this first second SIGINT hack that was too
+ * often mistaken as a bug. [dk]
+ * ThOr: Yep, I deactivated the Ctrl+C hack for active control modes.
+ * Though, some sort of hack remains, still using intflag for track skip.
+ */
+#ifdef HAVE_TERMIOS
+ if(!param.term_ctrl)
+#endif
+ {
+ struct timeval now;
+ unsigned long secdiff;
+ gettimeofday (&now, NULL);
+ secdiff = (now.tv_sec - start_time->tv_sec) * 1000;
+ if(now.tv_usec >= start_time->tv_usec)
+ secdiff += (now.tv_usec - start_time->tv_usec) / 1000;
+ else
+ secdiff -= (start_time->tv_usec - now.tv_usec) / 1000;
+ if (secdiff < 1000)
+ {
+ debug("got the second interrupt: out of here!");
+ return FALSE;
+ }
+ else
+ {
+ debug("It's a track advancement message.");
+ ++skip_tracks;
+ }
+ }
+#ifdef HAVE_TERMIOS
+ else if(skip_tracks == 0)
+ {
+ debug("breaking up");
+ return FALSE;
+ }
+#endif
+ return TRUE; /* Track advancement... no instant kill on generic/windows... */
+}
+#else
+/* On generic systems and win32, there is no decision here... just TRUE. */
+#define skip_or_die(a) TRUE
+#endif
+
+int main(int argc, char *argv[])
+{
+ int result;
+ long parr;
+ char *fname;
+ int libpar = 0;
+ mpg123_pars *mp;
+#if !defined(WIN32) && !defined(GENERIC)
+ struct timeval start_time;
+#endif
+
+ /* Extract binary and path, take stuff before/after last / or \ . */
+ if((prgName = strrchr(argv[0], '/')) || (prgName = strrchr(argv[0], '\\')))
+ {
+ /* There is some explicit path. */
+ prgName[0] = 0; /* End byte for path. */
+ prgName++;
+ binpath = argv[0];
+ }
+ else
+ {
+ prgName = argv[0]; /* No path separators there. */
+ binpath = NULL; /* No path at all. */
+ }
+
+ /* Need to initialize mpg123 lib here for default parameter values. */
+
+ result = mpg123_init();
+ if(result != MPG123_OK)
+ {
+ error1("Cannot initialize mpg123 library: %s", mpg123_plain_strerror(result));
+ exit(77);
+ }
+ mp = mpg123_new_pars(&result); /* This may get leaked on premature exit(), which is mainly a cosmetic issue... */
+ if(mp == NULL)
+ {
+ error1("Crap! Cannot get mpg123 parameters: %s", mpg123_plain_strerror(result));
+ safe_exit(77);
+ }
+
+ /* get default values */
+ mpg123_getpar(mp, MPG123_DOWN_SAMPLE, &parr, NULL);
+ param.down_sample = (int) parr;
+ mpg123_getpar(mp, MPG123_RVA, &param.rva, NULL);
+ mpg123_getpar(mp, MPG123_DOWNSPEED, &param.halfspeed, NULL);
+ mpg123_getpar(mp, MPG123_UPSPEED, &param.doublespeed, NULL);
+ mpg123_getpar(mp, MPG123_OUTSCALE, &param.outscale, NULL);
+ mpg123_getpar(mp, MPG123_FLAGS, &parr, NULL);
+ mpg123_getpar(mp, MPG123_INDEX_SIZE, &param.index_size, NULL);
+ param.flags = (int) parr;
+ param.flags |= MPG123_SEEKBUFFER; /* Default on, for HTTP streams. */
+ mpg123_getpar(mp, MPG123_RESYNC_LIMIT, &param.resync_limit, NULL);
+ mpg123_getpar(mp, MPG123_PREFRAMES, &param.preframes, NULL);
+
+#ifdef OS2
+ _wildcard(&argc,&argv);
+#endif
+
+ while ((result = getlopt(argc, argv, opts)))
+ switch (result) {
+ case GLO_UNKNOWN:
+ fprintf (stderr, "%s: Unknown option \"%s\".\n",
+ prgName, loptarg);
+ usage(1);
+ case GLO_NOARG:
+ fprintf (stderr, "%s: Missing argument for option \"%s\".\n",
+ prgName, loptarg);
+ usage(1);
+ }
+ /* Do this _after_ parameter parsing. */
+ check_locale(); /* Check/set locale; store if it uses UTF-8. */
+
+ if(param.list_cpu)
+ {
+ const char **all_dec = mpg123_decoders();
+ printf("Builtin decoders:");
+ while(*all_dec != NULL){ printf(" %s", *all_dec); ++all_dec; }
+ printf("\n");
+ mpg123_delete_pars(mp);
+ return 0;
+ }
+ if(param.test_cpu)
+ {
+ const char **all_dec = mpg123_supported_decoders();
+ printf("Supported decoders:");
+ while(*all_dec != NULL){ printf(" %s", *all_dec); ++all_dec; }
+ printf("\n");
+ mpg123_delete_pars(mp);
+ return 0;
+ }
+ if(param.gain != -1)
+ {
+ warning("The parameter -g is deprecated and may be removed in the future.");
+ }
+
+ if (loptind >= argc && !param.listname && !param.remote) usage(1);
+ /* Init audio as early as possible.
+ If there is the buffer process to be spawned, it shouldn't carry the mpg123_handle with it. */
+ bufferblock = mpg123_safe_buffer(); /* Can call that before mpg123_init(), it's stateless. */
+ if(init_output(&ao) < 0)
+ {
+ error("Failed to initialize output, goodbye.");
+ mpg123_delete_pars(mp);
+ return 99; /* It's safe here... nothing nasty happened yet. */
+ }
+ have_output = TRUE;
+
+ /* ========================================================================================================= */
+ /* Enterning the leaking zone... we start messing with stuff here that should be taken care of when leaving. */
+ /* Don't just exit() or return out... */
+ /* ========================================================================================================= */
+
+ httpdata_init(&htd);
+
+#if !defined(WIN32) && !defined(GENERIC)
+ if (param.remote)
+ {
+ param.verbose = 0;
+ param.quiet = 1;
+ param.flags |= MPG123_QUIET;
+ }
+#endif
+
+ /* Set the frame parameters from command line options */
+ if(param.quiet) param.flags |= MPG123_QUIET;
+
+#ifdef OPT_3DNOW
+ if(dnow != 0) param.cpu = (dnow == SET_3DNOW) ? "3dnow" : "i586";
+#endif
+ if(param.cpu != NULL && (!strcmp(param.cpu, "auto") || !strcmp(param.cpu, ""))) param.cpu = NULL;
+ if(!( MPG123_OK == (result = mpg123_par(mp, MPG123_VERBOSE, param.verbose, 0))
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_FLAGS, param.flags, 0))
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_DOWN_SAMPLE, param.down_sample, 0))
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_RVA, param.rva, 0))
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_FORCE_RATE, param.force_rate, 0))
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_DOWNSPEED, param.halfspeed, 0))
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_UPSPEED, param.doublespeed, 0))
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_ICY_INTERVAL, 0, 0))
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_RESYNC_LIMIT, param.resync_limit, 0))
+#ifndef WIN32
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_TIMEOUT, param.timeout, 0))
+#endif
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_OUTSCALE, param.outscale, 0))
+ && ++libpar
+ && MPG123_OK == (result = mpg123_par(mp, MPG123_PREFRAMES, param.preframes, 0))
+ ))
+ {
+ error2("Cannot set library parameter %i: %s", libpar, mpg123_plain_strerror(result));
+ safe_exit(45);
+ }
+ if (!(param.listentry < 0) && !param.quiet) print_title(stderr); /* do not pollute stdout! */
+
+ {
+ long default_index;
+ mpg123_getpar(mp, MPG123_INDEX_SIZE, &default_index, NULL);
+ if( param.index_size != default_index && (result = mpg123_par(mp, MPG123_INDEX_SIZE, param.index_size, 0.)) != MPG123_OK )
+ error1("Setting of frame index size failed: %s", mpg123_plain_strerror(result));
+ }
+
+ if(param.force_rate && param.down_sample)
+ {
+ error("Down sampling and fixed rate options not allowed together!");
+ safe_exit(1);
+ }
+
+ /* Now actually get an mpg123_handle. */
+ mh = mpg123_parnew(mp, param.cpu, &result);
+ if(mh == NULL)
+ {
+ error1("Crap! Cannot get a mpg123 handle: %s", mpg123_plain_strerror(result));
+ safe_exit(77);
+ }
+ mpg123_delete_pars(mp); /* Don't need the parameters anymore ,they're in the handle now. */
+
+ /* Now either check caps myself or query buffer for that. */
+ audio_capabilities(ao, mh);
+
+ load_equalizer(mh);
+
+#ifdef HAVE_SETPRIORITY
+ if(param.aggressive) { /* tst */
+ int mypid = getpid();
+ setpriority(PRIO_PROCESS,mypid,-20);
+ }
+#endif
+
+#ifdef HAVE_SCHED_SETSCHEDULER
+ if (param.realtime) { /* Get real-time priority */
+ struct sched_param sp;
+ fprintf(stderr,"Getting real-time priority\n");
+ memset(&sp, 0, sizeof(struct sched_param));
+ sp.sched_priority = sched_get_priority_min(SCHED_FIFO);
+ if (sched_setscheduler(0, SCHED_RR, &sp) == -1)
+ fprintf(stderr,"Can't get real-time priority\n");
+ }
+#endif
+
+ if(!param.remote) prepare_playlist(argc, argv);
+
+#if !defined(WIN32) && !defined(GENERIC)
+ /* Remote mode is special... but normal console and terminal-controlled operation needs to catch the SIGINT.
+ For one it serves for track skip when not in terminal control mode.
+ The more important use being a graceful exit, including telling the buffer process what's going on. */
+ if(!param.remote) catchsignal (SIGINT, catch_interrupt);
+#endif
+
+ if(param.remote) {
+ int ret;
+ ret = control_generic(mh);
+ safe_exit(ret);
+ }
+#ifdef HAVE_TERMIOS
+ debug1("param.term_ctrl: %i", param.term_ctrl);
+ if(param.term_ctrl)
+ term_init();
+#endif
+ while ((fname = get_next_file()))
+ {
+ char *dirname, *filename;
+ /* skip_tracks includes the previous one. */
+ if(skip_tracks) --skip_tracks;
+ if(skip_tracks)
+ {
+ debug("Skipping this track.");
+ continue;
+ }
+ if(param.delay > 0)
+ {
+ /* One should enable terminal control during that sleeping phase! */
+ if(param.verbose > 2) fprintf(stderr, "Note: pausing %i seconds before next track.\n", param.delay);
+ output_pause(ao);
+#ifdef WIN32
+ Sleep(param.delay*1000);
+#else
+ sleep(param.delay);
+#endif
+ output_unpause(ao);
+ }
+ frames_left = param.frame_number;
+ debug1("Going to play %s", strcmp(fname, "-") ? fname : "standard input");
+
+ if(intflag || !open_track(fname))
+ {
+#ifdef HAVE_TERMIOS
+ /* We need the opportunity to cancel in case of --loop -1 . */
+ if(param.term_ctrl) term_control(mh, ao);
+#endif
+ /* No wait for a second interrupt before we started playing. */
+ if(intflag) break;
+
+ continue;
+ }
+
+ if(!param.quiet) fprintf(stderr, "\n");
+ if(param.index)
+ {
+ if(param.verbose) fprintf(stderr, "indexing...\r");
+ mpg123_scan(mh);
+ }
+ /*
+ Only trigger a seek if we do not want to start with the first frame.
+ Rationale: Because of libmpg123 sample accuracy, this could cause an unnecessary backwards seek, that even may fail on non-seekable streams.
+ For start frame of 0, we are already at the correct position!
+ */
+ framenum = 0;
+ if(param.start_frame > 0)
+ framenum = mpg123_seek_frame(mh, param.start_frame, SEEK_SET);
+
+ if(framenum < 0)
+ {
+ error1("Initial seek failed: %s", mpg123_strerror(mh));
+ if(mpg123_errcode(mh) == MPG123_BAD_OUTFORMAT)
+ {
+ fprintf(stderr, "%s", "So, you have trouble getting an output format... this is the matrix of currently possible formats:\n");
+ print_capabilities(ao, mh);
+ fprintf(stderr, "%s", "Somehow the input data and your choices don't allow one of these.\n");
+ }
+ mpg123_close(mh);
+ continue;
+ }
+
+ if (!param.quiet)
+ {
+ if (split_dir_file(fname ? fname : "standard input",
+ &dirname, &filename))
+ fprintf(stderr, "Directory: %s\n", dirname);
+
+ fprintf(stderr, "Playing MPEG stream %lu of %lu: %s ...\n", (unsigned long)pl.pos, (unsigned long)pl.fill, filename);
+ if(htd.icy_name.fill) fprintf(stderr, "ICY-NAME: %s\n", htd.icy_name.p);
+ if(htd.icy_url.fill) fprintf(stderr, "ICY-URL: %s\n", htd.icy_url.p);
+
+#if !defined(GENERIC)
+{
+ const char *term_type;
+ term_type = getenv("TERM");
+ if (term_type && param.xterm_title &&
+ (!strncmp(term_type,"xterm",5) || !strncmp(term_type,"rxvt",4)))
+ {
+ fprintf(stderr, "\033]0;%s\007", filename);
+ }
+}
+#endif
+
+ }
+/* Rethink that SIGINT logic... */
+#if !defined(WIN32) && !defined(GENERIC)
+#ifdef HAVE_TERMIOS
+ if(!param.term_ctrl)
+#endif
+ gettimeofday (&start_time, NULL);
+#endif
+
+ while(!intflag)
+ {
+ int meta;
+ if(param.frame_number > -1)
+ {
+ debug1("frames left: %li", (long) frames_left);
+ if(!frames_left) break;
+ }
+ if(!play_frame()) break;
+ if(!param.quiet)
+ {
+ meta = mpg123_meta_check(mh);
+ if(meta & (MPG123_NEW_ID3|MPG123_NEW_ICY))
+ {
+ if(meta & MPG123_NEW_ID3) print_id3_tag(mh, param.long_id3, stderr);
+ if(meta & MPG123_NEW_ICY) print_icy(mh, stderr);
+ }
+ }
+ if(!fresh && param.verbose)
+ {
+#ifndef NOXFERMEM
+ if (param.verbose > 1 || !(framenum & 0x7))
+ print_stat(mh,0,xfermem_get_usedspace(buffermem));
+#else
+ if(param.verbose > 1 || !(framenum & 0x7)) print_stat(mh,0,0);
+#endif
+ }
+#ifdef HAVE_TERMIOS
+ if(!param.term_ctrl) continue;
+ else term_control(mh, ao);
+#endif
+ }
+
+ if(!param.smooth && param.usebuffer) buffer_drain();
+ if(param.verbose) print_stat(mh,0,xfermem_get_usedspace(buffermem));
+
+ if(!param.quiet)
+ {
+ double secs;
+ mpg123_position(mh, 0, 0, NULL, NULL, &secs, NULL);
+ fprintf(stderr,"\n[%d:%02d] Decoding of %s finished.\n", (int)(secs / 60), ((int)secs) % 60, filename);
+ }
+ else if(param.verbose) fprintf(stderr, "\n");
+
+ mpg123_close(mh);
+
+ if (intflag)
+ {
+ if(!skip_or_die(&start_time)) break;
+
+ intflag = FALSE;
+
+#ifndef NOXFERMEM
+ if(!param.smooth && param.usebuffer) buffer_resync();
+#endif
+ }
+ } /* end of loop over input files */
+ /* Ensure we played everything. */
+ if(param.smooth && param.usebuffer)
+ {
+ buffer_drain();
+ buffer_resync();
+ }
+ /* Free up memory used by playlist */
+ if(!param.remote) free_playlist();
+
+ safe_exit(0); /* That closes output and restores terminal, too. */
+ return 0;
+}
+
+static void print_title(FILE *o)
+{
+ fprintf(o, "High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3\n");
+ fprintf(o, "\tversion %s; written and copyright by Michael Hipp and others\n", PACKAGE_VERSION);
+ fprintf(o, "\tfree software (LGPL/GPL) without any warranty but with best wishes\n");
+}
+
+static void usage(int err) /* print syntax & exit */
+{
+ FILE* o = stdout;
+ if(err)
+ {
+ o = stderr;
+ fprintf(o, "You made some mistake in program usage... let me briefly remind you:\n\n");
+ }
+ print_title(o);
+ fprintf(o,"\nusage: %s [option(s)] [file(s) | URL(s) | -]\n", prgName);
+ fprintf(o,"supported options [defaults in brackets]:\n");
+ fprintf(o," -v increase verbosity level -q quiet (don't print title)\n");
+ fprintf(o," -t testmode (no output) -s write to stdout\n");
+ fprintf(o," -w <filename> write Output as WAV file\n");
+ fprintf(o," -k n skip first n frames [0] -n n decode only n frames [all]\n");
+ fprintf(o," -c check range violations -y DISABLE resync on errors\n");
+ fprintf(o," -b n output buffer: n Kbytes [0] -f n change scalefactor [%li]\n", param.outscale);
+ fprintf(o," -r n set/force samplerate [auto]\n");
+ fprintf(o," -os,-ol,-oh output to built-in speaker,line-out connector,headphones\n");
+ #ifdef NAS
+ fprintf(o," -a d set NAS server\n");
+ #elif defined(SGI)
+ fprintf(o," -a [1..4] set RAD device\n");
+ #else
+ fprintf(o," -a d set audio device\n");
+ #endif
+ fprintf(o," -2 downsample 1:2 (22 kHz) -4 downsample 1:4 (11 kHz)\n");
+ fprintf(o," -d n play every n'th frame only -h n play every frame n times\n");
+ fprintf(o," -0 decode channel 0 (left) only -1 decode channel 1 (right) only\n");
+ fprintf(o," -m mix both channels (mono) -p p use HTTP proxy p [$HTTP_PROXY]\n");
+ #ifdef HAVE_SCHED_SETSCHEDULER
+ fprintf(o," -@ f read filenames/URLs from f -T get realtime priority\n");
+ #else
+ fprintf(o," -@ f read filenames/URLs from f\n");
+ #endif
+ fprintf(o," -z shuffle play (with wildcards) -Z random play\n");
+ fprintf(o," -u a HTTP authentication string -E f Equalizer, data from file\n");
+ fprintf(o," -C enable control keys --no-gapless not skip junk/padding in mp3s\n");
+ fprintf(o," -? this help --version print name + version\n");
+ fprintf(o,"See the manpage %s(1) or call %s with --longhelp for more parameters and information.\n", prgName,prgName);
+ safe_exit(err);
+}
+
+static void want_usage(char* arg)
+{
+ usage(0);
+}
+
+static void long_usage(int err)
+{
+ char *enclist;
+ FILE* o = stdout;
+ if(err)
+ {
+ o = stderr;
+ fprintf(o, "You made some mistake in program usage... let me remind you:\n\n");
+ }
+ print_title(o);
+ fprintf(o,"\nusage: %s [option(s)] [file(s) | URL(s) | -]\n", prgName);
+
+ fprintf(o,"\ninput options\n\n");
+ fprintf(o," -k <n> --skip <n> skip n frames at beginning\n");
+ fprintf(o," -n --frames <n> play only <n> frames of every stream\n");
+ fprintf(o," --fuzzy Enable fuzzy seeks (guessing byte offsets or using approximate seek points from Xing TOC)\n");
+ fprintf(o," -y --no-resync DISABLES resync on error (--resync is deprecated)\n");
+ fprintf(o," -p <f> --proxy <f> set WWW proxy\n");
+ fprintf(o," -u --auth set auth values for HTTP access\n");
+ fprintf(o," --ignore-mime ignore HTTP MIME types (content-type)\n");
+ fprintf(o," -@ <f> --list <f> play songs in playlist <f> (plain list, m3u, pls (shoutcast))\n");
+ fprintf(o," -l <n> --listentry <n> play nth title in playlist; show whole playlist for n < 0\n");
+ fprintf(o," --loop <n> loop track(s) <n> times, < 0 means infinite loop (not with --random!)\n");
+ fprintf(o," --keep-open (--remote mode only) keep loaded file open after reaching end\n");
+#ifndef WIN32
+ fprintf(o," --timeout <n> Timeout in seconds before declaring a stream dead (if <= 0, wait forever)\n");
+#endif
+ fprintf(o," -z --shuffle shuffle song-list before playing\n");
+ fprintf(o," -Z --random full random play\n");
+ fprintf(o," --no-icy-meta Do not accept ICY meta data\n");
+ fprintf(o," -i --index index / scan through the track before playback\n");
+ fprintf(o," --index-size <n> change size of frame index\n");
+ fprintf(o," --preframes <n> number of frames to decode in advance after seeking (to keep layer 3 bit reservoir happy)\n");
+ fprintf(o," --resync-limit <n> Set number of bytes to search for valid MPEG data; <0 means search whole stream.\n");
+ fprintf(o,"\noutput/processing options\n\n");
+ fprintf(o," -o <o> --output <o> select audio output module\n");
+ fprintf(o," --list-modules list the available modules\n");
+ fprintf(o," -a <d> --audiodevice <d> select audio device\n");
+ fprintf(o," -s --stdout write raw audio to stdout (host native format)\n");
+ fprintf(o," -S --STDOUT play AND output stream (not implemented yet)\n");
+ fprintf(o," -w <f> --wav <f> write samples as WAV file in <f> (- is stdout)\n");
+ fprintf(o," --au <f> write samples as Sun AU file in <f> (- is stdout)\n");
+ fprintf(o," --cdr <f> write samples as raw CD audio file in <f> (- is stdout)\n");
+ fprintf(o," --reopen force close/open on audiodevice\n");
+ #ifdef OPT_MULTI
+ fprintf(o," --cpu <string> set cpu optimization\n");
+ fprintf(o," --test-cpu list optmizations possible with cpu and exit\n");
+ fprintf(o," --list-cpu list builtin optimizations and exit\n");
+ #endif
+ #ifdef OPT_3DNOW
+ fprintf(o," --test-3dnow display result of 3DNow! autodetect and exit (obsoleted by --cpu)\n");
+ fprintf(o," --force-3dnow force use of 3DNow! optimized routine (obsoleted by --test-cpu)\n");
+ fprintf(o," --no-3dnow force use of floating-pointer routine (obsoleted by --cpu)\n");
+ #endif
+ fprintf(o," -g --gain [DEPRECATED] set audio hardware output gain\n");
+ fprintf(o," -f <n> --scale <n> scale output samples (soft gain - based on 32768), default=%li)\n", param.outscale);
+ fprintf(o," --rva-mix,\n");
+ fprintf(o," --rva-radio use RVA2/ReplayGain values for mix/radio mode\n");
+ fprintf(o," --rva-album,\n");
+ fprintf(o," --rva-audiophile use RVA2/ReplayGain values for album/audiophile mode\n");
+ fprintf(o," -0 --left --single0 play only left channel\n");
+ fprintf(o," -1 --right --single1 play only right channel\n");
+ fprintf(o," -m --mono --mix mix stereo to mono\n");
+ fprintf(o," --stereo duplicate mono channel\n");
+ fprintf(o," -r --rate force a specific audio output rate\n");
+ fprintf(o," -2 --2to1 2:1 downsampling\n");
+ fprintf(o," -4 --4to1 4:1 downsampling\n");
+ fprintf(o," --pitch <value> set hardware pitch (speedup/down, 0 is neutral; 0.05 is 5%%)\n");
+ fprintf(o," --8bit force 8 bit output\n");
+ fprintf(o," --float force floating point output (internal precision)\n");
+ audio_enclist(&enclist);
+ fprintf(o," -e <c> --encoding <c> force a specific encoding c (%s)\n", enclist != NULL ? enclist : "OOM!");
+ fprintf(o," -d n --doublespeed n play only every nth frame\n");
+ fprintf(o," -h n --halfspeed n play every frame n times\n");
+ fprintf(o," --equalizer exp.: scales freq. bands acrd. to 'equalizer.dat'\n");
+ fprintf(o," --gapless remove padding/junk on mp3s (best with Lame tag)\n");
+ fprintf(o," This is on by default when libmpg123 supports it.\n");
+ fprintf(o," --no-gapless disable gapless mode, not remove padding/junk\n");
+ fprintf(o," -D n --delay n insert a delay of n seconds before each track\n");
+ fprintf(o," -o h --headphones (aix/hp/sun) output on headphones\n");
+ fprintf(o," -o s --speaker (aix/hp/sun) output on speaker\n");
+ fprintf(o," -o l --lineout (aix/hp/sun) output to lineout\n");
+#ifndef NOXFERMEM
+ fprintf(o," -b <n> --buffer <n> set play buffer (\"output cache\")\n");
+ fprintf(o," --preload <value> fraction of buffer to fill before playback\n");
+ fprintf(o," --smooth keep buffer over track boundaries\n");
+#endif
+
+ fprintf(o,"\nmisc options\n\n");
+ fprintf(o," -t --test only decode, no output (benchmark)\n");
+ fprintf(o," -c --check count and display clipped samples\n");
+ fprintf(o," -v[*] --verbose increase verboselevel\n");
+ fprintf(o," -q --quiet quiet mode\n");
+ #ifdef HAVE_TERMIOS
+ fprintf(o," -C --control enable terminal control keys\n");
+ #endif
+ #ifndef GENERIG
+ fprintf(o," --title set xterm/rxvt title to filename\n");
+ #endif
+ fprintf(o," --long-tag spacy id3 display with every item on a separate line\n");
+ fprintf(o," --utf8 Regardless of environment, print metadata in UTF-8.\n");
+ fprintf(o," -R --remote generic remote interface\n");
+ fprintf(o," --remote-err force use of stderr for generic remote interface\n");
+#ifdef FIFO
+ fprintf(o," --fifo <path> open a FIFO at <path> for commands instead of stdin\n");
+#endif
+ #ifdef HAVE_SETPRIORITY
+ fprintf(o," --aggressive tries to get higher priority (nice)\n");
+ #endif
+ #ifdef HAVE_SCHED_SETSCHEDULER
+ fprintf(o," -T --realtime tries to get realtime priority\n");
+ #endif
+ fprintf(o," -? --help give compact help\n");
+ fprintf(o," --longhelp give this long help listing\n");
+ fprintf(o," --version give name / version string\n");
+
+ fprintf(o,"\nSee the manpage %s(1) for more information.\n", prgName);
+ safe_exit(err);
+}
+
+static void want_long_usage(char* arg)
+{
+ long_usage(0);
+}
+
+static void give_version(char* arg)
+{
+ fprintf(stdout, PACKAGE_NAME" "PACKAGE_VERSION"\n");
+ safe_exit(0);
+}
diff --git a/src/mpg123app.h b/src/mpg123app.h
new file mode 100644
index 0000000..9312530
--- /dev/null
+++ b/src/mpg123app.h
@@ -0,0 +1,151 @@
+/*
+ mpg123: main code of the program (not of the decoder...)
+
+ copyright 1995-2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+
+ mpg123 defines
+ used source: musicout.h from mpegaudio package
+*/
+
+#ifndef MPG123_H
+#define MPG123_H
+
+/* everyone needs it */
+#include "compat.h"
+/* import DLL symbols on windows */
+#if defined(WIN32) && defined(DYNAMIC_BUILD)
+#define LINK_MPG123_DLL
+#endif
+#include "mpg123.h"
+#define MPG123_REMOTE
+#define REMOTE_BUFFER_SIZE 2048
+#define MAXOUTBURST 32768
+
+#include "xfermem.h"
+#include "httpget.h"
+
+#ifdef __GNUC__
+#define INLINE inline
+#else
+#define INLINE
+#endif
+
+#include "audio.h"
+#include "local.h"
+
+extern size_t bufferblock;
+
+#define VERBOSE_MAX 3
+
+extern char* binpath; /* argv[0], actually... */
+
+struct parameter
+{
+ int aggressive; /* renice to max. priority */
+ int shuffle; /* shuffle/random play */
+ int remote; /* remote operation */
+ int remote_err; /* remote operation to stderr */
+ int outmode; /* where to out the decoded sampels */
+ int quiet; /* shut up! */
+ int xterm_title; /* Change xterm title to song names? */
+ long usebuffer; /* second level buffer size */
+ int verbose; /* verbose level */
+ char* output_module; /* audio output module to use */
+ char* output_device; /* audio output device to use */
+ int output_flags; /* legacy output destination for AIX/HP/Sun */
+#ifdef HAVE_TERMIOS
+ int term_ctrl;
+#endif
+ int checkrange;
+ int force_reopen;
+ int test_cpu;
+ long realtime;
+ char *filename;
+ long listentry; /* possibility to choose playback of one entry in playlist (0: off, > 0 : select, < 0; just show list*/
+ char* listname; /* name of playlist */
+ int long_id3;
+ int list_cpu;
+ char *cpu;
+#ifdef FIFO
+ char* fifo;
+#endif
+#ifndef WIN32
+ long timeout; /* timeout for reading in seconds */
+#endif
+ long loop; /* looping of tracks */
+ int delay;
+ int index; /* index / scan through files before playback */
+ /* parameters for mpg123 handle */
+ int down_sample;
+ long rva; /* (which) rva to do: 0: nothing, 1: radio/mix/track 2: album/audiophile */
+ long halfspeed;
+ long doublespeed;
+ long start_frame; /* frame offset to begin with */
+ long frame_number; /* number of frames to decode */
+ long outscale;
+ int flags;
+ long force_rate;
+ int talk_icy;
+ long resync_limit;
+ int smooth;
+ double pitch; /* <0 or >0, 0.05 for 5% speedup. */
+ int ignore_mime; /* An mpg123 app flag field in future? */
+ char *proxyurl;
+ int keep_open; /* Whether to keep files open after end reached, for remote control mode, perhaps terminal control, too. */
+ int force_utf8; /* Regardless of environment, always print out verbatim UTF for metadata. */
+ long index_size; /* size of frame index */
+ char *force_encoding;
+ double preload; /* buffer preload size (fraction of full buffer) */
+ long preframes;
+ long gain; /* audio output gain, for selected outputs */
+};
+
+extern char *equalfile;
+extern off_t framenum;
+extern struct httpdata htd;
+
+extern int buffer_fd[2];
+extern txfermem *buffermem;
+extern int buffer_pid;
+
+#ifndef NOXFERMEM
+extern void buffer_loop(audio_output_t *ao,sigset_t *oldsigset);
+#endif
+
+extern int OutputDescriptor;
+
+#ifdef VARMODESUPPORT
+extern int varmode;
+extern int playlimit;
+#endif
+
+/* why extern? */
+extern void prepare_audioinfo(mpg123_handle *mh, audio_output_t *ao);
+extern int play_frame(void);
+
+extern int control_generic(mpg123_handle *fr);
+
+/* Eh... I see duplicated definitions. Clean up after merge! */
+extern int cdr_open(audio_output_t *);
+extern int au_open(audio_output_t *);
+extern int wav_open(audio_output_t *);
+extern int wav_write(unsigned char *buf,int len);
+extern int cdr_close(void);
+extern int au_close(void);
+extern int wav_close(void);
+
+extern struct parameter param;
+
+/* avoid the SIGINT in terminal control */
+void next_track(void);
+void prev_track(void);
+int open_track(char *fname);
+void close_track(void);
+void set_intflag(void);
+
+/* equalizer... success is 0, failure -1 */
+int load_equalizer(mpg123_handle *mh);
+
+#endif
diff --git a/src/output/Makefile.am b/src/output/Makefile.am
new file mode 100644
index 0000000..ccac04f
--- /dev/null
+++ b/src/output/Makefile.am
@@ -0,0 +1,203 @@
+## Makefile.am: produce Makefile.in from this
+
+## copyright by the mpg123 project - free software under the terms of the LGPL 2.1
+## see COPYING and AUTHORS files in distribution or http://www.mpg123.org
+## initially written by Nicholas J. Humfrey
+
+#AM_CPPFLAGS = -I$(top_srcdir)/src/libmpg123 -I$(top_srcdir)/src
+INCLUDES = $(LTDLINCL) -I$(top_builddir)/src -I$(top_builddir)/src/libmpg123 -I$(top_srcdir)/src -I$(top_srcdir)/src/libmpg123
+
+
+if HAVE_MODULES
+
+pkglib_LTLIBRARIES =
+
+# These are not tested and _very_ likely need work: aix alib hp os2 sgi mint
+
+# Use that sh/perl script to generate the module entries:
+#for i in alsa coreaudio esd jack nas oss portaudio pulse sdl sndio sun win32 aix alib arts hp os2 sgi mint dummy; do echo $i; done |
+#perl -ne 'chomp; $big = uc($_); print <<EOT;
+#
+#if HAVE_$big
+#pkglib_LTLIBRARIES += output_$_.la
+#output_${_}_la_SOURCES = $_.c
+#output_${_}_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic \@${big}_LDFLAGS\@
+#output_${_}_la_CFLAGS = \@${big}_CFLAGS\@
+#output_${_}_la_LIBADD = \@${big}_LIBS\@
+#endif
+#EOT
+#'
+
+if HAVE_ALSA
+pkglib_LTLIBRARIES += output_alsa.la
+output_alsa_la_SOURCES = alsa.c
+output_alsa_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @ALSA_LDFLAGS@
+output_alsa_la_CFLAGS = @ALSA_CFLAGS@
+output_alsa_la_LIBADD = @ALSA_LIBS@
+endif
+
+if HAVE_COREAUDIO
+pkglib_LTLIBRARIES += output_coreaudio.la
+output_coreaudio_la_SOURCES = coreaudio.c
+output_coreaudio_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @COREAUDIO_LDFLAGS@
+output_coreaudio_la_CFLAGS = @COREAUDIO_CFLAGS@
+output_coreaudio_la_LIBADD = @COREAUDIO_LIBS@
+endif
+
+if HAVE_ESD
+pkglib_LTLIBRARIES += output_esd.la
+output_esd_la_SOURCES = esd.c
+output_esd_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @ESD_LDFLAGS@
+output_esd_la_CFLAGS = @ESD_CFLAGS@
+output_esd_la_LIBADD = @ESD_LIBS@
+endif
+
+if HAVE_JACK
+pkglib_LTLIBRARIES += output_jack.la
+output_jack_la_SOURCES = jack.c
+output_jack_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @JACK_LDFLAGS@
+output_jack_la_CFLAGS = @JACK_CFLAGS@
+output_jack_la_LIBADD = @JACK_LIBS@
+endif
+
+if HAVE_NAS
+pkglib_LTLIBRARIES += output_nas.la
+output_nas_la_SOURCES = nas.c
+output_nas_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @NAS_LDFLAGS@
+output_nas_la_CFLAGS = @NAS_CFLAGS@
+output_nas_la_LIBADD = @NAS_LIBS@
+endif
+
+if HAVE_OSS
+pkglib_LTLIBRARIES += output_oss.la
+output_oss_la_SOURCES = oss.c
+output_oss_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @OSS_LDFLAGS@
+output_oss_la_CFLAGS = @OSS_CFLAGS@
+output_oss_la_LIBADD = @OSS_LIBS@
+endif
+
+if HAVE_PORTAUDIO
+pkglib_LTLIBRARIES += output_portaudio.la
+output_portaudio_la_SOURCES = portaudio.c
+output_portaudio_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @PORTAUDIO_LDFLAGS@
+output_portaudio_la_CFLAGS = @PORTAUDIO_CFLAGS@
+output_portaudio_la_LIBADD = @PORTAUDIO_LIBS@
+endif
+
+if HAVE_PULSE
+pkglib_LTLIBRARIES += output_pulse.la
+output_pulse_la_SOURCES = pulse.c
+output_pulse_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @PULSE_LDFLAGS@
+output_pulse_la_CFLAGS = @PULSE_CFLAGS@
+output_pulse_la_LIBADD = @PULSE_LIBS@
+endif
+
+if HAVE_SDL
+pkglib_LTLIBRARIES += output_sdl.la
+output_sdl_la_SOURCES = sdl.c
+output_sdl_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @SDL_LDFLAGS@
+output_sdl_la_CFLAGS = @SDL_CFLAGS@
+output_sdl_la_LIBADD = @SDL_LIBS@
+endif
+
+if HAVE_SNDIO
+pkglib_LTLIBRARIES += output_sndio.la
+output_sndio_la_SOURCES = sndio.c
+output_sndio_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @SNDIO_LDFLAGS@
+output_sndio_la_CFLAGS = @SNDIO_CFLAGS@
+output_sndio_la_LIBADD = @SNDIO_LIBS@
+endif
+
+if HAVE_SUN
+pkglib_LTLIBRARIES += output_sun.la
+output_sun_la_SOURCES = sun.c
+output_sun_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @SUN_LDFLAGS@
+output_sun_la_CFLAGS = @SUN_CFLAGS@
+output_sun_la_LIBADD = @SUN_LIBS@
+endif
+
+if HAVE_WIN32
+pkglib_LTLIBRARIES += output_win32.la
+output_win32_la_SOURCES = win32.c
+output_win32_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @WIN32_LDFLAGS@
+output_win32_la_CFLAGS = @WIN32_CFLAGS@
+output_win32_la_LIBADD = @WIN32_LIBS@
+endif
+
+if HAVE_AIX
+pkglib_LTLIBRARIES += output_aix.la
+output_aix_la_SOURCES = aix.c
+output_aix_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @AIX_LDFLAGS@
+output_aix_la_CFLAGS = @AIX_CFLAGS@
+output_aix_la_LIBADD = @AIX_LIBS@
+endif
+
+if HAVE_ALIB
+pkglib_LTLIBRARIES += output_alib.la
+output_alib_la_SOURCES = alib.c
+output_alib_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @ALIB_LDFLAGS@
+output_alib_la_CFLAGS = @ALIB_CFLAGS@
+output_alib_la_LIBADD = @ALIB_LIBS@
+endif
+
+if HAVE_ARTS
+pkglib_LTLIBRARIES += output_arts.la
+output_arts_la_SOURCES = arts.c
+output_arts_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @ARTS_LDFLAGS@
+output_arts_la_CFLAGS = @ARTS_CFLAGS@
+output_arts_la_LIBADD = @ARTS_LIBS@
+endif
+
+if HAVE_HP
+pkglib_LTLIBRARIES += output_hp.la
+output_hp_la_SOURCES = hp.c
+output_hp_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @HP_LDFLAGS@
+output_hp_la_CFLAGS = @HP_CFLAGS@
+output_hp_la_LIBADD = @HP_LIBS@
+endif
+
+if HAVE_OS2
+pkglib_LTLIBRARIES += output_os2.la
+output_os2_la_SOURCES = os2.c
+output_os2_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @OS2_LDFLAGS@
+output_os2_la_CFLAGS = @OS2_CFLAGS@
+output_os2_la_LIBADD = @OS2_LIBS@
+endif
+
+if HAVE_SGI
+pkglib_LTLIBRARIES += output_sgi.la
+output_sgi_la_SOURCES = sgi.c
+output_sgi_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @SGI_LDFLAGS@
+output_sgi_la_CFLAGS = @SGI_CFLAGS@
+output_sgi_la_LIBADD = @SGI_LIBS@
+endif
+
+if HAVE_MINT
+pkglib_LTLIBRARIES += output_mint.la
+output_mint_la_SOURCES = mint.c
+output_mint_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @MINT_LDFLAGS@
+output_mint_la_CFLAGS = @MINT_CFLAGS@
+output_mint_la_LIBADD = @MINT_LIBS@
+endif
+
+if HAVE_DUMMY
+pkglib_LTLIBRARIES += output_dummy.la
+output_dummy_la_SOURCES = dummy.c
+output_dummy_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @DUMMY_LDFLAGS@
+output_dummy_la_CFLAGS = @DUMMY_CFLAGS@
+output_dummy_la_LIBADD = @DUMMY_LIBS@
+endif
+
+else
+
+# Static build of one module only.
+
+AM_CFLAGS=@OUTPUT_CFLAGS@
+
+all: @OUTPUT_MOD@.$(OBJEXT)
+
+# No installation happening from here
+install: all
+
+
+endif
diff --git a/src/output/Makefile.in b/src/output/Makefile.in
new file mode 100644
index 0000000..fdcea6c
--- /dev/null
+++ b/src/output/Makefile.in
@@ -0,0 +1,1109 @@
+# Makefile.in generated by automake 1.10.2 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+
+# These are not tested and _very_ likely need work: aix alib hp os2 sgi mint
+
+# Use that sh/perl script to generate the module entries:
+#for i in alsa coreaudio esd jack nas oss portaudio pulse sdl sndio sun win32 aix alib arts hp os2 sgi mint dummy; do echo $i; done |
+#perl -ne 'chomp; $big = uc($_); print <<EOT;
+#
+#if HAVE_$big
+#pkglib_LTLIBRARIES += output_$_.la
+#output_${_}_la_SOURCES = $_.c
+#output_${_}_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic \@${big}_LDFLAGS\@
+#output_${_}_la_CFLAGS = \@${big}_CFLAGS\@
+#output_${_}_la_LIBADD = \@${big}_LIBS\@
+#endif
+#EOT
+#'
+@HAVE_ALSA_TRUE@@HAVE_MODULES_TRUE@am__append_1 = output_alsa.la
+@HAVE_COREAUDIO_TRUE@@HAVE_MODULES_TRUE@am__append_2 = output_coreaudio.la
+@HAVE_ESD_TRUE@@HAVE_MODULES_TRUE@am__append_3 = output_esd.la
+@HAVE_JACK_TRUE@@HAVE_MODULES_TRUE@am__append_4 = output_jack.la
+@HAVE_MODULES_TRUE@@HAVE_NAS_TRUE@am__append_5 = output_nas.la
+@HAVE_MODULES_TRUE@@HAVE_OSS_TRUE@am__append_6 = output_oss.la
+@HAVE_MODULES_TRUE@@HAVE_PORTAUDIO_TRUE@am__append_7 = output_portaudio.la
+@HAVE_MODULES_TRUE@@HAVE_PULSE_TRUE@am__append_8 = output_pulse.la
+@HAVE_MODULES_TRUE@@HAVE_SDL_TRUE@am__append_9 = output_sdl.la
+@HAVE_MODULES_TRUE@@HAVE_SNDIO_TRUE@am__append_10 = output_sndio.la
+@HAVE_MODULES_TRUE@@HAVE_SUN_TRUE@am__append_11 = output_sun.la
+@HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@am__append_12 = output_win32.la
+@HAVE_AIX_TRUE@@HAVE_MODULES_TRUE@am__append_13 = output_aix.la
+@HAVE_ALIB_TRUE@@HAVE_MODULES_TRUE@am__append_14 = output_alib.la
+@HAVE_ARTS_TRUE@@HAVE_MODULES_TRUE@am__append_15 = output_arts.la
+@HAVE_HP_TRUE@@HAVE_MODULES_TRUE@am__append_16 = output_hp.la
+@HAVE_MODULES_TRUE@@HAVE_OS2_TRUE@am__append_17 = output_os2.la
+@HAVE_MODULES_TRUE@@HAVE_SGI_TRUE@am__append_18 = output_sgi.la
+@HAVE_MINT_TRUE@@HAVE_MODULES_TRUE@am__append_19 = output_mint.la
+@HAVE_DUMMY_TRUE@@HAVE_MODULES_TRUE@am__append_20 = output_dummy.la
+subdir = src/output
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/src/config.h
+CONFIG_CLEAN_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+am__installdirs = "$(DESTDIR)$(pkglibdir)"
+pkglibLTLIBRARIES_INSTALL = $(INSTALL)
+LTLIBRARIES = $(pkglib_LTLIBRARIES)
+output_aix_la_DEPENDENCIES =
+am__output_aix_la_SOURCES_DIST = aix.c
+@HAVE_AIX_TRUE@@HAVE_MODULES_TRUE@am_output_aix_la_OBJECTS = \
+@HAVE_AIX_TRUE@@HAVE_MODULES_TRUE@ output_aix_la-aix.lo
+output_aix_la_OBJECTS = $(am_output_aix_la_OBJECTS)
+output_aix_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_aix_la_CFLAGS) \
+ $(CFLAGS) $(output_aix_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_AIX_TRUE@@HAVE_MODULES_TRUE@am_output_aix_la_rpath = -rpath \
+@HAVE_AIX_TRUE@@HAVE_MODULES_TRUE@ $(pkglibdir)
+output_alib_la_DEPENDENCIES =
+am__output_alib_la_SOURCES_DIST = alib.c
+@HAVE_ALIB_TRUE@@HAVE_MODULES_TRUE@am_output_alib_la_OBJECTS = \
+@HAVE_ALIB_TRUE@@HAVE_MODULES_TRUE@ output_alib_la-alib.lo
+output_alib_la_OBJECTS = $(am_output_alib_la_OBJECTS)
+output_alib_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_alib_la_CFLAGS) \
+ $(CFLAGS) $(output_alib_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_ALIB_TRUE@@HAVE_MODULES_TRUE@am_output_alib_la_rpath = -rpath \
+@HAVE_ALIB_TRUE@@HAVE_MODULES_TRUE@ $(pkglibdir)
+output_alsa_la_DEPENDENCIES =
+am__output_alsa_la_SOURCES_DIST = alsa.c
+@HAVE_ALSA_TRUE@@HAVE_MODULES_TRUE@am_output_alsa_la_OBJECTS = \
+@HAVE_ALSA_TRUE@@HAVE_MODULES_TRUE@ output_alsa_la-alsa.lo
+output_alsa_la_OBJECTS = $(am_output_alsa_la_OBJECTS)
+output_alsa_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_alsa_la_CFLAGS) \
+ $(CFLAGS) $(output_alsa_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_ALSA_TRUE@@HAVE_MODULES_TRUE@am_output_alsa_la_rpath = -rpath \
+@HAVE_ALSA_TRUE@@HAVE_MODULES_TRUE@ $(pkglibdir)
+output_arts_la_DEPENDENCIES =
+am__output_arts_la_SOURCES_DIST = arts.c
+@HAVE_ARTS_TRUE@@HAVE_MODULES_TRUE@am_output_arts_la_OBJECTS = \
+@HAVE_ARTS_TRUE@@HAVE_MODULES_TRUE@ output_arts_la-arts.lo
+output_arts_la_OBJECTS = $(am_output_arts_la_OBJECTS)
+output_arts_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_arts_la_CFLAGS) \
+ $(CFLAGS) $(output_arts_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_ARTS_TRUE@@HAVE_MODULES_TRUE@am_output_arts_la_rpath = -rpath \
+@HAVE_ARTS_TRUE@@HAVE_MODULES_TRUE@ $(pkglibdir)
+output_coreaudio_la_DEPENDENCIES =
+am__output_coreaudio_la_SOURCES_DIST = coreaudio.c
+@HAVE_COREAUDIO_TRUE@@HAVE_MODULES_TRUE@am_output_coreaudio_la_OBJECTS = output_coreaudio_la-coreaudio.lo
+output_coreaudio_la_OBJECTS = $(am_output_coreaudio_la_OBJECTS)
+output_coreaudio_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+ $(output_coreaudio_la_CFLAGS) $(CFLAGS) \
+ $(output_coreaudio_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_COREAUDIO_TRUE@@HAVE_MODULES_TRUE@am_output_coreaudio_la_rpath = \
+@HAVE_COREAUDIO_TRUE@@HAVE_MODULES_TRUE@ -rpath $(pkglibdir)
+output_dummy_la_DEPENDENCIES =
+am__output_dummy_la_SOURCES_DIST = dummy.c
+@HAVE_DUMMY_TRUE@@HAVE_MODULES_TRUE@am_output_dummy_la_OBJECTS = \
+@HAVE_DUMMY_TRUE@@HAVE_MODULES_TRUE@ output_dummy_la-dummy.lo
+output_dummy_la_OBJECTS = $(am_output_dummy_la_OBJECTS)
+output_dummy_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_dummy_la_CFLAGS) \
+ $(CFLAGS) $(output_dummy_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_DUMMY_TRUE@@HAVE_MODULES_TRUE@am_output_dummy_la_rpath = -rpath \
+@HAVE_DUMMY_TRUE@@HAVE_MODULES_TRUE@ $(pkglibdir)
+output_esd_la_DEPENDENCIES =
+am__output_esd_la_SOURCES_DIST = esd.c
+@HAVE_ESD_TRUE@@HAVE_MODULES_TRUE@am_output_esd_la_OBJECTS = \
+@HAVE_ESD_TRUE@@HAVE_MODULES_TRUE@ output_esd_la-esd.lo
+output_esd_la_OBJECTS = $(am_output_esd_la_OBJECTS)
+output_esd_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_esd_la_CFLAGS) \
+ $(CFLAGS) $(output_esd_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_ESD_TRUE@@HAVE_MODULES_TRUE@am_output_esd_la_rpath = -rpath \
+@HAVE_ESD_TRUE@@HAVE_MODULES_TRUE@ $(pkglibdir)
+output_hp_la_DEPENDENCIES =
+am__output_hp_la_SOURCES_DIST = hp.c
+@HAVE_HP_TRUE@@HAVE_MODULES_TRUE@am_output_hp_la_OBJECTS = \
+@HAVE_HP_TRUE@@HAVE_MODULES_TRUE@ output_hp_la-hp.lo
+output_hp_la_OBJECTS = $(am_output_hp_la_OBJECTS)
+output_hp_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_hp_la_CFLAGS) \
+ $(CFLAGS) $(output_hp_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_HP_TRUE@@HAVE_MODULES_TRUE@am_output_hp_la_rpath = -rpath \
+@HAVE_HP_TRUE@@HAVE_MODULES_TRUE@ $(pkglibdir)
+output_jack_la_DEPENDENCIES =
+am__output_jack_la_SOURCES_DIST = jack.c
+@HAVE_JACK_TRUE@@HAVE_MODULES_TRUE@am_output_jack_la_OBJECTS = \
+@HAVE_JACK_TRUE@@HAVE_MODULES_TRUE@ output_jack_la-jack.lo
+output_jack_la_OBJECTS = $(am_output_jack_la_OBJECTS)
+output_jack_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_jack_la_CFLAGS) \
+ $(CFLAGS) $(output_jack_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_JACK_TRUE@@HAVE_MODULES_TRUE@am_output_jack_la_rpath = -rpath \
+@HAVE_JACK_TRUE@@HAVE_MODULES_TRUE@ $(pkglibdir)
+output_mint_la_DEPENDENCIES =
+am__output_mint_la_SOURCES_DIST = mint.c
+@HAVE_MINT_TRUE@@HAVE_MODULES_TRUE@am_output_mint_la_OBJECTS = \
+@HAVE_MINT_TRUE@@HAVE_MODULES_TRUE@ output_mint_la-mint.lo
+output_mint_la_OBJECTS = $(am_output_mint_la_OBJECTS)
+output_mint_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_mint_la_CFLAGS) \
+ $(CFLAGS) $(output_mint_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MINT_TRUE@@HAVE_MODULES_TRUE@am_output_mint_la_rpath = -rpath \
+@HAVE_MINT_TRUE@@HAVE_MODULES_TRUE@ $(pkglibdir)
+output_nas_la_DEPENDENCIES =
+am__output_nas_la_SOURCES_DIST = nas.c
+@HAVE_MODULES_TRUE@@HAVE_NAS_TRUE@am_output_nas_la_OBJECTS = \
+@HAVE_MODULES_TRUE@@HAVE_NAS_TRUE@ output_nas_la-nas.lo
+output_nas_la_OBJECTS = $(am_output_nas_la_OBJECTS)
+output_nas_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_nas_la_CFLAGS) \
+ $(CFLAGS) $(output_nas_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_NAS_TRUE@am_output_nas_la_rpath = -rpath \
+@HAVE_MODULES_TRUE@@HAVE_NAS_TRUE@ $(pkglibdir)
+output_os2_la_DEPENDENCIES =
+am__output_os2_la_SOURCES_DIST = os2.c
+@HAVE_MODULES_TRUE@@HAVE_OS2_TRUE@am_output_os2_la_OBJECTS = \
+@HAVE_MODULES_TRUE@@HAVE_OS2_TRUE@ output_os2_la-os2.lo
+output_os2_la_OBJECTS = $(am_output_os2_la_OBJECTS)
+output_os2_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_os2_la_CFLAGS) \
+ $(CFLAGS) $(output_os2_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_OS2_TRUE@am_output_os2_la_rpath = -rpath \
+@HAVE_MODULES_TRUE@@HAVE_OS2_TRUE@ $(pkglibdir)
+output_oss_la_DEPENDENCIES =
+am__output_oss_la_SOURCES_DIST = oss.c
+@HAVE_MODULES_TRUE@@HAVE_OSS_TRUE@am_output_oss_la_OBJECTS = \
+@HAVE_MODULES_TRUE@@HAVE_OSS_TRUE@ output_oss_la-oss.lo
+output_oss_la_OBJECTS = $(am_output_oss_la_OBJECTS)
+output_oss_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_oss_la_CFLAGS) \
+ $(CFLAGS) $(output_oss_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_OSS_TRUE@am_output_oss_la_rpath = -rpath \
+@HAVE_MODULES_TRUE@@HAVE_OSS_TRUE@ $(pkglibdir)
+output_portaudio_la_DEPENDENCIES =
+am__output_portaudio_la_SOURCES_DIST = portaudio.c
+@HAVE_MODULES_TRUE@@HAVE_PORTAUDIO_TRUE@am_output_portaudio_la_OBJECTS = output_portaudio_la-portaudio.lo
+output_portaudio_la_OBJECTS = $(am_output_portaudio_la_OBJECTS)
+output_portaudio_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+ $(output_portaudio_la_CFLAGS) $(CFLAGS) \
+ $(output_portaudio_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_PORTAUDIO_TRUE@am_output_portaudio_la_rpath = \
+@HAVE_MODULES_TRUE@@HAVE_PORTAUDIO_TRUE@ -rpath $(pkglibdir)
+output_pulse_la_DEPENDENCIES =
+am__output_pulse_la_SOURCES_DIST = pulse.c
+@HAVE_MODULES_TRUE@@HAVE_PULSE_TRUE@am_output_pulse_la_OBJECTS = \
+@HAVE_MODULES_TRUE@@HAVE_PULSE_TRUE@ output_pulse_la-pulse.lo
+output_pulse_la_OBJECTS = $(am_output_pulse_la_OBJECTS)
+output_pulse_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_pulse_la_CFLAGS) \
+ $(CFLAGS) $(output_pulse_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_PULSE_TRUE@am_output_pulse_la_rpath = -rpath \
+@HAVE_MODULES_TRUE@@HAVE_PULSE_TRUE@ $(pkglibdir)
+output_sdl_la_DEPENDENCIES =
+am__output_sdl_la_SOURCES_DIST = sdl.c
+@HAVE_MODULES_TRUE@@HAVE_SDL_TRUE@am_output_sdl_la_OBJECTS = \
+@HAVE_MODULES_TRUE@@HAVE_SDL_TRUE@ output_sdl_la-sdl.lo
+output_sdl_la_OBJECTS = $(am_output_sdl_la_OBJECTS)
+output_sdl_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_sdl_la_CFLAGS) \
+ $(CFLAGS) $(output_sdl_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_SDL_TRUE@am_output_sdl_la_rpath = -rpath \
+@HAVE_MODULES_TRUE@@HAVE_SDL_TRUE@ $(pkglibdir)
+output_sgi_la_DEPENDENCIES =
+am__output_sgi_la_SOURCES_DIST = sgi.c
+@HAVE_MODULES_TRUE@@HAVE_SGI_TRUE@am_output_sgi_la_OBJECTS = \
+@HAVE_MODULES_TRUE@@HAVE_SGI_TRUE@ output_sgi_la-sgi.lo
+output_sgi_la_OBJECTS = $(am_output_sgi_la_OBJECTS)
+output_sgi_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_sgi_la_CFLAGS) \
+ $(CFLAGS) $(output_sgi_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_SGI_TRUE@am_output_sgi_la_rpath = -rpath \
+@HAVE_MODULES_TRUE@@HAVE_SGI_TRUE@ $(pkglibdir)
+output_sndio_la_DEPENDENCIES =
+am__output_sndio_la_SOURCES_DIST = sndio.c
+@HAVE_MODULES_TRUE@@HAVE_SNDIO_TRUE@am_output_sndio_la_OBJECTS = \
+@HAVE_MODULES_TRUE@@HAVE_SNDIO_TRUE@ output_sndio_la-sndio.lo
+output_sndio_la_OBJECTS = $(am_output_sndio_la_OBJECTS)
+output_sndio_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_sndio_la_CFLAGS) \
+ $(CFLAGS) $(output_sndio_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_SNDIO_TRUE@am_output_sndio_la_rpath = -rpath \
+@HAVE_MODULES_TRUE@@HAVE_SNDIO_TRUE@ $(pkglibdir)
+output_sun_la_DEPENDENCIES =
+am__output_sun_la_SOURCES_DIST = sun.c
+@HAVE_MODULES_TRUE@@HAVE_SUN_TRUE@am_output_sun_la_OBJECTS = \
+@HAVE_MODULES_TRUE@@HAVE_SUN_TRUE@ output_sun_la-sun.lo
+output_sun_la_OBJECTS = $(am_output_sun_la_OBJECTS)
+output_sun_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_sun_la_CFLAGS) \
+ $(CFLAGS) $(output_sun_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_SUN_TRUE@am_output_sun_la_rpath = -rpath \
+@HAVE_MODULES_TRUE@@HAVE_SUN_TRUE@ $(pkglibdir)
+output_win32_la_DEPENDENCIES =
+am__output_win32_la_SOURCES_DIST = win32.c
+@HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@am_output_win32_la_OBJECTS = \
+@HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@ output_win32_la-win32.lo
+output_win32_la_OBJECTS = $(am_output_win32_la_OBJECTS)
+output_win32_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(output_win32_la_CFLAGS) \
+ $(CFLAGS) $(output_win32_la_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@am_output_win32_la_rpath = -rpath \
+@HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@ $(pkglibdir)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src
+depcomp = $(SHELL) $(top_srcdir)/build/depcomp
+am__depfiles_maybe = depfiles
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
+ --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
+ $(LDFLAGS) -o $@
+SOURCES = $(output_aix_la_SOURCES) $(output_alib_la_SOURCES) \
+ $(output_alsa_la_SOURCES) $(output_arts_la_SOURCES) \
+ $(output_coreaudio_la_SOURCES) $(output_dummy_la_SOURCES) \
+ $(output_esd_la_SOURCES) $(output_hp_la_SOURCES) \
+ $(output_jack_la_SOURCES) $(output_mint_la_SOURCES) \
+ $(output_nas_la_SOURCES) $(output_os2_la_SOURCES) \
+ $(output_oss_la_SOURCES) $(output_portaudio_la_SOURCES) \
+ $(output_pulse_la_SOURCES) $(output_sdl_la_SOURCES) \
+ $(output_sgi_la_SOURCES) $(output_sndio_la_SOURCES) \
+ $(output_sun_la_SOURCES) $(output_win32_la_SOURCES)
+DIST_SOURCES = $(am__output_aix_la_SOURCES_DIST) \
+ $(am__output_alib_la_SOURCES_DIST) \
+ $(am__output_alsa_la_SOURCES_DIST) \
+ $(am__output_arts_la_SOURCES_DIST) \
+ $(am__output_coreaudio_la_SOURCES_DIST) \
+ $(am__output_dummy_la_SOURCES_DIST) \
+ $(am__output_esd_la_SOURCES_DIST) \
+ $(am__output_hp_la_SOURCES_DIST) \
+ $(am__output_jack_la_SOURCES_DIST) \
+ $(am__output_mint_la_SOURCES_DIST) \
+ $(am__output_nas_la_SOURCES_DIST) \
+ $(am__output_os2_la_SOURCES_DIST) \
+ $(am__output_oss_la_SOURCES_DIST) \
+ $(am__output_portaudio_la_SOURCES_DIST) \
+ $(am__output_pulse_la_SOURCES_DIST) \
+ $(am__output_sdl_la_SOURCES_DIST) \
+ $(am__output_sgi_la_SOURCES_DIST) \
+ $(am__output_sndio_la_SOURCES_DIST) \
+ $(am__output_sun_la_SOURCES_DIST) \
+ $(am__output_win32_la_SOURCES_DIST)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AIX_CFLAGS = @AIX_CFLAGS@
+AIX_LDFLAGS = @AIX_LDFLAGS@
+AIX_LIBS = @AIX_LIBS@
+ALIB_CFLAGS = @ALIB_CFLAGS@
+ALIB_LDFLAGS = @ALIB_LDFLAGS@
+ALIB_LIBS = @ALIB_LIBS@
+ALSA_CFLAGS = @ALSA_CFLAGS@
+ALSA_LDFLAGS = @ALSA_LDFLAGS@
+ALSA_LIBS = @ALSA_LIBS@
+AMTAR = @AMTAR@
+AR = @AR@
+ARTS_CFLAGS = @ARTS_CFLAGS@
+ARTS_LDFLAGS = @ARTS_LDFLAGS@
+ARTS_LIBS = @ARTS_LIBS@
+AS = @AS@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCAS = @CCAS@
+CCASDEPMODE = @CCASDEPMODE@
+CCASFLAGS = @CCASFLAGS@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+COREAUDIO_CFLAGS = @COREAUDIO_CFLAGS@
+COREAUDIO_LDFLAGS = @COREAUDIO_LDFLAGS@
+COREAUDIO_LIBS = @COREAUDIO_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DECODER_LOBJ = @DECODER_LOBJ@
+DECODER_OBJ = @DECODER_OBJ@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMMY_CFLAGS = @DUMMY_CFLAGS@
+DUMMY_LDFLAGS = @DUMMY_LDFLAGS@
+DUMMY_LIBS = @DUMMY_LIBS@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+ESD_CFLAGS = @ESD_CFLAGS@
+ESD_LDFLAGS = @ESD_LDFLAGS@
+ESD_LIBS = @ESD_LIBS@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+GREP = @GREP@
+HP_CFLAGS = @HP_CFLAGS@
+HP_LDFLAGS = @HP_LDFLAGS@
+HP_LIBS = @HP_LIBS@
+INCLUDE_STDIO_H = @INCLUDE_STDIO_H@
+INCLUDE_STDLIB_H = @INCLUDE_STDLIB_H@
+INCLUDE_SYS_TYPE_H = @INCLUDE_SYS_TYPE_H@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+JACK_CFLAGS = @JACK_CFLAGS@
+JACK_LDFLAGS = @JACK_LDFLAGS@
+JACK_LIBS = @JACK_LIBS@
+LARGEFILE_BITS = @LARGEFILE_BITS@
+LARGEFILE_SUFFIX = @LARGEFILE_SUFFIX@
+LARGEFILE_SWITCH = @LARGEFILE_SWITCH@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBMPG123_VERSION = @LIBMPG123_VERSION@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+LT_LDFLAGS = @LT_LDFLAGS@
+MAKEINFO = @MAKEINFO@
+MINT_CFLAGS = @MINT_CFLAGS@
+MINT_LDFLAGS = @MINT_LDFLAGS@
+MINT_LIBS = @MINT_LIBS@
+MKDIR_P = @MKDIR_P@
+MODULE_OBJ = @MODULE_OBJ@
+NAS_CFLAGS = @NAS_CFLAGS@
+NAS_LDFLAGS = @NAS_LDFLAGS@
+NAS_LIBS = @NAS_LIBS@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OS2_CFLAGS = @OS2_CFLAGS@
+OS2_LDFLAGS = @OS2_LDFLAGS@
+OS2_LIBS = @OS2_LIBS@
+OSS_CFLAGS = @OSS_CFLAGS@
+OSS_LDFLAGS = @OSS_LDFLAGS@
+OSS_LIBS = @OSS_LIBS@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+OUTPUT_CFLAGS = @OUTPUT_CFLAGS@
+OUTPUT_LDFLAGS = @OUTPUT_LDFLAGS@
+OUTPUT_LIBS = @OUTPUT_LIBS@
+OUTPUT_MOD = @OUTPUT_MOD@
+OUTPUT_OBJ = @OUTPUT_OBJ@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PORTAUDIO_CFLAGS = @PORTAUDIO_CFLAGS@
+PORTAUDIO_LDFLAGS = @PORTAUDIO_LDFLAGS@
+PORTAUDIO_LIBS = @PORTAUDIO_LIBS@
+PULSE_CFLAGS = @PULSE_CFLAGS@
+PULSE_LDFLAGS = @PULSE_LDFLAGS@
+PULSE_LIBS = @PULSE_LIBS@
+RANLIB = @RANLIB@
+SDL_CFLAGS = @SDL_CFLAGS@
+SDL_LDFLAGS = @SDL_LDFLAGS@
+SDL_LIBS = @SDL_LIBS@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SGI_CFLAGS = @SGI_CFLAGS@
+SGI_LDFLAGS = @SGI_LDFLAGS@
+SGI_LIBS = @SGI_LIBS@
+SHELL = @SHELL@
+SNDIO_CFLAGS = @SNDIO_CFLAGS@
+SNDIO_LDFLAGS = @SNDIO_LDFLAGS@
+SNDIO_LIBS = @SNDIO_LIBS@
+STRIP = @STRIP@
+SUN_CFLAGS = @SUN_CFLAGS@
+SUN_LDFLAGS = @SUN_LDFLAGS@
+SUN_LIBS = @SUN_LIBS@
+VERSION = @VERSION@
+WIN32_CFLAGS = @WIN32_CFLAGS@
+WIN32_LDFLAGS = @WIN32_LDFLAGS@
+WIN32_LIBS = @WIN32_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target = @target@
+target_alias = @target_alias@
+target_cpu = @target_cpu@
+target_os = @target_os@
+target_vendor = @target_vendor@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+
+#AM_CPPFLAGS = -I$(top_srcdir)/src/libmpg123 -I$(top_srcdir)/src
+INCLUDES = $(LTDLINCL) -I$(top_builddir)/src -I$(top_builddir)/src/libmpg123 -I$(top_srcdir)/src -I$(top_srcdir)/src/libmpg123
+@HAVE_MODULES_TRUE@pkglib_LTLIBRARIES = $(am__append_1) \
+@HAVE_MODULES_TRUE@ $(am__append_2) $(am__append_3) \
+@HAVE_MODULES_TRUE@ $(am__append_4) $(am__append_5) \
+@HAVE_MODULES_TRUE@ $(am__append_6) $(am__append_7) \
+@HAVE_MODULES_TRUE@ $(am__append_8) $(am__append_9) \
+@HAVE_MODULES_TRUE@ $(am__append_10) $(am__append_11) \
+@HAVE_MODULES_TRUE@ $(am__append_12) $(am__append_13) \
+@HAVE_MODULES_TRUE@ $(am__append_14) $(am__append_15) \
+@HAVE_MODULES_TRUE@ $(am__append_16) $(am__append_17) \
+@HAVE_MODULES_TRUE@ $(am__append_18) $(am__append_19) \
+@HAVE_MODULES_TRUE@ $(am__append_20)
+@HAVE_ALSA_TRUE@@HAVE_MODULES_TRUE@output_alsa_la_SOURCES = alsa.c
+@HAVE_ALSA_TRUE@@HAVE_MODULES_TRUE@output_alsa_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @ALSA_LDFLAGS@
+@HAVE_ALSA_TRUE@@HAVE_MODULES_TRUE@output_alsa_la_CFLAGS = @ALSA_CFLAGS@
+@HAVE_ALSA_TRUE@@HAVE_MODULES_TRUE@output_alsa_la_LIBADD = @ALSA_LIBS@
+@HAVE_COREAUDIO_TRUE@@HAVE_MODULES_TRUE@output_coreaudio_la_SOURCES = coreaudio.c
+@HAVE_COREAUDIO_TRUE@@HAVE_MODULES_TRUE@output_coreaudio_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @COREAUDIO_LDFLAGS@
+@HAVE_COREAUDIO_TRUE@@HAVE_MODULES_TRUE@output_coreaudio_la_CFLAGS = @COREAUDIO_CFLAGS@
+@HAVE_COREAUDIO_TRUE@@HAVE_MODULES_TRUE@output_coreaudio_la_LIBADD = @COREAUDIO_LIBS@
+@HAVE_ESD_TRUE@@HAVE_MODULES_TRUE@output_esd_la_SOURCES = esd.c
+@HAVE_ESD_TRUE@@HAVE_MODULES_TRUE@output_esd_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @ESD_LDFLAGS@
+@HAVE_ESD_TRUE@@HAVE_MODULES_TRUE@output_esd_la_CFLAGS = @ESD_CFLAGS@
+@HAVE_ESD_TRUE@@HAVE_MODULES_TRUE@output_esd_la_LIBADD = @ESD_LIBS@
+@HAVE_JACK_TRUE@@HAVE_MODULES_TRUE@output_jack_la_SOURCES = jack.c
+@HAVE_JACK_TRUE@@HAVE_MODULES_TRUE@output_jack_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @JACK_LDFLAGS@
+@HAVE_JACK_TRUE@@HAVE_MODULES_TRUE@output_jack_la_CFLAGS = @JACK_CFLAGS@
+@HAVE_JACK_TRUE@@HAVE_MODULES_TRUE@output_jack_la_LIBADD = @JACK_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_NAS_TRUE@output_nas_la_SOURCES = nas.c
+@HAVE_MODULES_TRUE@@HAVE_NAS_TRUE@output_nas_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @NAS_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_NAS_TRUE@output_nas_la_CFLAGS = @NAS_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_NAS_TRUE@output_nas_la_LIBADD = @NAS_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_OSS_TRUE@output_oss_la_SOURCES = oss.c
+@HAVE_MODULES_TRUE@@HAVE_OSS_TRUE@output_oss_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @OSS_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_OSS_TRUE@output_oss_la_CFLAGS = @OSS_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_OSS_TRUE@output_oss_la_LIBADD = @OSS_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_PORTAUDIO_TRUE@output_portaudio_la_SOURCES = portaudio.c
+@HAVE_MODULES_TRUE@@HAVE_PORTAUDIO_TRUE@output_portaudio_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @PORTAUDIO_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_PORTAUDIO_TRUE@output_portaudio_la_CFLAGS = @PORTAUDIO_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_PORTAUDIO_TRUE@output_portaudio_la_LIBADD = @PORTAUDIO_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_PULSE_TRUE@output_pulse_la_SOURCES = pulse.c
+@HAVE_MODULES_TRUE@@HAVE_PULSE_TRUE@output_pulse_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @PULSE_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_PULSE_TRUE@output_pulse_la_CFLAGS = @PULSE_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_PULSE_TRUE@output_pulse_la_LIBADD = @PULSE_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_SDL_TRUE@output_sdl_la_SOURCES = sdl.c
+@HAVE_MODULES_TRUE@@HAVE_SDL_TRUE@output_sdl_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @SDL_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_SDL_TRUE@output_sdl_la_CFLAGS = @SDL_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_SDL_TRUE@output_sdl_la_LIBADD = @SDL_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_SNDIO_TRUE@output_sndio_la_SOURCES = sndio.c
+@HAVE_MODULES_TRUE@@HAVE_SNDIO_TRUE@output_sndio_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @SNDIO_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_SNDIO_TRUE@output_sndio_la_CFLAGS = @SNDIO_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_SNDIO_TRUE@output_sndio_la_LIBADD = @SNDIO_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_SUN_TRUE@output_sun_la_SOURCES = sun.c
+@HAVE_MODULES_TRUE@@HAVE_SUN_TRUE@output_sun_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @SUN_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_SUN_TRUE@output_sun_la_CFLAGS = @SUN_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_SUN_TRUE@output_sun_la_LIBADD = @SUN_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@output_win32_la_SOURCES = win32.c
+@HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@output_win32_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @WIN32_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@output_win32_la_CFLAGS = @WIN32_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_WIN32_TRUE@output_win32_la_LIBADD = @WIN32_LIBS@
+@HAVE_AIX_TRUE@@HAVE_MODULES_TRUE@output_aix_la_SOURCES = aix.c
+@HAVE_AIX_TRUE@@HAVE_MODULES_TRUE@output_aix_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @AIX_LDFLAGS@
+@HAVE_AIX_TRUE@@HAVE_MODULES_TRUE@output_aix_la_CFLAGS = @AIX_CFLAGS@
+@HAVE_AIX_TRUE@@HAVE_MODULES_TRUE@output_aix_la_LIBADD = @AIX_LIBS@
+@HAVE_ALIB_TRUE@@HAVE_MODULES_TRUE@output_alib_la_SOURCES = alib.c
+@HAVE_ALIB_TRUE@@HAVE_MODULES_TRUE@output_alib_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @ALIB_LDFLAGS@
+@HAVE_ALIB_TRUE@@HAVE_MODULES_TRUE@output_alib_la_CFLAGS = @ALIB_CFLAGS@
+@HAVE_ALIB_TRUE@@HAVE_MODULES_TRUE@output_alib_la_LIBADD = @ALIB_LIBS@
+@HAVE_ARTS_TRUE@@HAVE_MODULES_TRUE@output_arts_la_SOURCES = arts.c
+@HAVE_ARTS_TRUE@@HAVE_MODULES_TRUE@output_arts_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @ARTS_LDFLAGS@
+@HAVE_ARTS_TRUE@@HAVE_MODULES_TRUE@output_arts_la_CFLAGS = @ARTS_CFLAGS@
+@HAVE_ARTS_TRUE@@HAVE_MODULES_TRUE@output_arts_la_LIBADD = @ARTS_LIBS@
+@HAVE_HP_TRUE@@HAVE_MODULES_TRUE@output_hp_la_SOURCES = hp.c
+@HAVE_HP_TRUE@@HAVE_MODULES_TRUE@output_hp_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @HP_LDFLAGS@
+@HAVE_HP_TRUE@@HAVE_MODULES_TRUE@output_hp_la_CFLAGS = @HP_CFLAGS@
+@HAVE_HP_TRUE@@HAVE_MODULES_TRUE@output_hp_la_LIBADD = @HP_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_OS2_TRUE@output_os2_la_SOURCES = os2.c
+@HAVE_MODULES_TRUE@@HAVE_OS2_TRUE@output_os2_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @OS2_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_OS2_TRUE@output_os2_la_CFLAGS = @OS2_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_OS2_TRUE@output_os2_la_LIBADD = @OS2_LIBS@
+@HAVE_MODULES_TRUE@@HAVE_SGI_TRUE@output_sgi_la_SOURCES = sgi.c
+@HAVE_MODULES_TRUE@@HAVE_SGI_TRUE@output_sgi_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @SGI_LDFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_SGI_TRUE@output_sgi_la_CFLAGS = @SGI_CFLAGS@
+@HAVE_MODULES_TRUE@@HAVE_SGI_TRUE@output_sgi_la_LIBADD = @SGI_LIBS@
+@HAVE_MINT_TRUE@@HAVE_MODULES_TRUE@output_mint_la_SOURCES = mint.c
+@HAVE_MINT_TRUE@@HAVE_MODULES_TRUE@output_mint_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @MINT_LDFLAGS@
+@HAVE_MINT_TRUE@@HAVE_MODULES_TRUE@output_mint_la_CFLAGS = @MINT_CFLAGS@
+@HAVE_MINT_TRUE@@HAVE_MODULES_TRUE@output_mint_la_LIBADD = @MINT_LIBS@
+@HAVE_DUMMY_TRUE@@HAVE_MODULES_TRUE@output_dummy_la_SOURCES = dummy.c
+@HAVE_DUMMY_TRUE@@HAVE_MODULES_TRUE@output_dummy_la_LDFLAGS = -module -no-undefined -avoid-version -export-dynamic @DUMMY_LDFLAGS@
+@HAVE_DUMMY_TRUE@@HAVE_MODULES_TRUE@output_dummy_la_CFLAGS = @DUMMY_CFLAGS@
+@HAVE_DUMMY_TRUE@@HAVE_MODULES_TRUE@output_dummy_la_LIBADD = @DUMMY_LIBS@
+
+# Static build of one module only.
+@HAVE_MODULES_FALSE@AM_CFLAGS = @OUTPUT_CFLAGS@
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/output/Makefile'; \
+ cd $(top_srcdir) && \
+ $(AUTOMAKE) --gnu src/output/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+install-pkglibLTLIBRARIES: $(pkglib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(pkglibdir)" || $(MKDIR_P) "$(DESTDIR)$(pkglibdir)"
+ @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
+ if test -f $$p; then \
+ f=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pkglibdir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pkglibLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pkglibdir)/$$f"; \
+ else :; fi; \
+ done
+
+uninstall-pkglibLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
+ p=$(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pkglibdir)/$$p'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \
+ done
+
+clean-pkglibLTLIBRARIES:
+ -test -z "$(pkglib_LTLIBRARIES)" || rm -f $(pkglib_LTLIBRARIES)
+ @list='$(pkglib_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+output_aix.la: $(output_aix_la_OBJECTS) $(output_aix_la_DEPENDENCIES)
+ $(output_aix_la_LINK) $(am_output_aix_la_rpath) $(output_aix_la_OBJECTS) $(output_aix_la_LIBADD) $(LIBS)
+output_alib.la: $(output_alib_la_OBJECTS) $(output_alib_la_DEPENDENCIES)
+ $(output_alib_la_LINK) $(am_output_alib_la_rpath) $(output_alib_la_OBJECTS) $(output_alib_la_LIBADD) $(LIBS)
+output_alsa.la: $(output_alsa_la_OBJECTS) $(output_alsa_la_DEPENDENCIES)
+ $(output_alsa_la_LINK) $(am_output_alsa_la_rpath) $(output_alsa_la_OBJECTS) $(output_alsa_la_LIBADD) $(LIBS)
+output_arts.la: $(output_arts_la_OBJECTS) $(output_arts_la_DEPENDENCIES)
+ $(output_arts_la_LINK) $(am_output_arts_la_rpath) $(output_arts_la_OBJECTS) $(output_arts_la_LIBADD) $(LIBS)
+output_coreaudio.la: $(output_coreaudio_la_OBJECTS) $(output_coreaudio_la_DEPENDENCIES)
+ $(output_coreaudio_la_LINK) $(am_output_coreaudio_la_rpath) $(output_coreaudio_la_OBJECTS) $(output_coreaudio_la_LIBADD) $(LIBS)
+output_dummy.la: $(output_dummy_la_OBJECTS) $(output_dummy_la_DEPENDENCIES)
+ $(output_dummy_la_LINK) $(am_output_dummy_la_rpath) $(output_dummy_la_OBJECTS) $(output_dummy_la_LIBADD) $(LIBS)
+output_esd.la: $(output_esd_la_OBJECTS) $(output_esd_la_DEPENDENCIES)
+ $(output_esd_la_LINK) $(am_output_esd_la_rpath) $(output_esd_la_OBJECTS) $(output_esd_la_LIBADD) $(LIBS)
+output_hp.la: $(output_hp_la_OBJECTS) $(output_hp_la_DEPENDENCIES)
+ $(output_hp_la_LINK) $(am_output_hp_la_rpath) $(output_hp_la_OBJECTS) $(output_hp_la_LIBADD) $(LIBS)
+output_jack.la: $(output_jack_la_OBJECTS) $(output_jack_la_DEPENDENCIES)
+ $(output_jack_la_LINK) $(am_output_jack_la_rpath) $(output_jack_la_OBJECTS) $(output_jack_la_LIBADD) $(LIBS)
+output_mint.la: $(output_mint_la_OBJECTS) $(output_mint_la_DEPENDENCIES)
+ $(output_mint_la_LINK) $(am_output_mint_la_rpath) $(output_mint_la_OBJECTS) $(output_mint_la_LIBADD) $(LIBS)
+output_nas.la: $(output_nas_la_OBJECTS) $(output_nas_la_DEPENDENCIES)
+ $(output_nas_la_LINK) $(am_output_nas_la_rpath) $(output_nas_la_OBJECTS) $(output_nas_la_LIBADD) $(LIBS)
+output_os2.la: $(output_os2_la_OBJECTS) $(output_os2_la_DEPENDENCIES)
+ $(output_os2_la_LINK) $(am_output_os2_la_rpath) $(output_os2_la_OBJECTS) $(output_os2_la_LIBADD) $(LIBS)
+output_oss.la: $(output_oss_la_OBJECTS) $(output_oss_la_DEPENDENCIES)
+ $(output_oss_la_LINK) $(am_output_oss_la_rpath) $(output_oss_la_OBJECTS) $(output_oss_la_LIBADD) $(LIBS)
+output_portaudio.la: $(output_portaudio_la_OBJECTS) $(output_portaudio_la_DEPENDENCIES)
+ $(output_portaudio_la_LINK) $(am_output_portaudio_la_rpath) $(output_portaudio_la_OBJECTS) $(output_portaudio_la_LIBADD) $(LIBS)
+output_pulse.la: $(output_pulse_la_OBJECTS) $(output_pulse_la_DEPENDENCIES)
+ $(output_pulse_la_LINK) $(am_output_pulse_la_rpath) $(output_pulse_la_OBJECTS) $(output_pulse_la_LIBADD) $(LIBS)
+output_sdl.la: $(output_sdl_la_OBJECTS) $(output_sdl_la_DEPENDENCIES)
+ $(output_sdl_la_LINK) $(am_output_sdl_la_rpath) $(output_sdl_la_OBJECTS) $(output_sdl_la_LIBADD) $(LIBS)
+output_sgi.la: $(output_sgi_la_OBJECTS) $(output_sgi_la_DEPENDENCIES)
+ $(output_sgi_la_LINK) $(am_output_sgi_la_rpath) $(output_sgi_la_OBJECTS) $(output_sgi_la_LIBADD) $(LIBS)
+output_sndio.la: $(output_sndio_la_OBJECTS) $(output_sndio_la_DEPENDENCIES)
+ $(output_sndio_la_LINK) $(am_output_sndio_la_rpath) $(output_sndio_la_OBJECTS) $(output_sndio_la_LIBADD) $(LIBS)
+output_sun.la: $(output_sun_la_OBJECTS) $(output_sun_la_DEPENDENCIES)
+ $(output_sun_la_LINK) $(am_output_sun_la_rpath) $(output_sun_la_OBJECTS) $(output_sun_la_LIBADD) $(LIBS)
+output_win32.la: $(output_win32_la_OBJECTS) $(output_win32_la_DEPENDENCIES)
+ $(output_win32_la_LINK) $(am_output_win32_la_rpath) $(output_win32_la_OBJECTS) $(output_win32_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_aix_la-aix.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_alib_la-alib.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_alsa_la-alsa.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_arts_la-arts.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_coreaudio_la-coreaudio.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_dummy_la-dummy.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_esd_la-esd.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_hp_la-hp.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_jack_la-jack.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_mint_la-mint.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_nas_la-nas.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_os2_la-os2.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_oss_la-oss.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_portaudio_la-portaudio.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_pulse_la-pulse.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_sdl_la-sdl.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_sgi_la-sgi.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_sndio_la-sndio.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_sun_la-sun.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output_win32_la-win32.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+output_aix_la-aix.lo: aix.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_aix_la_CFLAGS) $(CFLAGS) -MT output_aix_la-aix.lo -MD -MP -MF $(DEPDIR)/output_aix_la-aix.Tpo -c -o output_aix_la-aix.lo `test -f 'aix.c' || echo '$(srcdir)/'`aix.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_aix_la-aix.Tpo $(DEPDIR)/output_aix_la-aix.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='aix.c' object='output_aix_la-aix.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_aix_la_CFLAGS) $(CFLAGS) -c -o output_aix_la-aix.lo `test -f 'aix.c' || echo '$(srcdir)/'`aix.c
+
+output_alib_la-alib.lo: alib.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_alib_la_CFLAGS) $(CFLAGS) -MT output_alib_la-alib.lo -MD -MP -MF $(DEPDIR)/output_alib_la-alib.Tpo -c -o output_alib_la-alib.lo `test -f 'alib.c' || echo '$(srcdir)/'`alib.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_alib_la-alib.Tpo $(DEPDIR)/output_alib_la-alib.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='alib.c' object='output_alib_la-alib.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_alib_la_CFLAGS) $(CFLAGS) -c -o output_alib_la-alib.lo `test -f 'alib.c' || echo '$(srcdir)/'`alib.c
+
+output_alsa_la-alsa.lo: alsa.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_alsa_la_CFLAGS) $(CFLAGS) -MT output_alsa_la-alsa.lo -MD -MP -MF $(DEPDIR)/output_alsa_la-alsa.Tpo -c -o output_alsa_la-alsa.lo `test -f 'alsa.c' || echo '$(srcdir)/'`alsa.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_alsa_la-alsa.Tpo $(DEPDIR)/output_alsa_la-alsa.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='alsa.c' object='output_alsa_la-alsa.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_alsa_la_CFLAGS) $(CFLAGS) -c -o output_alsa_la-alsa.lo `test -f 'alsa.c' || echo '$(srcdir)/'`alsa.c
+
+output_arts_la-arts.lo: arts.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_arts_la_CFLAGS) $(CFLAGS) -MT output_arts_la-arts.lo -MD -MP -MF $(DEPDIR)/output_arts_la-arts.Tpo -c -o output_arts_la-arts.lo `test -f 'arts.c' || echo '$(srcdir)/'`arts.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_arts_la-arts.Tpo $(DEPDIR)/output_arts_la-arts.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='arts.c' object='output_arts_la-arts.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_arts_la_CFLAGS) $(CFLAGS) -c -o output_arts_la-arts.lo `test -f 'arts.c' || echo '$(srcdir)/'`arts.c
+
+output_coreaudio_la-coreaudio.lo: coreaudio.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_coreaudio_la_CFLAGS) $(CFLAGS) -MT output_coreaudio_la-coreaudio.lo -MD -MP -MF $(DEPDIR)/output_coreaudio_la-coreaudio.Tpo -c -o output_coreaudio_la-coreaudio.lo `test -f 'coreaudio.c' || echo '$(srcdir)/'`coreaudio.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_coreaudio_la-coreaudio.Tpo $(DEPDIR)/output_coreaudio_la-coreaudio.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='coreaudio.c' object='output_coreaudio_la-coreaudio.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_coreaudio_la_CFLAGS) $(CFLAGS) -c -o output_coreaudio_la-coreaudio.lo `test -f 'coreaudio.c' || echo '$(srcdir)/'`coreaudio.c
+
+output_dummy_la-dummy.lo: dummy.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_dummy_la_CFLAGS) $(CFLAGS) -MT output_dummy_la-dummy.lo -MD -MP -MF $(DEPDIR)/output_dummy_la-dummy.Tpo -c -o output_dummy_la-dummy.lo `test -f 'dummy.c' || echo '$(srcdir)/'`dummy.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_dummy_la-dummy.Tpo $(DEPDIR)/output_dummy_la-dummy.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='dummy.c' object='output_dummy_la-dummy.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_dummy_la_CFLAGS) $(CFLAGS) -c -o output_dummy_la-dummy.lo `test -f 'dummy.c' || echo '$(srcdir)/'`dummy.c
+
+output_esd_la-esd.lo: esd.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_esd_la_CFLAGS) $(CFLAGS) -MT output_esd_la-esd.lo -MD -MP -MF $(DEPDIR)/output_esd_la-esd.Tpo -c -o output_esd_la-esd.lo `test -f 'esd.c' || echo '$(srcdir)/'`esd.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_esd_la-esd.Tpo $(DEPDIR)/output_esd_la-esd.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='esd.c' object='output_esd_la-esd.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_esd_la_CFLAGS) $(CFLAGS) -c -o output_esd_la-esd.lo `test -f 'esd.c' || echo '$(srcdir)/'`esd.c
+
+output_hp_la-hp.lo: hp.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_hp_la_CFLAGS) $(CFLAGS) -MT output_hp_la-hp.lo -MD -MP -MF $(DEPDIR)/output_hp_la-hp.Tpo -c -o output_hp_la-hp.lo `test -f 'hp.c' || echo '$(srcdir)/'`hp.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_hp_la-hp.Tpo $(DEPDIR)/output_hp_la-hp.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='hp.c' object='output_hp_la-hp.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_hp_la_CFLAGS) $(CFLAGS) -c -o output_hp_la-hp.lo `test -f 'hp.c' || echo '$(srcdir)/'`hp.c
+
+output_jack_la-jack.lo: jack.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_jack_la_CFLAGS) $(CFLAGS) -MT output_jack_la-jack.lo -MD -MP -MF $(DEPDIR)/output_jack_la-jack.Tpo -c -o output_jack_la-jack.lo `test -f 'jack.c' || echo '$(srcdir)/'`jack.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_jack_la-jack.Tpo $(DEPDIR)/output_jack_la-jack.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='jack.c' object='output_jack_la-jack.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_jack_la_CFLAGS) $(CFLAGS) -c -o output_jack_la-jack.lo `test -f 'jack.c' || echo '$(srcdir)/'`jack.c
+
+output_mint_la-mint.lo: mint.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_mint_la_CFLAGS) $(CFLAGS) -MT output_mint_la-mint.lo -MD -MP -MF $(DEPDIR)/output_mint_la-mint.Tpo -c -o output_mint_la-mint.lo `test -f 'mint.c' || echo '$(srcdir)/'`mint.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_mint_la-mint.Tpo $(DEPDIR)/output_mint_la-mint.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mint.c' object='output_mint_la-mint.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_mint_la_CFLAGS) $(CFLAGS) -c -o output_mint_la-mint.lo `test -f 'mint.c' || echo '$(srcdir)/'`mint.c
+
+output_nas_la-nas.lo: nas.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_nas_la_CFLAGS) $(CFLAGS) -MT output_nas_la-nas.lo -MD -MP -MF $(DEPDIR)/output_nas_la-nas.Tpo -c -o output_nas_la-nas.lo `test -f 'nas.c' || echo '$(srcdir)/'`nas.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_nas_la-nas.Tpo $(DEPDIR)/output_nas_la-nas.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='nas.c' object='output_nas_la-nas.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_nas_la_CFLAGS) $(CFLAGS) -c -o output_nas_la-nas.lo `test -f 'nas.c' || echo '$(srcdir)/'`nas.c
+
+output_os2_la-os2.lo: os2.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_os2_la_CFLAGS) $(CFLAGS) -MT output_os2_la-os2.lo -MD -MP -MF $(DEPDIR)/output_os2_la-os2.Tpo -c -o output_os2_la-os2.lo `test -f 'os2.c' || echo '$(srcdir)/'`os2.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_os2_la-os2.Tpo $(DEPDIR)/output_os2_la-os2.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='os2.c' object='output_os2_la-os2.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_os2_la_CFLAGS) $(CFLAGS) -c -o output_os2_la-os2.lo `test -f 'os2.c' || echo '$(srcdir)/'`os2.c
+
+output_oss_la-oss.lo: oss.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_oss_la_CFLAGS) $(CFLAGS) -MT output_oss_la-oss.lo -MD -MP -MF $(DEPDIR)/output_oss_la-oss.Tpo -c -o output_oss_la-oss.lo `test -f 'oss.c' || echo '$(srcdir)/'`oss.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_oss_la-oss.Tpo $(DEPDIR)/output_oss_la-oss.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='oss.c' object='output_oss_la-oss.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_oss_la_CFLAGS) $(CFLAGS) -c -o output_oss_la-oss.lo `test -f 'oss.c' || echo '$(srcdir)/'`oss.c
+
+output_portaudio_la-portaudio.lo: portaudio.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_portaudio_la_CFLAGS) $(CFLAGS) -MT output_portaudio_la-portaudio.lo -MD -MP -MF $(DEPDIR)/output_portaudio_la-portaudio.Tpo -c -o output_portaudio_la-portaudio.lo `test -f 'portaudio.c' || echo '$(srcdir)/'`portaudio.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_portaudio_la-portaudio.Tpo $(DEPDIR)/output_portaudio_la-portaudio.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='portaudio.c' object='output_portaudio_la-portaudio.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_portaudio_la_CFLAGS) $(CFLAGS) -c -o output_portaudio_la-portaudio.lo `test -f 'portaudio.c' || echo '$(srcdir)/'`portaudio.c
+
+output_pulse_la-pulse.lo: pulse.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_pulse_la_CFLAGS) $(CFLAGS) -MT output_pulse_la-pulse.lo -MD -MP -MF $(DEPDIR)/output_pulse_la-pulse.Tpo -c -o output_pulse_la-pulse.lo `test -f 'pulse.c' || echo '$(srcdir)/'`pulse.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_pulse_la-pulse.Tpo $(DEPDIR)/output_pulse_la-pulse.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='pulse.c' object='output_pulse_la-pulse.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_pulse_la_CFLAGS) $(CFLAGS) -c -o output_pulse_la-pulse.lo `test -f 'pulse.c' || echo '$(srcdir)/'`pulse.c
+
+output_sdl_la-sdl.lo: sdl.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_sdl_la_CFLAGS) $(CFLAGS) -MT output_sdl_la-sdl.lo -MD -MP -MF $(DEPDIR)/output_sdl_la-sdl.Tpo -c -o output_sdl_la-sdl.lo `test -f 'sdl.c' || echo '$(srcdir)/'`sdl.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_sdl_la-sdl.Tpo $(DEPDIR)/output_sdl_la-sdl.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sdl.c' object='output_sdl_la-sdl.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_sdl_la_CFLAGS) $(CFLAGS) -c -o output_sdl_la-sdl.lo `test -f 'sdl.c' || echo '$(srcdir)/'`sdl.c
+
+output_sgi_la-sgi.lo: sgi.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_sgi_la_CFLAGS) $(CFLAGS) -MT output_sgi_la-sgi.lo -MD -MP -MF $(DEPDIR)/output_sgi_la-sgi.Tpo -c -o output_sgi_la-sgi.lo `test -f 'sgi.c' || echo '$(srcdir)/'`sgi.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_sgi_la-sgi.Tpo $(DEPDIR)/output_sgi_la-sgi.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sgi.c' object='output_sgi_la-sgi.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_sgi_la_CFLAGS) $(CFLAGS) -c -o output_sgi_la-sgi.lo `test -f 'sgi.c' || echo '$(srcdir)/'`sgi.c
+
+output_sndio_la-sndio.lo: sndio.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_sndio_la_CFLAGS) $(CFLAGS) -MT output_sndio_la-sndio.lo -MD -MP -MF $(DEPDIR)/output_sndio_la-sndio.Tpo -c -o output_sndio_la-sndio.lo `test -f 'sndio.c' || echo '$(srcdir)/'`sndio.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_sndio_la-sndio.Tpo $(DEPDIR)/output_sndio_la-sndio.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sndio.c' object='output_sndio_la-sndio.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_sndio_la_CFLAGS) $(CFLAGS) -c -o output_sndio_la-sndio.lo `test -f 'sndio.c' || echo '$(srcdir)/'`sndio.c
+
+output_sun_la-sun.lo: sun.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_sun_la_CFLAGS) $(CFLAGS) -MT output_sun_la-sun.lo -MD -MP -MF $(DEPDIR)/output_sun_la-sun.Tpo -c -o output_sun_la-sun.lo `test -f 'sun.c' || echo '$(srcdir)/'`sun.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_sun_la-sun.Tpo $(DEPDIR)/output_sun_la-sun.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='sun.c' object='output_sun_la-sun.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_sun_la_CFLAGS) $(CFLAGS) -c -o output_sun_la-sun.lo `test -f 'sun.c' || echo '$(srcdir)/'`sun.c
+
+output_win32_la-win32.lo: win32.c
+@am__fastdepCC_TRUE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_win32_la_CFLAGS) $(CFLAGS) -MT output_win32_la-win32.lo -MD -MP -MF $(DEPDIR)/output_win32_la-win32.Tpo -c -o output_win32_la-win32.lo `test -f 'win32.c' || echo '$(srcdir)/'`win32.c
+@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/output_win32_la-win32.Tpo $(DEPDIR)/output_win32_la-win32.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='win32.c' object='output_win32_la-win32.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(output_win32_la_CFLAGS) $(CFLAGS) -c -o output_win32_la-win32.lo `test -f 'win32.c' || echo '$(srcdir)/'`win32.c
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$tags $$unique; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ tags=; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$tags$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$tags $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && cd $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) $$here
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ fi; \
+ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ else \
+ test -f $(distdir)/$$file \
+ || cp -p $$d/$$file $(distdir)/$$file \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES)
+installdirs:
+ for dir in "$(DESTDIR)$(pkglibdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+@HAVE_MODULES_TRUE@install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-pkglibLTLIBRARIES \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-exec-am: install-pkglibLTLIBRARIES
+
+install-html: install-html-am
+
+install-info: install-info-am
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-ps: install-ps-am
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-pkglibLTLIBRARIES
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libtool clean-pkglibLTLIBRARIES ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-pkglibLTLIBRARIES \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags uninstall uninstall-am uninstall-pkglibLTLIBRARIES
+
+
+@HAVE_MODULES_FALSE@all: @OUTPUT_MOD@.$(OBJEXT)
+
+# No installation happening from here
+@HAVE_MODULES_FALSE@install: all
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/output/aix.c b/src/output/aix.c
new file mode 100644
index 0000000..72f379b
--- /dev/null
+++ b/src/output/aix.c
@@ -0,0 +1,300 @@
+/*
+ aix: Driver for IBM RS/6000 with AIX Ultimedia Services
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Juergen Schoew and Tomas Oegren
+*/
+
+#include <stdio.h>
+#include <unistd.h>
+#include <stdlib.h>
+
+#include <errno.h>
+#include <fcntl.h>
+#include <sys/audio.h>
+#include <stropts.h>
+#include <sys/types.h>
+#include <sys/file.h>
+#include <sys/stat.h>
+#include <sys/param.h>
+
+#include "mpg123app.h"
+#include "debug.h"
+
+/* use AUDIO_BSIZE to set the msec for audio buffering in Ultimedia library
+ */
+/* #define AUDIO_BSIZE AUDIO_IGNORE */
+#define AUDIO_BSIZE 200
+
+static int rate_best_match(audio_output_t *ao)
+{
+ static long valid [ ] = { 5510, 6620, 8000, 9600, 11025, 16000, 18900,
+ 22050, 27420, 32000, 33075, 37800, 44100, 48000, 0 };
+ int i = 0;
+ long best = 8000;
+
+ if(!ai || ao->fn < 0 || ao->rate < 0) {
+ return -1;
+ }
+
+ while (valid [i]) {
+ if (abs(valid[i] - ao->rate) < abs(best - ao->rate))
+ {
+ best = valid [i];
+ }
+ i = i + 1;
+ }
+
+ ao->rate = best;
+ return best;
+}
+
+static int reset_parameters(audio_output_t *ao)
+{
+ audio_control acontrol;
+ audio_change achange;
+ audio_init ainit;
+ int ret;
+
+ memset ( & achange, '\0', sizeof (achange));
+ memset ( & acontrol, '\0', sizeof (acontrol));
+
+ achange.balance = 0x3fff0000;
+ achange.balance_delay = 0;
+ achange.volume = (long) (0x7fff << 16);
+ achange.volume_delay = 0;
+ achange.input = AUDIO_IGNORE;
+ if (ao->flags == -1) achange.output = INTERNAL_SPEAKER;
+ else achange.output = 0;
+
+ if(ao->flags & AUDIO_OUT_INTERNAL_SPEAKER)
+ achange.output |= INTERNAL_SPEAKER;
+ if(ao->flags & AUDIO_OUT_HEADPHONES)
+ achange.output |= EXTERNAL_SPEAKER;
+ if(ao->flags & AUDIO_OUT_LINE_OUT)
+ achange.output |= OUTPUT_1;
+ if(ao->flags == 0)
+ achange.output = AUDIO_IGNORE;
+
+ achange.treble = AUDIO_IGNORE;
+ achange.bass = AUDIO_IGNORE;
+ achange.pitch = AUDIO_IGNORE;
+ achange.monitor = AUDIO_IGNORE;
+ achange.dev_info = (char *) NULL;
+
+ acontrol.ioctl_request = AUDIO_CHANGE;
+ acontrol.position = 0;
+ acontrol.request_info = (char *) & achange;
+
+ ret = ioctl (ao->fn, AUDIO_CONTROL, & acontrol);
+ if (ret < 0)
+ return ret;
+
+ /* Init Device for new values */
+ if (ao->rate >0) {
+ memset ( & ainit, '\0', sizeof (ainit));
+ ainit.srate = rate_best_match(ai);
+ if (ao->channels > 0)
+ ainit.channels = ao->channels;
+ else
+ ainit.channels = 1;
+ switch (ao->format) {
+ default :
+ ainit.mode = PCM;
+ ainit.bits_per_sample = 8;
+ ainit.flags = BIG_ENDIAN | TWOS_COMPLEMENT;
+ break;
+ case MPG123_ENC_SIGNED_16:
+ ainit.mode = PCM;
+ ainit.bits_per_sample = 16;
+ ainit.flags = BIG_ENDIAN | TWOS_COMPLEMENT;
+ break;
+ case MPG123_ENC_SIGNED_8:
+ ainit.mode = PCM;
+ ainit.bits_per_sample = 8;
+ ainit.flags = BIG_ENDIAN | TWOS_COMPLEMENT;
+ break;
+ case MPG123_ENC_UNSIGNED_16:
+ ainit.mode = PCM;
+ ainit.bits_per_sample = 16;
+ ainit.flags = BIG_ENDIAN | TWOS_COMPLEMENT | SIGNED;
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+ ainit.mode = PCM;
+ ainit.bits_per_sample = 8;
+ ainit.flags = BIG_ENDIAN | TWOS_COMPLEMENT | SIGNED;
+ break;
+ case MPG123_ENC_ULAW_8:
+ ainit.mode = MU_LAW;
+ ainit.bits_per_sample = 8;
+ ainit.flags = BIG_ENDIAN | TWOS_COMPLEMENT;
+ break;
+ case MPG123_ENC_ALAW_8:
+ ainit.mode = A_LAW;
+ ainit.bits_per_sample = 8;
+ ainit.flags = BIG_ENDIAN | TWOS_COMPLEMENT;
+ break;
+ }
+ ainit.operation = PLAY;
+ ainit.bsize = AUDIO_BSIZE;
+
+ ret = ioctl (ao->fn, AUDIO_INIT, & ainit);
+ if (ret < 0) {
+ error("Can't set new audio parameters!");
+ return ret;
+ }
+ }
+
+ acontrol.ioctl_request = AUDIO_START;
+ acontrol.request_info = NULL;
+ acontrol.position = 0;
+
+ ret = ioctl (ao->fn, AUDIO_CONTROL, & acontrol);
+ if (ret < 0) {
+ error("Can't reset audio!");
+ return ret;
+ }
+ return 0;
+}
+
+static int open_aix(audio_output_t *ao)
+{
+ audio_init ainit;
+ int ret;
+
+ if(!ao->device) {
+ if(getenv("AUDIODEV")) {
+ ao->device = getenv("AUDIODEV");
+ ao->fn = open(ao->device,O_WRONLY);
+ } else {
+ ao->device = "/dev/paud0/1"; /* paud0 for PCI */
+ ao->fn = open(ao->device,O_WRONLY);
+ if ((ao->fn == -1) & (errno == ENOENT)) {
+ ao->device = "/dev/baud0/1"; /* baud0 for MCA */
+ ao->fn = open(ao->device,O_WRONLY);
+ }
+ }
+ } else ao->fn = open(ao->device,O_WRONLY);
+
+ if(ao->fn < 0) {
+ error("Can't open audio device!");
+ return ao->fn;
+ }
+
+ /* Init to default values */
+ memset ( & ainit, '\0', sizeof (ainit));
+ ainit.srate = 44100;
+ ainit.channels = 2;
+ ainit.mode = PCM;
+ ainit.bits_per_sample = 16;
+ ainit.flags = BIG_ENDIAN | TWOS_COMPLEMENT;
+ ainit.operation = PLAY;
+ ainit.bsize = AUDIO_BSIZE;
+
+ ret = ioctl (ao->fn, AUDIO_INIT, & ainit);
+ if (ret < 0) return ret;
+
+ reset_parameters(ai);
+ return ao->fn;
+}
+
+
+
+static int get_formats_aix(audio_output_t *ao)
+{
+ /* ULTIMEDIA DOCUMENTATION SAYS:
+ The Ultimedia Audio Adapter supports fourteen sample rates you can use to
+ capture and playback audio data. The rates are (in kHz): 5.51, 6.62, 8.0,
+ 9.6, 11.025, 16.0, 18.9, 22.050, 27.42, 32.0, 33.075, 37.8, 44.1, and 48.0.
+ These rates are supported for mono and stereo PCM (8- and 16-bit), mu-law,
+ and A-law.
+ */
+
+ long rate;
+
+ rate = ao->rate;
+ rate_best_match(ai);
+ if (ao->rate == rate)
+ return (MPG123_ENC_SIGNED_16|MPG123_ENC_UNSIGNED_16|
+ MPG123_ENC_UNSIGNED_8|MPG123_ENC_SIGNED_8|
+ MPG123_ENC_ULAW_8|MPG123_ENC_ALAW_8);
+ else
+ return 0;
+}
+
+static int write_aix(audio_output_t *ao,unsigned char *buf,int len)
+{
+ return write(ao->fn,buf,len);
+}
+
+static int close_aix(audio_output_t *ao)
+{
+ audio_control acontrol;
+ audio_buffer abuffer;
+ int ret,i;
+
+ /* Don't close the audio-device until it's played all its contents */
+ memset ( & acontrol, '\0', sizeof ( acontrol ) );
+ acontrol.request_info = &abuffer;
+ acontrol.position = 0;
+ i=50; /* Don't do this forever on a bad day :-) */
+
+ while (i-- > 0) {
+ if ((ioctl(ao->fn, AUDIO_BUFFER, &acontrol))< 0) {
+ error1("buffer read failed: %d", errno);
+ break;
+ } else {
+ if (abuffer.flags <= 0) break;
+ }
+ usleep(200000); /* sleep 0.2 sec */
+ }
+
+ memset ( & acontrol, '\0', sizeof ( acontrol ) );
+ acontrol.ioctl_request = AUDIO_STOP;
+ acontrol.request_info = NULL;
+ acontrol.position = 0;
+
+ ret = ioctl ( ao->fn, AUDIO_CONTROL, & acontrol );
+ if (ret < 0) error("Can't close audio!");
+
+ ret = close (ao->fn);
+ if (ret < 0) error("Can't close audio!");
+
+ return 0;
+}
+
+static void flush_aix(audio_output_t *ao)
+{
+}
+
+static int init_aix(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_aix;
+ ao->flush = flush_aix;
+ ao->write = write_aix;
+ ao->get_formats = get_formats_aix;
+ ao->close = close_aix;
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "AIX",
+ /* description */ "Output audio on IBM RS/6000 with AIX Ultimedia Services.",
+ /* revision */ "$Rev: 932 $",
+ /* handle */ NULL,
+
+ /* init_output */ init_aix,
+};
+
diff --git a/src/output/alib.c b/src/output/alib.c
new file mode 100644
index 0000000..635382d
--- /dev/null
+++ b/src/output/alib.c
@@ -0,0 +1,209 @@
+/*
+ alib: audio output for HP-UX using alib
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Erwan Ducroquet
+ based on source code from HP (Audio SDK)
+*/
+
+/*
+ *
+ * for mpg123 :
+ * hpux:
+ * $(MAKE) \
+ * CC=cc \
+ * LDFLAGS=-L/opt/audio/lib \
+ * AUDIO_LIB=-lAlib \
+ * OBJECTS=decode.o dct64.o \
+ * CFLAGS=-Ae +O3 -DREAL_IS_FLOAT -D_HPUX_SOURCE -DHPUX -I/opt/audio/include \
+ * mpg123
+ */
+
+
+/*
+ * For the user :
+ * If you launch mpg123 on a XTerm with sound capabilities, it's OK
+ * Else, you have to set the environment variable "AUDIO" to the name of
+ * an HP Xterm with sound card.
+ */
+
+/**************************************************************************/
+
+#include "mpg123app.h"
+
+#include <fcntl.h>
+
+#include <sys/socket.h>
+#include <netdb.h>
+#include <netinet/in.h>
+#include <netinet/tcp.h>
+#include <errno.h>
+
+
+#include <Alib.h> /* /opt/audio/include */
+#include <CUlib.h> /* /opt/audio/include */
+
+#include "debug.h"
+
+/**************************************************************************/
+
+
+/* FIXME: These globals should be moved into a structure */
+static Audio *audioServer = (Audio *) NULL;
+static struct protoent *tcpProtocolEntry;
+static ATransID xid;
+
+static void printAudioError(Audio *audio,char *message,int errorCode) {
+ char errorbuff[132];
+ AGetErrorText(audio, errorCode, errorbuff, 131);
+ error2("%s: %s", message, errorbuff);
+}
+static long myHandler(Audio *audio,AErrorEvent *err_event) {
+ printAudioError( audio, "Audio error", err_event->error_code );
+ /* we cannot just do random exists, that messes terminal up
+ need proper error propagation in that case for future, setting intflag or such */
+ /* exit(1); */
+}
+
+/**************************************************************************/
+
+/*
+ * Set the fn element of ai
+ * Use ao->rate and ao->channels
+ * Doesn't set any volume
+ */
+
+/* return on error leaves stuff dirty here... */
+static int open_alib(audio_output_t *ao)
+{
+ AudioAttributes Attribs;
+ AudioAttrMask AttribsMask;
+ AGainEntry gainEntry[4];
+ SSPlayParams playParams;
+ SStream audioStream;
+ AErrorHandler prevHandler;
+ char server[1];
+ int i;
+ long status;
+
+ if (audioServer) {
+ error("openAudio: audio already open");
+ return -1;
+ }
+
+ prevHandler = ASetErrorHandler(myHandler);
+
+ server[0] = '\0';
+ audioServer = AOpenAudio( server, NULL );
+ if (audioServer==NULL) {
+ error("Error: could not open audio\n");
+ return -1;
+ }
+
+ ao->fn = socket( AF_INET, SOCK_STREAM, 0 );
+ if(ao->fn<0) {
+ error("Socket creation failed");
+ return -1;
+ }
+
+ Attribs.type = ATSampled;
+ Attribs.attr.sampled_attr.sampling_rate = ao->rate;
+ Attribs.attr.sampled_attr.channels = ao->channels;
+ Attribs.attr.sampled_attr.data_format = ADFLin16;
+ AttribsMask = ASSamplingRateMask | ASChannelsMask | ASDataFormatMask;
+
+ gainEntry[0].gain = AUnityGain;
+ gainEntry[0].u.o.out_ch = AOCTMono;
+ gainEntry[0].u.o.out_dst = AODTDefaultOutput;
+
+ playParams.gain_matrix.type = AGMTOutput; /* gain matrix */
+ playParams.gain_matrix.num_entries = 1;
+ playParams.gain_matrix.gain_entries = gainEntry;
+ playParams.play_volume = AUnityGain; /* play volume */
+ playParams.priority = APriorityNormal; /* normal priority */
+ playParams.event_mask = 0; /* don't solicit any events */
+
+ xid=APlaySStream(audioServer,AttribsMask,&Attribs,
+ &playParams,&audioStream,NULL);
+
+ status=connect(ao->fn,
+ (struct sockaddr *) &audioStream.tcp_sockaddr,
+ sizeof(struct sockaddr_in) );
+ if (status<0) {
+ error("Connect failed");
+ return -1;
+ }
+
+ i=-1;
+ tcpProtocolEntry=getprotobyname("tcp");
+ setsockopt(ao->fn,tcpProtocolEntry->p_proto,TCP_NODELAY,&i,sizeof(i));
+
+ return ao->fn;
+}
+
+/**************************************************************************/
+
+static int close_alib(audio_output_t *ao)
+{
+ close(ao->fn);
+ ASetCloseDownMode( audioServer, AKeepTransactions, NULL );
+ ACloseAudio( audioServer, NULL );
+ audioServer = (Audio *) NULL;
+ return 0;
+}
+
+/**************************************************************************/
+
+/*
+ * very simple
+ * deserv to be inline
+ */
+
+static int write_alib(audio_output_t *ao,unsigned char *buf,int len)
+{
+ return write(ao->fn,buf,len*2);
+}
+
+/**************************************************************************/
+
+static int get_formats_alib(audio_output_t *ao)
+{
+ return MPG123_ENC_SIGNED_16;
+}
+
+static void flush_alib(audio_output_t *ao)
+{
+}
+
+
+static int init_alib(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_alib;
+ ao->flush = flush_alib;
+ ao->write = write_alib;
+ ao->get_formats = get_formats_alib;
+ ao->close = close_alib;
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "alib",
+ /* description */ "Output audio HP-UX using alib.",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_alib,
+};
+
diff --git a/src/output/alsa.c b/src/output/alsa.c
new file mode 100644
index 0000000..d3aaac0
--- /dev/null
+++ b/src/output/alsa.c
@@ -0,0 +1,289 @@
+/*
+ alsa: sound output with Advanced Linux Sound Architecture 1.x API
+
+ copyright 2006-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+
+ initially written by Clemens Ladisch <clemens@ladisch.de>
+*/
+
+#include "mpg123app.h"
+#include "audio.h"
+#include "module.h"
+#include <errno.h>
+
+/* make ALSA 0.9.x compatible to the 1.0.x API */
+#define ALSA_PCM_NEW_HW_PARAMS_API
+#define ALSA_PCM_NEW_SW_PARAMS_API
+
+#include <alsa/asoundlib.h>
+
+#include "debug.h"
+
+/* My laptop has probs playing low-sampled files with only 0.5s buffer... this should be a user setting -- ThOr */
+#define BUFFER_LENGTH 0.5 /* in seconds */
+
+static const struct {
+ snd_pcm_format_t alsa;
+ int mpg123;
+} format_map[] = {
+ { SND_PCM_FORMAT_S16, MPG123_ENC_SIGNED_16 },
+ { SND_PCM_FORMAT_U16, MPG123_ENC_UNSIGNED_16 },
+ { SND_PCM_FORMAT_U8, MPG123_ENC_UNSIGNED_8 },
+ { SND_PCM_FORMAT_S8, MPG123_ENC_SIGNED_8 },
+ { SND_PCM_FORMAT_A_LAW, MPG123_ENC_ALAW_8 },
+ { SND_PCM_FORMAT_MU_LAW, MPG123_ENC_ULAW_8 },
+ { SND_PCM_FORMAT_S32, MPG123_ENC_SIGNED_32 },
+ { SND_PCM_FORMAT_U32, MPG123_ENC_UNSIGNED_32 },
+ { SND_PCM_FORMAT_FLOAT, MPG123_ENC_FLOAT_32 },
+ { SND_PCM_FORMAT_FLOAT64, MPG123_ENC_FLOAT_64 }
+};
+#define NUM_FORMATS (sizeof format_map / sizeof format_map[0])
+
+
+static int rates_match(long int desired, unsigned int actual)
+{
+ return actual * 100 > desired * (100 - AUDIO_RATE_TOLERANCE) &&
+ actual * 100 < desired * (100 + AUDIO_RATE_TOLERANCE);
+}
+
+static int initialize_device(audio_output_t *ao)
+{
+ snd_pcm_hw_params_t *hw=NULL;
+ snd_pcm_sw_params_t *sw=NULL;
+ snd_pcm_uframes_t buffer_size;
+ snd_pcm_uframes_t period_size;
+ snd_pcm_format_t format;
+ snd_pcm_t *pcm=(snd_pcm_t*)ao->userptr;
+ unsigned int rate;
+ int i;
+
+ snd_pcm_hw_params_alloca(&hw); /* Ignore GCC warning here... alsa-lib>=1.0.16 doesn't trigger that anymore, too. */
+ if (snd_pcm_hw_params_any(pcm, hw) < 0) {
+ if(!AOQUIET) error("initialize_device(): no configuration available");
+ return -1;
+ }
+ if (snd_pcm_hw_params_set_access(pcm, hw, SND_PCM_ACCESS_RW_INTERLEAVED) < 0) {
+ if(!AOQUIET) error("initialize_device(): device does not support interleaved access");
+ return -1;
+ }
+ format = SND_PCM_FORMAT_UNKNOWN;
+ for (i = 0; i < NUM_FORMATS; ++i) {
+ if (ao->format == format_map[i].mpg123) {
+ format = format_map[i].alsa;
+ break;
+ }
+ }
+ if (format == SND_PCM_FORMAT_UNKNOWN) {
+ if(!AOQUIET) error1("initialize_device(): invalid sample format %d", ao->format);
+ errno = EINVAL;
+ return -1;
+ }
+ if (snd_pcm_hw_params_set_format(pcm, hw, format) < 0) {
+ if(!AOQUIET) error1("initialize_device(): cannot set format %s", snd_pcm_format_name(format));
+ return -1;
+ }
+ if (snd_pcm_hw_params_set_channels(pcm, hw, ao->channels) < 0) {
+ if(!AOQUIET) error1("initialize_device(): cannot set %d channels", ao->channels);
+ return -1;
+ }
+ rate = ao->rate;
+ if (snd_pcm_hw_params_set_rate_near(pcm, hw, &rate, NULL) < 0) {
+ if(!AOQUIET) error1("initialize_device(): cannot set rate %u", rate);
+ return -1;
+ }
+ if (!rates_match(ao->rate, rate)) {
+ if(!AOQUIET) error2("initialize_device(): rate %ld not available, using %u", ao->rate, rate);
+ /* return -1; */
+ }
+ buffer_size = rate * BUFFER_LENGTH;
+ if (snd_pcm_hw_params_set_buffer_size_near(pcm, hw, &buffer_size) < 0) {
+ if(!AOQUIET) error("initialize_device(): cannot set buffer size");
+ return -1;
+ }
+ period_size = buffer_size / 4;
+ if (snd_pcm_hw_params_set_period_size_near(pcm, hw, &period_size, NULL) < 0) {
+ if(!AOQUIET) error("initialize_device(): cannot set period size");
+ return -1;
+ }
+ if (snd_pcm_hw_params(pcm, hw) < 0) {
+ if(!AOQUIET) error("initialize_device(): cannot set hw params");
+ return -1;
+ }
+
+ snd_pcm_sw_params_alloca(&sw);
+ if (snd_pcm_sw_params_current(pcm, sw) < 0) {
+ if(!AOQUIET) error("initialize_device(): cannot get sw params");
+ return -1;
+ }
+ /* start playing after the first write */
+ if (snd_pcm_sw_params_set_start_threshold(pcm, sw, 1) < 0) {
+ if(!AOQUIET) error("initialize_device(): cannot set start threshold");
+ return -1;
+ }
+ /* wake up on every interrupt */
+ if (snd_pcm_sw_params_set_avail_min(pcm, sw, 1) < 0) {
+ if(!AOQUIET) error("initialize_device(): cannot set min available");
+ return -1;
+ }
+#if SND_LIB_VERSION < ((1<<16)|16)
+ /* Always write as many frames as possible (deprecated since alsa-lib 1.0.16) */
+ if (snd_pcm_sw_params_set_xfer_align(pcm, sw, 1) < 0) {
+ if(!AOQUIET) error("initialize_device(): cannot set transfer alignment");
+ return -1;
+ }
+#endif
+ if (snd_pcm_sw_params(pcm, sw) < 0) {
+ if(!AOQUIET) error("initialize_device(): cannot set sw params");
+ return -1;
+ }
+ return 0;
+}
+
+static void error_ignorer(const char *file, int line, const char *function, int err, const char *fmt,...)
+{
+ /* I can make ALSA silent. */
+}
+
+static int open_alsa(audio_output_t *ao)
+{
+ const char *pcm_name;
+ snd_pcm_t *pcm=NULL;
+ debug1("open_alsa with %p", ao->userptr);
+
+ snd_lib_error_set_handler(AOQUIET ? error_ignorer : NULL);
+ pcm_name = ao->device ? ao->device : "default";
+ if (snd_pcm_open(&pcm, pcm_name, SND_PCM_STREAM_PLAYBACK, 0) < 0) {
+ if(!AOQUIET) error1("cannot open device %s", pcm_name);
+ return -1;
+ }
+ ao->userptr = pcm;
+ if (ao->format != -1) {
+ /* we're going to play: initalize sample format */
+ return initialize_device(ao);
+ } else {
+ /* query mode; sample format will be set for each query */
+ return 0;
+ }
+}
+
+
+static int get_formats_alsa(audio_output_t *ao)
+{
+ snd_pcm_t *pcm=(snd_pcm_t*)ao->userptr;
+ snd_pcm_hw_params_t *hw;
+ unsigned int rate;
+ int supported_formats, i;
+
+ snd_pcm_hw_params_alloca(&hw);
+ if (snd_pcm_hw_params_any(pcm, hw) < 0) {
+ if(!AOQUIET) error("get_formats_alsa(): no configuration available");
+ return -1;
+ }
+ if (snd_pcm_hw_params_set_access(pcm, hw, SND_PCM_ACCESS_RW_INTERLEAVED) < 0)
+ return -1;
+ if (snd_pcm_hw_params_set_channels(pcm, hw, ao->channels) < 0)
+ return 0;
+ rate = ao->rate;
+ if (snd_pcm_hw_params_set_rate_near(pcm, hw, &rate, NULL) < 0)
+ return -1;
+ if (!rates_match(ao->rate, rate))
+ return 0;
+ supported_formats = 0;
+ for (i = 0; i < NUM_FORMATS; ++i) {
+ if (snd_pcm_hw_params_test_format(pcm, hw, format_map[i].alsa) == 0)
+ supported_formats |= format_map[i].mpg123;
+ }
+ return supported_formats;
+}
+
+static int write_alsa(audio_output_t *ao, unsigned char *buf, int bytes)
+{
+ snd_pcm_t *pcm=(snd_pcm_t*)ao->userptr;
+ snd_pcm_uframes_t frames;
+ snd_pcm_sframes_t written;
+
+ frames = snd_pcm_bytes_to_frames(pcm, bytes);
+ written = snd_pcm_writei(pcm, buf, frames);
+ if (written == -EINTR) /* interrupted system call */
+ written = 0;
+ else if (written == -EPIPE) { /* underrun */
+ if (snd_pcm_prepare(pcm) >= 0)
+ written = snd_pcm_writei(pcm, buf, frames);
+ }
+ if (written >= 0)
+ return snd_pcm_frames_to_bytes(pcm, written);
+ else
+ {
+ if(snd_pcm_state(pcm) == SND_PCM_STATE_SUSPENDED)
+ {
+ /* Iamnothappyabouthisnothappyreallynot. */
+ snd_pcm_resume(pcm);
+ if(snd_pcm_state(pcm) == SND_PCM_STATE_SUSPENDED)
+ {
+ error("device still suspended after resume hackery... giving up");
+ return -1;
+ }
+ }
+ return 0;
+ }
+}
+
+static void flush_alsa(audio_output_t *ao)
+{
+ snd_pcm_t *pcm=(snd_pcm_t*)ao->userptr;
+
+ /* is this the optimal solution? - we should figure out what we really whant from this function */
+
+debug("alsa drop");
+ snd_pcm_drop(pcm);
+debug("alsa prepare");
+ snd_pcm_prepare(pcm);
+debug("alsa flush done");
+}
+
+static int close_alsa(audio_output_t *ao)
+{
+ snd_pcm_t *pcm=(snd_pcm_t*)ao->userptr;
+ debug1("close_alsa with %p", ao->userptr);
+ if(pcm != NULL) /* be really generous for being called without any device opening */
+ {
+ if (snd_pcm_state(pcm) == SND_PCM_STATE_RUNNING)
+ snd_pcm_drain(pcm);
+ ao->userptr = NULL; /* Should alsa do this or the module wrapper? */
+ return snd_pcm_close(pcm);
+ }
+ else return 0;
+}
+
+
+static int init_alsa(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_alsa;
+ ao->flush = flush_alsa;
+ ao->write = write_alsa;
+ ao->get_formats = get_formats_alsa;
+ ao->close = close_alsa;
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "alsa",
+ /* description */ "Output audio using Advanced Linux Sound Architecture (ALSA).",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_alsa,
+};
+
diff --git a/src/output/arts.c b/src/output/arts.c
new file mode 100644
index 0000000..04ee02f
--- /dev/null
+++ b/src/output/arts.c
@@ -0,0 +1,117 @@
+/*
+ arts: audio output via aRts Sound Daemon
+
+ copyright 2007-8 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+
+ initially written by Stefan Lenselink (Stefan@lenselink.org)
+*/
+
+
+#include "mpg123app.h"
+#include <artsc.h>
+#include "debug.h"
+
+typedef struct
+{
+ arts_stream_t arse; /* That's short for ARts StrEam;-) */
+} mpg123_arts_t;
+
+static int open_arts(audio_output_t *ao)
+{
+ short bits = 0;
+ if(!ao) return -1;
+
+ if(ao->format < 0)
+ {
+ ao->format = MPG123_ENC_SIGNED_16;
+ ao->rate = 44100;
+ ao->channels = 2;
+ }
+ /* Trial and error revealed these two formats to work with aRts. */
+ if(ao->format == MPG123_ENC_SIGNED_16) bits = 16;
+ else if(ao->format == MPG123_ENC_UNSIGNED_8) bits = 8;
+ else return -1;
+
+ /* Initialize the aRts lib*/
+ arts_init();
+ /* Open a stream to the aRts server */
+ ((mpg123_arts_t*)ao->userptr)->arse = arts_play_stream( ao->rate, bits, ao->channels, "mpg123" );
+ /* Yeah, black box and all... it's still a pointer that is NULL on error. */
+ return (void*)((mpg123_arts_t*)ao->userptr)->arse == NULL ? -1 : 0;
+}
+
+static int get_formats_arts(audio_output_t *ao)
+{
+ /* aRts runs not everything, but any rate. */
+ return MPG123_ENC_SIGNED_16|MPG123_ENC_UNSIGNED_8;
+}
+
+static int write_arts(audio_output_t *ao,unsigned char *buf,int len)
+{
+ /* PIPE the PCM forward to the aRts Sound Daemon */
+ return arts_write( ((mpg123_arts_t*)ao->userptr)->arse , buf, len);
+}
+
+static int close_arts(audio_output_t *ao)
+{
+ /* Close the connection! */
+ arts_close_stream( ((mpg123_arts_t*)ao->userptr)->arse );
+ /* Free the memory allocated*/
+ arts_free();
+ return 0;
+}
+
+static void flush_arts(audio_output_t *ao)
+{
+ /* aRts doesn't have a flush statement! */
+}
+
+static int deinit_arts(audio_output_t* ao)
+{
+ if(ao->userptr)
+ {
+ free(ao->userptr);
+ ao->userptr = NULL;
+ }
+ arts_free();
+ return 0;
+}
+
+static int init_arts(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ ao->userptr = malloc(sizeof(mpg123_arts_t));
+ if(ao->userptr == NULL)
+ {
+ error("Out of memory!");
+ return -1;
+ }
+ /* clear it to have a consistent state */
+ memset(ao->userptr, 0, sizeof(mpg123_arts_t));
+ /* Set callbacks */
+ ao->open = open_arts;
+ ao->flush = flush_arts;
+ ao->write = write_arts;
+ ao->get_formats = get_formats_arts;
+ ao->close = close_arts;
+ ao->deinit = deinit_arts;
+ /* Success */
+ return 0;
+}
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "arts",
+ /* description */ "Output audio using aRts Sound Daemon",
+ /* revision */ "$Rev: $",
+ /* handle */ NULL,
+
+ /* init_output */ init_arts,
+};
+
+
diff --git a/src/output/coreaudio.c b/src/output/coreaudio.c
new file mode 100644
index 0000000..125ad8c
--- /dev/null
+++ b/src/output/coreaudio.c
@@ -0,0 +1,370 @@
+/*
+ coreaudio: audio output on MacOS X
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the GPL 2
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Guillaume Outters
+ modified by Nicholas J Humfrey to use SFIFO code
+ modified by Taihei Monma to use AudioUnit and AudioConverter APIs
+*/
+
+
+#include "mpg123app.h"
+
+#include <CoreServices/CoreServices.h>
+#include <AudioUnit/AudioUnit.h>
+#include <AudioToolbox/AudioToolbox.h>
+#include <errno.h>
+
+/* Including the sfifo code locally, to avoid module linkage issues. */
+#define SFIFO_STATIC
+#include "sfifo.c"
+
+#include "debug.h"
+
+#define FIFO_DURATION (0.5f) /* Duration of the ring buffer in seconds */
+
+
+typedef struct mpg123_coreaudio
+{
+ AudioConverterRef converter;
+ AudioUnit outputUnit;
+ int open;
+ char play;
+ int channels;
+ int bps;
+ int last_buffer;
+ int play_done;
+ int decode_done;
+
+ /* Convertion buffer */
+ unsigned char * buffer;
+ size_t buffer_size;
+
+ /* Ring buffer */
+ sfifo_t fifo;
+
+} mpg123_coreaudio_t;
+
+
+
+static OSStatus playProc(AudioConverterRef inAudioConverter,
+ UInt32 *ioNumberDataPackets,
+ AudioBufferList *outOutputData,
+ AudioStreamPacketDescription **outDataPacketDescription,
+ void* inClientData)
+{
+ mpg123_coreaudio_t *ca = (mpg123_coreaudio_t *)inClientData;
+ long n;
+
+
+ if(ca->last_buffer) {
+ ca->play_done = 1;
+ return noErr;
+ }
+
+ for(n = 0; n < outOutputData->mNumberBuffers; n++)
+ {
+ unsigned int wanted = *ioNumberDataPackets * ca->channels * ca->bps;
+ unsigned char *dest;
+ unsigned int read;
+ if(ca->buffer_size < wanted) {
+ debug1("Allocating %d byte sample conversion buffer", wanted);
+ ca->buffer = realloc( ca->buffer, wanted);
+ ca->buffer_size = wanted;
+ }
+ dest = ca->buffer;
+
+ /* Only play if we have data left */
+ if ( sfifo_used( &ca->fifo ) < wanted ) {
+ if(!ca->decode_done) {
+ warning("Didn't have any audio data in callback (buffer underflow)");
+ return -1;
+ }
+ wanted = sfifo_used( &ca->fifo );
+ ca->last_buffer = 1;
+ }
+
+ /* Read audio from FIFO to SDL's buffer */
+ read = sfifo_read( &ca->fifo, dest, wanted );
+
+ if (wanted!=read)
+ warning2("Error reading from the ring buffer (wanted=%u, read=%u).\n", wanted, read);
+
+ outOutputData->mBuffers[n].mDataByteSize = read;
+ outOutputData->mBuffers[n].mData = dest;
+ }
+
+ return noErr;
+}
+
+static OSStatus convertProc(void *inRefCon, AudioUnitRenderActionFlags *inActionFlags,
+ const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber,
+ UInt32 inNumFrames, AudioBufferList *ioData)
+{
+ AudioStreamPacketDescription* outPacketDescription = NULL;
+ mpg123_coreaudio_t* ca = (mpg123_coreaudio_t*)inRefCon;
+ OSStatus err= noErr;
+
+ err = AudioConverterFillComplexBuffer(ca->converter, playProc, inRefCon, &inNumFrames, ioData, outPacketDescription);
+
+ return err;
+}
+
+static int open_coreaudio(audio_output_t *ao)
+{
+ mpg123_coreaudio_t* ca = (mpg123_coreaudio_t*)ao->userptr;
+ UInt32 size;
+ ComponentDescription desc;
+ Component comp;
+ AudioStreamBasicDescription inFormat;
+ AudioStreamBasicDescription outFormat;
+ AURenderCallbackStruct renderCallback;
+ Boolean outWritable;
+
+ /* Initialize our environment */
+ ca->play = 0;
+ ca->buffer = NULL;
+ ca->buffer_size = 0;
+ ca->last_buffer = 0;
+ ca->play_done = 0;
+ ca->decode_done = 0;
+
+
+ /* Get the default audio output unit */
+ desc.componentType = kAudioUnitType_Output;
+ desc.componentSubType = kAudioUnitSubType_DefaultOutput;
+ desc.componentManufacturer = kAudioUnitManufacturer_Apple;
+ desc.componentFlags = 0;
+ desc.componentFlagsMask = 0;
+ comp = FindNextComponent(NULL, &desc);
+ if(comp == NULL) {
+ error("FindNextComponent failed");
+ return(-1);
+ }
+
+ if(OpenAComponent(comp, &(ca->outputUnit))) {
+ error("OpenAComponent failed");
+ return (-1);
+ }
+
+ if(AudioUnitInitialize(ca->outputUnit)) {
+ error("AudioUnitInitialize failed");
+ return (-1);
+ }
+
+ /* Specify the output PCM format */
+ AudioUnitGetPropertyInfo(ca->outputUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 0, &size, &outWritable);
+ if(AudioUnitGetProperty(ca->outputUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, 0, &outFormat, &size)) {
+ error("AudioUnitGetProperty(kAudioUnitProperty_StreamFormat) failed");
+ return (-1);
+ }
+
+ if(AudioUnitSetProperty(ca->outputUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Input, 0, &outFormat, size)) {
+ error("AudioUnitSetProperty(kAudioUnitProperty_StreamFormat) failed");
+ return (-1);
+ }
+
+ /* Specify the input PCM format */
+ ca->channels = ao->channels;
+ inFormat.mSampleRate = ao->rate;
+ inFormat.mChannelsPerFrame = ao->channels;
+ inFormat.mFormatID = kAudioFormatLinearPCM;
+#ifdef _BIG_ENDIAN
+ inFormat.mFormatFlags = kLinearPCMFormatFlagIsPacked | kLinearPCMFormatFlagIsBigEndian;
+#else
+ inFormat.mFormatFlags = kLinearPCMFormatFlagIsPacked;
+#endif
+
+ switch(ao->format)
+ {
+ case MPG123_ENC_SIGNED_16:
+ inFormat.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
+ ca->bps = 2;
+ break;
+ case MPG123_ENC_SIGNED_8:
+ inFormat.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
+ ca->bps = 1;
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+ ca->bps = 1;
+ break;
+ case MPG123_ENC_SIGNED_32:
+ inFormat.mFormatFlags |= kLinearPCMFormatFlagIsSignedInteger;
+ ca->bps = 4;
+ break;
+ case MPG123_ENC_FLOAT_32:
+ inFormat.mFormatFlags |= kLinearPCMFormatFlagIsFloat;
+ ca->bps = 4;
+ break;
+ }
+
+ inFormat.mBitsPerChannel = ca->bps << 3;
+ inFormat.mBytesPerPacket = ca->bps*inFormat.mChannelsPerFrame;
+ inFormat.mFramesPerPacket = 1;
+ inFormat.mBytesPerFrame = ca->bps*inFormat.mChannelsPerFrame;
+
+ /* Add our callback - but don't start it yet */
+ memset(&renderCallback, 0, sizeof(AURenderCallbackStruct));
+ renderCallback.inputProc = convertProc;
+ renderCallback.inputProcRefCon = ao->userptr;
+ if(AudioUnitSetProperty(ca->outputUnit, kAudioUnitProperty_SetRenderCallback, kAudioUnitScope_Input, 0, &renderCallback, sizeof(AURenderCallbackStruct))) {
+ error("AudioUnitSetProperty(kAudioUnitProperty_SetRenderCallback) failed");
+ return(-1);
+ }
+
+
+ /* Open an audio I/O stream and create converter */
+ if (ao->rate > 0 && ao->channels >0 ) {
+ int ringbuffer_len;
+
+ if(AudioConverterNew(&inFormat, &outFormat, &(ca->converter))) {
+ error("AudioConverterNew failed");
+ return(-1);
+ }
+ if(ao->channels == 1) {
+ SInt32 channelMap[2] = { 0, 0 };
+ if(AudioConverterSetProperty(ca->converter, kAudioConverterChannelMap, sizeof(channelMap), channelMap)) {
+ error("AudioConverterSetProperty(kAudioConverterChannelMap) failed");
+ return(-1);
+ }
+ }
+
+ /* Initialise FIFO */
+ ringbuffer_len = ao->rate * FIFO_DURATION * ca->bps * ao->channels;
+ debug2( "Allocating %d byte ring-buffer (%f seconds)", ringbuffer_len, (float)FIFO_DURATION);
+ sfifo_init( &ca->fifo, ringbuffer_len );
+ }
+
+ return(0);
+}
+
+static int get_formats_coreaudio(audio_output_t *ao)
+{
+ return MPG123_ENC_SIGNED_16|MPG123_ENC_SIGNED_8|MPG123_ENC_UNSIGNED_8|MPG123_ENC_SIGNED_32|MPG123_ENC_FLOAT_32;
+}
+
+static int write_coreaudio(audio_output_t *ao, unsigned char *buf, int len)
+{
+ mpg123_coreaudio_t* ca = (mpg123_coreaudio_t*)ao->userptr;
+ int written;
+
+ /* If there is no room, then sleep for half the length of the FIFO */
+ while (sfifo_space( &ca->fifo ) < len ) {
+ usleep( (FIFO_DURATION/2) * 1000000 );
+ }
+
+ /* Store converted audio in ring buffer */
+ written = sfifo_write( &ca->fifo, (char*)buf, len);
+ if (written != len) {
+ warning( "Failed to write audio to ring buffer" );
+ return -1;
+ }
+
+ /* Start playback now that we have something to play */
+ if(!ca->play)
+ {
+ if(AudioOutputUnitStart(ca->outputUnit)) {
+ error("AudioOutputUnitStart failed");
+ return(-1);
+ }
+ ca->play = 1;
+ }
+
+ return len;
+}
+
+static int close_coreaudio(audio_output_t *ao)
+{
+ mpg123_coreaudio_t* ca = (mpg123_coreaudio_t*)ao->userptr;
+
+ if (ca) {
+ ca->decode_done = 1;
+ while(!ca->play_done && ca->play) usleep(10000);
+
+ /* No matter the error code, we want to close it (by brute force if necessary) */
+ AudioConverterDispose(ca->converter);
+ AudioOutputUnitStop(ca->outputUnit);
+ AudioUnitUninitialize(ca->outputUnit);
+ CloseComponent(ca->outputUnit);
+
+ /* Free the ring buffer */
+ sfifo_close( &ca->fifo );
+
+ /* Free the conversion buffer */
+ if (ca->buffer) {
+ free( ca->buffer );
+ ca->buffer = NULL;
+ }
+
+ }
+
+ return 0;
+}
+
+static void flush_coreaudio(audio_output_t *ao)
+{
+ mpg123_coreaudio_t* ca = (mpg123_coreaudio_t*)ao->userptr;
+
+ /* Stop playback */
+ if(AudioOutputUnitStop(ca->outputUnit)) {
+ error("AudioOutputUnitStop failed");
+ }
+ ca->play=0;
+
+ /* Empty out the ring buffer */
+ sfifo_flush( &ca->fifo );
+}
+
+static int deinit_coreaudio(audio_output_t* ao)
+{
+ /* Free up memory */
+ if (ao->userptr) {
+ free( ao->userptr );
+ ao->userptr = NULL;
+ }
+
+ /* Success */
+ return 0;
+}
+
+static int init_coreaudio(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_coreaudio;
+ ao->flush = flush_coreaudio;
+ ao->write = write_coreaudio;
+ ao->get_formats = get_formats_coreaudio;
+ ao->close = close_coreaudio;
+ ao->deinit = deinit_coreaudio;
+
+ /* Allocate memory for data structure */
+ ao->userptr = malloc( sizeof( mpg123_coreaudio_t ) );
+ if (ao->userptr==NULL) {
+ error("failed to malloc memory for 'mpg123_coreaudio_t'");
+ return -1;
+ }
+ memset( ao->userptr, 0, sizeof(mpg123_coreaudio_t) );
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "coreaudio",
+ /* description */ "Output audio using Mac OS X's CoreAudio.",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_coreaudio,
+};
+
+
diff --git a/src/output/dummy.c b/src/output/dummy.c
new file mode 100644
index 0000000..9f78292
--- /dev/null
+++ b/src/output/dummy.c
@@ -0,0 +1,78 @@
+/*
+ dummy: dummy audio output
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+*/
+
+#include "mpg123app.h"
+#include "debug.h"
+
+static int open_dummy(audio_output_t *ao)
+{
+ debug("open_dummy()");
+ return 0;
+}
+
+static int get_formats_dummy(audio_output_t *ao)
+{
+ debug("get_formats_dummy()");
+ return MPG123_ENC_SIGNED_16;
+}
+
+static int write_dummy(audio_output_t *ao,unsigned char *buf,int len)
+{
+ debug("write_dummy()");
+ return len;
+}
+
+static void flush_dummy(audio_output_t *ao)
+{
+ debug("flush_dummy()");
+}
+
+static int close_dummy(audio_output_t *ao)
+{
+ debug("close_dummy()");
+ return 0;
+}
+
+static int deinit_dummy(audio_output_t *ao)
+{
+ debug("deinit_dummy()");
+ return 0;
+}
+
+
+static int init_dummy(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+ debug("init_dummy()");
+
+ /* Set callbacks */
+ ao->open = open_dummy;
+ ao->flush = flush_dummy;
+ ao->write = write_dummy;
+ ao->get_formats = get_formats_dummy;
+ ao->close = close_dummy;
+ ao->deinit = deinit_dummy;
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "dummy",
+ /* description */ "Dummy audio output - does not output audio.",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_dummy,
+};
+
diff --git a/src/output/esd.c b/src/output/esd.c
new file mode 100644
index 0000000..651ebc7
--- /dev/null
+++ b/src/output/esd.c
@@ -0,0 +1,167 @@
+/*
+ esd: audio output for ESounD (highly untested nowadays (?))
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Eric B. Mitchell ("esd port" should be this file...)
+*/
+
+/* First the common header, including config.h
+ ...this is important for stuff like _FILE_OFFSET_BITS */
+#include "mpg123app.h"
+
+#include <esd.h>
+#include <errno.h>
+#include <assert.h>
+
+#ifdef SOLARIS
+#include <stropts.h>
+#include <sys/conf.h>
+#endif
+#ifdef NETBSD
+#include <sys/ioctl.h>
+#include <sys/audioio.h>
+#endif
+#include "debug.h"
+
+static unsigned esd_rate = 0, esd_format = 0, esd_channels = 0;
+
+
+static int open_esound(audio_output_t *ao)
+{
+ esd_format_t format = ESD_STREAM | ESD_PLAY;
+
+ if (!esd_rate)
+ {
+ int esd;
+ esd_server_info_t *info;
+ esd_format_t fmt;
+
+ if ((esd = esd_open_sound(NULL)) >= 0)
+ {
+ info = esd_get_server_info(esd);
+ esd_rate = info->rate;
+ fmt = info->format;
+ esd_free_server_info(info);
+ esd_close(esd);
+ }
+ else
+ {
+ esd_rate = esd_audio_rate;
+ fmt = esd_audio_format;
+ }
+ esd_format = MPG123_ENC_UNSIGNED_8;
+
+ if ((fmt & ESD_MASK_BITS) == ESD_BITS16)
+ esd_format |= MPG123_ENC_SIGNED_16;
+ esd_channels = fmt & ESD_MASK_CHAN;
+ }
+
+ if (ao->format == -1)
+ ao->format = esd_format;
+ else if (!(ao->format & esd_format))
+ {
+ error1("Unsupported audio format: %d\n", ao->format);
+ errno = EINVAL;
+ return -1;
+ }
+
+
+ if (ao->format & MPG123_ENC_SIGNED_16)
+ format |= ESD_BITS16;
+ else if (ao->format & MPG123_ENC_UNSIGNED_8)
+ format |= ESD_BITS8;
+ else assert(0);
+
+ if (ao->channels == -1) ao->channels = 2;
+ else if (ao->channels <= 0 || ao->channels > esd_channels)
+ {
+ error1("Unsupported no of channels: %d\n", ao->channels);
+ errno = EINVAL;
+ return -1;
+ }
+ if (ao->channels == 1)
+ format |= ESD_MONO;
+ else if (ao->channels == 2)
+ format |= ESD_STEREO;
+ else assert(0);
+
+ if (ao->rate == -1) ao->rate = esd_rate;
+ else if (ao->rate > esd_rate)
+ return -1;
+
+ ao->fn = esd_play_stream_fallback(format, ao->rate, ao->device, "mpg123");
+ return (ao->fn);
+}
+
+static int get_formats_esound (audio_output_t *ao)
+{
+ if (0 < ao->channels && ao->channels <= esd_channels
+ && 0 < ao->rate && ao->rate <= esd_rate)
+ {
+ return esd_format;
+ } else {
+ return -1;
+ }
+}
+
+static int write_esound(audio_output_t *ao,unsigned char *buf,int len)
+{
+ return write(ao->fn,buf,len);
+}
+
+static int close_esound(audio_output_t *ao)
+{
+ close (ao->fn);
+ return 0;
+}
+
+#ifdef SOLARIS
+static void flush_esound (audio_output_t *ao)
+{
+ ioctl (ao->fn, I_FLUSH, FLUSHRW);
+}
+#else
+#ifdef NETBSD
+static void flush_esound (audio_output_t *ao)
+{
+ ioctl (ao->fn, AUDIO_FLUSH, 0);
+}
+#else
+/* Dunno what to do on Linux and Cygwin, but the func must be at least defined! */
+static void flush_esound (audio_output_t *ao)
+{
+}
+#endif
+#endif
+
+
+static int init_esound(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_esound;
+ ao->flush = flush_esound;
+ ao->write = write_esound;
+ ao->get_formats = get_formats_esound;
+ ao->close = close_esound;
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "esd",
+ /* description */ "Output audio using ESounD (The Enlightened Sound Daemon).",
+ /* revision */ "$Rev: 1698 $",
+ /* handle */ NULL,
+
+ /* init_output */ init_esound,
+};
diff --git a/src/output/hp.c b/src/output/hp.c
new file mode 100644
index 0000000..475ed03
--- /dev/null
+++ b/src/output/hp.c
@@ -0,0 +1,184 @@
+/*
+ hp: audio output for HP-UX
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#include "mpg123app.h"
+#include <fcntl.h>
+#include <sys/audio.h>
+#include "debug.h"
+
+
+static int set_rate(audio_output_t *ao)
+{
+ if(ao->rate >= 0) {
+ return ioctl(ao->fn,AUDIO_SET_SAMPLE_RATE,ao->rate);
+ } else {
+ return 0;
+ }
+}
+
+static int set_channels(audio_output_t *ao)
+{
+ if(ao->channels<0) return 0;
+ return ioctl(ao->fn,AUDIO_SET_CHANNELS,ao->channels);
+}
+
+static int set_format(audio_output_t *ao)
+{
+ int fmt;
+
+ switch(ao->format) {
+ case -1:
+ case MPG123_ENC_SIGNED_16:
+ default:
+ fmt = MPG123_ENC_LINEAR16BIT;
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+ error("unsigned 8 bit linear not supported");
+ return -1;
+ case MPG123_ENC_SIGNED_8:
+ error("signed 8 bit linear not supported");
+ return -1;
+ case MPG123_ENC_ALAW_8:
+ fmt = MPG123_ENC_ALAW;
+ break;
+ case MPG123_ENC_ULAW_8:
+ fmt = MPG123_ENC_ULAW;
+ break;
+ }
+ return ioctl(ao->fn,AUDIO_SET_DATA_FORMAT,fmt);
+}
+
+static int get_formats(audio_output_t *ao)
+{
+ return MPG123_ENC_SIGNED_16;
+}
+
+static int reset_parameters(audio_output_t *ao)
+{
+ int ret;
+ ret = set_format(ai);
+ if(ret >= 0)
+ ret = set_channels_hp(ai);
+ if(ret >= 0)
+ ret = set_rate_hp(ai);
+ return ret;
+}
+
+
+static int open_hp(audio_output_t *ao)
+{
+ struct audio_describe ades;
+ struct audio_gain again;
+ int i,audio;
+
+ ao->fn = open("/dev/audio",O_RDWR);
+
+ if(ao->fn < 0)
+ return -1;
+
+
+ ioctl(ao->fn,AUDIO_DESCRIBE,&ades);
+
+ if(ao->gain != -1)
+ {
+ if(ao->gain > ades.max_transmit_gain)
+ {
+ error("your gainvalue was to high -> set to maximum.");
+ ao->gain = ades.max_transmit_gain;
+ }
+ if(ao->gain < ades.min_transmit_gain)
+ {
+ error("your gainvalue was to low -> set to minimum.");
+ ao->gain = ades.min_transmit_gain;
+ }
+ again.channel_mask = AUDIO_CHANNEL_0 | AUDIO_CHANNEL_1;
+ ioctl(ao->fn,AUDIO_GET_GAINS,&again);
+ again.cgain[0].transmit_gain = ao->gain;
+ again.cgain[1].transmit_gain = ao->gain;
+ again.channel_mask = AUDIO_CHANNEL_0 | AUDIO_CHANNEL_1;
+ ioctl(ao->fn,AUDIO_SET_GAINS,&again);
+ }
+
+ if(ao->flags != -1)
+ {
+ if(ao->flags & AUDIO_OUT_INTERNAL_SPEAKER)
+ ioctl(ao->fn,AUDIO_SET_OUTPUT,AUDIO_OUT_SPEAKER);
+ else if(ao->flags & AUDIO_OUT_HEADPHONES)
+ ioctl(ao->fn,AUDIO_SET_OUTPUT,AUDIO_OUT_HEADPHONE);
+ else if(ao->flags & AUDIO_OUT_LINE_OUT)
+ ioctl(ao->fn,AUDIO_SET_OUTPUT,AUDIO_OUT_LINE);
+ }
+
+ if(ao->rate == -1)
+ ao->rate = 44100;
+
+ for(i=0;i<ades.nrates;i++)
+ {
+ if(ao->rate == ades.sample_rate[i])
+ break;
+ }
+ if(i == ades.nrates)
+ {
+ error1("Can't set sample-rate to %ld.\n",ao->rate);
+ i = 0;
+ }
+
+ if(reset_parameters(ai) < 0)
+ return -1;
+
+ return ao->fn;
+}
+
+
+
+static int write_hp(audio_output_t *ao,unsigned char *buf,int len)
+{
+ return write(ao->fn,buf,len);
+}
+
+static int close_hp(audio_output_t *ao)
+{
+ close (ao->fn);
+ return 0;
+}
+
+static void flush_hp(audio_output_t *ao)
+{
+}
+
+
+
+static int init_hp(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_hp;
+ ao->flush = flush_hp;
+ ao->write = write_hp;
+ ao->get_formats = get_formats_hp;
+ ao->close = close_hp;
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "hp",
+ /* description */ "Output audio HP-UX",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_hp,
+};
diff --git a/src/output/jack.c b/src/output/jack.c
new file mode 100644
index 0000000..727b9f4
--- /dev/null
+++ b/src/output/jack.c
@@ -0,0 +1,447 @@
+/*
+ jack: audio output via JACK Audio Connection Kit
+
+ copyright 2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Nicholas J. Humfrey
+*/
+
+#include <math.h>
+
+#include <jack/jack.h>
+#include <jack/ringbuffer.h>
+#include <sys/errno.h>
+
+#include "mpg123app.h"
+#include "debug.h"
+
+#define MAX_CHANNELS (2)
+
+typedef struct {
+ int channels;
+ jack_port_t *ports[MAX_CHANNELS];
+ jack_ringbuffer_t * rb[MAX_CHANNELS];
+ size_t rb_size;
+ jack_client_t *client;
+ jack_default_audio_sample_t *tmp_buffer;
+} jack_handle_t, *jack_handle_ptr;
+
+
+static jack_handle_t* alloc_jack_handle()
+{
+ jack_handle_t *handle=NULL;
+
+ handle = malloc(sizeof(jack_handle_t));
+ if (!handle) {
+ error("Failed to allocate memory for our handle.");
+ return NULL;
+ }
+
+ /* Initialise the handle, and store for later*/
+ handle->rb[0] = NULL;
+ handle->rb[1] = NULL;
+ handle->ports[0] = NULL;
+ handle->ports[1] = NULL;
+ handle->client = NULL;
+ handle->tmp_buffer = NULL;
+ handle->rb_size = 0;
+
+
+ return handle;
+}
+
+
+static void free_jack_handle( jack_handle_t* handle )
+{
+ int i;
+
+ for(i=0; i<MAX_CHANNELS; i++) {
+ /* Close the port for channel*/
+ if ( handle->ports[i] )
+ jack_port_unregister( handle->client, handle->ports[i] );
+
+ /* Free up the ring buffer for channel*/
+ if ( handle->rb[i] )
+ jack_ringbuffer_free( handle->rb[i] );
+ }
+
+ if (handle->client)
+ jack_client_close(handle->client);
+
+ if (handle->tmp_buffer)
+ free(handle->tmp_buffer);
+
+ free(handle);
+}
+
+
+static int process_callback( jack_nframes_t nframes, void *arg )
+{
+ jack_handle_t* handle = (jack_handle_t*)arg;
+ size_t to_read = sizeof (jack_default_audio_sample_t) * nframes;
+ unsigned int c;
+
+
+ /* copy data to ringbuffer; one per channel*/
+ for (c=0; c < handle->channels; c++)
+ {
+ char *buf = (char*)jack_port_get_buffer(handle->ports[c], nframes);
+ size_t len = jack_ringbuffer_read(handle->rb[c], buf, to_read);
+
+ /* If we don't have enough audio, fill it up with silence*/
+ /* (this is to deal with pausing etc.)*/
+ if (to_read > len)
+ bzero( buf+len, to_read - len );
+
+ /*if (len < to_read)*/
+ /* error1("failed to read from ring buffer %d",c);*/
+ }
+
+ /* Success*/
+ return 0;
+}
+
+static void shutdown_callback( void *arg )
+{
+/* jack_handle_t* handle = (jack_handle_t*)arg; */
+
+ debug("shutdown_callback()");
+
+}
+
+/* connect to jack ports named in the NULL-terminated wishlist */
+static int real_connect_jack_ports( jack_handle_t* handle, const char** wishlist)
+{
+ const char **wish = wishlist;
+ int ch, err;
+
+ if(wish != NULL && *wish == NULL) return 1; /* success, nothing connected as wanted */
+
+ for(ch=0; ch<handle->channels; ++ch)
+ {
+ const char* in = jack_port_name( handle->ports[ch] );
+
+ if ((err = jack_connect(handle->client, in, *wish)) != 0 && err != EEXIST) {
+ error1("connect_jack_ports(): failed to jack_connect() ports: %d",err);
+ return 0;
+ }
+ /* Increment wish only if there is another one. Otherwise simply connect to the same port multiple times. */
+ if(*(wish+1) != NULL) ++wish;
+ }
+
+ return 1;
+}
+
+/* crude way of automatically connecting up jack ports */
+/* 0 on error */
+static int autoconnect_jack_ports( jack_handle_t* handle)
+{
+ const char **all_ports;
+ unsigned int ch=0;
+ int err,i;
+
+ /* Get a list of all the jack ports*/
+ all_ports = jack_get_ports (handle->client, NULL, NULL, JackPortIsInput);
+ if (!all_ports) {
+ error("connect_jack_ports(): jack_get_ports() returned NULL.");
+ return 0;
+ }
+
+ /* Step through each port name*/
+ for (i = 0; all_ports[i]; ++i) {
+
+ const char* in = jack_port_name( handle->ports[ch] );
+ const char* out = all_ports[i];
+
+ if ((err = jack_connect(handle->client, in, out)) != 0 && err != EEXIST) {
+ error1("connect_jack_ports(): failed to jack_connect() ports: %d",err);
+ return 0;
+ }
+
+ /* Found enough ports ?*/
+ if (++ch >= handle->channels) break;
+ }
+
+ free( all_ports );
+ return 1;
+}
+
+
+static int connect_jack_ports( jack_handle_t* handle, const char *dev )
+{
+ if (dev==NULL || strcmp(dev, "auto")==0) {
+ return autoconnect_jack_ports( handle );
+ }
+ else
+ {
+ const char* wishlist[] = { NULL, NULL, NULL }; /* Two channels and end marker. */
+ char *devcopy;
+ int ret;
+ size_t len = strlen(dev);
+ devcopy = malloc(len+1);
+ if(devcopy == NULL){ error("OOM"); return 0; }
+
+ /* We just look out for a possible second port, comma separated
+ This is really crude cruft, but it's enough. Can be replaced by something sensible later. */
+ memcpy(devcopy, dev, len+1);
+ if( len > 0 && strcmp(dev, "none")!=0 )
+ {
+ size_t i=0;
+ wishlist[0] = devcopy;
+ while(devcopy[i] != 0 && devcopy[i] != ',') ++i;
+
+ if(devcopy[i] == ',')
+ {
+ devcopy[i] = 0;
+ wishlist[1] = devcopy+i+1;
+ }
+ }
+ if(wishlist[0] == NULL) warning("Not connecting up jack ports as requested.");
+
+ ret = real_connect_jack_ports(handle, wishlist);
+ free(devcopy);
+ return ret;
+ }
+ return 1;
+}
+
+
+static int close_jack(audio_output_t *ao)
+{
+ jack_handle_t *handle = (jack_handle_t*)ao->userptr;
+
+ debug("close_jack().");
+
+ /* Close and shutdown*/
+ if (handle) {
+ free_jack_handle( handle );
+ ao->userptr = NULL;
+ }
+
+ return 0;
+}
+
+
+static int open_jack(audio_output_t *ao)
+{
+ char client_name[255];
+ jack_handle_t *handle=NULL;
+ jack_options_t jopt = JackNullOption;
+ jack_status_t jstat = 0;
+ unsigned int i;
+
+ debug("jack open");
+ if(!ao) return -1;
+
+ /* Return if already open*/
+ if (ao->userptr) {
+ error("audio device is already open.");
+ return -1;
+ }
+
+ /* Create some storage for ourselves*/
+ if((handle = alloc_jack_handle()) == NULL) return -1;
+
+ ao->userptr = (void*)handle;
+
+ /* Register with Jack*/
+ snprintf(client_name, 255, "mpg123-%d", getpid());
+ if ((handle->client = jack_client_open(client_name, jopt, &jstat)) == 0) {
+ error1("Failed to open jack client: 0x%x", jstat);
+ close_jack(ao);
+ return -1;
+ }
+
+ /* Display the unique client name allocated to us */
+ fprintf(stderr,"Registered as JACK client %s.\n",
+ jack_get_client_name( handle->client ) );
+
+ /* The initial open lets me choose the settings. */
+ if (ao->format==-1)
+ {
+ ao->format = MPG123_ENC_16;
+ ao->rate = jack_get_sample_rate(handle->client);
+ ao->channels = 2;
+ }
+
+ /* Check the sample rate is correct*/
+ if (jack_get_sample_rate( handle->client ) != (jack_nframes_t)ao->rate) {
+ error("JACK Sample Rate is different to sample rate of file.");
+ close_jack(ao);
+ return -1;
+ }
+
+ /* Register ports with Jack*/
+ handle->channels = ao->channels;
+ if (handle->channels == 1) {
+ if (!(handle->ports[0] = jack_port_register(handle->client, "mono", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0)))
+ {
+ error("Cannot register JACK output port 'mono'.");
+ close_jack(ao);
+ return -1;
+ }
+ } else if (handle->channels == 2) {
+ if (!(handle->ports[0] = jack_port_register(handle->client, "left", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0)))
+ {
+ error("Cannot register JACK output port 'left'.");
+ close_jack(ao);
+ return -1;
+ }
+ if (!(handle->ports[1] = jack_port_register(handle->client, "right", JACK_DEFAULT_AUDIO_TYPE, JackPortIsOutput, 0)))
+ {
+ error("Cannot register JACK output port 'right'.");
+ close_jack(ao);
+ return -1;
+ }
+ } else {
+ error1("invalid number of output channels (%d).", handle->channels);
+ close_jack(ao);
+ return -1;
+ }
+
+ /* Create the ring buffers (one seconds audio)*/
+ handle->rb_size = jack_get_sample_rate(handle->client) * sizeof(jack_default_audio_sample_t);
+ for(i=0;i<handle->channels;i++){
+ handle->rb[i]=jack_ringbuffer_create(handle->rb_size);
+ }
+
+ /* Set the callbacks*/
+ jack_set_process_callback(handle->client, process_callback, (void*)handle);
+ jack_on_shutdown(handle->client, shutdown_callback, (void*)handle);
+
+ /* Activate client*/
+ if (jack_activate(handle->client)) {
+ error("Can't activate client.");
+ }
+
+ /* Connect up the portsm, return */
+ if(!connect_jack_ports( handle, ao->device ))
+ {
+ /* deregistering of ports will not work but should just fail, then, and let the rest clean up */
+ close_jack(ao);
+ return -1;
+ }
+
+ debug("Jack open successful.\n");
+ return 0;
+}
+
+
+/* Jack prefers floats, I actually assume it does _only_ float/double (as it is nowadays)! */
+static int get_formats_jack(audio_output_t *ao)
+{
+ if(jack_get_sample_rate( ((jack_handle_t*)(ao->userptr))->client ) != (jack_nframes_t)ao->rate) return 0;
+ else return MPG123_ENC_FLOAT_32|MPG123_ENC_FLOAT_64|MPG123_ENC_SIGNED_16;
+}
+
+
+static int write_jack(audio_output_t *ao, unsigned char *buf, int len)
+{
+ int c,n = 0;
+ jack_handle_t *handle = (jack_handle_t*)ao->userptr;
+ jack_nframes_t samples;
+ size_t tmp_size;
+ /* Only float or double is used.
+ Note: I still need the tmp buffer because of de-interleaving the channels. */
+ samples = len /
+ (ao->format == MPG123_ENC_FLOAT_64 ? 8 : (ao->format == MPG123_ENC_SIGNED_16 ? 2 : 4))
+ / handle->channels;
+ tmp_size = samples * sizeof( jack_default_audio_sample_t );
+
+
+ /* Sanity check that ring buffer is at least twice the size of the audio we just got*/
+ if (handle->rb_size/2 < len) {
+ error("ring buffer is less than twice the size of audio given.");
+ return -1;
+ }
+
+
+ /* Wait until there is space in the ring buffer*/
+ while (jack_ringbuffer_write_space( handle->rb[0] ) < tmp_size) {
+ /* Sleep for a quarter of the ring buffer size (1/4 second)*/
+ usleep(250000);
+ }
+
+
+ /* Ensure the temporary buffer is big enough*/
+ handle->tmp_buffer = (jack_default_audio_sample_t*)realloc( handle->tmp_buffer, tmp_size);
+ if (!handle->tmp_buffer) {
+ error("failed to realloc temporary buffer.");
+ return -1;
+ }
+
+
+ for(c=0; c<handle->channels; c++) {
+ size_t len = 0;
+
+ /* Hm, is that optimal? Anyhow, deinterleaving float or double ... or short. With/without conversion. */
+ if(ao->format == MPG123_ENC_SIGNED_16)
+ {
+ short* src = (short*)buf;
+ for(n=0; n<samples; n++)
+ handle->tmp_buffer[n] = src[(n*handle->channels)+c] / 32768.0f;
+ }
+ else if(ao->format == MPG123_ENC_FLOAT_32)
+ {
+ float* src = (float*)buf;
+ for(n=0; n<samples; n++)
+ handle->tmp_buffer[n] = src[(n*handle->channels)+c];
+ }
+ else /* MPG123_ENC_FLOAT_64 */
+ {
+ double* src = (double*)buf;
+ for(n=0; n<samples; n++)
+ handle->tmp_buffer[n] = src[(n*handle->channels)+c];
+ }
+ /* Copy temporary buffer into ring buffer*/
+ len = jack_ringbuffer_write(handle->rb[c], (char*)handle->tmp_buffer, tmp_size);
+ if (len < tmp_size)
+ {
+ error("failed to write to ring ruffer.");
+ return -1;
+ }
+ }
+
+
+ return len;
+}
+
+static void flush_jack(audio_output_t *ao)
+{
+ jack_handle_t *handle = (jack_handle_t*)ao->userptr;
+ int c;
+
+ /* Reset the ring buffers*/
+ for(c=0; c<handle->channels; c++) {
+ jack_ringbuffer_reset(handle->rb[c]);
+ }
+}
+
+static int init_jack(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_jack;
+ ao->flush = flush_jack;
+ ao->write = write_jack;
+ ao->get_formats = get_formats_jack;
+ ao->close = close_jack;
+
+ /* Success */
+ return 0;
+}
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "jack",
+ /* description */ "Output audio using JACK (JACK Audio Connection Kit).",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_jack,
+};
diff --git a/src/output/mint.c b/src/output/mint.c
new file mode 100644
index 0000000..7210293
--- /dev/null
+++ b/src/output/mint.c
@@ -0,0 +1,197 @@
+/*
+ mint: audio output for MINT
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Petr Stehlik
+*/
+
+/* derived from LINUX, VOXWARE and SUN for MiNT Audio Device by Petr Stehlik */
+#include <fcntl.h>
+#include "mpg123app.h"
+#include <ioctl.h>
+#include <audios.h>
+#include "debug.h"
+
+/* Globals */
+extern int outburst;
+int real_rate_printed = 0;
+
+
+
+static int rate_best_match(audio_output_t *ao)
+{
+ int ret,dsp_rate;
+
+ if(!ai || ao->fn < 0 || ao->rate < 0)
+ return -1;
+
+ dsp_rate = ao->rate;
+ ret = ioctl(ao->fn,AIOCSSPEED, (void *)dsp_rate);
+ ret = ioctl(ao->fn,AIOCGSPEED,&dsp_rate);
+ if(ret < 0) return ret;
+ ao->rate = dsp_rate;
+ return 0;
+}
+
+static int set_rate(audio_output_t *ao)
+{
+ int dsp_rate = ao->rate;
+
+ if(ao->rate >= 0) {
+ int ret, real_rate;
+ ret = ioctl(ao->fn, AIOCSSPEED, (void *)dsp_rate);
+ if (ret >= 0 && !real_rate_printed) {
+ ioctl(ao->fn,AIOCGSPEED,&real_rate);
+ if (real_rate != dsp_rate) {
+ fprintf(stderr, "Replay rate: %d Hz\n", real_rate);
+ real_rate_printed = 1;
+ }
+ }
+ return ret;
+ }
+
+ return 0;
+}
+
+static int set_channels(audio_output_t *ao)
+{
+ int chan = ao->channels;
+
+ if(ao->channels < 1) return 0;
+
+ return ioctl(ao->fn, AIOCSCHAN, (void *)chan);
+}
+
+static int set_format(audio_output_t *ao)
+{
+ int fmts;
+
+ if(ao->format == -1)
+ return 0;
+
+ switch(ao->format) {
+ case MPG123_ENC_SIGNED_16:
+ default:
+ fmts = AFMT_S16;
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+ fmts = AFMT_U8;
+ break;
+ case MPG123_ENC_SIGNED_8:
+ fmts = AFMT_S8;
+ break;
+ case MPG123_ENC_ULAW_8:
+ fmts = AFMT_ULAW;
+ break;
+ }
+
+ return ioctl(ao->fn, AIOCSFMT, (void *)fmts);
+}
+
+static int reset_parameters(audio_output_t *ao)
+{
+ int ret;
+ ret = ioctl(ao->fn,AIOCRESET,NULL);
+ if(ret >= 0) ret = set_format(ai);
+ if(ret >= 0) ret = set_channels(ai);
+ if(ret >= 0) ret = set_rate(ai);
+ return ret;
+}
+
+
+
+static int open_mint(audio_output_t *ao)
+{
+ if(!ai) return -1;
+
+ if(!ao->device)
+ ao->device = "/dev/audio";
+
+ ao->fn = open(ao->device,O_WRONLY);
+
+ if(ao->fn < 0)
+ {
+ error1("Can't open %s!",ao->device);
+ return -1;
+ }
+ ioctl(ao->fn, AIOCGBLKSIZE, &outburst);
+ if(outburst > MAXOUTBURST)
+ outburst = MAXOUTBURST;
+ if(audio_reset_parameters(ai) < 0) {
+ close(ao->fn);
+ return -1;
+ }
+
+ return ao->fn;
+}
+
+static int get_formats_mint(audio_output_t *ao)
+{
+ int ret = 0;
+ int fmts;
+
+ if(ioctl(ao->fn,AIOCGFMTS,&fmts) < 0)
+ return -1;
+
+ if(fmts & AFMT_ULAW)
+ ret |= MPG123_ENC_ULAW_8;
+ if(fmts & AFMT_S16)
+ ret |= MPG123_ENC_SIGNED_16;
+ if(fmts & AFMT_U8)
+ ret |= MPG123_ENC_UNSIGNED_8;
+ if(fmts & AFMT_S8)
+ ret |= MPG123_ENC_SIGNED_8;
+
+ return ret;
+}
+
+static int write_mint(audio_output_t *ao,unsigned char *buf,int len)
+{
+ return write(ao->fn,buf,len);
+}
+
+static int close_mint(audio_output_t *ao)
+{
+ close (ao->fn);
+ return 0;
+}
+
+static void flush_mint(audio_output_t *ao)
+{
+}
+
+
+static int init_mint(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_mint;
+ ao->flush = flush_mint;
+ ao->write = write_mint;
+ ao->get_formats = get_formats_mint;
+ ao->close = close_mint;
+
+ /* Success */
+ return 0;
+}
+
+
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "mint",
+ /* description */ "Audio output for MINT.",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_mint,
+};
+
+
diff --git a/src/output/nas.c b/src/output/nas.c
new file mode 100644
index 0000000..ad69b19
--- /dev/null
+++ b/src/output/nas.c
@@ -0,0 +1,335 @@
+/*
+ nas: audio output via NAS
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Martin Denn
+*/
+
+#include "mpg123app.h"
+#include <fcntl.h>
+#include <audio/audiolib.h>
+#include <audio/soundlib.h>
+#include "debug.h"
+
+typedef struct
+{
+ AuServer *aud;
+ AuFlowID flow;
+ AuDeviceAttributes *da;
+ int numDevices;
+ char *buf;
+ AuUint32 buf_size;
+ AuUint32 buf_cnt;
+ AuBool data_sent;
+ AuBool finished;
+} InfoRec, *InfoPtr;
+
+#define NAS_SOUND_PORT_DURATION 5 /* seconds */
+#define NAS_SOUND_LOW_WATER_MARK 25 /* percent */
+#define NAS_MAX_FORMAT 10 /* currently, there are 7 supported formats */
+
+
+/* FIXME: stick this inside userptr inside audio_output_t instead */
+static InfoRec info;
+
+/* NAS specific routines */
+
+static void nas_sendData(AuServer *aud, InfoPtr i, AuUint32 numBytes)
+{
+ if (numBytes < i->buf_cnt) {
+ AuWriteElement(aud, i->flow, 0, numBytes, i->buf, AuFalse, NULL);
+ memmove(i->buf, i->buf + numBytes, i->buf_cnt - numBytes);
+ i->buf_cnt = i->buf_cnt - numBytes;
+ }
+ else {
+ AuWriteElement(aud, i->flow, 0, i->buf_cnt, i->buf,
+ (numBytes > i->buf_cnt), NULL);
+ i->buf_cnt = 0;
+ }
+ i->data_sent = AuTrue;
+}
+
+static AuBool nas_eventHandler(AuServer *aud, AuEvent *ev, AuEventHandlerRec *handler)
+{
+ InfoPtr i = (InfoPtr) handler->data;
+
+ switch (ev->type)
+ {
+ case AuEventTypeMonitorNotify:
+ i->finished = AuTrue;
+ break;
+ case AuEventTypeElementNotify:
+ {
+ AuElementNotifyEvent *event = (AuElementNotifyEvent *) ev;
+
+ switch (event->kind)
+ {
+ case AuElementNotifyKindLowWater:
+ nas_sendData(aud, i, event->num_bytes);
+ break;
+ case AuElementNotifyKindState:
+ switch (event->cur_state)
+ {
+ case AuStatePause:
+ if (event->reason != AuReasonUser)
+ nas_sendData(aud, i, event->num_bytes);
+ break;
+ case AuStateStop:
+ i->finished = AuTrue;
+ break;
+ }
+ }
+ }
+ }
+ return AuTrue;
+}
+
+/* 0 on error */
+static int nas_createFlow(audio_output_t *ao)
+{
+ AuDeviceID device = AuNone;
+ AuElement elements[2];
+ unsigned char format;
+ AuUint32 buf_samples;
+ int i;
+
+
+ switch(ao->format) {
+ case MPG123_ENC_SIGNED_16:
+ default:
+ if (((char) *(short *)"x")=='x') /* ugly, but painless */
+ format = AuFormatLinearSigned16LSB; /* little endian */
+ else
+ format = AuFormatLinearSigned16MSB; /* big endian */
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+ format = AuFormatLinearUnsigned8;
+ break;
+ case MPG123_ENC_SIGNED_8:
+ format = AuFormatLinearSigned8;
+ break;
+ case MPG123_ENC_ULAW_8:
+ format = AuFormatULAW8;
+ break;
+ }
+ /* look for an output device */
+ for (i = 0; i < AuServerNumDevices(info.aud); i++)
+ if (((AuDeviceKind(AuServerDevice(info.aud, i)) ==
+ AuComponentKindPhysicalOutput) &&
+ AuDeviceNumTracks(AuServerDevice(info.aud, i))
+ == ao->channels )) {
+ device = AuDeviceIdentifier(AuServerDevice(info.aud, i));
+ break;
+ }
+ if (device == AuNone) {
+ error1("Couldn't find an output device providing %d channels.", ao->channels);
+ return 0;
+ }
+
+ /* set gain */
+ if(ao->gain >= 0) {
+ info.da = AuGetDeviceAttributes(info.aud, device, NULL);
+ if ((info.da)!=NULL) {
+ AuDeviceGain(info.da) = AuFixedPointFromSum(ao->gain, 0);
+ AuSetDeviceAttributes(info.aud, AuDeviceIdentifier(info.da),
+ AuCompDeviceGainMask, info.da, NULL);
+ }
+ else
+ error("audio/gain: setable Volume/PCM-Level not supported");
+ }
+
+ if (!(info.flow = AuCreateFlow(info.aud, NULL))) {
+ error("Couldn't create flow");
+ return 0;
+ }
+
+ buf_samples = ao->rate * NAS_SOUND_PORT_DURATION;
+
+ AuMakeElementImportClient(&elements[0], /* element */
+ (unsigned short) ao->rate,
+ /* rate */
+ format, /* format */
+ ao->channels, /* channels */
+ AuTrue, /* ??? */
+ buf_samples, /* max samples */
+ (AuUint32) (buf_samples / 100
+ * NAS_SOUND_LOW_WATER_MARK),
+ /* low water mark */
+ 0, /* num actions */
+ NULL); /* actions */
+ AuMakeElementExportDevice(&elements[1], /* element */
+ 0, /* input */
+ device, /* device */
+ (unsigned short) ao->rate,
+ /* rate */
+ AuUnlimitedSamples, /* num samples */
+ 0, /* num actions */
+ NULL); /* actions */
+ AuSetElements(info.aud, /* Au server */
+ info.flow, /* flow ID */
+ AuTrue, /* clocked */
+ 2, /* num elements */
+ elements, /* elements */
+ NULL); /* return status */
+
+ AuRegisterEventHandler(info.aud, /* Au server */
+ AuEventHandlerIDMask, /* value mask */
+ 0, /* type */
+ info.flow, /* id */
+ nas_eventHandler, /* callback */
+ (AuPointer) &info); /* data */
+
+ info.buf_size = buf_samples * ao->channels * AuSizeofFormat(format);
+ info.buf = (char *) malloc(info.buf_size);
+ if (info.buf == NULL) {
+ error1("Unable to allocate input/output buffer of size %ld",
+ (long)info.buf_size);
+ return 0;
+ }
+ info.buf_cnt = 0;
+ info.data_sent = AuFalse;
+ info.finished = AuFalse;
+
+ AuStartFlow(info.aud, /* Au server */
+ info.flow, /* id */
+ NULL); /* status */
+ return 1; /* success */
+}
+
+
+static void flush_nas(audio_output_t *ao)
+{
+ AuEvent ev;
+
+ while ((!info.data_sent) && (!info.finished)) {
+ AuNextEvent(info.aud, AuTrue, &ev);
+ AuDispatchEvent(info.aud, &ev);
+ }
+ info.data_sent = AuFalse;
+}
+
+
+/* returning -1 on error, 0 on success... */
+static int open_nas(audio_output_t *ao)
+{
+ if(!ao) return -1;
+
+ if (!(info.aud = AuOpenServer(ao->device, 0, NULL, 0, NULL, NULL))) {
+ if (ao->device==NULL) {
+ error("could not open default NAS server");
+ } else {
+ error1("could not open NAS server %s\n", ao->device);
+ }
+ return -1;
+ }
+ info.buf_size = 0;
+
+ return 0;
+}
+
+
+static int get_formats_nas(audio_output_t *ao)
+{
+ int i, j, k, ret;
+
+ ret=0;
+ j = AuServerNumFormats(info.aud);
+ for (i=0; i<j; i++) {
+ k=AuServerFormat(info.aud,i);
+ switch (k)
+ {
+ case AuFormatULAW8:
+ ret |= MPG123_ENC_ULAW_8;
+ break;
+ case AuFormatLinearUnsigned8:
+ ret |= MPG123_ENC_UNSIGNED_8;
+ break;
+ case AuFormatLinearSigned8:
+ ret |= MPG123_ENC_SIGNED_8;
+ break;
+ case AuFormatLinearSigned16LSB:
+ ret |= MPG123_ENC_SIGNED_16;
+ break;
+ }
+ }
+ return ret;
+}
+
+static int write_nas(audio_output_t *ao,unsigned char *buf,int len)
+{
+ int buf_cnt = 0;
+
+ if (info.buf_size == 0)
+ if(!nas_createFlow(ao)) return -1;
+
+ while ((info.buf_cnt + (len - buf_cnt)) > info.buf_size) {
+ memcpy(info.buf + info.buf_cnt,
+ buf + buf_cnt,
+ (info.buf_size - info.buf_cnt));
+ buf_cnt += (info.buf_size - info.buf_cnt);
+ info.buf_cnt += (info.buf_size - info.buf_cnt);
+ flush_nas(ao);
+ }
+ memcpy(info.buf + info.buf_cnt,
+ buf + buf_cnt,
+ (len - buf_cnt));
+ info.buf_cnt += (len - buf_cnt);
+
+ return len;
+}
+
+static int close_nas(audio_output_t *ao)
+{
+ if (info.aud == NULL) {
+ return 0;
+ }
+
+ if (info.buf_size == 0) {
+ /* Au server opened, but not yet initialized */
+ AuCloseServer(info.aud);
+ return 0;
+ }
+
+ while (!info.finished) {
+ flush_nas(ao);
+ }
+ AuCloseServer(info.aud);
+ free(info.buf);
+
+ return 0;
+}
+
+
+
+static int init_nas(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_nas;
+ ao->flush = flush_nas;
+ ao->write = write_nas;
+ ao->get_formats = get_formats_nas;
+ ao->close = close_nas;
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "nas",
+ /* description */ "Output audio using NAS (Network Audio System)",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_nas,
+};
+
+
diff --git a/src/output/os2.c b/src/output/os2.c
new file mode 100644
index 0000000..86e9034
--- /dev/null
+++ b/src/output/os2.c
@@ -0,0 +1,663 @@
+/*
+ os2: OS/2 RealTime DART Engine
+
+ copyright 1998-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Samuel Audet
+*/
+
+#define INCL_OS2MM
+#define INCL_DOS
+#define INCL_VIO
+#define INCL_KBD
+#include <os2.h>
+#include <os2me.h>
+#include <stdlib.h>
+#include <ctype.h>
+
+/* I guess this #ifndef could be removed now... */
+#ifndef MPG123_INCLUDED
+#include "mpg123app.h"
+#endif
+#include "debug.h"
+
+/* complementary audio parameters */
+int numbuffers = 32; /* total audio buffers, _bare_ minimum = 4 (cuz of prio boost check) */
+int lockdevice = FALSE;
+USHORT volume = 100;
+char *boostprio = NULL;
+char *normalprio = NULL;
+unsigned char boostclass = 3, normalclass = 2;
+signed char boostdelta = 0, normaldelta = 31;
+unsigned char mmerror[160] = {0};
+int playingframe;
+
+/* audio buffers */
+static ULONG ulMCIBuffers;
+
+static MCI_AMP_OPEN_PARMS maop = {0};
+static MCI_MIXSETUP_PARMS mmp = {0};
+static MCI_BUFFER_PARMS mbp = {0};
+static MCI_GENERIC_PARMS mgp = {0};
+static MCI_SET_PARMS msp = {0};
+static MCI_STATUS_PARMS mstatp = {0};
+static MCI_MIX_BUFFER *MixBuffers = NULL;
+
+typedef struct
+{
+ MCI_MIX_BUFFER *NextBuffer;
+ int frameNum;
+} BUFFERINFO;
+
+BUFFERINFO *bufferinfo = NULL;
+
+
+static HEV dataplayed = 0;
+static ULONG resetcount;
+static BOOL paused = FALSE;
+
+static MCI_MIX_BUFFER *tobefilled, *playingbuffer = NULL, playedbuffer;
+static void *pBufferplayed;
+
+static BOOL nomoredata,nobuffermode,justflushed;
+
+static TIB *mainthread; /* thread info to set thread priority */
+
+ULONG keyboardtid;
+
+
+static LONG APIENTRY DARTEvent(ULONG ulStatus, MCI_MIX_BUFFER *PlayedBuffer, ULONG ulFlags)
+{
+ switch(ulFlags)
+ {
+ case MIX_STREAM_ERROR | MIX_WRITE_COMPLETE: /* error occur in device */
+
+ if ( ulStatus == ERROR_DEVICE_UNDERRUN)
+ /* Write buffers to rekick off the amp mixer. */
+ mmp.pmixWrite( mmp.ulMixHandle, MixBuffers, ulMCIBuffers );
+ break;
+
+ case MIX_WRITE_COMPLETE: /* for playback */
+
+ playingbuffer = ((BUFFERINFO *) PlayedBuffer->ulUserParm)->NextBuffer;
+
+ /* the next three lines are only useful to audio_playing_samples() */
+ playedbuffer = *PlayedBuffer;
+ playedbuffer.pBuffer = pBufferplayed;
+ memcpy(playedbuffer.pBuffer, PlayedBuffer->pBuffer, PlayedBuffer->ulBufferLength);
+
+ /* just too bad, the decoder fell behind... here we just keep the
+ buffer to be filled in front of the playing one so that when the
+ decoder kicks back in, we'll hear it in at the right time */
+ if(tobefilled == playingbuffer)
+ {
+ tobefilled = ((BUFFERINFO *) playingbuffer->ulUserParm)->NextBuffer;
+ nomoredata = TRUE;
+ }
+ else
+ {
+ playingframe = ((BUFFERINFO *) playingbuffer->ulUserParm)->frameNum;
+
+ /* if we're about to be short of decoder's data
+ (2nd ahead buffer not filled), let's boost its priority! */
+ if(tobefilled == ( (BUFFERINFO *) ((BUFFERINFO *) playingbuffer->ulUserParm)->NextBuffer->ulUserParm)->NextBuffer)
+ DosSetPriority(PRTYS_THREAD,boostclass,boostdelta,mainthread->tib_ptib2->tib2_ultid);
+ }
+
+ /* empty the played buffer in case it doesn't get filled back */
+ memset(PlayedBuffer->pBuffer,0,PlayedBuffer->ulBufferLength);
+
+ DosPostEventSem(dataplayed);
+
+ mmp.pmixWrite( mmp.ulMixHandle, PlayedBuffer, 1 );
+ break;
+
+ } /* end switch */
+
+ return( TRUE );
+
+} /* end DARTEvent */
+
+
+static void MciError(ULONG ulError)
+{
+ unsigned char buffer[128];
+ ULONG rc;
+
+ rc = mciGetErrorString(ulError, buffer, sizeof(buffer));
+
+ if (rc == MCIERR_SUCCESS)
+ sprintf(mmerror,"MCI Error %d: %s",ULONG_LOWD(ulError),buffer);
+ else
+ sprintf(mmerror,"MCI Error %d: Cannot query error message.",ULONG_LOWD(rc));
+
+ error1("%s",mmerror);
+}
+
+
+static int set_volume(audio_output_t *ao, USHORT setvolume)
+{
+ if(setvolume > 100) setvolume = 100;
+ volume = setvolume; /* useful when device is closed and reopened */
+
+ if(maop.usDeviceID)
+ {
+ memset(&msp,0,sizeof(msp));
+ msp.ulAudio = MCI_SET_AUDIO_ALL;
+ msp.ulLevel = setvolume;
+
+ mciSendCommand(maop.usDeviceID, MCI_SET,
+ MCI_WAIT | MCI_SET_AUDIO | MCI_SET_VOLUME,
+ &msp, 0);
+ }
+ return setvolume;
+}
+
+
+int open_os2(audio_output_t *ao)
+{
+ ULONG rc,i;
+ char *temp;
+ ULONG openflags;
+ PPIB ppib;
+ USHORT bits;
+
+ if(maop.usDeviceID) return (maop.usDeviceID);
+
+ if(!ai) return -1;
+
+ if(!ao->device) ao->device = "0";
+
+ if(ao->rate < 0) ao->rate = 44100;
+ if(ao->channels < 0) ao->channels = 2;
+ if(ao->format < 0) ao->format = MPG123_ENC_SIGNED_16;
+
+ if(ao->format == MPG123_ENC_SIGNED_16)
+ bits = 16;
+ else if(ao->format == MPG123_ENC_UNSIGNED_8)
+ bits = 8;
+ else return -1;
+
+ /* open the mixer device */
+ memset (&maop, 0, sizeof(maop));
+ maop.usDeviceID = 0;
+ maop.pszDeviceType = (PSZ) MAKEULONG(MCI_DEVTYPE_AUDIO_AMPMIX, atoi(ao->device));
+
+ openflags = MCI_WAIT | MCI_OPEN_TYPE_ID;
+ if(!lockdevice) openflags |= MCI_OPEN_SHAREABLE;
+
+ rc = mciSendCommand(0, MCI_OPEN, openflags, &maop, 0);
+
+ if (ULONG_LOWD(rc) != MCIERR_SUCCESS)
+ {
+ MciError(rc);
+ maop.usDeviceID = 0;
+ return(-1);
+ }
+
+ /* volume in ao->gain ?? */
+
+ /* Set the MCI_MIXSETUP_PARMS data structure to match the audio stream. */
+
+ memset(&mmp, 0, sizeof(mmp));
+
+ mmp.ulBitsPerSample = bits;
+ mmp.ulFormatTag = MCI_WAVE_FORMAT_PCM;
+ mmp.ulSamplesPerSec = ao->rate;
+ mmp.ulChannels = ao->channels;
+
+ /* Setup the mixer for playback of wave data */
+ mmp.ulFormatMode = MCI_PLAY;
+ mmp.ulDeviceType = MCI_DEVTYPE_WAVEFORM_AUDIO;
+ mmp.pmixEvent = DARTEvent;
+
+ rc = mciSendCommand( maop.usDeviceID,
+ MCI_MIXSETUP,
+ MCI_WAIT | MCI_MIXSETUP_INIT,
+ &mmp,
+ 0 );
+
+ if ( ULONG_LOWD(rc) != MCIERR_SUCCESS )
+ {
+ MciError(rc);
+ maop.usDeviceID = 0;
+ return(-1);
+ }
+
+ volume = audio_set_volume(ai,volume);
+
+ /* Set up the BufferParms data structure and allocate
+ * device buffers from the Amp-Mixer */
+
+ memset(&mbp, 0, sizeof(mbp));
+ free(MixBuffers);
+ free(bufferinfo);
+ if(numbuffers < 5) numbuffers = 5;
+ if(numbuffers > 200) numbuffers = 200;
+ MixBuffers = calloc(numbuffers, sizeof(*MixBuffers));
+ bufferinfo = calloc(numbuffers, sizeof(*bufferinfo));
+
+ ulMCIBuffers = numbuffers;
+ mbp.ulNumBuffers = ulMCIBuffers;
+ /* mbp.ulBufferSize = mmp.ulBufferSize; */
+ /* I don't like this... they must be smaller than 64KB or else the
+ engine needs major rewrite */
+ mbp.ulBufferSize = audiobufsize;
+ mbp.pBufList = MixBuffers;
+
+ rc = mciSendCommand( maop.usDeviceID,
+ MCI_BUFFER,
+ MCI_WAIT | MCI_ALLOCATE_MEMORY,
+ (PVOID) &mbp,
+ 0 );
+
+ if ( ULONG_LOWD(rc) != MCIERR_SUCCESS )
+ {
+ MciError(rc);
+ maop.usDeviceID = 0;
+ return(-1);
+ }
+
+ pBufferplayed = playedbuffer.pBuffer = calloc(1,audiobufsize);
+
+ ulMCIBuffers = mbp.ulNumBuffers; /* never know! */
+
+ /* Fill all device buffers with zeros and set linked list */
+
+ for(i = 0; i < ulMCIBuffers; i++)
+ {
+ MixBuffers[i].ulFlags = 0;
+ MixBuffers[i].ulBufferLength = mbp.ulBufferSize;
+ memset(MixBuffers[i].pBuffer, 0, MixBuffers[i].ulBufferLength);
+
+ MixBuffers[i].ulUserParm = (ULONG) &bufferinfo[i];
+ bufferinfo[i].NextBuffer = &MixBuffers[i+1];
+ }
+
+ bufferinfo[i-1].NextBuffer = &MixBuffers[0];
+
+ /* Create a semaphore to know when data has been played by the DART thread */
+ DosCreateEventSem(NULL,&dataplayed,0,FALSE);
+
+ playingbuffer = &MixBuffers[0];
+ tobefilled = &MixBuffers[1];
+ playingframe = 0;
+ nomoredata = TRUE;
+ nobuffermode = FALSE;
+ justflushed = FALSE;
+
+ if(boostprio)
+ {
+ temp = alloca(strlen(boostprio)+1);
+ strcpy(temp,boostprio);
+
+ boostdelta = atoi(temp+1);
+ *(temp+1) = 0;
+ boostclass = atoi(temp);
+ }
+ if(boostclass > 4) boostdelta = 3;
+ if(boostdelta > 31) boostdelta = 31;
+ if(boostdelta < -31) boostdelta = -31;
+
+
+ if(normalprio)
+ {
+ temp = alloca(strlen(normalprio)+1);
+ strcpy(temp,normalprio);
+
+ normaldelta = atoi(temp+1);
+ *(temp+1) = 0;
+ normalclass = atoi(temp);
+ }
+ if(normalclass > 4) normaldelta = 3;
+ if(normaldelta > 31) normaldelta = 31;
+ if(normaldelta < -31) normaldelta = -31;
+
+
+ DosGetInfoBlocks(&mainthread,&ppib); /* ppib not needed, but makes some DOSCALLS.DLL crash */
+ DosSetPriority(PRTYS_THREAD,boostclass,boostdelta,mainthread->tib_ptib2->tib2_ultid);
+
+ /* Write buffers to kick off the amp mixer. see DARTEvent() */
+ rc = mmp.pmixWrite( mmp.ulMixHandle,
+ MixBuffers,
+ ulMCIBuffers );
+
+ return maop.usDeviceID;
+}
+
+
+static int write_os2(audio_output_t *ao,unsigned char *buf,int len)
+{
+ /* if we're too quick, let's wait */
+ if(nobuffermode)
+ {
+ MCI_MIX_BUFFER *temp = playingbuffer;
+
+ while(
+ (tobefilled != (temp = ((BUFFERINFO *) temp->ulUserParm)->NextBuffer)) &&
+ (tobefilled != (temp = ((BUFFERINFO *) temp->ulUserParm)->NextBuffer)) &&
+ (tobefilled != (temp = ((BUFFERINFO *) temp->ulUserParm)->NextBuffer)) )
+ {
+ DosResetEventSem(dataplayed,&resetcount);
+ DosWaitEventSem(dataplayed, -1);
+ temp = playingbuffer;
+ }
+
+ } else {
+ while(tobefilled == playingbuffer)
+ {
+ DosResetEventSem(dataplayed,&resetcount);
+ DosWaitEventSem(dataplayed, -1);
+ }
+ }
+
+ if (justflushed) {
+ justflushed = FALSE;
+ } else {
+ nomoredata = FALSE;
+
+ memcpy(tobefilled->pBuffer, buf, len);
+ tobefilled->ulBufferLength = len;
+ // ((BUFFERINFO *) tobefilled->ulUserParm)->frameNum = fr->frameNum;
+
+ /* if we're out of the water (3rd ahead buffer filled),
+ let's reduce our priority */
+ if(tobefilled == ( (BUFFERINFO *) ( (BUFFERINFO *) ((BUFFERINFO *) playingbuffer->ulUserParm)->NextBuffer->ulUserParm)->NextBuffer->ulUserParm)->NextBuffer)
+ DosSetPriority(PRTYS_THREAD,normalclass,normaldelta,mainthread->tib_ptib2->tib2_ultid);
+
+ tobefilled = ((BUFFERINFO *) tobefilled->ulUserParm)->NextBuffer;
+ }
+
+ return len;
+}
+
+
+static int write_os2(audio_output_t *ao,unsigned char *buf,int len)
+{
+ if(len > audiobufsize || !playingbuffer) return -1;
+
+ if(mmp.ulBitsPerSample == 16)
+ ao->format = MPG123_ENC_SIGNED_16;
+ else if(mmp.ulBitsPerSample == 8)
+ ao->format = MPG123_ENC_UNSIGNED_8;
+ else return -1;
+
+ ao->rate = mmp.ulSamplesPerSec;
+ ao->channels = mmp.ulChannels;
+
+ if(buf && len)
+ {
+ ULONG rc;
+ int upto;
+
+ mstatp.ulItem = MCI_STATUS_POSITION;
+
+ rc = mciSendCommand( maop.usDeviceID,
+ MCI_STATUS,
+ MCI_STATUS_ITEM | MCI_WAIT,
+ &mstatp,
+ 0 );
+
+ if ( ULONG_LOWD(rc) != MCIERR_SUCCESS )
+ {
+ MciError(rc);
+ maop.usDeviceID = 0;
+ return(-1);
+ }
+
+ /* this is hypocrite...
+ DART returns the value in ulReturn instead of ulValue,
+ also it returns in milliseconds and not MMTIME... arg */
+
+ upto = (mstatp.ulReturn-playedbuffer.ulTime) * mmp.ulSamplesPerSec / 1000;
+ upto *= mmp.ulChannels * (mmp.ulBitsPerSample>>3);
+
+ /* if a timing problem occurs, let's at least not crash */
+ if(upto > playingbuffer->ulBufferLength)
+ upto = playingbuffer->ulBufferLength;
+
+ if(len < upto) {
+ memcpy(buf,(char *) (playingbuffer->pBuffer)+upto-len, len);
+ } else {
+ memcpy(buf,(char *) playedbuffer.pBuffer+playedbuffer.ulBufferLength-(len-upto),len-upto);
+ memcpy(buf+(len-upto),playingbuffer->pBuffer,upto);
+ }
+ }
+
+ return 0;
+}
+
+/*
+static int audio_nobuffermode(audio_output_t *ao, int setnobuffermode)
+{
+ nobuffermode = setnobuffermode;
+ return TRUE;
+}
+
+int audio_trash_buffers(audio_output_t *ao)
+{
+ int i;
+
+ justflushed = TRUE;
+
+ // Fill all device buffers with zeros
+ for(i = 0; i < ulMCIBuffers; i++)
+ memset(MixBuffers[i].pBuffer, 0, MixBuffers[i].ulBufferLength);
+
+ tobefilled = ((BUFFERINFO *) playingbuffer->ulUserParm)->NextBuffer;
+ nomoredata = TRUE;
+
+ return TRUE;
+}
+*/
+
+static int close_os2(audio_output_t *ao)
+{
+ ULONG rc;
+
+ if(!maop.usDeviceID)
+ return 0;
+
+ while(!nomoredata)
+ {
+ DosResetEventSem(dataplayed,&resetcount);
+ DosWaitEventSem(dataplayed, -1);
+ }
+
+ playingbuffer = NULL;
+
+ DosCloseEventSem(dataplayed);
+ dataplayed = 0;
+
+ free(pBufferplayed);
+
+ rc = mciSendCommand( maop.usDeviceID,
+ MCI_BUFFER,
+ MCI_WAIT | MCI_DEALLOCATE_MEMORY,
+ &mbp,
+ 0 );
+
+ if ( ULONG_LOWD(rc) != MCIERR_SUCCESS )
+ {
+ MciError(rc);
+ return(-1);
+ }
+
+ free(bufferinfo);
+ free(MixBuffers);
+ bufferinfo = NULL;
+ MixBuffers = NULL;
+
+ memset(&mbp, 0, sizeof(mbp));
+
+ rc = mciSendCommand( maop.usDeviceID,
+ MCI_CLOSE,
+ MCI_WAIT ,
+ &mgp,
+ 0 );
+
+ if ( ULONG_LOWD(rc) != MCIERR_SUCCESS )
+ {
+ MciError(rc);
+ return(-1);
+ }
+
+ memset(&maop, 0, sizeof(maop));
+
+ return 0;
+}
+
+
+/*
+ * get formats for specific channel/rate parameters
+ */
+int get_formats_os2(audio_output_t *ao)
+{
+ int fmts = 0;
+ ULONG rc;
+ MCI_MIXSETUP_PARMS mmptemp = {0};
+
+ mmp.ulDeviceType = MCI_DEVTYPE_WAVEFORM_AUDIO;
+ mmp.pmixEvent = DARTEvent;
+
+ mmptemp.ulFormatMode = MCI_PLAY;
+ mmptemp.ulSamplesPerSec = ao->rate;
+ mmptemp.ulChannels = ao->channels;
+
+ mmptemp.ulFormatTag = MCI_WAVE_FORMAT_PCM;
+ mmptemp.ulBitsPerSample = 16;
+ rc = mciSendCommand( maop.usDeviceID,
+ MCI_MIXSETUP,
+ MCI_WAIT | MCI_MIXSETUP_QUERYMODE,
+ &mmptemp,
+ 0 );
+
+ if((ULONG_LOWD(rc) == MCIERR_SUCCESS) && (rc != 0x4000)) /* undocumented */
+ fmts = fmts | MPG123_ENC_SIGNED_16;
+
+ mmptemp.ulFormatTag = MCI_WAVE_FORMAT_PCM;
+ mmptemp.ulBitsPerSample = 8;
+ rc = mciSendCommand( maop.usDeviceID,
+ MCI_MIXSETUP,
+ MCI_WAIT | MCI_MIXSETUP_QUERYMODE,
+ &mmptemp,
+ 0 );
+
+ if((ULONG_LOWD(rc) == MCIERR_SUCCESS) && (rc != 0x4000)) /* undocumented */
+ fmts = fmts | MPG123_ENC_UNSIGNED_8;
+
+ mmptemp.ulFormatTag = MCI_WAVE_FORMAT_ALAW;
+ mmptemp.ulBitsPerSample = 8;
+ rc = mciSendCommand( maop.usDeviceID,
+ MCI_MIXSETUP,
+ MCI_WAIT | MCI_MIXSETUP_QUERYMODE,
+ &mmptemp,
+ 0 );
+
+ if((ULONG_LOWD(rc) == MCIERR_SUCCESS) && (rc != 0x4000)) /* undocumented */
+ fmts = fmts | MPG123_ENC_ALAW_8;
+
+ mmptemp.ulFormatTag = MCI_WAVE_FORMAT_MULAW;
+ mmptemp.ulBitsPerSample = 8;
+ rc = mciSendCommand( maop.usDeviceID,
+ MCI_MIXSETUP,
+ MCI_WAIT | MCI_MIXSETUP_QUERYMODE,
+ &mmptemp,
+ 0 );
+
+ if((ULONG_LOWD(rc) == MCIERR_SUCCESS) && (rc != 0x4000)) /* undocumented */
+ fmts = fmts | MPG123_ENC_ULAW_8;
+
+ return fmts;
+}
+
+static int get_devices_os2(char *info, int deviceid)
+{
+ char buffer[128];
+ MCI_SYSINFO_PARMS mip;
+
+ if(deviceid && info)
+ {
+ MCI_SYSINFO_LOGDEVICE mid;
+
+ mip.pszReturn = buffer;
+ mip.ulRetSize = sizeof(buffer);
+ mip.usDeviceType = MCI_DEVTYPE_AUDIO_AMPMIX;
+ mip.ulNumber = deviceid;
+
+ mciSendCommand(0,
+ MCI_SYSINFO,
+ MCI_WAIT | MCI_SYSINFO_INSTALLNAME,
+ &mip,
+ 0);
+
+ mip.ulItem = MCI_SYSINFO_QUERY_DRIVER;
+ mip.pSysInfoParm = &mid;
+ strcpy(mid.szInstallName,buffer);
+
+ mciSendCommand(0,
+ MCI_SYSINFO,
+ MCI_WAIT | MCI_SYSINFO_ITEM,
+ &mip,
+ 0);
+
+ strcpy(info,mid.szProductInfo);
+ return deviceid;
+
+ } else {
+ int number;
+
+ mip.pszReturn = buffer;
+ mip.ulRetSize = sizeof(buffer);
+ mip.usDeviceType = MCI_DEVTYPE_AUDIO_AMPMIX;
+
+ mciSendCommand(0,
+ MCI_SYSINFO,
+ MCI_WAIT | MCI_SYSINFO_QUANTITY,
+ &mip,
+ 0);
+
+ number = atoi(mip.pszReturn);
+ return number;
+ }
+}
+
+
+static void flush_os2(audio_output_t *ao)
+{
+}
+
+
+static int init_os2(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_os2;
+ ao->flush = flush_os2;
+ ao->write = write_os2;
+ ao->get_formats = get_formats_os2;
+ ao->close = close_os2;
+
+ /* Success */
+ return 0;
+}
+
+
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "os2",
+ /* description */ "Audio output for OS2.",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_os2,
+};
+
+
diff --git a/src/output/oss.c b/src/output/oss.c
new file mode 100644
index 0000000..e1553f3
--- /dev/null
+++ b/src/output/oss.c
@@ -0,0 +1,329 @@
+/*
+ oss: audio output via Open Sound System
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#include <sys/ioctl.h>
+#include <fcntl.h>
+
+#include "mpg123app.h"
+
+#ifdef HAVE_LINUX_SOUNDCARD_H
+#include <linux/soundcard.h>
+#endif
+
+#ifdef HAVE_SYS_SOUNDCARD_H
+#include <sys/soundcard.h>
+#endif
+
+#ifdef HAVE_MACHINE_SOUNDCARD_H
+#include <machine/soundcard.h>
+#endif
+
+#ifndef AFMT_S16_NE
+# ifdef OSS_BIG_ENDIAN
+# define AFMT_S16_NE AFMT_S16_BE
+# else
+# define AFMT_S16_NE AFMT_S16_LE
+# endif
+#endif
+
+#ifndef AFMT_U16_NE
+# ifdef OSS_BIG_ENDIAN
+# define AFMT_U16_NE AFMT_U16_BE
+# else
+# define AFMT_U16_NE AFMT_U16_LE
+# endif
+#endif
+
+#include "debug.h"
+
+struct oss_stuff
+{
+ int fragment; /* size of one fragment */
+ int nfrag; /* number of fragments */
+};
+
+static int rate_best_match_oss(audio_output_t *ao)
+{
+ int ret,dsp_rate;
+
+ if(!ao || ao->fn < 0 || ao->rate < 0) return -1;
+ dsp_rate = ao->rate;
+
+ ret = ioctl(ao->fn, SNDCTL_DSP_SPEED,&dsp_rate);
+ if(ret < 0) return ret;
+ ao->rate = dsp_rate;
+ return 0;
+}
+
+static int set_rate_oss(audio_output_t *ao)
+{
+ int dsp_rate;
+ int ret = 0;
+
+ if(ao->rate >= 0) {
+ dsp_rate = ao->rate;
+ ret = ioctl(ao->fn, SNDCTL_DSP_SPEED,&dsp_rate);
+ }
+ return ret;
+}
+
+static int set_channels_oss(audio_output_t *ao)
+{
+ int chan = ao->channels - 1;
+ int ret;
+
+ if(ao->channels < 0) return 0;
+
+ ret = ioctl(ao->fn, SNDCTL_DSP_STEREO, &chan);
+ if(chan != (ao->channels-1)) return -1;
+
+ return ret;
+}
+
+static int set_format_oss(audio_output_t *ao)
+{
+ int sample_size,fmts;
+ int sf,ret;
+
+ if(ao->format == -1) return 0;
+
+ switch(ao->format) {
+ case MPG123_ENC_SIGNED_16:
+ default:
+ fmts = AFMT_S16_NE;
+ sample_size = 16;
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+ fmts = AFMT_U8;
+ sample_size = 8;
+ break;
+ case MPG123_ENC_SIGNED_8:
+ fmts = AFMT_S8;
+ sample_size = 8;
+ break;
+ case MPG123_ENC_ULAW_8:
+ fmts = AFMT_MU_LAW;
+ sample_size = 8;
+ break;
+ case MPG123_ENC_ALAW_8:
+ fmts = AFMT_A_LAW;
+ sample_size = 8;
+ break;
+ case MPG123_ENC_UNSIGNED_16:
+ fmts = AFMT_U16_NE;
+ break;
+ }
+
+#if 0
+ if(ioctl(ao->fn, SNDCTL_DSP_SAMPLESIZE, &sample_size) < 0)
+ return -1;
+#endif
+
+ sf = fmts;
+ ret = ioctl(ao->fn, SNDCTL_DSP_SETFMT, &fmts);
+ if(sf != fmts) return -1;
+
+ return ret;
+}
+
+
+static int reset_parameters_oss(audio_output_t *ao)
+{
+ int ret;
+ ret = ioctl(ao->fn, SNDCTL_DSP_RESET, NULL);
+ if(ret < 0 && !AOQUIET) error("Can't reset audio!");
+ ret = set_format_oss(ao);
+ if (ret == -1) goto err;
+ ret = set_channels_oss(ao);
+ if (ret == -1) goto err;
+ ret = set_rate_oss(ao);
+ if (ret == -1) goto err;
+
+ /* Careful here. As per OSS v1.1, the next ioctl() commits the format
+ * set above, so we must issue SNDCTL_DSP_RESET before we're allowed to
+ * change it again. [dk]
+ */
+
+/* FIXME: this needs re-enabled (but not using global variables this time):
+ if (ioctl(ao->fn, SNDCTL_DSP_GETBLKSIZE, &outburst) == -1 ||
+ outburst > MAXOUTBURST)
+ outburst = MAXOUTBURST;
+*/
+
+err:
+ return ret;
+}
+
+
+static int open_oss(audio_output_t *ao)
+{
+ char usingdefdev = 0;
+
+ if(!ao) return -1;
+
+ if(!ao->device) {
+ ao->device = "/dev/dsp";
+ usingdefdev = 1;
+ }
+
+ ao->fn = open(ao->device,O_WRONLY);
+
+ if(ao->fn < 0)
+ {
+ if(usingdefdev) {
+ ao->device = "/dev/sound/dsp";
+ ao->fn = open(ao->device,O_WRONLY);
+ if(ao->fn < 0) {
+ if(!AOQUIET) error("Can't open default sound device!");
+ return -1;
+ }
+ } else {
+ if(!AOQUIET) error1("Can't open %s!",ao->device);
+ return -1;
+ }
+ }
+
+ if(reset_parameters_oss(ao) < 0) {
+ close(ao->fn);
+ return -1;
+ }
+
+ if(ao->gain >= 0) {
+ int e,mask;
+ e = ioctl(ao->fn , SOUND_MIXER_READ_DEVMASK ,&mask);
+ if(e < 0) {
+ if(!AOQUIET) error("audio/gain: Can't get audio device features list.");
+ }
+ else if(mask & SOUND_MASK_PCM) {
+ int gain = (ao->gain<<8)|(ao->gain);
+ e = ioctl(ao->fn, SOUND_MIXER_WRITE_PCM , &gain);
+ }
+ else if(!(mask & SOUND_MASK_VOLUME)) {
+ if(!AOQUIET) error1("audio/gain: setable Volume/PCM-Level not supported by your audio device: %#04x",mask);
+ }
+ else {
+ int gain = (ao->gain<<8)|(ao->gain);
+ e = ioctl(ao->fn, SOUND_MIXER_WRITE_VOLUME , &gain);
+ }
+ }
+
+ return ao->fn;
+}
+
+
+
+/*
+ * get formats for specific channel/rate parameters
+ */
+static int get_formats_oss(audio_output_t *ao)
+{
+ int fmt = 0;
+ int r = ao->rate;
+ int c = ao->channels;
+ int i;
+
+ static int fmts[] = {
+ MPG123_ENC_ULAW_8 , MPG123_ENC_SIGNED_16 ,
+ MPG123_ENC_UNSIGNED_8 , MPG123_ENC_SIGNED_8 ,
+ MPG123_ENC_UNSIGNED_16 , MPG123_ENC_ALAW_8
+ };
+
+ /* Reset is required before we're allowed to set the new formats. [dk] */
+ ioctl(ao->fn, SNDCTL_DSP_RESET, NULL);
+
+ for(i=0;i<6;i++) {
+ ao->format = fmts[i];
+ if(set_format_oss(ao) < 0) {
+ continue;
+ }
+ ao->channels = c;
+ if(set_channels_oss(ao) < 0) {
+ continue;
+ }
+ ao->rate = r;
+ if(rate_best_match_oss(ao) < 0) {
+ continue;
+ }
+ if( (ao->rate*100 > r*(100-AUDIO_RATE_TOLERANCE)) && (ao->rate*100 < r*(100+AUDIO_RATE_TOLERANCE)) ) {
+ fmt |= fmts[i];
+ }
+ }
+
+
+#if 0
+ if(ioctl(ao->fn,SNDCTL_DSP_GETFMTS,&fmts) < 0) {
+ if(!AOQUIET) error("Failed to get SNDCTL_DSP_GETFMTS");
+ return -1;
+ }
+
+ if(fmts & AFMT_MU_LAW)
+ ret |= MPG123_ENC_ULAW_8;
+ if(fmts & AFMT_S16_NE)
+ ret |= MPG123_ENC_SIGNED_16;
+ if(fmts & AFMT_U8)
+ ret |= MPG123_ENC_UNSIGNED_8;
+ if(fmts & AFMT_S8)
+ ret |= MPG123_ENC_SIGNED_8;
+ if(fmts & AFMT_U16_NE)
+ ret |= MPG123_ENC_UNSIGNED_16;
+ if(fmts & AFMT_A_LAW)
+ ret |= MPG123_ENC_ALAW_8;
+#endif
+
+ return fmt;
+}
+
+static int write_oss(audio_output_t *ao,unsigned char *buf,int len)
+{
+ return write(ao->fn,buf,len);
+}
+
+static int close_oss(audio_output_t *ao)
+{
+ close(ao->fn);
+ return 0;
+}
+
+static void flush_oss(audio_output_t *ao)
+{
+}
+
+
+
+
+static int init_oss(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_oss;
+ ao->flush = flush_oss;
+ ao->write = write_oss;
+ ao->get_formats = get_formats_oss;
+ ao->close = close_oss;
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "oss",
+ /* description */ "Output audio using OSS",
+ /* revision */ "$Rev: 1445 $",
+ /* handle */ NULL,
+
+ /* init_output */ init_oss,
+};
+
+
diff --git a/src/output/portaudio.c b/src/output/portaudio.c
new file mode 100644
index 0000000..8e8781d
--- /dev/null
+++ b/src/output/portaudio.c
@@ -0,0 +1,255 @@
+/*
+ portaudio: audio output via PortAudio cross-platform audio API
+
+ copyright 2006-9 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Nicholas J. Humfrey
+*/
+
+#include <math.h>
+
+#include <portaudio.h>
+
+#include "audio.h"
+#include "mpg123app.h"
+
+#ifdef WIN32
+#include <windows.h>
+#endif
+
+/* Including the sfifo code locally, to avoid module linkage issues. */
+#define SFIFO_STATIC
+#include "sfifo.c"
+
+#include "debug.h"
+
+#define SAMPLE_SIZE (2)
+#define FRAMES_PER_BUFFER (256)
+#define FIFO_DURATION (0.5f)
+
+
+typedef struct {
+ PaStream *stream;
+ sfifo_t fifo;
+} mpg123_portaudio_t;
+
+#ifdef PORTAUDIO18
+#define PaTime PaTimestamp
+#define Pa_IsStreamActive Pa_StreamActive
+#endif
+
+
+#ifdef PORTAUDIO18
+static int paCallback( void *inputBuffer, void *outputBuffer,
+ unsigned long framesPerBuffer,
+ PaTime outTime, void *userData )
+#else
+static int paCallback(
+ const void *inputBuffer, void *outputBuffer,
+ unsigned long framesPerBuffer,
+ const PaStreamCallbackTimeInfo* timeInfo,
+ PaStreamCallbackFlags statusFlags,
+ void *userData )
+#endif
+{
+ audio_output_t *ao = userData;
+ mpg123_portaudio_t *pa = (mpg123_portaudio_t*)ao->userptr;
+ unsigned long bytes = framesPerBuffer * SAMPLE_SIZE * ao->channels;
+
+ if (sfifo_used(&pa->fifo)<bytes) {
+ error("ringbuffer for PortAudio is empty");
+ return 1;
+ } else {
+ sfifo_read( &pa->fifo, outputBuffer, bytes );
+ return 0;
+ }
+}
+
+
+static int open_portaudio(audio_output_t *ao)
+{
+ mpg123_portaudio_t *pa = (mpg123_portaudio_t*)ao->userptr;
+ PaError err;
+
+ /* Open an audio I/O stream. */
+ if (ao->rate > 0 && ao->channels >0 ) {
+
+ err = Pa_OpenDefaultStream(
+ &pa->stream,
+ 0, /* no input channels */
+ ao->channels, /* number of output channels */
+ paInt16, /* signed 16-bit samples */
+ ao->rate, /* sample rate */
+ FRAMES_PER_BUFFER, /* frames per buffer */
+#ifdef PORTAUDIO18
+ 0, /* number of buffers, if zero then use default minimum */
+#endif
+ paCallback, /* no callback - use blocking IO */
+ ao );
+
+ if( err != paNoError ) {
+ error1("Failed to open PortAudio default stream: %s", Pa_GetErrorText( err ));
+ return -1;
+ }
+
+ /* Initialise FIFO */
+ sfifo_init( &pa->fifo, ao->rate * FIFO_DURATION * SAMPLE_SIZE *ao->channels );
+
+ }
+
+ return(0);
+}
+
+
+static int get_formats_portaudio(audio_output_t *ao)
+{
+ /* Only implemented Signed 16-bit audio for now */
+ return MPG123_ENC_SIGNED_16;
+}
+
+
+static int write_portaudio(audio_output_t *ao, unsigned char *buf, int len)
+{
+ mpg123_portaudio_t *pa = (mpg123_portaudio_t*)ao->userptr;
+ PaError err;
+ int written;
+
+ /* Sleep for half the length of the FIFO */
+ while (sfifo_space( &pa->fifo ) < len ) {
+#ifdef WIN32
+ Sleep( (FIFO_DURATION/2) * 1000);
+#else
+ usleep( (FIFO_DURATION/2) * 1000000 );
+#endif
+ }
+
+ /* Write the audio to the ring buffer */
+ written = sfifo_write( &pa->fifo, buf, len );
+
+ /* Start stream if not ative */
+ err = Pa_IsStreamActive( pa->stream );
+ if (err == 0) {
+ err = Pa_StartStream( pa->stream );
+ if( err != paNoError ) {
+ error1("Failed to start PortAudio stream: %s", Pa_GetErrorText( err ));
+ return -1; /* triggering exit here is not good, better handle that somehow... */
+ }
+ } else if (err < 0) {
+ error1("Failed to check state of PortAudio stream: %s", Pa_GetErrorText( err ));
+ return -1;
+ }
+
+ return written;
+}
+
+
+static int close_portaudio(audio_output_t *ao)
+{
+ mpg123_portaudio_t *pa = (mpg123_portaudio_t*)ao->userptr;
+ PaError err;
+
+ if (pa->stream) {
+ /* stop the stream if it is active */
+ if (Pa_IsStreamActive( pa->stream ) == 1) {
+ err = Pa_StopStream( pa->stream );
+ if( err != paNoError ) {
+ error1("Failed to stop PortAudio stream: %s", Pa_GetErrorText( err ));
+ return -1;
+ }
+ }
+
+ /* and then close the stream */
+ err = Pa_CloseStream( pa->stream );
+ if( err != paNoError ) {
+ error1("Failed to close PortAudio stream: %s", Pa_GetErrorText( err ));
+ return -1;
+ }
+
+ pa->stream = NULL;
+ }
+
+ /* and free memory used by fifo */
+ sfifo_close( &pa->fifo );
+
+ return 0;
+}
+
+
+static void flush_portaudio(audio_output_t *ao)
+{
+ mpg123_portaudio_t *pa = (mpg123_portaudio_t*)ao->userptr;
+ PaError err;
+
+ /* throw away contents of FIFO */
+ sfifo_flush( &pa->fifo );
+
+ /* and empty out PortAudio buffers */
+ err = Pa_AbortStream( pa->stream );
+
+}
+
+
+static int deinit_portaudio(audio_output_t* ao)
+{
+ /* Free up memory */
+ if (ao->userptr) {
+ free( ao->userptr );
+ ao->userptr = NULL;
+ }
+
+ /* Shut down PortAudio */
+ Pa_Terminate();
+
+ /* Success */
+ return 0;
+}
+
+
+static int init_portaudio(audio_output_t* ao)
+{
+ int err = paNoError;
+
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_portaudio;
+ ao->flush = flush_portaudio;
+ ao->write = write_portaudio;
+ ao->get_formats = get_formats_portaudio;
+ ao->close = close_portaudio;
+ ao->deinit = deinit_portaudio;
+
+ /* Allocate memory for handle */
+ ao->userptr = malloc( sizeof(mpg123_portaudio_t) );
+ if (ao->userptr==NULL) {
+ error( "Failed to allocated memory for driver structure" );
+ return -1;
+ }
+ memset( ao->userptr, 0, sizeof(mpg123_portaudio_t) );
+
+ /* Initialise PortAudio */
+ err = Pa_Initialize();
+ if( err != paNoError ) {
+ error1("Failed to initialise PortAudio: %s", Pa_GetErrorText( err ));
+ return -1;
+ }
+
+ /* Success */
+ return 0;
+}
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "portaudio",
+ /* description */ "Output audio using PortAudio",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_portaudio,
+};
+
diff --git a/src/output/pulse.c b/src/output/pulse.c
new file mode 100644
index 0000000..9e79dd6
--- /dev/null
+++ b/src/output/pulse.c
@@ -0,0 +1,164 @@
+/*
+ pulse: audio output using PulseAudio server
+
+ copyright 2006-9 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Nicholas J. Humfrey
+*/
+
+#include <stdlib.h>
+#include <stdio.h>
+#include <math.h>
+
+#include <pulse/simple.h>
+#include <pulse/error.h>
+
+#include "config.h"
+#include "mpg123app.h"
+#include "audio.h"
+#include "module.h"
+#include "debug.h"
+
+static int open_pulse(audio_output_t *ao)
+{
+ int err;
+ pa_simple* pas = NULL;
+ pa_sample_spec ss;
+ /* Check if already open ? */
+ if (ao->userptr) {
+ error("Pulse audio output is already open.");
+ return -1;
+ }
+
+ /* Open an audio I/O stream. */
+ /* When they are < 0, I shall set some default. */
+ if(ao->rate < 0 || ao->format < 0 || ao->channels < 0)
+ {
+ ao->rate = 44100;
+ ao->channels = 2;
+ ao->format = MPG123_ENC_SIGNED_16;
+ }
+
+ /* Fill out pulse audio's data structure */
+ ss.channels = ao->channels;
+ ss.rate = ao->rate;
+
+ switch(ao->format) {
+ case MPG123_ENC_SIGNED_16:
+#ifdef WORDS_BIGENDIAN
+ ss.format=PA_SAMPLE_S16BE;
+#else
+ ss.format=PA_SAMPLE_S16LE;
+#endif
+ break;
+ case MPG123_ENC_ALAW_8:
+ ss.format=PA_SAMPLE_ALAW;
+ break;
+ case MPG123_ENC_ULAW_8:
+ ss.format=PA_SAMPLE_ULAW;
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+ ss.format=PA_SAMPLE_U8;
+ break;
+ default:
+ error1("Unsupported audio format: 0x%x", ao->format);
+ return -1;
+ break;
+ }
+
+
+ /* Perform the open */
+ pas = pa_simple_new(
+ NULL, /* Use the default server */
+ "mpg123", /* Our application's name */
+ PA_STREAM_PLAYBACK,
+ ao->device, /* Use the default device if NULL */
+ "MPEG Audio", /* Description of our stream */
+ &ss, /* Our sample format */
+ NULL, /* Use default channel map */
+ NULL, /* Use default buffering attributes */
+ &err /* Error result code */
+ );
+
+ if( pas == NULL ) {
+ error1("Failed to open pulse audio output: %s", pa_strerror(err));
+ return -1;
+ }
+
+ /* Store the pointer */
+ ao->userptr = (void*)pas;
+ return 0;
+}
+
+
+static int get_formats_pulse(audio_output_t *ao)
+{
+ /* Only implemented Signed 16-bit audio for now */
+ return MPG123_ENC_SIGNED_16;
+}
+
+
+static int write_pulse(audio_output_t *ao, unsigned char *buf, int len)
+{
+ pa_simple *pas = (pa_simple*)ao->userptr;
+ int ret, err;
+ /* Doesn't return number of bytes but just success or not. */
+ ret = pa_simple_write( pas, buf, len, &err );
+ if(ret<0){ error1("Failed to write audio: %s", pa_strerror(err)); return -1; }
+
+ return len; /* If successful, everything has been written. */
+}
+
+static int close_pulse(audio_output_t *ao)
+{
+ pa_simple *pas = (pa_simple*)ao->userptr;
+
+ if (pas) {
+ pa_simple_free( pas );
+ ao->userptr = NULL;
+ }
+
+ return 0;
+}
+
+static void flush_pulse(audio_output_t *ao)
+{
+ pa_simple *pas = (pa_simple*)ao->userptr;
+
+ if (pas) {
+ int err;
+ pa_simple_flush( pas, &err );
+ if (err) error1("Failed to flush audio: %s", pa_strerror(err));
+ }
+}
+
+
+static int init_pulse(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_pulse;
+ ao->flush = flush_pulse;
+ ao->write = write_pulse;
+ ao->get_formats = get_formats_pulse;
+ ao->close = close_pulse;
+
+ /* Success */
+ return 0;
+}
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "pulse",
+ /* description */ "Output audio using PulseAudio Server",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_pulse,
+};
+
diff --git a/src/output/sdl.c b/src/output/sdl.c
new file mode 100644
index 0000000..cc65021
--- /dev/null
+++ b/src/output/sdl.c
@@ -0,0 +1,206 @@
+/*
+ sdl: audio output via SDL cross-platform API
+
+ copyright 2006-9 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Nicholas J. Humfrey
+*/
+
+#include <math.h>
+
+#include <SDL.h>
+
+#include "audio.h"
+#include "mpg123app.h"
+#ifdef WIN32
+#include <windows.h>
+#endif
+
+/* Including the sfifo code locally, to avoid module linkage issues. */
+#define SFIFO_STATIC
+#include "sfifo.c"
+
+#include "debug.h"
+
+
+#define SAMPLE_SIZE (2)
+#define FRAMES_PER_BUFFER (256)
+#define FIFO_DURATION (0.5f)
+
+
+
+
+/* The audio function callback takes the following parameters:
+ stream: A pointer to the audio buffer to be filled
+ len: The length (in bytes) of the audio buffer
+*/
+static void audio_callback_sdl(void *udata, Uint8 *stream, int len)
+{
+ audio_output_t *ao = (audio_output_t*)udata;
+ sfifo_t *fifo = (sfifo_t*)ao->userptr;
+ int bytes_read;
+
+ /* Only play if we have data left */
+ if ( sfifo_used( fifo ) < len ) {
+ warning("Didn't have any audio data for SDL (buffer underflow)");
+ SDL_PauseAudio(1);
+ return;
+ }
+
+ /* Read audio from FIFO to SDL's buffer */
+ bytes_read = sfifo_read( fifo, stream, len );
+
+ if (len!=bytes_read)
+ warning2("Error reading from the FIFO (wanted=%u, bytes_read=%u).\n", len, bytes_read);
+
+}
+
+static int open_sdl(audio_output_t *ao)
+{
+ sfifo_t *fifo = (sfifo_t*)ao->userptr;
+
+ /* Open an audio I/O stream. */
+ if (ao->rate > 0 && ao->channels >0 ) {
+ size_t ringbuffer_len;
+ SDL_AudioSpec wanted;
+
+ /* L16 uncompressed audio data, using 16-bit signed representation in twos
+ complement notation - system endian-ness. */
+ wanted.format = AUDIO_S16SYS;
+ wanted.samples = 1024; /* Good low-latency value for callback */
+ wanted.callback = audio_callback_sdl;
+ wanted.userdata = ao;
+ wanted.channels = ao->channels;
+ wanted.freq = ao->rate;
+
+ /* Open the audio device, forcing the desired format */
+ if ( SDL_OpenAudio(&wanted, NULL) ) {
+ error1("Couldn't open SDL audio: %s\n", SDL_GetError());
+ return -1;
+ }
+
+ /* Initialise FIFO */
+ ringbuffer_len = ao->rate * FIFO_DURATION * SAMPLE_SIZE *ao->channels;
+ debug2( "Allocating %d byte ring-buffer (%f seconds)", (int)ringbuffer_len, (float)FIFO_DURATION);
+ if (sfifo_init( fifo, ringbuffer_len )) error1( "Failed to initialise FIFO of size %d bytes", (int)ringbuffer_len );
+ }
+
+ return(0);
+}
+
+
+static int get_formats_sdl(audio_output_t *ao)
+{
+ /* Only implemented Signed 16-bit audio for now */
+ return MPG123_ENC_SIGNED_16;
+}
+
+
+static int write_sdl(audio_output_t *ao, unsigned char *buf, int len)
+{
+ sfifo_t *fifo = (sfifo_t*)ao->userptr;
+
+ /* Sleep for half the length of the FIFO */
+ while (sfifo_space( fifo ) < len )
+#ifdef WIN32
+ Sleep( (FIFO_DURATION/2) * 1000);
+#else
+ usleep( (FIFO_DURATION/2) * 1000000 );
+#endif
+
+ /* Bung decoded audio into the FIFO
+ SDL Audio locking probably isn't actually needed
+ as SFIFO claims to be thread safe...
+ */
+ SDL_LockAudio();
+ sfifo_write( fifo, buf, len);
+ SDL_UnlockAudio();
+
+
+ /* Unpause once the buffer is 50% full */
+ if (sfifo_used(fifo) > (sfifo_size(fifo)*0.5) ) SDL_PauseAudio(0);
+
+ return len;
+}
+
+static int close_sdl(audio_output_t *ao)
+{
+ sfifo_t *fifo = (sfifo_t*)ao->userptr;
+
+ SDL_CloseAudio();
+
+ /* Free up the memory used by the FIFO */
+ sfifo_close( fifo );
+
+ return 0;
+}
+
+static void flush_sdl(audio_output_t *ao)
+{
+ sfifo_t *fifo = (sfifo_t*)ao->userptr;
+
+ SDL_PauseAudio(1);
+
+ sfifo_flush( fifo );
+}
+
+
+static int deinit_sdl(audio_output_t* ao)
+{
+ /* Free up memory */
+ if (ao->userptr) {
+ free( ao->userptr );
+ ao->userptr = NULL;
+ }
+
+ /* Shut down SDL */
+ SDL_Quit();
+
+ /* Success */
+ return 0;
+}
+
+
+static int init_sdl(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_sdl;
+ ao->flush = flush_sdl;
+ ao->write = write_sdl;
+ ao->get_formats = get_formats_sdl;
+ ao->close = close_sdl;
+ ao->deinit = deinit_sdl;
+
+ /* Allocate memory */
+ ao->userptr = malloc( sizeof(sfifo_t) );
+ if (ao->userptr==NULL) {
+ error( "Failed to allocated memory for FIFO structure" );
+ return -1;
+ }
+ memset( ao->userptr, 0, sizeof(sfifo_t) );
+
+ /* Initialise SDL */
+ if (SDL_Init( SDL_INIT_AUDIO ) ) {
+ error1("Failed to initialise SDL: %s\n", SDL_GetError());
+ return -1;
+ }
+
+ /* Success */
+ return 0;
+}
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "sdl",
+ /* description */ "Output audio using SDL (Simple DirectMedia Layer).",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_sdl,
+};
diff --git a/src/output/sgi.c b/src/output/sgi.c
new file mode 100644
index 0000000..0083347
--- /dev/null
+++ b/src/output/sgi.c
@@ -0,0 +1,213 @@
+/*
+ sgi: audio output on SGI boxen
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written (as it seems) by Thomas Woerner
+*/
+
+#include <fcntl.h>
+
+/* #include <audio.h> */
+#include <dmedia/audio.h>
+
+#include "mpg123app.h"
+#include "debug.h"
+
+
+/* Analog output constant */
+static const char analog_output_res_name[] = ".AnalogOut";
+
+
+static int set_rate(audio_output_t *ao, ALconfig config)
+{
+ int dev = alGetDevice(config);
+ ALpv params[1];
+
+ /* Make sure the device is OK */
+ if (dev < 0)
+ {
+ error1("set_rate: %s",alGetErrorString(oserror()));
+ return 1;
+ }
+
+ params[0].param = AL_OUTPUT_RATE;
+ params[0].value.ll = alDoubleToFixed(ao->rate);
+
+ if (alSetParams(dev, params,1) < 0)
+ error1("set_rate: %s",alGetErrorString(oserror()));
+
+ return 0;
+}
+
+
+static int set_channels(audio_output_t *ao, ALconfig config)
+{
+ int ret;
+
+ if(ao->channels == 2)
+ ret = alSetChannels(config, AL_STEREO);
+ else
+ ret = alSetChannels(config, AL_MONO);
+
+ if (ret < 0)
+ error1("set_channels : %s",alGetErrorString(oserror()));
+
+ return 0;
+}
+
+static int set_format(audio_output_t *ao, ALconfig config)
+{
+ if (alSetSampFmt(config,AL_SAMPFMT_TWOSCOMP) < 0)
+ error1("set_format : %s",alGetErrorString(oserror()));
+
+ if (alSetWidth(config,AL_SAMPLE_16) < 0)
+ error1("set_format : %s",alGetErrorString(oserror()));
+
+ return 0;
+}
+
+
+static int open_sgi(audio_output_t *ao)
+{
+ int dev = AL_DEFAULT_OUTPUT;
+ ALconfig config = alNewConfig();
+ ALport port = NULL;
+
+ /* Test for correct completion */
+ if (config == 0) {
+ error1("open_sgi: %s",alGetErrorString(oserror()));
+ return -1;
+ }
+
+ /* Set port parameters */
+ if(ao->channels == 2)
+ alSetChannels(config, AL_STEREO);
+ else
+ alSetChannels(config, AL_MONO);
+
+ alSetWidth(config, AL_SAMPLE_16);
+ alSetSampFmt(config,AL_SAMPFMT_TWOSCOMP);
+ alSetQueueSize(config, 131069);
+
+ /* Setup output device to specified module. If there is no module
+ specified in ao structure, use the default four output */
+ if ((ao->device) != NULL) {
+ char *dev_name;
+
+ dev_name=malloc((strlen(ao->device) + strlen(analog_output_res_name) + 1) *
+ sizeof(char));
+
+ strcpy(dev_name,ao->device);
+ strcat(dev_name,analog_output_res_name);
+
+ /* Find the asked device resource */
+ dev=alGetResourceByName(AL_SYSTEM,dev_name,AL_DEVICE_TYPE);
+
+ /* Free allocated space */
+ free(dev_name);
+
+ if (!dev) {
+ error2("Invalid audio resource: %s (%s)",dev_name, alGetErrorString(oserror()));
+ return -1;
+ }
+ }
+
+ /* Set the device */
+ if (alSetDevice(config,dev) < 0)
+ {
+ error1("open_sgi: %s",alGetErrorString(oserror()));
+ return -1;
+ }
+
+ /* Open the audio port */
+ port = alOpenPort("mpg123-VSC", "w", config);
+ if(port == NULL) {
+ error1("Unable to open audio channel: %s", alGetErrorString(oserror()));
+ return -1;
+ }
+
+ ao->handle = (void*)port;
+
+
+ set_format(ao, config);
+ set_channels(ao, config);
+ set_rate(ao, config);
+
+
+ alFreeConfig(config);
+
+ return 1;
+}
+
+
+static int get_formats_sgi(output_t *ao)
+{
+ return MPG123_ENC_SIGNED_16;
+}
+
+
+static int write_sgi(audio_output_t *ao,unsigned char *buf,int len)
+{
+ ALport port = (ALport)ao->handle;
+
+ if(ao->format == MPG123_ENC_SIGNED_8)
+ alWriteFrames(port, buf, len>>1);
+ else
+ alWriteFrames(port, buf, len>>2);
+
+ return len;
+}
+
+
+static int close_sgi(audio_output_t *ao)
+{
+ ALport port = (ALport)ao->handle;
+
+ if (port) {
+ while(alGetFilled(port) > 0) sginap(1);
+ alClosePort(port);
+ ao->handle=NULL;
+ }
+
+ return 0;
+}
+
+static void flush_sgi(audio_output_t *ao)
+{
+}
+
+
+static int init_sgi(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_sgi;
+ ao->flush = flush_sgi;
+ ao->write = write_sgi;
+ ao->get_formats = get_formats_sgi;
+ ao->close = close_sgi;
+
+ /* Success */
+ return 0;
+}
+
+
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "sgi",
+ /* description */ "Audio output for SGI.",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_sgi,
+};
+
+
diff --git a/src/output/sndio.c b/src/output/sndio.c
new file mode 100644
index 0000000..90068e9
--- /dev/null
+++ b/src/output/sndio.c
@@ -0,0 +1,140 @@
+/*
+ * sndio: sndio audio output
+ *
+ * Copyright (c) 2008 Christian Weisgerber <naddy@openbsd.org>,
+ * Alexandre Ratchov <alex@caoua.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include "mpg123app.h"
+
+#include <sndio.h>
+
+#include "debug.h"
+
+static int open_sndio(audio_output_t *ao)
+{
+ struct sio_hdl *hdl;
+ struct sio_par par;
+
+ hdl = sio_open(ao->device /* NULL is fine */, SIO_PLAY, 0);
+ if (hdl == NULL)
+ return -1;
+
+ sio_initpar(&par);
+ par.rate = ao->rate;
+ par.pchan = ao->channels;
+ par.le = SIO_LE_NATIVE;
+ switch(ao->format) {
+ case MPG123_ENC_SIGNED_16:
+ case -1: /* query mode */
+ par.sig = 1;
+ par.bits = 16;
+ break;
+ case MPG123_ENC_UNSIGNED_16:
+ par.sig = 0;
+ par.bits = 16;
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+ par.sig = 0;
+ par.bits = 8;
+ break;
+ case MPG123_ENC_SIGNED_8:
+ par.sig = 1;
+ par.bits = 8;
+ break;
+ default:
+ if (!AOQUIET)
+ error1("open_sndio: invalid sample format %d",
+ ao->format);
+ sio_close(hdl);
+ return -1;
+ }
+
+ if (!sio_setpar(hdl, &par) || !sio_getpar(hdl, &par) ||
+ !sio_start(hdl)) {
+ sio_close(hdl);
+ return -1;
+ }
+ if ((par.bits != 8 && par.bits != 16) || par.le != SIO_LE_NATIVE) {
+ sio_close(hdl);
+ return -1;
+ }
+ ao->rate = par.rate;
+ ao->channels = par.pchan;
+ ao->format = (par.bits == 8) ?
+ (par.sig ? MPG123_ENC_SIGNED_8 : MPG123_ENC_UNSIGNED_8) :
+ (par.sig ? MPG123_ENC_SIGNED_16 : MPG123_ENC_UNSIGNED_16);
+ ao->userptr = hdl;
+ return 0;
+}
+
+static int get_formats_sndio(audio_output_t *ao)
+{
+ return (MPG123_ENC_SIGNED_16|MPG123_ENC_UNSIGNED_16|
+ MPG123_ENC_UNSIGNED_8|MPG123_ENC_SIGNED_8);
+}
+
+static int write_sndio(audio_output_t *ao, unsigned char *buf, int len)
+{
+ struct sio_hdl *hdl = (struct sio_hdl *)ao->userptr;
+ int count;
+
+ count = (int)sio_write(hdl, buf, len);
+ if (count == 0 && sio_eof(hdl))
+ return -1;
+ return count;
+}
+
+static void flush_sndio(audio_output_t *ao)
+{
+ return;
+}
+
+static int close_sndio(audio_output_t *ao)
+{
+ struct sio_hdl *hdl = (struct sio_hdl *)ao->userptr;
+
+ sio_close(hdl);
+ return 0;
+}
+
+static int init_sndio(audio_output_t* ao)
+{
+ if (ao == NULL)
+ return -1;
+
+ /* Set callbacks */
+ ao->open = open_sndio;
+ ao->flush = flush_sndio; /* required */
+ ao->write = write_sndio;
+ ao->get_formats = get_formats_sndio;
+ ao->close = close_sndio;
+
+ /* Success */
+ return 0;
+}
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "sndio",
+ /* description */ "Output audio using sndio library",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_sndio,
+};
diff --git a/src/output/sun.c b/src/output/sun.c
new file mode 100644
index 0000000..75bd7a0
--- /dev/null
+++ b/src/output/sun.c
@@ -0,0 +1,281 @@
+/*
+ sun: audio output for Sun systems
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#include "mpg123app.h"
+
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
+
+#ifdef HAVE_SUN_AUDIOIO_H
+#include <sun/audioio.h>
+#endif
+
+#ifdef HAVE_SYS_AUDIOIO_H
+#include <sys/audioio.h>
+#endif
+
+#ifdef HAVE_SYS_AUDIO_H
+#include <sys/audio.h>
+#endif
+
+#ifdef HAVE_ASM_AUDIOIO_H
+#include <asm/audioio.h>
+#endif
+
+#include <fcntl.h>
+#include "debug.h"
+
+static void set_format_helper(audio_output_t *ao, audio_info_t *ainfo)
+{
+
+ switch(ao->format) {
+ case -1:
+ case MPG123_ENC_SIGNED_16:
+ default:
+#ifndef AUDIO_ENCODING_LINEAR /* not supported */
+#define AUDIO_ENCODING_LINEAR 3
+#endif
+ ainfo->play.encoding = AUDIO_ENCODING_LINEAR;
+ ainfo->play.precision = 16;
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+#if defined(SOLARIS) || defined(SPARCLINUX)
+ ainfo->play.encoding = AUDIO_ENCODING_LINEAR8;
+ ainfo->play.precision = 8;
+ break;
+#endif
+ case MPG123_ENC_SIGNED_8:
+ error("Linear signed 8 bit not supported!");
+ return;
+ case MPG123_ENC_ULAW_8:
+ ainfo->play.encoding = AUDIO_ENCODING_ULAW;
+ ainfo->play.precision = 8;
+ break;
+ case MPG123_ENC_ALAW_8:
+ ainfo->play.encoding = AUDIO_ENCODING_ALAW;
+ ainfo->play.precision = 8;
+ break;
+ }
+
+}
+
+
+static int reset_parameters_sun(audio_output_t *ao)
+{
+ audio_info_t ainfo;
+
+ AUDIO_INITINFO(&ainfo);
+ if(ao->rate != -1) ainfo.play.sample_rate = ao->rate;
+
+ if(ao->channels >= 0) ainfo.play.channels = ao->channels;
+
+ set_format_helper(ao,&ainfo);
+ if(ioctl(ao->fn, AUDIO_SETINFO, &ainfo) == -1) return -1;
+
+ return 0;
+}
+
+static int rate_best_match(audio_output_t *ao)
+{
+ audio_info_t ainfo;
+ AUDIO_INITINFO(&ainfo);
+
+ ainfo.play.sample_rate = ao->rate;
+ if(ioctl(ao->fn, AUDIO_SETINFO, &ainfo) < 0) {
+ ao->rate = 0;
+ return 0;
+ }
+ if(ioctl(ao->fn, AUDIO_GETINFO, &ainfo) < 0) {
+ return -1;
+ }
+
+ ao->rate = ainfo.play.sample_rate;
+ return 0;
+}
+
+static int set_rate(audio_output_t *ao)
+{
+ audio_info_t ainfo;
+
+ if(ao->rate != -1) {
+ AUDIO_INITINFO(&ainfo);
+ ainfo.play.sample_rate = ao->rate;
+ if(ioctl(ao->fn, AUDIO_SETINFO, &ainfo) == -1) return -1;
+ return 0;
+ }
+
+ return -1;
+}
+
+static int set_channels(audio_output_t *ao)
+{
+ audio_info_t ainfo;
+
+ AUDIO_INITINFO(&ainfo);
+ ainfo.play.channels = ao->channels;
+ if(ioctl(ao->fn, AUDIO_SETINFO, &ainfo) == -1)
+ return -1;
+
+ return 0;
+}
+
+static int set_format(audio_output_t *ao)
+{
+ audio_info_t ainfo;
+
+ AUDIO_INITINFO(&ainfo);
+ set_format_helper(ao,&ainfo);
+ if(ioctl(ao->fn, AUDIO_SETINFO, &ainfo) == -1)
+ return -1;
+
+ return 0;
+}
+
+static int open_sun(audio_output_t *ao)
+{
+ audio_info_t ainfo;
+
+ if(!ao->device) {
+ if(getenv("AUDIODEV")) {
+ ao->device = getenv("AUDIODEV");
+ } else {
+ ao->device = "/dev/audio";
+ }
+ }
+
+ ao->fn = open(ao->device,O_WRONLY);
+ if(ao->fn < 0) return ao->fn;
+
+#if defined(SUNOS) && defined(AUDIO_GETDEV)
+ {
+ int type;
+ if(ioctl(ao->fn, AUDIO_GETDEV, &type) == -1) return -1;
+ if(type == AUDIO_DEV_UNKNOWN || type == AUDIO_DEV_AMD)
+ return -1;
+ }
+#else
+#if defined(SOLARIS) || defined(SPARCLINUX)
+ {
+ struct audio_device ad;
+ if(ioctl(ao->fn, AUDIO_GETDEV, &ad) == -1)
+ return -1;
+ if(!strstr(ad.name,"dbri") && !strstr(ad.name,"CS4231"))
+ warning1("Unknown sound system %s. But we try it.",ad.name);
+ }
+#endif
+#endif
+
+ if(reset_parameters_sun(ao) < 0) return -1;
+
+ AUDIO_INITINFO(&ainfo);
+
+ if(ao->flags > 0)
+ ainfo.play.port = 0;
+ if(ao->flags & AUDIO_OUT_INTERNAL_SPEAKER)
+ ainfo.play.port |= AUDIO_SPEAKER;
+ if(ao->flags & AUDIO_OUT_HEADPHONES)
+ ainfo.play.port |= AUDIO_HEADPHONE;
+ #ifdef AUDIO_LINE_OUT
+ if(ao->flags & AUDIO_OUT_LINE_OUT)
+ ainfo.play.port |= AUDIO_LINE_OUT;
+ #endif
+
+ if(ao->gain != -1)
+ ainfo.play.gain = ao->gain;
+
+ if(ioctl(ao->fn, AUDIO_SETINFO, &ainfo) == -1)
+ return -1;
+
+ return ao->fn;
+}
+
+
+
+
+static int get_formats_sun(audio_output_t *ao)
+{
+ static int tab[][3] = {
+ { AUDIO_ENCODING_ULAW , 8, MPG123_ENC_ULAW_8 } ,
+ { AUDIO_ENCODING_ALAW , 8, MPG123_ENC_ALAW_8 } ,
+ { AUDIO_ENCODING_LINEAR , 16, MPG123_ENC_SIGNED_16 } ,
+#if 0
+#if defined(SOLARIS) || defined(SPARCLINUX)
+ { AUDIO_ENCODING_LINEAR8 , 8, MPG123_ENC_UNSIGNED_8 } ,
+#endif
+#endif
+ };
+
+ audio_info_t ainfo;
+ int i,fmts=0;
+
+ for(i=0;i<sizeof(tab)/sizeof(tab[0]);i++) {
+ AUDIO_INITINFO(&ainfo);
+ ainfo.play.encoding = tab[i][0];
+ ainfo.play.precision = tab[i][1];
+#if 1
+ ainfo.play.sample_rate = ao->rate;
+ ainfo.play.channels = ao->channels;
+#endif
+ if(ioctl(ao->fn, AUDIO_SETINFO, &ainfo) >= 0) {
+ fmts |= tab[i][2];
+ }
+ }
+ return fmts;
+}
+
+static int write_sun(audio_output_t *ao,unsigned char *buf,int len)
+{
+ return write(ao->fn,buf,len);
+}
+
+static int close_sun(audio_output_t *ao)
+{
+ close (ao->fn);
+ return 0;
+}
+
+static void flush_sun(audio_output_t *ao)
+{
+ /*ioctl (ao->fn, I_FLUSH, FLUSHRW);*/
+}
+
+
+static int init_sun(audio_output_t* ao)
+{
+ if (ao==NULL) return -1;
+
+ /* Set callbacks */
+ ao->open = open_sun;
+ ao->flush = flush_sun;
+ ao->write = write_sun;
+ ao->get_formats = get_formats_sun;
+ ao->close = close_sun;
+
+ /* Success */
+ return 0;
+}
+
+
+
+
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "sun",
+ /* description */ "Audio output for Sun Audio.",
+ /* revision */ "$Rev: 1872 $",
+ /* handle */ NULL,
+
+ /* init_output */ init_sun,
+};
+
+
diff --git a/src/output/win32.c b/src/output/win32.c
new file mode 100644
index 0000000..249f222
--- /dev/null
+++ b/src/output/win32.c
@@ -0,0 +1,229 @@
+/*
+ win32: audio output for Windows 32bit
+
+ copyright ?-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+
+ initially written (as it seems) by Tony Million
+ rewrite of basic functionality for callback-less and properly ringbuffered operation by ravenexp
+*/
+
+#include "mpg123app.h"
+#include <windows.h>
+#include "debug.h"
+
+/*
+ Buffer size and number of buffers in the playback ring
+ NOTE: This particular num/size combination performs best under heavy
+ loads for my system, however this may not be true for any hardware/OS out there.
+ Generally, BUFFER_SIZE < 8k || NUM_BUFFERS > 16 || NUM_BUFFERS < 4 are not recommended.
+*/
+#define BUFFER_SIZE 0x10000
+#define NUM_BUFFERS 8 /* total 512k roughly 2.5 sec of CD quality sound */
+
+/* Buffer ring queue state */
+struct queue_state
+{
+ WAVEHDR buffer_headers[NUM_BUFFERS];
+ /* The next buffer to be filled and put in playback */
+ int next_buffer;
+ /* Buffer playback completion event */
+ HANDLE play_done_event;
+ HWAVEOUT waveout;
+};
+
+static int open_win32(struct audio_output_struct *ao)
+{
+ struct queue_state* state;
+ int i;
+ MMRESULT res;
+ WAVEFORMATEX out_fmt;
+ UINT dev_id;
+
+ if(!ao) return -1;
+ if(ao->rate == -1) return 0;
+
+ /* Allocate queue state struct for this device */
+ state = calloc(1, sizeof(struct queue_state));
+ if(!state) return -1;
+
+ ao->userptr = state;
+ /* Allocate playback buffers */
+ for(i = 0; i < NUM_BUFFERS; i++)
+ if(!(state->buffer_headers[i].lpData = malloc(BUFFER_SIZE)))
+ ereturn(-1, "Out of memory for playback buffers.");
+
+ state->play_done_event = CreateEvent(0,FALSE,FALSE,0);
+ if(state->play_done_event == INVALID_HANDLE_VALUE) return -1;
+
+ /* FIXME: real device enumeration by capabilities? */
+ dev_id = WAVE_MAPPER; /* probably does the same thing */
+ ao->device = "WaveMapper";
+ /* FIXME: support for smth besides MPG123_ENC_SIGNED_16? */
+ out_fmt.wFormatTag = WAVE_FORMAT_PCM;
+ out_fmt.wBitsPerSample = 16;
+ out_fmt.nChannels = ao->channels;
+ out_fmt.nSamplesPerSec = ao->rate;
+ out_fmt.nBlockAlign = out_fmt.nChannels*out_fmt.wBitsPerSample/8;
+ out_fmt.nAvgBytesPerSec = out_fmt.nBlockAlign*out_fmt.nSamplesPerSec;
+ out_fmt.cbSize = 0;
+
+ res = waveOutOpen(&state->waveout, dev_id, &out_fmt,
+ (DWORD_PTR)state->play_done_event, 0, CALLBACK_EVENT);
+
+ switch(res)
+ {
+ case MMSYSERR_NOERROR:
+ break;
+ case MMSYSERR_ALLOCATED:
+ ereturn(-1, "Audio output device is already allocated.");
+ case MMSYSERR_NODRIVER:
+ ereturn(-1, "No device driver is present.");
+ case MMSYSERR_NOMEM:
+ ereturn(-1, "Unable to allocate or lock memory.");
+ case WAVERR_BADFORMAT:
+ ereturn(-1, "Unsupported waveform-audio format.");
+ default:
+ ereturn(-1, "Unable to open wave output device.");
+ }
+
+ /* Reset event from the "device open" message */
+ ResetEvent(state->play_done_event);
+ return 0;
+}
+
+static int get_formats_win32(struct audio_output_struct *ao)
+{
+ /* FIXME: support for smth besides MPG123_ENC_SIGNED_16? */
+ return MPG123_ENC_SIGNED_16;
+}
+
+/* Stores audio data to the fixed size buffers and pushes them into the playback queue.
+ I have one grief with that: The last piece of a track may not reach the output,
+ only full buffers sent... But we don't get smooth audio otherwise. */
+static int write_win32(struct audio_output_struct *ao, unsigned char *buf, int len)
+{
+ struct queue_state* state;
+ MMRESULT res;
+ WAVEHDR* hdr;
+
+ int rest_len; /* Input data bytes left for next recursion. */
+ int bufill; /* Bytes we stuff into buffer now. */
+
+ if(!ao || !ao->userptr) return -1;
+ if(!buf || len <= 0) return 0;
+
+ state = (struct queue_state*)ao->userptr;
+ hdr = &state->buffer_headers[state->next_buffer];
+
+ /* Check buffer header and wait if it's being played.
+ Skip waiting if the buffer is not full yet */
+ while(hdr->dwBufferLength == BUFFER_SIZE && !(hdr->dwFlags & WHDR_DONE))
+ {
+ /* debug1("waiting for buffer %i...", state->next_buffer); */
+ WaitForSingleObject(state->play_done_event, INFINITE);
+ }
+
+ /* If it was a full buffer being played, clean up. */
+ if(hdr->dwFlags & WHDR_DONE)
+ {
+ waveOutUnprepareHeader(state->waveout, hdr, sizeof(WAVEHDR));
+ hdr->dwFlags = 0;
+ hdr->dwBufferLength = 0;
+ }
+
+ /* Now see how much we want to stuff in and then stuff it in. */
+ bufill = BUFFER_SIZE - hdr->dwBufferLength;
+ if(len < bufill) bufill = len;
+
+ rest_len = len - bufill;
+ memcpy(hdr->lpData + hdr->dwBufferLength, buf, bufill);
+ hdr->dwBufferLength += bufill;
+ if(hdr->dwBufferLength == BUFFER_SIZE)
+ { /* Send the buffer out when it's full. */
+ res = waveOutPrepareHeader(state->waveout, hdr, sizeof(WAVEHDR));
+ if(res != MMSYSERR_NOERROR) ereturn(-1, "Can't write to audio output device (prepare).");
+
+ res = waveOutWrite(state->waveout, hdr, sizeof(WAVEHDR));
+ if(res != MMSYSERR_NOERROR) ereturn(-1, "Can't write to audio output device.");
+
+ /* Cycle to the next buffer in the ring queue */
+ state->next_buffer = (state->next_buffer + 1) % NUM_BUFFERS;
+ }
+ /* I'd like to propagate error codes or something... but there are no catchable surprises left.
+ Anyhow: Here is the recursion that makes ravenexp happy;-) */
+ if(rest_len && write_win32(ao, buf + bufill, rest_len) < 0) /* Write the rest. */
+ return -1;
+ else
+ return len;
+}
+
+static void flush_win32(struct audio_output_struct *ao)
+{
+ int i, z;
+ struct queue_state* state;
+
+ if(!ao || !ao->userptr) return;
+ state = (struct queue_state*)ao->userptr;
+
+ /* FIXME: The very last output buffer is not played. This could be a problem on the feeding side. */
+ i = 0;
+ z = state->next_buffer - 1;
+ for(i = 0; i < NUM_BUFFERS; i++)
+ {
+ if(!state->buffer_headers[i].dwFlags & WHDR_DONE)
+ WaitForSingleObject(state->play_done_event, INFINITE);
+
+ waveOutUnprepareHeader(state->waveout, &state->buffer_headers[i], sizeof(WAVEHDR));
+ state->buffer_headers[i].dwFlags = 0;
+ state->buffer_headers[i].dwBufferLength = 0;
+ z = (z + 1) % NUM_BUFFERS;
+ }
+}
+
+static int close_win32(struct audio_output_struct *ao)
+{
+ int i;
+ struct queue_state* state;
+
+ if(!ao || !ao->userptr) return -1;
+ state = (struct queue_state*)ao->userptr;
+
+ flush_win32(ao);
+ waveOutClose(state->waveout);
+ CloseHandle(state->play_done_event);
+
+ for(i = 0; i < NUM_BUFFERS; i++) free(state->buffer_headers[i].lpData);
+
+ free(ao->userptr);
+ ao->userptr = 0;
+ return 0;
+}
+
+static int init_win32(audio_output_t* ao)
+{
+ if(!ao) return -1;
+
+ /* Set callbacks */
+ ao->open = open_win32;
+ ao->flush = flush_win32;
+ ao->write = write_win32;
+ ao->get_formats = get_formats_win32;
+ ao->close = close_win32;
+
+ /* Success */
+ return 0;
+}
+
+/*
+ Module information data structure
+*/
+mpg123_module_t mpg123_output_module_info = {
+ /* api_version */ MPG123_MODULE_API_VERSION,
+ /* name */ "win32",
+ /* description */ "Audio output for Windows (winmm).",
+ /* revision */ "$Rev:$",
+ /* handle */ NULL,
+
+ /* init_output */ init_win32,
+};
diff --git a/src/playlist.c b/src/playlist.c
new file mode 100644
index 0000000..5ab97d5
--- /dev/null
+++ b/src/playlist.c
@@ -0,0 +1,559 @@
+/*
+ playlist: playlist logic
+
+ copyright 1995-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, outsourced/reorganized by Thomas Orgis
+
+ If we officially support Windows again, we should have this reworked to really cope with Windows paths, too.
+*/
+
+#include "mpg123app.h"
+#include "getlopt.h" /* for loptind */
+#include "term.h" /* for term_restore */
+#include "playlist.h"
+#include "httpget.h"
+#include <time.h> /* For srand(). */
+#include "debug.h"
+
+#ifdef HAVE_RANDOM
+#define RAND random
+#define SRAND srandom
+#else
+#define RAND rand
+#define SRAND srand
+#endif
+
+/* increase linebuf in blocks of ... bytes */
+#define LINEBUF_STEP 100
+
+/* one global instance... add a pointer to this to every function definition and you have OO-style... */
+playlist_struct pl;
+
+/*
+ functions to be called from outside and thus declared in the header:
+
+ void prepare_playlist(int argc, char** argv);
+ char *get_next_file(int argc, char **argv);
+ void free_playlist();
+*/
+
+/* local functions */
+
+int add_next_file (int argc, char *argv[]);
+void shuffle_playlist();
+void init_playlist();
+int add_copy_to_playlist(char* new_entry);
+int add_to_playlist(char* new_entry, char freeit);
+
+/* used to be init_input */
+void prepare_playlist(int argc, char** argv)
+{
+ /*
+ fetch all playlist entries ... I don't consider playlists to be an endless stream.
+ If you want to intentionally hang mpg123 on some other prog that may take infinite time to produce the full list (perhaps load tracks on demand), then just use the remote control and let that program print "load filename" instead of "filename".
+ We may even provide a simple wrapper script that emulates the old playlist reading behaviour (for files and stdin, http playlists are actually a strong point on reading the list in _before_ starting playback since http connections don't last forever).
+ */
+ init_playlist();
+ while (add_next_file(argc, argv)) {}
+ if(param.verbose > 1)
+ {
+ fprintf(stderr, "\nplaylist in normal order:\n");
+ print_playlist(stderr, 0);
+ fprintf(stderr, "\n");
+ }
+ if(param.shuffle == 1) shuffle_playlist();
+ /* Don't need these anymore, we have copies! */
+ mpg123_free_string(&pl.linebuf);
+ mpg123_free_string(&pl.dir);
+}
+
+/* Return a random number >= 0 and < n */
+static size_t rando(size_t n)
+{
+ long ran;
+ long limit = RAND_MAX - (RAND_MAX % (long)n);
+ if(n<2) return 0; /* Better settle that here than in an endless loop... */
+ do{ ran = RAND(); }while( ran >= limit );
+ return (size_t)(ran%n);
+}
+
+char *get_next_file()
+{
+ struct listitem *newitem = NULL;
+
+ if(pl.fill == 0) return NULL;
+
+ ++pl.playcount;
+
+ /* normal order, just pick next thing */
+ if(param.shuffle < 2)
+ {
+ do
+ {
+ if(pl.pos < pl.fill) newitem = &pl.list[pl.pos];
+ else newitem = NULL;
+ /* if we have rounds left, decrease loop, else reinit loop because it's a new track */
+ if(pl.loop > 0) --pl.loop; /* loop for current track... */
+ if(pl.loop == 0)
+ {
+ pl.loop = param.loop;
+ ++pl.pos;
+ }
+ } while(pl.loop == 0 && newitem != NULL);
+ }
+ else
+ { /* Randomly select files, with repeating... but keep track of current track for playlist printing. */
+ do /* limiting randomness: don't repeat too early */
+ {
+ pl.pos = rando(pl.fill);
+ } while( pl.list[pl.pos].playcount && (pl.playcount - pl.list[pl.pos].playcount) <= pl.fill/2 );
+
+ newitem = &pl.list[pl.pos];
+ }
+
+ /* "-" is STDOUT, "" is dumb, NULL is nothing */
+ if(newitem != NULL)
+ {
+ /* Remember the playback position of the track. */
+ newitem->playcount = pl.playcount;
+ return newitem->url;
+ }
+ else return NULL;
+}
+
+/* It doesn't really matter on program exit, but anyway...
+ Make sure you don't free() an item of argv! */
+void free_playlist()
+{
+ if(pl.list != NULL)
+ {
+ debug("going to free() the playlist");
+ while(pl.fill)
+ {
+ --pl.fill;
+ debug1("free()ing entry %lu", (unsigned long)pl.fill);
+ if(pl.list[pl.fill].freeit) free(pl.list[pl.fill].url);
+ }
+ free(pl.list);
+ pl.list = NULL;
+ pl.size = 0;
+ debug("free()d the playlist");
+ }
+ mpg123_free_string(&pl.linebuf);
+ mpg123_free_string(&pl.dir);
+}
+
+/* the constructor... */
+void init_playlist()
+{
+ SRAND(time(NULL));
+ pl.file = NULL;
+ pl.entry = 0;
+ pl.playcount = 0;
+ pl.size = 0;
+ pl.fill = 0;
+ pl.pos = 0;
+ pl.list = NULL;
+ pl.alloc_step = 10;
+ mpg123_init_string(&pl.dir);
+ mpg123_init_string(&pl.linebuf);
+ pl.type = UNKNOWN;
+ pl.loop = param.loop;
+}
+
+/*
+ slightly modified find_next_file from mpg123.c
+ now doesn't return the next entry but adds it to playlist struct
+ returns 1 if it found something, 0 on end
+*/
+int add_next_file (int argc, char *argv[])
+{
+ int firstline = 0;
+
+ /* hack for url that has been detected as track, not playlist */
+ if(pl.type == NO_LIST) return 0;
+
+ /* Get playlist dirname to append it to the files in playlist */
+ if (param.listname)
+ {
+ char* slashpos;
+ /* Oh, right... that doesn't look good for Windows... */
+ if ((slashpos=strrchr(param.listname, '/')))
+ {
+ /* up to and including /, with space for \0 */
+ if(mpg123_resize_string(&pl.dir, 2 + slashpos - param.listname))
+ {
+ memcpy(pl.dir.p, param.listname, pl.dir.size-1);
+ pl.dir.p[pl.dir.size-1] = 0;
+ }
+ else
+ {
+ error("cannot allocate memory for list directory!");
+ pl.dir.size = 0;
+ }
+ }
+ }
+
+ if (param.listname || pl.file)
+ {
+ size_t line_offset = 0;
+ if (!pl.file)
+ {
+ /* empty or "-" */
+ if (!*param.listname || !strcmp(param.listname, "-"))
+ {
+ pl.file = stdin;
+ param.listname = NULL;
+ pl.entry = 0;
+ }
+ else if (!strncmp(param.listname, "http://", 7))
+ {
+ int fd;
+ struct httpdata htd;
+ httpdata_init(&htd);
+ fd = http_open(param.listname, &htd);
+ debug1("htd.content_type.p: %p", (void*) htd.content_type.p);
+ if(!param.ignore_mime && htd.content_type.p != NULL)
+ {
+ int mimi;
+ debug1("htd.content_type.p value: %s", htd.content_type.p);
+ mimi = debunk_mime(htd.content_type.p);
+
+ if(mimi & IS_M3U) pl.type = M3U;
+ else if(mimi & IS_PLS) pl.type = PLS;
+ else
+ {
+ if(fd >= 0) close(fd);
+
+ fd = -1;
+ if(mimi & IS_FILE)
+ {
+ pl.type = NO_LIST;
+ if(param.listentry < 0)
+ {
+ printf("#note you gave me a file url, no playlist, so...\n#entry 1\n%s\n", param.listname);
+ return 0;
+ }
+ else
+ {
+ fprintf(stderr, "Note: MIME type indicates that this is no playlist but an mpeg audio file... reopening as such.\n");
+ add_to_playlist(param.listname, 0);
+ return 1;
+ }
+ }
+ error1("Unknown playlist MIME type %s; maybe "PACKAGE_NAME" can support it in future if you report this to the maintainer.", htd.content_type.p);
+ }
+ httpdata_free(&htd);
+ }
+ if(fd < 0)
+ {
+ param.listname = NULL;
+ pl.file = NULL;
+ error("Invalid playlist from http_open()!\n");
+ }
+ else
+ {
+ pl.entry = 0;
+ pl.file = fdopen(fd,"r");
+ }
+ }
+ else if (!(pl.file = fopen(param.listname, "rb")))
+ {
+ perror (param.listname);
+ return 0;
+ }
+ else
+ {
+ debug("opened ordinary list file");
+ pl.entry = 0;
+ }
+ if (param.verbose && pl.file) fprintf (stderr, "Using playlist from %s ...\n", param.listname ? param.listname : "standard input");
+ firstline = 1; /* just opened */
+ }
+ /* reading the file line by line */
+ while (pl.file)
+ {
+ /*
+ now read a string of arbitrary size...
+ read a chunk, see if lineend, realloc, read another chunk
+
+ fgets reads at most size-1 bytes and always appends the \0
+ */
+ size_t have = 0;
+ do
+ {
+ /* have is the length of the string read, without the closing \0 */
+ if(pl.linebuf.size <= have+1)
+ {
+ if(!mpg123_resize_string(&pl.linebuf, pl.linebuf.size+LINEBUF_STEP))
+ {
+ error("cannot increase line buffer");
+ break;
+ }
+ }
+ /* I rely on fgets writing the \0 at the end! */
+ if(fgets(pl.linebuf.p+have, pl.linebuf.size-have, pl.file))
+ {
+ have += strlen(pl.linebuf.p+have);
+ debug2("have read %lu characters into linebuf: [%s]", (unsigned long)have, pl.linebuf.p);
+ }
+ else
+ {
+ debug("fgets failed to deliver something... file ended?");
+ break;
+ }
+ } while(have && pl.linebuf.p[have-1] != '\r' && pl.linebuf.p[have-1] != '\n');
+ if(have)
+ {
+ pl.linebuf.p[strcspn(pl.linebuf.p, "\t\n\r")] = '\0';
+ /* a bit of fuzzyness */
+ if(firstline)
+ {
+ if(pl.type == UNKNOWN)
+ {
+ if(!strcmp("[playlist]", pl.linebuf.p))
+ {
+ fprintf(stderr, "Note: detected Shoutcast/Winamp PLS playlist\n");
+ pl.type = PLS;
+ continue;
+ }
+ else if
+ (
+ (!strncasecmp("#M3U", pl.linebuf.p ,4))
+ ||
+ (!strncasecmp("#EXTM3U", pl.linebuf.p ,7))
+ ||
+ (param.listname != NULL && (strrchr(param.listname, '.')) != NULL && !strcasecmp(".m3u", strrchr(param.listname, '.')))
+ )
+ {
+ if(param.verbose) fprintf(stderr, "Note: detected M3U playlist type\n");
+ pl.type = M3U;
+ }
+ else
+ {
+ if(param.verbose) fprintf(stderr, "Note: guessed M3U playlist type\n");
+ pl.type = M3U;
+ }
+ }
+ else
+ {
+ if(param.verbose)
+ {
+ fprintf(stderr, "Note: Interpreting as ");
+ switch(pl.type)
+ {
+ case M3U: fprintf(stderr, "M3U"); break;
+ case PLS: fprintf(stderr, "PLS (Winamp/Shoutcast)"); break;
+ default: fprintf(stderr, "???");
+ }
+ fprintf(stderr, " playlist\n");
+ }
+ }
+ firstline = 0;
+ }
+ #if !defined(WIN32)
+ {
+ size_t i;
+ /* convert \ to / (from MS-like directory format) */
+ for (i=0;pl.linebuf.p[i]!='\0';i++)
+ {
+ if (pl.linebuf.p[i] == '\\') pl.linebuf.p[i] = '/';
+ }
+ }
+ #endif
+ if (pl.linebuf.p[0]=='\0') continue; /* skip empty lines... */
+ if (((pl.type == M3U) && (pl.linebuf.p[0]=='#')))
+ {
+ /* a comment line in m3u file */
+ if(param.listentry < 0) printf("%s\n", pl.linebuf.p);
+ continue;
+ }
+
+ /* real filename may start at an offset */
+ line_offset = 0;
+ /* extract path out of PLS */
+ if(pl.type == PLS)
+ {
+ if(!strncasecmp("File", pl.linebuf.p, 4))
+ {
+ /* too lazy to really check for file number... would have to change logic to support unordered file entries anyway */
+ char* in_line;
+ if((in_line = strchr(pl.linebuf.p+4, '=')) != NULL)
+ {
+ /* FileN=? */
+ if(in_line[1] != 0)
+ {
+ ++in_line;
+ line_offset = (size_t) (in_line-pl.linebuf.p);
+ }
+ else
+ {
+ fprintf(stderr, "Warning: Invalid PLS line (empty filename) - corrupt playlist file?\n");
+ continue;
+ }
+ }
+ else
+ {
+ fprintf(stderr, "Warning: Invalid PLS line (no '=' after 'File') - corrupt playlist file?\n");
+ continue;
+ }
+ }
+ else
+ {
+ if(param.listentry < 0) printf("#metainfo %s\n", pl.linebuf.p);
+ continue;
+ }
+ }
+
+ /* make paths absolute */
+ /* Windows knows absolute paths with c: in front... should handle this if really supporting win32 again */
+ if
+ (
+ (pl.dir.p != NULL)
+ && (pl.linebuf.p[line_offset]!='/')
+ && (pl.linebuf.p[line_offset]!='\\')
+ && strncmp(pl.linebuf.p+line_offset, "http://", 7)
+ )
+ {
+ size_t need;
+ need = pl.dir.size + strlen(pl.linebuf.p+line_offset);
+ if(pl.linebuf.size < need)
+ {
+ if(!mpg123_resize_string(&pl.linebuf, need))
+ {
+ error("unable to enlarge linebuf for appending path! skipping");
+ continue;
+ }
+ }
+ /* move to have the space at beginning */
+ memmove(pl.linebuf.p+pl.dir.size-1, pl.linebuf.p+line_offset, strlen(pl.linebuf.p+line_offset)+1);
+ /* prepend path */
+ memcpy(pl.linebuf.p, pl.dir.p, pl.dir.size-1);
+ line_offset = 0;
+ }
+ ++pl.entry;
+ if(param.listentry < 0) printf("#entry %lu\n%s\n", (unsigned long)pl.entry,pl.linebuf.p+line_offset);
+ else if((param.listentry == 0) || (param.listentry == pl.entry))
+ {
+ add_copy_to_playlist(pl.linebuf.p+line_offset);
+ return 1;
+ }
+ }
+ else
+ {
+ if (param.listname)
+ fclose (pl.file);
+ param.listname = NULL;
+ pl.file = NULL;
+ }
+ }
+ }
+ if(loptind < argc)
+ {
+ add_to_playlist(argv[loptind++], 0);
+ return 1;
+ }
+ return 0;
+}
+
+void shuffle_playlist()
+{
+ size_t loop;
+ size_t rannum;
+ if(pl.fill >= 2)
+ {
+ /* Refer to bug 1777621 for discussion on that.
+ It's Durstenfeld... */
+ for (loop = 0; loop < pl.fill; loop++)
+ {
+ struct listitem tmp;
+ rannum = loop + rando(pl.fill-loop);
+ /*
+ Small test on your binary operation skills (^ is XOR):
+ a = b^(a^b)
+ b = (a^b)^(b^(a^b))
+ And, understood? ;-)
+
+ pl.list[loop] ^= pl.list[rannum];
+ pl.list[rannum] ^= pl.list[loop];
+ pl.list[loop] ^= pl.list[rannum];
+
+ But since this is not allowed with pointers and any speed gain questionable (well, saving _some_ memory...), doing it the lame way:
+ */
+ tmp = pl.list[rannum];
+ pl.list[rannum] = pl.list[loop];
+ pl.list[loop] = tmp;
+ }
+ }
+
+ if(param.verbose > 1)
+ {
+ /* print them */
+ fprintf(stderr, "\nshuffled playlist:\n");
+ print_playlist(stderr, 0);
+ fprintf(stderr, "\n");
+ }
+}
+
+void print_playlist(FILE* out, int showpos)
+{
+ size_t loop;
+ for (loop = 0; loop < pl.fill; loop++)
+ {
+ char *pre = "";
+ if(showpos)
+ pre = (pl.pos>0 && loop==pl.pos-1) ? "> " : " ";
+
+ fprintf(out, "%s%s\n", pre, pl.list[loop].url);
+ }
+}
+
+
+int add_copy_to_playlist(char* new_entry)
+{
+ char* cop;
+ if((cop = (char*) malloc(strlen(new_entry)+1)) != NULL)
+ {
+ strcpy(cop, new_entry);
+ return add_to_playlist(cop, 1);
+ }
+ else return 0;
+}
+
+/* add new entry to playlist - no string copy, just the pointer! */
+int add_to_playlist(char* new_entry, char freeit)
+{
+ if(pl.fill == pl.size)
+ {
+ struct listitem* tmp = NULL;
+ /* enlarge the list */
+ tmp = (struct listitem*) safe_realloc(pl.list, (pl.size + pl.alloc_step) * sizeof(struct listitem));
+ if(!tmp)
+ {
+ error("unable to allocate more memory for playlist");
+ perror("");
+ return 0;
+ }
+ else
+ {
+ pl.list = tmp;
+ pl.size += pl.alloc_step;
+ }
+ }
+ /* paranoid */
+ if(pl.fill < pl.size)
+ {
+ pl.list[pl.fill].freeit = freeit;
+ pl.list[pl.fill].url = new_entry;
+ pl.list[pl.fill].playcount = 0;
+ ++pl.fill;
+ }
+ else
+ {
+ error("playlist memory still too small?!");
+ return 0;
+ }
+ return 1;
+}
+
diff --git a/src/playlist.h b/src/playlist.h
new file mode 100644
index 0000000..c8bd6c0
--- /dev/null
+++ b/src/playlist.h
@@ -0,0 +1,49 @@
+/*
+ playlist: playlist logic
+
+ copyright 1995-2007 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp, outsourced/reorganized by Thomas Orgis
+*/
+#ifndef MPG123_PLAYLIST_H
+#define MPG123_PLAYLIST_H
+
+#include "mpg123app.h"
+
+enum playlist_type { UNKNOWN = 0, M3U, PLS, NO_LIST };
+
+typedef struct listitem
+{
+ char* url; /* the filename */
+ char freeit; /* if it was allocated and should be free()d here */
+ size_t playcount; /* has been played as ...th track in overall counting */
+} listitem;
+
+typedef struct playlist_struct
+{
+ FILE* file; /* the current playlist stream */
+ size_t entry; /* entry in the playlist file */
+ size_t playcount; /* overall track counter for playback */
+ long loop; /* repeat a track n times */
+ size_t size;
+ size_t fill;
+ size_t pos;
+ size_t alloc_step;
+ struct listitem* list;
+ mpg123_string linebuf;
+ mpg123_string dir;
+ enum playlist_type type;
+} playlist_struct;
+
+extern struct playlist_struct pl;
+
+/* create playlist form argv including reading of playlist file */
+void prepare_playlist(int argc, char** argv);
+/* returns the next url to play or NULL when there is none left */
+char *get_next_file();
+/* frees memory that got allocated in prepare_playlist */
+void free_playlist();
+/* Print out the playlist, with optional position indicator. */
+void print_playlist(FILE* out, int showpos);
+
+#endif
diff --git a/src/resolver.c b/src/resolver.c
new file mode 100644
index 0000000..fbed162
--- /dev/null
+++ b/src/resolver.c
@@ -0,0 +1,313 @@
+/*
+ resolver.c: TCP network stuff, for IPv4 and IPv6
+ Oh, and also some URL parsing... extracting host name and such.
+
+ copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written Thomas Orgis (based on httpget.c)
+
+ The idea is to have everything involving the game between URLs and IPs/connections separated here.
+ I begin with the outsourcing of IPv4 stuff, then make the stuff generic.
+*/
+
+#include "mpg123app.h"
+
+#ifdef NETWORK
+#include "true.h"
+#include "resolver.h"
+#include <netdb.h>
+#include <sys/param.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+#include <errno.h>
+#include <fcntl.h>
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+#include <unistd.h>
+#include "debug.h"
+
+int split_url(mpg123_string *url, mpg123_string *auth, mpg123_string *host, mpg123_string *port, mpg123_string *path)
+{
+ size_t pos = 0; /* current position in input URL */
+ size_t pos2 = 0; /* another position in input URL */
+ char *part = NULL; /* a part of url we work on */
+ int ret = TRUE; /* return code */
+ /* Zeroing the output strings; not freeing to avoid unnecessary mallocs. */
+ if(auth) auth->fill = 0;
+ if(host) host->fill = 0;
+ if(port) port->fill = 0;
+ if(path) path->fill = 0;
+
+ if(!url || !url->fill || url->p[url->fill-1] != 0)
+ {
+ error("URL string is not good! (Programmer's fault!?)");
+ return FALSE;
+ }
+ if (!(strncmp(url->p+pos, "http://", 7)))
+ pos += 7; /* Drop protocol. */
+
+ /* Extract user[:passwd]@... */
+ if( (part = strchr(url->p+pos,'@')) )
+ {
+ size_t i;
+ size_t partlen = part - url->p - pos;
+ int have_auth = TRUE;
+ /* User names or passwords don't have "/" in them (?), the "@" wasn't for real if we find such. */
+ for(i=0;i<partlen;i++)
+ {
+ if(url->p[pos+i] == '/' )
+ {
+ have_auth = FALSE;
+ break;
+ }
+ }
+ if(have_auth)
+ {
+ if(auth != NULL && !mpg123_set_substring(auth, url->p, pos, partlen))
+ {
+ error("Cannot set auth string (out of mem?).");
+ return FALSE;
+ }
+ pos += partlen+1; /* Continuing after the "@". */
+ }
+ }
+
+ /* Extract host name or IP. */
+#ifdef IPV6
+ if(url->p[pos] == '[')
+ { /* It's possibly an IPv6 url in [ ] */
+ ++pos;
+ if( (part = strchr(url->p+pos,']')) != NULL)
+ {
+ pos2 = part-url->p;
+ }
+ else { error("Malformed IPv6 URL!"); return FALSE; }
+ }
+ else
+#endif
+ for(pos2=pos; pos2 < url->fill-1; ++pos2)
+ {
+ char a = url->p[pos2];
+ if( a == ':' || a == '/') break;
+ }
+ /* At pos2 there is now either a delimiter or the end. */
+debug4("hostname between %lu and %lu, %lu chars of %s", (unsigned long)pos, (unsigned long)pos2, (unsigned long)(pos2-pos), url->p + pos);
+ if(host != NULL && !mpg123_set_substring(host, url->p, pos, pos2-pos))
+ {
+ error("Cannot set host string (out of mem?).");
+ return FALSE;
+ }
+ pos = pos2;
+
+ /* Now for the port... */
+ if(url->p[pos] == ':')
+ {
+ pos += 1; /* We begin _after_ the ":". */
+ for(pos2=pos; pos2 < url->fill-1; ++pos2)
+ if( url->p[pos2] == '/' ) break;
+
+ /* Check for port being numbers? Not sure if that's needed. */
+ if(port) ret = mpg123_set_substring(port, url->p, pos, pos2-pos);
+ pos = pos2;
+ }
+ else if(port) ret = mpg123_set_string(port, "80");
+
+ if(!ret)
+ {
+ error("Cannot set port string (out of mem?).");
+ return FALSE;
+ }
+
+ /* Now only the path is left. */
+ if(path) ret = mpg123_set_substring(path, url->p, pos, url->fill-1-pos);
+
+ if(!ret) error("Cannot set path string (out of mem?)");
+
+ return ret;
+}
+
+/* Switch between blocking and non-blocking mode. */
+static void nonblock(int sock)
+{
+ int flags = fcntl(sock, F_GETFL);
+ flags |= O_NONBLOCK;
+ fcntl(sock, F_SETFL, flags);
+}
+
+static void block(int sock)
+{
+ int flags = fcntl(sock, F_GETFL);
+ flags &= ~O_NONBLOCK;
+ fcntl(sock, F_SETFL, flags);
+}
+
+/* If we want a timeout, connect non-blocking and wait for that long... */
+static int timeout_connect(int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen)
+{
+ if(param.timeout > 0)
+ {
+ int err;
+ nonblock(sockfd);
+ err = connect(sockfd, serv_addr, addrlen);
+ if(err == 0)
+ {
+ debug("immediately successful");
+ block(sockfd);
+ return 0;
+ }
+ else if(errno == EINPROGRESS)
+ {
+ struct timeval tv;
+ fd_set fds;
+ tv.tv_sec = param.timeout;
+ tv.tv_usec = 0;
+
+ debug("in progress, waiting...");
+
+ FD_ZERO(&fds);
+ FD_SET(sockfd, &fds);
+ err = select(sockfd+1, NULL, &fds, NULL, &tv);
+ if(err > 0)
+ {
+ socklen_t len = sizeof(err);
+ if( (getsockopt(sockfd, SOL_SOCKET, SO_ERROR, &err, &len) == 0)
+ && (err == 0) )
+ {
+ debug("non-blocking connect has been successful");
+ block(sockfd);
+ return 0;
+ }
+ else
+ {
+ error1("connection error: %s", strerror(err));
+ return -1;
+ }
+ }
+ else if(err == 0)
+ {
+ error("connection timed out");
+ return -1;
+ }
+ else
+ {
+ error1("error from select(): %s", strerror(errno));
+ return -1;
+ }
+ }
+ else
+ {
+ error1("connection failed: %s", strerror(errno));
+ return err;
+ }
+ }
+ else
+ {
+ if(connect(sockfd, serv_addr, addrlen))
+ {
+ error1("connecton failed: %s", strerror(errno));
+ return -1;
+ }
+ else return 0; /* _good_ */
+ }
+}
+
+/* So, this then is the only routine that should know about IPv4 or v6 in future. */
+int open_connection(mpg123_string *host, mpg123_string *port)
+{
+#ifndef IPV6 /* The legacy code for IPv4. No real change to keep all compatibility. */
+#ifndef INADDR_NONE
+#define INADDR_NONE 0xffffffff
+#endif
+ struct sockaddr_in server;
+ struct hostent *myhostent;
+ struct in_addr myaddr;
+ int isip = 1;
+ char *cptr = host->p;
+ int sock = -1;
+ if(param.verbose>1) fprintf(stderr, "Note: Attempting old-style connection to %s\n", host->p);
+ /* Resolve to IP; parse port number. */
+ while(*cptr) /* Iterate over characters of hostname, check if it's an IP or name. */
+ {
+ if ((*cptr < '0' || *cptr > '9') && *cptr != '.')
+ {
+ isip = 0;
+ break;
+ }
+ cptr++;
+ }
+ if(!isip)
+ { /* Name lookup. */
+ if (!(myhostent = gethostbyname(host->p))) return -1;
+
+ memcpy (&myaddr, myhostent->h_addr, sizeof(myaddr));
+ server.sin_addr.s_addr = myaddr.s_addr;
+ }
+ else /* Just use the IP. */
+ if((server.sin_addr.s_addr = inet_addr(host->p)) == INADDR_NONE)
+ return -1;
+
+ server.sin_port = htons(atoi(port->p));
+ server.sin_family = AF_INET;
+
+ if((sock = socket(PF_INET, SOCK_STREAM, 6)) < 0)
+ {
+ error1("Cannot create socket: %s", strerror(errno));
+ return -1;
+ }
+ if(timeout_connect(sock, (struct sockaddr *)&server, sizeof(server)))
+ return -1;
+#else /* Host lookup and connection in a protocol independent manner. */
+ struct addrinfo hints;
+ struct addrinfo *addr, *addrlist;
+ int addrcount, sock = -1;
+
+ if(param.verbose>1) fprintf(stderr, "Note: Attempting new-style connection to %s\n", host->p);
+ memset(&hints, 0, sizeof(struct addrinfo));
+ hints.ai_family = AF_UNSPEC; /* We accept both IPv4 and IPv6 ... and perhaps IPv8;-) */
+ hints.ai_socktype = SOCK_STREAM;
+
+ addrcount = getaddrinfo(host->p, port->p, &hints, &addrlist);
+
+ if(addrcount <0)
+ {
+ error3("Resolving %s:%s: %s", host->p, port->p, gai_strerror(addrcount));
+ return -1;
+ }
+
+ addr = addrlist;
+ while(addr != NULL)
+ {
+ sock = socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
+ if(sock >= 0)
+ {
+ if(timeout_connect(sock, addr->ai_addr, addr->ai_addrlen) == 0)
+ break;
+
+ close(sock);
+ sock=-1;
+ }
+ addr=addr->ai_next;
+ }
+ if(sock < 0) error2("Cannot resolve/connect to %s:%s!", host->p, port->p);
+
+ freeaddrinfo(addrlist);
+#endif
+ return sock; /* Hopefully, that's an open socket to talk with. */
+}
+
+#else /* NETWORK */
+
+void resolver_dummy_without_sense()
+{
+ /* Some compilers don't like empty source files. */
+}
+
+#endif
diff --git a/src/resolver.h b/src/resolver.h
new file mode 100644
index 0000000..04bed0e
--- /dev/null
+++ b/src/resolver.h
@@ -0,0 +1,25 @@
+/*
+ resolver.c: TCP network stuff, for IPv4 and IPv6
+
+ copyright 2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written Thomas Orgis (based on httpget.c)
+*/
+
+#ifndef MPG123_RESOLVER_H
+#define MPG123_RESOLVER_H
+
+#include "mpg123app.h"
+/*
+ Split an URL into parts of user:password, hostname, port, path on host.
+ There is no name resolution going on here, also no numeric conversion.
+ Return code 1 (TRUE) is fine, 0 (FALSE) is bad.
+*/
+int split_url(mpg123_string *url, mpg123_string *auth, mpg123_string *host, mpg123_string *port, mpg123_string *path);
+/*
+ Open a connection to specified server and port.
+ The arguments are plain strings (hostname or IP, port number as string); any network specific data types are hidden.
+*/
+int open_connection(mpg123_string *host, mpg123_string *port);
+
+#endif
diff --git a/src/sfifo.c b/src/sfifo.c
new file mode 100644
index 0000000..2a31ffe
--- /dev/null
+++ b/src/sfifo.c
@@ -0,0 +1,146 @@
+/*
+ SFIFO 1.3 Simple portable lock-free FIFO
+
+ (c) 2000-2002, David Olofson - free software under the terms of the LGPL 2.1
+*/
+
+
+/*
+-----------------------------------------------------------
+TODO:
+ * Is there a way to avoid losing one byte of buffer
+ space to avoid extra variables or locking?
+
+ * Test more compilers and environments.
+-----------------------------------------------------------
+ */
+
+#include <string.h>
+#include <stdlib.h>
+
+#include "sfifo.h"
+#include "debug.h"
+
+/*
+ * Alloc buffer, init FIFO etc...
+ */
+SFIFO_SCOPE int sfifo_init(sfifo_t *f, int size)
+{
+ memset(f, 0, sizeof(sfifo_t));
+
+ if(size > SFIFO_MAX_BUFFER_SIZE)
+ return -EINVAL;
+
+ /*
+ * Set sufficient power-of-2 size.
+ *
+ * No, there's no bug. If you need
+ * room for N bytes, the buffer must
+ * be at least N+1 bytes. (The fifo
+ * can't tell 'empty' from 'full'
+ * without unsafe index manipulations
+ * otherwise.)
+ */
+ f->size = 1;
+ for(; f->size <= size; f->size <<= 1)
+ ;
+
+ /* Get buffer */
+ if( 0 == (f->buffer = (void *)malloc(f->size)) )
+ return -ENOMEM;
+
+ return 0;
+}
+
+/*
+ * Dealloc buffer etc...
+ */
+SFIFO_SCOPE void sfifo_close(sfifo_t *f)
+{
+ if(f->buffer) {
+ free(f->buffer);
+ f->buffer = NULL; /* Prevent double free */
+ }
+}
+
+/*
+ * Empty FIFO buffer
+ */
+SFIFO_SCOPE void sfifo_flush(sfifo_t *f)
+{
+ /* Reset positions */
+ f->readpos = 0;
+ f->writepos = 0;
+}
+
+/*
+ * Write bytes to a FIFO
+ * Return number of bytes written, or an error code
+ */
+SFIFO_SCOPE int sfifo_write(sfifo_t *f, const void *_buf, int len)
+{
+ int total;
+ int i;
+ const char *buf = (const char *)_buf;
+
+ if(!f->buffer)
+ return -ENODEV; /* No buffer! */
+
+ /* total = len = min(space, len) */
+ total = sfifo_space(f);
+ debug1("sfifo_space() = %d",total);
+ if(len > total)
+ len = total;
+ else
+ total = len;
+
+ i = f->writepos;
+ if(i + len > f->size)
+ {
+ memcpy(f->buffer + i, buf, f->size - i);
+ buf += f->size - i;
+ len -= f->size - i;
+ i = 0;
+ }
+ memcpy(f->buffer + i, buf, len);
+ f->writepos = i + len;
+
+ return total;
+}
+
+
+/*
+ * Read bytes from a FIFO
+ * Return number of bytes read, or an error code
+ */
+SFIFO_SCOPE int sfifo_read(sfifo_t *f, void *_buf, int len)
+{
+ int total;
+ int i;
+ char *buf = (char *)_buf;
+
+ if(!f->buffer)
+ return -ENODEV; /* No buffer! */
+
+ /* total = len = min(used, len) */
+ total = sfifo_used(f);
+ debug1("sfifo_used() = %d",total);
+ if(len > total)
+ len = total;
+ else
+ total = len;
+
+ i = f->readpos;
+ if(i + len > f->size)
+ {
+ memcpy(buf, f->buffer + i, f->size - i);
+ buf += f->size - i;
+ len -= f->size - i;
+ i = 0;
+ }
+ memcpy(buf, f->buffer + i, len);
+ f->readpos = i + len;
+
+ return total;
+}
+
diff --git a/src/sfifo.h b/src/sfifo.h
new file mode 100644
index 0000000..14957a4
--- /dev/null
+++ b/src/sfifo.h
@@ -0,0 +1,95 @@
+/*
+ SFIFO 1.3 Simple portable lock-free FIFO
+
+ (c) 2000-2002, David Olofson - free software under the terms of the LGPL 2.1
+*/
+
+
+/*
+ * Platform support:
+ * gcc / Linux / x86: Works
+ * gcc / Linux / x86 kernel: Works
+ * gcc / FreeBSD / x86: Works
+ * gcc / NetBSD / x86: Works
+ * gcc / Mac OS X / PPC: Works
+ * gcc / Win32 / x86: Works
+ * Borland C++ / DOS / x86RM: Works
+ * Borland C++ / Win32 / x86PM16: Untested
+ * ? / Various Un*ces / ?: Untested
+ * ? / Mac OS / PPC: Untested
+ * gcc / BeOS / x86: Untested
+ * gcc / BeOS / PPC: Untested
+ * ? / ? / Alpha: Untested
+ *
+ * 1.2: Max buffer size halved, to avoid problems with
+ * the sign bit...
+ *
+ * 1.3: Critical buffer allocation bug fixed! For certain
+ * requested buffer sizes, older version would
+ * allocate a buffer of insufficient size, which
+ * would result in memory thrashing. (Amazing that
+ * I've manage to use this to the extent I have
+ * without running into this... *heh*)
+ */
+
+#ifndef _SFIFO_H_
+#define _SFIFO_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <errno.h>
+
+/* Defining SFIFO_STATIC and then including the sfifo.c will result in local code. */
+#ifdef SFIFO_STATIC
+#define SFIFO_SCOPE static
+#else
+#define SFIFO_SCOPE
+#endif
+
+/*------------------------------------------------
+ "Private" stuff
+------------------------------------------------*/
+/*
+ * Porting note:
+ * Reads and writes of a variable of this type in memory
+ * must be *atomic*! 'int' is *not* atomic on all platforms.
+ * A safe type should be used, and sfifo should limit the
+ * maximum buffer size accordingly.
+ */
+typedef int sfifo_atomic_t;
+#ifdef __TURBOC__
+# define SFIFO_MAX_BUFFER_SIZE 0x7fff
+#else /* Kludge: Assume 32 bit platform */
+# define SFIFO_MAX_BUFFER_SIZE 0x7fffffff
+#endif
+
+typedef struct sfifo_t
+{
+ char *buffer;
+ int size; /* Number of bytes */
+ sfifo_atomic_t readpos; /* Read position */
+ sfifo_atomic_t writepos; /* Write position */
+} sfifo_t;
+
+#define SFIFO_SIZEMASK(x) ((x)->size - 1)
+
+
+/*------------------------------------------------
+ API
+------------------------------------------------*/
+SFIFO_SCOPE int sfifo_init(sfifo_t *f, int size);
+SFIFO_SCOPE void sfifo_close(sfifo_t *f);
+SFIFO_SCOPE void sfifo_flush(sfifo_t *f);
+SFIFO_SCOPE int sfifo_write(sfifo_t *f, const void *buf, int len);
+SFIFO_SCOPE int sfifo_read(sfifo_t *f, void *buf, int len);
+#define sfifo_used(x) (((x)->writepos - (x)->readpos) & SFIFO_SIZEMASK(x))
+#define sfifo_space(x) ((x)->size - 1 - sfifo_used(x))
+#define sfifo_size(x) ((x)->size - 1)
+
+
+#ifdef __cplusplus
+};
+#endif
+#endif
diff --git a/src/term.c b/src/term.c
new file mode 100644
index 0000000..c79b2c2
--- /dev/null
+++ b/src/term.c
@@ -0,0 +1,463 @@
+/*
+ term: terminal control
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#include "mpg123app.h"
+
+#ifdef HAVE_TERMIOS
+
+#include <termios.h>
+#include <ctype.h>
+
+#include "buffer.h"
+#include "term.h"
+#include "common.h"
+#include "playlist.h"
+#include "metaprint.h"
+#include "debug.h"
+
+extern int buffer_pid;
+extern audio_output_t *ao;
+
+static int term_enable = 0;
+static struct termios old_tio;
+int seeking = FALSE;
+
+/* Hm, next step would be some system in this, plus configurability...
+ Two keys for everything? It's just stop/pause for now... */
+struct keydef { const char key; const char key2; const char* desc; };
+struct keydef term_help[] =
+{
+ { STOP_KEY, ' ', "interrupt/restart playback (i.e. '(un)pause')" }
+ ,{ NEXT_KEY, 0, "next track" }
+ ,{ PREV_KEY, 0, "previous track" }
+ ,{ BACK_KEY, 0, "back to beginning of track" }
+ ,{ PAUSE_KEY, 0, "loop around current position (like a damaged audio CD;-)" }
+ ,{ FORWARD_KEY, 0, "forward" }
+ ,{ REWIND_KEY, 0, "rewind" }
+ ,{ FAST_FORWARD_KEY, 0, "fast forward" }
+ ,{ FAST_REWIND_KEY, 0, "fast rewind" }
+ ,{ FINE_FORWARD_KEY, 0, "fine forward" }
+ ,{ FINE_REWIND_KEY, 0, "fine rewind" }
+ ,{ VOL_UP_KEY, 0, "volume up" }
+ ,{ VOL_DOWN_KEY, 0, "volume down" }
+ ,{ RVA_KEY, 0, "RVA switch" }
+ ,{ VERBOSE_KEY, 0, "verbose switch" }
+ ,{ PLAYLIST_KEY, 0, "list current playlist, indicating current track there" }
+ ,{ TAG_KEY, 0, "display tag info (again)" }
+ ,{ MPEG_KEY, 0, "print MPEG header info (again)" }
+ ,{ HELP_KEY, 0, "this help" }
+ ,{ QUIT_KEY, 0, "quit" }
+ ,{ PITCH_UP_KEY, PITCH_BUP_KEY, "pitch up (small step, big step)" }
+ ,{ PITCH_DOWN_KEY, PITCH_BDOWN_KEY, "pitch down (small step, big step)" }
+ ,{ PITCH_ZERO_KEY, 0, "reset pitch to zero" }
+};
+
+void term_sigcont(int sig);
+
+/* This must call only functions safe inside a signal handler. */
+int term_setup(struct termios *pattern)
+{
+ struct termios tio = *pattern;
+
+ signal(SIGCONT, term_sigcont);
+
+ tio.c_lflag &= ~(ICANON|ECHO);
+ tio.c_cc[VMIN] = 1;
+ tio.c_cc[VTIME] = 0;
+ return tcsetattr(0,TCSANOW,&tio);
+}
+
+void term_sigcont(int sig)
+{
+ term_enable = 0;
+
+ if (term_setup(&old_tio) < 0) {
+ fprintf(stderr,"Can't set terminal attributes\n");
+ return;
+ }
+
+ term_enable = 1;
+}
+
+/* initialze terminal */
+void term_init(void)
+{
+ debug("term_init");
+
+ term_enable = 0;
+
+ if(tcgetattr(0,&old_tio) < 0) {
+ fprintf(stderr,"Can't get terminal attributes\n");
+ return;
+ }
+ if(term_setup(&old_tio) < 0) {
+ fprintf(stderr,"Can't set terminal attributes\n");
+ return;
+ }
+
+ term_enable = 1;
+}
+
+static void term_handle_input(mpg123_handle *, audio_output_t *, int);
+
+static int stopped = 0;
+static int paused = 0;
+static int pause_cycle;
+
+static int print_index(mpg123_handle *mh)
+{
+ int err;
+ size_t c, fill;
+ off_t *index;
+ off_t step;
+ err = mpg123_index(mh, &index, &step, &fill);
+ if(err == MPG123_ERR)
+ {
+ fprintf(stderr, "Error accessing frame index: %s\n", mpg123_strerror(mh));
+ return err;
+ }
+ for(c=0; c < fill;++c)
+ fprintf(stderr, "[%lu] %lu: %li (+%li)\n",
+ (unsigned long) c,
+ (unsigned long) (c*step),
+ (long) index[c],
+ (long) (c ? index[c]-index[c-1] : 0));
+ return MPG123_OK;
+}
+
+static off_t offset = 0;
+
+/* Go back to the start for the cyclic pausing. */
+void pause_recycle(mpg123_handle *fr)
+{
+ /* Take care not to go backwards in time in steps of 1 frame
+ That is what the +1 is for. */
+ pause_cycle=(int)(LOOP_CYCLES/mpg123_tpf(fr));
+ offset-=pause_cycle;
+}
+
+/* Done with pausing, no offset anymore. Just continuous playback from now. */
+void pause_uncycle(void)
+{
+ offset += pause_cycle;
+}
+
+off_t term_control(mpg123_handle *fr, audio_output_t *ao)
+{
+ offset = 0;
+debug1("control for frame: %li", (long)mpg123_tellframe(fr));
+ if(!term_enable) return 0;
+
+ if(paused)
+ {
+ /* pause_cycle counts the remaining frames _after_ this one, thus <0, not ==0 . */
+ if(--pause_cycle < 0)
+ {
+ pause_recycle(fr);
+ if(param.usebuffer)
+ {
+ while(paused && xfermem_get_usedspace(buffermem))
+ {
+ buffer_ignore_lowmem();
+ term_handle_input(fr, ao, TRUE);
+ }
+ /* Undo the cycling offset if we are done with cycling. */
+ if(!paused) pause_uncycle();
+ }
+ }
+ }
+
+ do
+ {
+ term_handle_input(fr, ao, stopped|seeking);
+ if((offset < 0) && (-offset > framenum)) offset = - framenum;
+ if(param.verbose && offset != 0)
+ print_stat(fr,offset,0);
+ } while (stopped);
+
+ /* Make the seeking experience with buffer less annoying.
+ No sound during seek, but at least it is possible to go backwards. */
+ if(offset)
+ {
+ if((offset = mpg123_seek_frame(fr, offset, SEEK_CUR)) >= 0)
+ debug1("seeked to %li", (long)offset);
+ else error1("seek failed: %s!", mpg123_strerror(fr));
+ /* Buffer resync already happened on un-stop? */
+ /* if(param.usebuffer) buffer_resync();*/
+ }
+ return 0;
+}
+
+/* Stop playback while seeking if buffer is involved. */
+static void seekmode(void)
+{
+ if(param.usebuffer && !stopped)
+ {
+ stopped = TRUE;
+ buffer_stop();
+ fprintf(stderr, "%s", STOPPED_STRING);
+ }
+}
+
+static void term_handle_input(mpg123_handle *fr, audio_output_t *ao, int do_delay)
+{
+ int n = 1;
+ /* long offset = 0; */
+
+ while(n > 0) {
+ fd_set r;
+ struct timeval t;
+ char val;
+
+ t.tv_sec=0;
+ t.tv_usec=(do_delay) ? 10*1000 : 0;
+
+ FD_ZERO(&r);
+ FD_SET(0,&r);
+ n = select(1,&r,NULL,NULL,&t);
+ if(n > 0 && FD_ISSET(0,&r)) {
+ if(read(0,&val,1) <= 0)
+ break;
+
+ switch(tolower(val)) {
+ case BACK_KEY:
+ if(!param.usebuffer) ao->flush(ao);
+ else buffer_resync();
+ if(paused) pause_cycle=(int)(LOOP_CYCLES/mpg123_tpf(fr));
+
+ if(mpg123_seek_frame(fr, 0, SEEK_SET) < 0)
+ error1("Seek to begin failed: %s", mpg123_strerror(fr));
+
+ framenum=0;
+ break;
+ case NEXT_KEY:
+ if(!param.usebuffer) ao->flush(ao);
+ else buffer_resync(); /* was: plain_buffer_resync */
+ next_track();
+ break;
+ case QUIT_KEY:
+ debug("QUIT");
+ if(stopped)
+ {
+ stopped = 0;
+ if(param.usebuffer)
+ {
+ buffer_resync();
+ buffer_start();
+ }
+ }
+ set_intflag();
+ offset = 0;
+ break;
+ case PAUSE_KEY:
+ paused=1-paused;
+ if(paused) {
+ /* Not really sure if that is what is wanted
+ This jumps in audio output, but has direct reaction to pausing loop. */
+ if(param.usebuffer) buffer_resync();
+
+ pause_recycle(fr);
+ }
+ if(stopped)
+ {
+ stopped=0;
+ if(param.usebuffer) buffer_start();
+ }
+ fprintf(stderr, "%s", (paused) ? PAUSED_STRING : EMPTY_STRING);
+ break;
+ case STOP_KEY:
+ case ' ':
+ /* when seeking while stopped and then resuming, I want to prevent the chirp from the past */
+ if(!param.usebuffer) ao->flush(ao);
+ stopped=1-stopped;
+ if(paused) {
+ paused=0;
+ offset -= pause_cycle;
+ }
+ if(param.usebuffer)
+ {
+ if(stopped) buffer_stop();
+ else
+ {
+ /* When we stopped buffer for seeking, we must resync. */
+ if(offset) buffer_resync();
+
+ buffer_start();
+ }
+ }
+ fprintf(stderr, "%s", (stopped) ? STOPPED_STRING : EMPTY_STRING);
+ break;
+ case FINE_REWIND_KEY:
+ if(param.usebuffer) seekmode();
+ offset--;
+ break;
+ case FINE_FORWARD_KEY:
+ seekmode();
+ offset++;
+ break;
+ case REWIND_KEY:
+ seekmode();
+ offset-=10;
+ break;
+ case FORWARD_KEY:
+ seekmode();
+ offset+=10;
+ break;
+ case FAST_REWIND_KEY:
+ seekmode();
+ offset-=50;
+ break;
+ case FAST_FORWARD_KEY:
+ seekmode();
+ offset+=50;
+ break;
+ case VOL_UP_KEY:
+ mpg123_volume_change(fr, 0.02);
+ break;
+ case VOL_DOWN_KEY:
+ mpg123_volume_change(fr, -0.02);
+ break;
+ case PITCH_UP_KEY:
+ case PITCH_BUP_KEY:
+ case PITCH_DOWN_KEY:
+ case PITCH_BDOWN_KEY:
+ case PITCH_ZERO_KEY:
+ {
+ double old_pitch = param.pitch;
+ long rate;
+ int channels, format;
+ int smode = 0;
+ if(param.usebuffer)
+ {
+ error("No runtime pitch change with output buffer, sorry.");
+ break;
+ }
+ switch(val) /* Not tolower here! */
+ {
+ case PITCH_UP_KEY: param.pitch += PITCH_VAL; break;
+ case PITCH_BUP_KEY: param.pitch += PITCH_BVAL; break;
+ case PITCH_DOWN_KEY: param.pitch -= PITCH_VAL; break;
+ case PITCH_BDOWN_KEY: param.pitch -= PITCH_BVAL; break;
+ case PITCH_ZERO_KEY: param.pitch = 0.0; break;
+ }
+ if(param.pitch < -0.99) param.pitch = -0.99;
+ /* Be safe, check support. */
+ mpg123_getformat(fr, &rate, &channels, &format);
+ if(channels == 1) smode = MPG123_MONO;
+ if(channels == 2) smode = MPG123_STEREO;
+
+ output_pause(ao);
+ audio_capabilities(ao, fr);
+ if(!(mpg123_format_support(fr, rate, format) & smode))
+ {
+ /* Note: When using --pitch command line parameter, you can go higher
+ because a lower decoder sample rate is automagically chosen.
+ Here, we'd need to switch decoder rate during track... good? */
+ error("Reached a hardware limit there with pitch!");
+ param.pitch = old_pitch;
+ audio_capabilities(ao, fr);
+ }
+ ao->format = format;
+ ao->channels = channels;
+ ao->rate = pitch_rate(rate);
+ reset_output(ao);
+ output_unpause(ao);
+ fprintf(stderr, "New pitch: %f\n", param.pitch);
+ }
+ break;
+ case VERBOSE_KEY:
+ param.verbose++;
+ if(param.verbose > VERBOSE_MAX)
+ {
+ param.verbose = 0;
+ clear_stat();
+ }
+ mpg123_param(fr, MPG123_VERBOSE, param.verbose, 0);
+ break;
+ case RVA_KEY:
+ if(++param.rva > MPG123_RVA_MAX) param.rva = 0;
+ mpg123_param(fr, MPG123_RVA, param.rva, 0);
+ mpg123_volume_change(fr, 0.);
+ break;
+ case PREV_KEY:
+ if(!param.usebuffer) ao->flush(ao);
+ else buffer_resync(); /* was: plain_buffer_resync */
+
+ prev_track();
+ break;
+ case PLAYLIST_KEY:
+ fprintf(stderr, "%s\nPlaylist (\">\" indicates current track):\n", param.verbose ? "\n" : "");
+ print_playlist(stderr, 1);
+ fprintf(stderr, "\n");
+ break;
+ case TAG_KEY:
+ fprintf(stderr, "%s\n", param.verbose ? "\n" : "");
+ print_id3_tag(fr, param.long_id3, stderr);
+ fprintf(stderr, "\n");
+ break;
+ case MPEG_KEY:
+ if(param.verbose) print_stat(fr,0,0); /* Make sure that we are talking about the correct frame. */
+ fprintf(stderr, "\n");
+ print_header(fr);
+ fprintf(stderr, "\n");
+ break;
+ case HELP_KEY:
+ { /* This is more than the one-liner before, but it's less spaghetti. */
+ int i;
+ fprintf(stderr,"\n\n -= terminal control keys =-\n");
+ for(i=0; i<(sizeof(term_help)/sizeof(struct keydef)); ++i)
+ {
+ if(term_help[i].key2) fprintf(stderr, "[%c] or [%c]", term_help[i].key, term_help[i].key2);
+ else fprintf(stderr, "[%c]", term_help[i].key);
+
+ fprintf(stderr, "\t%s\n", term_help[i].desc);
+ }
+ fprintf(stderr, "\n");
+ }
+ break;
+ case FRAME_INDEX_KEY:
+ case VARIOUS_INFO_KEY:
+ if(param.verbose) fprintf(stderr, "\n");
+ switch(val) /* because of tolower() ... */
+ {
+ case FRAME_INDEX_KEY:
+ print_index(fr);
+ {
+ long accurate;
+ if(mpg123_getstate(fr, MPG123_ACCURATE, &accurate, NULL) == MPG123_OK)
+ fprintf(stderr, "Accurate position: %s\n", (accurate == 0 ? "no" : "yes"));
+ else
+ error1("Unable to get state: %s", mpg123_strerror(fr));
+ }
+ break;
+ case VARIOUS_INFO_KEY:
+ {
+ const char* curdec = mpg123_current_decoder(fr);
+ if(curdec == NULL) fprintf(stderr, "Cannot get decoder info!\n");
+ else fprintf(stderr, "Active decoder: %s\n", curdec);
+ }
+ }
+ break;
+ default:
+ ;
+ }
+ }
+ }
+}
+
+void term_restore(void)
+{
+
+ if(!term_enable)
+ return;
+
+ tcsetattr(0,TCSAFLUSH,&old_tio);
+}
+
+#endif
+
diff --git a/src/term.h b/src/term.h
new file mode 100644
index 0000000..3513f80
--- /dev/null
+++ b/src/term.h
@@ -0,0 +1,76 @@
+/*
+ term: terminal control
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Michael Hipp
+*/
+
+#ifndef _MPG123_TERM_H_
+#define _MPG123_TERM_H_
+
+#include "mpg123app.h"
+
+#ifdef HAVE_TERMIOS
+
+#define LOOP_CYCLES 0.500000 /* Loop time in sec */
+
+/*
+ * Defines the keybindings in term.c - change to your
+ * own preferences.
+ */
+
+#define HELP_KEY 'h'
+#define BACK_KEY 'b'
+#define NEXT_KEY 'f'
+#define PAUSE_KEY 'p'
+#define QUIT_KEY 'q'
+/* space bar is alias for that */
+#define STOP_KEY 's'
+#define REWIND_KEY ','
+#define FORWARD_KEY '.'
+/* This is convenient on QWERTZ-keyboards. */
+#define FAST_REWIND_KEY ';'
+#define FAST_FORWARD_KEY ':'
+#define FINE_REWIND_KEY '<'
+#define FINE_FORWARD_KEY '>'
+/* You probably want to use the following bindings instead
+ * on a standard QWERTY-keyboard:
+ */
+
+/* #define FAST_REWIND_KEY '<' */
+/* #define FAST_FORWARD_KEY '>' */
+/* #define FINE_REWIND_KEY ';' */
+/* #define FINE_FORWARD_KEY ':' */
+
+#define VOL_UP_KEY '+'
+#define VOL_DOWN_KEY '-'
+#define VERBOSE_KEY 'v'
+#define RVA_KEY 'r'
+#define PLAYLIST_KEY 'l'
+#define PREV_KEY 'd'
+#define MPEG_KEY 'm'
+#define TAG_KEY 't'
+#define PITCH_UP_KEY 'c'
+#define PITCH_BUP_KEY 'C'
+#define PITCH_DOWN_KEY 'x'
+#define PITCH_BDOWN_KEY 'X'
+#define PITCH_ZERO_KEY 'w'
+/* This counts as "undocumented" and can disappear */
+#define FRAME_INDEX_KEY 'i'
+#define VARIOUS_INFO_KEY 'I'
+/* The normal and big pitch adjustment done on key presses. */
+#define PITCH_VAL 0.001
+#define PITCH_BVAL 0.01
+
+#define PAUSED_STRING "Paused. \b\b\b\b\b\b\b\b"
+#define STOPPED_STRING "Stopped.\b\b\b\b\b\b\b\b"
+#define EMPTY_STRING " \b\b\b\b\b\b\b\b"
+
+void term_init(void);
+off_t term_control(mpg123_handle *mh, audio_output_t *ao);
+void term_restore(void);
+
+#endif
+
+#endif
diff --git a/src/tests/seek_accuracy.c b/src/tests/seek_accuracy.c
new file mode 100644
index 0000000..f524967
--- /dev/null
+++ b/src/tests/seek_accuracy.c
@@ -0,0 +1,254 @@
+/*
+ seek-accuracy: Take some given mpeg file and validate that seeks are indeed accurate.
+
+ copyright 2009 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Thomas Orgis
+
+ arguments: decoder testfile.mpeg
+*/
+
+#include <mpg123.h>
+#include <compat.h>
+
+#define SAMPLES 1000
+/* Cannot use the const value as fixed array size:-( */
+const size_t samples = SAMPLES;
+
+/* Use getlopt.c in future? But heck, don't bloat. */
+enum theargs
+{
+ arg_binname = 0
+ ,arg_decoder
+ ,arg_preframes
+ ,arg_file
+ ,arg_total
+};
+
+const char* filename;
+int channels;
+mpg123_handle *m;
+size_t first_sample_errs = 0;
+
+
+int check_seeking(size_t *errs);
+
+int main(int argc, char **argv)
+{
+ int ret = 0;
+ size_t errs[2] = {0, 0};
+ size_t errs_ntom[2] = {0, 0};
+
+ if(argc < arg_total)
+ {
+ fprintf(stderr, "\nUsage: %s <decoder> <preframes> <mpeg audio file>\n\n", argv[0]);
+ return -1;
+ }
+ mpg123_init();
+ m = mpg123_new(argv[arg_decoder], NULL);
+ mpg123_param(m, MPG123_RESYNC_LIMIT, -1, 0);
+
+ if(mpg123_param(m, MPG123_PREFRAMES, atol(argv[arg_preframes]), 0) == MPG123_OK)
+ printf("Testing library with preframes set to %li\n", atol(argv[arg_preframes]));
+
+ filename = argv[arg_file];
+ ret = check_seeking(errs);
+
+ if(ret == 0)
+ {
+ printf("Now with NtoM resampling to 33333 Hz!");
+ mpg123_param(m, MPG123_FORCE_RATE, 33333, 0);
+ ret = check_seeking(errs_ntom);
+ }
+ else fprintf(stderr, "Some failure occured! Unable to test properly!");
+
+ printf("\n");
+ printf("1to1 indexed seek errors: %"SIZE_P" / %"SIZE_P"\n", (size_p)errs[0],(size_p)samples);
+ printf("1to1 non-indexed seek errors: %"SIZE_P" / %"SIZE_P"\n", (size_p)errs[1],(size_p)samples);
+ printf("NtoM indexed seek errors: %"SIZE_P" / %"SIZE_P"\n", (size_p)errs_ntom[0],(size_p)samples);
+ printf("NtoM non-indexed seek errors: %"SIZE_P" / %"SIZE_P"\n", (size_p)errs_ntom[1],(size_p)samples);
+ printf("Errors in getting first sample again: %"SIZE_P"\n", first_sample_errs);
+ printf("\n");
+
+ if(ret == 0)
+ {
+
+ if(first_sample_errs == 0 && errs[0] == 0 && errs[1] == 0 && errs_ntom[0] == 0 && errs_ntom[1] == 0)
+ {
+ printf("Congratulations, all seeks were accurate!\n");
+ printf("But be warned: Not _all_ sample offsets have been tested. This result just means that the basic mechanism of sample-accurate seeking seems to work.\n");
+ }
+ else
+ {
+ printf("There have been some errors. For layer 3 files, this may be due to too low MPG123_PREFRAMES.\n");
+ ret = -1;
+ }
+
+ }
+ else fprintf(stderr, "Some bad failure during checking!\n");
+
+ mpg123_delete(m);
+ mpg123_exit();
+
+ return ret;
+}
+
+int open_file()
+{
+ if( mpg123_open(m, filename) == MPG123_OK
+ &&
+ mpg123_getformat(m, NULL, &channels, NULL) == MPG123_OK )
+ {
+ printf("Channels: %i\n", channels);
+ return 0;
+ }
+ else
+ {
+ printf("Opening file failed: %s\n", mpg123_strerror(m));
+ return -1;
+ }
+}
+
+/* Operation:
+ Read through the whole file and remember selected samples and their position.
+ Then, seek to the positions selectively and compare.
+ Second mode: Check if this is identical to fresh decoding and seek (without frame index table)... less important now, focusing on the first one.
+*/
+
+struct seeko
+{
+ off_t position[SAMPLES];
+ short left[SAMPLES];
+ short right[SAMPLES];
+};
+
+/* select some positions to check seek accuracy on */
+void fix_positions(struct seeko *so, off_t length)
+{
+ off_t step = (length-1)/(samples-1);
+ size_t i;
+ /* simple fixed stepping, in order (one could shuffle this) */
+ for(i=0; i<samples-1; ++i)
+ so->position[i] = i*step;
+
+ /* plus the last one! */
+ so->position[samples-1] = length-1;
+}
+
+int collect(struct seeko *so)
+{
+ off_t pos_count = 0;
+ off_t length;
+ int err = MPG123_OK;
+ size_t posi = 0;
+ mpg123_scan(m);
+ length = mpg123_length(m);
+ printf("Estimated length: %"OFF_P"\n", (off_p)length);
+ /* Compute the interesting positions */
+ fix_positions(so, length);
+ /*
+ Default format is always 16bit int, rate does not matter.
+ Let's just get the channel count and not bother.
+ */
+ while(err == MPG123_OK)
+ {
+ short buff[1024]; /* choosing a non-divider of mpeg frame size on purpose */
+ size_t got = 0;
+ off_t buffsamples;
+ err = mpg123_read(m, (unsigned char*)buff, 1024*sizeof(short), &got);
+ buffsamples = got/(channels*sizeof(short));
+ while(so->position[posi] < pos_count+buffsamples)
+ {
+ size_t i = (so->position[posi]-pos_count)*channels;
+ printf("got sample %"SIZE_P" (%"OFF_P")\n", (size_p)posi, (off_p)so->position[posi]);
+ so->left[posi] = buff[i];
+ if(channels == 2)
+ so->right[posi] = buff[i+1];
+
+ if(++posi >= samples) break;
+ }
+ if(posi >= samples) break;
+
+ pos_count += buffsamples;
+ }
+ if(err != MPG123_DONE && err != MPG123_OK)
+ {
+ printf("An error occured (not done)?: %s\n", mpg123_strerror(m));
+ return -1;
+ }
+ return 0;
+}
+
+int check_sample(struct seeko *so, size_t i)
+{
+ short buf[2]; /* at max one left and right sample */
+ size_t got = 0;
+
+ if(mpg123_seek(m, so->position[i], SEEK_SET) != so->position[i])
+ {
+ printf("Error seeking to %"OFF_P": %s\n", (off_p)so->position[i], mpg123_strerror(m));
+ return -1;
+ }
+
+ if( mpg123_read(m, (unsigned char*)buf, channels*sizeof(short), &got) != MPG123_OK
+ ||
+ got/sizeof(short) != channels )
+ {
+ printf("Error occured on reading sample %"SIZE_P"! (%s)\n", (size_p)i, mpg123_strerror(m));
+ return -1;
+ }
+ if(buf[0] == so->left[i] && (channels == 1 || buf[1] == so->right[i]))
+ {
+ printf("sample %"SIZE_P" PASS\n", (size_p)i);
+ }
+ else
+ {
+ printf("sample %"SIZE_P" FAIL\n", (size_p)i);
+ return -1;
+ }
+ return 0;
+}
+
+size_t check_positions(struct seeko *so)
+{
+ size_t i;
+ size_t errs = 0;
+ printf("Seeking and comparing...\n");
+ for(i=0; i<samples; ++i)
+ {
+ if(check_sample(so, i) != 0)
+ ++errs;
+ }
+ printf("Check the first one again, seeking back from the end.\n");
+ if(check_sample(so, 0) != 0)
+ ++first_sample_errs;
+
+ return errs;
+}
+
+int check_seeking(size_t *errs)
+{
+ struct seeko so;
+ int ret = 0;
+
+ /* First opening. */
+ if(open_file() != 0) return -1;
+
+ printf("Collecting samples...\n");
+ ret = collect(&so);
+ if(ret != 0) return ret;
+
+ errs[0] = check_positions(&so);
+
+ printf("With fresh opening (empty seek index):\n");
+ if(open_file() != 0) return -1;
+
+ errs[1] = check_positions(&so);
+
+ printf("Another fresh Opening to see if first sample works:\n");
+ if(open_file() != 0) return -1;
+ if(check_sample(&so, 0) != 0)
+ ++first_sample_errs;
+
+ return ret;
+}
diff --git a/src/wav.c b/src/wav.c
new file mode 100644
index 0000000..c1ec58e
--- /dev/null
+++ b/src/wav.c
@@ -0,0 +1,404 @@
+/*
+ wav.c: write wav files
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Samuel Audet
+
+ Geez, why are WAV RIFF headers are so secret? I got something together,
+ but wow... anyway, I hope someone will find this useful.
+ - Samuel Audet
+
+ minor simplifications and ugly AU/CDR format stuff by MH
+
+ It's not a very clean code ... Fix this!
+*/
+
+#include "mpg123app.h"
+#include <errno.h>
+#include "debug.h"
+
+/* Create the two WAV headers. */
+
+#define WAVE_FORMAT 1
+#define RIFF_NAME RIFF
+#include "wavhead.h"
+
+#undef WAVE_FORMAT
+#undef RIFF_NAME
+#define WAVE_FORMAT 3
+#define RIFF_NAME RIFF_FLOAT
+#define FLOATOUT
+#include "wavhead.h"
+
+/* AU header struct... */
+
+struct auhead {
+ byte magic[4];
+ byte headlen[4];
+ byte datalen[4];
+ byte encoding[4];
+ byte rate[4];
+ byte channels[4];
+ byte dummy[8];
+} auhead = {
+ { 0x2e,0x73,0x6e,0x64 } , { 0x00,0x00,0x00,0x20 } ,
+ { 0xff,0xff,0xff,0xff } , { 0,0,0,0 } , { 0,0,0,0 } , { 0,0,0,0 } ,
+ { 0,0,0,0,0,0,0,0 }};
+
+
+static FILE *wavfp;
+static int header_written = 0; /* prevent writing multiple headers to stdout */
+static long datalen = 0;
+static int flipendian=0;
+int bytes_per_sample = -1;
+int floatwav = 0; /* If we write a floating point WAV file. */
+
+/* Convertfunctions: */
+/* always little endian */
+
+static void long2littleendian(long inval,byte *outval,int b)
+{
+ int i;
+ for(i=0;i<b;i++) {
+ outval[i] = (inval>>(i*8)) & 0xff;
+ }
+}
+
+/* always big endian */
+static void long2bigendian(long inval,byte *outval,int b)
+{
+ int i;
+ for(i=0;i<b;i++) {
+ outval[i] = (inval>>((b-i-1)*8)) & 0xff;
+ }
+}
+
+static long from_little(byte *inval, int b)
+{
+ long ret = 0;
+ int i;
+ for(i=0;i<b;++i) ret += ((long)inval[i])<<(i*8);
+
+ return ret;
+}
+
+static int testEndian(void)
+{
+ long i,a=0,b=0,c=0;
+ int ret = 0;
+
+ for(i=0;i<sizeof(long);i++) {
+ ((byte *)&a)[i] = i;
+ b<<=8;
+ b |= i;
+ c |= i << (i*8);
+ }
+ if(a == b)
+ ret = 1;
+ else if(a != c) {
+ error3("Strange endianess?? %08lx %08lx %08lx\n",a,b,c);
+ ret = -1;
+ }
+ return ret;
+}
+
+static int open_file(char *filename)
+{
+#if defined(HAVE_SETUID) && defined(HAVE_GETUID)
+ setuid(getuid()); /* dunno whether this helps. I'm not a security expert */
+#endif
+ if(!strcmp("-",filename)) {
+ wavfp = stdout;
+ }
+ else {
+ wavfp = fopen(filename,"wb");
+ if(!wavfp)
+ return -1;
+ }
+ return 0;
+}
+
+static void close_file(void)
+{
+ if(wavfp != NULL && wavfp != stdout)
+ fclose(wavfp);
+
+ wavfp = NULL;
+}
+
+/* Wrapper over header writing; ensure that stdout doesn't get multiple headers. */
+static size_t write_header(const void*ptr, size_t size)
+{
+ if(wavfp == stdout)
+ {
+ if(header_written) return 1;
+
+ header_written = 1;
+ }
+ return fwrite(ptr, size, 1, wavfp);
+}
+
+int au_open(audio_output_t *ao)
+{
+ if(ao->format < 0) ao->format = MPG123_ENC_SIGNED_16;
+
+ if(ao->format & MPG123_ENC_FLOAT)
+ {
+ error("AU file support for float values not there yet");
+ return -1;
+ }
+
+ flipendian = 0;
+
+ if(ao->rate < 0) ao->rate = 44100;
+ if(ao->channels < 0) ao->channels = 2;
+
+ switch(ao->format) {
+ case MPG123_ENC_SIGNED_16:
+ {
+ int endiantest = testEndian();
+ if(endiantest == -1) return -1;
+ flipendian = !endiantest; /* big end */
+ long2bigendian(3,auhead.encoding,sizeof(auhead.encoding));
+ }
+ break;
+ case MPG123_ENC_UNSIGNED_8:
+ ao->format = MPG123_ENC_ULAW_8;
+ case MPG123_ENC_ULAW_8:
+ long2bigendian(1,auhead.encoding,sizeof(auhead.encoding));
+ break;
+ default:
+ error("AU output is only a hack. This audio mode isn't supported yet.");
+ return -1;
+ }
+
+ long2bigendian(0xffffffff,auhead.datalen,sizeof(auhead.datalen));
+ long2bigendian(ao->rate,auhead.rate,sizeof(auhead.rate));
+ long2bigendian(ao->channels,auhead.channels,sizeof(auhead.channels));
+
+ if(open_file(ao->device) < 0)
+ return -1;
+
+ write_header(&auhead, sizeof(auhead));
+ datalen = 0;
+
+ return 0;
+}
+
+int cdr_open(audio_output_t *ao)
+{
+ if(ao->format < 0 && ao->rate < 0 && ao->channels < 0)
+ {
+ /* param.force_stereo = 0; */
+ ao->format = MPG123_ENC_SIGNED_16;
+ ao->rate = 44100;
+ ao->channels = 2;
+ }
+ if(ao->format != MPG123_ENC_SIGNED_16 || ao->rate != 44100 || ao->channels != 2) {
+ fprintf(stderr,"Oops .. not forced to 16 bit, 44kHz?, stereo\n");
+ return -1;
+ }
+
+ flipendian = !testEndian(); /* big end */
+
+
+ if(open_file(ao->device) < 0)
+ return -1;
+
+ return 0;
+}
+
+int wav_open(audio_output_t *ao)
+{
+ int bps;
+
+ if(ao->format < 0) ao->format = MPG123_ENC_SIGNED_16;
+
+ flipendian = 0;
+
+ /* standard MS PCM, and its format specific is BitsPerSample */
+ long2littleendian(1,RIFF.WAVE.fmt.FormatTag,sizeof(RIFF.WAVE.fmt.FormatTag));
+ floatwav = 0;
+ if(ao->format == MPG123_ENC_FLOAT_32)
+ {
+ floatwav = 1;
+ long2littleendian(3,RIFF_FLOAT.WAVE.fmt.FormatTag,sizeof(RIFF_FLOAT.WAVE.fmt.FormatTag));
+ long2littleendian(bps=32,RIFF_FLOAT.WAVE.fmt.BitsPerSample,sizeof(RIFF_FLOAT.WAVE.fmt.BitsPerSample));
+ flipendian = testEndian();
+ }
+ else if(ao->format == MPG123_ENC_SIGNED_32) {
+ long2littleendian(bps=32,RIFF.WAVE.fmt.BitsPerSample,sizeof(RIFF.WAVE.fmt.BitsPerSample));
+ flipendian = testEndian();
+ }
+ else if(ao->format == MPG123_ENC_SIGNED_16) {
+ long2littleendian(bps=16,RIFF.WAVE.fmt.BitsPerSample,sizeof(RIFF.WAVE.fmt.BitsPerSample));
+ flipendian = testEndian();
+ }
+ else if(ao->format == MPG123_ENC_UNSIGNED_8)
+ long2littleendian(bps=8,RIFF.WAVE.fmt.BitsPerSample,sizeof(RIFF.WAVE.fmt.BitsPerSample));
+ else
+ {
+ error("Format not supported.");
+ return -1;
+ }
+
+ if(ao->rate < 0) ao->rate = 44100;
+ if(ao->channels < 0) ao->channels = 2;
+
+ if(floatwav)
+ {
+ long2littleendian(ao->channels,RIFF_FLOAT.WAVE.fmt.Channels,sizeof(RIFF_FLOAT.WAVE.fmt.Channels));
+ long2littleendian(ao->rate,RIFF_FLOAT.WAVE.fmt.SamplesPerSec,sizeof(RIFF_FLOAT.WAVE.fmt.SamplesPerSec));
+ long2littleendian((int)(ao->channels * ao->rate * bps)>>3,
+ RIFF_FLOAT.WAVE.fmt.AvgBytesPerSec,sizeof(RIFF_FLOAT.WAVE.fmt.AvgBytesPerSec));
+ long2littleendian((int)(ao->channels * bps)>>3,
+ RIFF_FLOAT.WAVE.fmt.BlockAlign,sizeof(RIFF_FLOAT.WAVE.fmt.BlockAlign));
+ }
+ else
+ {
+ long2littleendian(ao->channels,RIFF.WAVE.fmt.Channels,sizeof(RIFF.WAVE.fmt.Channels));
+ long2littleendian(ao->rate,RIFF.WAVE.fmt.SamplesPerSec,sizeof(RIFF.WAVE.fmt.SamplesPerSec));
+ long2littleendian((int)(ao->channels * ao->rate * bps)>>3,
+ RIFF.WAVE.fmt.AvgBytesPerSec,sizeof(RIFF.WAVE.fmt.AvgBytesPerSec));
+ long2littleendian((int)(ao->channels * bps)>>3,
+ RIFF.WAVE.fmt.BlockAlign,sizeof(RIFF.WAVE.fmt.BlockAlign));
+ }
+
+ if(open_file(ao->device) < 0)
+ return -1;
+
+ if(floatwav)
+ {
+ long2littleendian(datalen,RIFF_FLOAT.WAVE.data.datalen,sizeof(RIFF_FLOAT.WAVE.data.datalen));
+ long2littleendian(datalen+sizeof(RIFF_FLOAT.WAVE),RIFF_FLOAT.WAVElen,sizeof(RIFF_FLOAT.WAVElen));
+ }
+ else
+ {
+ long2littleendian(datalen,RIFF.WAVE.data.datalen,sizeof(RIFF.WAVE.data.datalen));
+ long2littleendian(datalen+sizeof(RIFF.WAVE),RIFF.WAVElen,sizeof(RIFF.WAVElen));
+ }
+
+ if(!( (floatwav && write_header(&RIFF_FLOAT, sizeof(RIFF_FLOAT)) == 1)
+ || write_header(&RIFF, sizeof(RIFF)) == 1) )
+ {
+ error1("cannot write header: %s", strerror(errno));
+ close_file();
+ return -1;
+ }
+
+ datalen = 0;
+ bytes_per_sample = bps>>3;
+
+ return 0;
+}
+
+int wav_write(unsigned char *buf,int len)
+{
+ int temp;
+ int i;
+
+ if(!wavfp)
+ return 0;
+
+ if(flipendian)
+ {
+ if(bytes_per_sample == 4) /* 32 bit */
+ {
+ if(len & 3)
+ {
+ error("Number of bytes no multiple of 4 (32bit)!");
+ return 0;
+ }
+ for(i=0;i<len;i+=4)
+ {
+ int j;
+ unsigned char tmp[4];
+ for(j = 0; j<=3; ++j) tmp[j] = buf[i+j];
+ for(j = 0; j<=3; ++j) buf[i+j] = tmp[3-j];
+ }
+ }
+ else /* 16 bit */
+ {
+ if(len & 1)
+ {
+ error("Odd number of bytes!");
+ return 0;
+ }
+ for(i=0;i<len;i+=2)
+ {
+ unsigned char tmp;
+ tmp = buf[i+0];
+ buf[i+0] = buf[i+1];
+ buf[i+1] = tmp;
+ }
+ }
+ }
+
+ temp = fwrite(buf, 1, len, wavfp);
+ if(temp <= 0)
+ return 0;
+
+ datalen += temp;
+
+ return temp;
+}
+
+int wav_close(void)
+{
+ if(!wavfp) return 0;
+
+ if(fseek(wavfp, 0L, SEEK_SET) >= 0)
+ {
+ if(floatwav)
+ {
+ long2littleendian(datalen,RIFF_FLOAT.WAVE.data.datalen,sizeof(RIFF_FLOAT.WAVE.data.datalen));
+ long2littleendian(datalen+sizeof(RIFF_FLOAT.WAVE),RIFF_FLOAT.WAVElen,sizeof(RIFF_FLOAT.WAVElen));
+ long2littleendian(datalen/(from_little(RIFF_FLOAT.WAVE.fmt.Channels,2)*from_little(RIFF_FLOAT.WAVE.fmt.BitsPerSample,2)/8),
+ RIFF_FLOAT.WAVE.fact.samplelen,sizeof(RIFF_FLOAT.WAVE.fact.samplelen));
+ /* Always (over)writing the header here; also for stdout, when fseek worked, this overwrite works. */
+ fwrite(&RIFF_FLOAT, sizeof(RIFF_FLOAT),1,wavfp);
+ }
+ else
+ {
+ long2littleendian(datalen,RIFF.WAVE.data.datalen,sizeof(RIFF.WAVE.data.datalen));
+ long2littleendian(datalen+sizeof(RIFF.WAVE),RIFF.WAVElen,sizeof(RIFF.WAVElen));
+ /* Always (over)writing the header here; also for stdout, when fseek worked, this overwrite works. */
+ fwrite(&RIFF, sizeof(RIFF),1,wavfp);
+ }
+ }
+ else
+ warning("Cannot rewind WAV file. File-format isn't fully conform now.");
+
+ close_file();
+ return 0;
+}
+
+int au_close(void)
+{
+ if(!wavfp)
+ return 0;
+
+ if(fseek(wavfp, 0L, SEEK_SET) >= 0) {
+ long2bigendian(datalen,auhead.datalen,sizeof(auhead.datalen));
+ /* Always (over)writing the header here; also for stdout, when fseek worked, this overwrite works. */
+ fwrite(&auhead, sizeof(auhead),1,wavfp);
+ }
+ else
+ warning("Cannot rewind AU file. File-format isn't fully conform now.");
+
+ close_file();
+
+ return 0;
+}
+
+int cdr_close(void)
+{
+ if(!wavfp) return 0;
+
+ close_file();
+ return 0;
+}
+
+
+
diff --git a/src/wavhead.h b/src/wavhead.h
new file mode 100644
index 0000000..1016daf
--- /dev/null
+++ b/src/wavhead.h
@@ -0,0 +1,68 @@
+/*
+ wavhead.h: wav file header, to be included twice for integer and float wavs
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Samuel Audet
+*/
+
+struct
+{
+ byte riffheader[4];
+ byte WAVElen[4]; /* should this include riffheader or not? */
+ struct
+ {
+ byte WAVEID[4];
+ byte fmtheader[4];
+ byte fmtlen[4];
+ struct
+ {
+ byte FormatTag[2];
+ byte Channels[2];
+ byte SamplesPerSec[4];
+ byte AvgBytesPerSec[4];
+ byte BlockAlign[2];
+ byte BitsPerSample[2]; /* format specific for PCM */
+ #ifdef FLOATOUT
+ byte cbSize[2];
+ #endif
+ } fmt;
+ #ifdef FLOATOUT
+ byte factheader[4];
+ byte factlen[4];
+ struct
+ {
+ byte samplelen[4];
+ } fact;
+ #endif
+ struct
+ {
+ byte dataheader[4];
+ byte datalen[4];
+ /* from here you insert your PCM data */
+ } data;
+ } WAVE;
+} RIFF_NAME =
+{
+ { 'R','I','F','F' } ,
+ { sizeof(RIFF_NAME.WAVE),0,0,0 } ,
+ {
+ { 'W','A','V','E' },
+ { 'f','m','t',' ' },
+ { sizeof(RIFF_NAME.WAVE.fmt),0,0,0 } ,
+ {
+ {WAVE_FORMAT,0} , {0,0},{0,0,0,0},{0,0,0,0},{0,0},{0,0}
+ #ifdef FLOATOUT
+ ,{0,0}
+ #endif
+ } ,
+ #ifdef FLOATOUT
+ { 'f','a','c','t' },
+ { sizeof(RIFF_NAME.WAVE.fact),0,0,0 },
+ {
+ {0,0,0,0} /* to be filled later, like datalen and wavelen */
+ },
+ #endif
+ { { 'd','a','t','a' } , {0,0,0,0} }
+ }
+};
diff --git a/src/xfermem.c b/src/xfermem.c
new file mode 100644
index 0000000..6a9f525
--- /dev/null
+++ b/src/xfermem.c
@@ -0,0 +1,321 @@
+/*
+ xfermem: unidirectional fast pipe
+
+ copyright ?-2008 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Oliver Fromme
+ old timestamp: Sun Apr 6 02:26:26 MET DST 1997
+
+ See xfermem.h for documentation/description.
+*/
+
+
+#ifndef NOXFERMEM
+
+#include "mpg123app.h"
+#include <string.h>
+#include <errno.h>
+#include <sys/uio.h>
+#include <sys/mman.h>
+#include <sys/socket.h>
+#include <fcntl.h>
+
+#ifndef HAVE_MMAP
+#include <sys/ipc.h>
+#include <sys/shm.h>
+#endif
+
+#include "debug.h"
+
+#if defined (HAVE_MMAP) && defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
+#define MAP_ANON MAP_ANONYMOUS
+#endif
+
+void xfermem_init (txfermem **xf, size_t bufsize, size_t msize, size_t skipbuf)
+{
+ size_t regsize = bufsize + msize + skipbuf + sizeof(txfermem);
+
+#ifdef HAVE_MMAP
+# ifdef MAP_ANON
+ if ((*xf = (txfermem *) mmap(0, regsize, PROT_READ | PROT_WRITE,
+ MAP_ANON | MAP_SHARED, -1, 0)) == (txfermem *) -1) {
+ perror ("mmap()");
+ exit (1);
+ }
+# else
+ int devzero;
+ if ((devzero = open("/dev/zero", O_RDWR, 0)) == -1) {
+ perror ("open(/dev/zero)");
+ exit (1);
+ }
+ if ((*xf = (txfermem *) mmap(0, regsize, PROT_READ | PROT_WRITE,
+ MAP_SHARED, devzero, 0)) == (txfermem *) -1) {
+ perror ("mmap()");
+ exit (1);
+ }
+ close (devzero);
+# endif
+#else
+ struct shmid_ds shmemds;
+ int shmemid;
+ if ((shmemid = shmget(IPC_PRIVATE, regsize, IPC_CREAT | 0600)) == -1) {
+ perror ("shmget()");
+ exit (1);
+ }
+ if ((*xf = (txfermem *) shmat(shmemid, 0, 0)) == (txfermem *) -1) {
+ perror ("shmat()");
+ shmctl (shmemid, IPC_RMID, &shmemds);
+ exit (1);
+ }
+ if (shmctl(shmemid, IPC_RMID, &shmemds) == -1) {
+ perror ("shmctl()");
+ xfermem_done (*xf);
+ exit (1);
+ }
+#endif
+ if (socketpair(AF_UNIX, SOCK_STREAM, 0, (*xf)->fd) < 0) {
+ perror ("socketpair()");
+ xfermem_done (*xf);
+ exit (1);
+ }
+ (*xf)->freeindex = (*xf)->readindex = 0;
+ (*xf)->wakeme[0] = (*xf)->wakeme[1] = FALSE;
+ (*xf)->data = ((byte *) *xf) + sizeof(txfermem) + msize;
+ (*xf)->metadata = ((byte *) *xf) + sizeof(txfermem);
+ (*xf)->size = bufsize;
+ (*xf)->metasize = msize + skipbuf;
+ (*xf)->justwait = 0;
+}
+
+void xfermem_done (txfermem *xf)
+{
+ if(!xf)
+ return;
+#ifdef HAVE_MMAP
+ munmap ((caddr_t) xf, xf->size + xf->metasize + sizeof(txfermem));
+#else
+ if (shmdt((void *) xf) == -1) {
+ perror ("shmdt()");
+ exit (1);
+ }
+#endif
+}
+
+void xfermem_init_writer (txfermem *xf)
+{
+ if(xf)
+ close (xf->fd[XF_READER]);
+}
+
+void xfermem_init_reader (txfermem *xf)
+{
+ if(xf)
+ close (xf->fd[XF_WRITER]);
+}
+
+size_t xfermem_get_freespace (txfermem *xf)
+{
+ size_t freeindex, readindex;
+
+ if(!xf)
+ return 0;
+
+ if ((freeindex = xf->freeindex) < 0
+ || (readindex = xf->readindex) < 0)
+ return (0);
+ if (readindex > freeindex)
+ return ((readindex - freeindex) - 1);
+ else
+ return ((xf->size - (freeindex - readindex)) - 1);
+}
+
+size_t xfermem_get_usedspace (txfermem *xf)
+{
+ size_t freeindex, readindex;
+
+ if(!xf)
+ return 0;
+
+ if ((freeindex = xf->freeindex) < 0
+ || (readindex = xf->readindex) < 0)
+ return (0);
+ if (freeindex >= readindex)
+ return (freeindex - readindex);
+ else
+ return (xf->size - (readindex - freeindex));
+}
+
+int xfermem_getcmd (int fd, int block)
+{
+ fd_set selfds;
+ byte cmd;
+
+ for (;;) {
+ struct timeval selto = {0, 0};
+
+ FD_ZERO (&selfds);
+ FD_SET (fd, &selfds);
+#ifdef HPUX
+ switch (select(FD_SETSIZE, (int *) &selfds, NULL, NULL, block ? NULL : &selto)) {
+#else
+ switch (select(FD_SETSIZE, &selfds, NULL, NULL, block ? NULL : &selto)) {
+#endif
+ case 0:
+ if (!block)
+ return (0);
+ continue;
+ case -1:
+ if (errno == EINTR)
+ continue;
+ return (-2);
+ case 1:
+ if (FD_ISSET(fd, &selfds))
+ switch (read(fd, &cmd, 1)) {
+ case 0: /* EOF */
+ return (-1);
+ case -1:
+ if (errno == EINTR)
+ continue;
+ return (-3);
+ case 1:
+ return (cmd);
+ default: /* ?!? */
+ return (-4);
+ }
+ else /* ?!? */
+ return (-5);
+ default: /* ?!? */
+ return (-6);
+ }
+ }
+}
+
+int xfermem_putcmd (int fd, byte cmd)
+{
+ for (;;) {
+ switch (write(fd, &cmd, 1)) {
+ case 1:
+ return (1);
+ case -1:
+ if (errno != EINTR)
+ return (-1);
+ }
+ }
+}
+
+int xfermem_block (int readwrite, txfermem *xf)
+{
+ int myfd = xf->fd[readwrite];
+ int result;
+
+ xf->wakeme[readwrite] = TRUE;
+ if (xf->wakeme[1 - readwrite])
+ xfermem_putcmd (myfd, XF_CMD_WAKEUP);
+ result = xfermem_getcmd(myfd, TRUE);
+ xf->wakeme[readwrite] = FALSE;
+ return ((result <= 0) ? -1 : result);
+}
+
+/* Parallel-safe code to signal a process and wait for it to respond. */
+int xfermem_sigblock(int readwrite, txfermem *xf, int pid, int signal)
+{
+ int myfd = xf->fd[readwrite];
+ int result;
+
+ xf->wakeme[readwrite] = TRUE;
+ kill(pid, signal);
+
+ /* not sure about that block... here */
+ if (xf->wakeme[1 - readwrite])
+ xfermem_putcmd (myfd, XF_CMD_WAKEUP);
+
+ result = xfermem_getcmd(myfd, TRUE);
+ xf->wakeme[readwrite] = FALSE;
+
+ return ((result <= 0) ? -1 : result);
+}
+
+int xfermem_write(txfermem *xf, byte *buffer, size_t bytes)
+{
+ if(buffer == NULL || bytes < 1) return FALSE;
+
+ /* You weren't so braindead to have not allocated enough space at all, right? */
+ while (xfermem_get_freespace(xf) < bytes)
+ {
+ int cmd = xfermem_block(XF_WRITER, xf);
+ if (cmd == XF_CMD_TERMINATE || cmd < 0)
+ {
+ error("failed to wait for free space");
+ return TRUE; /* Failure. */
+ }
+ }
+ /* Now we have enough space. copy the memory, possibly with the wrap. */
+ if(xf->size - xf->freeindex >= bytes)
+ { /* one block of free memory */
+ memcpy(xf->data+xf->freeindex, buffer, bytes);
+ }
+ else
+ { /* two blocks */
+ size_t endblock = xf->size - xf->freeindex;
+ memcpy(xf->data+xf->freeindex, buffer, endblock);
+ memcpy(xf->data, buffer + endblock, bytes-endblock);
+ }
+ /* Advance the free space pointer, including the wrap. */
+ xf->freeindex = (xf->freeindex + bytes) % xf->size;
+ /* Wake up the buffer process if necessary. */
+ debug("write waking");
+ if(xf->wakeme[XF_READER])
+ return xfermem_putcmd(xf->fd[XF_WRITER], XF_CMD_WAKEUP_INFO) < 0 ? TRUE : FALSE;
+
+ return FALSE;
+}
+
+#else /* stubs for generic / win32 */
+
+#include "mpg123app.h"
+#include "xfermem.h"
+
+void xfermem_init (txfermem **xf, size_t bufsize, size_t msize, size_t skipbuf)
+{
+}
+void xfermem_done (txfermem *xf)
+{
+}
+void xfermem_init_writer (txfermem *xf)
+{
+}
+void xfermem_init_reader (txfermem *xf)
+{
+}
+size_t xfermem_get_freespace (txfermem *xf)
+{
+ return 0;
+}
+size_t xfermem_get_usedspace (txfermem *xf)
+{
+ return 0;
+}
+int xfermem_write(txfermem *xf, byte *buffer, size_t bytes)
+{
+ return FALSE;
+}
+int xfermem_getcmd (int fd, int block)
+{
+ return 0;
+}
+int xfermem_putcmd (int fd, byte cmd)
+{
+ return 0;
+}
+int xfermem_block (int readwrite, txfermem *xf)
+{
+ return 0;
+}
+int xfermem_sigblock (int readwrite, txfermem *xf, int pid, int signal)
+{
+ return 0;
+}
+#endif
+
+/* eof */
+
diff --git a/src/xfermem.h b/src/xfermem.h
new file mode 100644
index 0000000..2cf57e0
--- /dev/null
+++ b/src/xfermem.h
@@ -0,0 +1,74 @@
+/*
+ xfermem: unidirectional fast pipe
+
+ copyright ?-2006 by the mpg123 project - free software under the terms of the LGPL 2.1
+ see COPYING and AUTHORS files in distribution or http://mpg123.org
+ initially written by Oliver Fromme
+ old timestamp: Sat Mar 29 04:41:34 MET 1997
+
+ This is a stand-alone module which implements a unidirectional,
+ fast pipe using mmap(). Its primary use is to transfer large
+ amounts of data from a parent process to its child process,
+ with a buffer in between which decouples blocking conditions
+ on both sides. Control information is transferred between the
+ processes through a socketpair. See xftest.c for an example on
+ how to use this module.
+
+ note: xftest not there anymore
+*/
+
+#ifndef _XFERMEM_H_
+#define _XFERMEM_H_
+
+#ifndef TRUE
+#define FALSE 0
+#define TRUE 1
+#endif
+
+typedef struct {
+ size_t freeindex; /* [W] next free index */
+ size_t readindex; /* [R] next index to read */
+ int fd[2];
+ int wakeme[2];
+ byte *data;
+ byte *metadata;
+ size_t size;
+ size_t metasize;
+ long rate;
+ int channels;
+ int format;
+ int justwait;
+} txfermem;
+/*
+ * [W] -- May be written to by the writing process only!
+ * [R] -- May be written to by the reading process only!
+ * All other entries are initialized once.
+ */
+
+void xfermem_init (txfermem **xf, size_t bufsize, size_t msize, size_t skipbuf);
+void xfermem_init_writer (txfermem *xf);
+void xfermem_init_reader (txfermem *xf);
+
+size_t xfermem_get_freespace (txfermem *xf);
+size_t xfermem_get_usedspace (txfermem *xf);
+#define XF_CMD_WAKEUP_INFO 0x04
+#define XF_CMD_WAKEUP 0x02
+#define XF_CMD_TERMINATE 0x03
+#define XF_CMD_AUDIOCAP 0x05
+#define XF_CMD_RESYNC 0x06
+#define XF_CMD_ABORT 0x07
+#define XF_WRITER 0
+#define XF_READER 1
+int xfermem_getcmd (int fd, int block);
+int xfermem_putcmd (int fd, byte cmd);
+int xfermem_block (int fd, txfermem *xf);
+int xfermem_sigblock (int fd, txfermem *xf, int pid, int signal);
+/* returns TRUE for being interrupted */
+int xfermem_write(txfermem *xf, byte *buffer, size_t bytes);
+
+void xfermem_done (txfermem *xf);
+#define xfermem_done_writer xfermem_init_reader
+#define xfermem_done_reader xfermem_init_writer
+
+
+#endif
diff --git a/windows-builds.sh b/windows-builds.sh
new file mode 100755
index 0000000..bf618bd
--- /dev/null
+++ b/windows-builds.sh
@@ -0,0 +1,146 @@
+#!/bin/sh
+
+# A dirty script to create some windows binaries (shared, static, debug, ...) using the MSYS environment.
+
+# give build type as command line argument
+# x86 or x86_64-cross
+build_type=$1
+test -z "$build_type" && build_type=x86
+
+echo "build type: $build_type"
+case $build_type in
+ x86)
+ decoder=x86
+ strip=strip
+ hostopt=
+ ;;
+ x86_64-cross)
+ decoder=x86-64
+ strip=x86_64-w64-mingw32-strip
+ hostopt="--host=x86_64-w64-mingw32 --build=i686-pc-mingw32"
+ ;;
+ *)
+ echo "Unknown build type!"
+ exit 1
+ ;;
+esac
+
+temp="$PWD/tmp"
+final="$PWD/releases"
+txt="README COPYING NEWS"
+# let's try with modules
+opts=""
+#opts="--with-audio=win32 --disable-modules"
+
+# Get the version for the build from configure.ac .
+version=`sed -n 's/^AC_INIT([^,]*, \[\([^,]*\)\], .*$/\1/p' < configure.ac`
+echo "Building binaries for version $version"
+
+prepare_dir()
+{
+ test -e "$final" || mkdir "$final"
+}
+
+prepare_unix2dos()
+{
+ echo "preparing unix2dos tool"
+ # I'll include documentation in DOS-style, with the help of this little unix2dos variant.
+ test -x "unix2dos" || echo "
+#include <unistd.h>
+#include <stdio.h>
+int main()
+{
+ char buf[1000];
+ ssize_t got;
+ while((got=read(0, buf, 1000))>0)
+ {
+ ssize_t end=0;
+ ssize_t pos=0;
+ for(end=0;end<got;++end)
+ {
+ if(buf[end] == '\n')
+ {
+ write(1, buf+pos, end-pos);
+ write(1, \"\r\n\", 2);
+ pos=end+1;
+ }
+ }
+ write(1, buf+pos, end-pos);
+ }
+}" > unix2dos.c && gcc -O -o unix2dos unix2dos.c
+}
+
+mpg123_build()
+{
+ cpu=$1
+ stat=$2
+ debug=$3
+ myopts=$opts
+ if test "$stat" = "y"; then
+ echo "static build (stat=$stat)" &&
+ name=mpg123-$version-static-$cpu
+ myopts="$myopts --disable-shared"
+ else
+ echo "dynamic build (stat=$stat)" &&
+ name=mpg123-$version-$cpu
+ fi &&
+ if test "$debug" = "y"; then
+ echo "Debugging build!"
+ name=$name-debug
+ myopts="$myopts --enable-debug"
+ fi &&
+ tmp=$temp-$name &&
+ echo "REMOVING $tmp!" &&
+ sleep 5 &&
+ if test -e Makefile; then make clean; fi &&
+ rm -rvf $tmp &&
+ ./configure $hostopt --prefix=$tmp $myopts --with-cpu=$cpu && make && make install &&
+ rm -rf "$final/$name" &&
+ mkdir "$final/$name" &&
+ cp -v "$tmp/bin/mpg123.exe" "$final/$name" &&
+ if test "$debug" = y; then
+ echo "Not stripping the debug build..."
+ else
+ $strip --strip-unneeded "$final/$name/"*.exe
+ fi &&
+ if test "$stat" = "y"; then
+ echo "No DLL there..."
+ else
+ cp -v "$tmp/bin/libmpg123"*.dll "$tmp/include/mpg123.h" "$final/$name" &&
+ cp -v "src/libmpg123/.libs/libmpg123"*.dll.def "$final/$name" &&
+ if test "$debug" = y; then
+ echo "Not stripping the debug build..."
+ else
+ $strip --strip-unneeded "$final/$name/"*.dll || exit 1
+ fi
+ for i in $tmp/lib/mpg123/*.la
+ do
+ if test -e "$i"; then
+ plugdir="$final/$name/plugins"
+ mkdir -p "$plugdir" &&
+ sed -e 's/libdir=.*$/libdir='"'.'/" < $i > "$plugdir/`basename $i`" &&
+ sofile=`echo $i | sed -e 's/\.la$/.dll/'` &&
+ if test "$debug" = y; then
+ echo "not stripping debug module..."
+ else
+ $strip --strip-unneeded "$sofile" || exit 1
+ fi &&
+ cp -v "$sofile" "$plugdir"
+ fi
+ done
+ fi &&
+ for i in $txt
+ do
+ echo "text file $i -> $final/$name/$i.txt"
+ ./unix2dos < "$i" > "$final/$name/$i.txt"
+ done
+}
+
+prepare_dir &&
+prepare_unix2dos &&
+mpg123_build $decoder y n &&
+mpg123_build ${decoder}_dither y n &&
+mpg123_build $decoder n n &&
+mpg123_build ${decoder}_dither n n &&
+mpg123_build $decoder n y &&
+echo "Hurray! Note: Please do not forget to copy the libltdl DLL from MSYS to the dynamic build directories... " || echo "Bleh..."